-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
185 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
import * as ActionFactory from '../../../action'; | ||
import { ActionType } from '../../../actionType'; | ||
import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer'; | ||
import { AssetTransactionType } from '../../../assetTransactionType'; | ||
import { IOffer } from '../../../offer'; | ||
import * as OrderFactory from '../../../order'; | ||
import { PriceCurrency } from '../../../priceCurrency'; | ||
import { TransactionType } from '../../../transactionType'; | ||
import * as AuthorizeActionFactory from '../../authorize'; | ||
|
||
// 最適化(2022-06-01~) | ||
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsSeller; | ||
// 最適化(2022-06-01~) | ||
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson; | ||
export type IRequestBody = any; | ||
export type IRequestBody = MoneyTransferTransactionFactory.IStartParamsWithoutDetail; | ||
export type IResponseBody = MoneyTransferTransactionFactory.ITransaction; | ||
export import IPendingTransaction = OrderFactory.IMoneyTransferPendingTransaction; | ||
export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IMoneyTransfer>; | ||
export interface IResult { | ||
price: number; | ||
priceCurrency: PriceCurrency; | ||
requestBody?: IRequestBody; | ||
responseBody: IResponseBody; | ||
acceptedOffers: IResultAcceptedOffer[]; | ||
} | ||
export import IItemOffered = OrderFactory.IMoneyTransfer; | ||
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> { | ||
itemOffered: IItemOffered; | ||
// seller: ISeller; | ||
seller: ActionFactory.IParticipantAsSeller; | ||
} | ||
export type IObject = IAcceptedOffer; | ||
|
||
export interface ITransactionPurpose { | ||
typeOf: TransactionType; | ||
id: string; | ||
} | ||
|
||
export type IPurpose = ITransactionPurpose; | ||
|
||
export type IError = any; | ||
|
||
export interface IInstrument { | ||
typeOf: AssetTransactionType.MoneyTransfer; | ||
transactionNumber: string; | ||
} | ||
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> { | ||
typeOf: ActionType.AuthorizeAction; | ||
agent: IAgent; | ||
instrument: IInstrument; | ||
recipient: IRecipient; | ||
object: IObject; | ||
purpose: IPurpose; | ||
} | ||
|
||
export type IAction = ActionFactory.IAction<IAttributes>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.