@chevre/factory 9.5.0-alpha.8 → 10.0.0-alpha.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.
- package/lib/chevre/action/accept/pay.d.ts +4 -5
- package/lib/chevre/action/authorize/offer/eventService.d.ts +3 -29
- package/lib/chevre/action/authorize/offer/eventService.js +0 -1
- package/lib/chevre/action/trade/pay.d.ts +4 -10
- package/lib/chevre/assetTransaction/pay.d.ts +7 -4
- package/lib/chevre/recipe/publishPaymentUrl.d.ts +12 -2
- package/lib/chevre/task/authorizePayment.d.ts +3 -5
- package/lib/chevre/task/publishPaymentUrl.d.ts +13 -9
- package/lib/chevre/transaction/placeOrder.d.ts +3 -47
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IAction as IBaseAction } from '../../action';
|
|
2
|
-
import {
|
|
2
|
+
import { IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
|
|
3
3
|
import { ActionType } from '../../actionType';
|
|
4
4
|
import { IAgent, IObjectWithoutDetail, IPaymentMethodWithoutDetail } from '../../assetTransaction/pay';
|
|
5
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
6
|
-
import {
|
|
6
|
+
import { IExecTran3dsResult, IExecTranResult, IRecipe } from '../../recipe/publishPaymentUrl';
|
|
7
7
|
import { TransactionType } from '../../transactionType';
|
|
8
8
|
import { IAttributes as IBaseAttributes } from '../accept';
|
|
9
|
-
export {
|
|
9
|
+
export { IExecTran3dsResult, IExecTranResult, IAgent, IRecipe };
|
|
10
10
|
export type IPaymentMethod = Pick<IPaymentMethodWithoutDetail, 'amount' | 'creditCard' | 'identifier' | 'method'>;
|
|
11
11
|
/**
|
|
12
12
|
* 採用する決済方法
|
|
@@ -24,13 +24,12 @@ export interface IObject {
|
|
|
24
24
|
}
|
|
25
25
|
export interface IResult {
|
|
26
26
|
paymentMethodId: string;
|
|
27
|
-
paymentUrl: string;
|
|
28
27
|
}
|
|
29
28
|
export interface IPurpose {
|
|
30
29
|
typeOf: TransactionType.PlaceOrder;
|
|
31
30
|
id: string;
|
|
32
31
|
}
|
|
33
|
-
export type IInstrument = IPaymentMethodTicketAsInstrument
|
|
32
|
+
export type IInstrument = IPaymentMethodTicketAsInstrument;
|
|
34
33
|
/**
|
|
35
34
|
* 決済採用アクション属性
|
|
36
35
|
*/
|
|
@@ -1,52 +1,26 @@
|
|
|
1
1
|
import { IAction as IBaseAction } from '../../../action';
|
|
2
2
|
import { ActionType } from '../../../actionType';
|
|
3
|
-
import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail
|
|
4
|
-
import { IEvent } from '../../../event/screeningEvent';
|
|
3
|
+
import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail } from '../../../assetTransaction/reserve';
|
|
5
4
|
import { OfferType } from '../../../offerType';
|
|
6
|
-
import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
|
|
7
|
-
import { ITicketOffer } from '../../../product';
|
|
8
5
|
import { IAttributes as IBaseAttributes } from '../../authorize';
|
|
9
6
|
import { IAgent, IError, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IPurpose, IRecipient, ObjectType } from './any';
|
|
10
7
|
export { IAgent, IRecipient, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IError, IPurpose, ObjectType, };
|
|
11
8
|
export type IInstrumentAsAssetTransaction = IInstrumentAsCOAReserveTransaction | IInstrumentAsReserveTransaction;
|
|
12
|
-
export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
|
|
13
|
-
typeOf: OfferType.Offer;
|
|
14
|
-
id: string;
|
|
15
|
-
includesObject: {
|
|
16
|
-
amountOfThisGood: number;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* 取引確定時の検証に必要な情報のみ保管する
|
|
20
|
-
*/
|
|
21
|
-
priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity'>;
|
|
22
|
-
}
|
|
23
|
-
export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService)[];
|
|
24
9
|
/**
|
|
25
10
|
* オファー承認結果としての集計オファー
|
|
26
11
|
*/
|
|
27
12
|
export interface IResult {
|
|
28
13
|
typeOf: OfferType.AggregateOffer;
|
|
29
|
-
/**
|
|
30
|
-
* オファーIDごとの集計
|
|
31
|
-
*/
|
|
32
|
-
offers?: IAcceptedOfferInResult[];
|
|
33
|
-
itemOffered?: {
|
|
34
|
-
serviceOutput: {
|
|
35
|
-
/**
|
|
36
|
-
* programMembershipUsed required(2024-08-15~)
|
|
37
|
-
*/
|
|
38
|
-
programMembershipUsed: IAggregateProgramMembershipUsed;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
14
|
/**
|
|
42
15
|
* 決済金額
|
|
43
16
|
* オファー未指定の場合、金額非確定なので、この属性は存在しない
|
|
44
17
|
*/
|
|
45
18
|
price?: number;
|
|
19
|
+
offers?: never;
|
|
20
|
+
itemOffered?: never;
|
|
46
21
|
}
|
|
47
22
|
export type IAcceptedOfferWithoutDetail = IAcceptedTicketOfferWithoutDetail;
|
|
48
23
|
export { IObjectWithoutDetail };
|
|
49
|
-
export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'>;
|
|
50
24
|
/**
|
|
51
25
|
* 興行オファー承認アクション対象
|
|
52
26
|
*/
|
|
@@ -4,7 +4,6 @@ import { ActionType } from '../../actionType';
|
|
|
4
4
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
5
5
|
import { CreativeWorkType } from '../../creativeWorkType';
|
|
6
6
|
import { IPaymentServiceOutput } from '../../invoice';
|
|
7
|
-
import { OfferType } from '../../offerType';
|
|
8
7
|
import { IOrder, ITotalPaymentDue, OrderType } from '../../order';
|
|
9
8
|
import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
|
|
10
9
|
import { IPropertyValue } from '../../propertyValue';
|
|
@@ -111,20 +110,15 @@ export interface IPaymentMethodTicketAsInstrument {
|
|
|
111
110
|
ticketToken: string;
|
|
112
111
|
typeOf: 'Ticket';
|
|
113
112
|
}
|
|
113
|
+
export type IAcceptedPaymentMethodOfferAsInstrument = never;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* 決済取引のinstrument
|
|
116
116
|
*/
|
|
117
|
-
export
|
|
118
|
-
/**
|
|
119
|
-
* 対応決済方法オファーID
|
|
120
|
-
*/
|
|
121
|
-
id: string;
|
|
122
|
-
typeOf: OfferType.Offer;
|
|
123
|
-
}
|
|
117
|
+
export type IPayTransactionInstrument = IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument;
|
|
124
118
|
/**
|
|
125
119
|
* 注文時の決済アクションツール
|
|
126
120
|
*/
|
|
127
|
-
export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument |
|
|
121
|
+
export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IPayTransactionInstrument;
|
|
128
122
|
/**
|
|
129
123
|
* 注文返品時の決済アクションツール
|
|
130
124
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAction as IPayAction, ILocation, IMovieTicket, IOrderAsPayPurpose,
|
|
1
|
+
import { IAction as IPayAction, ILocation, IMovieTicket, IOrderAsPayPurpose, IPayTransactionInstrument, IRecipient as IPayRecipient } from '../action/trade/pay';
|
|
2
2
|
import { IAgentAsSeller, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../assetTransaction';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { IExtendId } from '../autoGenerated';
|
|
@@ -115,7 +115,6 @@ export interface IPaymentServiceAsObject {
|
|
|
115
115
|
id: string;
|
|
116
116
|
paymentMethod: IPaymentMethod;
|
|
117
117
|
pendingTransaction?: never;
|
|
118
|
-
accountsReceivablesByServiceType?: never;
|
|
119
118
|
/**
|
|
120
119
|
* 既存決済カード認証アクション(2024-12-13~)
|
|
121
120
|
* PaymentServiceType.MovieTicketのみ
|
|
@@ -123,7 +122,11 @@ export interface IPaymentServiceAsObject {
|
|
|
123
122
|
checkedAction?: {
|
|
124
123
|
id: string;
|
|
125
124
|
};
|
|
126
|
-
|
|
125
|
+
/**
|
|
126
|
+
* 関連注文情報
|
|
127
|
+
* 2025-11-24移行必須化
|
|
128
|
+
*/
|
|
129
|
+
serviceOutput: IInvoiceAsPaymentServiceOutput;
|
|
127
130
|
}
|
|
128
131
|
export type IObject = IPaymentServiceAsObject;
|
|
129
132
|
export interface IPaymentMethodWithoutDetail extends Pick<IPaymentMethod, 'accountId' | 'additionalProperty' | 'creditCard' | 'description' | 'identifier' | 'method' | 'movieTickets' | 'name'> {
|
|
@@ -153,7 +156,7 @@ export interface IStartParams extends IBaseStartParams<AssetTransactionType.Pay,
|
|
|
153
156
|
/**
|
|
154
157
|
* add(2025-02-18~)
|
|
155
158
|
*/
|
|
156
|
-
instrument?:
|
|
159
|
+
instrument?: IPayTransactionInstrument[];
|
|
157
160
|
}
|
|
158
161
|
export interface IOptimizedPayAction4order {
|
|
159
162
|
object: {
|
|
@@ -3,9 +3,19 @@ import { IHowToDirection as IBaseHowToDirection, IHowToSection as IBaseHowToSect
|
|
|
3
3
|
export type IEntryTranArgs = GMOFactory.service.credit.IEntryTranArgs;
|
|
4
4
|
export type IEntryTranResult = GMOFactory.service.credit.IEntryTranResult;
|
|
5
5
|
export type IExecTranArgs = GMOFactory.service.credit.IExecTranArgs;
|
|
6
|
-
export type IExecTranResult = GMOFactory.service.credit.IExecTranResult
|
|
6
|
+
export type IExecTranResult = GMOFactory.service.credit.IExecTranResult & {
|
|
7
|
+
/**
|
|
8
|
+
* IExecTran3dsResultの場合にのみ存在
|
|
9
|
+
*/
|
|
10
|
+
redirectUrl?: never;
|
|
11
|
+
};
|
|
7
12
|
export type IExecTran3dsArgs = GMOFactory.service.credit.IExecTran3dsArgs;
|
|
8
|
-
export type IExecTran3dsResult = GMOFactory.service.credit.IExecTran3dsResult
|
|
13
|
+
export type IExecTran3dsResult = GMOFactory.service.credit.IExecTran3dsResult & {
|
|
14
|
+
/**
|
|
15
|
+
* IExecTranResultの場合にのみ存在
|
|
16
|
+
*/
|
|
17
|
+
acsUrl?: never;
|
|
18
|
+
};
|
|
9
19
|
export interface IDirectionEntryTran extends IBaseHowToDirection {
|
|
10
20
|
beforeMedia?: IEntryTranArgs;
|
|
11
21
|
afterMedia?: IEntryTranResult;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { IObjectWithoutDetail, IPurpose } from '../action/authorize/paymentMethod/any';
|
|
2
|
-
import {
|
|
2
|
+
import { ILocation } from '../action/trade/pay';
|
|
3
3
|
import { IExtendId } from '../autoGenerated';
|
|
4
4
|
import { PaymentServiceType } from '../service/paymentService';
|
|
5
5
|
import { ITaskAttributes } from '../task';
|
|
6
6
|
import { TaskName } from '../taskName';
|
|
7
|
-
export type IInstrument =
|
|
7
|
+
export type IInstrument = never;
|
|
8
8
|
export interface IData {
|
|
9
|
-
project: {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
9
|
agent: {
|
|
13
10
|
id: string;
|
|
14
11
|
};
|
|
@@ -33,6 +30,7 @@ export interface IData {
|
|
|
33
30
|
* クレジットカードIFあるいは決済カードIFの場合に対応決済方法オファーを指定する
|
|
34
31
|
*/
|
|
35
32
|
instrument?: IInstrument[];
|
|
33
|
+
project?: never;
|
|
36
34
|
}
|
|
37
35
|
export interface IAttributes extends ITaskAttributes {
|
|
38
36
|
name: TaskName.AuthorizePayment;
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
import { IAuthorizeCreditCardObject, IPurpose } from '../action/authorize/paymentMethod/any';
|
|
2
|
-
import {
|
|
2
|
+
import { ILocation } from '../action/trade/pay';
|
|
3
3
|
import { IExtendId } from '../autoGenerated';
|
|
4
4
|
import { PaymentServiceType } from '../service/paymentService';
|
|
5
5
|
import { ITaskAttributes } from '../task';
|
|
6
6
|
import { TaskName } from '../taskName';
|
|
7
|
-
export type IInstrument =
|
|
7
|
+
export type IInstrument = never;
|
|
8
8
|
export interface IData {
|
|
9
|
-
project: {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
9
|
agent: {
|
|
13
10
|
id: string;
|
|
14
11
|
};
|
|
15
|
-
object: Pick<IAuthorizeCreditCardObject, 'amount' | 'creditCard' | 'issuedThrough' | 'method' | 'paymentMethod' | 'referencesOrder'>;
|
|
12
|
+
object: Pick<IAuthorizeCreditCardObject, 'amount' | 'creditCard' | 'issuedThrough' | 'method' | 'paymentMethod' | 'referencesOrder' | 'ticketToken'>;
|
|
16
13
|
purpose: IPurpose;
|
|
17
|
-
paymentServiceType: PaymentServiceType;
|
|
14
|
+
paymentServiceType: PaymentServiceType.CreditCard;
|
|
18
15
|
location: ILocation;
|
|
19
16
|
/**
|
|
20
17
|
* add identifier for an unique index(2025-02-25~)
|
|
21
|
-
*
|
|
18
|
+
* 採用アクション識別子
|
|
19
|
+
*/
|
|
20
|
+
identifier: string;
|
|
21
|
+
/**
|
|
22
|
+
* 注文取引に決済方法IDを保管するかどうかのオプション
|
|
23
|
+
* 2026-07-16~
|
|
24
|
+
* 一時的にサポート
|
|
22
25
|
*/
|
|
23
|
-
|
|
26
|
+
savePaymentMethodIdInTransaction?: boolean;
|
|
24
27
|
/**
|
|
25
28
|
* クレジットカードIFあるいは決済カードIFの場合に対応決済方法オファーを指定する
|
|
26
29
|
*/
|
|
27
30
|
instrument?: IInstrument[];
|
|
31
|
+
project?: never;
|
|
28
32
|
}
|
|
29
33
|
export interface IAttributes extends ITaskAttributes {
|
|
30
34
|
name: TaskName.PublishPaymentUrl;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IAttributes as ISendEmailMessageActionAttributes } from '../action/transfer/send/message/email';
|
|
2
1
|
import { IExtendId } from '../autoGenerated';
|
|
3
2
|
import { IClientUser } from '../clientUser';
|
|
4
3
|
import { CreativeWorkType } from '../creativeWorkType';
|
|
5
|
-
import { IAgent as IBaseAgent, ISeller as IBaseSeller, ISearchConditions as IBaseSearchConditions,
|
|
4
|
+
import { IAgent as IBaseAgent, ISeller as IBaseSeller, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
|
|
6
5
|
import { TransactionType } from '../transactionType';
|
|
7
6
|
export interface IMemberOfPayload {
|
|
8
7
|
iss: string;
|
|
@@ -18,13 +17,6 @@ export type IAgent = IBaseAgent & {
|
|
|
18
17
|
memberOfToken?: string;
|
|
19
18
|
memberOfPayload?: never;
|
|
20
19
|
};
|
|
21
|
-
export interface IPaymentMethodByPaymentUrl {
|
|
22
|
-
/**
|
|
23
|
-
* 決済採用時に発行済の決済方法ID
|
|
24
|
-
* 決済承認時に指定が可能
|
|
25
|
-
*/
|
|
26
|
-
paymentMethodId: string;
|
|
27
|
-
}
|
|
28
20
|
export interface IObject {
|
|
29
21
|
/**
|
|
30
22
|
* passportによって決定するカスタマータイプ
|
|
@@ -38,16 +30,13 @@ export interface IObject {
|
|
|
38
30
|
* 注文番号
|
|
39
31
|
*/
|
|
40
32
|
orderNumber?: string;
|
|
41
|
-
/**
|
|
42
|
-
* 決済URLでの決済情報
|
|
43
|
-
*/
|
|
44
|
-
paymentMethods?: IPaymentMethodByPaymentUrl;
|
|
45
33
|
/**
|
|
46
34
|
* 取引確定時にセットされる
|
|
47
35
|
* 確定取引であれば存在するはず
|
|
48
36
|
* 2026-06-15~
|
|
49
37
|
*/
|
|
50
38
|
orderDate?: Date;
|
|
39
|
+
paymentMethods?: never;
|
|
51
40
|
customer?: never;
|
|
52
41
|
name?: never;
|
|
53
42
|
identifier?: never;
|
|
@@ -80,20 +69,6 @@ export interface IStartParams extends Pick<IBaseStartParams<TransactionType.Plac
|
|
|
80
69
|
expiresInSeconds: number;
|
|
81
70
|
instrument?: IInstrument;
|
|
82
71
|
}
|
|
83
|
-
/**
|
|
84
|
-
* 取引確定後アクションパラメータ
|
|
85
|
-
*/
|
|
86
|
-
export interface IPotentialActionsParams {
|
|
87
|
-
order?: {
|
|
88
|
-
potentialActions?: {
|
|
89
|
-
sendOrder?: {
|
|
90
|
-
potentialActions?: {
|
|
91
|
-
sendEmailMessage?: ISendEmailMessageParams[];
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
72
|
/**
|
|
98
73
|
* 取引確定パラメータ
|
|
99
74
|
*/
|
|
@@ -105,10 +80,6 @@ export interface IConfirmParams {
|
|
|
105
80
|
agent?: {
|
|
106
81
|
id?: string;
|
|
107
82
|
};
|
|
108
|
-
/**
|
|
109
|
-
* 取引確定後アクション
|
|
110
|
-
*/
|
|
111
|
-
potentialActions?: IPotentialActionsParams;
|
|
112
83
|
}
|
|
113
84
|
export interface IAuthorizeActionAsResult {
|
|
114
85
|
id: string;
|
|
@@ -133,22 +104,7 @@ export interface IResult {
|
|
|
133
104
|
* エラー
|
|
134
105
|
*/
|
|
135
106
|
export type IError = any;
|
|
136
|
-
export type
|
|
137
|
-
export interface IPotentialSendOrderAction {
|
|
138
|
-
potentialActions?: {
|
|
139
|
-
sendEmailMessage?: IPotentialSendEmailMessageAction[];
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
export interface IOrderPotentialActions {
|
|
143
|
-
sendOrder?: IPotentialSendOrderAction;
|
|
144
|
-
}
|
|
145
|
-
export interface IPotentialActions {
|
|
146
|
-
order: {
|
|
147
|
-
onOrderProcessing?: {
|
|
148
|
-
sendEmailMessage?: IPotentialSendEmailMessageAction[];
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
}
|
|
107
|
+
export type IPotentialActions = never;
|
|
152
108
|
export interface IAttributes extends IBaseAttributes<Omit<IStartParams, 'expiresInSeconds'>, IResult, IError, IPotentialActions> {
|
|
153
109
|
}
|
|
154
110
|
/**
|