@chevre/factory 4.313.0-alpha.3 → 4.313.0-alpha.31
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/refund.d.ts +1 -0
- package/lib/assetTransaction/reserve.d.ts +30 -3
- package/lib/event/screeningEvent.d.ts +1 -1
- package/lib/event/screeningEventSeries.d.ts +3 -2
- package/lib/index.d.ts +11 -7
- package/lib/index.js +10 -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/{deleteOrder.d.ts → onAuthorizationCreated.d.ts} +13 -4
- package/lib/task/{deleteAssetTransaction.d.ts → onEventChanged.d.ts} +14 -10
- package/lib/task/useReservation.d.ts +20 -0
- package/lib/task/useReservation.js +2 -0
- package/lib/taskName.d.ts +31 -34
- package/lib/taskName.js +31 -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/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> {
|
|
@@ -163,7 +163,7 @@ export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
|
|
|
163
163
|
};
|
|
164
164
|
export declare type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
|
|
165
165
|
export import ILocation = AnyEventFactory.ILocation;
|
|
166
|
-
export declare type ISuperEvent =
|
|
166
|
+
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
167
|
export import IName = AnyEventFactory.IName;
|
|
168
168
|
/**
|
|
169
169
|
* イベント属性
|
|
@@ -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 {
|
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,14 @@ 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
144
|
import * as OrderProgramMembershipTaskFactory from './task/orderProgramMembership';
|
|
145
145
|
import * as PayTaskFactory from './task/pay';
|
|
146
146
|
import * as PlaceOrderTaskFactory from './task/placeOrder';
|
|
@@ -155,6 +155,7 @@ import * as ReturnReserveTransactionTaskFactory from './task/returnReserveTransa
|
|
|
155
155
|
import * as SendEmailMessageTaskFactory from './task/sendEmailMessage';
|
|
156
156
|
import * as SendOrderTaskFactory from './task/sendOrder';
|
|
157
157
|
import * as TriggerWebhookTaskFactory from './task/triggerWebhook';
|
|
158
|
+
import * as UseReservationTaskFactory from './task/useReservation';
|
|
158
159
|
import * as VoidMoneyTransferTransactionTaskFactory from './task/voidMoneyTransferTransaction';
|
|
159
160
|
import * as VoidPaymentTaskFactory from './task/voidPayment';
|
|
160
161
|
import * as VoidPayTransactionTaskFactory from './task/voidPayTransaction';
|
|
@@ -322,6 +323,7 @@ export import monetaryAmount = MonetaryAmountFactory;
|
|
|
322
323
|
export declare type multilingualString = IMultilingualString;
|
|
323
324
|
export import offer = OfferFactory;
|
|
324
325
|
export import offerCatalog = OfferCatalogFactory;
|
|
326
|
+
export import offerItemCondition = OfferItemConditionFactory;
|
|
325
327
|
export import offerType = OfferType;
|
|
326
328
|
export import order = OrderFactory;
|
|
327
329
|
export import orderStatus = OrderStatus;
|
|
@@ -401,9 +403,9 @@ export import reservationStatusType = ReservationStatusType;
|
|
|
401
403
|
export import reservationType = ReservationType;
|
|
402
404
|
export import seller = SellerFactory;
|
|
403
405
|
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.
|
|
406
|
+
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.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;
|
|
407
|
+
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.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;
|
|
408
|
+
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.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
409
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
408
410
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
409
411
|
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
@@ -411,7 +413,6 @@ export declare namespace task {
|
|
|
411
413
|
export import cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
|
|
412
414
|
export import cancelPendingReservation = CancelPendingReservationTaskFactory;
|
|
413
415
|
export import cancelReservation = CancelReservationTaskFactory;
|
|
414
|
-
export import deleteAssetTransaction = DeleteAssetTransactionTaskFactory;
|
|
415
416
|
export import deleteTransaction = DeleteTransactionTaskFactory;
|
|
416
417
|
export import importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
417
418
|
export import importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
|
@@ -423,7 +424,10 @@ export declare namespace task {
|
|
|
423
424
|
export import reserve = ReserveTaskFactory;
|
|
424
425
|
export import sendEmailMessage = SendEmailMessageTaskFactory;
|
|
425
426
|
export import triggerWebhook = TriggerWebhookTaskFactory;
|
|
427
|
+
export import useReservation = UseReservationTaskFactory;
|
|
426
428
|
export import voidPayment = VoidPaymentTaskFactory;
|
|
429
|
+
export import onAuthorizationCreated = OnAuthorizationCreatedTaskFactory;
|
|
430
|
+
export import onEventChanged = OnEventChangedTaskFactory;
|
|
427
431
|
export import orderProgramMembership = OrderProgramMembershipTaskFactory;
|
|
428
432
|
export import accountMoneyTransfer = AccountMoneyTransferTaskFactory;
|
|
429
433
|
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
|
-
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");
|
|
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,10 @@ 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;
|
|
385
|
+
task.onEventChanged = OnEventChangedTaskFactory;
|
|
380
386
|
task.orderProgramMembership = OrderProgramMembershipTaskFactory;
|
|
381
387
|
task.accountMoneyTransfer = AccountMoneyTransferTaskFactory;
|
|
382
388
|
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,15 +1,24 @@
|
|
|
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
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 発券前に予約アクションを実行するかどうか
|
|
14
|
+
*/
|
|
15
|
+
reserveIfNotYet: boolean;
|
|
7
16
|
}
|
|
8
17
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
9
|
-
name: TaskName.
|
|
18
|
+
name: TaskName.OnAuthorizationCreated;
|
|
10
19
|
data: IData;
|
|
11
20
|
}
|
|
12
21
|
/**
|
|
13
|
-
*
|
|
22
|
+
* 承認作成時タスク
|
|
14
23
|
*/
|
|
15
24
|
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
import { AssetTransactionType } from '../assetTransactionType';
|
|
2
1
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import {
|
|
2
|
+
import { EventType } from '../eventType';
|
|
4
3
|
import * as TaskFactory from '../task';
|
|
5
4
|
import { TaskName } from '../taskName';
|
|
6
|
-
export interface
|
|
5
|
+
export interface IChangedEvent {
|
|
6
|
+
id: string;
|
|
7
|
+
typeOf: EventType;
|
|
7
8
|
project: {
|
|
8
9
|
id: string;
|
|
9
|
-
typeOf: OrganizationType.Project;
|
|
10
10
|
};
|
|
11
|
-
typeOf: AssetTransactionType;
|
|
12
|
-
id: string;
|
|
13
|
-
transactionNumber: string;
|
|
14
11
|
}
|
|
15
12
|
export interface IData {
|
|
16
|
-
|
|
13
|
+
event: IChangedEvent[];
|
|
14
|
+
id: string[];
|
|
15
|
+
project: {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
typeOf: EventType;
|
|
19
|
+
isNew: boolean;
|
|
20
|
+
useInform: boolean;
|
|
17
21
|
}
|
|
18
22
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
19
|
-
name: TaskName.
|
|
23
|
+
name: TaskName.OnEventChanged;
|
|
20
24
|
data: IData;
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
27
|
+
* イベント変更時タスク
|
|
24
28
|
*/
|
|
25
29
|
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,32 @@ 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",
|
|
58
49
|
/**
|
|
59
50
|
* メンバーシップ注文
|
|
60
51
|
*/
|
|
61
52
|
OrderProgramMembership = "orderProgramMembership",
|
|
53
|
+
Pay = "pay",
|
|
62
54
|
/**
|
|
63
55
|
* 注文受付
|
|
64
56
|
*/
|
|
65
57
|
PlaceOrder = "placeOrder",
|
|
58
|
+
Refund = "refund",
|
|
59
|
+
RegisterService = "registerService",
|
|
60
|
+
/**
|
|
61
|
+
* Eメールメッセージ送信
|
|
62
|
+
*/
|
|
63
|
+
Reserve = "reserve",
|
|
66
64
|
/**
|
|
67
65
|
* 注文返品
|
|
68
66
|
*/
|
|
@@ -83,10 +81,17 @@ export declare enum TaskName {
|
|
|
83
81
|
* 予約資産取引返却
|
|
84
82
|
*/
|
|
85
83
|
ReturnReserveTransaction = "returnReserveTransaction",
|
|
84
|
+
SendEmailMessage = "sendEmailMessage",
|
|
86
85
|
/**
|
|
87
86
|
* 注文配送
|
|
88
87
|
*/
|
|
89
88
|
SendOrder = "sendOrder",
|
|
89
|
+
/**
|
|
90
|
+
* ウェブフックをたたく
|
|
91
|
+
*/
|
|
92
|
+
TriggerWebhook = "triggerWebhook",
|
|
93
|
+
UseReservation = "useReservation",
|
|
94
|
+
VoidPayment = "voidPayment",
|
|
90
95
|
/**
|
|
91
96
|
* 通貨転送中止
|
|
92
97
|
*/
|
|
@@ -102,13 +107,5 @@ export declare enum TaskName {
|
|
|
102
107
|
/**
|
|
103
108
|
* 予約中止
|
|
104
109
|
*/
|
|
105
|
-
VoidReserveTransaction = "voidReserveTransaction"
|
|
106
|
-
/**
|
|
107
|
-
* 口座転送中止
|
|
108
|
-
*/
|
|
109
|
-
CancelAccountMoneyTransfer = "cancelAccountMoneyTransfer",
|
|
110
|
-
/**
|
|
111
|
-
* 口座転送
|
|
112
|
-
*/
|
|
113
|
-
AccountMoneyTransfer = "accountMoneyTransfer"
|
|
110
|
+
VoidReserveTransaction = "voidReserveTransaction"
|
|
114
111
|
}
|
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,33 @@ 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";
|
|
62
54
|
/**
|
|
63
55
|
* メンバーシップ注文
|
|
64
56
|
*/
|
|
65
57
|
TaskName["OrderProgramMembership"] = "orderProgramMembership";
|
|
58
|
+
TaskName["Pay"] = "pay";
|
|
66
59
|
/**
|
|
67
60
|
* 注文受付
|
|
68
61
|
*/
|
|
69
62
|
TaskName["PlaceOrder"] = "placeOrder";
|
|
63
|
+
TaskName["Refund"] = "refund";
|
|
64
|
+
TaskName["RegisterService"] = "registerService";
|
|
65
|
+
/**
|
|
66
|
+
* Eメールメッセージ送信
|
|
67
|
+
*/
|
|
68
|
+
TaskName["Reserve"] = "reserve";
|
|
70
69
|
/**
|
|
71
70
|
* 注文返品
|
|
72
71
|
*/
|
|
@@ -87,10 +86,17 @@ var TaskName;
|
|
|
87
86
|
* 予約資産取引返却
|
|
88
87
|
*/
|
|
89
88
|
TaskName["ReturnReserveTransaction"] = "returnReserveTransaction";
|
|
89
|
+
TaskName["SendEmailMessage"] = "sendEmailMessage";
|
|
90
90
|
/**
|
|
91
91
|
* 注文配送
|
|
92
92
|
*/
|
|
93
93
|
TaskName["SendOrder"] = "sendOrder";
|
|
94
|
+
/**
|
|
95
|
+
* ウェブフックをたたく
|
|
96
|
+
*/
|
|
97
|
+
TaskName["TriggerWebhook"] = "triggerWebhook";
|
|
98
|
+
TaskName["UseReservation"] = "useReservation";
|
|
99
|
+
TaskName["VoidPayment"] = "voidPayment";
|
|
94
100
|
/**
|
|
95
101
|
* 通貨転送中止
|
|
96
102
|
*/
|
|
@@ -107,12 +113,4 @@ var TaskName;
|
|
|
107
113
|
* 予約中止
|
|
108
114
|
*/
|
|
109
115
|
TaskName["VoidReserveTransaction"] = "voidReserveTransaction";
|
|
110
|
-
/**
|
|
111
|
-
* 口座転送中止
|
|
112
|
-
*/
|
|
113
|
-
TaskName["CancelAccountMoneyTransfer"] = "cancelAccountMoneyTransfer";
|
|
114
|
-
/**
|
|
115
|
-
* 口座転送
|
|
116
|
-
*/
|
|
117
|
-
TaskName["AccountMoneyTransfer"] = "accountMoneyTransfer";
|
|
118
116
|
})(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,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
|