@chevre/factory 5.4.0-alpha.32 → 5.4.0-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/action/authorize/offer/moneyTransfer.d.ts +29 -5
- package/lib/action/cancel/reservation.d.ts +2 -19
- package/lib/action/reserve.d.ts +1 -2
- package/lib/assetTransaction/cancelReservation.d.ts +2 -6
- package/lib/assetTransaction/reserve.d.ts +4 -33
- package/lib/index.d.ts +17 -22
- package/lib/index.js +0 -5
- package/lib/notification/reservation.d.ts +1 -1
- package/lib/order.d.ts +3 -49
- package/lib/ownershipInfo.d.ts +1 -19
- package/lib/reservation/pendingReservationPackage.d.ts +1 -1
- package/lib/reservationType.d.ts +0 -1
- package/lib/reservationType.js +1 -1
- package/lib/reservedCodeValues.js +1 -1
- package/lib/taskName.d.ts +0 -4
- package/lib/taskName.js +0 -4
- package/package.json +2 -2
- package/lib/action/transfer/return/moneyTransfer.d.ts +0 -21
- package/lib/action/transfer/return/moneyTransfer.js +0 -2
- package/lib/reservation/busReservation.d.ts +0 -55
- package/lib/reservation/busReservation.js +0 -2
- package/lib/task/returnMoneyTransfer.d.ts +0 -13
- package/lib/task/returnMoneyTransfer.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
|
+
import { IAmount as IMoneyTransferAmount, IPaymentCard as IPaymentCardAsMoneyTransferToLocation } from '../../../action/transfer/moneyTransfer';
|
|
2
3
|
import { ActionType } from '../../../actionType';
|
|
3
4
|
import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer';
|
|
4
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
6
|
import { IOffer } from '../../../offer';
|
|
6
|
-
import * as OrderFactory from '../../../order';
|
|
7
7
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
8
8
|
import { TransactionType } from '../../../transactionType';
|
|
9
9
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
@@ -11,22 +11,46 @@ export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.
|
|
|
11
11
|
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
12
12
|
export type IRequestBody = MoneyTransferTransactionFactory.IStartParamsWithoutDetail;
|
|
13
13
|
export type IResponseBody = MoneyTransferTransactionFactory.ITransaction;
|
|
14
|
-
export
|
|
15
|
-
export
|
|
14
|
+
export type IMoneyTransferToLocation = Pick<IPaymentCardAsMoneyTransferToLocation, 'typeOf' | 'identifier' | 'issuedThrough'>;
|
|
15
|
+
export interface IPendingTransaction {
|
|
16
|
+
typeOf: AssetTransactionType.MoneyTransfer;
|
|
17
|
+
/**
|
|
18
|
+
* 資産取引番号
|
|
19
|
+
*/
|
|
20
|
+
transactionNumber: string;
|
|
21
|
+
}
|
|
16
22
|
export interface IResult {
|
|
17
23
|
price: number;
|
|
18
24
|
priceCurrency: PriceCurrency;
|
|
19
25
|
requestBody?: IRequestBody;
|
|
20
26
|
responseBody: IResponseBody;
|
|
21
27
|
}
|
|
22
|
-
export
|
|
28
|
+
export interface IItemOffered {
|
|
29
|
+
typeOf: ActionType.MoneyTransfer;
|
|
30
|
+
/**
|
|
31
|
+
* 金額
|
|
32
|
+
*/
|
|
33
|
+
amount: IMoneyTransferAmount;
|
|
34
|
+
description?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 転送先
|
|
37
|
+
*/
|
|
38
|
+
toLocation: IMoneyTransferToLocation;
|
|
39
|
+
object: {
|
|
40
|
+
/**
|
|
41
|
+
* 入金処理の資産取引
|
|
42
|
+
*/
|
|
43
|
+
pendingTransaction: IPendingTransaction;
|
|
44
|
+
};
|
|
45
|
+
name?: string;
|
|
46
|
+
}
|
|
23
47
|
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
|
|
24
48
|
itemOffered: IItemOffered;
|
|
25
49
|
seller: ActionFactory.IParticipantAsSeller;
|
|
26
50
|
}
|
|
27
51
|
export type IObject = IAcceptedOffer;
|
|
28
52
|
export interface ITransactionPurpose {
|
|
29
|
-
typeOf: TransactionType;
|
|
53
|
+
typeOf: TransactionType.MoneyTransfer;
|
|
30
54
|
id: string;
|
|
31
55
|
}
|
|
32
56
|
export type IPurpose = ITransactionPurpose;
|
|
@@ -7,12 +7,11 @@ import { ProductType } from '../../product';
|
|
|
7
7
|
import { IAvailableReservationStatusType } from '../../reservation';
|
|
8
8
|
import { ReservationType } from '../../reservationType';
|
|
9
9
|
import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
10
|
-
import { TripType } from '../../tripType';
|
|
11
10
|
import { IAction as IReturnReserveTransactionAction } from '../transfer/return/reserveTransaction';
|
|
12
11
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
13
12
|
export interface IReservationPackageAsObject {
|
|
14
13
|
reservationFor: {
|
|
15
|
-
typeOf: EventType.ScreeningEvent
|
|
14
|
+
typeOf: EventType.ScreeningEvent;
|
|
16
15
|
id: string;
|
|
17
16
|
};
|
|
18
17
|
reservationNumber: string;
|
|
@@ -22,22 +21,6 @@ export interface IReservationPackageAsObject {
|
|
|
22
21
|
reservationStatus: IAvailableReservationStatusType;
|
|
23
22
|
typeOf: ReservationType.ReservationPackage;
|
|
24
23
|
}
|
|
25
|
-
export interface IBusReservationAsObject {
|
|
26
|
-
id: string;
|
|
27
|
-
issuedThrough?: {
|
|
28
|
-
typeOf?: ProductType.Transportation;
|
|
29
|
-
};
|
|
30
|
-
reservationFor: {
|
|
31
|
-
typeOf: TripType.BusTrip;
|
|
32
|
-
id: string;
|
|
33
|
-
};
|
|
34
|
-
reservationNumber: string;
|
|
35
|
-
/**
|
|
36
|
-
* previousReservationStatusを変更時に指定するために必要
|
|
37
|
-
*/
|
|
38
|
-
reservationStatus: IAvailableReservationStatusType;
|
|
39
|
-
typeOf: ReservationType.BusReservation;
|
|
40
|
-
}
|
|
41
24
|
export interface IEventReservationAsObject {
|
|
42
25
|
id: string;
|
|
43
26
|
issuedThrough?: {
|
|
@@ -54,7 +37,7 @@ export interface IEventReservationAsObject {
|
|
|
54
37
|
reservationStatus: IAvailableReservationStatusType;
|
|
55
38
|
typeOf: ReservationType.EventReservation;
|
|
56
39
|
}
|
|
57
|
-
export type IObject =
|
|
40
|
+
export type IObject = IEventReservationAsObject | IReservationPackageAsObject;
|
|
58
41
|
export interface IResult {
|
|
59
42
|
}
|
|
60
43
|
export interface IPurpose {
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -3,13 +3,12 @@ import { ActionType } from '../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { IOrder } from '../order';
|
|
5
5
|
import { IAvailableReservationStatusType } from '../reservation';
|
|
6
|
-
import { IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
7
6
|
import { IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
8
7
|
import { ReservationType } from '../reservationType';
|
|
9
8
|
import { ITransaction as IPlaceOrder } from '../transaction/placeOrder';
|
|
10
9
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
11
10
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
12
|
-
export type IReservationFor =
|
|
11
|
+
export type IReservationFor = Pick<IEventReservationFor, 'id' | 'typeOf'> & {
|
|
13
12
|
optimized: boolean;
|
|
14
13
|
};
|
|
15
14
|
export interface IObject {
|
|
@@ -3,7 +3,6 @@ import * as AssetTransactionFactory from '../assetTransaction';
|
|
|
3
3
|
import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
|
-
import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
7
6
|
import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
8
7
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
9
8
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
@@ -35,12 +34,9 @@ export interface IObjectWithoutDetail {
|
|
|
35
34
|
}
|
|
36
35
|
export type IReserveTransactionAsObject = Pick<IReserveTransaction, 'typeOf' | 'id' | 'transactionNumber'> & {
|
|
37
36
|
object: {
|
|
38
|
-
reservationFor: Pick<IEventReservationFor
|
|
37
|
+
reservationFor: Pick<IEventReservationFor, 'id' | 'typeOf'>;
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
|
-
export type IBusReservationAsObject = Pick<IBusReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
42
|
-
reservationFor: Pick<IBusReservationFor, 'id' | 'typeOf'>;
|
|
43
|
-
};
|
|
44
40
|
export type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
45
41
|
reservationFor: Pick<IEventReservationFor, 'id' | 'typeOf'>;
|
|
46
42
|
};
|
|
@@ -49,7 +45,7 @@ export type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedTh
|
|
|
49
45
|
*/
|
|
50
46
|
export interface IObject extends Pick<IReservationPackage, 'reservationNumber' | 'typeOf'> {
|
|
51
47
|
transaction?: IReserveTransactionAsObject;
|
|
52
|
-
reservations?:
|
|
48
|
+
reservations?: IEventReservationAsObject[];
|
|
53
49
|
/**
|
|
54
50
|
* 予約番号
|
|
55
51
|
*/
|
|
@@ -9,7 +9,6 @@ import { PermitType } from '../permit';
|
|
|
9
9
|
import { ProductType } from '../product';
|
|
10
10
|
import { IPropertyValue } from '../propertyValue';
|
|
11
11
|
import * as ReservationFactory from '../reservation';
|
|
12
|
-
import { IIssuedThrough as IBusReservationIssuedThrough, IReservation as IBusReservation, IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
|
|
13
12
|
import { IIssuedThrough as IEventReservationIssuedThrough, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
14
13
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
15
14
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
@@ -88,33 +87,6 @@ export interface IAcceptedPointAward {
|
|
|
88
87
|
};
|
|
89
88
|
};
|
|
90
89
|
}
|
|
91
|
-
export interface IBusReservatonAsItemOfferedServiceOutput {
|
|
92
|
-
typeOf: ReservationType.BusReservation;
|
|
93
|
-
/**
|
|
94
|
-
* 追加特性
|
|
95
|
-
*/
|
|
96
|
-
additionalProperty?: IPropertyValue<string>[];
|
|
97
|
-
/**
|
|
98
|
-
* 予約追加テキスト
|
|
99
|
-
*/
|
|
100
|
-
additionalTicketText?: string;
|
|
101
|
-
programMembershipUsed?: IAcceptedProgramMembershipUsed;
|
|
102
|
-
reservedTicket?: {
|
|
103
|
-
/**
|
|
104
|
-
* チケット識別子
|
|
105
|
-
* 指定された場合、決済カードの対象チケット識別子と関連付けされます
|
|
106
|
-
* /^[0-9a-zA-Z]{8,16}$/
|
|
107
|
-
*/
|
|
108
|
-
identifier?: string;
|
|
109
|
-
issuedBy?: ReservationFactory.IUnderName;
|
|
110
|
-
typeOf: ReservationFactory.TicketType;
|
|
111
|
-
/**
|
|
112
|
-
* 座席指定
|
|
113
|
-
*/
|
|
114
|
-
ticketedSeat?: ReservationFactory.ISeat;
|
|
115
|
-
};
|
|
116
|
-
subReservation?: IAcceptedSubReservation[];
|
|
117
|
-
}
|
|
118
90
|
export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
119
91
|
typeOf: ReservationType.EventReservation;
|
|
120
92
|
/**
|
|
@@ -142,7 +114,7 @@ export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
|
142
114
|
};
|
|
143
115
|
subReservation?: IAcceptedSubReservation[];
|
|
144
116
|
}
|
|
145
|
-
export type IItemOfferedServiceOutput =
|
|
117
|
+
export type IItemOfferedServiceOutput = IEventReservatonAsItemOfferedServiceOutput;
|
|
146
118
|
/**
|
|
147
119
|
* 受け入れられたオファーのアイテム
|
|
148
120
|
*/
|
|
@@ -325,11 +297,10 @@ export interface IObjectWithoutDetail {
|
|
|
325
297
|
};
|
|
326
298
|
};
|
|
327
299
|
}
|
|
328
|
-
export type IReservationFor =
|
|
329
|
-
export type IBusReservationAsSubReservation = Pick<IBusReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'price' | 'priceCurrency' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'>;
|
|
300
|
+
export type IReservationFor = IEventReservationReservationFor;
|
|
330
301
|
export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'price' | 'priceCurrency' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'>;
|
|
331
|
-
export type IObjectSubReservation =
|
|
332
|
-
export type IIssuedThrough =
|
|
302
|
+
export type IObjectSubReservation = IEventReservationAsSubReservation;
|
|
303
|
+
export type IIssuedThrough = IEventReservationIssuedThrough;
|
|
333
304
|
export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'underName' | 'typeOf'> {
|
|
334
305
|
acceptedOffer?: IAcceptedOffer4object[];
|
|
335
306
|
issuedThrough?: IIssuedThrough;
|
package/lib/index.d.ts
CHANGED
|
@@ -37,7 +37,6 @@ import * as GiveActionFactory from './action/transfer/give';
|
|
|
37
37
|
import * as GivePointAwardActionFactory from './action/transfer/give/pointAward';
|
|
38
38
|
import * as MoneyTransferActionFactory from './action/transfer/moneyTransfer';
|
|
39
39
|
import * as ReturnInvoiceActionFactory from './action/transfer/return/invoice';
|
|
40
|
-
import * as ReturnMoneyTransferActionFactory from './action/transfer/return/moneyTransfer';
|
|
41
40
|
import * as ReturnOrderActionFactory from './action/transfer/return/order';
|
|
42
41
|
import * as ReturnPointAwardActionFactory from './action/transfer/return/pointAward';
|
|
43
42
|
import * as ReturnReserveTransactionActionFactory from './action/transfer/return/reserveTransaction';
|
|
@@ -130,7 +129,6 @@ import * as QuantitativeValueFactory from './quantitativeValue';
|
|
|
130
129
|
import * as RecipeFactory from './recipe';
|
|
131
130
|
import * as AccountingReportFactory from './report/accountingReport';
|
|
132
131
|
import * as ReservationFactory from './reservation';
|
|
133
|
-
import * as BusReservationFactory from './reservation/busReservation';
|
|
134
132
|
import * as EventReservationFactory from './reservation/event';
|
|
135
133
|
import * as ReservationPackageFactory from './reservation/reservationPackage';
|
|
136
134
|
import { ReservationStatusType } from './reservationStatusType';
|
|
@@ -206,7 +204,6 @@ import * as PublishPaymentUrlTaskFactory from './task/publishPaymentUrl';
|
|
|
206
204
|
import * as RefundTaskFactory from './task/refund';
|
|
207
205
|
import * as RegisterServiceTaskFactory from './task/registerService';
|
|
208
206
|
import * as ReserveTaskFactory from './task/reserve';
|
|
209
|
-
import * as ReturnMoneyTransferTaskFactory from './task/returnMoneyTransfer';
|
|
210
207
|
import * as ReturnOrderTaskFactory from './task/returnOrder';
|
|
211
208
|
import * as ReturnPayTransactionTaskFactory from './task/returnPayTransaction';
|
|
212
209
|
import * as ReturnPointAwardTaskFactory from './task/returnPointAward';
|
|
@@ -321,7 +318,6 @@ export declare namespace action {
|
|
|
321
318
|
*/
|
|
322
319
|
namespace returnAction {
|
|
323
320
|
export import invoice = ReturnInvoiceActionFactory;
|
|
324
|
-
export import moneyTransfer = ReturnMoneyTransferActionFactory;
|
|
325
321
|
export import order = ReturnOrderActionFactory;
|
|
326
322
|
export import pointAward = ReturnPointAwardActionFactory;
|
|
327
323
|
export import reserveTransaction = ReturnReserveTransactionActionFactory;
|
|
@@ -488,24 +484,23 @@ export declare namespace report {
|
|
|
488
484
|
export import accountingReport = AccountingReportFactory;
|
|
489
485
|
}
|
|
490
486
|
export declare namespace reservation {
|
|
491
|
-
export import busReservation = BusReservationFactory;
|
|
492
487
|
export import eventReservation = EventReservationFactory;
|
|
493
|
-
type IBroker<T extends ReservationType> = T extends ReservationType.
|
|
494
|
-
type IIssuedThrough<T extends ReservationType> = T extends ReservationType.
|
|
495
|
-
type IPriceSpecification<T extends ReservationType> = T extends ReservationType.
|
|
496
|
-
type IProgramMembershipUsed<T extends ReservationType> = T extends ReservationType.
|
|
488
|
+
type IBroker<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IBroker : ReservationFactory.IBroker;
|
|
489
|
+
type IIssuedThrough<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IIssuedThrough : ReservationFactory.IIssuedThrough;
|
|
490
|
+
type IPriceSpecification<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IPriceSpecification : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IPriceSpecification : ReservationFactory.IPriceSpecification;
|
|
491
|
+
type IProgramMembershipUsed<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IProgramMembershipUsed : ReservationFactory.IProgramMembershipUsed;
|
|
497
492
|
export import IProvider = ReservationFactory.IProvider;
|
|
498
|
-
type IReservationFor<T extends ReservationType> = T extends ReservationType.
|
|
499
|
-
type IReservation<T extends ReservationType> = T extends ReservationType.
|
|
500
|
-
type ISearchConditions<T extends ReservationType> = T extends ReservationType.
|
|
501
|
-
type ISortOrder<T extends ReservationType> = T extends ReservationType.
|
|
502
|
-
type ISeat<T extends ReservationType> = T extends ReservationType.
|
|
503
|
-
type ISubReservation<T extends ReservationType> = T extends ReservationType.
|
|
493
|
+
type IReservationFor<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IReservationFor : T extends ReservationType.ReservationPackage ? ReservationFactory.IReservationFor : ReservationFactory.IReservationFor;
|
|
494
|
+
type IReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IReservation : ReservationFactory.IReservation<ReservationFactory.IPriceSpecification>;
|
|
495
|
+
type ISearchConditions<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISearchConditions : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISearchConditions : ReservationPackageFactory.ISearchConditions;
|
|
496
|
+
type ISortOrder<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISortOrder : ReservationFactory.ISortOrder;
|
|
497
|
+
type ISeat<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISeat : ReservationFactory.ISeat;
|
|
498
|
+
type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
|
|
504
499
|
export import ITicket = ReservationFactory.ITicket;
|
|
505
|
-
type IUnderName<T extends ReservationType> = T extends ReservationType.
|
|
506
|
-
type ITicketIssuedBy<T extends ReservationType> = T extends ReservationType.
|
|
507
|
-
type TicketType<T extends ReservationType> = T extends ReservationType.
|
|
508
|
-
type ITicketType<T extends ReservationType> = T extends ReservationType.
|
|
500
|
+
type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
|
|
501
|
+
type ITicketIssuedBy<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketIssuedBy : ReservationFactory.ITicketIssuedBy;
|
|
502
|
+
type TicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.TicketType : ReservationFactory.TicketType;
|
|
503
|
+
type ITicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketType : ReservationFactory.ITicketType;
|
|
509
504
|
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
510
505
|
export import IServiceLocationContainedInPlace = ReservationFactory.IServiceLocationContainedInPlace;
|
|
511
506
|
export import IServiceLocation = ReservationFactory.IServiceLocation;
|
|
@@ -522,9 +517,9 @@ export import schedule = ScheduleFactory;
|
|
|
522
517
|
export import seller = SellerFactory;
|
|
523
518
|
export import sellerReturnPolicy = SellerReturnPolicyFactory;
|
|
524
519
|
export declare namespace task {
|
|
525
|
-
type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IData : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IData : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IData : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IData : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IData : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IData : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IData : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IData : T extends TaskName.
|
|
526
|
-
type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IAttributes : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IAttributes : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IAttributes : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IAttributes : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IAttributes : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IAttributes : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IAttributes : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.
|
|
527
|
-
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.ITask : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.ITask : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.ITask : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.ITask : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.ITask : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.ITask : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.ITask : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.
|
|
520
|
+
type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IData : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IData : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IData : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IData : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IData : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IData : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IData : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.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;
|
|
521
|
+
type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IAttributes : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IAttributes : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IAttributes : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IAttributes : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IAttributes : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IAttributes : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IAttributes : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.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;
|
|
522
|
+
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.ITask : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.ITask : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.ITask : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.ITask : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.ITask : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.ITask : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.ITask : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.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;
|
|
528
523
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
529
524
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
530
525
|
export import acceptCOAOffer = AcceptCOAOfferTaskFactory;
|
package/lib/index.js
CHANGED
|
@@ -37,7 +37,6 @@ var RefundActionFactory = require("./action/trade/refund");
|
|
|
37
37
|
var GivePointAwardActionFactory = require("./action/transfer/give/pointAward");
|
|
38
38
|
var MoneyTransferActionFactory = require("./action/transfer/moneyTransfer");
|
|
39
39
|
var ReturnInvoiceActionFactory = require("./action/transfer/return/invoice");
|
|
40
|
-
var ReturnMoneyTransferActionFactory = require("./action/transfer/return/moneyTransfer");
|
|
41
40
|
var ReturnOrderActionFactory = require("./action/transfer/return/order");
|
|
42
41
|
var ReturnPointAwardActionFactory = require("./action/transfer/return/pointAward");
|
|
43
42
|
var ReturnReserveTransactionActionFactory = require("./action/transfer/return/reserveTransaction");
|
|
@@ -125,7 +124,6 @@ var QualitativeValueFactory = require("./qualitativeValue");
|
|
|
125
124
|
var QuantitativeValueFactory = require("./quantitativeValue");
|
|
126
125
|
var RecipeFactory = require("./recipe");
|
|
127
126
|
var AccountingReportFactory = require("./report/accountingReport");
|
|
128
|
-
var BusReservationFactory = require("./reservation/busReservation");
|
|
129
127
|
var EventReservationFactory = require("./reservation/event");
|
|
130
128
|
var reservationStatusType_1 = require("./reservationStatusType");
|
|
131
129
|
var reservationType_1 = require("./reservationType");
|
|
@@ -306,8 +304,6 @@ var action;
|
|
|
306
304
|
// tslint:disable-next-line:no-shadowed-variable
|
|
307
305
|
returnAction.invoice = ReturnInvoiceActionFactory;
|
|
308
306
|
// tslint:disable-next-line:no-shadowed-variable
|
|
309
|
-
returnAction.moneyTransfer = ReturnMoneyTransferActionFactory;
|
|
310
|
-
// tslint:disable-next-line:no-shadowed-variable
|
|
311
307
|
returnAction.order = ReturnOrderActionFactory;
|
|
312
308
|
returnAction.pointAward = ReturnPointAwardActionFactory;
|
|
313
309
|
returnAction.reserveTransaction = ReturnReserveTransactionActionFactory;
|
|
@@ -512,7 +508,6 @@ var report;
|
|
|
512
508
|
})(report = exports.report || (exports.report = {}));
|
|
513
509
|
var reservation;
|
|
514
510
|
(function (reservation) {
|
|
515
|
-
reservation.busReservation = BusReservationFactory;
|
|
516
511
|
reservation.eventReservation = EventReservationFactory;
|
|
517
512
|
})(reservation = exports.reservation || (exports.reservation = {}));
|
|
518
513
|
exports.reservationStatusType = reservationStatusType_1.ReservationStatusType;
|
|
@@ -25,7 +25,7 @@ export interface IReservationPackage4informConfirmed {
|
|
|
25
25
|
* 予約取消通知
|
|
26
26
|
*/
|
|
27
27
|
export interface IReservation4informCanceled {
|
|
28
|
-
typeOf: ReservationType.
|
|
28
|
+
typeOf: ReservationType.EventReservation;
|
|
29
29
|
project: IProject;
|
|
30
30
|
id: string;
|
|
31
31
|
reservationStatus: ReservationStatusType.ReservationCancelled;
|
package/lib/order.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from './action';
|
|
2
|
-
import { IAmount as IMoneyTransferAmount, IPaymentCard as IPaymentCardAsMoneyTransferToLocation } from './action/transfer/moneyTransfer';
|
|
3
|
-
import { ActionType } from './actionType';
|
|
4
|
-
import { AssetTransactionType } from './assetTransactionType';
|
|
5
2
|
import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
|
|
6
3
|
import { ICustomer as ICustomerOrganization } from './customer';
|
|
7
4
|
import { EventType } from './eventType';
|
|
@@ -20,7 +17,6 @@ import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpeci
|
|
|
20
17
|
import { IMembershipProduct, IPaymentCardProduct, ProductType } from './product';
|
|
21
18
|
import { IPropertyValue } from './propertyValue';
|
|
22
19
|
import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
|
|
23
|
-
import * as BusReservationFactory from './reservation/busReservation';
|
|
24
20
|
import * as EventReservationFactory from './reservation/event';
|
|
25
21
|
import { ReservationType } from './reservationType';
|
|
26
22
|
import { ISeller as IBaseSeller } from './seller';
|
|
@@ -91,7 +87,6 @@ export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerforme
|
|
|
91
87
|
export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
92
88
|
workPerformed: IWorkPerformed;
|
|
93
89
|
};
|
|
94
|
-
export type ITripAsReservationFor = BusReservationFactory.IReservationFor;
|
|
95
90
|
export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
|
|
96
91
|
superEvent: ISuperEvent;
|
|
97
92
|
};
|
|
@@ -99,50 +94,19 @@ export type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'identif
|
|
|
99
94
|
'ticketNumber' | 'dateIssued' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
|
|
100
95
|
ticketType: ITicketType;
|
|
101
96
|
};
|
|
102
|
-
export type IBusReservation = Pick<BusReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
103
|
-
reservationFor: ITripAsReservationFor;
|
|
104
|
-
reservedTicket: IReservedTicket;
|
|
105
|
-
};
|
|
106
97
|
export type IEventReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
107
98
|
reservationFor: IEventAsReservationFor;
|
|
108
99
|
reservedTicket: IReservedTicket;
|
|
109
100
|
};
|
|
110
|
-
export type IReservation =
|
|
101
|
+
export type IReservation = IEventReservation;
|
|
111
102
|
export type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'name' | 'typeOf' | 'validFor'> & {
|
|
112
103
|
identifier: string;
|
|
113
104
|
issuedThrough?: IIssuedThroughAsProduct;
|
|
114
105
|
};
|
|
115
|
-
export interface IMoneyTransferPendingTransaction {
|
|
116
|
-
typeOf: AssetTransactionType.MoneyTransfer;
|
|
117
|
-
/**
|
|
118
|
-
* 資産取引番号
|
|
119
|
-
*/
|
|
120
|
-
transactionNumber: string;
|
|
121
|
-
}
|
|
122
|
-
export type IMoneyTransferToLocation = Pick<IPaymentCardAsMoneyTransferToLocation, 'typeOf' | 'identifier' | 'issuedThrough'>;
|
|
123
|
-
export interface IMoneyTransfer {
|
|
124
|
-
typeOf: ActionType.MoneyTransfer;
|
|
125
|
-
/**
|
|
126
|
-
* 金額
|
|
127
|
-
*/
|
|
128
|
-
amount: IMoneyTransferAmount;
|
|
129
|
-
description?: string;
|
|
130
|
-
/**
|
|
131
|
-
* 転送先
|
|
132
|
-
*/
|
|
133
|
-
toLocation: IMoneyTransferToLocation;
|
|
134
|
-
object: {
|
|
135
|
-
/**
|
|
136
|
-
* 入金処理の資産取引
|
|
137
|
-
*/
|
|
138
|
-
pendingTransaction: IMoneyTransferPendingTransaction;
|
|
139
|
-
};
|
|
140
|
-
name?: string;
|
|
141
|
-
}
|
|
142
106
|
/**
|
|
143
107
|
* 注文アイテム
|
|
144
108
|
*/
|
|
145
|
-
export type IItemOffered =
|
|
109
|
+
export type IItemOffered = IReservation | IPermit;
|
|
146
110
|
export type ICategoryChargePriceComponent = EventReservationFactory.ICategoryChargePriceComponent;
|
|
147
111
|
export type IMovieTicketTypeChargePriceComponent = EventReservationFactory.IMovieTicketTypeChargePriceComponent;
|
|
148
112
|
export type IUnitPriceComponent = EventReservationFactory.IUnitPriceComponent;
|
|
@@ -232,16 +196,6 @@ export interface IEventServiceAsOrderedItem {
|
|
|
232
196
|
*/
|
|
233
197
|
id?: string;
|
|
234
198
|
}
|
|
235
|
-
export type IReservationFor4TransportationOrderedItem = Pick<ITripAsReservationFor, 'typeOf' | 'id' | 'arrivalTime' | 'departureTime'>;
|
|
236
|
-
export interface ITransportationAsOrderedItem {
|
|
237
|
-
typeOf: ProductType.Transportation;
|
|
238
|
-
serviceOutput: {
|
|
239
|
-
typeOf: ReservationType.ReservationPackage;
|
|
240
|
-
reservationFor: IReservationFor4TransportationOrderedItem;
|
|
241
|
-
};
|
|
242
|
-
serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
|
|
243
|
-
id: string;
|
|
244
|
-
}
|
|
245
199
|
export type IProductAsOrderedItem = Pick<IMembershipProduct | IPaymentCardProduct, 'serviceType' | 'typeOf'> & {
|
|
246
200
|
id: string;
|
|
247
201
|
};
|
|
@@ -251,7 +205,7 @@ export type IProductAsOrderedItem = Pick<IMembershipProduct | IPaymentCardProduc
|
|
|
251
205
|
*/
|
|
252
206
|
export interface IOrderedItem {
|
|
253
207
|
typeOf: 'OrderItem';
|
|
254
|
-
orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem
|
|
208
|
+
orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem;
|
|
255
209
|
}
|
|
256
210
|
/**
|
|
257
211
|
* 注文
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -10,24 +10,6 @@ import { PaymentServiceType } from './service/paymentService';
|
|
|
10
10
|
import * as WebAPIFactory from './service/webAPI';
|
|
11
11
|
import { SortType } from './sortType';
|
|
12
12
|
export type IBookingService = Pick<WebAPIFactory.IService<WebAPIFactory.Identifier>, 'identifier' | 'typeOf'>;
|
|
13
|
-
export interface IBusReservationAsGood {
|
|
14
|
-
typeOf: ReservationType.BusReservation;
|
|
15
|
-
/**
|
|
16
|
-
* 予約ID
|
|
17
|
-
*/
|
|
18
|
-
id?: string;
|
|
19
|
-
issuedThrough?: {
|
|
20
|
-
typeOf: ProductFactory.ProductType.Transportation;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* 予約番号
|
|
24
|
-
*/
|
|
25
|
-
reservationNumber?: string;
|
|
26
|
-
/**
|
|
27
|
-
* ブッキングサービス(API)
|
|
28
|
-
*/
|
|
29
|
-
bookingService?: IBookingService;
|
|
30
|
-
}
|
|
31
13
|
export interface IEventReservationAsGood {
|
|
32
14
|
typeOf: ReservationType.EventReservation;
|
|
33
15
|
/**
|
|
@@ -49,7 +31,7 @@ export interface IEventReservationAsGood {
|
|
|
49
31
|
/**
|
|
50
32
|
* 予約
|
|
51
33
|
*/
|
|
52
|
-
export type IReservation =
|
|
34
|
+
export type IReservation = IEventReservationAsGood;
|
|
53
35
|
export type IPermitIssuedThroughAsFaceToFace = Pick<PermitFactory.IIssuedThroughAsFaceToFace, 'typeOf'>;
|
|
54
36
|
export type IPermitIssuedThroughAsCreditCard = Pick<PermitFactory.IIssuedThroughAsCreditCard, 'id' | 'typeOf'>;
|
|
55
37
|
export type IPermitIssuedThroughAsProduct = Pick<PermitFactory.IIssuedThroughAsProduct, 'id' | 'typeOf' | 'serviceType'>;
|
|
@@ -2,7 +2,7 @@ import { EventType } from '../eventType';
|
|
|
2
2
|
import { ISeat } from '../reservation';
|
|
3
3
|
import { ReservationType } from '../reservationType';
|
|
4
4
|
export interface ISubReservation {
|
|
5
|
-
typeOf: ReservationType.
|
|
5
|
+
typeOf: ReservationType.EventReservation;
|
|
6
6
|
id: string;
|
|
7
7
|
reservedTicket?: {
|
|
8
8
|
ticketedSeat?: Pick<ISeat, 'seatNumber' | 'seatSection'>;
|
package/lib/reservationType.d.ts
CHANGED
package/lib/reservationType.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.ReservationType = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var ReservationType;
|
|
8
8
|
(function (ReservationType) {
|
|
9
|
-
|
|
9
|
+
// BusReservation = 'BusReservation',
|
|
10
10
|
ReservationType["EventReservation"] = "EventReservation";
|
|
11
11
|
ReservationType["ReservationPackage"] = "ReservationPackage";
|
|
12
12
|
})(ReservationType = exports.ReservationType || (exports.ReservationType = {}));
|
|
@@ -108,7 +108,7 @@ exports.RESERVED_CODE_VALUES = [
|
|
|
108
108
|
reservationStatusType_1.ReservationStatusType.ReservationPending,
|
|
109
109
|
'ReservationHold',
|
|
110
110
|
reservationStatusType_1.ReservationStatusType.ReservationPending,
|
|
111
|
-
|
|
111
|
+
'BusReservation',
|
|
112
112
|
reservationType_1.ReservationType.EventReservation,
|
|
113
113
|
reservationType_1.ReservationType.ReservationPackage,
|
|
114
114
|
sortType_1.SortType.Ascending,
|
package/lib/taskName.d.ts
CHANGED
package/lib/taskName.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "5.4.0-alpha.
|
|
3
|
+
"version": "5.4.0-alpha.34",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"doc": "echo \"implementing...\" && exit 0",
|
|
23
23
|
"mocha": "mocha",
|
|
24
24
|
"nyc": "nyc mocha \"src/**/*.spec.ts\"",
|
|
25
|
-
"coverage": "npm run nyc && nyc report --reporter=text-lcov",
|
|
25
|
+
"coverage": "npm run nyc && nyc report --reporter=text-lcov | coveralls",
|
|
26
26
|
"test": "npm run check && npm run coverage",
|
|
27
27
|
"tslint": "tslint --project tsconfig.json -c tslint.json --exclude \"**/*.spec.ts\" \"src/**/*.ts\"",
|
|
28
28
|
"preversion": "npm run clean && npm run build && npm test && npm run doc",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as ActionFactory from '../../../action';
|
|
2
|
-
import * as MoneyTransferActionFactory from '../moneyTransfer';
|
|
3
|
-
import * as ReturnActionFactory from '../return';
|
|
4
|
-
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
5
|
-
export type IRecipient = ActionFactory.IParticipantAsSeller;
|
|
6
|
-
/**
|
|
7
|
-
* 返却対象は入金アクション
|
|
8
|
-
*/
|
|
9
|
-
export type IObject = Pick<MoneyTransferActionFactory.IAction, 'object' | 'typeOf'>;
|
|
10
|
-
export type IResult = any;
|
|
11
|
-
export interface IPotentialActions {
|
|
12
|
-
}
|
|
13
|
-
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
14
|
-
agent: IAgent;
|
|
15
|
-
recipient: IRecipient;
|
|
16
|
-
potentialActions?: IPotentialActions;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 入金返却アクション
|
|
20
|
-
*/
|
|
21
|
-
export type IAction = ReturnActionFactory.IAction<IAttributes>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ProductType } from '../product';
|
|
2
|
-
import * as ReservationFactory from '../reservation';
|
|
3
|
-
import { ReservationType } from '../reservationType';
|
|
4
|
-
import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
|
|
5
|
-
import { TripType } from '../tripType';
|
|
6
|
-
import { IPriceSpecification, ITicketPriceComponent } from './event';
|
|
7
|
-
export type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'id' | 'identifier' | 'name' | 'typeOf'> & {
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
export type IPriceComponentSpecification = ITicketPriceComponent;
|
|
11
|
-
export { IPriceSpecification };
|
|
12
|
-
export interface ISubReservation {
|
|
13
|
-
reservedTicket: {
|
|
14
|
-
typeOf: ReservationFactory.TicketType;
|
|
15
|
-
ticketedSeat: ReservationFactory.ISeat;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
19
|
-
export interface IIssuedThrough extends ReservationFactory.IIssuedThrough {
|
|
20
|
-
typeOf: ProductType.Transportation;
|
|
21
|
-
serviceType?: IServiceTypeOfIssuedThrough;
|
|
22
|
-
id: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* トリップ予約
|
|
26
|
-
*/
|
|
27
|
-
export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
|
|
28
|
-
bookingTime: Date;
|
|
29
|
-
id: string;
|
|
30
|
-
issuedThrough: IIssuedThrough;
|
|
31
|
-
reservationFor: IReservationFor;
|
|
32
|
-
reservationNumber: string;
|
|
33
|
-
reservationStatus: ReservationFactory.IAvailableReservationStatusType;
|
|
34
|
-
reservedTicket: ReservationFactory.ITicket;
|
|
35
|
-
subReservation?: ISubReservation[];
|
|
36
|
-
typeOf: ReservationType.BusReservation;
|
|
37
|
-
}
|
|
38
|
-
export interface IReservationForSearchConditions {
|
|
39
|
-
typeOf?: {
|
|
40
|
-
$eq?: TripType;
|
|
41
|
-
};
|
|
42
|
-
id?: {
|
|
43
|
-
$eq?: string;
|
|
44
|
-
$in?: string[];
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* 検索条件
|
|
49
|
-
*/
|
|
50
|
-
export interface ISearchConditions extends ReservationFactory.ISearchConditions<ReservationType.BusReservation> {
|
|
51
|
-
/**
|
|
52
|
-
* 予約対象
|
|
53
|
-
*/
|
|
54
|
-
reservationFor?: IReservationForSearchConditions;
|
|
55
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IReturnMoneyTransferActionAttributes } from '../action/transfer/return/moneyTransfer';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import * as TaskFactory from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = IReturnMoneyTransferActionAttributes;
|
|
6
|
-
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
|
-
name: TaskName.ReturnMoneyTransfer;
|
|
8
|
-
data: IData;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 入金返却タスクインターフェース
|
|
12
|
-
*/
|
|
13
|
-
export type ITask = IExtendId<IAttributes>;
|