Class ConsolidatedPaymentServiceExtensions
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Extension methods for ConsolidatedPaymentService that provide overloads for saving consolidated payment relationships.
public static class ConsolidatedPaymentServiceExtensions
- Inheritance
-
ConsolidatedPaymentServiceExtensions
- Inherited Members
Methods
Save(ConsolidatedPaymentService, Order, Order)
Saves a relationship between a payment order and a paid order. The payment is not a partial payment.
public static void Save(this ConsolidatedPaymentService service, Order payment, Order paidOrder)
Parameters
serviceConsolidatedPaymentServiceThe ConsolidatedPaymentService The Service.
paymentOrderThe payment order. Its Id is used as the payment order identifier.
paidOrderOrderThe paid order. Its Id is used as the paid order identifier.
Save(ConsolidatedPaymentService, string, IEnumerable<string>)
Saves relationships between a payment order and multiple paid orders. The payments are not partial payments.
public static void Save(this ConsolidatedPaymentService service, string paymentOrderId, IEnumerable<string> paidOrderIds)
Parameters
serviceConsolidatedPaymentServiceThe target of this extension method.
paymentOrderIdstringThe id of the order that is used for payment.
paidOrderIdsIEnumerable<string>A collection of order ids being paid for by the payment order.
Remarks
Each paid order identifier is saved individually.
Save(ConsolidatedPaymentService, string, IEnumerable<string>, string?)
Saves relationships between a payment order and multiple paid orders. The payment is not a partial payment.
public static void Save(this ConsolidatedPaymentService service, string paymentOrderId, IEnumerable<string> paidOrderIds, string? paidOrderStateId)
Parameters
serviceConsolidatedPaymentServiceThe target of this extension method.
paymentOrderIdstringThe id of the order that is used for payment.
paidOrderIdsIEnumerable<string>A collection of order ids being paid for by the payment order.
paidOrderStateIdstringThe order state id to associate with the paid order upon completion of the payment order.
Remarks
Each paid order identifier is saved individually.