@chevre/factory 4.226.0 → 4.227.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/factory/action/transfer/return/reservation.d.ts +1 -1
- package/lib/factory/assetTransaction/cancelReservation.d.ts +7 -12
- package/lib/factory/assetTransaction/moneyTransfer.d.ts +6 -2
- package/lib/factory/assetTransaction/pay.d.ts +9 -13
- package/lib/factory/assetTransaction/refund.d.ts +6 -7
- package/lib/factory/assetTransaction/registerService.d.ts +10 -16
- package/lib/factory/assetTransaction/reserve.d.ts +7 -12
- package/lib/factory/assetTransaction.d.ts +28 -0
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ export declare type IPurpose = ISimpleOrder;
|
|
|
21
21
|
export declare type IResult = any;
|
|
22
22
|
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.ReturnAction, TObject, TResult> {
|
|
23
23
|
agent: IAgent;
|
|
24
|
-
purpose
|
|
24
|
+
purpose: IPurpose;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* 予約返却アクション
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { IAttributes as ICancelReservationActionAttributes } from '../action/cancel/reservation';
|
|
2
|
-
import * as
|
|
2
|
+
import * as AssetTransactionFactory from '../assetTransaction';
|
|
3
3
|
import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { IClientUser } from '../clientUser';
|
|
7
7
|
import { IReservation as IEventReservation } from '../reservation/event';
|
|
8
|
-
export
|
|
8
|
+
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
|
+
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* 取引開始パラメータ
|
|
11
12
|
*/
|
|
12
|
-
export declare type IStartParams =
|
|
13
|
-
export interface IAgent {
|
|
14
|
-
typeOf: string;
|
|
15
|
-
id?: string;
|
|
16
|
-
name: string;
|
|
17
|
-
url?: string;
|
|
18
|
-
}
|
|
13
|
+
export declare type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObject>;
|
|
19
14
|
export interface IResult {
|
|
20
15
|
}
|
|
21
16
|
/**
|
|
@@ -56,7 +51,7 @@ export declare type ITransaction = IExtendId<IAttributes>;
|
|
|
56
51
|
/**
|
|
57
52
|
* 取引属性
|
|
58
53
|
*/
|
|
59
|
-
export interface IAttributes extends
|
|
54
|
+
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
60
55
|
}
|
|
61
|
-
export interface ISearchConditions extends
|
|
56
|
+
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.CancelReservation> {
|
|
62
57
|
}
|
|
@@ -5,8 +5,12 @@ import { IExtendId } from '../autoGenerated';
|
|
|
5
5
|
import { IMonetaryAmount } from '../monetaryAmount';
|
|
6
6
|
import { OrderType } from '../order';
|
|
7
7
|
import { PermitType } from '../permit';
|
|
8
|
-
export declare type IAgent = IMoneyTransferAgent
|
|
9
|
-
|
|
8
|
+
export declare type IAgent = IMoneyTransferAgent & {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
export declare type IRecipient = IMoneyTransferRecipient & {
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
10
14
|
export declare type IFromLocation = ILocation;
|
|
11
15
|
export declare type IToLocation = ILocation;
|
|
12
16
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as GMO from '@motionpicture/gmo-service';
|
|
2
|
-
import { IParticipant } from '../action';
|
|
3
2
|
import { IAttributes as IPayActionAttributes, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient } from '../action/trade/pay';
|
|
4
|
-
import * as
|
|
3
|
+
import * as AssetTransactionFactory from '../assetTransaction';
|
|
5
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
6
5
|
import { IExtendId } from '../autoGenerated';
|
|
7
6
|
import { IMonetaryAmount } from '../monetaryAmount';
|
|
@@ -10,14 +9,14 @@ import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
|
|
|
10
9
|
import { IOnPaymentStatusChanged } from '../project';
|
|
11
10
|
import { IPropertyValue } from '../propertyValue';
|
|
12
11
|
import { PaymentServiceType } from '../service/paymentService';
|
|
13
|
-
export
|
|
12
|
+
export import IAgent = AssetTransactionFactory.IAgent;
|
|
14
13
|
export declare type IRecipient = IPayRecipient;
|
|
15
14
|
export declare type IObjectWithoutDetail = IObject;
|
|
16
|
-
export declare type IStartParamsWithoutDetail =
|
|
15
|
+
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> & {
|
|
17
16
|
recipient: IRecipient;
|
|
18
17
|
purpose?: IPayPurpose;
|
|
19
18
|
};
|
|
20
|
-
export interface IStartParams extends
|
|
19
|
+
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
|
|
21
20
|
recipient: IRecipient;
|
|
22
21
|
}
|
|
23
22
|
export interface IPotentialActionsParams {
|
|
@@ -26,7 +25,7 @@ export interface IPotentialActionsParams {
|
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
|
-
*
|
|
28
|
+
* 確定パラメータ
|
|
30
29
|
*/
|
|
31
30
|
export interface IConfirmParams {
|
|
32
31
|
id?: string;
|
|
@@ -101,7 +100,7 @@ export interface IPaymentMethod {
|
|
|
101
100
|
creditCard?: ICreditCard;
|
|
102
101
|
}
|
|
103
102
|
/**
|
|
104
|
-
*
|
|
103
|
+
* 取引対象物
|
|
105
104
|
*/
|
|
106
105
|
export interface IObject {
|
|
107
106
|
typeOf: PaymentServiceType;
|
|
@@ -124,11 +123,8 @@ export interface IPotentialActions {
|
|
|
124
123
|
*/
|
|
125
124
|
pay: IPayActionAttributes[];
|
|
126
125
|
}
|
|
127
|
-
export
|
|
128
|
-
/**
|
|
129
|
-
* 転送取引インターフェース
|
|
130
|
-
*/
|
|
131
|
-
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
126
|
+
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
132
127
|
}
|
|
133
|
-
export
|
|
128
|
+
export declare type ITransaction = IExtendId<IAttributes>;
|
|
129
|
+
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
|
|
134
130
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { AvailablePaymentMethodType, IPaymentMethod, IPayPurpose } from '../action/trade/pay';
|
|
2
2
|
import { IAttributes as IRefundActionAttributes, IRecipient as IRefundRecipient } from '../action/trade/refund';
|
|
3
|
-
import * as
|
|
3
|
+
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { IOnPaymentStatusChanged } from '../project';
|
|
7
|
-
import { ISeller } from '../seller';
|
|
8
7
|
import { PaymentServiceType } from '../service/paymentService';
|
|
9
|
-
export
|
|
8
|
+
export import IAgent = AssetTransactionFactory.IAgent;
|
|
10
9
|
export declare type IRecipient = IRefundRecipient;
|
|
11
10
|
export interface IObjectWithoutDetail {
|
|
12
11
|
typeOf: PaymentServiceType;
|
|
@@ -17,8 +16,8 @@ export interface IObjectWithoutDetail {
|
|
|
17
16
|
paymentMethod: IPaymentMethod;
|
|
18
17
|
refundFee?: number;
|
|
19
18
|
}
|
|
20
|
-
export declare type IStartParamsWithoutDetail =
|
|
21
|
-
export interface IStartParams extends
|
|
19
|
+
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
|
|
20
|
+
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
|
|
22
21
|
}
|
|
23
22
|
export interface IPotentialActionsParams {
|
|
24
23
|
refund?: {
|
|
@@ -60,7 +59,7 @@ export declare type ITransaction = IExtendId<IAttributes>;
|
|
|
60
59
|
/**
|
|
61
60
|
* 返金取引
|
|
62
61
|
*/
|
|
63
|
-
export interface IAttributes extends
|
|
62
|
+
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
64
63
|
}
|
|
65
|
-
export interface ISearchConditions extends
|
|
64
|
+
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
|
|
66
65
|
}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
import { IAttributes as IRegisterServiceActionAttributes } from '../action/interact/register/service';
|
|
2
2
|
import { IAttributes as IMoneyTransferActionAttributes } from '../action/transfer/moneyTransfer';
|
|
3
|
-
import * as
|
|
3
|
+
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { OfferType } from '../offerType';
|
|
7
7
|
import { IProduct, IServiceOutput } from '../product';
|
|
8
|
-
import
|
|
9
|
-
export declare type IStartParamsWithoutDetail =
|
|
8
|
+
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
|
+
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 取引開始パラメーター
|
|
12
12
|
* サービス: MembershipService,PaymentCardであればserviceOutputを発行する
|
|
13
13
|
*/
|
|
14
|
-
export declare type IStartParams =
|
|
15
|
-
export interface IAgent {
|
|
16
|
-
typeOf: IUnderNameType;
|
|
17
|
-
id?: string;
|
|
18
|
-
name: string;
|
|
19
|
-
url?: string;
|
|
20
|
-
}
|
|
14
|
+
export declare type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObject>;
|
|
21
15
|
/**
|
|
22
|
-
*
|
|
16
|
+
* 確定パラメータ
|
|
23
17
|
*/
|
|
24
18
|
export interface IConfirmParams {
|
|
25
19
|
id?: string;
|
|
@@ -33,7 +27,7 @@ export interface IConfirmParams {
|
|
|
33
27
|
export interface IResult {
|
|
34
28
|
}
|
|
35
29
|
/**
|
|
36
|
-
*
|
|
30
|
+
* エラー
|
|
37
31
|
*/
|
|
38
32
|
export declare type IError = any;
|
|
39
33
|
export interface IAcceptedPointAward {
|
|
@@ -81,12 +75,12 @@ export interface IPotentialActions {
|
|
|
81
75
|
moneyTransfer: IMoneyTransferActionAttributes[];
|
|
82
76
|
registerService: IRegisterServiceActionAttributes[];
|
|
83
77
|
}
|
|
84
|
-
export interface IAttributes extends
|
|
78
|
+
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
85
79
|
}
|
|
86
80
|
/**
|
|
87
|
-
*
|
|
81
|
+
* 取引
|
|
88
82
|
*/
|
|
89
83
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
90
|
-
export interface ISearchConditions extends
|
|
84
|
+
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.RegisterService> {
|
|
91
85
|
object?: any;
|
|
92
86
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ReserveActionFactory from '../action/reserve';
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
|
-
import * as
|
|
3
|
+
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { ITicketOffer } from '../event/screeningEvent';
|
|
@@ -11,17 +11,12 @@ import * as ReservationFactory from '../reservation';
|
|
|
11
11
|
import { IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
12
12
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
13
13
|
import { ReservationType } from '../reservationType';
|
|
14
|
-
export
|
|
14
|
+
export import IAgent = AssetTransactionFactory.IAgent;
|
|
15
|
+
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
+
* 取引開始パラメータ
|
|
17
18
|
*/
|
|
18
|
-
export declare type IStartParams =
|
|
19
|
-
export interface IAgent {
|
|
20
|
-
typeOf: ReservationFactory.IUnderNameType;
|
|
21
|
-
id?: string;
|
|
22
|
-
name: string;
|
|
23
|
-
url?: string;
|
|
24
|
-
}
|
|
19
|
+
export declare type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject>;
|
|
25
20
|
export interface IAcceptedProgramMembershipUsedAsObject {
|
|
26
21
|
accessCode?: string;
|
|
27
22
|
/**
|
|
@@ -213,7 +208,7 @@ export interface IObject extends IReservationPackage {
|
|
|
213
208
|
export interface IPotentialActions {
|
|
214
209
|
reserve: ReserveActionFactory.IAttributes[];
|
|
215
210
|
}
|
|
216
|
-
export interface IAttributes extends
|
|
211
|
+
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
217
212
|
}
|
|
218
213
|
/**
|
|
219
214
|
* 予約取引
|
|
@@ -237,6 +232,6 @@ export interface IObjectSearchConditions {
|
|
|
237
232
|
};
|
|
238
233
|
};
|
|
239
234
|
}
|
|
240
|
-
export interface ISearchConditions extends
|
|
235
|
+
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Reserve> {
|
|
241
236
|
object?: IObjectSearchConditions;
|
|
242
237
|
}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { AssetTransactionType } from './assetTransactionType';
|
|
2
2
|
import { IExtendId } from './autoGenerated';
|
|
3
|
+
import { OrganizationType } from './organizationType';
|
|
4
|
+
import { PersonType } from './personType';
|
|
3
5
|
import { IProject } from './project';
|
|
4
6
|
import { SortType } from './sortType';
|
|
7
|
+
import { IIdentifier } from './thing';
|
|
5
8
|
import { TransactionStatusType } from './transactionStatusType';
|
|
6
9
|
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
10
|
+
/**
|
|
11
|
+
* 販売者主体
|
|
12
|
+
*/
|
|
13
|
+
export interface IAgentAsSeller {
|
|
14
|
+
typeOf: OrganizationType.Corporation;
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* 名称は必須
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
identifier?: IIdentifier;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 管理者主体
|
|
24
|
+
*/
|
|
25
|
+
export interface IAgentAsPerson {
|
|
26
|
+
typeOf: PersonType.Person;
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* 名称は必須
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
identifier?: IIdentifier;
|
|
33
|
+
}
|
|
34
|
+
export declare type IAgent = IAgentAsSeller | IAgentAsPerson;
|
|
7
35
|
/**
|
|
8
36
|
* 取引開始パラメーターインターフェース
|
|
9
37
|
*/
|