@chevre/factory 4.264.0 → 4.267.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.
@@ -9,8 +9,7 @@ export declare type IAgent = ActionFactory.IParticipantAsProject;
9
9
  /**
10
10
  * 予約取消対象
11
11
  */
12
- export declare type IObject = IObject4future;
13
- export interface IObject4future {
12
+ export interface IObject {
14
13
  typeOf: ReservationType.EventReservation;
15
14
  id: string;
16
15
  issuedThrough?: {
@@ -13,7 +13,7 @@ export interface IPaymentService extends PayActionFactory.IPaymentService {
13
13
  * 販売者
14
14
  */
15
15
  seller: {
16
- typeOf: OrganizationType;
16
+ typeOf: OrganizationType.Corporation;
17
17
  id: string;
18
18
  };
19
19
  }
@@ -106,7 +106,7 @@ export interface IItemOffered {
106
106
  }
107
107
  export declare type IOfferedThrough = WebAPIFactory.IService<WebAPIFactory.Identifier>;
108
108
  export interface ISeller {
109
- typeOf: OrganizationType;
109
+ typeOf: OrganizationType.Corporation;
110
110
  id: string;
111
111
  name?: string | IMultilingualString;
112
112
  }
package/lib/offer.d.ts CHANGED
@@ -3,12 +3,13 @@ import { ICategoryCode } from './categoryCode';
3
3
  import { ItemAvailability } from './itemAvailability';
4
4
  import { IMonetaryAmount } from './monetaryAmount';
5
5
  import { OfferType } from './offerType';
6
+ import { OrganizationType } from './organizationType';
6
7
  import { PriceCurrency } from './priceCurrency';
7
8
  import { IPriceSpecification } from './priceSpecification';
8
9
  import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
9
10
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
10
11
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
11
- import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
12
+ import { IAppliesToMovieTicket, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
12
13
  import { PriceSpecificationType } from './priceSpecificationType';
13
14
  import { ProductType } from './product';
14
15
  import { IProject } from './project';
@@ -21,7 +22,7 @@ import { UnitCode } from './unitCode';
21
22
  import { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder } from './offer/merchantReturnPolicy';
22
23
  import * as SeatReservationOfferFactory from './offer/seatReservation';
23
24
  /**
24
- * オファーカテゴリーインターフェース
25
+ * オファーカテゴリー
25
26
  */
26
27
  export interface ICategory {
27
28
  project: Pick<IProject, 'id' | 'typeOf'>;
@@ -29,13 +30,13 @@ export interface ICategory {
29
30
  codeValue?: string;
30
31
  }
31
32
  /**
32
- * アドオンインターフェース
33
+ * アドオン
33
34
  */
34
35
  export declare type IAddOn = IOffer;
35
36
  export declare type IEligibleCategoryCode = Pick<ICategoryCode, 'project' | 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'>;
36
37
  export declare type IEligibleMonetaryAmount = IMonetaryAmount;
37
38
  /**
38
- * 適用サブ予約条件インターフェース
39
+ * 適用サブ予約条件
39
40
  */
40
41
  export interface IEligibleSubReservation {
41
42
  /**
@@ -50,15 +51,15 @@ export interface IEligibleSubReservation {
50
51
  };
51
52
  }
52
53
  /**
53
- * 販売者インターフェース
54
+ * 販売者
54
55
  */
55
56
  export interface ISeller {
56
- typeOf?: string;
57
+ typeOf?: OrganizationType.Corporation;
57
58
  id?: string;
58
59
  }
59
60
  export declare type IOfferedThrough = WebAPIFactory.IService<WebAPIFactory.Identifier>;
60
61
  /**
61
- * レート制限インターフェース
62
+ * レート制限
62
63
  * どのスコープで何秒に1席までか
63
64
  */
64
65
  export interface IValidRateLimit {
@@ -194,7 +195,7 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
194
195
  additionalProperty?: IPropertyValue<string>[];
195
196
  }
196
197
  /**
197
- * 単価オファーの提供アイテムインターフェース
198
+ * 単価オファーの提供アイテム
198
199
  */
199
200
  export interface IItemOffered {
200
201
  typeOf: ProductType;
@@ -233,7 +234,13 @@ export interface IItemOffered {
233
234
  };
234
235
  }
235
236
  /**
236
- * 単価オファーインターフェース
237
+ * 単価オファーの価格仕様
238
+ */
239
+ export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecification, 'appliesToMovieTicket'> & {
240
+ appliesToMovieTicket?: IAppliesToMovieTicket[];
241
+ };
242
+ /**
243
+ * 単価オファー
237
244
  */
238
245
  export interface IUnitPriceOffer extends Omit<IOffer, 'seller'> {
239
246
  /**
@@ -243,17 +250,17 @@ export interface IUnitPriceOffer extends Omit<IOffer, 'seller'> {
243
250
  /**
244
251
  * 単価仕様
245
252
  */
246
- priceSpecification?: IUnitPriceSpecification;
253
+ priceSpecification?: IUnitPriceOfferPriceSpecification;
247
254
  itemOffered?: IItemOffered;
248
255
  }
249
256
  /**
250
- * ソート条件インターフェース
257
+ * ソート条件
251
258
  */
252
259
  export interface ISortOrder {
253
260
  'priceSpecification.price'?: SortType;
254
261
  }
255
262
  /**
256
- * 価格仕様検索条件インターフェース
263
+ * 価格仕様検索条件
257
264
  */
258
265
  export interface IPriceSpecificationSearchConditions {
259
266
  appliesToMovieTicket?: {
@@ -295,7 +302,7 @@ export interface IPriceSpecificationSearchConditions {
295
302
  };
296
303
  }
297
304
  /**
298
- * 検索条件インターフェース
305
+ * 検索条件
299
306
  */
300
307
  export interface ISearchConditions {
301
308
  limit?: number;
@@ -378,7 +385,7 @@ export interface ISearchConditions {
378
385
  /**
379
386
  * 承認時に提供される価格仕様要素
380
387
  */
381
- export declare type ITicketPriceComponent = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceSpecification;
388
+ export declare type ITicketPriceComponent = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceOfferPriceSpecification;
382
389
  /**
383
390
  * 承認時に提供される価格仕様
384
391
  */
package/lib/order.d.ts CHANGED
@@ -16,7 +16,7 @@ import { IPerson, IProfile } from './person';
16
16
  import { PersonType } from './personType';
17
17
  import { PlaceType } from './placeType';
18
18
  import { PriceCurrency } from './priceCurrency';
19
- import { IProduct, IServiceType, ProductType } from './product';
19
+ import { IProduct, ProductType } from './product';
20
20
  import { IPropertyValue } from './propertyValue';
21
21
  import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
22
22
  import * as EventReservationFactory from './reservation/event';
@@ -236,7 +236,7 @@ export interface IEventServiceAsOrderedItem {
236
236
  typeOf: ReservationType.EventReservation | ReservationType.ReservationPackage;
237
237
  reservationFor: IReservationFor4OrderedItem;
238
238
  };
239
- serviceType?: IServiceType;
239
+ serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
240
240
  }
241
241
  export declare type IProductAsOrderedItem = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
242
242
  /**
@@ -45,12 +45,14 @@ export interface ISubReservation {
45
45
  ticketedSeat: ReservationFactory.ISeat;
46
46
  };
47
47
  }
48
+ export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
49
+ export import IIssuedThrough = ReservationFactory.IIssuedThrough;
48
50
  /**
49
51
  * イベント予約
50
52
  */
51
53
  export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
52
54
  id: string;
53
- issuedThrough: ReservationFactory.IIssuedThrough;
55
+ issuedThrough: IIssuedThrough;
54
56
  reservationFor: IReservationFor;
55
57
  reservationNumber: string;
56
58
  reservationStatus: ReservationStatusType;
@@ -166,9 +166,11 @@ export interface IBroker {
166
166
  name?: string;
167
167
  }
168
168
  export declare type IProgramMembershipUsed = IPermit;
169
+ export declare type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
169
170
  export interface IIssuedThrough {
170
171
  typeOf: ProductType.EventService;
171
- serviceType?: IServiceType;
172
+ serviceType?: IServiceTypeOfIssuedThrough;
173
+ id?: string;
172
174
  }
173
175
  /**
174
176
  * 予約
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.264.0",
3
+ "version": "4.267.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",