Newer Version Available

This content describes an older version of this product. View Latest

OrderPaymentSummary Class

Work with payments in Order Management.

Namespace

ConnectApi

OrderPaymentSummary Methods

The following are methods for OrderPaymentSummary. All methods are static.

createOrderPaymentSummary(orderPaymentSummaryInput)

Create an OrderPaymentSummary for an OrderSummary. Specify a payment authorization or payments that share the same payment method.

API Version

48.0

Requires Chatter

No

Signature

public static ConnectApi.CreateOrderPaymentSummaryOutputRepresentation createOrderPaymentSummary(ConnectApi.CreateOrderPaymentSummaryInputRepresentation orderPaymentSummaryInput)

Parameters

orderPaymentSummaryInput
Type: ConnectApi.CreateOrderPaymentSummaryInputRepresentation
The OrderSummary and payment authorization or payments.

Example

1String orderSummaryId = '1Osxx0000004CCG';
2String paymentId1 = '0a3xx0000000085AAA';
3String paymentId2 = '0a3xx0000000085BBB';
4
5ConnectApi.CreateOrderPaymentSummaryInputRepresentation orderPaymentSummaryInput = new ConnectApi.CreateOrderPaymentSummaryInputRepresentation();
6orderPaymentSummaryInput.orderSummaryId = orderSummaryId;
7List<String> paymentList = new List<String>();
8paymentList.add(paymentId1);
9paymentList.add(paymentId2);
10orderPaymentSummaryInput.paymentIds = paymentList;
11
12ConnectApi.CreateOrderPaymentSummaryOutputRepresentation result = ConnectAPI.OrderPaymentSummary.createOrderPaymentSummary(orderPaymentSummaryInput);