Click or drag to resize

IOperationServiceAddDonation Method

Adds new donation to order.

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

Parameters

order  IOrder
Order whose donation will be added.
donationType  IDonationType
Type of donation that will be added.
paymentType  IPaymentType
Underlying payment type of the donation to be added. paymentType must be one of PaymentTypes.
additionalData  IPaymentItemAdditionalData
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  Boolean
Whether donation was already processed by some external system.
donationSum  Decimal
Sum of donation that will be added.
credentials  ICredentials
The credentials returned by AuthenticateByPin(String) method.
guest  IOrderGuestItem  (Optional)
Guest to which donation will be added, or null if donation not associated with any guest.

Return Value

IPaymentItem
See Also