Click or drag to resize

IEditSession.AddExternalFiscalizedPaymentItem Method (Guid, Decimal, IPaymentItemAdditionalData, IPaymentType, IOrderStub)

Add new external fiscalized payment item to order.

Namespace:  Resto.Front.Api.Editors
Assembly:  Resto.Front.Api.V7Preview7 (in Resto.Front.Api.V7Preview7.dll)
Syntax
C#
INewPaymentItemStub AddExternalFiscalizedPaymentItem(
	Guid id,
	decimal paymentSum,
	IPaymentItemAdditionalData additionalData,
	IPaymentType paymentType,
	IOrderStub order
)

Parameters

id
Type: System.Guid
Unique identifier of the new payment item. MUST be unique not only for the order, but for the whole system. Therefore it must be taken from some synchronization operation or generated with Guid.NewGuid()
paymentSum
Type: System.Decimal
Sum of payment item that will be added.
additionalData
Type: Resto.Front.Api.Data.Payments.IPaymentItemAdditionalData
Instance of a payment specific type carrying properties, which will be used to initialize a payment item, or null if payment type doesn't require additional data for payment item initialization.
paymentType
Type: Resto.Front.Api.Data.Payments.IPaymentType
Type of payment item that will be added. It should be allowed to create external payment items of this type.
order
Type: Resto.Front.Api.Editors.Stubs.IOrderStub
Order to which payment item will be added.

Return Value

Type: INewPaymentItemStub
See Also