iikoFront Api V8 Code Reference
iikoFront Api V8 Code Reference
Resto.Front.Api.Editors
IEditSession Interface
IEditSession Methods
AddPreliminaryPaymentItem Method
AddPreliminaryPaymentItem Method (Decimal, IPaymentItemAdditionalData, IPaymentType, IDeliveryOrderStub)
AddPreliminaryPaymentItem Method (Guid, Decimal, IPaymentItemAdditionalData, IPaymentType, IDeliveryOrderStub)

# IEditSession AddPreliminaryPaymentItem Method (Decimal, IPaymentItemAdditionalData, IPaymentType, IDeliveryOrderStub)

Add new preliminary payment item to order.

Namespace: Resto.Front.Api.Editors
Assembly: Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    INewPaymentItemStub AddPreliminaryPaymentItem(
    	decimal paymentSum,
    	IPaymentItemAdditionalData additionalData,
    	IPaymentType paymentType,
    	IDeliveryOrderStub order
    )

#### Parameters

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.
order
  Type: Resto.Front.Api.Editors.Stubs
  IDeliveryOrderStub
  Delivery order to which payment item will be added.

#### Return Value

Type: INewPaymentItemStub
See Also

#### Reference

IEditSession Interface
AddPreliminaryPaymentItem Overload
Resto.Front.Api.Editors Namespace