Click or drag to resize

IOperationServiceAddDonation Method

Adds new donation to order.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V6 (in Resto.Front.Api.V6.dll)
Syntax
C#
IPaymentItem AddDonation(
	ICredentials credentials,
	IOrder order,
	IDonationType donationType,
	IPaymentType paymentType,
	IPaymentItemAdditionalData additionalData,
	bool isProcessed,
	decimal donationSum
)

Parameters

credentials
Type: Resto.Front.Api.Data.SecurityICredentials
The credentials returned by AuthenticateByPin(String) method.
order
Type: Resto.Front.Api.Data.OrdersIOrder
Order whose donation will be added.
donationType
Type: Resto.Front.Api.Data.PaymentsIDonationType
Type of donation that will be added.
paymentType
Type: Resto.Front.Api.Data.PaymentsIPaymentType
Underlying payment type of the donation to be added. paymentType must be one of PaymentTypes.
additionalData
Type: Resto.Front.Api.Data.PaymentsIPaymentItemAdditionalData
Instance of a payment specific type carrying properties, which will be used to initialize a donation, or null if payment type doesn't require additional data for donation initialization.
isProcessed
Type: SystemBoolean
Whether donation was already processed by some external system.
donationSum
Type: SystemDecimal
Sum of donation that will be added.

Return Value

Type: IPaymentItem
See Also