Skip to content

Commit

Permalink
redefine payAction.instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Jun 13, 2024
1 parent d485859 commit a7b069e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
- optimize payTransaction.potentialActions
- optimize refundAction.agent
- optimize payTask.data
- redefine payAction.instrument

### Deprecated

Expand Down
13 changes: 10 additions & 3 deletions src/action/trade/pay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ export interface IPotentialActions {
informPayment?: IInformPayment[];
}
export interface IInstrument {
typeOf: string;
// instrumentをpayTransaction化(2024-06-14~)
id: string;
transactionNumber: string;
typeOf: AssetTransactionType.Pay;
// seatInfoSyncIn?: ISeatInfoSyncIn; // discontinue(2024-06-10~)
}
// tslint:disable-next-line:no-empty-interface
Expand All @@ -127,12 +130,16 @@ export interface IAttributes extends Pick<
'agent' | 'error' | 'instrument' | 'location' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'
> {
agent: IAgent;
/**
* redefine IInstrument(2024-06-15~)
* 注文決済の場合、決済取引として存在(2024-06-15~)
* 返品手数料決済の場合、存在しない
*/
instrument?: IInstrument;
potentialActions?: IPotentialActions;
purpose: IPurpose;
recipient: IRecipient;
// add location(2022-11-11~)
location?: ILocation;
location?: ILocation; // add location(2022-11-11~)
}
/**
* 決済アクション
Expand Down

0 comments on commit a7b069e

Please sign in to comment.