@chevre/factory 4.205.0 → 4.208.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;
@@ -141,6 +141,11 @@ export interface ISearchConditions {
141
141
  $eq?: string;
142
142
  $in?: string[];
143
143
  };
144
+ object?: {
145
+ paymentMethodId?: {
146
+ $eq?: string;
147
+ };
148
+ };
144
149
  orderNumber?: {
145
150
  $in?: string[];
146
151
  };
@@ -1,5 +1,5 @@
1
1
  import * as GMO from '@motionpicture/gmo-service';
2
- import { IAgent as IPayAgent, IAttributes as IPayActionAttributes, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient } from '../action/trade/pay';
2
+ import { IAgent as IPayAgent, IAttributes as IPayActionAttributes, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient } from '../action/trade/pay';
3
3
  import * as TransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
@@ -18,8 +18,8 @@ export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<
18
18
  export interface IStartParams extends TransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
19
19
  }
20
20
  export interface IPotentialActionsParams {
21
- pay?: {
22
- purpose?: IPayPurpose;
21
+ pay: {
22
+ purpose: IOrderAsPayPurpose;
23
23
  };
24
24
  }
25
25
  /**
@@ -29,7 +29,7 @@ export interface IConfirmParams {
29
29
  id?: string;
30
30
  transactionNumber?: string;
31
31
  endDate?: Date;
32
- potentialActions?: IPotentialActionsParams;
32
+ potentialActions: IPotentialActionsParams;
33
33
  }
34
34
  export declare type IResult = any;
35
35
  export declare type IError = any;
@@ -177,11 +177,6 @@ export interface IConfirmingReservation {
177
177
  underName?: ReservationFactory.IUnderName;
178
178
  additionalProperty?: IPropertyValue<string>[];
179
179
  }
180
- export interface IPotentialActionsParams {
181
- reserve?: {
182
- potentialActions?: {};
183
- };
184
- }
185
180
  /**
186
181
  * 確定パラメーターインターフェース
187
182
  */
@@ -190,14 +185,10 @@ export interface IConfirmParams {
190
185
  transactionNumber?: string;
191
186
  object?: {
192
187
  /**
193
- * 最終的な予約の属性を指定できます
188
+ * 最終的な予約の属性を指定
194
189
  */
195
190
  reservations: IConfirmingReservation[];
196
191
  };
197
- /**
198
- * 予約確定後アクション
199
- */
200
- potentialActions?: IPotentialActionsParams;
201
192
  }
202
193
  export interface IResult {
203
194
  }
@@ -213,19 +204,14 @@ export interface IObjectWithoutDetail {
213
204
  };
214
205
  }
215
206
  export declare type IReservationFor = IEventReservationReservationFor;
216
- export interface IEventReservationWithAnyReservationFor extends IEventReservation {
217
- reservationFor: any;
218
- }
219
- export interface ISubReservation extends IEventReservationWithAnyReservationFor {
220
- reservationFor: undefined;
221
- }
207
+ export declare type IObjectSubReservation = Omit<IEventReservation, 'reservationFor'>;
222
208
  /**
223
209
  * 取引対象物インターフェース
224
210
  */
225
211
  export interface IObject extends IReservationPackage {
226
212
  acceptedOffer?: IAcceptedOffer4object[];
227
213
  reservationFor?: IReservationFor;
228
- subReservation?: ISubReservation[];
214
+ subReservation?: IObjectSubReservation[];
229
215
  }
230
216
  export interface IPotentialActions {
231
217
  reserve: ReserveActionFactory.IAttributes[];
@@ -42,7 +42,8 @@ export declare type IGoodWithDetail = IReservationWithDetail | IPermit;
42
42
  /**
43
43
  * 所有者インターフェース
44
44
  */
45
- export declare type IOwner = ISeller | ICustomer;
45
+ export declare type IOwner = Omit<ICustomer, 'name'>;
46
+ export declare type IAcquiredFrom = ISeller;
46
47
  export declare type OwnershipInfoType = 'OwnershipInfo';
47
48
  /**
48
49
  * 所有権インターフェース
@@ -68,7 +69,7 @@ export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
68
69
  /**
69
70
  * The organization or person from which the product was acquired.
70
71
  */
71
- acquiredFrom?: IOwner;
72
+ acquiredFrom?: IAcquiredFrom;
72
73
  /**
73
74
  * The date and time of obtaining the product.
74
75
  */
@@ -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
  */
@@ -184,8 +181,8 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
184
181
  additionalTicketText?: string;
185
182
  /**
186
183
  * Who made the reservation.
184
+ * SupersededBy broker(2022-05-13~)
187
185
  */
188
- bookingAgent?: any;
189
186
  /**
190
187
  * Date the reservation was made.
191
188
  */
@@ -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,4 +1,3 @@
1
- import { IOffer } from './offer';
2
1
  import { IOrganization } from './organization';
3
2
  import { OrganizationType } from './organizationType';
4
3
  import { IProject } from './project';
@@ -8,24 +7,23 @@ import { SortType } from './sortType';
8
7
  * 利用可能決済インターフェース
9
8
  */
10
9
  export interface IPaymentAccepted {
10
+ /**
11
+ * 決済方法区分
12
+ */
11
13
  paymentMethodType: string;
12
14
  }
13
- export declare type IMakesOffer = IOffer;
14
15
  /**
15
16
  * サービス提供エリアインターフェース
16
17
  */
17
- export declare type IAreaServed = any;
18
18
  export interface ISeller extends IOrganization {
19
19
  project: IProject;
20
20
  /**
21
21
  * The geographic area where a service or offered item is provided.
22
22
  */
23
- areaServed?: IAreaServed[];
24
23
  branchCode?: string;
25
24
  /**
26
25
  * A pointer to products or services offered by the organization or person.
27
26
  */
28
- makesOffer?: IMakesOffer[];
29
27
  paymentAccepted?: IPaymentAccepted[];
30
28
  typeOf: OrganizationType;
31
29
  }
@@ -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.205.0",
3
+ "version": "4.208.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",