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
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.
credentials
Type: Resto.Front.Api.Data.SecurityICredentials
The credentials returned by AuthenticateByPin(String) method.
guest (Optional)
Type: Resto.Front.Api.Data.OrdersIOrderGuestItem
Guest to which donation will be added, or null if donation not associated with any guest.

Return Value

Type: IPaymentItem
See Also