@chevre/factory 4.221.0 → 4.224.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 +4 -3
- package/lib/factory/action/authorize/offer/product.d.ts +7 -1
- package/lib/factory/action/authorize/offer/seatReservation.d.ts +1 -1
- package/lib/factory/action/authorize/paymentMethod/any.d.ts +1 -1
- package/lib/factory/action/interact/confirm/registerService.d.ts +2 -1
- package/lib/factory/action/interact/confirm/reservation.d.ts +3 -1
- package/lib/factory/action/reserve.d.ts +13 -9
- package/lib/factory/action/transfer/return/reservation.d.ts +4 -6
- package/lib/factory/assetTransaction/cancelReservation.d.ts +5 -14
- package/lib/factory/assetTransaction/reserve.d.ts +13 -16
- package/lib/factory/event/screeningEvent.d.ts +12 -12
- package/lib/factory/reservation/event.d.ts +2 -2
- package/lib/factory/reservation.d.ts +5 -4
- package/lib/factory/task/confirmCancelReserve.d.ts +2 -15
- package/lib/factory/task/confirmReserveTransaction.d.ts +14 -0
- package/lib/factory/task/confirmReserveTransaction.js +2 -0
- package/lib/factory/task.d.ts +20 -4
- package/lib/factory/taskName.d.ts +4 -0
- package/lib/factory/taskName.js +4 -0
- package/lib/factory/transaction/returnOrder.d.ts +0 -1
- package/package.json +1 -1
package/lib/chevre.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ import * as ConfirmPayTransactionTaskFactory from './factory/task/confirmPayTran
|
|
|
131
131
|
import * as ConfirmRefundTaskFactory from './factory/task/confirmRefund';
|
|
132
132
|
import * as ConfirmRegisterServiceTaskFactory from './factory/task/confirmRegisterService';
|
|
133
133
|
import * as ConfirmReservationTaskFactory from './factory/task/confirmReservation';
|
|
134
|
+
import * as ConfirmReserveTransactionTaskFactory from './factory/task/confirmReserveTransaction';
|
|
134
135
|
import * as DeleteAuthorizationTaskFactory from './factory/task/deleteAuthorization';
|
|
135
136
|
import * as DeleteMemberTaskFactory from './factory/task/deleteMember';
|
|
136
137
|
import * as DeleteOrderTaskFactory from './factory/task/deleteOrder';
|
|
@@ -387,9 +388,9 @@ export import reservationStatusType = ReservationStatusType;
|
|
|
387
388
|
export import reservationType = ReservationType;
|
|
388
389
|
export import seller = SellerFactory;
|
|
389
390
|
export declare namespace task {
|
|
390
|
-
type IData<T extends TaskName | string> = T extends TaskName.ConfirmCancelReserve ? ConfirmCancelReserveTaskFactory.IData : T extends TaskName.ConfirmReservation ? ConfirmReservationTaskFactory.IData : T extends TaskName.DeleteAuthorization ? DeleteAuthorizationTaskFactory.IData : T extends TaskName.DeleteMember ? DeleteMemberTaskFactory.IData : T extends TaskName.DeleteOrder ? DeleteOrderTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IData : T extends TaskName.OrderProgramMembership ? OrderProgramMembershipTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRefund ? ConfirmRefundTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.ConfirmPay ? ConfirmPayTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
|
|
391
|
-
type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmCancelReserve ? ConfirmCancelReserveTaskFactory.IAttributes : T extends TaskName.ConfirmReservation ? ConfirmReservationTaskFactory.IAttributes : T extends TaskName.DeleteAuthorization ? DeleteAuthorizationTaskFactory.IAttributes : T extends TaskName.DeleteMember ? DeleteMemberTaskFactory.IAttributes : T extends TaskName.DeleteOrder ? DeleteOrderTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IAttributes : T extends TaskName.OrderProgramMembership ? OrderProgramMembershipTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRefund ? ConfirmRefundTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.ConfirmPay ? ConfirmPayTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IAttributes : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IAttributes : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes : TaskFactory.IAttributes;
|
|
392
|
-
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmCancelReserve ? ConfirmCancelReserveTaskFactory.ITask : T extends TaskName.ConfirmReservation ? ConfirmReservationTaskFactory.ITask : T extends TaskName.DeleteAuthorization ? DeleteAuthorizationTaskFactory.ITask : T extends TaskName.DeleteMember ? DeleteMemberTaskFactory.ITask : T extends TaskName.DeleteOrder ? DeleteOrderTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.ITask : T extends TaskName.OrderProgramMembership ? OrderProgramMembershipTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRefund ? ConfirmRefundTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.ConfirmPay ? ConfirmPayTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
|
|
391
|
+
type IData<T extends TaskName | string> = T extends TaskName.ConfirmCancelReserve ? ConfirmCancelReserveTaskFactory.IData : T extends TaskName.ConfirmReservation ? ConfirmReservationTaskFactory.IData : T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.DeleteAuthorization ? DeleteAuthorizationTaskFactory.IData : T extends TaskName.DeleteMember ? DeleteMemberTaskFactory.IData : T extends TaskName.DeleteOrder ? DeleteOrderTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IData : T extends TaskName.OrderProgramMembership ? OrderProgramMembershipTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRefund ? ConfirmRefundTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.ConfirmPay ? ConfirmPayTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
|
|
392
|
+
type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmCancelReserve ? ConfirmCancelReserveTaskFactory.IAttributes : T extends TaskName.ConfirmReservation ? ConfirmReservationTaskFactory.IAttributes : T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.DeleteAuthorization ? DeleteAuthorizationTaskFactory.IAttributes : T extends TaskName.DeleteMember ? DeleteMemberTaskFactory.IAttributes : T extends TaskName.DeleteOrder ? DeleteOrderTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IAttributes : T extends TaskName.OrderProgramMembership ? OrderProgramMembershipTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRefund ? ConfirmRefundTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.ConfirmPay ? ConfirmPayTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IAttributes : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IAttributes : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes : TaskFactory.IAttributes;
|
|
393
|
+
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmCancelReserve ? ConfirmCancelReserveTaskFactory.ITask : T extends TaskName.ConfirmReservation ? ConfirmReservationTaskFactory.ITask : T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.DeleteAuthorization ? DeleteAuthorizationTaskFactory.ITask : T extends TaskName.DeleteMember ? DeleteMemberTaskFactory.ITask : T extends TaskName.DeleteOrder ? DeleteOrderTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.ITask : T extends TaskName.OrderProgramMembership ? OrderProgramMembershipTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRefund ? ConfirmRefundTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.ConfirmPay ? ConfirmPayTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
|
|
393
394
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
394
395
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
395
396
|
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import { ActionType } from '../../../actionType';
|
|
3
3
|
import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
|
|
4
|
+
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
5
|
import { IOffer, ITicketPriceSpecification } from '../../../offer';
|
|
5
6
|
import * as OrderFactory from '../../../order';
|
|
6
7
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
@@ -38,14 +39,19 @@ export interface IPurpose {
|
|
|
38
39
|
id: string;
|
|
39
40
|
}
|
|
40
41
|
export declare type IError = any;
|
|
42
|
+
export interface IInstrument {
|
|
43
|
+
typeOf: AssetTransactionType.RegisterService;
|
|
44
|
+
transactionNumber: string;
|
|
45
|
+
}
|
|
41
46
|
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
42
47
|
typeOf: ActionType.AuthorizeAction;
|
|
43
48
|
agent: IAgent;
|
|
49
|
+
instrument: IInstrument;
|
|
44
50
|
recipient: IRecipient;
|
|
45
51
|
object: IObject;
|
|
46
52
|
purpose: IPurpose;
|
|
47
53
|
}
|
|
48
54
|
/**
|
|
49
|
-
*
|
|
55
|
+
* プロダクトオファー承認アクション
|
|
50
56
|
*/
|
|
51
57
|
export declare type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -95,6 +95,6 @@ export interface IAttributes<T extends WebAPIFactory.Identifier> extends Authori
|
|
|
95
95
|
recipient: IRecipient;
|
|
96
96
|
object: IObject<T>;
|
|
97
97
|
purpose: IPurpose;
|
|
98
|
-
instrument
|
|
98
|
+
instrument: IInstrument<T>;
|
|
99
99
|
}
|
|
100
100
|
export declare type IAction<T extends WebAPIFactory.Identifier> = ActionFactory.IAction<IAttributes<T>>;
|
|
@@ -205,7 +205,7 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
|
|
|
205
205
|
typeOf: ActionType.AuthorizeAction;
|
|
206
206
|
object: IObject;
|
|
207
207
|
agent: IAgent;
|
|
208
|
-
instrument
|
|
208
|
+
instrument: IInstrument;
|
|
209
209
|
recipient: IRecipient;
|
|
210
210
|
purpose: IPurpose;
|
|
211
211
|
}
|
|
@@ -3,7 +3,8 @@ import { AssetTransactionType } from '../../../assetTransactionType';
|
|
|
3
3
|
import { ISimpleOrder } from '../../../order';
|
|
4
4
|
import * as OrderProgramMembershipFactory from '../../../task/orderProgramMembership';
|
|
5
5
|
import * as ConfirmActionFactory from '../confirm';
|
|
6
|
-
export declare type IObject = RegisterServiceFactory.IConfirmParams & {
|
|
6
|
+
export declare type IObject = Omit<RegisterServiceFactory.IConfirmParams, 'id'> & {
|
|
7
|
+
transactionNumber: string;
|
|
7
8
|
typeOf: AssetTransactionType.RegisterService;
|
|
8
9
|
};
|
|
9
10
|
export declare type IPurpose = ISimpleOrder;
|
|
@@ -5,9 +5,11 @@ import { ISimpleOrder } from '../../../order';
|
|
|
5
5
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
6
6
|
import * as ConfirmActionFactory from '../confirm';
|
|
7
7
|
export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
|
|
8
|
+
transactionNumber: string;
|
|
8
9
|
typeOf: 'COAReserveTransaction';
|
|
9
10
|
};
|
|
10
|
-
export declare type IObject4Chevre = ReserveTransactionFactory.IConfirmParams & {
|
|
11
|
+
export declare type IObject4Chevre = Omit<ReserveTransactionFactory.IConfirmParams, 'id'> & {
|
|
12
|
+
transactionNumber: string;
|
|
11
13
|
typeOf: AssetTransactionType.Reserve;
|
|
12
14
|
};
|
|
13
15
|
export declare type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COA : IObject4Chevre;
|
|
@@ -1,42 +1,46 @@
|
|
|
1
1
|
import * as ActionFactory from '../action';
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
|
+
import { OrderType } from '../order';
|
|
4
5
|
import { IReservation as IEventReservation } from '../reservation/event';
|
|
5
6
|
import { IAttributes as IInformActionAttributes } from './interact/inform';
|
|
6
7
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* 予約対象
|
|
9
10
|
*/
|
|
10
11
|
export declare type IObject = IEventReservation;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* 予約結果
|
|
13
14
|
*/
|
|
14
15
|
export declare type IResult = any;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
export interface IOrderAsReservePurpose {
|
|
17
|
+
typeOf: OrderType.Order;
|
|
18
|
+
confirmationNumber?: string;
|
|
19
|
+
orderNumber?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IAssetTransactionAsReservePurpose {
|
|
19
22
|
/**
|
|
20
23
|
* 取引タイプ
|
|
21
24
|
*/
|
|
22
|
-
typeOf: AssetTransactionType;
|
|
25
|
+
typeOf: AssetTransactionType.Reserve;
|
|
23
26
|
/**
|
|
24
27
|
* 取引ID
|
|
25
28
|
*/
|
|
26
29
|
id: string;
|
|
27
30
|
}
|
|
31
|
+
export declare type IPurpose = IOrderAsReservePurpose | IAssetTransactionAsReservePurpose;
|
|
28
32
|
export declare type IInformReservation = IInformActionAttributes<IObject, any>;
|
|
29
33
|
export interface IPotentialActions {
|
|
30
34
|
moneyTransfer?: IMoneyTransferActionAttributes[];
|
|
31
35
|
}
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* アクション属性
|
|
34
38
|
*/
|
|
35
39
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult> {
|
|
36
40
|
potentialActions?: IPotentialActions;
|
|
37
41
|
purpose: IPurpose;
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
44
|
+
* 予約アクション
|
|
41
45
|
*/
|
|
42
46
|
export declare type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as ActionFactory from '../../../action';
|
|
3
3
|
import { ActionType } from '../../../actionType';
|
|
4
|
-
import * as CancelReservationAssetTransactionFactory from '../../../assetTransaction/cancelReservation';
|
|
5
4
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
5
|
import { ISimpleOrder } from '../../../order';
|
|
7
6
|
import { OrganizationType } from '../../../organizationType';
|
|
@@ -10,19 +9,18 @@ export interface IAgent {
|
|
|
10
9
|
id: string;
|
|
11
10
|
typeOf: OrganizationType.Project;
|
|
12
11
|
}
|
|
13
|
-
export declare type IObject4COA = COA.factory.reserve.IStateReserveArgs
|
|
12
|
+
export declare type IObject4COA = COA.factory.reserve.IStateReserveArgs & {
|
|
13
|
+
typeOf: 'COAReserveTransaction';
|
|
14
|
+
};
|
|
14
15
|
export interface IObject4Chevre {
|
|
15
16
|
typeOf: AssetTransactionType.Reserve;
|
|
16
|
-
|
|
17
|
-
transactionNumber?: string;
|
|
17
|
+
transactionNumber: string;
|
|
18
18
|
}
|
|
19
19
|
export declare type IObject<T extends WebAPIIdentifier> = T extends WebAPIIdentifier.COA ? IObject4COA : IObject4Chevre;
|
|
20
20
|
export declare type IPurpose = ISimpleOrder;
|
|
21
21
|
export declare type IResult = any;
|
|
22
|
-
export declare type IPotentialActions = CancelReservationAssetTransactionFactory.IPotentialActionsParams;
|
|
23
22
|
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.ReturnAction, TObject, TResult> {
|
|
24
23
|
agent: IAgent;
|
|
25
|
-
potentialActions?: IPotentialActions;
|
|
26
24
|
purpose?: IPurpose;
|
|
27
25
|
}
|
|
28
26
|
/**
|
|
@@ -7,7 +7,7 @@ import { IClientUser } from '../clientUser';
|
|
|
7
7
|
import { IReservation as IEventReservation } from '../reservation/event';
|
|
8
8
|
export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* 取引開始パラメーター
|
|
11
11
|
*/
|
|
12
12
|
export declare type IStartParams = TransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObject>;
|
|
13
13
|
export interface IAgent {
|
|
@@ -19,7 +19,7 @@ export interface IAgent {
|
|
|
19
19
|
export interface IResult {
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* エラー
|
|
23
23
|
*/
|
|
24
24
|
export declare type IError = any;
|
|
25
25
|
export interface IObjectWithoutDetail {
|
|
@@ -36,34 +36,25 @@ export interface IObjectWithoutDetail {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* 取引対象物
|
|
40
40
|
*/
|
|
41
41
|
export interface IObject {
|
|
42
42
|
clientUser?: IClientUser;
|
|
43
43
|
transaction?: IReserveTransaction;
|
|
44
44
|
reservations?: IEventReservation[];
|
|
45
45
|
}
|
|
46
|
-
export interface IPotentialActionsParams {
|
|
47
|
-
cancelReservation?: {
|
|
48
|
-
potentialActions?: {};
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
46
|
/**
|
|
52
|
-
*
|
|
47
|
+
* 取引確定パラメータ
|
|
53
48
|
*/
|
|
54
49
|
export interface IConfirmParams {
|
|
55
50
|
id: string;
|
|
56
|
-
/**
|
|
57
|
-
* 取引確定後アクション
|
|
58
|
-
*/
|
|
59
|
-
potentialActions?: IPotentialActionsParams;
|
|
60
51
|
}
|
|
61
52
|
export interface IPotentialActions {
|
|
62
53
|
cancelReservation: ICancelReservationActionAttributes[];
|
|
63
54
|
}
|
|
64
55
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
65
56
|
/**
|
|
66
|
-
*
|
|
57
|
+
* 取引属性
|
|
67
58
|
*/
|
|
68
59
|
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
69
60
|
}
|
|
@@ -13,7 +13,7 @@ import { IReservation as IReservationPackage } from '../reservation/reservationP
|
|
|
13
13
|
import { ReservationType } from '../reservationType';
|
|
14
14
|
export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 取引開始パラメーター
|
|
17
17
|
*/
|
|
18
18
|
export declare type IStartParams = TransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject>;
|
|
19
19
|
export interface IAgent {
|
|
@@ -64,7 +64,7 @@ export interface IAcceptedPointAward {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* 受け入れられたオファーのアイテム
|
|
68
68
|
*/
|
|
69
69
|
export interface IAcceptedTicketOfferItemOffered {
|
|
70
70
|
pointAward?: IAcceptedPointAward;
|
|
@@ -152,7 +152,7 @@ export interface IAcceptedOffer4object {
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* 確定時予約
|
|
156
156
|
* 指定することで、予約属性を確定時に上書きすることができる
|
|
157
157
|
*/
|
|
158
158
|
export interface IConfirmingReservation {
|
|
@@ -160,25 +160,21 @@ export interface IConfirmingReservation {
|
|
|
160
160
|
/**
|
|
161
161
|
* Any additional text to appear on a ticket, such as additional privileges or identifiers.
|
|
162
162
|
*/
|
|
163
|
-
additionalTicketText?: string;
|
|
164
163
|
reservedTicket?: {
|
|
165
164
|
/**
|
|
166
165
|
* チケット発行者
|
|
167
166
|
*/
|
|
168
167
|
issuedBy?: ReservationFactory.IUnderName;
|
|
169
|
-
/**
|
|
170
|
-
* If the barcode image is hosted on your site, the value of the field is URL of the image, or a barcode or QR URI,
|
|
171
|
-
* such as "barcode128:AB34" (ISO-15417 barcodes), "qrCode:AB34" (QR codes),
|
|
172
|
-
* "aztecCode:AB34" (Aztec codes), "barcodeEAN:1234" (EAN codes) and "barcodeUPCA:1234" (UPCA codes).
|
|
173
|
-
*/
|
|
174
|
-
ticketToken?: string;
|
|
175
|
-
underName?: ReservationFactory.IUnderName;
|
|
176
168
|
};
|
|
177
169
|
underName?: ReservationFactory.IUnderName;
|
|
178
|
-
|
|
170
|
+
}
|
|
171
|
+
export interface IPotentialActionsParams {
|
|
172
|
+
reserve?: {
|
|
173
|
+
purpose?: ReserveActionFactory.IOrderAsReservePurpose;
|
|
174
|
+
};
|
|
179
175
|
}
|
|
180
176
|
/**
|
|
181
|
-
*
|
|
177
|
+
* 確定パラメータ
|
|
182
178
|
*/
|
|
183
179
|
export interface IConfirmParams {
|
|
184
180
|
id?: string;
|
|
@@ -189,11 +185,12 @@ export interface IConfirmParams {
|
|
|
189
185
|
*/
|
|
190
186
|
reservations: IConfirmingReservation[];
|
|
191
187
|
};
|
|
188
|
+
potentialActions?: IPotentialActionsParams;
|
|
192
189
|
}
|
|
193
190
|
export interface IResult {
|
|
194
191
|
}
|
|
195
192
|
/**
|
|
196
|
-
*
|
|
193
|
+
* エラー
|
|
197
194
|
*/
|
|
198
195
|
export declare type IError = any;
|
|
199
196
|
export interface IObjectWithoutDetail {
|
|
@@ -206,7 +203,7 @@ export interface IObjectWithoutDetail {
|
|
|
206
203
|
export declare type IReservationFor = IEventReservationReservationFor;
|
|
207
204
|
export declare type IObjectSubReservation = Omit<IEventReservation, 'reservationFor'>;
|
|
208
205
|
/**
|
|
209
|
-
*
|
|
206
|
+
* 取引対象物
|
|
210
207
|
*/
|
|
211
208
|
export interface IObject extends IReservationPackage {
|
|
212
209
|
acceptedOffer?: IAcceptedOffer4object[];
|
|
@@ -219,7 +216,7 @@ export interface IPotentialActions {
|
|
|
219
216
|
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
220
217
|
}
|
|
221
218
|
/**
|
|
222
|
-
*
|
|
219
|
+
* 予約取引
|
|
223
220
|
*/
|
|
224
221
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
225
222
|
export interface IObjectSearchConditions {
|
|
@@ -17,7 +17,7 @@ import { IServiceType } from '../serviceType';
|
|
|
17
17
|
import { IThing } from '../thing';
|
|
18
18
|
import { UnitCode } from '../unitCode';
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 予約集計
|
|
21
21
|
*/
|
|
22
22
|
export interface IAggregateReservation {
|
|
23
23
|
typeOf: 'AggregateReservation';
|
|
@@ -28,7 +28,7 @@ export interface IAggregateReservation {
|
|
|
28
28
|
useActionCount?: number;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 予約集計つきオファー
|
|
32
32
|
*/
|
|
33
33
|
export interface IOfferWithAggregateReservation extends IThing {
|
|
34
34
|
typeOf: OfferType.Offer;
|
|
@@ -40,7 +40,7 @@ export interface IOfferWithAggregateReservation extends IThing {
|
|
|
40
40
|
remainingAttendeeCapacity?: number;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* オファー集計
|
|
44
44
|
*/
|
|
45
45
|
export interface IAggregateOffer {
|
|
46
46
|
typeOf: OfferType.AggregateOffer;
|
|
@@ -82,7 +82,7 @@ export interface IServiceOutput {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* イベントのサービス
|
|
86
86
|
*/
|
|
87
87
|
export interface IService {
|
|
88
88
|
/**
|
|
@@ -101,7 +101,7 @@ export interface ISeller {
|
|
|
101
101
|
name?: string | IMultilingualString;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* イベントに対するオファー
|
|
105
105
|
*/
|
|
106
106
|
export interface IOffer {
|
|
107
107
|
project: IProject;
|
|
@@ -135,7 +135,7 @@ export interface IOffer {
|
|
|
135
135
|
export import ITicketPriceComponent = OfferFactory.ITicketPriceComponent;
|
|
136
136
|
export import ITicketPriceSpecification = OfferFactory.ITicketPriceSpecification;
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* チケットオファー
|
|
139
139
|
*/
|
|
140
140
|
export interface ITicketOffer extends OfferFactory.IOffer {
|
|
141
141
|
identifier: string;
|
|
@@ -190,7 +190,7 @@ export interface ICOAInfo {
|
|
|
190
190
|
flgEarlyBooking: string;
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
|
-
* COA
|
|
193
|
+
* COA券種情報
|
|
194
194
|
*/
|
|
195
195
|
export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
|
|
196
196
|
/**
|
|
@@ -237,7 +237,7 @@ export interface ILocation {
|
|
|
237
237
|
export declare type ISuperEvent = ScreeningEventSeriesFactory.IEvent;
|
|
238
238
|
export declare type IName = IMultilingualString;
|
|
239
239
|
/**
|
|
240
|
-
*
|
|
240
|
+
* イベント属性
|
|
241
241
|
*/
|
|
242
242
|
export interface IAttributes extends EventFactory.IAttributes<EventType.ScreeningEvent> {
|
|
243
243
|
/**
|
|
@@ -298,16 +298,16 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
|
|
|
298
298
|
aggregateOffer?: IAggregateOffer;
|
|
299
299
|
/**
|
|
300
300
|
* その他COA情報
|
|
301
|
-
*
|
|
301
|
+
* 基本的にsskts対応
|
|
302
302
|
*/
|
|
303
303
|
coaInfo?: ICOAInfo;
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
|
-
*
|
|
306
|
+
* イベント
|
|
307
307
|
*/
|
|
308
308
|
export declare type IEvent = EventFactory.IEvent<IAttributes>;
|
|
309
309
|
/**
|
|
310
|
-
*
|
|
310
|
+
* ソート条件
|
|
311
311
|
*/
|
|
312
312
|
export declare type ISortOrder = EventFactory.ISortOrder;
|
|
313
313
|
export interface IOfferSearchConditions {
|
|
@@ -329,7 +329,7 @@ export interface IOfferSearchConditions {
|
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
/**
|
|
332
|
-
*
|
|
332
|
+
* イベント検索条件
|
|
333
333
|
*/
|
|
334
334
|
export interface ISearchConditions extends EventFactory.ISearchConditions<EventType.ScreeningEvent> {
|
|
335
335
|
/**
|
|
@@ -18,7 +18,7 @@ export interface IReservationFor {
|
|
|
18
18
|
identifier?: string;
|
|
19
19
|
/**
|
|
20
20
|
* その他COA情報
|
|
21
|
-
*
|
|
21
|
+
* 基本的にsskts対応
|
|
22
22
|
*/
|
|
23
23
|
coaInfo?: ICOAInfo;
|
|
24
24
|
location: IEventLocation;
|
|
@@ -38,7 +38,7 @@ export interface ISubReservation {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* イベント予約
|
|
42
42
|
*/
|
|
43
43
|
export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
|
|
44
44
|
id: string;
|
|
@@ -154,11 +154,12 @@ export interface ITicket {
|
|
|
154
154
|
* COA券種情報
|
|
155
155
|
*/
|
|
156
156
|
coaTicketInfo?: ICOATicketInfoWithDetails;
|
|
157
|
+
coaReserveAmount?: number;
|
|
157
158
|
}
|
|
158
159
|
export declare type IBroker = IUnderName;
|
|
159
160
|
export declare type IProgramMembershipUsed = IPermit;
|
|
160
161
|
/**
|
|
161
|
-
*
|
|
162
|
+
* 予約
|
|
162
163
|
* Describes a reservation for travel, dining or an event. Some reservations require tickets.
|
|
163
164
|
* Note: This type is for information about actual reservations,
|
|
164
165
|
* e.g. in confirmation emails or HTML pages with individual confirmations of reservations.
|
|
@@ -263,7 +264,7 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
|
|
|
263
264
|
additionalProperty?: IPropertyValue<string>[];
|
|
264
265
|
}
|
|
265
266
|
/**
|
|
266
|
-
*
|
|
267
|
+
* チケットホルダー検索条件
|
|
267
268
|
*/
|
|
268
269
|
export interface IUnderNameSearchConditions {
|
|
269
270
|
id?: string;
|
|
@@ -294,7 +295,7 @@ export interface IUnderNameSearchConditions {
|
|
|
294
295
|
}
|
|
295
296
|
export declare type IBrokerSearchConditions = IUnderNameSearchConditions;
|
|
296
297
|
/**
|
|
297
|
-
*
|
|
298
|
+
* 予約チケット検索条件
|
|
298
299
|
*/
|
|
299
300
|
export interface IReservedTicketSearchConditions {
|
|
300
301
|
/**
|
|
@@ -330,7 +331,7 @@ export interface IStringSearchConditions {
|
|
|
330
331
|
$regex?: string;
|
|
331
332
|
}
|
|
332
333
|
/**
|
|
333
|
-
*
|
|
334
|
+
* ソート条件
|
|
334
335
|
*/
|
|
335
336
|
export interface ISortOrder {
|
|
336
337
|
modifiedTime?: SortType;
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { IAttributes as ICancelActionAttributes } from '../action/transfer/return/reservation';
|
|
3
|
-
import * as CancelReservationTransactionFactory from '../assetTransaction/cancelReservation';
|
|
4
|
-
import { AssetTransactionType } from '../assetTransactionType';
|
|
1
|
+
import { IAttributes as ICancelActionAttributes, IObject } from '../action/transfer/return/reservation';
|
|
5
2
|
import { IExtendId } from '../autoGenerated';
|
|
6
3
|
import * as WebAPIFactory from '../service/webAPI';
|
|
7
4
|
import * as TaskFactory from '../task';
|
|
8
5
|
import { TaskName } from '../taskName';
|
|
9
|
-
export declare type
|
|
10
|
-
export interface IObject4Chevre {
|
|
11
|
-
typeOf: AssetTransactionType.Reserve;
|
|
12
|
-
id?: string;
|
|
13
|
-
transactionNumber?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COA : IObject4Chevre;
|
|
16
|
-
export declare type IPotentialActions = CancelReservationTransactionFactory.IPotentialActionsParams;
|
|
17
|
-
export declare type IData = ICancelActionAttributes<IObject<WebAPIFactory.Identifier>, any> & {
|
|
18
|
-
potentialActions?: IPotentialActions;
|
|
19
|
-
};
|
|
6
|
+
export declare type IData = ICancelActionAttributes<IObject<WebAPIFactory.Identifier>, any>;
|
|
20
7
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
21
8
|
name: TaskName.ConfirmCancelReserve;
|
|
22
9
|
data: IData;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IAttributes as IConfirmReservationActionAttributes } from '../action/interact/confirm/reservation';
|
|
2
|
+
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import * as WebAPIFactory from '../service/webAPI';
|
|
4
|
+
import * as TaskFactory from '../task';
|
|
5
|
+
import { TaskName } from '../taskName';
|
|
6
|
+
export declare type IData = IConfirmReservationActionAttributes<WebAPIFactory.Identifier>;
|
|
7
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
8
|
+
name: TaskName.ConfirmReserveTransaction;
|
|
9
|
+
data: IData;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 予約資産取引確定タスク
|
|
13
|
+
*/
|
|
14
|
+
export declare type ITask = IExtendId<IAttributes>;
|
package/lib/factory/task.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ import { TaskName } from './taskName';
|
|
|
5
5
|
import { TaskStatus } from './taskStatus';
|
|
6
6
|
export declare type IData = any;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* タスク実行結果
|
|
9
9
|
*/
|
|
10
10
|
export interface IExecutionResult {
|
|
11
11
|
executedAt: Date;
|
|
12
12
|
error: any;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* タスク
|
|
16
16
|
*/
|
|
17
17
|
export declare type ITask = IExtendId<IAttributes>;
|
|
18
18
|
export interface IAttributes {
|
|
@@ -52,13 +52,28 @@ export interface IAttributes {
|
|
|
52
52
|
data: IData;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* ソート条件
|
|
56
56
|
*/
|
|
57
57
|
export interface ISortOrder {
|
|
58
58
|
runsAt?: SortType;
|
|
59
59
|
}
|
|
60
|
+
export interface IDataSearchConditions {
|
|
61
|
+
object?: {
|
|
62
|
+
transactionNumber?: {
|
|
63
|
+
$eq?: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
purpose?: {
|
|
67
|
+
id?: {
|
|
68
|
+
$eq?: string;
|
|
69
|
+
};
|
|
70
|
+
orderNumber?: {
|
|
71
|
+
$eq?: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
}
|
|
60
75
|
/**
|
|
61
|
-
*
|
|
76
|
+
* タスク検索条件
|
|
62
77
|
*/
|
|
63
78
|
export interface ISearchConditions<T extends TaskName | string> {
|
|
64
79
|
limit?: number;
|
|
@@ -75,4 +90,5 @@ export interface ISearchConditions<T extends TaskName | string> {
|
|
|
75
90
|
runsThrough?: Date;
|
|
76
91
|
lastTriedFrom?: Date;
|
|
77
92
|
lastTriedThrough?: Date;
|
|
93
|
+
data?: IDataSearchConditions;
|
|
78
94
|
}
|
package/lib/factory/taskName.js
CHANGED
|
@@ -58,7 +58,6 @@ export interface IStartParams extends TransactionFactory.IStartParams<Transactio
|
|
|
58
58
|
*/
|
|
59
59
|
export declare type IInformOrderParams = IInformParams;
|
|
60
60
|
export import ICancelReservationObject = ReturnReservationActionFactory.IObject;
|
|
61
|
-
export import ICancelReservationPotentialActions = ReturnReservationActionFactory.IPotentialActions;
|
|
62
61
|
declare type ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
|
|
63
62
|
/**
|
|
64
63
|
* クレジットカード返金パラメータ
|