@chevre/factory 4.212.0 → 4.215.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/moneyTransfer.d.ts +1 -1
- package/lib/factory/action/authorize/offer/product.d.ts +3 -2
- package/lib/factory/action/authorize/offer/seatReservation.d.ts +1 -1
- package/lib/factory/action/interact/confirm/pay.d.ts +3 -6
- package/lib/factory/action/interact/inform.d.ts +5 -1
- package/lib/factory/action/transfer/give/pointAward.d.ts +9 -3
- package/lib/factory/action/transfer/return/moneyTransfer.d.ts +7 -2
- package/lib/factory/action/transfer/return/order.d.ts +7 -2
- package/lib/factory/action/transfer/return/paymentMethod.d.ts +7 -1
- package/lib/factory/action/transfer/return/pointAward.d.ts +7 -2
- package/lib/factory/action/transfer/return/reservation.d.ts +7 -2
- package/lib/factory/action/transfer/send/message/email.d.ts +5 -1
- package/lib/factory/event/screeningEvent.d.ts +2 -12
- package/lib/factory/offer.d.ts +15 -3
- package/lib/factory/order.d.ts +5 -3
- package/lib/factory/task/confirmPayTransaction.d.ts +13 -0
- package/lib/factory/task/confirmPayTransaction.js +2 -0
- package/lib/factory/task/givePointAward.d.ts +1 -1
- package/lib/factory/task/orderProgramMembership.d.ts +28 -6
- package/lib/factory/taskName.d.ts +6 -2
- package/lib/factory/taskName.js +6 -2
- package/package.json +1 -1
package/lib/chevre.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ import * as CancelReservationTaskFactory from './factory/task/cancelReservation'
|
|
|
127
127
|
import * as ConfirmCancelReserveTaskFactory from './factory/task/confirmCancelReserve';
|
|
128
128
|
import * as ConfirmMoneyTransferTaskFactory from './factory/task/confirmMoneyTransfer';
|
|
129
129
|
import * as ConfirmPayTaskFactory from './factory/task/confirmPay';
|
|
130
|
+
import * as ConfirmPayTransactionTaskFactory from './factory/task/confirmPayTransaction';
|
|
130
131
|
import * as ConfirmRefundTaskFactory from './factory/task/confirmRefund';
|
|
131
132
|
import * as ConfirmRegisterServiceTaskFactory from './factory/task/confirmRegisterService';
|
|
132
133
|
import * as ConfirmReservationTaskFactory from './factory/task/confirmReservation';
|
|
@@ -381,9 +382,9 @@ export import reservationStatusType = ReservationStatusType;
|
|
|
381
382
|
export import reservationType = ReservationType;
|
|
382
383
|
export import seller = SellerFactory;
|
|
383
384
|
export declare namespace task {
|
|
384
|
-
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.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;
|
|
385
|
-
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.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;
|
|
386
|
-
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.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;
|
|
385
|
+
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;
|
|
386
|
+
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;
|
|
387
|
+
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;
|
|
387
388
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
388
389
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
389
390
|
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
@@ -19,7 +19,7 @@ export interface IResult {
|
|
|
19
19
|
responseBody: IResponseBody;
|
|
20
20
|
}
|
|
21
21
|
export import IItemOffered = OrderFactory.IMoneyTransfer;
|
|
22
|
-
export interface IAcceptedOffer extends IOffer {
|
|
22
|
+
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
|
|
23
23
|
itemOffered: IItemOffered;
|
|
24
24
|
seller: ISeller;
|
|
25
25
|
}
|
|
@@ -1,7 +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 { IOffer } from '../../../offer';
|
|
4
|
+
import { IOffer, ITicketPriceSpecification } from '../../../offer';
|
|
5
5
|
import * as OrderFactory from '../../../order';
|
|
6
6
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
7
7
|
import { IProduct } from '../../../product';
|
|
@@ -12,7 +12,7 @@ export declare type IAgent = ActionFactory.IParticipant;
|
|
|
12
12
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
13
13
|
export declare type IService = IProduct;
|
|
14
14
|
export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
|
|
15
|
-
export interface IAcceptedOffer extends IOffer {
|
|
15
|
+
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'> {
|
|
16
16
|
/**
|
|
17
17
|
* オファー対象アイテム
|
|
18
18
|
*/
|
|
@@ -21,6 +21,7 @@ export interface IAcceptedOffer extends IOffer {
|
|
|
21
21
|
* 販売者
|
|
22
22
|
*/
|
|
23
23
|
seller: ISeller;
|
|
24
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
24
25
|
}
|
|
25
26
|
export declare type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
|
|
26
27
|
export declare type IObject = IAcceptedOffer[];
|
|
@@ -52,7 +52,7 @@ export declare type IAcceptedOffer4chevre = ReserveTransactionFactory.IAcceptedT
|
|
|
52
52
|
export declare type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
|
|
53
53
|
export declare type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
|
|
54
54
|
export declare type IAcceptedOffer4COA = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail & OfferFactory.seatReservation.IOfferWithDetails;
|
|
55
|
-
export declare type IAcceptedOfferWithoutDetail4COA = OfferFactory.seatReservation.
|
|
55
|
+
export declare type IAcceptedOfferWithoutDetail4COA = OfferFactory.seatReservation.ICOAOffer;
|
|
56
56
|
export interface IObjectWithoutDetail4COA {
|
|
57
57
|
acceptedOffer: IAcceptedOfferWithoutDetail4COA[];
|
|
58
58
|
event: {
|
|
@@ -7,12 +7,9 @@ export interface IPayAssetTransaction {
|
|
|
7
7
|
typeOf: AssetTransactionType.Pay;
|
|
8
8
|
/**
|
|
9
9
|
* 決済方法
|
|
10
|
-
*
|
|
10
|
+
* 廃止(2022-05-17~)
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
paymentMethodId: string;
|
|
14
|
-
};
|
|
15
|
-
transactionNumber?: string;
|
|
12
|
+
transactionNumber: string;
|
|
16
13
|
}
|
|
17
14
|
export declare type IObject = IPayAssetTransaction[];
|
|
18
15
|
export declare type IResult = any;
|
|
@@ -21,6 +18,6 @@ export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, I
|
|
|
21
18
|
purpose: IPurpose;
|
|
22
19
|
}
|
|
23
20
|
/**
|
|
24
|
-
*
|
|
21
|
+
* 決済取引確定アクション
|
|
25
22
|
*/
|
|
26
23
|
export declare type IAction = ConfirmActionFactory.IAction<IAttributes>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
-
|
|
3
|
+
import { OrganizationType } from '../../organizationType';
|
|
4
|
+
export interface IAgent {
|
|
5
|
+
id: string;
|
|
6
|
+
typeOf: OrganizationType.Project;
|
|
7
|
+
}
|
|
4
8
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
5
9
|
export declare type IObject = any;
|
|
6
10
|
export declare type IPurpose = any;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as OrderFactory from '../../../order';
|
|
2
|
+
import { OrganizationType } from '../../../organizationType';
|
|
2
3
|
import { ObjectType as AuthorizePointAwardActionObjectType } from '../../authorize/award/point';
|
|
3
4
|
import * as GiveActionFactory from '../give';
|
|
5
|
+
export interface IAgent {
|
|
6
|
+
id: string;
|
|
7
|
+
typeOf: OrganizationType.Project;
|
|
8
|
+
}
|
|
4
9
|
export import ObjectType = AuthorizePointAwardActionObjectType;
|
|
5
10
|
/**
|
|
6
|
-
*
|
|
11
|
+
* ポイント特典付与対象インターフェース
|
|
7
12
|
*/
|
|
8
13
|
export interface IObject {
|
|
9
14
|
typeOf: ObjectType;
|
|
@@ -33,14 +38,15 @@ export interface IObject {
|
|
|
33
38
|
export declare type IResult = any;
|
|
34
39
|
/**
|
|
35
40
|
* 目的は注文
|
|
36
|
-
*
|
|
41
|
+
* 注文に対する特典としてポイントが付与される仕組み
|
|
37
42
|
*/
|
|
38
43
|
export declare type IPurpose = OrderFactory.ISimpleOrder;
|
|
39
44
|
export declare type IPotentialActions = any;
|
|
40
45
|
export interface IAttributes extends GiveActionFactory.IAttributes<IObject, IResult> {
|
|
46
|
+
agent: IAgent;
|
|
41
47
|
purpose: IPurpose;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
|
-
*
|
|
50
|
+
* ポイント特典付与アクション
|
|
45
51
|
*/
|
|
46
52
|
export declare type IAction = GiveActionFactory.IAction<IAttributes>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
|
+
import { OrganizationType } from '../../../organizationType';
|
|
2
3
|
import * as MoneyTransferActionFactory from '../moneyTransfer';
|
|
3
4
|
import * as ReturnActionFactory from '../return';
|
|
4
|
-
export
|
|
5
|
+
export interface IAgent {
|
|
6
|
+
id: string;
|
|
7
|
+
typeOf: OrganizationType.Project;
|
|
8
|
+
}
|
|
5
9
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
6
10
|
/**
|
|
7
11
|
* 返却対象は入金アクション
|
|
@@ -11,10 +15,11 @@ export declare type IResult = any;
|
|
|
11
15
|
export interface IPotentialActions {
|
|
12
16
|
}
|
|
13
17
|
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
18
|
+
agent: IAgent;
|
|
14
19
|
recipient: IRecipient;
|
|
15
20
|
potentialActions?: IPotentialActions;
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
|
-
*
|
|
23
|
+
* 入金返却アクション
|
|
19
24
|
*/
|
|
20
25
|
export declare type IAction = ReturnActionFactory.IAction<IAttributes>;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
|
+
import { OrganizationType } from '../../../organizationType';
|
|
3
4
|
import { IAttributes as IRefundActionAttributes } from '../../transfer/return/paymentMethod';
|
|
4
5
|
import { IAttributes as ICancelActionAttributes } from '../../transfer/return/reservation';
|
|
5
6
|
import * as ReturnActionFactory from '../return';
|
|
6
7
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../send/message/email';
|
|
7
8
|
import * as ReturnMoneyTransferActionFactory from './moneyTransfer';
|
|
8
9
|
import * as ReturnPointAwardActionFactory from './pointAward';
|
|
9
|
-
export
|
|
10
|
+
export interface IAgent {
|
|
11
|
+
id: string;
|
|
12
|
+
typeOf: OrganizationType.Project;
|
|
13
|
+
}
|
|
10
14
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
11
15
|
/**
|
|
12
16
|
* 返却対象は注文
|
|
@@ -41,10 +45,11 @@ export interface IPotentialActions {
|
|
|
41
45
|
sendEmailMessage?: ISendEmailMessageActionAttributes[];
|
|
42
46
|
}
|
|
43
47
|
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
48
|
+
agent: IAgent;
|
|
44
49
|
recipient: IRecipient;
|
|
45
50
|
potentialActions?: IPotentialActions;
|
|
46
51
|
}
|
|
47
52
|
/**
|
|
48
|
-
*
|
|
53
|
+
* 返品アクション
|
|
49
54
|
*/
|
|
50
55
|
export declare type IAction = ReturnActionFactory.IAction<IAttributes>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import { ActionType } from '../../../actionType';
|
|
3
3
|
import * as OrderFactory from '../../../order';
|
|
4
|
+
import { OrganizationType } from '../../../organizationType';
|
|
4
5
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../../transfer/send/message/email';
|
|
6
|
+
export interface IAgent {
|
|
7
|
+
id: string;
|
|
8
|
+
typeOf: OrganizationType.Project;
|
|
9
|
+
}
|
|
5
10
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
6
11
|
export declare type IObject = OrderFactory.IPaymentMethod;
|
|
7
12
|
export declare type IResult = any;
|
|
@@ -13,11 +18,12 @@ export interface IPotentialActions {
|
|
|
13
18
|
}
|
|
14
19
|
export declare type IPurpose = OrderFactory.ISimpleOrder;
|
|
15
20
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReturnAction, IObject, IResult> {
|
|
21
|
+
agent: IAgent;
|
|
16
22
|
recipient: IRecipient;
|
|
17
23
|
purpose: IPurpose;
|
|
18
24
|
potentialActions?: IPotentialActions;
|
|
19
25
|
}
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
27
|
+
* 決済返却アクション
|
|
22
28
|
*/
|
|
23
29
|
export declare type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
3
3
|
import { ISimpleOrder } from '../../../order';
|
|
4
|
+
import { OrganizationType } from '../../../organizationType';
|
|
4
5
|
import * as ReturnActionFactory from '../return';
|
|
5
|
-
export
|
|
6
|
+
export interface IAgent {
|
|
7
|
+
id: string;
|
|
8
|
+
typeOf: OrganizationType.Project;
|
|
9
|
+
}
|
|
6
10
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
7
11
|
/**
|
|
8
12
|
* 入金取引識別子で指定する場合のオブジェクト
|
|
@@ -28,11 +32,12 @@ export declare type IResult = any;
|
|
|
28
32
|
export interface IPotentialActions {
|
|
29
33
|
}
|
|
30
34
|
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
35
|
+
agent: IAgent;
|
|
31
36
|
recipient: IRecipient;
|
|
32
37
|
potentialActions?: IPotentialActions;
|
|
33
38
|
purpose: IPurpose;
|
|
34
39
|
}
|
|
35
40
|
/**
|
|
36
|
-
*
|
|
41
|
+
* ポイント特典返却アクション
|
|
37
42
|
*/
|
|
38
43
|
export declare type IAction = ReturnActionFactory.IAction<IAttributes>;
|
|
@@ -4,8 +4,12 @@ import { ActionType } from '../../../actionType';
|
|
|
4
4
|
import * as CancelReservationAssetTransactionFactory from '../../../assetTransaction/cancelReservation';
|
|
5
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
6
|
import { ISimpleOrder } from '../../../order';
|
|
7
|
+
import { OrganizationType } from '../../../organizationType';
|
|
7
8
|
import { Identifier as WebAPIIdentifier } from '../../../service/webAPI';
|
|
8
|
-
export
|
|
9
|
+
export interface IAgent {
|
|
10
|
+
id: string;
|
|
11
|
+
typeOf: OrganizationType.Project;
|
|
12
|
+
}
|
|
9
13
|
export declare type IObject4COA = COA.factory.reserve.IStateReserveArgs;
|
|
10
14
|
export interface IObject4Chevre {
|
|
11
15
|
typeOf: AssetTransactionType.Reserve;
|
|
@@ -17,10 +21,11 @@ export declare type IPurpose = ISimpleOrder;
|
|
|
17
21
|
export declare type IResult = any;
|
|
18
22
|
export declare type IPotentialActions = CancelReservationAssetTransactionFactory.IPotentialActionsParams;
|
|
19
23
|
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.ReturnAction, TObject, TResult> {
|
|
24
|
+
agent: IAgent;
|
|
20
25
|
potentialActions?: IPotentialActions;
|
|
21
26
|
purpose?: IPurpose;
|
|
22
27
|
}
|
|
23
28
|
/**
|
|
24
|
-
*
|
|
29
|
+
* 予約返却アクション
|
|
25
30
|
*/
|
|
26
31
|
export declare type IAction<TAttributes extends IAttributes<IObject<WebAPIIdentifier>, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../../action';
|
|
2
2
|
import { ICreativeWork as IEmailMessage } from '../../../../creativeWork/message/email';
|
|
3
|
+
import { OrganizationType } from '../../../../organizationType';
|
|
3
4
|
import * as SendActionFactory from '../../send';
|
|
4
|
-
export
|
|
5
|
+
export interface IAgent {
|
|
6
|
+
id: string;
|
|
7
|
+
typeOf: OrganizationType.Project;
|
|
8
|
+
}
|
|
5
9
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
6
10
|
/**
|
|
7
11
|
* オブジェクトインターフェース
|
|
@@ -8,10 +8,6 @@ import { OfferType } from '../offerType';
|
|
|
8
8
|
import { OrganizationType } from '../organizationType';
|
|
9
9
|
import { PlaceType } from '../placeType';
|
|
10
10
|
import { PriceCurrency } from '../priceCurrency';
|
|
11
|
-
import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
|
|
12
|
-
import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
|
|
13
|
-
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
|
|
14
|
-
import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecification/unitPriceSpecification';
|
|
15
11
|
import { IProject } from '../project';
|
|
16
12
|
import { IQuantitativeValue } from '../quantitativeValue';
|
|
17
13
|
import * as ReservationFactory from '../reservation';
|
|
@@ -136,14 +132,8 @@ export interface IOffer {
|
|
|
136
132
|
unacceptedPaymentMethod?: string[];
|
|
137
133
|
seller: ISeller;
|
|
138
134
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
*/
|
|
142
|
-
export declare type ITicketPriceComponent = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceSpecification;
|
|
143
|
-
/**
|
|
144
|
-
* イベントに対して有効なチケット価格仕様インターフェース
|
|
145
|
-
*/
|
|
146
|
-
export declare type ITicketPriceSpecification = ICompoundPriceSpecification<ITicketPriceComponent>;
|
|
135
|
+
export import ITicketPriceComponent = OfferFactory.ITicketPriceComponent;
|
|
136
|
+
export import ITicketPriceSpecification = OfferFactory.ITicketPriceSpecification;
|
|
147
137
|
/**
|
|
148
138
|
* チケットオファーインターフェース
|
|
149
139
|
*/
|
package/lib/factory/offer.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ import * as SeatReservationOfferFactory from './offer/seatReservation';
|
|
|
6
6
|
import { OfferType } from './offerType';
|
|
7
7
|
import { PriceCurrency } from './priceCurrency';
|
|
8
8
|
import { IPriceSpecification } from './priceSpecification';
|
|
9
|
+
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
10
|
+
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
11
|
+
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
9
12
|
import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
10
13
|
import { PriceSpecificationType } from './priceSpecificationType';
|
|
11
14
|
import { ProductType } from './product';
|
|
@@ -183,7 +186,6 @@ export interface IOffer extends IThing {
|
|
|
183
186
|
*/
|
|
184
187
|
additionalProperty?: IPropertyValue<string>[];
|
|
185
188
|
}
|
|
186
|
-
export declare type IBaseOffer = IOffer;
|
|
187
189
|
/**
|
|
188
190
|
* 単価オファーの提供アイテムインターフェース
|
|
189
191
|
*/
|
|
@@ -358,14 +360,22 @@ export interface ISearchConditions {
|
|
|
358
360
|
};
|
|
359
361
|
};
|
|
360
362
|
}
|
|
363
|
+
/**
|
|
364
|
+
* 承認時に提供される価格仕様要素
|
|
365
|
+
*/
|
|
366
|
+
export declare type ITicketPriceComponent = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceSpecification;
|
|
367
|
+
/**
|
|
368
|
+
* 承認時に提供される価格仕様
|
|
369
|
+
*/
|
|
370
|
+
export declare type ITicketPriceSpecification = ICompoundPriceSpecification<ITicketPriceComponent>;
|
|
361
371
|
export declare namespace seatReservation {
|
|
362
372
|
export import ICOATicketInfo = SeatReservationOfferFactory.ICOATicketInfo;
|
|
363
373
|
export import ICOATicketInfoWithDetails = SeatReservationOfferFactory.ICOATicketInfoWithDetails;
|
|
364
|
-
export import
|
|
374
|
+
export import ICOAOffer = SeatReservationOfferFactory.IOffer;
|
|
365
375
|
/**
|
|
366
376
|
* 座席予約供給情報(詳細つき)インターフェース
|
|
367
377
|
*/
|
|
368
|
-
interface IOfferWithDetails extends
|
|
378
|
+
interface IOfferWithDetails extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
|
|
369
379
|
/**
|
|
370
380
|
* seat section
|
|
371
381
|
*/
|
|
@@ -378,5 +388,7 @@ export declare namespace seatReservation {
|
|
|
378
388
|
* ticket info
|
|
379
389
|
*/
|
|
380
390
|
ticketInfo: ICOATicketInfoWithDetails;
|
|
391
|
+
price: number;
|
|
392
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
381
393
|
}
|
|
382
394
|
}
|
package/lib/factory/order.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { ICustomer as ICustomerOrganization } from './customer';
|
|
|
8
8
|
import { EventType } from './eventType';
|
|
9
9
|
import * as MonetaryAmountFactory from './monetaryAmount';
|
|
10
10
|
import { IMultilingualString } from './multilingualString';
|
|
11
|
-
import { IOffer } from './offer';
|
|
11
|
+
import { IOffer, ITicketPriceSpecification } from './offer';
|
|
12
12
|
import { OrderStatus } from './orderStatus';
|
|
13
13
|
import { OrganizationType } from './organizationType';
|
|
14
14
|
import * as PermitFactory from './permit';
|
|
@@ -117,10 +117,11 @@ export interface IMoneyTransfer {
|
|
|
117
117
|
* 注文アイテムインターフェース
|
|
118
118
|
*/
|
|
119
119
|
export declare type IItemOffered = IMoneyTransfer | IReservation | IPermit;
|
|
120
|
+
export declare type IOfferOptimized4acceptedOffer = Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'>;
|
|
120
121
|
/**
|
|
121
|
-
*
|
|
122
|
+
* 受け入れオファー
|
|
122
123
|
*/
|
|
123
|
-
export interface IAcceptedOffer<T extends IItemOffered> extends
|
|
124
|
+
export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4acceptedOffer {
|
|
124
125
|
/**
|
|
125
126
|
* オファー対象アイテム
|
|
126
127
|
*/
|
|
@@ -129,6 +130,7 @@ export interface IAcceptedOffer<T extends IItemOffered> extends IOffer {
|
|
|
129
130
|
* 販売者
|
|
130
131
|
*/
|
|
131
132
|
seller: ISeller;
|
|
133
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
132
134
|
}
|
|
133
135
|
/**
|
|
134
136
|
* 販売者
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAttributes as IConfirmPayActionAttributes } from '../action/interact/confirm/pay';
|
|
2
|
+
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import * as TaskFactory from '../task';
|
|
4
|
+
import { TaskName } from '../taskName';
|
|
5
|
+
export declare type IData = IConfirmPayActionAttributes;
|
|
6
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
|
+
name: TaskName.ConfirmPayTransaction;
|
|
8
|
+
data: IData;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 決済資産取引確定タスク
|
|
12
|
+
*/
|
|
13
|
+
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -1,14 +1,36 @@
|
|
|
1
|
-
import { IParticipant } from '../action';
|
|
2
1
|
import { ActionType } from '../actionType';
|
|
3
2
|
import { IExtendId } from '../autoGenerated';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
3
|
+
import { OfferType } from '../offerType';
|
|
4
|
+
import { PermitType } from '../permit';
|
|
5
|
+
import { IAdditionalProperty, IIdentifier } from '../person';
|
|
6
|
+
import { PersonType } from '../personType';
|
|
7
|
+
import { ProductType } from '../product';
|
|
6
8
|
import { IProject } from '../project';
|
|
7
9
|
import * as TaskFactory from '../task';
|
|
8
10
|
import { TaskName } from '../taskName';
|
|
9
11
|
import { IPotentialActionsParams as IOrderPotentialActionsParams } from '../transaction/placeOrder';
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
+
export interface IAgent {
|
|
13
|
+
typeOf: PersonType.Person;
|
|
14
|
+
id: string;
|
|
15
|
+
additionalProperty?: IAdditionalProperty;
|
|
16
|
+
identifier: IIdentifier;
|
|
17
|
+
}
|
|
18
|
+
export interface IAcceptedOffer {
|
|
19
|
+
seller: {
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
typeOf: OfferType;
|
|
23
|
+
itemOffered: {
|
|
24
|
+
typeOf: PermitType.Permit;
|
|
25
|
+
name: string;
|
|
26
|
+
issuedThrough: {
|
|
27
|
+
typeOf: ProductType.MembershipService;
|
|
28
|
+
id: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
id: string;
|
|
32
|
+
identifier: string;
|
|
33
|
+
}
|
|
12
34
|
export declare type IPotentialActions = IOrderPotentialActionsParams;
|
|
13
35
|
export interface IData {
|
|
14
36
|
agent: IAgent;
|
|
@@ -28,6 +50,6 @@ export interface IAttributes extends TaskFactory.IAttributes {
|
|
|
28
50
|
data: IData;
|
|
29
51
|
}
|
|
30
52
|
/**
|
|
31
|
-
*
|
|
53
|
+
* メンバーシップ注文タスク
|
|
32
54
|
*/
|
|
33
55
|
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -51,12 +51,16 @@ export declare enum TaskName {
|
|
|
51
51
|
* サービス登録
|
|
52
52
|
*/
|
|
53
53
|
ConfirmRegisterService = "confirmRegisterService",
|
|
54
|
+
/**
|
|
55
|
+
* 決済資産取引確定
|
|
56
|
+
*/
|
|
57
|
+
ConfirmPayTransaction = "confirmPayTransaction",
|
|
54
58
|
/**
|
|
55
59
|
* 会員削除
|
|
56
60
|
*/
|
|
57
61
|
DeleteMember = "deleteMember",
|
|
58
62
|
/**
|
|
59
|
-
*
|
|
63
|
+
* ポイント特典付与
|
|
60
64
|
*/
|
|
61
65
|
GivePointAward = "givePointAward",
|
|
62
66
|
/**
|
|
@@ -76,7 +80,7 @@ export declare enum TaskName {
|
|
|
76
80
|
*/
|
|
77
81
|
ReturnMoneyTransfer = "returnMoneyTransfer",
|
|
78
82
|
/**
|
|
79
|
-
*
|
|
83
|
+
* ポイント特典返却
|
|
80
84
|
*/
|
|
81
85
|
ReturnPointAward = "returnPointAward",
|
|
82
86
|
/**
|
package/lib/factory/taskName.js
CHANGED
|
@@ -55,12 +55,16 @@ var TaskName;
|
|
|
55
55
|
* サービス登録
|
|
56
56
|
*/
|
|
57
57
|
TaskName["ConfirmRegisterService"] = "confirmRegisterService";
|
|
58
|
+
/**
|
|
59
|
+
* 決済資産取引確定
|
|
60
|
+
*/
|
|
61
|
+
TaskName["ConfirmPayTransaction"] = "confirmPayTransaction";
|
|
58
62
|
/**
|
|
59
63
|
* 会員削除
|
|
60
64
|
*/
|
|
61
65
|
TaskName["DeleteMember"] = "deleteMember";
|
|
62
66
|
/**
|
|
63
|
-
*
|
|
67
|
+
* ポイント特典付与
|
|
64
68
|
*/
|
|
65
69
|
TaskName["GivePointAward"] = "givePointAward";
|
|
66
70
|
/**
|
|
@@ -80,7 +84,7 @@ var TaskName;
|
|
|
80
84
|
*/
|
|
81
85
|
TaskName["ReturnMoneyTransfer"] = "returnMoneyTransfer";
|
|
82
86
|
/**
|
|
83
|
-
*
|
|
87
|
+
* ポイント特典返却
|
|
84
88
|
*/
|
|
85
89
|
TaskName["ReturnPointAward"] = "returnPointAward";
|
|
86
90
|
/**
|