@chevre/factory 9.5.0-alpha.4 → 9.5.0-alpha.6
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.
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { IParticipantAsWebApplication, IParticipantAsPerson, IParticipantAsSeller, IAction as IBaseAction } from '../../../action';
|
|
2
2
|
import { AvailablePaymentMethodType, IMovieTicket } from '../../../action/trade/pay';
|
|
3
3
|
import { ActionType } from '../../../actionType';
|
|
4
|
-
import { ICreditCard,
|
|
4
|
+
import { ICreditCard, IInvoiceReferenceOrder } from '../../../assetTransaction/pay';
|
|
5
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
6
|
import { IOrderPaymentMethodIssuedThrough, ITotalPaymentDue } from '../../../order';
|
|
7
7
|
import { PaymentStatusType } from '../../../paymentStatusType';
|
|
8
8
|
import { IPropertyValue } from '../../../propertyValue';
|
|
9
|
-
import { IPermitAsServiceOutput } from '../../../service/paymentService';
|
|
10
9
|
import { TransactionType } from '../../../transactionType';
|
|
11
10
|
import { IAttributes as IBaseAttributes } from '../../authorize';
|
|
12
11
|
export type IAgent = IParticipantAsWebApplication | IParticipantAsPerson;
|
|
@@ -14,7 +13,7 @@ export type IRecipient = IParticipantAsSeller;
|
|
|
14
13
|
export declare enum ResultType {
|
|
15
14
|
Payment = "Payment"
|
|
16
15
|
}
|
|
17
|
-
export { ICreditCard
|
|
16
|
+
export { ICreditCard };
|
|
18
17
|
export interface IObjectIncludingPaymentMethodDetails {
|
|
19
18
|
/**
|
|
20
19
|
* The identifier for the account the payment will be applied to.
|
|
@@ -58,10 +57,6 @@ export interface IObjectIncludingPaymentMethodDetails {
|
|
|
58
57
|
*/
|
|
59
58
|
id: string;
|
|
60
59
|
};
|
|
61
|
-
/**
|
|
62
|
-
* 転送元(PaymentCard決済)
|
|
63
|
-
*/
|
|
64
|
-
fromLocation?: IFromLocation;
|
|
65
60
|
/**
|
|
66
61
|
* 支払い方法(CreditCard決済)
|
|
67
62
|
*/
|
|
@@ -87,7 +82,6 @@ export type IAuthorizeAnyPaymentObject = Pick<IObjectIncludingPaymentMethodDetai
|
|
|
87
82
|
method?: never;
|
|
88
83
|
movieTickets?: never;
|
|
89
84
|
paymentMethodId?: never;
|
|
90
|
-
fromLocation?: never;
|
|
91
85
|
description?: never;
|
|
92
86
|
referencesOrder?: never;
|
|
93
87
|
};
|
|
@@ -102,7 +96,6 @@ export type IAuthorizeCreditCardObject = Pick<IObjectIncludingPaymentMethodDetai
|
|
|
102
96
|
*/
|
|
103
97
|
referencesOrder?: IInvoiceReferenceOrder;
|
|
104
98
|
movieTickets?: never;
|
|
105
|
-
fromLocation?: never;
|
|
106
99
|
description?: never;
|
|
107
100
|
};
|
|
108
101
|
export type IAuthorizeMovieTicketObject = Pick<IObjectIncludingPaymentMethodDetails, 'issuedThrough' | 'paymentMethod' | 'movieTickets' | 'name' | 'additionalProperty' | 'ticketToken'> & {
|
|
@@ -113,23 +106,13 @@ export type IAuthorizeMovieTicketObject = Pick<IObjectIncludingPaymentMethodDeta
|
|
|
113
106
|
creditCard?: never;
|
|
114
107
|
method?: never;
|
|
115
108
|
paymentMethodId?: never;
|
|
116
|
-
fromLocation?: never;
|
|
117
109
|
description?: never;
|
|
118
110
|
referencesOrder?: never;
|
|
119
111
|
};
|
|
120
|
-
export type IAuthorizePaymentCardObject = Pick<IObjectIncludingPaymentMethodDetails, 'amount' | 'issuedThrough' | 'paymentMethod' | 'fromLocation' | 'name' | 'additionalProperty'> & {
|
|
121
|
-
description?: string;
|
|
122
|
-
creditCard?: never;
|
|
123
|
-
method?: never;
|
|
124
|
-
movieTickets?: never;
|
|
125
|
-
ticketToken?: never;
|
|
126
|
-
paymentMethodId?: never;
|
|
127
|
-
referencesOrder?: never;
|
|
128
|
-
};
|
|
129
112
|
/**
|
|
130
113
|
* 決済承認リクエストの承認対象オブジェクト
|
|
131
114
|
*/
|
|
132
|
-
export type IObjectWithoutDetail = IAuthorizeAnyPaymentObject | IAuthorizeCreditCardObject | IAuthorizeMovieTicketObject
|
|
115
|
+
export type IObjectWithoutDetail = IAuthorizeAnyPaymentObject | IAuthorizeCreditCardObject | IAuthorizeMovieTicketObject;
|
|
133
116
|
/**
|
|
134
117
|
* 決済承認アクションオブジェクト
|
|
135
118
|
* paymentMethodIdが決済取引の取引番号に等しい
|
|
@@ -174,12 +157,12 @@ export interface IResultAsInvoice {
|
|
|
174
157
|
/**
|
|
175
158
|
* The total amount due.
|
|
176
159
|
*/
|
|
177
|
-
totalPaymentDue
|
|
160
|
+
totalPaymentDue: ITotalPaymentDue;
|
|
178
161
|
/**
|
|
179
162
|
* 追加特性
|
|
180
163
|
*/
|
|
181
164
|
additionalProperty?: IPropertyValue<string>[];
|
|
182
|
-
typeOf: ResultType;
|
|
165
|
+
typeOf: ResultType.Payment;
|
|
183
166
|
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
184
167
|
/**
|
|
185
168
|
* 請求の関連注文
|
|
@@ -187,13 +170,9 @@ export interface IResultAsInvoice {
|
|
|
187
170
|
*/
|
|
188
171
|
referencesOrder?: IInvoiceReferenceOrder;
|
|
189
172
|
}
|
|
190
|
-
export type
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
*/
|
|
194
|
-
identifier: string;
|
|
195
|
-
};
|
|
196
|
-
export type IResult = [IResultAsInvoice, IResultAsPermit?];
|
|
173
|
+
export type IResult = [
|
|
174
|
+
IResultAsInvoice
|
|
175
|
+
];
|
|
197
176
|
export interface IPurpose {
|
|
198
177
|
typeOf: TransactionType.PlaceOrder;
|
|
199
178
|
id: string;
|
package/lib/chevre/action.d.ts
CHANGED
|
@@ -82,9 +82,6 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
|
|
|
82
82
|
* アクションタイプ
|
|
83
83
|
*/
|
|
84
84
|
typeOf: T;
|
|
85
|
-
amount?: any;
|
|
86
|
-
fromLocation?: any;
|
|
87
|
-
toLocation?: any;
|
|
88
85
|
replacer?: any;
|
|
89
86
|
targetCollection?: any;
|
|
90
87
|
cancelAction?: any;
|
|
@@ -281,26 +278,4 @@ export interface ISearchConditions {
|
|
|
281
278
|
$eq?: string;
|
|
282
279
|
};
|
|
283
280
|
};
|
|
284
|
-
fromLocation?: {
|
|
285
|
-
typeOf?: {
|
|
286
|
-
$in?: string[];
|
|
287
|
-
};
|
|
288
|
-
accountNumber?: {
|
|
289
|
-
$in?: string[];
|
|
290
|
-
};
|
|
291
|
-
accountType?: {
|
|
292
|
-
$in?: string[];
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
toLocation?: {
|
|
296
|
-
typeOf?: {
|
|
297
|
-
$in?: string[];
|
|
298
|
-
};
|
|
299
|
-
accountNumber?: {
|
|
300
|
-
$in?: string[];
|
|
301
|
-
};
|
|
302
|
-
accountType?: {
|
|
303
|
-
$in?: string[];
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
281
|
}
|
|
@@ -10,11 +10,6 @@ import { IPropertyValue } from '../propertyValue';
|
|
|
10
10
|
import { IPotentialAction as IPotentialInformAction, PaymentServiceType } from '../service/paymentService';
|
|
11
11
|
export type IAgent = IAgentAsSeller;
|
|
12
12
|
export type IRecipient = IPayRecipient;
|
|
13
|
-
/**
|
|
14
|
-
* ペイメントカードトークン
|
|
15
|
-
*/
|
|
16
|
-
export type ITokenizedPaymentCard = string;
|
|
17
|
-
export type IFromLocation = ITokenizedPaymentCard;
|
|
18
13
|
/**
|
|
19
14
|
* クレジットカード決済承認に必要なクレジットカードインターフェース
|
|
20
15
|
*/
|
|
@@ -33,10 +28,11 @@ export interface IPaymentMethod {
|
|
|
33
28
|
*/
|
|
34
29
|
additionalProperty?: IPropertyValue<string>[];
|
|
35
30
|
/**
|
|
36
|
-
*
|
|
31
|
+
* 金額
|
|
32
|
+
* 通貨はJPY、あるいは、決済サービスのカード通貨区分が自動的に適用される
|
|
37
33
|
* MonetaryAmount対応(2023-08-12~)
|
|
38
34
|
*/
|
|
39
|
-
amount:
|
|
35
|
+
amount: IPaymentMethodAmount;
|
|
40
36
|
/**
|
|
41
37
|
* 説明
|
|
42
38
|
*/
|
|
@@ -47,17 +43,13 @@ export interface IPaymentMethod {
|
|
|
47
43
|
*/
|
|
48
44
|
name?: string;
|
|
49
45
|
/**
|
|
50
|
-
*
|
|
46
|
+
* JPYとしての金額、あるいは、決済カードの枚数
|
|
51
47
|
*/
|
|
52
|
-
totalPaymentDue
|
|
48
|
+
totalPaymentDue: ITotalPaymentDue;
|
|
53
49
|
/**
|
|
54
50
|
* 決済方法区分
|
|
55
51
|
*/
|
|
56
52
|
identifier: string;
|
|
57
|
-
/**
|
|
58
|
-
* 出金元ペイメントカード
|
|
59
|
-
*/
|
|
60
|
-
fromLocation?: IFromLocation;
|
|
61
53
|
/**
|
|
62
54
|
* 決済カードリスト
|
|
63
55
|
*/
|
|
@@ -134,13 +126,13 @@ export interface IPaymentServiceAsObject {
|
|
|
134
126
|
serviceOutput?: IInvoiceAsPaymentServiceOutput;
|
|
135
127
|
}
|
|
136
128
|
export type IObject = IPaymentServiceAsObject;
|
|
137
|
-
export interface IPaymentMethodWithoutDetail extends IPaymentMethod {
|
|
129
|
+
export interface IPaymentMethodWithoutDetail extends Pick<IPaymentMethod, 'accountId' | 'additionalProperty' | 'creditCard' | 'description' | 'identifier' | 'method' | 'movieTickets' | 'name'> {
|
|
138
130
|
/**
|
|
139
131
|
* 取引開始前の指定ではnumberに限定
|
|
140
132
|
*/
|
|
141
133
|
amount: number;
|
|
142
134
|
}
|
|
143
|
-
export interface IObjectWithoutDetail extends Pick<IObject, 'serviceOutput' | 'typeOf' | 'id'
|
|
135
|
+
export interface IObjectWithoutDetail extends Pick<IObject, 'serviceOutput' | 'typeOf' | 'id'> {
|
|
144
136
|
paymentMethod: IPaymentMethodWithoutDetail;
|
|
145
137
|
}
|
|
146
138
|
export type IPotentialAction = IPotentialInformAction;
|