@chevre/factory 4.324.0-alpha.1 → 4.324.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.
- package/lib/action/authorize/offer/seatReservation.d.ts +1 -2
- package/lib/action/authorize/paymentMethod/any.d.ts +4 -4
- package/lib/action/trade/pay.d.ts +2 -3
- package/lib/assetTransaction/pay.d.ts +4 -2
- package/lib/invoice.d.ts +3 -6
- package/lib/order.d.ts +14 -3
- package/lib/service/paymentService.d.ts +18 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as ActionFactory from '../../../action';
|
|
3
|
-
import { ITotalPaymentDue } from '../../../action/trade/pay';
|
|
4
3
|
import { ActionType } from '../../../actionType';
|
|
5
4
|
import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
6
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
@@ -35,7 +34,7 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
|
|
|
35
34
|
* オファーに対して必要な金額
|
|
36
35
|
* currencyを口座タイプとして扱う
|
|
37
36
|
*/
|
|
38
|
-
amount: ITotalPaymentDue[];
|
|
37
|
+
amount: OrderFactory.ITotalPaymentDue[];
|
|
39
38
|
/**
|
|
40
39
|
* 外部リクエストエンドポイント
|
|
41
40
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import * as CheckMovieTicketActionFactory from '../../../action/check/paymentMethod/movieTicket';
|
|
3
|
-
import { IMovieTicket
|
|
3
|
+
import { 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';
|
|
7
|
-
import {
|
|
7
|
+
import { IOrderPaymentMethodIssuedThrough, ITotalPaymentDue } from '../../../order';
|
|
8
8
|
import * as CreditCardFactory from '../../../paymentMethod/paymentCard/creditCard';
|
|
9
9
|
import { PaymentStatusType } from '../../../paymentStatusType';
|
|
10
10
|
import { IPropertyValue } from '../../../propertyValue';
|
|
@@ -105,8 +105,8 @@ export interface IResult {
|
|
|
105
105
|
accountId: string;
|
|
106
106
|
/**
|
|
107
107
|
* The amount of money.
|
|
108
|
+
* 廃止(2023-08-07~)
|
|
108
109
|
*/
|
|
109
|
-
amount: number;
|
|
110
110
|
/**
|
|
111
111
|
* 決済方法
|
|
112
112
|
*/
|
|
@@ -132,7 +132,7 @@ export interface IResult {
|
|
|
132
132
|
*/
|
|
133
133
|
additionalProperty?: IPropertyValue<string>[];
|
|
134
134
|
typeOf: ResultType;
|
|
135
|
-
issuedThrough:
|
|
135
|
+
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
136
136
|
}
|
|
137
137
|
export interface IPurpose {
|
|
138
138
|
typeOf: TransactionType;
|
|
@@ -5,8 +5,8 @@ import { IAttributes as IReturnOrderActionAttributes } from '../../action/transf
|
|
|
5
5
|
import { ActionType } from '../../actionType';
|
|
6
6
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
7
7
|
import { CreativeWorkType } from '../../creativeWorkType';
|
|
8
|
-
import { IPaymentServiceOutput
|
|
9
|
-
import { OrderType } from '../../order';
|
|
8
|
+
import { IPaymentServiceOutput } from '../../invoice';
|
|
9
|
+
import { ITotalPaymentDue, OrderType } from '../../order';
|
|
10
10
|
import { IMovieTicket as IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
|
|
11
11
|
import { IPropertyValue } from '../../propertyValue';
|
|
12
12
|
import { PaymentServiceType } from '../../service/paymentService';
|
|
@@ -134,4 +134,3 @@ export interface IAttributes extends Omit<ActionFactory.IAttributes<ActionType.P
|
|
|
134
134
|
* 決済アクション
|
|
135
135
|
*/
|
|
136
136
|
export declare type IAction = ActionFactory.IAction<IAttributes>;
|
|
137
|
-
export { ITotalPaymentDue };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as GMO from '@motionpicture/gmo-service';
|
|
2
|
-
import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPurpose as IPayPurpose, IRecipient as IPayRecipient
|
|
2
|
+
import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPurpose as IPayPurpose, IRecipient as IPayRecipient } from '../action/trade/pay';
|
|
3
3
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
|
+
import { ITotalPaymentDue } from '../order';
|
|
6
7
|
import { IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
|
|
7
8
|
import { IOnPaymentStatusChanged } from '../project';
|
|
8
9
|
import { IPropertyValue } from '../propertyValue';
|
|
9
|
-
import { PaymentServiceType } from '../service/paymentService';
|
|
10
|
+
import { ICreditCardAsPaymentServiceOutput, PaymentServiceType } from '../service/paymentService';
|
|
10
11
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
11
12
|
export declare type IRecipient = IPayRecipient;
|
|
12
13
|
/**
|
|
@@ -88,6 +89,7 @@ export interface IObject {
|
|
|
88
89
|
* 発行決済サービスID
|
|
89
90
|
*/
|
|
90
91
|
id: string;
|
|
92
|
+
serviceOutput?: ICreditCardAsPaymentServiceOutput;
|
|
91
93
|
paymentMethod: IPaymentMethod;
|
|
92
94
|
pendingTransaction?: IPendingTransaction;
|
|
93
95
|
entryTranArgs?: IEntryTranArgs;
|
package/lib/invoice.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { IAppliesToMovieTicket, IPriceSpecification as IMovieTicketTypeChargeSpe
|
|
|
8
8
|
import { IAppliesToAddOn as IUnitPriceSpecAppliesToAddOn, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
9
9
|
import { IPriceSpecification } from './reservation/event';
|
|
10
10
|
import * as SellerFactory from './seller';
|
|
11
|
-
import { PaymentServiceType } from './service/paymentService';
|
|
11
|
+
import { ICreditCardAsPaymentServiceOutput, PaymentServiceType } from './service/paymentService';
|
|
12
12
|
export declare type IBroker = SellerFactory.ISeller | PersonFactory.IPerson;
|
|
13
13
|
export declare type IProvider = SellerFactory.ISeller | PersonFactory.IPerson;
|
|
14
14
|
export interface IReferenceOrder extends OrderFactory.IOrder {
|
|
@@ -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[] | ICreditCardAsPaymentServiceOutput;
|
|
61
61
|
/**
|
|
62
62
|
* 決済方法(サービス)
|
|
63
63
|
*/
|
|
@@ -66,9 +66,6 @@ export interface IPaymentMethod {
|
|
|
66
66
|
typeOf: PaymentServiceType;
|
|
67
67
|
serviceOutput?: IPaymentServiceOutput;
|
|
68
68
|
}
|
|
69
|
-
export declare type ITotalPaymentDue = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> & {
|
|
70
|
-
value: number;
|
|
71
|
-
};
|
|
72
69
|
/**
|
|
73
70
|
* インボイス
|
|
74
71
|
* {@link https://schema.org/Invoice}
|
|
@@ -137,5 +134,5 @@ export interface IInvoice {
|
|
|
137
134
|
/**
|
|
138
135
|
* The total amount due.
|
|
139
136
|
*/
|
|
140
|
-
totalPaymentDue?: ITotalPaymentDue;
|
|
137
|
+
totalPaymentDue?: OrderFactory.ITotalPaymentDue;
|
|
141
138
|
}
|
package/lib/order.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from './action';
|
|
2
|
-
import { IPaymentService, ITotalPaymentDue } from './action/trade/pay';
|
|
3
2
|
import { IAmount as IMoneyTransferAmount, IPaymentCard as IPaymentCardAsMoneyTransferToLocation } from './action/transfer/moneyTransfer';
|
|
4
3
|
import { ActionType } from './actionType';
|
|
5
4
|
import { AssetTransactionType } from './assetTransactionType';
|
|
6
5
|
import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
|
|
7
6
|
import { ICustomer as ICustomerOrganization } from './customer';
|
|
8
7
|
import { EventType } from './eventType';
|
|
8
|
+
import { IMonetaryAmount } from './monetaryAmount';
|
|
9
9
|
import { IMultilingualString } from './multilingualString';
|
|
10
10
|
import { IOffer } from './offer';
|
|
11
11
|
import { OrderStatus } from './orderStatus';
|
|
@@ -24,6 +24,7 @@ import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './
|
|
|
24
24
|
import * as BusReservationFactory from './reservation/busReservation';
|
|
25
25
|
import * as EventReservationFactory from './reservation/event';
|
|
26
26
|
import { ReservationType } from './reservationType';
|
|
27
|
+
import { ICreditCardAsPaymentServiceOutput, PaymentServiceType } from './service/paymentService';
|
|
27
28
|
import { SortType } from './sortType';
|
|
28
29
|
import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
|
|
29
30
|
export interface IProject {
|
|
@@ -33,7 +34,17 @@ export interface IProject {
|
|
|
33
34
|
export declare enum OrderType {
|
|
34
35
|
Order = "Order"
|
|
35
36
|
}
|
|
36
|
-
export
|
|
37
|
+
export interface IOrderPaymentMethodIssuedThrough {
|
|
38
|
+
typeOf: PaymentServiceType;
|
|
39
|
+
/**
|
|
40
|
+
* 発行決済サービスID
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
serviceOutput?: ICreditCardAsPaymentServiceOutput;
|
|
44
|
+
}
|
|
45
|
+
export interface ITotalPaymentDue extends Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> {
|
|
46
|
+
value: number;
|
|
47
|
+
}
|
|
37
48
|
/**
|
|
38
49
|
* 決済方法
|
|
39
50
|
*/
|
|
@@ -62,7 +73,7 @@ export interface IPaymentMethod {
|
|
|
62
73
|
* 追加特性
|
|
63
74
|
*/
|
|
64
75
|
additionalProperty: IPropertyValue<string>[];
|
|
65
|
-
issuedThrough:
|
|
76
|
+
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
66
77
|
}
|
|
67
78
|
/**
|
|
68
79
|
* ディスカウント
|
|
@@ -58,7 +58,20 @@ export declare type IAvailableChannel = IProductAvailableChannel & {
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* CreditCardIF決済サービスのカード属性
|
|
62
|
+
* ポイントカード情報など
|
|
63
|
+
*/
|
|
64
|
+
export interface ICreditCardAsPaymentServiceOutput {
|
|
65
|
+
amount?: {
|
|
66
|
+
/**
|
|
67
|
+
* 通貨区分
|
|
68
|
+
*/
|
|
69
|
+
currency: string;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export declare type IServiceOutput = ICreditCardAsPaymentServiceOutput;
|
|
73
|
+
/**
|
|
74
|
+
* 決済サービス
|
|
62
75
|
* {@link https://schema.org/Service}
|
|
63
76
|
*/
|
|
64
77
|
export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
@@ -71,6 +84,10 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
|
71
84
|
* 決済サービス提供者(決済サービスを利用する販売者)
|
|
72
85
|
*/
|
|
73
86
|
provider?: IProvider[];
|
|
87
|
+
/**
|
|
88
|
+
* 提供元のカード情報
|
|
89
|
+
*/
|
|
90
|
+
serviceOutput?: IServiceOutput;
|
|
74
91
|
/**
|
|
75
92
|
* The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
|
|
76
93
|
* 決済サービスの場合、serviceType.codeValueが決済方法区分
|