From a36cf3e5ebbf1c9fc68d0d4a0122667b4a2f5382 Mon Sep 17 00:00:00 2001 From: Tetsu Yamazaki Date: Tue, 9 Apr 2024 09:23:43 +0900 Subject: [PATCH] =?UTF-8?q?=E6=B1=BA=E6=B8=88=E5=8F=96=E5=BC=95=E3=81=AEob?= =?UTF-8?q?ject.payAction=E3=82=92=E6=9C=80=E9=81=A9=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/assetTransaction/pay.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3784172e..8cee362b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - 予約取引のobject.subReservationを最適化 - 興行オファー承認アクションのobject.acceptedOfferを最適化 +- 決済取引のobject.payActionを最適化 ### Deprecated diff --git a/src/assetTransaction/pay.ts b/src/assetTransaction/pay.ts index 36502554..e92df3d8 100644 --- a/src/assetTransaction/pay.ts +++ b/src/assetTransaction/pay.ts @@ -20,7 +20,6 @@ import { IOnPaymentStatusChanged } from '../project'; import { IPropertyValue } from '../propertyValue'; import { PaymentServiceType } from '../service/paymentService'; -// 最適化(2022-05-27~) export import IAgent = AssetTransactionFactory.IAgent; export type IRecipient = IPayRecipient; /** @@ -107,6 +106,7 @@ export interface IAccountsReceivableByServiceType { serviceType: string; accountsReceivable?: number; } +export type IPayActionInObject = Pick; /** * 取引対象物 */ @@ -123,14 +123,17 @@ export interface IObject { // CreditCardIFのカード通貨区分を追加(2023-08-07~) // serviceOutput?: IOrderPaymentMethodIssuedThroughServiceOutput; paymentMethod: IPaymentMethod; + onPaymentStatusChanged?: IOnPaymentStatusChanged; pendingTransaction?: IPendingTransaction; entryTranArgs?: IEntryTranArgs; entryTranResult?: IEntryTranResult; execTranArgs?: IExecTranArgs | IExecTran3dsArgs; // 3DS拡張(2024-01-02~) execTranResult?: IExecTranResult | IExecTran3dsResult; // 3DS拡張(2024-01-02~) secureTran2Result?: ISecureTran2Result; // 3DS拡張(2024-01-02~) - payAction?: IPayAction; - onPaymentStatusChanged?: IOnPaymentStatusChanged; + /** + * PaymentServiceType.MovieTicketの場合、着券アクション + */ + payAction?: IPayActionInObject; // 最適化(2024-04-09~) accountsReceivablesByServiceType?: IAccountsReceivableByServiceType[]; } export interface IPaymentMethodWithoutDetail extends IPaymentMethod {