@chevre/factory 4.325.0-alpha.0 → 4.325.0-alpha.2
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.
|
@@ -3,7 +3,8 @@ import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation,
|
|
|
3
3
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
|
-
import {
|
|
6
|
+
import { IMonetaryAmount } from '../monetaryAmount';
|
|
7
|
+
import { ITotalPaymentDue } from '../order';
|
|
7
8
|
import { IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
|
|
8
9
|
import { IOnPaymentStatusChanged } from '../project';
|
|
9
10
|
import { IPropertyValue } from '../propertyValue';
|
|
@@ -23,6 +24,9 @@ export import IEntryTranArgs = GMO.factory.credit.IEntryTranArgs;
|
|
|
23
24
|
export import IEntryTranResult = GMO.factory.credit.IEntryTranResult;
|
|
24
25
|
export import IExecTranArgs = GMO.factory.credit.IExecTranArgs;
|
|
25
26
|
export import IExecTranResult = GMO.factory.credit.IExecTranResult;
|
|
27
|
+
export interface IPaymentMethodAmount extends Pick<IMonetaryAmount, 'currency' | 'typeOf' | 'value'> {
|
|
28
|
+
value: number;
|
|
29
|
+
}
|
|
26
30
|
export interface IPaymentMethod {
|
|
27
31
|
/**
|
|
28
32
|
* The identifier for the account the payment will be applied to.
|
|
@@ -34,8 +38,9 @@ export interface IPaymentMethod {
|
|
|
34
38
|
additionalProperty?: IPropertyValue<string>[];
|
|
35
39
|
/**
|
|
36
40
|
* The amount of money.
|
|
41
|
+
* MonetaryAmount対応(2023-08-12~)
|
|
37
42
|
*/
|
|
38
|
-
amount: number;
|
|
43
|
+
amount: number | IPaymentMethodAmount;
|
|
39
44
|
/**
|
|
40
45
|
* 説明
|
|
41
46
|
*/
|
|
@@ -89,7 +94,6 @@ export interface IObject {
|
|
|
89
94
|
* 発行決済サービスID
|
|
90
95
|
*/
|
|
91
96
|
id: string;
|
|
92
|
-
serviceOutput?: IOrderPaymentMethodIssuedThroughServiceOutput;
|
|
93
97
|
paymentMethod: IPaymentMethod;
|
|
94
98
|
pendingTransaction?: IPendingTransaction;
|
|
95
99
|
entryTranArgs?: IEntryTranArgs;
|
|
@@ -100,7 +104,15 @@ export interface IObject {
|
|
|
100
104
|
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
101
105
|
accountsReceivablesByServiceType?: IAccountsReceivableByServiceType[];
|
|
102
106
|
}
|
|
103
|
-
export
|
|
107
|
+
export interface IPaymentMethodWithoutDetail extends IPaymentMethod {
|
|
108
|
+
/**
|
|
109
|
+
* 取引開始前の指定ではnumberに限定
|
|
110
|
+
*/
|
|
111
|
+
amount: number;
|
|
112
|
+
}
|
|
113
|
+
export interface IObjectWithoutDetail extends Pick<IObject, 'typeOf' | 'id' | 'paymentMethod'> {
|
|
114
|
+
paymentMethod: IPaymentMethodWithoutDetail;
|
|
115
|
+
}
|
|
104
116
|
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
|
|
105
117
|
location?: ILocation;
|
|
106
118
|
recipient: IRecipient;
|
package/lib/invoice.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export interface IMovieTicketAsPaymentServiceOutput {
|
|
|
57
57
|
serviceOutput?: IReservation;
|
|
58
58
|
amount?: IAmountOfMovieTicketAsPaymentServiceOutput;
|
|
59
59
|
}
|
|
60
|
-
export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[]
|
|
60
|
+
export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
|
|
61
61
|
/**
|
|
62
62
|
* 決済方法(サービス)
|
|
63
63
|
*/
|
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 {
|
|
28
|
+
import { PaymentServiceType } from './service/paymentService';
|
|
29
29
|
import { SortType } from './sortType';
|
|
30
30
|
import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
|
|
31
31
|
export interface IProject {
|
|
@@ -35,10 +35,12 @@ export interface IProject {
|
|
|
35
35
|
export declare enum OrderType {
|
|
36
36
|
Order = "Order"
|
|
37
37
|
}
|
|
38
|
-
export interface IOrderPaymentMethodIssuedThroughServiceOutput
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
export interface IOrderPaymentMethodIssuedThroughServiceOutput {
|
|
39
|
+
paymentMethod?: {
|
|
40
|
+
amount?: {
|
|
41
|
+
currency: string;
|
|
42
|
+
value: number;
|
|
43
|
+
};
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
export interface IOrderPaymentMethodIssuedThrough {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IInvoice } from '../invoice';
|
|
1
2
|
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
|
|
2
3
|
import { IOnPaymentStatusChanged, IProject } from '../project';
|
|
3
4
|
import { IPropertyValue } from '../propertyValue';
|
|
@@ -61,15 +62,21 @@ export declare type IAvailableChannel = IProductAvailableChannel & {
|
|
|
61
62
|
* CreditCardIF決済サービスのカード属性
|
|
62
63
|
* ポイントカード情報など
|
|
63
64
|
*/
|
|
64
|
-
export interface
|
|
65
|
+
export interface IPaymentMethodAsServiceOutput {
|
|
65
66
|
amount?: {
|
|
66
67
|
/**
|
|
67
|
-
*
|
|
68
|
+
* カード通貨区分
|
|
68
69
|
*/
|
|
69
70
|
currency: string;
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
|
-
export
|
|
73
|
+
export interface IInvoiceAsServiceOutput extends Pick<IInvoice, 'paymentStatus' | 'typeOf'> {
|
|
74
|
+
/**
|
|
75
|
+
* 発行される決済方法
|
|
76
|
+
*/
|
|
77
|
+
paymentMethod?: IPaymentMethodAsServiceOutput;
|
|
78
|
+
}
|
|
79
|
+
export declare type IServiceOutput = IInvoiceAsServiceOutput;
|
|
73
80
|
/**
|
|
74
81
|
* 決済サービス
|
|
75
82
|
* {@link https://schema.org/Service}
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export interface ISettings {
|
|
|
53
53
|
}
|
|
54
54
|
export interface IAdvanceBookingRequirement extends Pick<IQuantitativeValue<UnitCode.Sec>, 'typeOf' | 'minValue' | 'unitCode' | 'description'> {
|
|
55
55
|
}
|
|
56
|
+
export declare type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfStock;
|
|
56
57
|
/**
|
|
57
58
|
* 単価オファー
|
|
58
59
|
*/
|
|
@@ -62,7 +63,7 @@ export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'pr
|
|
|
62
63
|
* 事前予約要件(興行オファー承認日時とイベント開始日時の差)
|
|
63
64
|
*/
|
|
64
65
|
advanceBookingRequirement?: IAdvanceBookingRequirement;
|
|
65
|
-
availability:
|
|
66
|
+
availability: IAvailability;
|
|
66
67
|
/**
|
|
67
68
|
* コード
|
|
68
69
|
*/
|
|
@@ -148,6 +149,9 @@ export interface ISearchConditions {
|
|
|
148
149
|
};
|
|
149
150
|
};
|
|
150
151
|
};
|
|
152
|
+
availability?: {
|
|
153
|
+
$eq?: IAvailability;
|
|
154
|
+
};
|
|
151
155
|
availableAtOrFrom?: {
|
|
152
156
|
id?: {
|
|
153
157
|
$eq?: string;
|