この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

OrderPaymentSummary クラス

Order Management (注文管理) の支払を操作します。

名前空間

ConnectApi

OrderPaymentSummary のメソッド

OrderPaymentSummary のメソッドは次のとおりです。すべてのメソッドが静的です。

createOrderPaymentSummary(orderPaymentSummaryInput)

OrderSummary の OrderPaymentSummary を作成します。支払承認、または同じ支払い方法を共有する、支払いを指定します。組織でマルチ通貨が有効になっている場合、OrderPaymentSummary は、OrderSummary からの CurrencyIsoCode 値を継承します。

API バージョン

48.0

Chatter が必要かどうか

いいえ

署名

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

パラメーター

orderPaymentSummaryInput
型: ConnectApi.CreateOrderPaymentSummaryInputRepresentation
OrderSummary と、支払承認または支払い。

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);