@chevre/factory 4.325.0-alpha.2 → 4.325.0-alpha.4
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,6 +1,6 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import * as CheckMovieTicketActionFactory from '../../../action/check/paymentMethod/movieTicket';
|
|
3
|
-
import { IMovieTicket } from '../../../action/trade/pay';
|
|
3
|
+
import { AvailablePaymentMethodType, IMovieTicket } from '../../../action/trade/pay';
|
|
4
4
|
import { ActionType } from '../../../actionType';
|
|
5
5
|
import * as PayTransactionFactory from '../../../assetTransaction/pay';
|
|
6
6
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
@@ -15,10 +15,6 @@ export declare type IRecipient = ActionFactory.IParticipantAsSeller;
|
|
|
15
15
|
export declare enum ResultType {
|
|
16
16
|
Payment = "Payment"
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
* 汎用決済方法タイプ
|
|
20
|
-
*/
|
|
21
|
-
export declare type IAnyPaymentMethod = string;
|
|
22
18
|
/**
|
|
23
19
|
* 進行中取引
|
|
24
20
|
*/
|
|
@@ -65,7 +61,7 @@ export interface IObject {
|
|
|
65
61
|
/**
|
|
66
62
|
* 決済方法
|
|
67
63
|
*/
|
|
68
|
-
paymentMethod:
|
|
64
|
+
paymentMethod: AvailablePaymentMethodType;
|
|
69
65
|
/**
|
|
70
66
|
* 決済ID
|
|
71
67
|
*/
|
|
@@ -98,6 +94,18 @@ export interface IObject {
|
|
|
98
94
|
*/
|
|
99
95
|
movieTickets?: IMovieTicket[];
|
|
100
96
|
}
|
|
97
|
+
export interface IResultPaymentMethod {
|
|
98
|
+
/**
|
|
99
|
+
* 決済方法区分
|
|
100
|
+
*/
|
|
101
|
+
typeOf: AvailablePaymentMethodType;
|
|
102
|
+
amount?: {
|
|
103
|
+
/**
|
|
104
|
+
* 決済カード通貨区分
|
|
105
|
+
*/
|
|
106
|
+
currency?: string;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
101
109
|
export interface IResult {
|
|
102
110
|
/**
|
|
103
111
|
* The identifier for the account the payment will be applied to.
|
|
@@ -109,8 +117,14 @@ export interface IResult {
|
|
|
109
117
|
*/
|
|
110
118
|
/**
|
|
111
119
|
* 決済方法
|
|
120
|
+
* @deprecated Use paymentMethodAsObject(2023-08-15~)
|
|
121
|
+
*/
|
|
122
|
+
paymentMethod?: AvailablePaymentMethodType;
|
|
123
|
+
/**
|
|
124
|
+
* 決済方法
|
|
125
|
+
* amount.currencyに対応するために追加(2023-08-13~)
|
|
112
126
|
*/
|
|
113
|
-
|
|
127
|
+
paymentMethodAsObject: IResultPaymentMethod;
|
|
114
128
|
/**
|
|
115
129
|
* 決済ID
|
|
116
130
|
*/
|
|
@@ -161,4 +175,3 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
|
|
|
161
175
|
* 決済承認アクション
|
|
162
176
|
*/
|
|
163
177
|
export declare type IAction = ActionFactory.IAction<IAttributes>;
|
|
164
|
-
export { ITotalPaymentDue };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
|
-
import
|
|
2
|
+
import { IReferencedInvoice, ISimpleOrder } from '../../../order';
|
|
3
3
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../../transfer/send/message/email';
|
|
4
4
|
import * as ReturnActionFactory from '../return';
|
|
5
5
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
6
6
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
7
|
-
export declare type IObject =
|
|
7
|
+
export declare type IObject = IReferencedInvoice;
|
|
8
8
|
export declare type IResult = any;
|
|
9
9
|
export interface IPotentialActions {
|
|
10
10
|
/**
|
|
@@ -12,7 +12,7 @@ export interface IPotentialActions {
|
|
|
12
12
|
*/
|
|
13
13
|
sendEmailMessage?: ISendEmailMessageActionAttributes[];
|
|
14
14
|
}
|
|
15
|
-
export declare type IPurpose =
|
|
15
|
+
export declare type IPurpose = ISimpleOrder;
|
|
16
16
|
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
17
17
|
agent: IAgent;
|
|
18
18
|
recipient: IRecipient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IPaymentMethod, IReturnActionAsPayPurpose } from '../action/trade/pay';
|
|
2
2
|
import { IAttributes as IRefundActionAttributes, IRecipient as IRefundRecipient } from '../action/trade/refund';
|
|
3
3
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
@@ -7,7 +7,6 @@ import { IOnPaymentStatusChanged } from '../project';
|
|
|
7
7
|
import { PaymentServiceType } from '../service/paymentService';
|
|
8
8
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
9
|
export declare type IRecipient = IRefundRecipient;
|
|
10
|
-
export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
|
|
11
10
|
/**
|
|
12
11
|
* 取引対象物
|
|
13
12
|
*/
|
package/lib/order.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ import * as BusReservationFactory from './reservation/busReservation';
|
|
|
25
25
|
import * as EventReservationFactory from './reservation/event';
|
|
26
26
|
import { ReservationType } from './reservationType';
|
|
27
27
|
import { ISeller as IBaseSeller } from './seller';
|
|
28
|
-
import { PaymentServiceType } from './service/paymentService';
|
|
28
|
+
import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
|
|
29
29
|
import { SortType } from './sortType';
|
|
30
30
|
import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
|
|
31
31
|
export interface IProject {
|
|
@@ -35,29 +35,21 @@ export interface IProject {
|
|
|
35
35
|
export declare enum OrderType {
|
|
36
36
|
Order = "Order"
|
|
37
37
|
}
|
|
38
|
-
export interface IOrderPaymentMethodIssuedThroughServiceOutput {
|
|
39
|
-
paymentMethod?: {
|
|
40
|
-
amount?: {
|
|
41
|
-
currency: string;
|
|
42
|
-
value: number;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
38
|
export interface IOrderPaymentMethodIssuedThrough {
|
|
47
39
|
typeOf: PaymentServiceType;
|
|
48
40
|
/**
|
|
49
41
|
* 発行決済サービスID
|
|
50
42
|
*/
|
|
51
43
|
id: string;
|
|
52
|
-
serviceOutput?: IOrderPaymentMethodIssuedThroughServiceOutput;
|
|
53
44
|
}
|
|
54
45
|
export interface ITotalPaymentDue extends Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> {
|
|
55
46
|
value: number;
|
|
56
47
|
}
|
|
48
|
+
export declare type IPaymentMethodOfInvoice = Pick<IPaymentMethodAsServiceOutput, 'amount'>;
|
|
57
49
|
/**
|
|
58
|
-
*
|
|
50
|
+
* 請求
|
|
59
51
|
*/
|
|
60
|
-
export interface
|
|
52
|
+
export interface IReferencedInvoice {
|
|
61
53
|
/**
|
|
62
54
|
* The identifier for the account the payment will be applied to.
|
|
63
55
|
*/
|
|
@@ -70,6 +62,11 @@ export interface IPaymentMethod {
|
|
|
70
62
|
* 決済方法名称
|
|
71
63
|
*/
|
|
72
64
|
name: string;
|
|
65
|
+
/**
|
|
66
|
+
* The name of the credit card or other method of payment for the order.
|
|
67
|
+
* 追加(2023-08-13~)
|
|
68
|
+
*/
|
|
69
|
+
paymentMethod?: IPaymentMethodOfInvoice;
|
|
73
70
|
/**
|
|
74
71
|
* An identifier for the method of payment used (e.g.the last 4 digits of the credit card).
|
|
75
72
|
*/
|
|
@@ -326,7 +323,7 @@ export interface IOrder extends Omit<ISimpleOrder, 'customer'> {
|
|
|
326
323
|
/**
|
|
327
324
|
* payment methods
|
|
328
325
|
*/
|
|
329
|
-
paymentMethods:
|
|
326
|
+
paymentMethods: IReferencedInvoice[];
|
|
330
327
|
/**
|
|
331
328
|
* Returner
|
|
332
329
|
*/
|