Table of Contents

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

service ConsolidatedPaymentService

The ConsolidatedPaymentService The Service.

payment Order

The payment order. Its Id is used as the payment order identifier.

paidOrder Order

The 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

service ConsolidatedPaymentService

The target of this extension method.

paymentOrderId string

The id of the order that is used for payment.

paidOrderIds IEnumerable<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

service ConsolidatedPaymentService

The target of this extension method.

paymentOrderId string

The id of the order that is used for payment.

paidOrderIds IEnumerable<string>

A collection of order ids being paid for by the payment order.

paidOrderStateId string

The order state id to associate with the paid order upon completion of the payment order.

Remarks

Each paid order identifier is saved individually.

To top