Class ConsolidatedPaymentService
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
An abstract class for managing relationships between a consolidated payment order and the orders paid by it.
public abstract class ConsolidatedPaymentService
- Inheritance
-
ConsolidatedPaymentService
- Inherited Members
- Extension Methods
Remarks
Implementations are responsible for persisting and retrieving the association between a payment order and one or more paid orders.
Methods
DeletePayment(int)
Deletes the specified payment order and any related paid-order associations.
public abstract void DeletePayment(int paymentId)
Parameters
paymentIdintThe numeric identifier of the payment order.
GetPaymentsByPaidOrderId(string)
Gets the consolidated payments associated with a paid order.
public abstract IEnumerable<ConsolidatedPayment> GetPaymentsByPaidOrderId(string paidOrderId)
Parameters
paidOrderIdstringThe ID of the paid order.
Returns
- IEnumerable<ConsolidatedPayment>
A collection of ConsolidatedPayment instances.
GetPaymentsByPaymentOrderId(string)
Gets the consolidated payments associated with a payment order.
public abstract IEnumerable<ConsolidatedPayment> GetPaymentsByPaymentOrderId(string paymentOrderId)
Parameters
paymentOrderIdstringThe ID of the payment order.
Returns
- IEnumerable<ConsolidatedPayment>
A collection of ConsolidatedPayment instances.
Save(ConsolidatedPayment)
Saves a ConsolidatedPayment instance.
public abstract void Save(ConsolidatedPayment payment)
Parameters
paymentConsolidatedPayment