@chevre/factory 4.313.0-alpha.2 → 4.313.0-alpha.21
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/example/informPayAction.json +8 -1
- package/lib/action/cancel/reservation.d.ts +4 -4
- package/lib/action/reserve.d.ts +2 -4
- package/lib/action/update/delete/member.d.ts +15 -5
- package/lib/assetTransaction/refund.d.ts +1 -0
- package/lib/assetTransaction/reserve.d.ts +18 -1
- package/lib/index.d.ts +9 -7
- package/lib/index.js +9 -4
- package/lib/merchantReturnPolicy.d.ts +13 -3
- package/lib/offerItemCondition.d.ts +65 -0
- package/lib/reservation/busReservation.d.ts +1 -2
- package/lib/reservation/event.d.ts +1 -2
- package/lib/reservation.d.ts +6 -5
- package/lib/seller.d.ts +11 -2
- package/lib/task/deleteTransaction.d.ts +13 -4
- package/lib/task/{deleteOrder.d.ts → onAuthorizationCreated.d.ts} +9 -4
- package/lib/task/useReservation.d.ts +16 -0
- package/lib/taskName.d.ts +30 -34
- package/lib/taskName.js +30 -33
- package/lib/transaction/moneyTransfer.d.ts +0 -5
- package/lib/transaction/returnOrder.d.ts +11 -2
- package/lib/unitPriceOffer/merchantReturnPolicy.d.ts +3 -1
- package/package.json +1 -1
- package/lib/task/deleteAssetTransaction.d.ts +0 -25
- package/lib/task/deleteMember.d.ts +0 -13
- /package/lib/{task/deleteAssetTransaction.js → offerItemCondition.js} +0 -0
- /package/lib/task/{deleteMember.js → onAuthorizationCreated.js} +0 -0
- /package/lib/task/{deleteOrder.js → useReservation.js} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"paymentMethod": {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 決済カードリスト
|
|
8
8
|
*/
|
|
9
9
|
"serviceOutput": [
|
|
10
10
|
{
|
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
* 購入番号
|
|
13
13
|
*/
|
|
14
14
|
"identifier": "2127021398",
|
|
15
|
+
"amount": {
|
|
16
|
+
/**
|
|
17
|
+
* 決済カード計上金額
|
|
18
|
+
* 認証レスポンスに値が存在する場合のみ含まれます
|
|
19
|
+
*/
|
|
20
|
+
"value": 1200
|
|
21
|
+
},
|
|
15
22
|
"serviceOutput": {
|
|
16
23
|
/**
|
|
17
24
|
* 予約の価格仕様
|
|
@@ -3,7 +3,7 @@ import { ActionType } from '../../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
4
|
import { EventType } from '../../eventType';
|
|
5
5
|
import { ProductType } from '../../product';
|
|
6
|
-
import {
|
|
6
|
+
import { IAvailableReservationStatusType } from '../../reservation';
|
|
7
7
|
import { ReservationType } from '../../reservationType';
|
|
8
8
|
import { TripType } from '../../tripType';
|
|
9
9
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
@@ -16,7 +16,7 @@ export interface IReservationPackageAsObject {
|
|
|
16
16
|
/**
|
|
17
17
|
* previousReservationStatusを変更時に指定するために必要
|
|
18
18
|
*/
|
|
19
|
-
reservationStatus:
|
|
19
|
+
reservationStatus: IAvailableReservationStatusType;
|
|
20
20
|
typeOf: ReservationType.ReservationPackage;
|
|
21
21
|
}
|
|
22
22
|
export interface IBusReservationAsObject {
|
|
@@ -32,7 +32,7 @@ export interface IBusReservationAsObject {
|
|
|
32
32
|
/**
|
|
33
33
|
* previousReservationStatusを変更時に指定するために必要
|
|
34
34
|
*/
|
|
35
|
-
reservationStatus:
|
|
35
|
+
reservationStatus: IAvailableReservationStatusType;
|
|
36
36
|
typeOf: ReservationType.BusReservation;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -51,7 +51,7 @@ export interface IEventReservationAsObject {
|
|
|
51
51
|
/**
|
|
52
52
|
* previousReservationStatusを変更時に指定するために必要
|
|
53
53
|
*/
|
|
54
|
-
reservationStatus:
|
|
54
|
+
reservationStatus: IAvailableReservationStatusType;
|
|
55
55
|
typeOf: ReservationType.EventReservation;
|
|
56
56
|
}
|
|
57
57
|
export declare type IObject = IBusReservationAsObject | IEventReservationAsObject | IReservationPackageAsObject;
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import * as ActionFactory from '../action';
|
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { OrderType } from '../order';
|
|
5
|
-
import {
|
|
5
|
+
import { IAvailableReservationStatusType } from '../reservation';
|
|
6
6
|
import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
7
7
|
import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
8
|
-
import { ReservationStatusType } from '../reservationStatusType';
|
|
9
8
|
import { ReservationType } from '../reservationType';
|
|
10
9
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
11
10
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
@@ -14,8 +13,7 @@ export declare type IReservationFor = IBusReservationFor | IEventReservationFor;
|
|
|
14
13
|
export interface IReservationPackageAsObject {
|
|
15
14
|
reservationFor: IReservationFor;
|
|
16
15
|
reservationNumber: string;
|
|
17
|
-
reservationStatus:
|
|
18
|
-
underName?: IUnderName;
|
|
16
|
+
reservationStatus: IAvailableReservationStatusType;
|
|
19
17
|
typeOf: ReservationType.ReservationPackage;
|
|
20
18
|
}
|
|
21
19
|
export declare type IObject = IReservationPackageAsObject;
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { IPerson } from '../../../person';
|
|
2
2
|
import * as DeleteActionFactory from '../delete';
|
|
3
|
-
export declare type IObject = IPerson
|
|
3
|
+
export declare type IObject = Pick<IPerson, 'id' | 'typeOf'> & {
|
|
4
|
+
/**
|
|
5
|
+
* 新ユーザープールへ移行するかどうか
|
|
6
|
+
*/
|
|
7
|
+
migrate?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 移行会員通知先
|
|
10
|
+
*/
|
|
11
|
+
migratePersonRecipientUrl?: string;
|
|
12
|
+
/**
|
|
13
|
+
* ユーザープールから物理削除するかどうか
|
|
14
|
+
*/
|
|
15
|
+
physically?: boolean;
|
|
16
|
+
};
|
|
4
17
|
export declare type IResult = any;
|
|
5
|
-
export interface
|
|
6
|
-
}
|
|
7
|
-
export interface IAttributes extends DeleteActionFactory.IAttributes<IObject, IResult> {
|
|
8
|
-
potentialActions?: IPotentialActions;
|
|
18
|
+
export interface IAttributes extends Omit<DeleteActionFactory.IAttributes<IObject, IResult>, 'potentialActions'> {
|
|
9
19
|
}
|
|
10
20
|
/**
|
|
11
21
|
* 会員削除アクション
|
|
@@ -209,13 +209,19 @@ export interface IObjectWithoutDetail {
|
|
|
209
209
|
}
|
|
210
210
|
export declare type IReservationFor = IBusReservationReservationFor | IEventReservationReservationFor;
|
|
211
211
|
export declare type IObjectSubReservation = ReserveActionFactory.ISubReservation;
|
|
212
|
+
export declare type IObjectSubReservationReservedTicket = Pick<ReservationFactory.ITicket, 'issuedBy' | 'ticketedSeat' | 'ticketType'>;
|
|
213
|
+
export declare type IMinimizedObjectSubReservation = Pick<ReserveActionFactory.ISubReservation, 'typeOf' | 'id' | 'subReservation'> & {
|
|
214
|
+
reservedTicket: IObjectSubReservationReservedTicket;
|
|
215
|
+
};
|
|
212
216
|
/**
|
|
213
217
|
* 取引対象物
|
|
214
218
|
*/
|
|
215
|
-
export interface IObject extends IReservationPackage {
|
|
219
|
+
export interface IObject extends Pick<IReservationPackage, 'broker' | 'reservationStatus' | 'underName' | 'typeOf'> {
|
|
216
220
|
acceptedOffer?: IAcceptedOffer4object[];
|
|
217
221
|
reservationFor?: IReservationFor;
|
|
222
|
+
reservationNumber: string;
|
|
218
223
|
subReservation?: IObjectSubReservation[];
|
|
224
|
+
disablePendingReservations: boolean;
|
|
219
225
|
}
|
|
220
226
|
export interface IPotentialActions {
|
|
221
227
|
reserve: ReserveActionFactory.IAttributes[];
|
|
@@ -227,8 +233,14 @@ export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartP
|
|
|
227
233
|
*/
|
|
228
234
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
229
235
|
export interface IObjectSearchConditions {
|
|
236
|
+
reservationFor?: {
|
|
237
|
+
id?: {
|
|
238
|
+
$eq?: string;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
230
241
|
reservationNumber?: {
|
|
231
242
|
$eq?: string;
|
|
243
|
+
$in?: string[];
|
|
232
244
|
};
|
|
233
245
|
reservations?: {
|
|
234
246
|
id?: {
|
|
@@ -243,6 +255,11 @@ export interface IObjectSearchConditions {
|
|
|
243
255
|
};
|
|
244
256
|
};
|
|
245
257
|
};
|
|
258
|
+
underName?: {
|
|
259
|
+
id?: {
|
|
260
|
+
$eq?: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
246
263
|
}
|
|
247
264
|
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Reserve> {
|
|
248
265
|
object?: IObjectSearchConditions;
|
package/lib/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ import * as MonetaryAmountFactory from './monetaryAmount';
|
|
|
70
70
|
import { IMultilingualString } from './multilingualString';
|
|
71
71
|
import * as OfferFactory from './offer';
|
|
72
72
|
import * as OfferCatalogFactory from './offerCatalog';
|
|
73
|
+
import * as OfferItemConditionFactory from './offerItemCondition';
|
|
73
74
|
import { OfferType } from './offerType';
|
|
74
75
|
import * as OrderFactory from './order';
|
|
75
76
|
import { OrderStatus } from './orderStatus';
|
|
@@ -132,15 +133,13 @@ import * as ConfirmPayTransactionTaskFactory from './task/confirmPayTransaction'
|
|
|
132
133
|
import * as ConfirmRegisterServiceTaskFactory from './task/confirmRegisterService';
|
|
133
134
|
import * as ConfirmRegisterServiceTransactionTaskFactory from './task/confirmRegisterServiceTransaction';
|
|
134
135
|
import * as ConfirmReserveTransactionTaskFactory from './task/confirmReserveTransaction';
|
|
135
|
-
import * as DeleteAssetTransactionTaskFactory from './task/deleteAssetTransaction';
|
|
136
|
-
import * as DeleteMemberTaskFactory from './task/deleteMember';
|
|
137
|
-
import * as DeleteOrderTaskFactory from './task/deleteOrder';
|
|
138
136
|
import * as DeleteTransactionTaskFactory from './task/deleteTransaction';
|
|
139
137
|
import * as GivePointAwardTaskFactory from './task/givePointAward';
|
|
140
138
|
import * as ImportEventCapacitiesFromCOATaskFactory from './task/importEventCapacitiesFromCOA';
|
|
141
139
|
import * as ImportEventsFromCOATaskFactory from './task/importEventsFromCOA';
|
|
142
140
|
import * as ImportOffersFromCOATaskFactory from './task/importOffersFromCOA';
|
|
143
141
|
import * as MoneyTransferTaskFactory from './task/moneyTransfer';
|
|
142
|
+
import * as OnAuthorizationCreatedTaskFactory from './task/onAuthorizationCreated';
|
|
144
143
|
import * as OrderProgramMembershipTaskFactory from './task/orderProgramMembership';
|
|
145
144
|
import * as PayTaskFactory from './task/pay';
|
|
146
145
|
import * as PlaceOrderTaskFactory from './task/placeOrder';
|
|
@@ -155,6 +154,7 @@ import * as ReturnReserveTransactionTaskFactory from './task/returnReserveTransa
|
|
|
155
154
|
import * as SendEmailMessageTaskFactory from './task/sendEmailMessage';
|
|
156
155
|
import * as SendOrderTaskFactory from './task/sendOrder';
|
|
157
156
|
import * as TriggerWebhookTaskFactory from './task/triggerWebhook';
|
|
157
|
+
import * as UseReservationTaskFactory from './task/useReservation';
|
|
158
158
|
import * as VoidMoneyTransferTransactionTaskFactory from './task/voidMoneyTransferTransaction';
|
|
159
159
|
import * as VoidPaymentTaskFactory from './task/voidPayment';
|
|
160
160
|
import * as VoidPayTransactionTaskFactory from './task/voidPayTransaction';
|
|
@@ -322,6 +322,7 @@ export import monetaryAmount = MonetaryAmountFactory;
|
|
|
322
322
|
export declare type multilingualString = IMultilingualString;
|
|
323
323
|
export import offer = OfferFactory;
|
|
324
324
|
export import offerCatalog = OfferCatalogFactory;
|
|
325
|
+
export import offerItemCondition = OfferItemConditionFactory;
|
|
325
326
|
export import offerType = OfferType;
|
|
326
327
|
export import order = OrderFactory;
|
|
327
328
|
export import orderStatus = OrderStatus;
|
|
@@ -401,9 +402,9 @@ export import reservationStatusType = ReservationStatusType;
|
|
|
401
402
|
export import reservationType = ReservationType;
|
|
402
403
|
export import seller = SellerFactory;
|
|
403
404
|
export declare namespace task {
|
|
404
|
-
type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.
|
|
405
|
-
type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.
|
|
406
|
-
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.
|
|
405
|
+
type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IData : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IData : T extends TaskName.OrderProgramMembership ? OrderProgramMembershipTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IData : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IData : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IData : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.UseReservation ? UseReservationTaskFactory.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;
|
|
406
|
+
type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IAttributes : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IAttributes : T extends TaskName.OrderProgramMembership ? OrderProgramMembershipTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IAttributes : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IAttributes : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.UseReservation ? UseReservationTaskFactory.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;
|
|
407
|
+
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.ITask : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.ITask : T extends TaskName.OrderProgramMembership ? OrderProgramMembershipTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.ITask : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.ITask : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.UseReservation ? UseReservationTaskFactory.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;
|
|
407
408
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
408
409
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
409
410
|
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
@@ -411,7 +412,6 @@ export declare namespace task {
|
|
|
411
412
|
export import cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
|
|
412
413
|
export import cancelPendingReservation = CancelPendingReservationTaskFactory;
|
|
413
414
|
export import cancelReservation = CancelReservationTaskFactory;
|
|
414
|
-
export import deleteAssetTransaction = DeleteAssetTransactionTaskFactory;
|
|
415
415
|
export import deleteTransaction = DeleteTransactionTaskFactory;
|
|
416
416
|
export import importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
417
417
|
export import importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
|
@@ -423,7 +423,9 @@ export declare namespace task {
|
|
|
423
423
|
export import reserve = ReserveTaskFactory;
|
|
424
424
|
export import sendEmailMessage = SendEmailMessageTaskFactory;
|
|
425
425
|
export import triggerWebhook = TriggerWebhookTaskFactory;
|
|
426
|
+
export import useReservation = UseReservationTaskFactory;
|
|
426
427
|
export import voidPayment = VoidPaymentTaskFactory;
|
|
428
|
+
export import onAuthorizationCreated = OnAuthorizationCreatedTaskFactory;
|
|
427
429
|
export import orderProgramMembership = OrderProgramMembershipTaskFactory;
|
|
428
430
|
export import accountMoneyTransfer = AccountMoneyTransferTaskFactory;
|
|
429
431
|
export import cancelAccountMoneyTransfer = CancelAccountMoneyTransferTaskFactory;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = void 0;
|
|
3
|
+
exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -67,6 +67,7 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
|
|
|
67
67
|
var MonetaryAmountFactory = require("./monetaryAmount");
|
|
68
68
|
var OfferFactory = require("./offer");
|
|
69
69
|
var OfferCatalogFactory = require("./offerCatalog");
|
|
70
|
+
var OfferItemConditionFactory = require("./offerItemCondition");
|
|
70
71
|
var offerType_1 = require("./offerType");
|
|
71
72
|
var OrderFactory = require("./order");
|
|
72
73
|
var orderStatus_1 = require("./orderStatus");
|
|
@@ -116,12 +117,13 @@ var CancelAccountMoneyTransferTaskFactory = require("./task/cancelAccountMoneyTr
|
|
|
116
117
|
var CancelMoneyTransferTaskFactory = require("./task/cancelMoneyTransfer");
|
|
117
118
|
var CancelPendingReservationTaskFactory = require("./task/cancelPendingReservation");
|
|
118
119
|
var CancelReservationTaskFactory = require("./task/cancelReservation");
|
|
119
|
-
|
|
120
|
+
// import * as DeleteMemberTaskFactory from './task/deleteMember';
|
|
120
121
|
var DeleteTransactionTaskFactory = require("./task/deleteTransaction");
|
|
121
122
|
var ImportEventCapacitiesFromCOATaskFactory = require("./task/importEventCapacitiesFromCOA");
|
|
122
123
|
var ImportEventsFromCOATaskFactory = require("./task/importEventsFromCOA");
|
|
123
124
|
var ImportOffersFromCOATaskFactory = require("./task/importOffersFromCOA");
|
|
124
125
|
var MoneyTransferTaskFactory = require("./task/moneyTransfer");
|
|
126
|
+
var OnAuthorizationCreatedTaskFactory = require("./task/onAuthorizationCreated");
|
|
125
127
|
var OrderProgramMembershipTaskFactory = require("./task/orderProgramMembership");
|
|
126
128
|
var PayTaskFactory = require("./task/pay");
|
|
127
129
|
var RefundTaskFactory = require("./task/refund");
|
|
@@ -129,6 +131,7 @@ var RegisterServiceTaskFactory = require("./task/registerService");
|
|
|
129
131
|
var ReserveTaskFactory = require("./task/reserve");
|
|
130
132
|
var SendEmailMessageTaskFactory = require("./task/sendEmailMessage");
|
|
131
133
|
var TriggerWebhookTaskFactory = require("./task/triggerWebhook");
|
|
134
|
+
var UseReservationTaskFactory = require("./task/useReservation");
|
|
132
135
|
var VoidPaymentTaskFactory = require("./task/voidPayment");
|
|
133
136
|
var taskName_1 = require("./taskName");
|
|
134
137
|
var taskStatus_1 = require("./taskStatus");
|
|
@@ -302,6 +305,7 @@ exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
|
|
|
302
305
|
exports.monetaryAmount = MonetaryAmountFactory;
|
|
303
306
|
exports.offer = OfferFactory;
|
|
304
307
|
exports.offerCatalog = OfferCatalogFactory;
|
|
308
|
+
exports.offerItemCondition = OfferItemConditionFactory;
|
|
305
309
|
exports.offerType = offerType_1.OfferType;
|
|
306
310
|
exports.order = OrderFactory;
|
|
307
311
|
exports.orderStatus = orderStatus_1.OrderStatus;
|
|
@@ -364,7 +368,6 @@ var task;
|
|
|
364
368
|
task.cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
|
|
365
369
|
task.cancelPendingReservation = CancelPendingReservationTaskFactory;
|
|
366
370
|
task.cancelReservation = CancelReservationTaskFactory;
|
|
367
|
-
task.deleteAssetTransaction = DeleteAssetTransactionTaskFactory;
|
|
368
371
|
task.deleteTransaction = DeleteTransactionTaskFactory;
|
|
369
372
|
task.importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
370
373
|
task.importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
|
@@ -376,7 +379,9 @@ var task;
|
|
|
376
379
|
task.reserve = ReserveTaskFactory;
|
|
377
380
|
task.sendEmailMessage = SendEmailMessageTaskFactory;
|
|
378
381
|
task.triggerWebhook = TriggerWebhookTaskFactory;
|
|
382
|
+
task.useReservation = UseReservationTaskFactory;
|
|
379
383
|
task.voidPayment = VoidPaymentTaskFactory;
|
|
384
|
+
task.onAuthorizationCreated = OnAuthorizationCreatedTaskFactory;
|
|
380
385
|
task.orderProgramMembership = OrderProgramMembershipTaskFactory;
|
|
381
386
|
task.accountMoneyTransfer = AccountMoneyTransferTaskFactory;
|
|
382
387
|
task.cancelAccountMoneyTransfer = CancelAccountMoneyTransferTaskFactory;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
2
|
+
import { IOfferItemCondition } from './offerItemCondition';
|
|
2
3
|
import { IThing } from './thing';
|
|
3
4
|
export declare enum RefundTypeEnumeration {
|
|
4
5
|
ExchangeRefund = "ExchangeRefund",
|
|
@@ -42,20 +43,29 @@ export declare enum MerchantReturnEnumeration {
|
|
|
42
43
|
MerchantReturnUnspecified = "MerchantReturnUnspecified"
|
|
43
44
|
}
|
|
44
45
|
export declare type IRestockingFee = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
|
46
|
+
export declare type IItemCondition = Pick<IOfferItemCondition, 'typeOf' | 'id'> & {
|
|
47
|
+
id: string;
|
|
48
|
+
name: {
|
|
49
|
+
ja: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare type ICustomerRemorseReturnFees = ReturnFeesEnumeration;
|
|
53
|
+
export declare type ICustomerRemorseReturnFeesMovieTicket = ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
|
|
45
54
|
export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
|
|
46
55
|
typeOf: 'MerchantReturnPolicy';
|
|
47
56
|
/**
|
|
48
57
|
* The type of return fees if the product is returned due to customer remorse.
|
|
49
58
|
*/
|
|
50
|
-
customerRemorseReturnFees?:
|
|
59
|
+
customerRemorseReturnFees?: ICustomerRemorseReturnFees;
|
|
51
60
|
/**
|
|
52
61
|
* 決済カード着券取消仕様
|
|
53
62
|
*/
|
|
54
|
-
customerRemorseReturnFeesMovieTicket?:
|
|
63
|
+
customerRemorseReturnFeesMovieTicket?: ICustomerRemorseReturnFeesMovieTicket;
|
|
55
64
|
/**
|
|
56
65
|
* Are in-store returns offered?
|
|
57
66
|
*/
|
|
58
67
|
inStoreReturnsOffered?: boolean;
|
|
68
|
+
itemCondition?: IItemCondition;
|
|
59
69
|
/**
|
|
60
70
|
* The merchantReturnDays property indicates the number of days (from purchase)
|
|
61
71
|
* within which relevant merchant return policy is applicable. Supersedes productReturnDays.
|
|
@@ -73,7 +83,7 @@ export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
|
|
|
73
83
|
* Use MonetaryAmount to specify a fixed restocking fee for product returns,
|
|
74
84
|
* or use Number to specify a percentage of the product price paid by the customer.
|
|
75
85
|
*/
|
|
76
|
-
restockingFee?: IRestockingFee
|
|
86
|
+
restockingFee?: IRestockingFee;
|
|
77
87
|
/**
|
|
78
88
|
* Indicates (via enumerated options) the return fees policy for a MerchantReturnPolicy
|
|
79
89
|
*/
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { IMultilingualString } from './multilingualString';
|
|
2
|
+
import { ProductType } from './product';
|
|
3
|
+
import { IProject } from './project';
|
|
4
|
+
import { IQuantitativeValue } from './quantitativeValue';
|
|
5
|
+
import { ReservationType } from './reservationType';
|
|
6
|
+
import { SortType } from './sortType';
|
|
7
|
+
import { UnitCode } from './unitCode';
|
|
8
|
+
export declare type IGracePeriodBeforeStart = Pick<IQuantitativeValue<UnitCode.Sec>, 'maxValue' | 'minValue' | 'typeOf' | 'unitCode'>;
|
|
9
|
+
export interface IGracePeriodBeforeStartInDays {
|
|
10
|
+
period: Pick<IQuantitativeValue<UnitCode.Day>, 'value' | 'typeOf' | 'unitCode'>;
|
|
11
|
+
time: string;
|
|
12
|
+
timezone: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IItemOffered {
|
|
15
|
+
typeOf: ProductType.EventService;
|
|
16
|
+
serviceOutput?: {
|
|
17
|
+
typeOf: ReservationType.EventReservation;
|
|
18
|
+
/**
|
|
19
|
+
* 未使用のみ
|
|
20
|
+
*/
|
|
21
|
+
onlyUnused?: boolean;
|
|
22
|
+
reservationFor: {
|
|
23
|
+
/**
|
|
24
|
+
* n秒前設定
|
|
25
|
+
*/
|
|
26
|
+
gracePeriodBeforeStart?: IGracePeriodBeforeStart;
|
|
27
|
+
/**
|
|
28
|
+
* n日時前のHH:mm:ss設定
|
|
29
|
+
*/
|
|
30
|
+
gracePeriodBeforeStartInDays?: {
|
|
31
|
+
max?: IGracePeriodBeforeStartInDays;
|
|
32
|
+
min?: IGracePeriodBeforeStartInDays;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export interface IOfferItemCondition {
|
|
38
|
+
id?: string;
|
|
39
|
+
identifier: string;
|
|
40
|
+
itemOffered: IItemOffered;
|
|
41
|
+
name: IMultilingualString;
|
|
42
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
43
|
+
typeOf: 'OfferItemCondition';
|
|
44
|
+
}
|
|
45
|
+
export interface ISortOrder {
|
|
46
|
+
identifier?: SortType;
|
|
47
|
+
}
|
|
48
|
+
export interface ISearchConditions {
|
|
49
|
+
limit?: number;
|
|
50
|
+
page?: number;
|
|
51
|
+
sort?: ISortOrder;
|
|
52
|
+
project?: {
|
|
53
|
+
id?: {
|
|
54
|
+
$eq?: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
id?: {
|
|
58
|
+
$eq?: string;
|
|
59
|
+
$in?: string[];
|
|
60
|
+
};
|
|
61
|
+
identifier?: {
|
|
62
|
+
$eq?: string;
|
|
63
|
+
$in?: string[];
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
2
2
|
import { ProductType } from '../product';
|
|
3
3
|
import * as ReservationFactory from '../reservation';
|
|
4
|
-
import { ReservationStatusType } from '../reservationStatusType';
|
|
5
4
|
import { ReservationType } from '../reservationType';
|
|
6
5
|
import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
|
|
7
6
|
import { TripType } from '../tripType';
|
|
@@ -28,7 +27,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
|
|
|
28
27
|
issuedThrough: IIssuedThrough;
|
|
29
28
|
reservationFor: IReservationFor;
|
|
30
29
|
reservationNumber: string;
|
|
31
|
-
reservationStatus:
|
|
30
|
+
reservationStatus: ReservationFactory.IAvailableReservationStatusType;
|
|
32
31
|
reservedTicket: ReservationFactory.ITicket;
|
|
33
32
|
subReservation?: ISubReservation[];
|
|
34
33
|
typeOf: ReservationType.BusReservation;
|
|
@@ -4,7 +4,6 @@ import { IMultilingualString } from '../multilingualString';
|
|
|
4
4
|
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
5
5
|
import { ProductType } from '../product';
|
|
6
6
|
import * as ReservationFactory from '../reservation';
|
|
7
|
-
import { ReservationStatusType } from '../reservationStatusType';
|
|
8
7
|
import { ReservationType } from '../reservationType';
|
|
9
8
|
export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'project' | 'name'> & {
|
|
10
9
|
name?: string | IMultilingualString;
|
|
@@ -53,7 +52,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
|
|
|
53
52
|
issuedThrough: IIssuedThrough;
|
|
54
53
|
reservationFor: IReservationFor;
|
|
55
54
|
reservationNumber: string;
|
|
56
|
-
reservationStatus:
|
|
55
|
+
reservationStatus: ReservationFactory.IAvailableReservationStatusType;
|
|
57
56
|
reservedTicket: ReservationFactory.ITicket;
|
|
58
57
|
subReservation?: ISubReservation[];
|
|
59
58
|
typeOf: ReservationType.EventReservation;
|
package/lib/reservation.d.ts
CHANGED
|
@@ -185,6 +185,7 @@ export interface IIssuedThrough {
|
|
|
185
185
|
id: string;
|
|
186
186
|
availableChannel: IServiceChannel;
|
|
187
187
|
}
|
|
188
|
+
export declare type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
|
|
188
189
|
/**
|
|
189
190
|
* 予約
|
|
190
191
|
* Describes a reservation for travel, dining or an event. Some reservations require tickets.
|
|
@@ -264,7 +265,7 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> ex
|
|
|
264
265
|
/**
|
|
265
266
|
* Current status of the reservation.
|
|
266
267
|
*/
|
|
267
|
-
reservationStatus?:
|
|
268
|
+
reservationStatus?: IAvailableReservationStatusType;
|
|
268
269
|
/**
|
|
269
270
|
* A ticket associated with the reservation.
|
|
270
271
|
*/
|
|
@@ -416,14 +417,14 @@ export interface ISearchConditions<T extends ReservationType> {
|
|
|
416
417
|
additionalTicketText?: string | IStringSearchConditions;
|
|
417
418
|
broker?: IBrokerSearchConditions;
|
|
418
419
|
reservationStatus?: {
|
|
419
|
-
$eq?:
|
|
420
|
-
$ne?:
|
|
421
|
-
$in?:
|
|
420
|
+
$eq?: IAvailableReservationStatusType;
|
|
421
|
+
$ne?: IAvailableReservationStatusType;
|
|
422
|
+
$in?: IAvailableReservationStatusType[];
|
|
422
423
|
};
|
|
423
424
|
/**
|
|
424
425
|
* 予約ステータスリスト
|
|
425
426
|
*/
|
|
426
|
-
reservationStatuses?:
|
|
427
|
+
reservationStatuses?: IAvailableReservationStatusType[];
|
|
427
428
|
bookingFrom?: Date;
|
|
428
429
|
bookingThrough?: Date;
|
|
429
430
|
modifiedFrom?: Date;
|
package/lib/seller.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMerchantReturnPolicy } from './merchantReturnPolicy';
|
|
1
|
+
import { IMerchantReturnPolicy, IRestockingFee } from './merchantReturnPolicy';
|
|
2
2
|
import { IMultilingualString } from './multilingualString';
|
|
3
3
|
import { IOffer } from './offer';
|
|
4
4
|
import { IOrganization } from './organization';
|
|
@@ -8,7 +8,9 @@ import { IPropertyValue } from './propertyValue';
|
|
|
8
8
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
9
9
|
import { SortType } from './sortType';
|
|
10
10
|
import { UnitCode } from './unitCode';
|
|
11
|
-
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'
|
|
11
|
+
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'itemCondition' | 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'> & {
|
|
12
|
+
restockingFee: IRestockingFee;
|
|
13
|
+
};
|
|
12
14
|
export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
|
|
13
15
|
/**
|
|
14
16
|
* 利用可能決済
|
|
@@ -66,6 +68,13 @@ export interface ISearchConditions {
|
|
|
66
68
|
$eq?: string;
|
|
67
69
|
$regex?: string;
|
|
68
70
|
};
|
|
71
|
+
hasMerchantReturnPolicy?: {
|
|
72
|
+
itemCondition?: {
|
|
73
|
+
id?: {
|
|
74
|
+
$eq?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
69
78
|
/**
|
|
70
79
|
* 名称
|
|
71
80
|
*/
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { IExtendId } from '../autoGenerated';
|
|
2
2
|
import * as TaskFactory from '../task';
|
|
3
3
|
import { TaskName } from '../taskName';
|
|
4
|
-
import { ITransaction as IMoneyTransfer } from '../transaction/moneyTransfer';
|
|
5
|
-
import { ITransaction as IPlaceOrder } from '../transaction/placeOrder';
|
|
6
|
-
import { ITransaction as IReturnOrder } from '../transaction/returnOrder';
|
|
7
|
-
export declare type
|
|
4
|
+
import { IObject as IMoneyTransferObject, ITransaction as IMoneyTransfer } from '../transaction/moneyTransfer';
|
|
5
|
+
import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../transaction/placeOrder';
|
|
6
|
+
import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../transaction/returnOrder';
|
|
7
|
+
export declare type IObjectAsMoneyTransfer = Pick<IMoneyTransfer, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
|
|
8
|
+
object: Pick<IMoneyTransferObject, 'pendingTransaction'>;
|
|
9
|
+
};
|
|
10
|
+
export declare type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
|
|
11
|
+
object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
|
|
12
|
+
};
|
|
13
|
+
export declare type IObjectAsReturnOrder = Pick<IReturnOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
|
|
14
|
+
object: Pick<IReturnOrderObject, 'order'>;
|
|
15
|
+
};
|
|
16
|
+
export declare type IObject = IObjectAsMoneyTransfer | IObjectAsPlaceOrder | IObjectAsReturnOrder;
|
|
8
17
|
export interface IData {
|
|
9
18
|
object: IObject;
|
|
10
19
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { IExtendId } from '../autoGenerated';
|
|
2
|
-
import { IOrder } from '../order';
|
|
3
2
|
import * as TaskFactory from '../task';
|
|
4
3
|
import { TaskName } from '../taskName';
|
|
5
4
|
export interface IData {
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* 承認コード
|
|
7
|
+
*/
|
|
8
|
+
code: string;
|
|
9
|
+
project: {
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
7
12
|
}
|
|
8
13
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
9
|
-
name: TaskName.
|
|
14
|
+
name: TaskName.OnAuthorizationCreated;
|
|
10
15
|
data: IData;
|
|
11
16
|
}
|
|
12
17
|
/**
|
|
13
|
-
*
|
|
18
|
+
* 承認作成時タスク
|
|
14
19
|
*/
|
|
15
20
|
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IAttributes as IUseReservationActionAttributes, IReservationAsObject } from '../action/consume/use/reservation';
|
|
2
|
+
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import * as TaskFactory from '../task';
|
|
4
|
+
import { TaskName } from '../taskName';
|
|
5
|
+
export declare type IUseReservationObject = Pick<IReservationAsObject, 'id' | 'typeOf'>;
|
|
6
|
+
export declare type IData = Pick<IUseReservationActionAttributes, 'agent' | 'instrument' | 'location' | 'project' | 'typeOf'> & {
|
|
7
|
+
object: IUseReservationObject;
|
|
8
|
+
};
|
|
9
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
10
|
+
name: TaskName.UseReservation;
|
|
11
|
+
data: IData;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 予約使用タスク
|
|
15
|
+
*/
|
|
16
|
+
export declare type ITask = IExtendId<IAttributes>;
|
package/lib/taskName.d.ts
CHANGED
|
@@ -2,31 +2,19 @@
|
|
|
2
2
|
* タスク名
|
|
3
3
|
*/
|
|
4
4
|
export declare enum TaskName {
|
|
5
|
-
Reserve = "reserve",
|
|
6
|
-
CancelReservation = "cancelReservation",
|
|
7
|
-
CancelPendingReservation = "cancelPendingReservation",
|
|
8
|
-
AggregateScreeningEvent = "aggregateScreeningEvent",
|
|
9
|
-
AggregateUseActionsOnEvent = "aggregateUseActionsOnEvent",
|
|
10
|
-
DeleteAssetTransaction = "deleteAssetTransaction",
|
|
11
|
-
DeleteOrder = "deleteOrder",
|
|
12
|
-
DeleteTransaction = "deleteTransaction",
|
|
13
|
-
ImportEventCapacitiesFromCOA = "importEventCapacitiesFromCOA",
|
|
14
|
-
ImportEventsFromCOA = "importEventsFromCOA",
|
|
15
|
-
ImportOffersFromCOA = "importOffersFromCOA",
|
|
16
|
-
CancelMoneyTransfer = "cancelMoneyTransfer",
|
|
17
|
-
MoneyTransfer = "moneyTransfer",
|
|
18
|
-
Refund = "refund",
|
|
19
|
-
RegisterService = "registerService",
|
|
20
|
-
Pay = "pay",
|
|
21
5
|
/**
|
|
22
|
-
*
|
|
6
|
+
* 口座転送
|
|
23
7
|
*/
|
|
24
|
-
|
|
8
|
+
AccountMoneyTransfer = "accountMoneyTransfer",
|
|
9
|
+
AggregateScreeningEvent = "aggregateScreeningEvent",
|
|
10
|
+
AggregateUseActionsOnEvent = "aggregateUseActionsOnEvent",
|
|
25
11
|
/**
|
|
26
|
-
*
|
|
12
|
+
* 口座転送中止
|
|
27
13
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
CancelAccountMoneyTransfer = "cancelAccountMoneyTransfer",
|
|
15
|
+
CancelMoneyTransfer = "cancelMoneyTransfer",
|
|
16
|
+
CancelReservation = "cancelReservation",
|
|
17
|
+
CancelPendingReservation = "cancelPendingReservation",
|
|
30
18
|
/**
|
|
31
19
|
* 通貨転送
|
|
32
20
|
*/
|
|
@@ -47,22 +35,31 @@ export declare enum TaskName {
|
|
|
47
35
|
* 予約資産取引確定
|
|
48
36
|
*/
|
|
49
37
|
ConfirmReserveTransaction = "confirmReserveTransaction",
|
|
50
|
-
|
|
51
|
-
* 会員削除
|
|
52
|
-
*/
|
|
53
|
-
DeleteMember = "deleteMember",
|
|
38
|
+
DeleteTransaction = "deleteTransaction",
|
|
54
39
|
/**
|
|
55
40
|
* ポイント特典付与
|
|
56
41
|
*/
|
|
57
42
|
GivePointAward = "givePointAward",
|
|
43
|
+
ImportEventCapacitiesFromCOA = "importEventCapacitiesFromCOA",
|
|
44
|
+
ImportEventsFromCOA = "importEventsFromCOA",
|
|
45
|
+
ImportOffersFromCOA = "importOffersFromCOA",
|
|
46
|
+
MoneyTransfer = "moneyTransfer",
|
|
47
|
+
OnAuthorizationCreated = "onAuthorizationCreated",
|
|
58
48
|
/**
|
|
59
49
|
* メンバーシップ注文
|
|
60
50
|
*/
|
|
61
51
|
OrderProgramMembership = "orderProgramMembership",
|
|
52
|
+
Pay = "pay",
|
|
62
53
|
/**
|
|
63
54
|
* 注文受付
|
|
64
55
|
*/
|
|
65
56
|
PlaceOrder = "placeOrder",
|
|
57
|
+
Refund = "refund",
|
|
58
|
+
RegisterService = "registerService",
|
|
59
|
+
/**
|
|
60
|
+
* Eメールメッセージ送信
|
|
61
|
+
*/
|
|
62
|
+
Reserve = "reserve",
|
|
66
63
|
/**
|
|
67
64
|
* 注文返品
|
|
68
65
|
*/
|
|
@@ -83,10 +80,17 @@ export declare enum TaskName {
|
|
|
83
80
|
* 予約資産取引返却
|
|
84
81
|
*/
|
|
85
82
|
ReturnReserveTransaction = "returnReserveTransaction",
|
|
83
|
+
SendEmailMessage = "sendEmailMessage",
|
|
86
84
|
/**
|
|
87
85
|
* 注文配送
|
|
88
86
|
*/
|
|
89
87
|
SendOrder = "sendOrder",
|
|
88
|
+
/**
|
|
89
|
+
* ウェブフックをたたく
|
|
90
|
+
*/
|
|
91
|
+
TriggerWebhook = "triggerWebhook",
|
|
92
|
+
UseReservation = "useReservation",
|
|
93
|
+
VoidPayment = "voidPayment",
|
|
90
94
|
/**
|
|
91
95
|
* 通貨転送中止
|
|
92
96
|
*/
|
|
@@ -102,13 +106,5 @@ export declare enum TaskName {
|
|
|
102
106
|
/**
|
|
103
107
|
* 予約中止
|
|
104
108
|
*/
|
|
105
|
-
VoidReserveTransaction = "voidReserveTransaction"
|
|
106
|
-
/**
|
|
107
|
-
* 口座転送中止
|
|
108
|
-
*/
|
|
109
|
-
CancelAccountMoneyTransfer = "cancelAccountMoneyTransfer",
|
|
110
|
-
/**
|
|
111
|
-
* 口座転送
|
|
112
|
-
*/
|
|
113
|
-
AccountMoneyTransfer = "accountMoneyTransfer"
|
|
109
|
+
VoidReserveTransaction = "voidReserveTransaction"
|
|
114
110
|
}
|
package/lib/taskName.js
CHANGED
|
@@ -6,31 +6,19 @@ exports.TaskName = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var TaskName;
|
|
8
8
|
(function (TaskName) {
|
|
9
|
-
TaskName["Reserve"] = "reserve";
|
|
10
|
-
TaskName["CancelReservation"] = "cancelReservation";
|
|
11
|
-
TaskName["CancelPendingReservation"] = "cancelPendingReservation";
|
|
12
|
-
TaskName["AggregateScreeningEvent"] = "aggregateScreeningEvent";
|
|
13
|
-
TaskName["AggregateUseActionsOnEvent"] = "aggregateUseActionsOnEvent";
|
|
14
|
-
TaskName["DeleteAssetTransaction"] = "deleteAssetTransaction";
|
|
15
|
-
TaskName["DeleteOrder"] = "deleteOrder";
|
|
16
|
-
TaskName["DeleteTransaction"] = "deleteTransaction";
|
|
17
|
-
TaskName["ImportEventCapacitiesFromCOA"] = "importEventCapacitiesFromCOA";
|
|
18
|
-
TaskName["ImportEventsFromCOA"] = "importEventsFromCOA";
|
|
19
|
-
TaskName["ImportOffersFromCOA"] = "importOffersFromCOA";
|
|
20
|
-
TaskName["CancelMoneyTransfer"] = "cancelMoneyTransfer";
|
|
21
|
-
TaskName["MoneyTransfer"] = "moneyTransfer";
|
|
22
|
-
TaskName["Refund"] = "refund";
|
|
23
|
-
TaskName["RegisterService"] = "registerService";
|
|
24
|
-
TaskName["Pay"] = "pay";
|
|
25
9
|
/**
|
|
26
|
-
*
|
|
10
|
+
* 口座転送
|
|
27
11
|
*/
|
|
28
|
-
TaskName["
|
|
12
|
+
TaskName["AccountMoneyTransfer"] = "accountMoneyTransfer";
|
|
13
|
+
TaskName["AggregateScreeningEvent"] = "aggregateScreeningEvent";
|
|
14
|
+
TaskName["AggregateUseActionsOnEvent"] = "aggregateUseActionsOnEvent";
|
|
29
15
|
/**
|
|
30
|
-
*
|
|
16
|
+
* 口座転送中止
|
|
31
17
|
*/
|
|
32
|
-
TaskName["
|
|
33
|
-
TaskName["
|
|
18
|
+
TaskName["CancelAccountMoneyTransfer"] = "cancelAccountMoneyTransfer";
|
|
19
|
+
TaskName["CancelMoneyTransfer"] = "cancelMoneyTransfer";
|
|
20
|
+
TaskName["CancelReservation"] = "cancelReservation";
|
|
21
|
+
TaskName["CancelPendingReservation"] = "cancelPendingReservation";
|
|
34
22
|
/**
|
|
35
23
|
* 通貨転送
|
|
36
24
|
*/
|
|
@@ -51,22 +39,32 @@ var TaskName;
|
|
|
51
39
|
* 予約資産取引確定
|
|
52
40
|
*/
|
|
53
41
|
TaskName["ConfirmReserveTransaction"] = "confirmReserveTransaction";
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*/
|
|
57
|
-
TaskName["DeleteMember"] = "deleteMember";
|
|
42
|
+
// DeleteMember = 'deleteMember',
|
|
43
|
+
TaskName["DeleteTransaction"] = "deleteTransaction";
|
|
58
44
|
/**
|
|
59
45
|
* ポイント特典付与
|
|
60
46
|
*/
|
|
61
47
|
TaskName["GivePointAward"] = "givePointAward";
|
|
48
|
+
TaskName["ImportEventCapacitiesFromCOA"] = "importEventCapacitiesFromCOA";
|
|
49
|
+
TaskName["ImportEventsFromCOA"] = "importEventsFromCOA";
|
|
50
|
+
TaskName["ImportOffersFromCOA"] = "importOffersFromCOA";
|
|
51
|
+
TaskName["MoneyTransfer"] = "moneyTransfer";
|
|
52
|
+
TaskName["OnAuthorizationCreated"] = "onAuthorizationCreated";
|
|
62
53
|
/**
|
|
63
54
|
* メンバーシップ注文
|
|
64
55
|
*/
|
|
65
56
|
TaskName["OrderProgramMembership"] = "orderProgramMembership";
|
|
57
|
+
TaskName["Pay"] = "pay";
|
|
66
58
|
/**
|
|
67
59
|
* 注文受付
|
|
68
60
|
*/
|
|
69
61
|
TaskName["PlaceOrder"] = "placeOrder";
|
|
62
|
+
TaskName["Refund"] = "refund";
|
|
63
|
+
TaskName["RegisterService"] = "registerService";
|
|
64
|
+
/**
|
|
65
|
+
* Eメールメッセージ送信
|
|
66
|
+
*/
|
|
67
|
+
TaskName["Reserve"] = "reserve";
|
|
70
68
|
/**
|
|
71
69
|
* 注文返品
|
|
72
70
|
*/
|
|
@@ -87,10 +85,17 @@ var TaskName;
|
|
|
87
85
|
* 予約資産取引返却
|
|
88
86
|
*/
|
|
89
87
|
TaskName["ReturnReserveTransaction"] = "returnReserveTransaction";
|
|
88
|
+
TaskName["SendEmailMessage"] = "sendEmailMessage";
|
|
90
89
|
/**
|
|
91
90
|
* 注文配送
|
|
92
91
|
*/
|
|
93
92
|
TaskName["SendOrder"] = "sendOrder";
|
|
93
|
+
/**
|
|
94
|
+
* ウェブフックをたたく
|
|
95
|
+
*/
|
|
96
|
+
TaskName["TriggerWebhook"] = "triggerWebhook";
|
|
97
|
+
TaskName["UseReservation"] = "useReservation";
|
|
98
|
+
TaskName["VoidPayment"] = "voidPayment";
|
|
94
99
|
/**
|
|
95
100
|
* 通貨転送中止
|
|
96
101
|
*/
|
|
@@ -107,12 +112,4 @@ var TaskName;
|
|
|
107
112
|
* 予約中止
|
|
108
113
|
*/
|
|
109
114
|
TaskName["VoidReserveTransaction"] = "voidReserveTransaction";
|
|
110
|
-
/**
|
|
111
|
-
* 口座転送中止
|
|
112
|
-
*/
|
|
113
|
-
TaskName["CancelAccountMoneyTransfer"] = "cancelAccountMoneyTransfer";
|
|
114
|
-
/**
|
|
115
|
-
* 口座転送
|
|
116
|
-
*/
|
|
117
|
-
TaskName["AccountMoneyTransfer"] = "accountMoneyTransfer";
|
|
118
115
|
})(TaskName = exports.TaskName || (exports.TaskName = {}));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as waiter from '@waiter/factory';
|
|
2
|
-
import { IAction as IAuthorizeAction, IAttributes as IAuthorizeActionAttributes } from '../action/authorize';
|
|
3
2
|
import { IAttributes as IMoneyTransferActionAttributes } from '../action/interact/confirm/moneyTransfer';
|
|
4
3
|
import { IAmount as IMoneyTransferAmount } from '../action/transfer/moneyTransfer';
|
|
5
4
|
import * as MoneyTransferAssetTransactionFactory from '../assetTransaction/moneyTransfer';
|
|
@@ -116,10 +115,6 @@ export interface IObject {
|
|
|
116
115
|
* WAITER許可証
|
|
117
116
|
*/
|
|
118
117
|
passport?: waiter.passport.IPassport;
|
|
119
|
-
/**
|
|
120
|
-
* 承認アクションリスト
|
|
121
|
-
*/
|
|
122
|
-
authorizeActions?: IAuthorizeAction<IAuthorizeActionAttributes<any, any>>[];
|
|
123
118
|
}
|
|
124
119
|
export interface IPotentialActions {
|
|
125
120
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAttributes as IReturnOrderActionAttributes } from '../action/transfer/return/order';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { IMerchantReturnPolicy, ReturnFeesEnumeration } from '../merchantReturnPolicy';
|
|
3
|
+
import { ICustomerRemorseReturnFeesMovieTicket, IMerchantReturnPolicy, ReturnFeesEnumeration } from '../merchantReturnPolicy';
|
|
4
|
+
import { IOfferItemCondition } from '../offerItemCondition';
|
|
4
5
|
import { IProject } from '../project';
|
|
5
6
|
import * as TransactionFactory from '../transaction';
|
|
6
7
|
import { TransactionType } from '../transactionType';
|
|
@@ -127,8 +128,15 @@ export interface IReturnFeesMovieTicket {
|
|
|
127
128
|
/**
|
|
128
129
|
* 着券取消実行有無
|
|
129
130
|
*/
|
|
130
|
-
returnFees:
|
|
131
|
+
returnFees: ICustomerRemorseReturnFeesMovieTicket;
|
|
132
|
+
serviceOutput: {
|
|
133
|
+
/**
|
|
134
|
+
* 決済方法区分
|
|
135
|
+
*/
|
|
136
|
+
typeOf: string;
|
|
137
|
+
};
|
|
131
138
|
}
|
|
139
|
+
export declare type IReturnPolicyItemCondition = IOfferItemCondition;
|
|
132
140
|
/**
|
|
133
141
|
* 取引に適用される返品ポリシー
|
|
134
142
|
*/
|
|
@@ -138,6 +146,7 @@ export declare type IReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merc
|
|
|
138
146
|
* 決済カードコードごとの着券取消実行有無
|
|
139
147
|
*/
|
|
140
148
|
returnFeesMovieTicket?: IReturnFeesMovieTicket[];
|
|
149
|
+
itemCondition?: IReturnPolicyItemCondition;
|
|
141
150
|
};
|
|
142
151
|
/**
|
|
143
152
|
* 取引対象物
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
|
|
1
|
+
import { ICustomerRemorseReturnFees, ICustomerRemorseReturnFeesMovieTicket, IMerchantReturnPolicy } from '../merchantReturnPolicy';
|
|
2
2
|
import { IMultilingualString } from '../multilingualString';
|
|
3
3
|
import { IProject } from '../project';
|
|
4
4
|
import { IPropertyValue } from '../propertyValue';
|
|
5
5
|
import { SortType } from '../sortType';
|
|
6
6
|
export declare type IOfferMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'customerRemorseReturnFees' | 'customerRemorseReturnFeesMovieTicket'> & {
|
|
7
|
+
customerRemorseReturnFees: ICustomerRemorseReturnFees;
|
|
8
|
+
customerRemorseReturnFeesMovieTicket: ICustomerRemorseReturnFeesMovieTicket;
|
|
7
9
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
8
10
|
additionalProperty?: IPropertyValue<string>[];
|
|
9
11
|
id?: string;
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AssetTransactionType } from '../assetTransactionType';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { OrganizationType } from '../organizationType';
|
|
4
|
-
import * as TaskFactory from '../task';
|
|
5
|
-
import { TaskName } from '../taskName';
|
|
6
|
-
export interface IObject {
|
|
7
|
-
project: {
|
|
8
|
-
id: string;
|
|
9
|
-
typeOf: OrganizationType.Project;
|
|
10
|
-
};
|
|
11
|
-
typeOf: AssetTransactionType;
|
|
12
|
-
id: string;
|
|
13
|
-
transactionNumber: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IData {
|
|
16
|
-
object: IObject;
|
|
17
|
-
}
|
|
18
|
-
export interface IAttributes extends TaskFactory.IAttributes {
|
|
19
|
-
name: TaskName.DeleteAssetTransaction;
|
|
20
|
-
data: IData;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 資産取引削除タスク
|
|
24
|
-
*/
|
|
25
|
-
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IDeleteMemberActionAttributes } from '../action/update/delete/member';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import * as TaskFactory from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export declare type IData = IDeleteMemberActionAttributes;
|
|
6
|
-
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
|
-
name: TaskName.DeleteMember;
|
|
8
|
-
data: IData;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 会員削除タスクインターフェース
|
|
12
|
-
*/
|
|
13
|
-
export declare type ITask = IExtendId<IAttributes>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|