@chevre/factory 4.280.0-alpha.8 → 4.280.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,11 +6,22 @@ import { ProductType } from '../../product';
|
|
|
6
6
|
import { ReservationStatusType } from '../../reservationStatusType';
|
|
7
7
|
import { ReservationType } from '../../reservationType';
|
|
8
8
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
9
|
+
export interface IReservationPackageAsObject {
|
|
10
|
+
reservationFor: {
|
|
11
|
+
typeOf: EventType.ScreeningEvent;
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
reservationNumber: string;
|
|
15
|
+
/**
|
|
16
|
+
* previousReservationStatusを変更時に指定するために必要
|
|
17
|
+
*/
|
|
18
|
+
reservationStatus: ReservationStatusType;
|
|
19
|
+
typeOf: ReservationType.ReservationPackage;
|
|
20
|
+
}
|
|
9
21
|
/**
|
|
10
22
|
* 予約取消対象
|
|
11
23
|
*/
|
|
12
|
-
export interface
|
|
13
|
-
typeOf: ReservationType.EventReservation;
|
|
24
|
+
export interface IEventReservationAsObject {
|
|
14
25
|
id: string;
|
|
15
26
|
issuedThrough?: {
|
|
16
27
|
typeOf?: ProductType.EventService;
|
|
@@ -24,7 +35,9 @@ export interface IObject {
|
|
|
24
35
|
* previousReservationStatusを変更時に指定するために必要
|
|
25
36
|
*/
|
|
26
37
|
reservationStatus: ReservationStatusType;
|
|
38
|
+
typeOf: ReservationType.EventReservation;
|
|
27
39
|
}
|
|
40
|
+
export declare type IObject = IEventReservationAsObject | IReservationPackageAsObject;
|
|
28
41
|
/**
|
|
29
42
|
* 予約取消結果
|
|
30
43
|
*/
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -2,17 +2,25 @@ 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 { IUnderName } from '../reservation';
|
|
6
|
+
import { IReservation as IEventReservation, IReservationFor } from '../reservation/event';
|
|
7
|
+
import { ReservationStatusType } from '../reservationStatusType';
|
|
8
|
+
import { ReservationType } from '../reservationType';
|
|
6
9
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
7
10
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
export declare type ISubReservation = Omit<IEventReservation, 'reservationFor'>;
|
|
12
|
+
export interface IReservationPackageAsObject {
|
|
13
|
+
reservationFor: IReservationFor;
|
|
14
|
+
reservationNumber: string;
|
|
15
|
+
reservationStatus: ReservationStatusType;
|
|
16
|
+
subReservation?: ISubReservation[];
|
|
17
|
+
underName?: IUnderName;
|
|
18
|
+
typeOf: ReservationType.ReservationPackage;
|
|
19
|
+
}
|
|
20
|
+
export declare type IObject = IEventReservation | IReservationPackageAsObject;
|
|
21
|
+
export interface IResult {
|
|
22
|
+
confirmedReservationId?: string;
|
|
23
|
+
}
|
|
16
24
|
export interface IOrderAsReservePurpose {
|
|
17
25
|
typeOf: OrderType.Order;
|
|
18
26
|
confirmationNumber?: string;
|
|
@@ -32,9 +40,6 @@ export declare type IPurpose = IOrderAsReservePurpose | IAssetTransactionAsReser
|
|
|
32
40
|
export interface IPotentialActions {
|
|
33
41
|
moneyTransfer?: IMoneyTransferActionAttributes[];
|
|
34
42
|
}
|
|
35
|
-
/**
|
|
36
|
-
* アクション属性
|
|
37
|
-
*/
|
|
38
43
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult> {
|
|
39
44
|
agent: IAgent;
|
|
40
45
|
potentialActions?: IPotentialActions;
|
|
@@ -4,7 +4,7 @@ import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve
|
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { IClientUser } from '../clientUser';
|
|
7
|
-
import { IReservation as IEventReservation } from '../reservation/event';
|
|
7
|
+
import { IReservation as IEventReservation, IReservationFor } from '../reservation/event';
|
|
8
8
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
9
|
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
|
|
10
10
|
/**
|
|
@@ -23,20 +23,28 @@ export interface IObjectWithoutDetail {
|
|
|
23
23
|
/**
|
|
24
24
|
* 予約IDをキーに取消
|
|
25
25
|
*/
|
|
26
|
-
id?: string
|
|
26
|
+
id?: string;
|
|
27
27
|
/**
|
|
28
28
|
* 予約番号をキーに取消
|
|
29
29
|
*/
|
|
30
30
|
reservationNumber?: string;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
+
export declare type IReserveTransactionAsObject = Pick<IReserveTransaction, 'typeOf' | 'id' | 'transactionNumber'> & {
|
|
34
|
+
object: {
|
|
35
|
+
reservationFor: Pick<IReservationFor, 'id' | 'typeOf'>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
39
|
+
reservationFor: Pick<IReservationFor, 'id' | 'typeOf'>;
|
|
40
|
+
};
|
|
33
41
|
/**
|
|
34
42
|
* 取引対象物
|
|
35
43
|
*/
|
|
36
44
|
export interface IObject {
|
|
37
45
|
clientUser?: IClientUser;
|
|
38
|
-
transaction?:
|
|
39
|
-
reservations?:
|
|
46
|
+
transaction?: IReserveTransactionAsObject;
|
|
47
|
+
reservations?: IEventReservationAsObject[];
|
|
40
48
|
}
|
|
41
49
|
/**
|
|
42
50
|
* 取引確定パラメータ
|
|
@@ -7,7 +7,7 @@ import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
|
|
|
7
7
|
import { IPointAward } from '../product';
|
|
8
8
|
import { IPropertyValue } from '../propertyValue';
|
|
9
9
|
import * as ReservationFactory from '../reservation';
|
|
10
|
-
import {
|
|
10
|
+
import { 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;
|
|
@@ -189,7 +189,7 @@ export interface IObjectWithoutDetail {
|
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
export declare type IReservationFor = IEventReservationReservationFor;
|
|
192
|
-
export declare type IObjectSubReservation =
|
|
192
|
+
export declare type IObjectSubReservation = ReserveActionFactory.ISubReservation;
|
|
193
193
|
/**
|
|
194
194
|
* 取引対象物
|
|
195
195
|
*/
|
|
@@ -314,7 +314,12 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
|
|
|
314
314
|
export declare type IEvent = EventFactory.IEvent<IAttributes>;
|
|
315
315
|
export declare type ILocation4create = Pick<ILocation, 'branchCode' | 'maximumAttendeeCapacity'>;
|
|
316
316
|
export declare type ISuperEvent4create = Pick<ISuperEvent, 'id'>;
|
|
317
|
-
export declare type ISeller4create = Pick<ISeller, 'makesOffer'
|
|
317
|
+
export declare type ISeller4create = Pick<ISeller, 'makesOffer'> & {
|
|
318
|
+
/**
|
|
319
|
+
* POS以外のアプリケーションの共通設定
|
|
320
|
+
*/
|
|
321
|
+
makesOfferDefault?: Pick<ISellerMakesOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'>;
|
|
322
|
+
};
|
|
318
323
|
export declare type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
|
|
319
324
|
/**
|
|
320
325
|
* 最大予約数を指定
|