@chevre/factory 4.219.0 → 4.222.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 +2 -1
- package/lib/factory/action/reserve.d.ts +13 -9
- package/lib/factory/action/trade/pay.d.ts +1 -2
- package/lib/factory/action/trade/refund.d.ts +1 -8
- package/lib/factory/action/transfer/return/reservation.d.ts +4 -6
- package/lib/factory/action.d.ts +1 -1
- package/lib/factory/assetTransaction/cancelReservation.d.ts +5 -14
- package/lib/factory/assetTransaction/reserve.d.ts +13 -16
- package/lib/factory/order.d.ts +13 -15
- 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/taskName.d.ts +4 -0
- package/lib/factory/taskName.js +4 -0
- package/lib/factory/transaction/returnOrder.d.ts +0 -1
- package/lib/factory/transaction.d.ts +2 -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;
|
|
@@ -7,7 +7,8 @@ import * as ConfirmActionFactory from '../confirm';
|
|
|
7
7
|
export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
|
|
8
8
|
typeOf: 'COAReserveTransaction';
|
|
9
9
|
};
|
|
10
|
-
export declare type IObject4Chevre = ReserveTransactionFactory.IConfirmParams & {
|
|
10
|
+
export declare type IObject4Chevre = Omit<ReserveTransactionFactory.IConfirmParams, 'id'> & {
|
|
11
|
+
transactionNumber: string;
|
|
11
12
|
typeOf: AssetTransactionType.Reserve;
|
|
12
13
|
};
|
|
13
14
|
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>;
|
|
@@ -10,7 +10,6 @@ import { OrderType } from '../../order';
|
|
|
10
10
|
import { OrganizationType } from '../../organizationType';
|
|
11
11
|
import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
|
|
12
12
|
import { IPropertyValue } from '../../propertyValue';
|
|
13
|
-
import { ISeller } from '../../seller';
|
|
14
13
|
import { PaymentServiceType } from '../../service/paymentService';
|
|
15
14
|
import { TransactionType } from '../../transactionType';
|
|
16
15
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
@@ -18,7 +17,7 @@ export interface IAgent {
|
|
|
18
17
|
id: string;
|
|
19
18
|
typeOf: OrganizationType.Project;
|
|
20
19
|
}
|
|
21
|
-
export
|
|
20
|
+
export import IRecipient = ActionFactory.IParticipantAsSeller;
|
|
22
21
|
export interface IOrderAsPayPurpose {
|
|
23
22
|
typeOf: OrderType.Order;
|
|
24
23
|
confirmationNumber?: string;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
-
import { ISeller } from '../../seller';
|
|
4
3
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
5
4
|
import { IPaymentService as IPaymentServiceOnPay, IPayPurpose } from './pay';
|
|
6
|
-
|
|
7
|
-
* agentはSeller
|
|
8
|
-
*/
|
|
9
|
-
export interface IAgentAsSeller extends Omit<ISeller, 'branchCode' | 'paymentAccepted'> {
|
|
10
|
-
name: string;
|
|
11
|
-
}
|
|
12
|
-
export declare type IAgent = IAgentAsSeller | ActionFactory.IParticipant;
|
|
5
|
+
export declare type IAgent = ActionFactory.IParticipant;
|
|
13
6
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
14
7
|
export declare type IPaymentService = IPaymentServiceOnPay & {
|
|
15
8
|
refundFee?: number;
|
|
@@ -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
|
/**
|
package/lib/factory/action.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { ISeller } from './seller';
|
|
|
11
11
|
import { SortType } from './sortType';
|
|
12
12
|
export declare type IParticipantAsWebApplication = Omit<IWebApplication, 'additionalProperty'>;
|
|
13
13
|
export declare type IParticipantAsPerson = Omit<IPerson, 'email' | 'telephone' | 'givenName' | 'familyName' | 'additionalProperty'>;
|
|
14
|
-
export declare type IParticipantAsSeller = Omit<ISeller, 'branchCode' | 'paymentAccepted' | 'project' | 'additionalProperty'>;
|
|
14
|
+
export declare type IParticipantAsSeller = Omit<ISeller, 'branchCode' | 'paymentAccepted' | 'project' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location'>;
|
|
15
15
|
export declare type IParticipantAsProject = Omit<IProject, 'settings' | 'subscription' | 'alternateName' | 'description' | 'additionalProperty'>;
|
|
16
16
|
export declare type IParticipantAsCustomer = Omit<ICustomer, 'name' | 'branchCode' | 'contactPoint' | 'project' | 'additionalProperty'> & {
|
|
17
17
|
name?: string | IMultilingualString;
|
|
@@ -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 {
|
package/lib/factory/order.d.ts
CHANGED
|
@@ -31,9 +31,8 @@ export interface IProject {
|
|
|
31
31
|
export declare enum OrderType {
|
|
32
32
|
Order = "Order"
|
|
33
33
|
}
|
|
34
|
-
export declare type AvailablePaymentMethodType = string;
|
|
35
34
|
/**
|
|
36
|
-
*
|
|
35
|
+
* 決済方法
|
|
37
36
|
*/
|
|
38
37
|
export interface IPaymentMethod {
|
|
39
38
|
/**
|
|
@@ -41,9 +40,9 @@ export interface IPaymentMethod {
|
|
|
41
40
|
*/
|
|
42
41
|
accountId?: string;
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
43
|
+
* 決済方法区分コード
|
|
45
44
|
*/
|
|
46
|
-
typeOf:
|
|
45
|
+
typeOf: string;
|
|
47
46
|
/**
|
|
48
47
|
* 決済方法名称
|
|
49
48
|
*/
|
|
@@ -63,7 +62,7 @@ export interface IPaymentMethod {
|
|
|
63
62
|
issuedThrough: IPaymentMethodIssuedThrough;
|
|
64
63
|
}
|
|
65
64
|
/**
|
|
66
|
-
*
|
|
65
|
+
* ディスカウント
|
|
67
66
|
*/
|
|
68
67
|
export interface IDiscount {
|
|
69
68
|
/**
|
|
@@ -84,8 +83,8 @@ export interface IDiscount {
|
|
|
84
83
|
*/
|
|
85
84
|
discountCurrency: string;
|
|
86
85
|
}
|
|
87
|
-
export declare type IReservation = EventReservationFactory.IReservation
|
|
88
|
-
export declare type IPermit = PermitFactory.IPermit
|
|
86
|
+
export declare type IReservation = Omit<EventReservationFactory.IReservation, 'attended' | 'broker' | 'checkedIn' | 'modifiedTime' | 'previousReservationStatus' | 'price' | 'priceCurrency' | 'reservationStatus' | 'subReservation' | 'underName'>;
|
|
87
|
+
export declare type IPermit = Omit<PermitFactory.IPermit, 'accessCode' | 'additionalProperty' | 'depositAmount' | 'paymentAmount' | 'paymentAccount' | 'issuedBy'>;
|
|
89
88
|
export interface IMoneyTransferPendingTransaction {
|
|
90
89
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
91
90
|
/**
|
|
@@ -113,7 +112,7 @@ export interface IMoneyTransfer {
|
|
|
113
112
|
name?: string;
|
|
114
113
|
}
|
|
115
114
|
/**
|
|
116
|
-
*
|
|
115
|
+
* 注文アイテム
|
|
117
116
|
*/
|
|
118
117
|
export declare type IItemOffered = IMoneyTransfer | IReservation | IPermit;
|
|
119
118
|
export declare type IOfferOptimized4acceptedOffer = Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'>;
|
|
@@ -148,8 +147,7 @@ export interface ISeller {
|
|
|
148
147
|
};
|
|
149
148
|
id: string;
|
|
150
149
|
typeOf: OrganizationType.Corporation;
|
|
151
|
-
name
|
|
152
|
-
url?: string;
|
|
150
|
+
name: string;
|
|
153
151
|
}
|
|
154
152
|
/**
|
|
155
153
|
* ウェブアプリケーションとしてのカスタマー
|
|
@@ -236,7 +234,7 @@ export interface IOrderedItem {
|
|
|
236
234
|
orderedItem: IProduct | IEventServiceAsOrderedItem;
|
|
237
235
|
}
|
|
238
236
|
/**
|
|
239
|
-
*
|
|
237
|
+
* 注文
|
|
240
238
|
* {@link https://schema.org/Order}
|
|
241
239
|
*/
|
|
242
240
|
export interface IOrder extends ISimpleOrder {
|
|
@@ -287,13 +285,13 @@ export interface IOrder extends ISimpleOrder {
|
|
|
287
285
|
url?: string;
|
|
288
286
|
}
|
|
289
287
|
/**
|
|
290
|
-
*
|
|
288
|
+
* ソート条件
|
|
291
289
|
*/
|
|
292
290
|
export interface ISortOrder {
|
|
293
291
|
orderDate?: SortType;
|
|
294
292
|
}
|
|
295
293
|
/**
|
|
296
|
-
*
|
|
294
|
+
* 予約対象検索条件
|
|
297
295
|
*/
|
|
298
296
|
export interface IReservationForSearchConditions {
|
|
299
297
|
typeOfs?: EventType[];
|
|
@@ -407,7 +405,7 @@ export interface IPaymentMethodsSearchConditions {
|
|
|
407
405
|
/**
|
|
408
406
|
* 決済方法区分コード
|
|
409
407
|
*/
|
|
410
|
-
typeOfs?:
|
|
408
|
+
typeOfs?: string[];
|
|
411
409
|
/**
|
|
412
410
|
* 決済方法ID
|
|
413
411
|
* 決済代行オーダーIDなど
|
|
@@ -461,7 +459,7 @@ export interface IAcceptedOffersSearchConditions {
|
|
|
461
459
|
};
|
|
462
460
|
}
|
|
463
461
|
/**
|
|
464
|
-
*
|
|
462
|
+
* 注文検索条件
|
|
465
463
|
*/
|
|
466
464
|
export interface ISearchConditions {
|
|
467
465
|
limit?: number;
|
|
@@ -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/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
|
* クレジットカード返金パラメータ
|
|
@@ -14,8 +14,9 @@ export declare type IWebApplicationAgent = IWebApplication & PersonFactory.IProf
|
|
|
14
14
|
export declare type IAgent = IWebApplicationAgent | PersonFactory.IPerson;
|
|
15
15
|
/**
|
|
16
16
|
* 販売者インターフェース
|
|
17
|
+
* 最適化(2022-05-20~)
|
|
17
18
|
*/
|
|
18
|
-
export declare type ISeller = SellerFactory.ISeller
|
|
19
|
+
export declare type ISeller = Omit<SellerFactory.ISeller, 'branchCode' | 'paymentAccepted' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location' | 'url' | 'project'>;
|
|
19
20
|
/**
|
|
20
21
|
* Eメール送信パラメータ
|
|
21
22
|
*/
|