@chevre/factory 4.210.0 → 4.213.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 -12
- package/lib/chevre.js +12 -8
- package/lib/factory/action/authorize/offer/moneyTransfer.d.ts +3 -3
- 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/moneyTransfer.d.ts +14 -61
- package/lib/factory/action/interact/confirm/pay.d.ts +6 -12
- package/lib/factory/action/interact/confirm/registerService.d.ts +5 -7
- package/lib/factory/action/interact/confirm/reservation.d.ts +6 -11
- package/lib/factory/action/interact/confirm.d.ts +12 -7
- package/lib/factory/action/update/delete/member.d.ts +1 -6
- package/lib/factory/assetTransaction/registerService.d.ts +4 -10
- package/lib/factory/event/screeningEvent.d.ts +2 -12
- package/lib/factory/offer.d.ts +15 -3
- package/lib/factory/order.d.ts +14 -6
- package/lib/factory/programMembership.d.ts +1 -5
- package/lib/factory/task/confirmMoneyTransfer.d.ts +2 -2
- package/lib/factory/task/confirmPayTransaction.d.ts +13 -0
- package/lib/factory/{action/interact/register/programMembership.js → task/confirmPayTransaction.js} +0 -0
- package/lib/factory/task/confirmRegisterService.d.ts +2 -2
- package/lib/factory/task/orderProgramMembership.d.ts +1 -1
- package/lib/factory/taskName.d.ts +4 -0
- package/lib/factory/taskName.js +4 -0
- package/package.json +1 -1
- package/lib/factory/action/interact/register/programMembership.d.ts +0 -12
- package/lib/factory/action/interact/unRegister/programMembership.d.ts +0 -12
- package/lib/factory/action/interact/unRegister/programMembership.js +0 -2
- package/lib/factory/action/interact/unRegister.d.ts +0 -15
- package/lib/factory/action/interact/unRegister.js +0 -2
package/lib/chevre.d.ts
CHANGED
|
@@ -24,10 +24,7 @@ import * as ConfirmRegisterServiceActionFactory from './factory/action/interact/
|
|
|
24
24
|
import * as ConfirmReservationActionFactory from './factory/action/interact/confirm/reservation';
|
|
25
25
|
import * as InformActionFactory from './factory/action/interact/inform';
|
|
26
26
|
import * as RegisterActionFactory from './factory/action/interact/register';
|
|
27
|
-
import * as RegisterProgramMembershipActionFactory from './factory/action/interact/register/programMembership';
|
|
28
27
|
import * as RegisterServiceActionFactory from './factory/action/interact/register/service';
|
|
29
|
-
import * as UnRegisterActionFactory from './factory/action/interact/unRegister';
|
|
30
|
-
import * as UnRegisterProgramMembershipActionFactory from './factory/action/interact/unRegister/programMembership';
|
|
31
28
|
import * as ReserveActionFactory from './factory/action/reserve';
|
|
32
29
|
import * as OrderActionFactory from './factory/action/trade/order';
|
|
33
30
|
import * as PayActionFactory from './factory/action/trade/pay';
|
|
@@ -130,6 +127,7 @@ import * as CancelReservationTaskFactory from './factory/task/cancelReservation'
|
|
|
130
127
|
import * as ConfirmCancelReserveTaskFactory from './factory/task/confirmCancelReserve';
|
|
131
128
|
import * as ConfirmMoneyTransferTaskFactory from './factory/task/confirmMoneyTransfer';
|
|
132
129
|
import * as ConfirmPayTaskFactory from './factory/task/confirmPay';
|
|
130
|
+
import * as ConfirmPayTransactionTaskFactory from './factory/task/confirmPayTransaction';
|
|
133
131
|
import * as ConfirmRefundTaskFactory from './factory/task/confirmRefund';
|
|
134
132
|
import * as ConfirmRegisterServiceTaskFactory from './factory/task/confirmRegisterService';
|
|
135
133
|
import * as ConfirmReservationTaskFactory from './factory/task/confirmReservation';
|
|
@@ -229,14 +227,8 @@ export declare namespace action {
|
|
|
229
227
|
namespace register {
|
|
230
228
|
export import IAction = RegisterActionFactory.IAction;
|
|
231
229
|
export import IAttributes = RegisterActionFactory.IAttributes;
|
|
232
|
-
export import programMembership = RegisterProgramMembershipActionFactory;
|
|
233
230
|
export import service = RegisterServiceActionFactory;
|
|
234
231
|
}
|
|
235
|
-
namespace unRegister {
|
|
236
|
-
export import IAction = UnRegisterActionFactory.IAction;
|
|
237
|
-
export import IAttributes = UnRegisterActionFactory.IAttributes;
|
|
238
|
-
export import programMembership = UnRegisterProgramMembershipActionFactory;
|
|
239
|
-
}
|
|
240
232
|
}
|
|
241
233
|
namespace trade {
|
|
242
234
|
export import order = OrderActionFactory;
|
|
@@ -390,9 +382,9 @@ export import reservationStatusType = ReservationStatusType;
|
|
|
390
382
|
export import reservationType = ReservationType;
|
|
391
383
|
export import seller = SellerFactory;
|
|
392
384
|
export declare namespace task {
|
|
393
|
-
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;
|
|
394
|
-
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;
|
|
395
|
-
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;
|
|
396
388
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
397
389
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
398
390
|
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
package/lib/chevre.js
CHANGED
|
@@ -25,9 +25,10 @@ var ConfirmPayActionFactory = require("./factory/action/interact/confirm/pay");
|
|
|
25
25
|
var ConfirmRegisterServiceActionFactory = require("./factory/action/interact/confirm/registerService");
|
|
26
26
|
var ConfirmReservationActionFactory = require("./factory/action/interact/confirm/reservation");
|
|
27
27
|
var InformActionFactory = require("./factory/action/interact/inform");
|
|
28
|
-
|
|
28
|
+
// import * as RegisterProgramMembershipActionFactory from './factory/action/interact/register/programMembership';
|
|
29
29
|
var RegisterServiceActionFactory = require("./factory/action/interact/register/service");
|
|
30
|
-
|
|
30
|
+
// import * as UnRegisterActionFactory from './factory/action/interact/unRegister';
|
|
31
|
+
// import * as UnRegisterProgramMembershipActionFactory from './factory/action/interact/unRegister/programMembership';
|
|
31
32
|
var ReserveActionFactory = require("./factory/action/reserve");
|
|
32
33
|
var OrderActionFactory = require("./factory/action/trade/order");
|
|
33
34
|
var PayActionFactory = require("./factory/action/trade/pay");
|
|
@@ -198,15 +199,18 @@ var action;
|
|
|
198
199
|
var register;
|
|
199
200
|
(function (register) {
|
|
200
201
|
// tslint:disable-next-line:no-shadowed-variable
|
|
201
|
-
|
|
202
|
+
// export import programMembership = RegisterProgramMembershipActionFactory;
|
|
202
203
|
// tslint:disable-next-line:no-shadowed-variable
|
|
203
204
|
register.service = RegisterServiceActionFactory;
|
|
204
205
|
})(register = interact.register || (interact.register = {}));
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
// export namespace unRegister {
|
|
207
|
+
// // tslint:disable-next-line:no-shadowed-variable
|
|
208
|
+
// export import IAction = UnRegisterActionFactory.IAction;
|
|
209
|
+
// // tslint:disable-next-line:no-shadowed-variable
|
|
210
|
+
// export import IAttributes = UnRegisterActionFactory.IAttributes;
|
|
211
|
+
// // tslint:disable-next-line:no-shadowed-variable
|
|
212
|
+
// export import programMembership = UnRegisterProgramMembershipActionFactory;
|
|
213
|
+
// }
|
|
210
214
|
})(interact = action.interact || (action.interact = {}));
|
|
211
215
|
var trade;
|
|
212
216
|
(function (trade) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import { ActionType } from '../../../actionType';
|
|
3
|
+
import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer';
|
|
3
4
|
import { IOffer } from '../../../offer';
|
|
4
5
|
import * as OrderFactory from '../../../order';
|
|
5
6
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
6
7
|
import { ISeller } from '../../../seller';
|
|
7
8
|
import { TransactionType } from '../../../transactionType';
|
|
8
9
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
9
|
-
import { IPendingTransaction as ConfirmMoneyTransferPendingTransaction } from '../../interact/confirm/moneyTransfer';
|
|
10
10
|
export declare type IAgent = ActionFactory.IParticipant;
|
|
11
11
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
12
12
|
export declare type IRequestBody = any;
|
|
13
|
-
export declare type IResponseBody =
|
|
13
|
+
export declare type IResponseBody = MoneyTransferTransactionFactory.ITransaction;
|
|
14
14
|
export import IPendingTransaction = OrderFactory.IMoneyTransferPendingTransaction;
|
|
15
15
|
export interface IResult {
|
|
16
16
|
price: number;
|
|
@@ -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: {
|
|
@@ -1,83 +1,36 @@
|
|
|
1
|
-
import * as AccountFactory from '../../../account';
|
|
2
|
-
import * as ActionFactory from '../../../action';
|
|
3
|
-
import { ActionType } from '../../../actionType';
|
|
4
|
-
import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer';
|
|
5
1
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
|
-
import { IMonetaryAmount } from '../../../monetaryAmount';
|
|
7
2
|
import { ISimpleOrder } from '../../../order';
|
|
8
|
-
import { IPropertyValue } from '../../../propertyValue';
|
|
9
3
|
import { TransactionType } from '../../../transactionType';
|
|
10
|
-
|
|
11
|
-
export declare type IRecipient = ActionFactory.IParticipant;
|
|
12
|
-
export declare type IPendingTransaction = MoneyTransferTransactionFactory.ITransaction;
|
|
4
|
+
import * as ConfirmActionFactory from '../confirm';
|
|
13
5
|
/**
|
|
14
6
|
* 匿名ロケーションインターフェース
|
|
15
7
|
*/
|
|
16
|
-
export import IAnonymousLocation = AccountFactory.action.moneyTransfer.IAnonymousLocation;
|
|
17
|
-
export declare type AvailablePaymentMethodType = string;
|
|
18
8
|
/**
|
|
19
9
|
* 決済方法インターフェース
|
|
20
10
|
*/
|
|
21
|
-
export interface IPaymentMethodLocation {
|
|
22
|
-
/**
|
|
23
|
-
* The identifier for the account the payment will be applied to.
|
|
24
|
-
*/
|
|
25
|
-
accountId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* 決済方法タイプ
|
|
28
|
-
*/
|
|
29
|
-
typeOf: AvailablePaymentMethodType;
|
|
30
|
-
/**
|
|
31
|
-
* 決済方法名
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
* An identifier for the method of payment used (e.g.the last 4 digits of the credit card).
|
|
36
|
-
*/
|
|
37
|
-
paymentMethodId: string;
|
|
38
|
-
/**
|
|
39
|
-
* The total amount due.
|
|
40
|
-
*/
|
|
41
|
-
totalPaymentDue?: IMonetaryAmount;
|
|
42
|
-
/**
|
|
43
|
-
* 追加特性
|
|
44
|
-
*/
|
|
45
|
-
additionalProperty: IPropertyValue<string>[];
|
|
46
|
-
}
|
|
47
|
-
export import IPaymentCard = MoneyTransferTransactionFactory.IPaymentCard;
|
|
48
|
-
export import IFromLocationBeforeStart = MoneyTransferTransactionFactory.IFromLocationBeforeStart;
|
|
49
11
|
/**
|
|
50
12
|
* 転送元あるいは転送先の場所インターフェース
|
|
51
13
|
*/
|
|
52
|
-
export declare type ILocation = IAnonymousLocation | IPaymentMethodLocation | IPaymentCard;
|
|
53
14
|
export interface IObject {
|
|
54
|
-
pendingTransaction:
|
|
15
|
+
pendingTransaction: {
|
|
16
|
+
/**
|
|
17
|
+
* 資産取引ID
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
transactionNumber: string;
|
|
55
22
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
56
23
|
}
|
|
57
|
-
export
|
|
58
|
-
}
|
|
59
|
-
export interface IResult {
|
|
60
|
-
}
|
|
24
|
+
export declare type IResult = any;
|
|
61
25
|
export interface ITransactionPurpose {
|
|
62
26
|
typeOf: TransactionType;
|
|
63
27
|
id: string;
|
|
64
28
|
}
|
|
65
29
|
export declare type IPurpose = ITransactionPurpose | ISimpleOrder;
|
|
66
|
-
export interface IAttributes extends
|
|
67
|
-
typeOf: ActionType.ConfirmAction;
|
|
68
|
-
potentialActions?: IPotentialActions;
|
|
30
|
+
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
69
31
|
purpose: IPurpose;
|
|
70
|
-
/**
|
|
71
|
-
* 金額
|
|
72
|
-
*/
|
|
73
|
-
amount: IMonetaryAmount;
|
|
74
|
-
/**
|
|
75
|
-
* 転送元
|
|
76
|
-
*/
|
|
77
|
-
fromLocation: ILocation | IFromLocationBeforeStart;
|
|
78
|
-
/**
|
|
79
|
-
* 転送先
|
|
80
|
-
*/
|
|
81
|
-
toLocation: ILocation;
|
|
82
32
|
}
|
|
83
|
-
|
|
33
|
+
/**
|
|
34
|
+
* 通貨転送確定アクション
|
|
35
|
+
*/
|
|
36
|
+
export declare type IAction = ConfirmActionFactory.IAction<IAttributes>;
|
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import * as ActionFactory from '../../../action';
|
|
2
|
-
import { ActionType } from '../../../actionType';
|
|
3
1
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
2
|
import { ISimpleOrder } from '../../../order';
|
|
5
3
|
import { IInstrument } from '../../authorize/paymentMethod/any';
|
|
6
|
-
|
|
7
|
-
export declare type IRecipient = ActionFactory.IParticipant;
|
|
4
|
+
import * as ConfirmActionFactory from '../confirm';
|
|
8
5
|
export declare type IPurpose = ISimpleOrder;
|
|
9
6
|
export interface IPayAssetTransaction {
|
|
10
7
|
typeOf: AssetTransactionType.Pay;
|
|
11
8
|
/**
|
|
12
9
|
* 決済方法
|
|
13
|
-
*
|
|
10
|
+
* 廃止(2022-05-17~)
|
|
14
11
|
*/
|
|
15
|
-
|
|
16
|
-
paymentMethodId: string;
|
|
17
|
-
};
|
|
18
|
-
transactionNumber?: string;
|
|
12
|
+
transactionNumber: string;
|
|
19
13
|
}
|
|
20
14
|
export declare type IObject = IPayAssetTransaction[];
|
|
21
15
|
export declare type IResult = any;
|
|
22
|
-
export interface IAttributes extends
|
|
16
|
+
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
23
17
|
instrument: IInstrument;
|
|
24
18
|
purpose: IPurpose;
|
|
25
19
|
}
|
|
26
20
|
/**
|
|
27
|
-
*
|
|
21
|
+
* 決済取引確定アクション
|
|
28
22
|
*/
|
|
29
|
-
export declare type IAction =
|
|
23
|
+
export declare type IAction = ConfirmActionFactory.IAction<IAttributes>;
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import * as ActionFactory from '../../../action';
|
|
2
|
-
import { ActionType } from '../../../actionType';
|
|
3
1
|
import * as RegisterServiceFactory from '../../../assetTransaction/registerService';
|
|
4
2
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
3
|
import { ISimpleOrder } from '../../../order';
|
|
6
4
|
import * as OrderProgramMembershipFactory from '../../../task/orderProgramMembership';
|
|
5
|
+
import * as ConfirmActionFactory from '../confirm';
|
|
7
6
|
export declare type IObject = RegisterServiceFactory.IConfirmParams & {
|
|
8
7
|
typeOf: AssetTransactionType.RegisterService;
|
|
9
8
|
};
|
|
10
|
-
export interface IResult {
|
|
11
|
-
}
|
|
12
9
|
export declare type IPurpose = ISimpleOrder;
|
|
10
|
+
export declare type IResult = any;
|
|
13
11
|
export interface IPotentialActions {
|
|
14
12
|
orderProgramMembership?: OrderProgramMembershipFactory.IAttributes[];
|
|
15
13
|
}
|
|
16
|
-
export interface IAttributes extends
|
|
14
|
+
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
17
15
|
potentialActions?: IPotentialActions;
|
|
18
16
|
purpose: IPurpose;
|
|
19
17
|
}
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
19
|
+
* サービス登録確定アクション
|
|
22
20
|
*/
|
|
23
|
-
export declare type IAction =
|
|
21
|
+
export declare type IAction = ConfirmActionFactory.IAction<IAttributes>;
|
|
@@ -1,29 +1,24 @@
|
|
|
1
1
|
import * as COA from '@motionpicture/coa-service';
|
|
2
|
-
import * as ActionFactory from '../../../action';
|
|
3
2
|
import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
4
3
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
4
|
import { ISimpleOrder } from '../../../order';
|
|
6
5
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
7
6
|
import * as ConfirmActionFactory from '../confirm';
|
|
8
|
-
export declare type
|
|
9
|
-
|
|
7
|
+
export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
|
|
8
|
+
typeOf: 'COAReserveTransaction';
|
|
9
|
+
};
|
|
10
10
|
export declare type IObject4Chevre = ReserveTransactionFactory.IConfirmParams & {
|
|
11
11
|
typeOf: AssetTransactionType.Reserve;
|
|
12
12
|
};
|
|
13
13
|
export declare type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COA : IObject4Chevre;
|
|
14
14
|
export declare type IPurpose = ISimpleOrder;
|
|
15
|
-
export
|
|
16
|
-
}
|
|
17
|
-
export interface IPotentialActions {
|
|
18
|
-
}
|
|
15
|
+
export declare type IResult = any;
|
|
19
16
|
export declare type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
|
|
20
17
|
export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
|
|
21
|
-
|
|
22
|
-
instrument?: IInstrument<T>;
|
|
23
|
-
potentialActions?: IPotentialActions;
|
|
18
|
+
instrument: IInstrument<T>;
|
|
24
19
|
purpose: IPurpose;
|
|
25
20
|
}
|
|
26
21
|
/**
|
|
27
|
-
*
|
|
22
|
+
* 予約確定アクション
|
|
28
23
|
*/
|
|
29
24
|
export declare type IAction<T extends WebAPIFactory.Identifier> = ConfirmActionFactory.IAction<IAttributes<T>>;
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import * as OrderFactory from '../../order';
|
|
4
|
-
|
|
4
|
+
import { IProject } from '../../project';
|
|
5
|
+
import { TransactionType } from '../../transactionType';
|
|
6
|
+
export declare type IAgent = IProject;
|
|
5
7
|
export declare type IObject = any;
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
export interface ITransactionPurpose {
|
|
9
|
+
typeOf: TransactionType;
|
|
10
|
+
id: string;
|
|
9
11
|
}
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
+
export declare type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
|
|
13
|
+
export declare type IResult = any;
|
|
14
|
+
export declare type IPotentialActions = any;
|
|
15
|
+
export interface IAttributes<TObject, TResult> extends Omit<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'description' | 'location' | 'recipient'> {
|
|
16
|
+
agent: IAgent;
|
|
12
17
|
purpose: IPurpose;
|
|
13
18
|
}
|
|
14
19
|
/**
|
|
15
|
-
*
|
|
20
|
+
* 確定アクション
|
|
16
21
|
*/
|
|
17
22
|
export declare type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { IPerson } from '../../../person';
|
|
2
|
-
import { IAttributes as IUnRegisterProgramMembershipActionAttributes } from '../../interact/unRegister/programMembership';
|
|
3
2
|
import * as DeleteActionFactory from '../delete';
|
|
4
3
|
export declare type IObject = IPerson;
|
|
5
4
|
export declare type IResult = any;
|
|
6
5
|
export interface IPotentialActions {
|
|
7
|
-
/**
|
|
8
|
-
* メンバーシップ登録解除アクション
|
|
9
|
-
*/
|
|
10
|
-
unRegisterProgramMembership?: IUnRegisterProgramMembershipActionAttributes[];
|
|
11
6
|
}
|
|
12
7
|
export interface IAttributes extends DeleteActionFactory.IAttributes<IObject, IResult> {
|
|
13
8
|
potentialActions?: IPotentialActions;
|
|
14
9
|
}
|
|
15
10
|
/**
|
|
16
|
-
*
|
|
11
|
+
* 会員削除アクション
|
|
17
12
|
*/
|
|
18
13
|
export declare type IAction = DeleteActionFactory.IAction<IAttributes>;
|
|
@@ -5,7 +5,6 @@ import { AssetTransactionType } from '../assetTransactionType';
|
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { OfferType } from '../offerType';
|
|
7
7
|
import { IProduct, IServiceOutput } from '../product';
|
|
8
|
-
import { IInformParams } from '../project';
|
|
9
8
|
export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
|
|
10
9
|
/**
|
|
11
10
|
* 取引開始パラメーターインターフェース
|
|
@@ -18,22 +17,17 @@ export interface IAgent {
|
|
|
18
17
|
name: string;
|
|
19
18
|
url?: string;
|
|
20
19
|
}
|
|
21
|
-
export interface IPotentialActionsParams {
|
|
22
|
-
registerService?: {
|
|
23
|
-
potentialActions?: {
|
|
24
|
-
informServiceOutput?: IInformParams[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
20
|
/**
|
|
29
21
|
* 確定パラメーターインターフェース
|
|
30
22
|
*/
|
|
31
23
|
export interface IConfirmParams {
|
|
32
24
|
id?: string;
|
|
33
25
|
transactionNumber?: string;
|
|
26
|
+
/**
|
|
27
|
+
* 取引確定日時を指定する
|
|
28
|
+
* serviceOutputのvalidFromに適用される
|
|
29
|
+
*/
|
|
34
30
|
endDate?: Date;
|
|
35
|
-
object?: any;
|
|
36
|
-
potentialActions?: IPotentialActionsParams;
|
|
37
31
|
}
|
|
38
32
|
export interface IResult {
|
|
39
33
|
}
|
|
@@ -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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IParticipant } from './action';
|
|
2
2
|
import { IPaymentMethodIssuedThrough } from './action/authorize/paymentMethod/any';
|
|
3
|
-
import { IPaymentCard } from './action/interact/confirm/moneyTransfer';
|
|
4
3
|
import { ActionType } from './actionType';
|
|
4
|
+
import { IPaymentCard } from './assetTransaction/moneyTransfer';
|
|
5
5
|
import { AssetTransactionType } from './assetTransactionType';
|
|
6
6
|
import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
|
|
7
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';
|
|
@@ -89,6 +89,9 @@ export declare type IReservation = EventReservationFactory.IReservation;
|
|
|
89
89
|
export declare type IPermit = PermitFactory.IPermit;
|
|
90
90
|
export interface IMoneyTransferPendingTransaction {
|
|
91
91
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
92
|
+
/**
|
|
93
|
+
* 資産取引番号
|
|
94
|
+
*/
|
|
92
95
|
transactionNumber: string;
|
|
93
96
|
}
|
|
94
97
|
export interface IMoneyTransfer {
|
|
@@ -102,8 +105,11 @@ export interface IMoneyTransfer {
|
|
|
102
105
|
* 転送先
|
|
103
106
|
*/
|
|
104
107
|
toLocation: IPaymentCard;
|
|
105
|
-
object
|
|
106
|
-
|
|
108
|
+
object: {
|
|
109
|
+
/**
|
|
110
|
+
* 入金処理の資産取引
|
|
111
|
+
*/
|
|
112
|
+
pendingTransaction: IMoneyTransferPendingTransaction;
|
|
107
113
|
};
|
|
108
114
|
name?: string;
|
|
109
115
|
}
|
|
@@ -111,10 +117,11 @@ export interface IMoneyTransfer {
|
|
|
111
117
|
* 注文アイテムインターフェース
|
|
112
118
|
*/
|
|
113
119
|
export declare type IItemOffered = IMoneyTransfer | IReservation | IPermit;
|
|
120
|
+
export declare type IOfferOptimized4acceptedOffer = Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'>;
|
|
114
121
|
/**
|
|
115
|
-
*
|
|
122
|
+
* 受け入れオファー
|
|
116
123
|
*/
|
|
117
|
-
export interface IAcceptedOffer<T extends IItemOffered> extends
|
|
124
|
+
export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4acceptedOffer {
|
|
118
125
|
/**
|
|
119
126
|
* オファー対象アイテム
|
|
120
127
|
*/
|
|
@@ -123,6 +130,7 @@ export interface IAcceptedOffer<T extends IItemOffered> extends IOffer {
|
|
|
123
130
|
* 販売者
|
|
124
131
|
*/
|
|
125
132
|
seller: ISeller;
|
|
133
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
126
134
|
}
|
|
127
135
|
/**
|
|
128
136
|
* 販売者
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IProduct } from './product';
|
|
2
|
-
import { IProject } from './project';
|
|
3
1
|
import { IThing } from './thing';
|
|
4
2
|
export declare enum ProgramMembershipType {
|
|
5
3
|
ProgramMembership = "ProgramMembership"
|
|
@@ -10,12 +8,10 @@ export declare enum ProgramMembershipType {
|
|
|
10
8
|
* {@link https://schema.org/ProgramMembership}
|
|
11
9
|
*/
|
|
12
10
|
export interface IProgramMembership extends IThing {
|
|
13
|
-
|
|
14
|
-
typeOf: string;
|
|
11
|
+
typeOf: ProgramMembershipType;
|
|
15
12
|
/**
|
|
16
13
|
* The service through with the permit was granted.
|
|
17
14
|
*/
|
|
18
|
-
issuedThrough?: IProduct;
|
|
19
15
|
/**
|
|
20
16
|
* A unique identifier for the membership.
|
|
21
17
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IAttributes as
|
|
1
|
+
import { IAttributes as IConfirmMoneyTransferActionAttributes } from '../action/interact/confirm/moneyTransfer';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export declare type IData =
|
|
5
|
+
export declare type IData = IConfirmMoneyTransferActionAttributes;
|
|
6
6
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
7
|
name: TaskName.ConfirmMoneyTransfer;
|
|
8
8
|
data: IData;
|
|
@@ -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>;
|
package/lib/factory/{action/interact/register/programMembership.js → task/confirmPayTransaction.js}
RENAMED
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IAttributes as
|
|
1
|
+
import { IAttributes as IConfirmRegisterServiceActionAttributes } from '../action/interact/confirm/registerService';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export declare type IData =
|
|
5
|
+
export declare type IData = IConfirmRegisterServiceActionAttributes;
|
|
6
6
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
7
|
name: TaskName.ConfirmRegisterService;
|
|
8
8
|
data: IData;
|
|
@@ -8,7 +8,7 @@ import * as TaskFactory from '../task';
|
|
|
8
8
|
import { TaskName } from '../taskName';
|
|
9
9
|
import { IPotentialActionsParams as IOrderPotentialActionsParams } from '../transaction/placeOrder';
|
|
10
10
|
export declare type IAgent = IParticipant;
|
|
11
|
-
export declare type IAcceptedOffer = OrderFactory.IAcceptedOffer<IPermit>;
|
|
11
|
+
export declare type IAcceptedOffer = Omit<OrderFactory.IAcceptedOffer<IPermit>, 'priceSpecification'>;
|
|
12
12
|
export declare type IPotentialActions = IOrderPotentialActionsParams;
|
|
13
13
|
export interface IData {
|
|
14
14
|
agent: IAgent;
|
package/lib/factory/taskName.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IProgramMembership } from '../../../programMembership';
|
|
2
|
-
import * as RegisterActionFactory from '../register';
|
|
3
|
-
export declare type IObject = IProgramMembership;
|
|
4
|
-
export declare type IResult = any;
|
|
5
|
-
export declare type IPotentialActions = any;
|
|
6
|
-
export interface IAttributes extends RegisterActionFactory.IAttributes<IObject, IResult> {
|
|
7
|
-
potentialActions?: IPotentialActions;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* メンバーシップ登録アクションインターフェース
|
|
11
|
-
*/
|
|
12
|
-
export declare type IAction = RegisterActionFactory.IAction<IAttributes>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IOwnershipInfo, IPermit } from '../../../ownershipInfo';
|
|
2
|
-
import * as UnRegisterActionFactory from '../unRegister';
|
|
3
|
-
export declare type IObject = IOwnershipInfo<IPermit>;
|
|
4
|
-
export declare type IResult = any;
|
|
5
|
-
export declare type IPotentialActions = any;
|
|
6
|
-
export interface IAttributes extends UnRegisterActionFactory.IAttributes<IObject, IResult> {
|
|
7
|
-
potentialActions?: IPotentialActions;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* メンバーシップ登録解除アクションインターフェース
|
|
11
|
-
*/
|
|
12
|
-
export declare type IAction = UnRegisterActionFactory.IAction<IAttributes>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as ActionFactory from '../../action';
|
|
2
|
-
import { ActionType } from '../../actionType';
|
|
3
|
-
export declare type IAgent = ActionFactory.IParticipant;
|
|
4
|
-
export declare type IRecipient = ActionFactory.IParticipant;
|
|
5
|
-
export declare type IObject = any;
|
|
6
|
-
export declare type IResult = any;
|
|
7
|
-
export interface IPotentialActions {
|
|
8
|
-
}
|
|
9
|
-
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.UnRegisterAction, TObject, TResult> {
|
|
10
|
-
potentialActions?: IPotentialActions;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 登録解除アクションインターフェース
|
|
14
|
-
*/
|
|
15
|
-
export declare type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|