Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
OrderPaymentSummary Class
Work with payments in Order Management.
Namespace
OrderPaymentSummary Methods
These methods are 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. In an org with the multicurrency
feature enabled, the OrderPaymentSummary inherits the CurrencyIsoCode value from the
OrderSummary.
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.
Return Value
Type: ConnectApi.CreateOrderPaymentSummaryOutputRepresentation
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);