@chevre/factory 4.313.0-alpha.4 → 4.313.0-alpha.40
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 +4 -5
- package/lib/action/update/delete/member.d.ts +15 -5
- package/lib/action.d.ts +16 -0
- package/lib/assetTransaction/reserve.d.ts +30 -3
- package/lib/categoryCode.d.ts +1 -0
- package/lib/creativeWork/movie.d.ts +4 -0
- package/lib/event/anyEvent.d.ts +1 -0
- package/lib/event/screeningEvent.d.ts +7 -2
- package/lib/event/screeningEventSeries.d.ts +4 -2
- package/lib/index.d.ts +13 -7
- package/lib/index.js +12 -4
- package/lib/merchantReturnPolicy.d.ts +13 -3
- package/lib/offerItemCondition.d.ts +65 -0
- package/lib/place/screeningRoom.d.ts +1 -0
- package/lib/product.d.ts +8 -0
- package/lib/reservation/busReservation.d.ts +1 -2
- package/lib/reservation/event.d.ts +1 -2
- package/lib/reservation/pendingReservationPackage.d.ts +24 -0
- package/lib/reservation/pendingReservationPackage.js +14 -0
- package/lib/reservation.d.ts +6 -5
- package/lib/seller.d.ts +11 -2
- package/lib/task/onAuthorizationCreated.d.ts +24 -0
- package/lib/task/{deleteOrder.d.ts → onEventChanged.d.ts} +10 -4
- package/lib/task/onResourceUpdated.d.ts +28 -0
- package/lib/task/onResourceUpdated.js +2 -0
- package/lib/task/useReservation.d.ts +20 -0
- package/lib/task/useReservation.js +2 -0
- package/lib/taskName.d.ts +32 -34
- package/lib/taskName.js +32 -33
- 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 → onEventChanged.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,20 +2,19 @@ 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;
|
|
12
|
-
export declare type
|
|
11
|
+
export declare type IOmittedReservationProperty = 'reservationFor' | 'broker' | 'issuedThrough';
|
|
12
|
+
export declare type ISubReservation = Omit<IBusReservation, IOmittedReservationProperty> | Omit<IEventReservation, IOmittedReservationProperty>;
|
|
13
13
|
export declare type IReservationFor = IBusReservationFor | IEventReservationFor;
|
|
14
14
|
export interface IReservationPackageAsObject {
|
|
15
15
|
reservationFor: IReservationFor;
|
|
16
16
|
reservationNumber: string;
|
|
17
|
-
reservationStatus:
|
|
18
|
-
underName?: IUnderName;
|
|
17
|
+
reservationStatus: IAvailableReservationStatusType;
|
|
19
18
|
typeOf: ReservationType.ReservationPackage;
|
|
20
19
|
}
|
|
21
20
|
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
|
* 会員削除アクション
|
package/lib/action.d.ts
CHANGED
|
@@ -123,6 +123,18 @@ export interface ISearchConditions {
|
|
|
123
123
|
$eq?: string;
|
|
124
124
|
$in?: string[];
|
|
125
125
|
};
|
|
126
|
+
movieTickets?: {
|
|
127
|
+
identifier?: {
|
|
128
|
+
$eq?: string;
|
|
129
|
+
};
|
|
130
|
+
serviceOutput?: {
|
|
131
|
+
reservationFor?: {
|
|
132
|
+
id?: {
|
|
133
|
+
$eq?: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
126
138
|
object?: {
|
|
127
139
|
paymentMethodId?: {
|
|
128
140
|
$eq?: string;
|
|
@@ -136,6 +148,10 @@ export interface ISearchConditions {
|
|
|
136
148
|
$eq?: string;
|
|
137
149
|
};
|
|
138
150
|
};
|
|
151
|
+
reservationNumber?: {
|
|
152
|
+
$eq?: string;
|
|
153
|
+
$in?: string[];
|
|
154
|
+
};
|
|
139
155
|
paymentMethod?: {
|
|
140
156
|
accountId?: {
|
|
141
157
|
$eq?: string;
|
|
@@ -6,8 +6,8 @@ import { AssetTransactionType } from '../assetTransactionType';
|
|
|
6
6
|
import { IExtendId } from '../autoGenerated';
|
|
7
7
|
import { IPropertyValue } from '../propertyValue';
|
|
8
8
|
import * as ReservationFactory from '../reservation';
|
|
9
|
-
import { IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
|
|
10
|
-
import { IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
9
|
+
import { IIssuedThrough as IBusReservationIssuedThrough, IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
|
|
10
|
+
import { IIssuedThrough as IEventReservationIssuedThrough, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
11
11
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
12
12
|
import { ReservationType } from '../reservationType';
|
|
13
13
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
@@ -209,13 +209,22 @@ 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
|
+
};
|
|
216
|
+
export declare type IIssuedThrough = IBusReservationIssuedThrough | IEventReservationIssuedThrough;
|
|
212
217
|
/**
|
|
213
218
|
* 取引対象物
|
|
214
219
|
*/
|
|
215
|
-
export interface IObject extends IReservationPackage {
|
|
220
|
+
export interface IObject extends Pick<IReservationPackage, 'broker' | 'reservationStatus' | 'underName' | 'typeOf'> {
|
|
216
221
|
acceptedOffer?: IAcceptedOffer4object[];
|
|
222
|
+
issuedThrough?: IIssuedThrough;
|
|
217
223
|
reservationFor?: IReservationFor;
|
|
224
|
+
reservationNumber: string;
|
|
218
225
|
subReservation?: IObjectSubReservation[];
|
|
226
|
+
disablePendingReservations: boolean;
|
|
227
|
+
useHoldStockByTransactionNumber?: boolean;
|
|
219
228
|
}
|
|
220
229
|
export interface IPotentialActions {
|
|
221
230
|
reserve: ReserveActionFactory.IAttributes[];
|
|
@@ -227,8 +236,14 @@ export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartP
|
|
|
227
236
|
*/
|
|
228
237
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
229
238
|
export interface IObjectSearchConditions {
|
|
239
|
+
reservationFor?: {
|
|
240
|
+
id?: {
|
|
241
|
+
$eq?: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
230
244
|
reservationNumber?: {
|
|
231
245
|
$eq?: string;
|
|
246
|
+
$in?: string[];
|
|
232
247
|
};
|
|
233
248
|
reservations?: {
|
|
234
249
|
id?: {
|
|
@@ -242,6 +257,18 @@ export interface IObjectSearchConditions {
|
|
|
242
257
|
$in?: string[];
|
|
243
258
|
};
|
|
244
259
|
};
|
|
260
|
+
reservedTicket?: {
|
|
261
|
+
ticketedSeat?: {
|
|
262
|
+
seatNumber?: {
|
|
263
|
+
$eq?: string;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
underName?: {
|
|
269
|
+
id?: {
|
|
270
|
+
$eq?: string;
|
|
271
|
+
};
|
|
245
272
|
};
|
|
246
273
|
}
|
|
247
274
|
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Reserve> {
|
package/lib/categoryCode.d.ts
CHANGED
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -92,7 +92,11 @@ export interface IOffer {
|
|
|
92
92
|
unacceptedPaymentMethod?: string[];
|
|
93
93
|
seller: ISeller;
|
|
94
94
|
}
|
|
95
|
-
export declare type IOffer4COA = Pick<IOffer, 'typeOf' | 'offeredThrough' | 'priceCurrency'
|
|
95
|
+
export declare type IOffer4COA = Pick<IOffer, 'typeOf' | 'offeredThrough' | 'priceCurrency'> & {
|
|
96
|
+
itemOffered: {
|
|
97
|
+
serviceOutput: Pick<IServiceOutput, 'reservedTicket'>;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
96
100
|
export interface ICOAInfo {
|
|
97
101
|
theaterCode: string;
|
|
98
102
|
dateJouei: string;
|
|
@@ -163,7 +167,7 @@ export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
|
|
|
163
167
|
};
|
|
164
168
|
export declare type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
|
|
165
169
|
export import ILocation = AnyEventFactory.ILocation;
|
|
166
|
-
export declare type ISuperEvent =
|
|
170
|
+
export declare type ISuperEvent = Pick<ScreeningEventSeriesFactory.IEvent, 'typeOf' | 'id' | 'videoFormat' | 'soundFormat' | 'workPerformed' | 'location' | 'kanaName' | 'name' | 'additionalProperty' | 'startDate' | 'endDate' | 'description' | 'headline' | 'dubLanguage' | 'subtitleLanguage' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'>;
|
|
167
171
|
export import IName = AnyEventFactory.IName;
|
|
168
172
|
/**
|
|
169
173
|
* イベント属性
|
|
@@ -297,6 +301,7 @@ export interface ISearchConditions extends EventFactory.ISearchConditions<EventT
|
|
|
297
301
|
*/
|
|
298
302
|
branchCode?: {
|
|
299
303
|
$eq?: string;
|
|
304
|
+
$in?: string[];
|
|
300
305
|
};
|
|
301
306
|
};
|
|
302
307
|
/**
|
|
@@ -8,14 +8,15 @@ import { OfferType } from '../offerType';
|
|
|
8
8
|
import { OrganizationType } from '../organizationType';
|
|
9
9
|
import { PlaceType } from '../placeType';
|
|
10
10
|
import { PriceCurrency } from '../priceCurrency';
|
|
11
|
-
import { IProject } from '../project';
|
|
12
11
|
/**
|
|
13
12
|
* 施設コンテンツに対するオファー
|
|
14
13
|
*/
|
|
15
14
|
export interface IOffer {
|
|
16
|
-
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
17
15
|
typeOf: OfferType.Offer;
|
|
18
16
|
priceCurrency: PriceCurrency.JPY;
|
|
17
|
+
/**
|
|
18
|
+
* 利用不可決済方法区分
|
|
19
|
+
*/
|
|
19
20
|
unacceptedPaymentMethod?: string[];
|
|
20
21
|
}
|
|
21
22
|
export interface IVideoFormat {
|
|
@@ -175,6 +176,7 @@ export interface ISearchConditions extends EventFactory.ISearchConditions<EventT
|
|
|
175
176
|
location?: {
|
|
176
177
|
branchCode?: {
|
|
177
178
|
$eq?: string;
|
|
179
|
+
$in?: string[];
|
|
178
180
|
};
|
|
179
181
|
/**
|
|
180
182
|
* 施設コードリスト
|
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,15 @@ 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';
|
|
143
|
+
import * as OnEventChangedTaskFactory from './task/onEventChanged';
|
|
144
|
+
import * as OnResourceUpdatedTaskFactory from './task/onResourceUpdated';
|
|
144
145
|
import * as OrderProgramMembershipTaskFactory from './task/orderProgramMembership';
|
|
145
146
|
import * as PayTaskFactory from './task/pay';
|
|
146
147
|
import * as PlaceOrderTaskFactory from './task/placeOrder';
|
|
@@ -155,6 +156,7 @@ import * as ReturnReserveTransactionTaskFactory from './task/returnReserveTransa
|
|
|
155
156
|
import * as SendEmailMessageTaskFactory from './task/sendEmailMessage';
|
|
156
157
|
import * as SendOrderTaskFactory from './task/sendOrder';
|
|
157
158
|
import * as TriggerWebhookTaskFactory from './task/triggerWebhook';
|
|
159
|
+
import * as UseReservationTaskFactory from './task/useReservation';
|
|
158
160
|
import * as VoidMoneyTransferTransactionTaskFactory from './task/voidMoneyTransferTransaction';
|
|
159
161
|
import * as VoidPaymentTaskFactory from './task/voidPayment';
|
|
160
162
|
import * as VoidPayTransactionTaskFactory from './task/voidPayTransaction';
|
|
@@ -322,6 +324,7 @@ export import monetaryAmount = MonetaryAmountFactory;
|
|
|
322
324
|
export declare type multilingualString = IMultilingualString;
|
|
323
325
|
export import offer = OfferFactory;
|
|
324
326
|
export import offerCatalog = OfferCatalogFactory;
|
|
327
|
+
export import offerItemCondition = OfferItemConditionFactory;
|
|
325
328
|
export import offerType = OfferType;
|
|
326
329
|
export import order = OrderFactory;
|
|
327
330
|
export import orderStatus = OrderStatus;
|
|
@@ -401,9 +404,9 @@ export import reservationStatusType = ReservationStatusType;
|
|
|
401
404
|
export import reservationType = ReservationType;
|
|
402
405
|
export import seller = SellerFactory;
|
|
403
406
|
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.
|
|
407
|
+
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.OnEventChanged ? OnEventChangedTaskFactory.IData : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.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;
|
|
408
|
+
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.OnEventChanged ? OnEventChangedTaskFactory.IAttributes : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.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;
|
|
409
|
+
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.OnEventChanged ? OnEventChangedTaskFactory.ITask : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.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
410
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
408
411
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
409
412
|
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
@@ -411,7 +414,6 @@ export declare namespace task {
|
|
|
411
414
|
export import cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
|
|
412
415
|
export import cancelPendingReservation = CancelPendingReservationTaskFactory;
|
|
413
416
|
export import cancelReservation = CancelReservationTaskFactory;
|
|
414
|
-
export import deleteAssetTransaction = DeleteAssetTransactionTaskFactory;
|
|
415
417
|
export import deleteTransaction = DeleteTransactionTaskFactory;
|
|
416
418
|
export import importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
417
419
|
export import importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
|
@@ -423,7 +425,11 @@ export declare namespace task {
|
|
|
423
425
|
export import reserve = ReserveTaskFactory;
|
|
424
426
|
export import sendEmailMessage = SendEmailMessageTaskFactory;
|
|
425
427
|
export import triggerWebhook = TriggerWebhookTaskFactory;
|
|
428
|
+
export import useReservation = UseReservationTaskFactory;
|
|
426
429
|
export import voidPayment = VoidPaymentTaskFactory;
|
|
430
|
+
export import onAuthorizationCreated = OnAuthorizationCreatedTaskFactory;
|
|
431
|
+
export import onEventChanged = OnEventChangedTaskFactory;
|
|
432
|
+
export import onResourceUpdated = OnResourceUpdatedTaskFactory;
|
|
427
433
|
export import orderProgramMembership = OrderProgramMembershipTaskFactory;
|
|
428
434
|
export import accountMoneyTransfer = AccountMoneyTransferTaskFactory;
|
|
429
435
|
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,14 @@ 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
|
-
var DeleteAssetTransactionTaskFactory = require("./task/deleteAssetTransaction");
|
|
120
120
|
var DeleteTransactionTaskFactory = require("./task/deleteTransaction");
|
|
121
121
|
var ImportEventCapacitiesFromCOATaskFactory = require("./task/importEventCapacitiesFromCOA");
|
|
122
122
|
var ImportEventsFromCOATaskFactory = require("./task/importEventsFromCOA");
|
|
123
123
|
var ImportOffersFromCOATaskFactory = require("./task/importOffersFromCOA");
|
|
124
124
|
var MoneyTransferTaskFactory = require("./task/moneyTransfer");
|
|
125
|
+
var OnAuthorizationCreatedTaskFactory = require("./task/onAuthorizationCreated");
|
|
126
|
+
var OnEventChangedTaskFactory = require("./task/onEventChanged");
|
|
127
|
+
var OnResourceUpdatedTaskFactory = require("./task/onResourceUpdated");
|
|
125
128
|
var OrderProgramMembershipTaskFactory = require("./task/orderProgramMembership");
|
|
126
129
|
var PayTaskFactory = require("./task/pay");
|
|
127
130
|
var RefundTaskFactory = require("./task/refund");
|
|
@@ -129,6 +132,7 @@ var RegisterServiceTaskFactory = require("./task/registerService");
|
|
|
129
132
|
var ReserveTaskFactory = require("./task/reserve");
|
|
130
133
|
var SendEmailMessageTaskFactory = require("./task/sendEmailMessage");
|
|
131
134
|
var TriggerWebhookTaskFactory = require("./task/triggerWebhook");
|
|
135
|
+
var UseReservationTaskFactory = require("./task/useReservation");
|
|
132
136
|
var VoidPaymentTaskFactory = require("./task/voidPayment");
|
|
133
137
|
var taskName_1 = require("./taskName");
|
|
134
138
|
var taskStatus_1 = require("./taskStatus");
|
|
@@ -302,6 +306,7 @@ exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
|
|
|
302
306
|
exports.monetaryAmount = MonetaryAmountFactory;
|
|
303
307
|
exports.offer = OfferFactory;
|
|
304
308
|
exports.offerCatalog = OfferCatalogFactory;
|
|
309
|
+
exports.offerItemCondition = OfferItemConditionFactory;
|
|
305
310
|
exports.offerType = offerType_1.OfferType;
|
|
306
311
|
exports.order = OrderFactory;
|
|
307
312
|
exports.orderStatus = orderStatus_1.OrderStatus;
|
|
@@ -364,7 +369,6 @@ var task;
|
|
|
364
369
|
task.cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
|
|
365
370
|
task.cancelPendingReservation = CancelPendingReservationTaskFactory;
|
|
366
371
|
task.cancelReservation = CancelReservationTaskFactory;
|
|
367
|
-
task.deleteAssetTransaction = DeleteAssetTransactionTaskFactory;
|
|
368
372
|
task.deleteTransaction = DeleteTransactionTaskFactory;
|
|
369
373
|
task.importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
370
374
|
task.importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
|
@@ -376,7 +380,11 @@ var task;
|
|
|
376
380
|
task.reserve = ReserveTaskFactory;
|
|
377
381
|
task.sendEmailMessage = SendEmailMessageTaskFactory;
|
|
378
382
|
task.triggerWebhook = TriggerWebhookTaskFactory;
|
|
383
|
+
task.useReservation = UseReservationTaskFactory;
|
|
379
384
|
task.voidPayment = VoidPaymentTaskFactory;
|
|
385
|
+
task.onAuthorizationCreated = OnAuthorizationCreatedTaskFactory;
|
|
386
|
+
task.onEventChanged = OnEventChangedTaskFactory;
|
|
387
|
+
task.onResourceUpdated = OnResourceUpdatedTaskFactory;
|
|
380
388
|
task.orderProgramMembership = OrderProgramMembershipTaskFactory;
|
|
381
389
|
task.accountMoneyTransfer = AccountMoneyTransferTaskFactory;
|
|
382
390
|
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
|
+
}
|
package/lib/product.d.ts
CHANGED
|
@@ -131,6 +131,14 @@ export interface ISearchConditions {
|
|
|
131
131
|
$in?: string[];
|
|
132
132
|
$regex?: string;
|
|
133
133
|
};
|
|
134
|
+
provider?: {
|
|
135
|
+
id?: {
|
|
136
|
+
/**
|
|
137
|
+
* プロバイダーに指定IDの販売者が含まれる
|
|
138
|
+
*/
|
|
139
|
+
$eq?: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
134
142
|
typeOf?: {
|
|
135
143
|
$eq?: string;
|
|
136
144
|
$in?: string[];
|
|
@@ -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;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventType } from '../eventType';
|
|
2
|
+
import { ISeat } from '../reservation';
|
|
3
|
+
import { ReservationType } from '../reservationType';
|
|
4
|
+
export interface ISubReservation {
|
|
5
|
+
typeOf: ReservationType.BusReservation | ReservationType.EventReservation;
|
|
6
|
+
id: string;
|
|
7
|
+
reservedTicket?: {
|
|
8
|
+
ticketedSeat?: Pick<ISeat, 'seatNumber' | 'seatSection'>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface IReservationPackage {
|
|
12
|
+
typeOf: ReservationType.ReservationPackage;
|
|
13
|
+
reservationNumber: string;
|
|
14
|
+
subReservation: ISubReservation[];
|
|
15
|
+
}
|
|
16
|
+
export interface IAggregateReservation {
|
|
17
|
+
typeOf: 'AggregateReservation';
|
|
18
|
+
reservationCount: number;
|
|
19
|
+
reservationFor: {
|
|
20
|
+
id: string;
|
|
21
|
+
typeOf: EventType.Event | EventType.ScreeningEvent;
|
|
22
|
+
};
|
|
23
|
+
reservations: IReservationPackage[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// public async lockIfNotLimitExceeded
|
|
4
|
+
// reservationCount<=nであれば$push+$incする
|
|
5
|
+
// public async lock
|
|
6
|
+
// [reservationFor.id+seatNumber+seatSection][reservationNumber][subReservation.id]にunique indexを作成した上で$push+$incする
|
|
7
|
+
// public async unlock
|
|
8
|
+
// [id]あるいは[seatNumber+seatSection]でreservations.subReservationsから$pull+$incする
|
|
9
|
+
// public async countUnavailableOffers
|
|
10
|
+
// reservationCountを返す
|
|
11
|
+
// public async getHolder
|
|
12
|
+
// [id]あるいは[seatNumber+seatSection]でreservationNumberを返す
|
|
13
|
+
// public async searchHolders
|
|
14
|
+
// [id]あるいは[seatNumber+seatSection]のリストでreservationNumberのリストを返す
|
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
|
*/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import * as TaskFactory from '../task';
|
|
3
|
+
import { TaskName } from '../taskName';
|
|
4
|
+
export interface IData {
|
|
5
|
+
/**
|
|
6
|
+
* 承認コード
|
|
7
|
+
*/
|
|
8
|
+
code: string;
|
|
9
|
+
project: {
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 発券前に予約アクションを実行するかどうか
|
|
14
|
+
*/
|
|
15
|
+
reserveIfNotYet: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
18
|
+
name: TaskName.OnAuthorizationCreated;
|
|
19
|
+
data: IData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 承認作成時タスク
|
|
23
|
+
*/
|
|
24
|
+
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { IExtendId } from '../autoGenerated';
|
|
2
|
-
import {
|
|
2
|
+
import { EventType } from '../eventType';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
5
|
export interface IData {
|
|
6
|
-
|
|
6
|
+
id: string[];
|
|
7
|
+
project: {
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
typeOf: EventType;
|
|
11
|
+
isNew: boolean;
|
|
12
|
+
useInform: boolean;
|
|
7
13
|
}
|
|
8
14
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
9
|
-
name: TaskName.
|
|
15
|
+
name: TaskName.OnEventChanged;
|
|
10
16
|
data: IData;
|
|
11
17
|
}
|
|
12
18
|
/**
|
|
13
|
-
*
|
|
19
|
+
* イベント変更時タスク
|
|
14
20
|
*/
|
|
15
21
|
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IAccountTitle } from '../accountTitle';
|
|
2
|
+
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { ICategoryCode } from '../categoryCode';
|
|
4
|
+
import { CreativeWorkType } from '../creativeWorkType';
|
|
5
|
+
import { PlaceType } from '../placeType';
|
|
6
|
+
import { ProductType } from '../product';
|
|
7
|
+
import * as TaskFactory from '../task';
|
|
8
|
+
import { TaskName } from '../taskName';
|
|
9
|
+
export declare type AccountTitleType = IAccountTitle['typeOf'];
|
|
10
|
+
export declare type CategoryCodeType = ICategoryCode['typeOf'];
|
|
11
|
+
export declare type IResourceTypeOf = AccountTitleType | CategoryCodeType | CreativeWorkType | PlaceType.MovieTheater | ProductType;
|
|
12
|
+
export interface IData {
|
|
13
|
+
id: string[];
|
|
14
|
+
project: {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
typeOf: IResourceTypeOf;
|
|
18
|
+
isNew: boolean;
|
|
19
|
+
useInform: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
22
|
+
name: TaskName.OnResourceUpdated;
|
|
23
|
+
data: IData;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* リソース変更時タスク
|
|
27
|
+
*/
|
|
28
|
+
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* 発券前に予約アクションを実行するかどうか
|
|
10
|
+
*/
|
|
11
|
+
reserveIfNotYet: boolean;
|
|
12
|
+
};
|
|
13
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
14
|
+
name: TaskName.UseReservation;
|
|
15
|
+
data: IData;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 予約使用タスク
|
|
19
|
+
*/
|
|
20
|
+
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,33 @@ 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",
|
|
48
|
+
OnEventChanged = "onEventChanged",
|
|
49
|
+
OnResourceUpdated = "onResourceUpdated",
|
|
58
50
|
/**
|
|
59
51
|
* メンバーシップ注文
|
|
60
52
|
*/
|
|
61
53
|
OrderProgramMembership = "orderProgramMembership",
|
|
54
|
+
Pay = "pay",
|
|
62
55
|
/**
|
|
63
56
|
* 注文受付
|
|
64
57
|
*/
|
|
65
58
|
PlaceOrder = "placeOrder",
|
|
59
|
+
Refund = "refund",
|
|
60
|
+
RegisterService = "registerService",
|
|
61
|
+
/**
|
|
62
|
+
* Eメールメッセージ送信
|
|
63
|
+
*/
|
|
64
|
+
Reserve = "reserve",
|
|
66
65
|
/**
|
|
67
66
|
* 注文返品
|
|
68
67
|
*/
|
|
@@ -83,10 +82,17 @@ export declare enum TaskName {
|
|
|
83
82
|
* 予約資産取引返却
|
|
84
83
|
*/
|
|
85
84
|
ReturnReserveTransaction = "returnReserveTransaction",
|
|
85
|
+
SendEmailMessage = "sendEmailMessage",
|
|
86
86
|
/**
|
|
87
87
|
* 注文配送
|
|
88
88
|
*/
|
|
89
89
|
SendOrder = "sendOrder",
|
|
90
|
+
/**
|
|
91
|
+
* ウェブフックをたたく
|
|
92
|
+
*/
|
|
93
|
+
TriggerWebhook = "triggerWebhook",
|
|
94
|
+
UseReservation = "useReservation",
|
|
95
|
+
VoidPayment = "voidPayment",
|
|
90
96
|
/**
|
|
91
97
|
* 通貨転送中止
|
|
92
98
|
*/
|
|
@@ -102,13 +108,5 @@ export declare enum TaskName {
|
|
|
102
108
|
/**
|
|
103
109
|
* 予約中止
|
|
104
110
|
*/
|
|
105
|
-
VoidReserveTransaction = "voidReserveTransaction"
|
|
106
|
-
/**
|
|
107
|
-
* 口座転送中止
|
|
108
|
-
*/
|
|
109
|
-
CancelAccountMoneyTransfer = "cancelAccountMoneyTransfer",
|
|
110
|
-
/**
|
|
111
|
-
* 口座転送
|
|
112
|
-
*/
|
|
113
|
-
AccountMoneyTransfer = "accountMoneyTransfer"
|
|
111
|
+
VoidReserveTransaction = "voidReserveTransaction"
|
|
114
112
|
}
|
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,34 @@ 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";
|
|
53
|
+
TaskName["OnEventChanged"] = "onEventChanged";
|
|
54
|
+
TaskName["OnResourceUpdated"] = "onResourceUpdated";
|
|
62
55
|
/**
|
|
63
56
|
* メンバーシップ注文
|
|
64
57
|
*/
|
|
65
58
|
TaskName["OrderProgramMembership"] = "orderProgramMembership";
|
|
59
|
+
TaskName["Pay"] = "pay";
|
|
66
60
|
/**
|
|
67
61
|
* 注文受付
|
|
68
62
|
*/
|
|
69
63
|
TaskName["PlaceOrder"] = "placeOrder";
|
|
64
|
+
TaskName["Refund"] = "refund";
|
|
65
|
+
TaskName["RegisterService"] = "registerService";
|
|
66
|
+
/**
|
|
67
|
+
* Eメールメッセージ送信
|
|
68
|
+
*/
|
|
69
|
+
TaskName["Reserve"] = "reserve";
|
|
70
70
|
/**
|
|
71
71
|
* 注文返品
|
|
72
72
|
*/
|
|
@@ -87,10 +87,17 @@ var TaskName;
|
|
|
87
87
|
* 予約資産取引返却
|
|
88
88
|
*/
|
|
89
89
|
TaskName["ReturnReserveTransaction"] = "returnReserveTransaction";
|
|
90
|
+
TaskName["SendEmailMessage"] = "sendEmailMessage";
|
|
90
91
|
/**
|
|
91
92
|
* 注文配送
|
|
92
93
|
*/
|
|
93
94
|
TaskName["SendOrder"] = "sendOrder";
|
|
95
|
+
/**
|
|
96
|
+
* ウェブフックをたたく
|
|
97
|
+
*/
|
|
98
|
+
TaskName["TriggerWebhook"] = "triggerWebhook";
|
|
99
|
+
TaskName["UseReservation"] = "useReservation";
|
|
100
|
+
TaskName["VoidPayment"] = "voidPayment";
|
|
94
101
|
/**
|
|
95
102
|
* 通貨転送中止
|
|
96
103
|
*/
|
|
@@ -107,12 +114,4 @@ var TaskName;
|
|
|
107
114
|
* 予約中止
|
|
108
115
|
*/
|
|
109
116
|
TaskName["VoidReserveTransaction"] = "voidReserveTransaction";
|
|
110
|
-
/**
|
|
111
|
-
* 口座転送中止
|
|
112
|
-
*/
|
|
113
|
-
TaskName["CancelAccountMoneyTransfer"] = "cancelAccountMoneyTransfer";
|
|
114
|
-
/**
|
|
115
|
-
* 口座転送
|
|
116
|
-
*/
|
|
117
|
-
TaskName["AccountMoneyTransfer"] = "accountMoneyTransfer";
|
|
118
117
|
})(TaskName = exports.TaskName || (exports.TaskName = {}));
|
|
@@ -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
|