@chevre/factory 4.224.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/chevre.d.ts +2 -0
- package/lib/factory/action/cancel/reservation.d.ts +7 -5
- package/lib/factory/action/interact/register/service.d.ts +4 -1
- package/lib/factory/action/reserve.d.ts +2 -0
- package/lib/factory/action/transfer/moneyTransfer.d.ts +5 -3
- package/lib/factory/action/transfer/return/reservation.d.ts +1 -1
- package/lib/factory/action.d.ts +19 -5
- 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 -15
- package/lib/factory/assetTransaction/reserve.d.ts +7 -12
- package/lib/factory/assetTransaction.d.ts +28 -0
- package/lib/factory/person.d.ts +8 -6
- package/lib/factory/project.d.ts +6 -7
- package/lib/factory/reservation.d.ts +5 -1
- package/lib/factory/task/orderProgramMembership.d.ts +1 -2
- package/lib/factory/transaction/placeOrder.d.ts +12 -14
- package/lib/factory/transaction.d.ts +9 -9
- package/package.json +2 -2
package/lib/chevre.d.ts
CHANGED
|
@@ -442,6 +442,8 @@ export declare namespace assetTransaction {
|
|
|
442
442
|
export import reserve = ReserveAssetTransactionFactory;
|
|
443
443
|
}
|
|
444
444
|
export declare namespace transaction {
|
|
445
|
+
export import IAgentProfile = TransactionFactory.IAgentProfile;
|
|
446
|
+
export import IAgent = TransactionFactory.IAgent;
|
|
445
447
|
export import IPassportBeforeStart = TransactionFactory.IPassportBeforeStart;
|
|
446
448
|
export import ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
|
|
447
449
|
export import ISortOrder = TransactionFactory.ISortOrder;
|
|
@@ -3,16 +3,17 @@ import { ActionType } from '../../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
4
|
import { IReservation as IEventReservation } from '../../reservation/event';
|
|
5
5
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
6
|
+
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* 予約キャンセル対象
|
|
8
9
|
*/
|
|
9
10
|
export declare type IObject = IEventReservation;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* 予約キャンセル結果
|
|
12
13
|
*/
|
|
13
14
|
export declare type IResult = any;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* 予約キャンセル目的
|
|
16
17
|
*/
|
|
17
18
|
export interface IPurpose {
|
|
18
19
|
/**
|
|
@@ -28,13 +29,14 @@ export declare type IInformReservation = IInformActionAttributes<IObject, any>;
|
|
|
28
29
|
export interface IPotentialActions {
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
* アクション属性
|
|
32
33
|
*/
|
|
33
34
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult> {
|
|
35
|
+
agent: IAgent;
|
|
34
36
|
potentialActions?: IPotentialActions;
|
|
35
37
|
purpose: IPurpose;
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
|
-
*
|
|
40
|
+
* 予約キャンセルアクション
|
|
39
41
|
*/
|
|
40
42
|
export declare type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { IParticipantAsProject } from '../../../action';
|
|
1
2
|
import { IPermit } from '../../../permit';
|
|
2
3
|
import { IAttributes as IMoneyTransferActionAttributes } from '../../transfer/moneyTransfer';
|
|
3
4
|
import * as RegisterActionFactory from '../register';
|
|
5
|
+
export declare type IAgent = IParticipantAsProject;
|
|
4
6
|
export declare type IObject = IPermit;
|
|
5
7
|
export declare type IResult = any;
|
|
6
8
|
export interface IPotentialActions {
|
|
7
9
|
moneyTransfer: IMoneyTransferActionAttributes[];
|
|
8
10
|
}
|
|
9
11
|
export interface IAttributes extends RegisterActionFactory.IAttributes<IObject, IResult> {
|
|
12
|
+
agent: IAgent;
|
|
10
13
|
potentialActions?: IPotentialActions;
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
|
-
*
|
|
16
|
+
* サービス登録アクション
|
|
14
17
|
*/
|
|
15
18
|
export declare type IAction = RegisterActionFactory.IAction<IAttributes>;
|
|
@@ -5,6 +5,7 @@ import { OrderType } from '../order';
|
|
|
5
5
|
import { IReservation as IEventReservation } from '../reservation/event';
|
|
6
6
|
import { IAttributes as IInformActionAttributes } from './interact/inform';
|
|
7
7
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
8
|
+
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
8
9
|
/**
|
|
9
10
|
* 予約対象
|
|
10
11
|
*/
|
|
@@ -37,6 +38,7 @@ export interface IPotentialActions {
|
|
|
37
38
|
* アクション属性
|
|
38
39
|
*/
|
|
39
40
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult> {
|
|
41
|
+
agent: IAgent;
|
|
40
42
|
potentialActions?: IPotentialActions;
|
|
41
43
|
purpose: IPurpose;
|
|
42
44
|
}
|
|
@@ -5,7 +5,7 @@ import * as MoneyTransferTransactionFactory from '../../assetTransaction/moneyTr
|
|
|
5
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
6
6
|
import { IMonetaryAmount } from '../../monetaryAmount';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 進行中取引
|
|
9
9
|
*/
|
|
10
10
|
export interface IPendingTransaction {
|
|
11
11
|
typeOf: AccountFactory.transactionType;
|
|
@@ -16,11 +16,11 @@ export interface IPendingTransaction {
|
|
|
16
16
|
export declare type IAgent = ActionFactory.IParticipant;
|
|
17
17
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 匿名ロケーション
|
|
20
20
|
*/
|
|
21
21
|
export import IAnonymousLocation = AccountFactory.action.moneyTransfer.IAnonymousLocation;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* ペイメントカード
|
|
24
24
|
*/
|
|
25
25
|
export import IPaymentCard = MoneyTransferTransactionFactory.IPaymentCard;
|
|
26
26
|
/**
|
|
@@ -45,6 +45,8 @@ export interface ITransactionPurpose {
|
|
|
45
45
|
export declare type IPurpose = ITransactionPurpose;
|
|
46
46
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.MoneyTransfer, IObject, IResult> {
|
|
47
47
|
typeOf: ActionType.MoneyTransfer;
|
|
48
|
+
agent: IAgent;
|
|
49
|
+
recipient: IRecipient;
|
|
48
50
|
purpose: IPurpose;
|
|
49
51
|
/**
|
|
50
52
|
* 金額
|
|
@@ -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
|
* 予約返却アクション
|
package/lib/factory/action.d.ts
CHANGED
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
import { ActionStatusType } from './actionStatusType';
|
|
2
2
|
import { ActionType } from './actionType';
|
|
3
3
|
import { IExtendId } from './autoGenerated';
|
|
4
|
-
import {
|
|
4
|
+
import { CreativeWorkType } from './creativeWorkType';
|
|
5
5
|
import { ICustomer } from './customer';
|
|
6
6
|
import { IMultilingualString } from './multilingualString';
|
|
7
|
-
import {
|
|
7
|
+
import { OrganizationType } from './organizationType';
|
|
8
|
+
import { IPersonAttributes } from './person';
|
|
8
9
|
import { IProject } from './project';
|
|
9
10
|
import { IPropertyValue } from './propertyValue';
|
|
10
11
|
import { ISeller } from './seller';
|
|
11
12
|
import { SortType } from './sortType';
|
|
12
|
-
export
|
|
13
|
-
|
|
13
|
+
export interface IParticipantAsWebApplication {
|
|
14
|
+
typeOf: CreativeWorkType.WebApplication;
|
|
15
|
+
id: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
url?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type IParticipantAsPerson = IPersonAttributes & {
|
|
20
|
+
name?: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
};
|
|
14
23
|
export declare type IParticipantAsSeller = Omit<ISeller, 'branchCode' | 'paymentAccepted' | 'project' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location'>;
|
|
15
|
-
export
|
|
24
|
+
export interface IParticipantAsProject {
|
|
25
|
+
typeOf: OrganizationType.Project;
|
|
26
|
+
id: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
url?: string;
|
|
29
|
+
}
|
|
16
30
|
export declare type IParticipantAsCustomer = Omit<ICustomer, 'name' | 'branchCode' | 'contactPoint' | 'project' | 'additionalProperty'> & {
|
|
17
31
|
name?: string | IMultilingualString;
|
|
18
32
|
};
|
|
@@ -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,24 +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
|
-
export
|
|
8
|
+
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
|
+
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* 取引開始パラメーター
|
|
11
12
|
* サービス: MembershipService,PaymentCardであればserviceOutputを発行する
|
|
12
13
|
*/
|
|
13
|
-
export declare type IStartParams =
|
|
14
|
-
export interface IAgent {
|
|
15
|
-
typeOf: string;
|
|
16
|
-
id?: string;
|
|
17
|
-
name: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
}
|
|
14
|
+
export declare type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObject>;
|
|
20
15
|
/**
|
|
21
|
-
*
|
|
16
|
+
* 確定パラメータ
|
|
22
17
|
*/
|
|
23
18
|
export interface IConfirmParams {
|
|
24
19
|
id?: string;
|
|
@@ -32,7 +27,7 @@ export interface IConfirmParams {
|
|
|
32
27
|
export interface IResult {
|
|
33
28
|
}
|
|
34
29
|
/**
|
|
35
|
-
*
|
|
30
|
+
* エラー
|
|
36
31
|
*/
|
|
37
32
|
export declare type IError = any;
|
|
38
33
|
export interface IAcceptedPointAward {
|
|
@@ -80,12 +75,12 @@ export interface IPotentialActions {
|
|
|
80
75
|
moneyTransfer: IMoneyTransferActionAttributes[];
|
|
81
76
|
registerService: IRegisterServiceActionAttributes[];
|
|
82
77
|
}
|
|
83
|
-
export interface IAttributes extends
|
|
78
|
+
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
84
79
|
}
|
|
85
80
|
/**
|
|
86
|
-
*
|
|
81
|
+
* 取引
|
|
87
82
|
*/
|
|
88
83
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
89
|
-
export interface ISearchConditions extends
|
|
84
|
+
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.RegisterService> {
|
|
90
85
|
object?: any;
|
|
91
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: string;
|
|
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
|
*/
|
package/lib/factory/person.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare type IAdditionalProperty = IPropertyValue<string>[];
|
|
|
9
9
|
export import IIdentifier = ThingFactory.IIdentifier;
|
|
10
10
|
export declare type IMemberOf = IProgramMembership;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* プロフィール
|
|
13
13
|
*/
|
|
14
14
|
export interface IProfile extends ThingFactory.IThing {
|
|
15
15
|
/**
|
|
@@ -38,15 +38,13 @@ export interface IProfile extends ThingFactory.IThing {
|
|
|
38
38
|
* Gender of the person.
|
|
39
39
|
*/
|
|
40
40
|
gender?: string;
|
|
41
|
+
name?: string;
|
|
41
42
|
/**
|
|
42
43
|
* The telephone number.
|
|
43
44
|
*/
|
|
44
45
|
telephone?: string;
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
* 人物インターフェース
|
|
48
|
-
*/
|
|
49
|
-
export declare type IPerson = IProfile & {
|
|
47
|
+
export interface IPersonAttributes {
|
|
50
48
|
/**
|
|
51
49
|
* Person ID (Amazon Cognito User Identifier)
|
|
52
50
|
*/
|
|
@@ -56,4 +54,8 @@ export declare type IPerson = IProfile & {
|
|
|
56
54
|
*/
|
|
57
55
|
memberOf?: IMemberOf;
|
|
58
56
|
typeOf: PersonType;
|
|
59
|
-
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 人物
|
|
60
|
+
*/
|
|
61
|
+
export declare type IPerson = IProfile & IPersonAttributes;
|
package/lib/factory/project.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export interface IInformParams {
|
|
|
10
10
|
*/
|
|
11
11
|
recipient?: {
|
|
12
12
|
id?: string;
|
|
13
|
-
typeOf?: any;
|
|
14
13
|
name?: string;
|
|
15
14
|
url?: string;
|
|
16
15
|
};
|
|
@@ -19,7 +18,7 @@ export interface IOnPaymentStatusChanged {
|
|
|
19
18
|
informPayment?: IInformParams[];
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
|
-
*
|
|
21
|
+
* 予約使用時イベント
|
|
23
22
|
*/
|
|
24
23
|
export interface IOnReservationUsed {
|
|
25
24
|
informAction?: IInformParams[];
|
|
@@ -27,7 +26,7 @@ export interface IOnReservationUsed {
|
|
|
27
26
|
export interface ICognitoSettings {
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
29
|
+
* 注文ステータス変更時イベント
|
|
31
30
|
*/
|
|
32
31
|
export interface IOnOrderStatusChanged {
|
|
33
32
|
informOrder?: IInformParams[];
|
|
@@ -43,7 +42,7 @@ export interface IWebhookSettings {
|
|
|
43
42
|
timeout?: number;
|
|
44
43
|
}
|
|
45
44
|
/**
|
|
46
|
-
*
|
|
45
|
+
* プロジェクト設定
|
|
47
46
|
*/
|
|
48
47
|
export interface ISettings {
|
|
49
48
|
importEventsInWeeks?: number;
|
|
@@ -58,7 +57,7 @@ export interface ISettings {
|
|
|
58
57
|
useUsernameAsGMOMemberId?: boolean;
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
|
-
*
|
|
60
|
+
* プロジェクト
|
|
62
61
|
*/
|
|
63
62
|
export interface IProject extends IOrganization {
|
|
64
63
|
typeOf: OrganizationType.Project;
|
|
@@ -72,13 +71,13 @@ export interface IProject extends IOrganization {
|
|
|
72
71
|
};
|
|
73
72
|
}
|
|
74
73
|
/**
|
|
75
|
-
*
|
|
74
|
+
* ソート条件
|
|
76
75
|
*/
|
|
77
76
|
export interface ISortOrder {
|
|
78
77
|
_id?: SortType;
|
|
79
78
|
}
|
|
80
79
|
/**
|
|
81
|
-
*
|
|
80
|
+
* プロジェクト検索条件
|
|
82
81
|
*/
|
|
83
82
|
export interface ISearchConditions {
|
|
84
83
|
limit?: number;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as COA from '@motionpicture/coa-service';
|
|
2
|
+
import { CreativeWorkType } from './creativeWorkType';
|
|
2
3
|
import { IMultilingualString } from './multilingualString';
|
|
3
4
|
import * as OfferFactory from './offer';
|
|
4
5
|
import { OfferType } from './offerType';
|
|
6
|
+
import { OrganizationType } from './organizationType';
|
|
5
7
|
import { IPermit } from './permit';
|
|
8
|
+
import { PersonType } from './personType';
|
|
6
9
|
import * as SeatFactory from './place/seat';
|
|
7
10
|
import { PlaceType } from './placeType';
|
|
8
11
|
import { PriceCurrency } from './priceCurrency';
|
|
@@ -32,11 +35,12 @@ export interface ITicketType {
|
|
|
32
35
|
}
|
|
33
36
|
export declare type IPriceSpecification = IGenericPriceSpecification<PriceSpecificationType>;
|
|
34
37
|
export declare type ISeatingType = SeatFactory.ISeatingType;
|
|
38
|
+
export declare type IUnderNameType = CreativeWorkType.WebApplication | PersonType.Person | OrganizationType.Organization | OrganizationType.Corporation | OrganizationType.Project;
|
|
35
39
|
/**
|
|
36
40
|
* under name interface
|
|
37
41
|
*/
|
|
38
42
|
export interface IUnderName {
|
|
39
|
-
typeOf:
|
|
43
|
+
typeOf: IUnderNameType;
|
|
40
44
|
name: string;
|
|
41
45
|
additionalName?: string;
|
|
42
46
|
address?: string;
|
|
@@ -2,7 +2,7 @@ import { ActionType } from '../actionType';
|
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import { OfferType } from '../offerType';
|
|
4
4
|
import { PermitType } from '../permit';
|
|
5
|
-
import {
|
|
5
|
+
import { IIdentifier } from '../person';
|
|
6
6
|
import { PersonType } from '../personType';
|
|
7
7
|
import { ProductType } from '../product';
|
|
8
8
|
import { IProject } from '../project';
|
|
@@ -12,7 +12,6 @@ import { IPotentialActionsParams as IOrderPotentialActionsParams } from '../tran
|
|
|
12
12
|
export interface IAgent {
|
|
13
13
|
typeOf: PersonType.Person;
|
|
14
14
|
id: string;
|
|
15
|
-
additionalProperty?: IAdditionalProperty;
|
|
16
15
|
identifier: IIdentifier;
|
|
17
16
|
}
|
|
18
17
|
export interface IAcceptedOffer {
|
|
@@ -12,9 +12,10 @@ import * as WebAPIFactory from '../service/webAPI';
|
|
|
12
12
|
import * as TransactionFactory from '../transaction';
|
|
13
13
|
import { TransactionType } from '../transactionType';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* 取引人
|
|
16
16
|
*/
|
|
17
17
|
export declare type IAgent = TransactionFactory.IAgent;
|
|
18
|
+
export declare type ICustomer = OrderFactory.ICustomer;
|
|
18
19
|
export interface IPaymentMethodByPaymentUrl {
|
|
19
20
|
/**
|
|
20
21
|
* 決済方法区分
|
|
@@ -30,7 +31,7 @@ export interface IPaymentMethodByPaymentUrl {
|
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* 注文特典口座
|
|
34
35
|
*/
|
|
35
36
|
export interface IAwardAccount {
|
|
36
37
|
typeOf: AccountType.Account;
|
|
@@ -39,7 +40,7 @@ export interface IAwardAccount {
|
|
|
39
40
|
export interface IObject {
|
|
40
41
|
clientUser?: IClientUser;
|
|
41
42
|
broker?: OrderFactory.IBroker;
|
|
42
|
-
customer?:
|
|
43
|
+
customer?: ICustomer;
|
|
43
44
|
identifier?: OrderFactory.IIdentifier;
|
|
44
45
|
/**
|
|
45
46
|
* 確認番号
|
|
@@ -82,7 +83,7 @@ export interface IStartParamsWithoutDetail {
|
|
|
82
83
|
};
|
|
83
84
|
object: {
|
|
84
85
|
clientUser?: IClientUser;
|
|
85
|
-
customer?:
|
|
86
|
+
customer?: ICustomer;
|
|
86
87
|
passport?: TransactionFactory.IPassportBeforeStart;
|
|
87
88
|
/**
|
|
88
89
|
* 注文名称
|
|
@@ -94,7 +95,7 @@ export interface ISeller extends TransactionFactory.ISeller {
|
|
|
94
95
|
id: string;
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
97
|
-
*
|
|
98
|
+
* 取引開始パラメーター
|
|
98
99
|
*/
|
|
99
100
|
export interface IStartParams extends TransactionFactory.IStartParams<TransactionType.PlaceOrder, IAgent, undefined, IObject> {
|
|
100
101
|
/**
|
|
@@ -176,30 +177,27 @@ export interface IConfirmParams {
|
|
|
176
177
|
result?: IResultParams;
|
|
177
178
|
}
|
|
178
179
|
/**
|
|
179
|
-
*
|
|
180
|
+
* 取引結果
|
|
180
181
|
*/
|
|
181
182
|
export interface IResult {
|
|
182
183
|
/**
|
|
183
|
-
*
|
|
184
|
+
* 注文
|
|
184
185
|
*/
|
|
185
186
|
order: OrderFactory.IOrder;
|
|
186
187
|
}
|
|
187
188
|
/**
|
|
188
|
-
*
|
|
189
|
+
* エラー
|
|
189
190
|
*/
|
|
190
191
|
export declare type IError = any;
|
|
191
192
|
export interface IPotentialActions {
|
|
192
193
|
order: IOrderActionAttributes;
|
|
193
194
|
}
|
|
195
|
+
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
196
|
+
}
|
|
194
197
|
/**
|
|
195
|
-
*
|
|
198
|
+
* 注文取引
|
|
196
199
|
*/
|
|
197
200
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
198
|
-
/**
|
|
199
|
-
* 注文取引インターフェース
|
|
200
|
-
*/
|
|
201
|
-
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
202
|
-
}
|
|
203
201
|
export interface ISearchConditions extends TransactionFactory.ISearchConditions<TransactionType.PlaceOrder> {
|
|
204
202
|
seller?: {
|
|
205
203
|
ids?: string[];
|
|
@@ -10,10 +10,13 @@ import { SortType } from './sortType';
|
|
|
10
10
|
import { TransactionStatusType } from './transactionStatusType';
|
|
11
11
|
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
12
12
|
import { TransactionType } from './transactionType';
|
|
13
|
-
export declare type
|
|
14
|
-
export declare type
|
|
13
|
+
export declare type IOmittedProfileAttributes = 'email' | 'telephone' | 'familyName' | 'givenName' | 'age' | 'address' | 'gender' | 'additionalProperty' | 'url';
|
|
14
|
+
export declare type IAgentProfile = Omit<PersonFactory.IProfile, IOmittedProfileAttributes>;
|
|
15
|
+
export declare type IWebApplicationAgent = IWebApplication & IAgentProfile;
|
|
16
|
+
export declare type IPersonAgent = PersonFactory.IPerson;
|
|
17
|
+
export declare type IAgent = Omit<IWebApplicationAgent | PersonFactory.IPerson, IOmittedProfileAttributes>;
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
19
|
+
* 販売者
|
|
17
20
|
* 最適化(2022-05-20~)
|
|
18
21
|
*/
|
|
19
22
|
export declare type ISeller = Omit<SellerFactory.ISeller, 'branchCode' | 'paymentAccepted' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location' | 'url' | 'project'>;
|
|
@@ -44,7 +47,7 @@ export interface IPassportBeforeStart {
|
|
|
44
47
|
secret: string;
|
|
45
48
|
}
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
50
|
+
* 取引開始パラメータ
|
|
48
51
|
*/
|
|
49
52
|
export interface IStartParams<T extends TransactionType, TAgent, TRecipient, TObject> {
|
|
50
53
|
project: IProject;
|
|
@@ -69,10 +72,6 @@ export interface IStartParams<T extends TransactionType, TAgent, TRecipient, TOb
|
|
|
69
72
|
*/
|
|
70
73
|
expires: Date;
|
|
71
74
|
}
|
|
72
|
-
export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
|
|
73
|
-
/**
|
|
74
|
-
* 取引インターフェース
|
|
75
|
-
*/
|
|
76
75
|
export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TStartParams & {
|
|
77
76
|
/**
|
|
78
77
|
* 取引状態
|
|
@@ -111,8 +110,9 @@ export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions
|
|
|
111
110
|
*/
|
|
112
111
|
potentialActions?: TPotentialActions;
|
|
113
112
|
};
|
|
113
|
+
export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* ソート条件
|
|
116
116
|
*/
|
|
117
117
|
export interface ISortOrder {
|
|
118
118
|
startDate?: SortType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.227.0",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"typescript": "^4.3.2"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@motionpicture/coa-service": "
|
|
63
|
+
"@motionpicture/coa-service": "9.2.0",
|
|
64
64
|
"@motionpicture/gmo-service": "^5.0.0",
|
|
65
65
|
"@surfrock/sdk": "1.1.0",
|
|
66
66
|
"@waiter/factory": "2.1.0",
|