@chevre/factory 4.216.0 → 4.217.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,14 +7,18 @@ import { AssetTransactionType } from '../../assetTransactionType';
|
|
|
7
7
|
import { IPaymentServiceOutput } from '../../invoice';
|
|
8
8
|
import { IMonetaryAmount } from '../../monetaryAmount';
|
|
9
9
|
import { OrderType } from '../../order';
|
|
10
|
+
import { OrganizationType } from '../../organizationType';
|
|
10
11
|
import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
|
|
11
12
|
import { IPropertyValue } from '../../propertyValue';
|
|
12
13
|
import { ISeller } from '../../seller';
|
|
13
14
|
import { PaymentServiceType } from '../../service/paymentService';
|
|
14
15
|
import { TransactionType } from '../../transactionType';
|
|
15
16
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
16
|
-
export
|
|
17
|
-
|
|
17
|
+
export interface IAgent {
|
|
18
|
+
id: string;
|
|
19
|
+
typeOf: OrganizationType.Project;
|
|
20
|
+
}
|
|
21
|
+
export declare type IRecipient = Omit<ISeller, 'branchCode' | 'paymentAccepted'>;
|
|
18
22
|
export interface IOrderAsPayPurpose {
|
|
19
23
|
typeOf: OrderType.Order;
|
|
20
24
|
confirmationNumber?: string;
|
|
@@ -116,12 +120,13 @@ export interface IResult {
|
|
|
116
120
|
seatInfoSyncResult?: any;
|
|
117
121
|
}
|
|
118
122
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult> {
|
|
123
|
+
agent: IAgent;
|
|
119
124
|
instrument?: IInstrument;
|
|
120
125
|
potentialActions?: IPotentialActions;
|
|
121
126
|
purpose: IPurpose;
|
|
122
|
-
recipient
|
|
127
|
+
recipient: IRecipient;
|
|
123
128
|
}
|
|
124
129
|
/**
|
|
125
|
-
*
|
|
130
|
+
* 決済アクション
|
|
126
131
|
*/
|
|
127
132
|
export declare type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
+
import { ISeller } from '../../seller';
|
|
3
4
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
4
5
|
import { IPaymentService as IPaymentServiceOnPay, IPayPurpose } from './pay';
|
|
6
|
+
/**
|
|
7
|
+
* agentはSeller
|
|
8
|
+
*/
|
|
9
|
+
export interface IAgentAsSeller extends Omit<ISeller, 'branchCode' | 'paymentAccepted'> {
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type IAgent = IAgentAsSeller | ActionFactory.IParticipant;
|
|
5
13
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
6
14
|
export declare type IPaymentService = IPaymentServiceOnPay & {
|
|
7
15
|
refundFee?: number;
|
|
@@ -14,6 +22,7 @@ export interface IPotentialActions {
|
|
|
14
22
|
}
|
|
15
23
|
export declare type IPurpose = IPayPurpose;
|
|
16
24
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult> {
|
|
25
|
+
agent: IAgent;
|
|
17
26
|
recipient?: IRecipient;
|
|
18
27
|
purpose: IPurpose;
|
|
19
28
|
potentialActions?: IPotentialActions;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as GMO from '@motionpicture/gmo-service';
|
|
2
|
-
import {
|
|
2
|
+
import { IParticipant } from '../action';
|
|
3
|
+
import { IAttributes as IPayActionAttributes, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient } from '../action/trade/pay';
|
|
3
4
|
import * as TransactionFactory from '../assetTransaction';
|
|
4
5
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
6
|
import { IExtendId } from '../autoGenerated';
|
|
@@ -9,13 +10,15 @@ import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
|
|
|
9
10
|
import { IOnPaymentStatusChanged } from '../project';
|
|
10
11
|
import { IPropertyValue } from '../propertyValue';
|
|
11
12
|
import { PaymentServiceType } from '../service/paymentService';
|
|
12
|
-
export declare type IAgent =
|
|
13
|
+
export declare type IAgent = IParticipant;
|
|
13
14
|
export declare type IRecipient = IPayRecipient;
|
|
14
15
|
export declare type IObjectWithoutDetail = IObject;
|
|
15
16
|
export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> & {
|
|
17
|
+
recipient: IRecipient;
|
|
16
18
|
purpose?: IPayPurpose;
|
|
17
19
|
};
|
|
18
20
|
export interface IStartParams extends TransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
|
|
21
|
+
recipient: IRecipient;
|
|
19
22
|
}
|
|
20
23
|
export interface IPotentialActionsParams {
|
|
21
24
|
pay: {
|