@cinerino/sdk 3.116.0 → 3.119.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.
@@ -18,7 +18,7 @@ async function main() {
18
18
  state: ''
19
19
  });
20
20
 
21
- const outputService = new client.service.ServiceOutput({
21
+ const outputService = new client.service.Permit({
22
22
  endpoint: <string>process.env.API_ENDPOINT,
23
23
  auth: authClient,
24
24
  project: project
@@ -51,12 +51,12 @@ export async function main() {
51
51
  serviceType: '', // 情報空でよし
52
52
  serviceOutput: {
53
53
  reservationFor: {
54
- typeOf: client.factory.chevre.eventType.ScreeningEvent,
54
+ typeOf: client.factory.eventType.ScreeningEvent,
55
55
  id: 'bkz5a0isy'
56
56
  },
57
57
  reservedTicket: {
58
58
  ticketedSeat: {
59
- typeOf: client.factory.chevre.placeType.Seat,
59
+ typeOf: client.factory.placeType.Seat,
60
60
  seatingType: '', // 情報空でよし
61
61
  seatNumber: '', // 情報空でよし
62
62
  seatRow: '', // 情報空でよし
@@ -82,7 +82,7 @@ async function main() {
82
82
 
83
83
  // メンバーシップ検索
84
84
  const { data } = await productService.search({
85
- typeOf: { $eq: client.factory.chevre.product.ProductType.MembershipService }
85
+ typeOf: { $eq: client.factory.product.ProductType.MembershipService }
86
86
  });
87
87
  if (data.length === 0) {
88
88
  throw new Error('no membership products');
@@ -139,7 +139,7 @@ async function main() {
139
139
  },
140
140
  // ポイント特典付与先を指定
141
141
  pointAward: {
142
- // typeOf: client.factory.chevre.actionType.MoneyTransfer,
142
+ // typeOf: client.factory.actionType.MoneyTransfer,
143
143
  toLocation: { identifier: pointAwardToLocation.accountNumber, issuedThrough: pointAwardToLocation.issuedThrough },
144
144
  recipient: {
145
145
  id: transaction.agent.id,
@@ -58,7 +58,7 @@ async function main() {
58
58
 
59
59
  // イベント検索
60
60
  const searchScreeningEventsResult = await eventService.search({
61
- typeOf: client.factory.chevre.eventType.ScreeningEvent,
61
+ typeOf: client.factory.eventType.ScreeningEvent,
62
62
  // superEventLocationIdentifiers: [seller.identifier],
63
63
  inSessionFrom: moment()
64
64
  .toDate(),
@@ -166,7 +166,7 @@ async function main() {
166
166
  console.log('voiding credit card auth...');
167
167
  await paymentService.voidTransaction({
168
168
  id: creditCardPaymentAuth.id,
169
- object: { typeOf: client.factory.chevre.service.paymentService.PaymentServiceType.CreditCard },
169
+ object: { typeOf: client.factory.service.paymentService.PaymentServiceType.CreditCard },
170
170
  purpose: { typeOf: transaction.typeOf, id: transaction.id }
171
171
  });
172
172
  console.log('credit card auth voided');
@@ -284,11 +284,11 @@ async function authorizeSeatReservationByEvent(params: {
284
284
  console.log('チケットオファーは以下の通りです');
285
285
  console.log(ticketOffers.map((o) => {
286
286
  const unitPriceSpecification = o.priceSpecification.priceComponent
287
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.UnitPriceSpecification)
287
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.UnitPriceSpecification)
288
288
  .map((s) => `単価:${s.price}/${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.UnitPriceSpecification>>s).referenceQuantity.value}`)
289
289
  .join(' ');
290
290
  const categoryCodeCharge = o.priceSpecification.priceComponent
291
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.CategoryCodeChargeSpecification)
291
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.CategoryCodeChargeSpecification)
292
292
  .map((s) => `+${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.CategoryCodeChargeSpecification>>s).appliesToCategoryCode[0].codeValue}チャージ:${s.price} ${s.priceCurrency}`)
293
293
  .join(' ');
294
294
 
@@ -302,7 +302,7 @@ async function authorizeSeatReservationByEvent(params: {
302
302
  const seatOffers = searchSeatsResult.data;
303
303
  console.log(seatOffers.length, 'seatOffers found');
304
304
  const availableSeatOffers = seatOffers.filter(
305
- (o) => o.offers?.shift()?.availability === client.factory.chevre.itemAvailability.InStock
305
+ (o) => o.offers?.shift()?.availability === client.factory.itemAvailability.InStock
306
306
  );
307
307
  console.log(availableSeatOffers.length, 'availableSeatOffers found');
308
308
  if (availableSeatOffers.length <= 0) {
@@ -312,7 +312,7 @@ async function authorizeSeatReservationByEvent(params: {
312
312
  // ムビチケ以外のオファーを選択
313
313
  ticketOffers = ticketOffers.filter((offer) => {
314
314
  const movieTicketTypeChargeSpecification = offer.priceSpecification.priceComponent.find(
315
- (component) => component.typeOf === client.factory.chevre.priceSpecificationType.MovieTicketTypeChargeSpecification
315
+ (component) => component.typeOf === client.factory.priceSpecificationType.MovieTicketTypeChargeSpecification
316
316
  );
317
317
 
318
318
  return movieTicketTypeChargeSpecification === undefined;
@@ -58,7 +58,7 @@ async function main() {
58
58
 
59
59
  // イベント検索
60
60
  const searchScreeningEventsResult = await eventService.search({
61
- typeOf: client.factory.chevre.eventType.ScreeningEvent,
61
+ typeOf: client.factory.eventType.ScreeningEvent,
62
62
  // superEventLocationIdentifiers: [seller.identifier],
63
63
  inSessionFrom: moment()
64
64
  .toDate(),
@@ -157,7 +157,7 @@ async function main() {
157
157
  console.log('voiding credit card auth...');
158
158
  await paymentService.voidTransaction({
159
159
  id: creditCardPaymentAuth.id,
160
- object: { typeOf: client.factory.chevre.service.paymentService.PaymentServiceType.CreditCard },
160
+ object: { typeOf: client.factory.service.paymentService.PaymentServiceType.CreditCard },
161
161
  purpose: { typeOf: transaction.typeOf, id: transaction.id }
162
162
  });
163
163
  console.log('credit card auth voided');
@@ -275,11 +275,11 @@ async function authorizeSeatReservationByEvent(params: {
275
275
  console.log('チケットオファーは以下の通りです');
276
276
  console.log(ticketOffers.map((o) => {
277
277
  const unitPriceSpecification = o.priceSpecification.priceComponent
278
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.UnitPriceSpecification)
278
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.UnitPriceSpecification)
279
279
  .map((s) => `単価:${s.price}/${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.UnitPriceSpecification>>s).referenceQuantity.value}`)
280
280
  .join(' ');
281
281
  const categoryCodeCharge = o.priceSpecification.priceComponent
282
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.CategoryCodeChargeSpecification)
282
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.CategoryCodeChargeSpecification)
283
283
  .map((s) => `+${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.CategoryCodeChargeSpecification>>s).appliesToCategoryCode[0].codeValue}チャージ:${s.price} ${s.priceCurrency}`)
284
284
  .join(' ');
285
285
 
@@ -294,7 +294,7 @@ async function authorizeSeatReservationByEvent(params: {
294
294
  // const seatOffers = offers[0].containsPlace;
295
295
  console.log(seatOffers.length, 'seatOffers found');
296
296
  const availableSeatOffers
297
- = seatOffers.filter((o) => o.offers?.shift()?.availability === client.factory.chevre.itemAvailability.InStock);
297
+ = seatOffers.filter((o) => o.offers?.shift()?.availability === client.factory.itemAvailability.InStock);
298
298
  console.log(availableSeatOffers.length, 'availableSeatOffers found');
299
299
  if (availableSeatOffers.length <= 0) {
300
300
  throw new Error('No available seats');
@@ -304,7 +304,7 @@ async function authorizeSeatReservationByEvent(params: {
304
304
  ticketOffers = ticketOffers
305
305
  .filter((offer) => {
306
306
  const movieTicketTypeChargeSpecification = offer.priceSpecification.priceComponent.find(
307
- (component) => component.typeOf === client.factory.chevre.priceSpecificationType.MovieTicketTypeChargeSpecification
307
+ (component) => component.typeOf === client.factory.priceSpecificationType.MovieTicketTypeChargeSpecification
308
308
  );
309
309
 
310
310
  return movieTicketTypeChargeSpecification === undefined;
@@ -75,7 +75,7 @@ async function main() {
75
75
 
76
76
  // イベント検索
77
77
  const searchScreeningEventsResult = await eventService.search({
78
- typeOf: client.factory.chevre.eventType.ScreeningEvent,
78
+ typeOf: client.factory.eventType.ScreeningEvent,
79
79
  // superEventLocationIdentifiers: [seller.identifier],
80
80
  inSessionFrom: moment()
81
81
  .toDate(),
@@ -173,7 +173,7 @@ async function main() {
173
173
  console.log('voiding credit card auth...');
174
174
  await paymentService.voidTransaction({
175
175
  id: creditCardPaymentAuth.id,
176
- object: { typeOf: client.factory.chevre.service.paymentService.PaymentServiceType.CreditCard },
176
+ object: { typeOf: client.factory.service.paymentService.PaymentServiceType.CreditCard },
177
177
  purpose: { typeOf: transaction.typeOf, id: transaction.id }
178
178
  });
179
179
  console.log('credit card auth voided');
@@ -297,11 +297,11 @@ function authorizeSeatReservationByEvent(params: {
297
297
  console.log('チケットオファーは以下の通りです');
298
298
  console.log(ticketOffers.map((o) => {
299
299
  const unitPriceSpecification = o.priceSpecification.priceComponent
300
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.UnitPriceSpecification)
300
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.UnitPriceSpecification)
301
301
  .map((s) => `単価:${s.price}/${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.UnitPriceSpecification>>s).referenceQuantity.value}`)
302
302
  .join(' ');
303
303
  const categoryCodeCharge = o.priceSpecification.priceComponent
304
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.CategoryCodeChargeSpecification)
304
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.CategoryCodeChargeSpecification)
305
305
  .map((s) => `+${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.CategoryCodeChargeSpecification>>s).appliesToCategoryCode[0].codeValue}チャージ:${s.price} ${s.priceCurrency}`)
306
306
  .join(' ');
307
307
 
@@ -316,7 +316,7 @@ function authorizeSeatReservationByEvent(params: {
316
316
  // const seatOffers = offers[0].containsPlace;
317
317
  console.log(seatOffers.length, 'seatOffers found');
318
318
  const availableSeatOffers
319
- = seatOffers.filter((o) => o.offers?.shift()?.availability === client.factory.chevre.itemAvailability.InStock);
319
+ = seatOffers.filter((o) => o.offers?.shift()?.availability === client.factory.itemAvailability.InStock);
320
320
  console.log(availableSeatOffers.length, 'availableSeatOffers found');
321
321
  if (availableSeatOffers.length <= 0) {
322
322
  throw new Error('No available seats');
@@ -326,7 +326,7 @@ function authorizeSeatReservationByEvent(params: {
326
326
  ticketOffers = ticketOffers
327
327
  .filter((offer) => {
328
328
  const movieTicketTypeChargeSpecification = offer.priceSpecification.priceComponent.find(
329
- (component) => component.typeOf === client.factory.chevre.priceSpecificationType.MovieTicketTypeChargeSpecification
329
+ (component) => component.typeOf === client.factory.priceSpecificationType.MovieTicketTypeChargeSpecification
330
330
  );
331
331
 
332
332
  return movieTicketTypeChargeSpecification === undefined;
@@ -80,7 +80,7 @@ async function main() {
80
80
 
81
81
  // イベント検索
82
82
  const searchScreeningEventsResult = await eventService.search({
83
- typeOf: client.factory.chevre.eventType.ScreeningEvent,
83
+ typeOf: client.factory.eventType.ScreeningEvent,
84
84
  // superEventLocationIdentifiers: [seller.identifier],
85
85
  inSessionFrom: moment()
86
86
  .toDate(),
@@ -167,11 +167,11 @@ async function main() {
167
167
  console.log('チケットオファーは以下の通りです');
168
168
  console.log(ticketOffers.map((o) => {
169
169
  const unitPriceSpecification = o.priceSpecification.priceComponent
170
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.UnitPriceSpecification)
170
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.UnitPriceSpecification)
171
171
  .map((s) => `単価:${s.price}/${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.UnitPriceSpecification>>s).referenceQuantity.value}`)
172
172
  .join(' ');
173
173
  const categoryCodeCharge = o.priceSpecification.priceComponent
174
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.CategoryCodeChargeSpecification)
174
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.CategoryCodeChargeSpecification)
175
175
  .map((s) => `+${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.CategoryCodeChargeSpecification>>s).appliesToCategoryCode[0].codeValue}チャージ:${s.price} ${s.priceCurrency}`)
176
176
  .join(' ');
177
177
 
@@ -187,7 +187,7 @@ async function main() {
187
187
  const seatOffers = searchSeatsResult.data;
188
188
  console.log(seatOffers.length, 'seatOffers found');
189
189
  const availableSeatOffers
190
- = seatOffers.filter((o) => o.offers?.shift()?.availability === client.factory.chevre.itemAvailability.InStock);
190
+ = seatOffers.filter((o) => o.offers?.shift()?.availability === client.factory.itemAvailability.InStock);
191
191
  console.log(availableSeatOffers.length, 'availableSeatOffers found');
192
192
  if (availableSeatOffers.length <= 0) {
193
193
  throw new Error('No available seats');
@@ -196,7 +196,7 @@ async function main() {
196
196
  // ムビチケ以外のオファーを選択
197
197
  ticketOffers = ticketOffers.filter((offer) => {
198
198
  const movieTicketTypeChargeSpecification = offer.priceSpecification.priceComponent.find(
199
- (component) => component.typeOf === client.factory.chevre.priceSpecificationType.MovieTicketTypeChargeSpecification
199
+ (component) => component.typeOf === client.factory.priceSpecificationType.MovieTicketTypeChargeSpecification
200
200
  );
201
201
 
202
202
  return movieTicketTypeChargeSpecification === undefined;
@@ -204,7 +204,7 @@ async function main() {
204
204
  // 0円オファーを選択
205
205
  // ticketOffers = ticketOffers.filter((offer) => {
206
206
  // const unitPriceSpec = offer.priceSpecification.priceComponent.find(
207
- // (component) => component.typeOf === client.factory.chevre.priceSpecificationType.UnitPriceSpecification
207
+ // (component) => component.typeOf === client.factory.priceSpecificationType.UnitPriceSpecification
208
208
  // );
209
209
  // return unitPriceSpec.price === 0;
210
210
  // });
@@ -70,7 +70,7 @@ async function main() {
70
70
 
71
71
  // イベント検索
72
72
  const searchScreeningEventsResult = await eventService.search({
73
- typeOf: client.factory.chevre.eventType.ScreeningEvent,
73
+ typeOf: client.factory.eventType.ScreeningEvent,
74
74
  // superEventLocationIdentifiers: [seller.identifier],
75
75
  inSessionFrom: moment()
76
76
  .toDate(),
@@ -141,11 +141,11 @@ async function main() {
141
141
  console.log('チケットオファーは以下の通りです');
142
142
  console.log(ticketOffers.map((o) => {
143
143
  const unitPriceSpecification = o.priceSpecification.priceComponent
144
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.UnitPriceSpecification)
144
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.UnitPriceSpecification)
145
145
  .map((s) => `単価:${s.price}/${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.UnitPriceSpecification>>s).referenceQuantity.value}`)
146
146
  .join(' ');
147
147
  const categoryCodeCharge = o.priceSpecification.priceComponent
148
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.CategoryCodeChargeSpecification)
148
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.CategoryCodeChargeSpecification)
149
149
  .map((s) => `+${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.CategoryCodeChargeSpecification>>s).appliesToCategoryCode[0].codeValue}チャージ:${s.price} ${s.priceCurrency}`)
150
150
  .join(' ');
151
151
 
@@ -159,7 +159,7 @@ async function main() {
159
159
  const seatOffers = searchSeatsResult.data;
160
160
  console.log(seatOffers.length, 'seatOffers found');
161
161
  const availableSeatOffers =
162
- seatOffers.filter((o) => o.offers?.shift()?.availability === client.factory.chevre.itemAvailability.InStock);
162
+ seatOffers.filter((o) => o.offers?.shift()?.availability === client.factory.itemAvailability.InStock);
163
163
  console.log(availableSeatOffers.length, 'availableSeatOffers found');
164
164
  if (availableSeatOffers.length <= 0) {
165
165
  throw new Error('No available seats');
@@ -169,13 +169,13 @@ async function main() {
169
169
  ticketOffers = ticketOffers.filter((offer) => {
170
170
  // ムビチケ加算料金仕様が存在するかどうか
171
171
  const movieTicketTypeChargeSpecification = offer.priceSpecification.priceComponent.find(
172
- (component) => component.typeOf === client.factory.chevre.priceSpecificationType.MovieTicketTypeChargeSpecification
172
+ (component) => component.typeOf === client.factory.priceSpecificationType.MovieTicketTypeChargeSpecification
173
173
  );
174
174
 
175
175
  // tslint:disable-next-line:max-line-length
176
176
  const unitPriceSpec = <client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.UnitPriceSpecification> | undefined>
177
177
  offer.priceSpecification.priceComponent.find(
178
- (component) => component.typeOf === client.factory.chevre.priceSpecificationType.UnitPriceSpecification
178
+ (component) => component.typeOf === client.factory.priceSpecificationType.UnitPriceSpecification
179
179
  );
180
180
 
181
181
  // 希望する決済方法に適用されるオファーかどうか
@@ -290,7 +290,7 @@ async function main() {
290
290
  },
291
291
  reservedTicket: {
292
292
  ticketedSeat: {
293
- typeOf: client.factory.chevre.placeType.Seat,
293
+ typeOf: client.factory.placeType.Seat,
294
294
  seatingType: '', // 情報空でよし
295
295
  seatNumber: '', // 情報空でよし
296
296
  seatRow: '', // 情報空でよし
@@ -315,7 +315,7 @@ async function main() {
315
315
  throw new Error('有効なムビチケが存在しません');
316
316
  }
317
317
  // const movieTicketTypeChargeSpecification = selectedTicketOffer.priceSpecification.priceComponent.find(
318
- // (component) => component.typeOf === client.factory.chevre.priceSpecificationType.MovieTicketTypeChargeSpecification
318
+ // (component) => component.typeOf === client.factory.priceSpecificationType.MovieTicketTypeChargeSpecification
319
319
  // );
320
320
  let selectedMovieTickets = availableMovieTickets;
321
321
  // tslint:disable-next-line:max-line-length
@@ -371,7 +371,7 @@ async function main() {
371
371
  // await Promise.all(movieTicketPaymentAuths.map(async (movieTicketPaymentAuth) => {
372
372
  // await paymentService.voidTransaction({
373
373
  // id: movieTicketPaymentAuth.id,
374
- // object: { typeOf: client.factory.chevre.service.paymentService.PaymentServiceType.MovieTicket },
374
+ // object: { typeOf: client.factory.service.paymentService.PaymentServiceType.MovieTicket },
375
375
  // purpose: movieTicketPaymentAuth.purpose
376
376
  // });
377
377
  // }));
@@ -135,7 +135,7 @@ async function main() {
135
135
  },
136
136
  reservedTicket: {
137
137
  ticketedSeat: {
138
- typeOf: client.factory.chevre.placeType.Seat,
138
+ typeOf: client.factory.placeType.Seat,
139
139
  seatingType: '', // 情報空でよし
140
140
  seatNumber: '', // 情報空でよし
141
141
  seatRow: '', // 情報空でよし
@@ -58,7 +58,7 @@ async function main() {
58
58
 
59
59
  // イベント検索
60
60
  const searchScreeningEventsResult = await eventService.search({
61
- typeOf: client.factory.chevre.eventType.ScreeningEvent,
61
+ typeOf: client.factory.eventType.ScreeningEvent,
62
62
  // superEventLocationIdentifiers: [seller.identifier],
63
63
  inSessionFrom: moment()
64
64
  .toDate(),
@@ -164,7 +164,7 @@ async function main() {
164
164
  await wait(5000);
165
165
  await paymentService.voidTransaction({
166
166
  id: paymentAuth.id,
167
- object: { typeOf: client.factory.chevre.service.paymentService.PaymentServiceType.PaymentCard },
167
+ object: { typeOf: client.factory.service.paymentService.PaymentServiceType.PaymentCard },
168
168
  purpose: transaction
169
169
  });
170
170
 
@@ -287,11 +287,11 @@ function authorizeSeatReservationByEvent(params: {
287
287
  console.log('チケットオファーは以下の通りです');
288
288
  console.log(ticketOffers.map((o) => {
289
289
  const unitPriceSpecification = o.priceSpecification.priceComponent
290
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.UnitPriceSpecification)
290
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.UnitPriceSpecification)
291
291
  .map((s) => `単価:${s.price}/${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.UnitPriceSpecification>>s).referenceQuantity.value}`)
292
292
  .join(' ');
293
293
  const categoryCodeCharge = o.priceSpecification.priceComponent
294
- .filter((s) => s.typeOf === client.factory.chevre.priceSpecificationType.CategoryCodeChargeSpecification)
294
+ .filter((s) => s.typeOf === client.factory.priceSpecificationType.CategoryCodeChargeSpecification)
295
295
  .map((s) => `+${(<client.factory.priceSpecification.IPriceSpecification<client.factory.priceSpecificationType.CategoryCodeChargeSpecification>>s).appliesToCategoryCode[0].codeValue}チャージ:${s.price} ${s.priceCurrency}`)
296
296
  .join(' ');
297
297
 
@@ -305,7 +305,7 @@ function authorizeSeatReservationByEvent(params: {
305
305
  const seatOffers = searchSeatsResult.data;
306
306
  console.log(seatOffers.length, 'seatOffers found');
307
307
  const availableSeatOffers = seatOffers.filter(
308
- (o) => o.offers?.shift()?.availability === client.factory.chevre.itemAvailability.InStock
308
+ (o) => o.offers?.shift()?.availability === client.factory.itemAvailability.InStock
309
309
  );
310
310
  console.log(availableSeatOffers.length, 'availableSeatOffers found');
311
311
  if (availableSeatOffers.length <= 0) {
@@ -315,7 +315,7 @@ function authorizeSeatReservationByEvent(params: {
315
315
  // ムビチケ以外のオファーを選択
316
316
  ticketOffers = ticketOffers.filter((offer) => {
317
317
  const movieTicketTypeChargeSpecification = offer.priceSpecification.priceComponent.find(
318
- (component) => component.typeOf === client.factory.chevre.priceSpecificationType.MovieTicketTypeChargeSpecification
318
+ (component) => component.typeOf === client.factory.priceSpecificationType.MovieTicketTypeChargeSpecification
319
319
  );
320
320
 
321
321
  return movieTicketTypeChargeSpecification === undefined;