Skip to content

Commit

Permalink
OnAssetTransactionStatusChangedを予約取引に対応
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Jan 11, 2024
1 parent a3ce7c4 commit 7b8bcb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

- クレジットカードIFを3DSに対応
- 決済取引を3DSクレジットカードに対応
- OnAssetTransactionStatusChangedを予約取引に対応

### Deprecated

Expand Down
11 changes: 9 additions & 2 deletions src/task/onAssetTransactionStatusChanged.ts
@@ -1,12 +1,13 @@
import { AssetTransactionType } from '../assetTransactionType';
import { IExtendId } from '../autoGenerated';
import { OrderType } from '../order';
import { IProject } from '../project';
import * as TaskFactory from '../task';
import { TaskName } from '../taskName';
import { TransactionStatusType } from '../transactionStatusType';

export interface IPurposeAsOrder {
typeOf: 'Order';
typeOf: OrderType.Order;
confirmationNumber: string;
orderNumber: string;
}
Expand All @@ -19,9 +20,15 @@ export interface IObjectAsPayTransaction {
paymentMethod?: { identifier?: string };
};
}
export interface IObjectAsReserveTransaction {
typeOf: AssetTransactionType.Reserve | 'COAReserveTransaction';
transactionNumber: string;
status: TransactionStatusType.Confirmed;
}
export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction;
export interface IData {
project: Pick<IProject, 'id' | 'typeOf'>;
object: IObjectAsPayTransaction;
object: IObject;
purpose: IPurposeAsOrder;
useOnOrderStatusChanged: boolean;
}
Expand Down

0 comments on commit 7b8bcb3

Please sign in to comment.