@cinerino/sdk 10.19.0-alpha.3 → 10.19.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.
@@ -62,7 +62,7 @@ async function main() {
62
62
  .map((s) => `+${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.MovieTicketTypeChargeSpecification>>s).appliesToVideoFormat}チャージ:${s.price} ${s.priceCurrency}`)
63
63
  .join(' ');
64
64
 
65
- return `${o.id} ${(<client.factory.multilingualString>o.name).ja} ${unitPriceSpecification?.price} ${o.priceCurrency} ${categoryCodeCharge} ${mvtkCharge}`;
65
+ return `${o.id} ${(<client.factory.multilingualString>o.name).ja} ${unitPriceSpecification?.price} ${categoryCodeCharge} ${mvtkCharge}`;
66
66
  })
67
67
  .join('\n'));
68
68
 
@@ -12,8 +12,7 @@ const profile = {
12
12
  telephone: '+819012345678'
13
13
  };
14
14
 
15
- export type IAuthorizeReservationAction
16
- = client.factory.action.authorize.offer.eventService.IAction<client.factory.service.webAPI.Identifier.Chevre>;
15
+ export type IAuthorizeReservationAction = client.factory.action.authorize.offer.eventService.IAction;
17
16
 
18
17
  // tslint:disable-next-line:max-func-body-length
19
18
  async function main() {
@@ -12,8 +12,7 @@ const profile = {
12
12
  telephone: '+819012345678'
13
13
  };
14
14
 
15
- export type IAuthorizeReservationAction
16
- = client.factory.action.authorize.offer.eventService.IAction<client.factory.service.webAPI.Identifier.Chevre>;
15
+ export type IAuthorizeReservationAction = client.factory.action.authorize.offer.eventService.IAction;
17
16
 
18
17
  // tslint:disable-next-line:max-func-body-length
19
18
  async function main() {
@@ -128,10 +128,7 @@ async function main() {
128
128
  }
129
129
  }
130
130
 
131
- type IAuthorizeReservationAction = Pick<
132
- client.factory.action.authorize.offer.eventService.IAction<client.factory.service.webAPI.Identifier.Chevre>,
133
- 'id'
134
- > & {
131
+ type IAuthorizeReservationAction = Pick<client.factory.action.authorize.offer.eventService.IAction, 'id'> & {
135
132
  result?: {
136
133
  price?: number;
137
134
  };
@@ -178,7 +175,7 @@ async function authorizeSeatReservationByEvent(params: {
178
175
  .map((s) => `+${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.CategoryCodeChargeSpecification>>s).appliesToCategoryCode[0].codeValue}チャージ:${s.price} ${s.priceCurrency}`)
179
176
  .join(' ');
180
177
 
181
- return `${o.id} ${(<client.factory.multilingualString>o.name).ja} ${unitPriceSpecification} ${o.priceCurrency} ${categoryCodeCharge}`;
178
+ return `${o.id} ${(<client.factory.multilingualString>o.name).ja} ${unitPriceSpecification} ${categoryCodeCharge}`;
182
179
  })
183
180
  .join('\n'));
184
181
 
@@ -200,10 +200,7 @@ async function main() {
200
200
  }
201
201
  }
202
202
 
203
- type IAuthorizeReservationAction = Pick<
204
- client.factory.action.authorize.offer.eventService.IAction<client.factory.service.webAPI.Identifier.Chevre>,
205
- 'id'
206
- > & {
203
+ type IAuthorizeReservationAction = Pick<client.factory.action.authorize.offer.eventService.IAction, 'id'> & {
207
204
  result?: {
208
205
  price?: number;
209
206
  };
@@ -249,7 +246,7 @@ async function authorizeSeatReservationByEvent(params: {
249
246
  .map((s) => `+${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.CategoryCodeChargeSpecification>>s).appliesToCategoryCode[0].codeValue}チャージ:${s.price} ${s.priceCurrency}`)
250
247
  .join(' ');
251
248
 
252
- return `${o.id} ${(<client.factory.multilingualString>o.name).ja} ${unitPriceSpecification} ${o.priceCurrency} ${categoryCodeCharge}`;
249
+ return `${o.id} ${(<client.factory.multilingualString>o.name).ja} ${unitPriceSpecification} ${categoryCodeCharge}`;
253
250
  })
254
251
  .join('\n'));
255
252
 
@@ -76,6 +76,7 @@ export declare class EventService extends Service {
76
76
  id?: string;
77
77
  };
78
78
  onlyValid?: boolean;
79
+ includePotentialSpec?: boolean;
79
80
  priceSpecification: Pick<factory.unitPriceOffer.IPriceSpecificationSearchConditions, 'appliesToMovieTicket'>;
80
81
  includedInDataCatalog: {
81
82
  /**
@@ -83,7 +84,7 @@ export declare class EventService extends Service {
83
84
  */
84
85
  id?: string;
85
86
  };
86
- }): Promise<factory.product.ITicketOffer[]>;
87
+ }): Promise<Omit<factory.product.ITicketOffer, 'priceCurrency'>[]>;
87
88
  /**
88
89
  * イベントに対する座席検索
89
90
  */
@@ -37,7 +37,7 @@ export interface IStartParams {
37
37
  };
38
38
  }
39
39
  export declare type IStartPlaceOrderResult = Pick<factory.transaction.ITransaction<factory.transactionType.PlaceOrder>, 'expires' | 'startDate' | 'id'>;
40
- declare type IAuthorizeEventServiceAction = factory.action.authorize.offer.eventService.IAction<factory.service.webAPI.Identifier.Chevre>;
40
+ declare type IAuthorizeEventServiceAction = factory.action.authorize.offer.eventService.IAction;
41
41
  export declare type IAuthorizeEventServiceResult = Pick<IAuthorizeEventServiceAction, 'id'> & {
42
42
  result?: {
43
43
  price?: number;
@@ -218,6 +218,14 @@ export declare class EventService extends Service {
218
218
  event: {
219
219
  id: string;
220
220
  };
221
+ /**
222
+ * 潜在的な価格仕様をレスポンスに含めるかどうか
223
+ * 未決定の座席区分加算料金など
224
+ * trueを指定した場合、
225
+ * 区分加算料金を適用するオファーにはpriceSpecification.priceComponentにfactory.product.IPotentialCategoryCodeChargePriceComponentが含まれ、
226
+ * 区分加算料金を適用しないオファーには含まれない
227
+ */
228
+ includePotentialSpec?: boolean;
221
229
  priceSpecification?: {
222
230
  /**
223
231
  * 適用決済カード条件
@@ -250,7 +258,7 @@ export declare class EventService extends Service {
250
258
  */
251
259
  id?: string;
252
260
  };
253
- }): Promise<Omit<factory.product.ITicketOffer, 'availableAtOrFrom'>[]>;
261
+ }): Promise<Omit<factory.product.ITicketOffer, 'priceCurrency'>[]>;
254
262
  /**
255
263
  * イベントに対する券種オファー検索(COA券種)
256
264
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "10.19.0-alpha.3",
3
+ "version": "10.19.0",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -92,7 +92,7 @@
92
92
  "watchify": "^3.11.1"
93
93
  },
94
94
  "dependencies": {
95
- "@chevre/factory": "4.392.0-alpha.0",
95
+ "@chevre/factory": "4.392.0-alpha.5",
96
96
  "debug": "3.2.7",
97
97
  "http-status": "1.7.4",
98
98
  "idtoken-verifier": "2.0.3",