@chevre/factory 4.360.0 → 4.362.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/action/authorize/paymentMethod/any.d.ts +7 -14
- package/lib/action/interact/confirm/moneyTransfer.d.ts +3 -0
- package/lib/action/interact/confirm/pay.d.ts +3 -0
- package/lib/action/interact/confirm/registerService.d.ts +3 -3
- package/lib/action/interact/confirm/reservation.d.ts +4 -1
- package/lib/action/interact/confirm.d.ts +8 -3
- package/package.json +1 -1
|
@@ -14,14 +14,6 @@ export type IRecipient = ActionFactory.IParticipantAsSeller;
|
|
|
14
14
|
export declare enum ResultType {
|
|
15
15
|
Payment = "Payment"
|
|
16
16
|
}
|
|
17
|
-
/**
|
|
18
|
-
* 進行中取引
|
|
19
|
-
*/
|
|
20
|
-
export interface IObjectPendingTransaction {
|
|
21
|
-
typeOf: AssetTransactionType.MoneyTransfer;
|
|
22
|
-
id?: string;
|
|
23
|
-
transactionNumber?: string;
|
|
24
|
-
}
|
|
25
17
|
export { ICreditCard, IFromLocation, ITokenizedPaymentCard };
|
|
26
18
|
export import IPurchaseNumberAuthResult = CheckMovieTicketActionFactory.IPurchaseNumberAuthResult;
|
|
27
19
|
/**
|
|
@@ -64,10 +56,6 @@ export interface IObject {
|
|
|
64
56
|
*/
|
|
65
57
|
id: string;
|
|
66
58
|
};
|
|
67
|
-
/**
|
|
68
|
-
* 進行中取引(ペイメントカード決済)
|
|
69
|
-
*/
|
|
70
|
-
pendingTransaction?: IObjectPendingTransaction;
|
|
71
59
|
/**
|
|
72
60
|
* 転送元(PaymentCard決済)
|
|
73
61
|
*/
|
|
@@ -140,11 +128,16 @@ export interface IPurpose {
|
|
|
140
128
|
export declare enum ServiceIdentifier {
|
|
141
129
|
Chevre = "Chevre"
|
|
142
130
|
}
|
|
143
|
-
export interface
|
|
131
|
+
export interface IInstrumentAsService {
|
|
144
132
|
typeOf: 'WebAPI';
|
|
145
133
|
identifier: ServiceIdentifier;
|
|
146
134
|
}
|
|
147
|
-
export
|
|
135
|
+
export interface IInstrumentAsAssetTransaction {
|
|
136
|
+
typeOf: AssetTransactionType.Pay;
|
|
137
|
+
transactionNumber: string;
|
|
138
|
+
identifier: ServiceIdentifier;
|
|
139
|
+
}
|
|
140
|
+
export type IInstrument = IInstrumentAsAssetTransaction | IInstrumentAsService;
|
|
148
141
|
/**
|
|
149
142
|
* 決済承認アクション属性
|
|
150
143
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { IParticipantAsProject } from '../../../action';
|
|
1
2
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
2
3
|
import { ISimpleOrder } from '../../../order';
|
|
3
4
|
import { TransactionType } from '../../../transactionType';
|
|
4
5
|
import * as ConfirmActionFactory from '../confirm';
|
|
6
|
+
export type IAgent = IParticipantAsProject;
|
|
5
7
|
export interface IObject {
|
|
6
8
|
transactionNumber: string;
|
|
7
9
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
@@ -13,6 +15,7 @@ export interface ITransactionPurpose {
|
|
|
13
15
|
}
|
|
14
16
|
export type IPurpose = ITransactionPurpose | ISimpleOrder;
|
|
15
17
|
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
18
|
+
agent: IAgent;
|
|
16
19
|
/**
|
|
17
20
|
* 注文取引から発生した場合はISimpleOrder
|
|
18
21
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { IParticipantAsProject } from '../../../action';
|
|
1
2
|
import * as RegisterServiceFactory from '../../../assetTransaction/registerService';
|
|
2
3
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
3
4
|
import { ISimpleOrder } from '../../../order';
|
|
4
5
|
import * as ConfirmActionFactory from '../confirm';
|
|
6
|
+
export type IAgent = IParticipantAsProject;
|
|
5
7
|
export type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNumber' | 'endDate'> & {
|
|
6
8
|
transactionNumber: string;
|
|
7
9
|
typeOf: AssetTransactionType.RegisterService;
|
|
@@ -15,10 +17,8 @@ export type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNu
|
|
|
15
17
|
};
|
|
16
18
|
export type IPurpose = ISimpleOrder;
|
|
17
19
|
export type IResult = any;
|
|
18
|
-
export interface IPotentialActions {
|
|
19
|
-
}
|
|
20
20
|
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
21
|
-
|
|
21
|
+
agent: IAgent;
|
|
22
22
|
purpose: IPurpose;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as COA from '@motionpicture/coa-service';
|
|
2
|
+
import { IParticipantAsProject } from '../../../action';
|
|
2
3
|
import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
3
4
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
5
|
import { ISimpleOrder } from '../../../order';
|
|
5
6
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
6
7
|
import * as ConfirmActionFactory from '../confirm';
|
|
8
|
+
export type IAgent = IParticipantAsProject;
|
|
7
9
|
export type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
|
|
8
10
|
transactionNumber: string;
|
|
9
11
|
typeOf: 'COAReserveTransaction';
|
|
@@ -17,10 +19,11 @@ export type IPurpose = ISimpleOrder;
|
|
|
17
19
|
export type IResult = any;
|
|
18
20
|
export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
|
|
19
21
|
export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
|
|
22
|
+
agent: IAgent;
|
|
20
23
|
instrument: IInstrument<T>;
|
|
21
24
|
purpose: IPurpose;
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
|
-
*
|
|
27
|
+
* 予約取引確定アクション
|
|
25
28
|
*/
|
|
26
29
|
export type IAction<T extends WebAPIFactory.Identifier> = ConfirmActionFactory.IAction<IAttributes<T>>;
|
|
@@ -2,16 +2,21 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import * as OrderFactory from '../../order';
|
|
4
4
|
import { TransactionType } from '../../transactionType';
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* 確定アクション主体
|
|
7
|
+
* Projectに統一(2022-05-16~)
|
|
8
|
+
* 決済取引に関してはクライアントによる確定がありうるので拡張(2024-03-11~)
|
|
9
|
+
*/
|
|
10
|
+
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject | ActionFactory.IParticipantAsWebApplication;
|
|
6
11
|
export type IObject = any;
|
|
7
12
|
export interface ITransactionPurpose {
|
|
8
|
-
typeOf: TransactionType;
|
|
13
|
+
typeOf: TransactionType.MoneyTransfer | TransactionType.PlaceOrder;
|
|
9
14
|
id: string;
|
|
10
15
|
}
|
|
11
16
|
export type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
|
|
12
17
|
export type IResult = any;
|
|
13
18
|
export type IPotentialActions = any;
|
|
14
|
-
export interface IAttributes<TObject, TResult> extends
|
|
19
|
+
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'instrument' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf'> {
|
|
15
20
|
agent: IAgent;
|
|
16
21
|
purpose: IPurpose;
|
|
17
22
|
}
|