@chevre/factory 4.206.0 → 4.207.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.
package/lib/chevre.d.ts CHANGED
@@ -381,7 +381,7 @@ export declare namespace reservation {
381
381
  type ISortOrder<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISortOrder : ReservationFactory.ISortOrder;
382
382
  type ISeat<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISeat : ReservationFactory.ISeat;
383
383
  type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
384
- type ITicket<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicket<IPriceSpecification<T>> : ReservationFactory.ITicket<IPriceSpecification<T>>;
384
+ export import ITicket = ReservationFactory.ITicket;
385
385
  type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
386
386
  type TicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.TicketType : ReservationFactory.TicketType;
387
387
  type ITicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketType : ReservationFactory.ITicketType;
@@ -3,6 +3,7 @@ import { IMonetaryAmount } from './monetaryAmount';
3
3
  import { IOffer } from './offer';
4
4
  import { IPermit } from './permit';
5
5
  import { IProject } from './project';
6
+ import { IPropertyValue } from './propertyValue';
6
7
  import { IQuantitativeValue } from './quantitativeValue';
7
8
  import { IServiceType } from './serviceType';
8
9
  import { SortType } from './sortType';
@@ -112,6 +113,7 @@ export interface IProduct extends IThing {
112
113
  * The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
113
114
  */
114
115
  serviceType?: IServiceType;
116
+ additionalProperty?: IPropertyValue<string>[];
115
117
  }
116
118
  export interface ISortOrder {
117
119
  productID?: SortType;
@@ -44,7 +44,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
44
44
  id: string;
45
45
  reservationFor: IReservationFor;
46
46
  reservationNumber: string;
47
- reservedTicket: ReservationFactory.ITicket<IPriceSpecification>;
47
+ reservedTicket: ReservationFactory.ITicket;
48
48
  subReservation?: ISubReservation[];
49
49
  typeOf: ReservationType.EventReservation;
50
50
  }
@@ -7,7 +7,6 @@ import * as SeatFactory from './place/seat';
7
7
  import { PlaceType } from './placeType';
8
8
  import { PriceCurrency } from './priceCurrency';
9
9
  import { IPriceSpecification as IGenericPriceSpecification } from './priceSpecification';
10
- import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
11
10
  import { PriceSpecificationType } from './priceSpecificationType';
12
11
  import { ProductType } from './product';
13
12
  import { IProject } from './project';
@@ -27,7 +26,6 @@ export interface ITicketType {
27
26
  identifier: string;
28
27
  name?: string | IMultilingualString;
29
28
  priceCurrency: PriceCurrency;
30
- priceSpecification?: IUnitPriceSpecification;
31
29
  project: IProject;
32
30
  typeOf: OfferType;
33
31
  validRateLimit?: OfferFactory.IValidRateLimit;
@@ -100,7 +98,7 @@ export declare type IReservationFor = any;
100
98
  /**
101
99
  * 予約チケット情報
102
100
  */
103
- export interface ITicket<T extends IPriceSpecification> {
101
+ export interface ITicket {
104
102
  typeOf: TicketType;
105
103
  /**
106
104
  * The date the ticket was issued.
@@ -117,7 +115,6 @@ export interface ITicket<T extends IPriceSpecification> {
117
115
  /**
118
116
  * The total price for the reservation or ticket, including applicable taxes, shipping, etc.
119
117
  */
120
- totalPrice?: T | number;
121
118
  /**
122
119
  * The currency (in 3-letter ISO 4217 format) of the Reservation's price.
123
120
  */
@@ -198,15 +195,12 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
198
195
  /**
199
196
  * Web page where reservation can be cancelled.
200
197
  */
201
- cancelReservationUrl?: string;
202
198
  /**
203
199
  * Webpage where the passenger can check in.
204
200
  */
205
- checkinUrl?: string;
206
201
  /**
207
202
  * Web page where reservation can be confirmed.
208
203
  */
209
- confirmReservationUrl?: string;
210
204
  issuedThrough?: {
211
205
  typeOf: ProductType.EventService;
212
206
  serviceType?: IServiceType;
@@ -218,7 +212,6 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
218
212
  /**
219
213
  * Web page where reservation can be modified.
220
214
  */
221
- modifyReservationUrl?: string;
222
215
  /**
223
216
  * Number of seats if unreserved seating.
224
217
  */
@@ -226,7 +219,7 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
226
219
  /**
227
220
  * Total price of the Reservation.
228
221
  */
229
- price?: T | number;
222
+ price?: T;
230
223
  /**
231
224
  * The currency (in 3-letter ISO 4217 format) of the Reservation's price.
232
225
  */
@@ -250,7 +243,7 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
250
243
  /**
251
244
  * A ticket associated with the reservation.
252
245
  */
253
- reservedTicket?: ITicket<T>;
246
+ reservedTicket?: ITicket;
254
247
  /**
255
248
  * The individual reservations included in the package. Typically a repeated property.
256
249
  */
@@ -354,6 +347,15 @@ export interface IProgramMembershipUsedSearchConditions {
354
347
  };
355
348
  };
356
349
  }
350
+ export interface IPriceSearchConditions {
351
+ priceComponent?: {
352
+ appliesToMovieTicket?: {
353
+ identifier?: {
354
+ $eq?: string;
355
+ };
356
+ };
357
+ };
358
+ }
357
359
  /**
358
360
  * 検索条件
359
361
  */
@@ -427,4 +429,5 @@ export interface ISearchConditions<T extends ReservationType> {
427
429
  * 使用メンバーシップ
428
430
  */
429
431
  programMembershipUsed?: IProgramMembershipUsedSearchConditions;
432
+ price?: IPriceSearchConditions;
430
433
  }
@@ -1,6 +1,7 @@
1
1
  import { IOrganization } from '../organization';
2
2
  import { IAvailableChannel } from '../product';
3
3
  import { IProject } from '../project';
4
+ import { IPropertyValue } from '../propertyValue';
4
5
  import { IServiceType } from '../serviceType';
5
6
  import { IThing } from '../thing';
6
7
  export declare enum PaymentServiceType {
@@ -61,4 +62,5 @@ export interface IService extends IThing {
61
62
  * 決済サービスの場合、serviceType.codeValueが決済方法区分
62
63
  */
63
64
  serviceType?: IServiceType;
65
+ additionalProperty?: IPropertyValue<string>[];
64
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.206.0",
3
+ "version": "4.207.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",