@cinerino/sdk 5.17.1 → 5.18.0-alpha.1

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.
@@ -61,6 +61,7 @@ app.get('/settings', (req, res) => {
61
61
 
62
62
  res.json({
63
63
  PROJECT_ID: process.env.PLAYGROUND_PROJECT_ID,
64
+ SELLER_ID: process.env.PLAYGROUND_SELLER_ID,
64
65
  DOMAIN: process.env.PLAYGROUND_AUTHORIZE_SERVER_DOMAIN,
65
66
  CLIENT_ID: process.env.PLAYGROUND_CLIENT_ID,
66
67
  CALLBACK_URL: `${endpoint}/signIn`,
@@ -266,7 +266,8 @@
266
266
  var placeService = new (await cinerino.loadService()).Place({
267
267
  endpoint: settings.API_ENDPOINT,
268
268
  auth: auth,
269
- project: { id: settings.PROJECT_ID }
269
+ project: { id: settings.PROJECT_ID },
270
+ seller: { id: settings.SELLER_ID }
270
271
  });
271
272
  console.log('placeService:', placeService);
272
273
  await placeService.searchMovieTheaters({})
@@ -291,7 +292,8 @@
291
292
  var creativeWorkService = new (await cinerino.loadService()).CreativeWork({
292
293
  endpoint: settings.API_ENDPOINT,
293
294
  auth: auth,
294
- project: { id: settings.PROJECT_ID }
295
+ project: { id: settings.PROJECT_ID },
296
+ seller: { id: settings.SELLER_ID }
295
297
  });
296
298
  await creativeWorkService.searchMovies({})
297
299
  .then(function (result) {
@@ -315,7 +317,8 @@
315
317
  var events = new (await cinerino.loadService()).Event({
316
318
  endpoint: settings.API_ENDPOINT,
317
319
  auth: auth,
318
- project: { id: settings.PROJECT_ID }
320
+ project: { id: settings.PROJECT_ID },
321
+ seller: { id: settings.SELLER_ID }
319
322
  });
320
323
  await events.search({
321
324
  typeOf: cinerino.factory.eventType.ScreeningEventSeries
@@ -341,7 +344,8 @@
341
344
  var events = new (await cinerino.loadService()).Event({
342
345
  endpoint: settings.API_ENDPOINT,
343
346
  auth: auth,
344
- project: { id: settings.PROJECT_ID }
347
+ project: { id: settings.PROJECT_ID },
348
+ seller: { id: settings.SELLER_ID }
345
349
  });
346
350
  await events.search({
347
351
  typeOf: cinerino.factory.eventType.ScreeningEvent
@@ -367,7 +371,8 @@
367
371
  var productService = new (await cinerino.loadService()).Product({
368
372
  endpoint: settings.API_ENDPOINT,
369
373
  auth: auth,
370
- project: { id: settings.PROJECT_ID }
374
+ project: { id: settings.PROJECT_ID },
375
+ seller: { id: settings.SELLER_ID }
371
376
  });
372
377
  await productService.search({
373
378
  typeOf: { $eq: cinerino.factory.product.ProductType.MembershipService }
@@ -393,7 +398,8 @@
393
398
  var productService = new (await cinerino.loadService()).Product({
394
399
  endpoint: settings.API_ENDPOINT,
395
400
  auth: auth,
396
- project: { id: settings.PROJECT_ID }
401
+ project: { id: settings.PROJECT_ID },
402
+ seller: { id: settings.SELLER_ID }
397
403
  });
398
404
  await productService.search({
399
405
  typeOf: { $eq: cinerino.factory.product.ProductType.PaymentCard }
@@ -418,7 +424,8 @@
418
424
  var people = new (await cinerino.loadService()).Person({
419
425
  endpoint: settings.API_ENDPOINT,
420
426
  auth: auth,
421
- project: { id: settings.PROJECT_ID }
427
+ project: { id: settings.PROJECT_ID },
428
+ seller: { id: settings.SELLER_ID }
422
429
  });
423
430
  await people.getProfile({})
424
431
  .then(function (contacts) {
@@ -441,7 +448,8 @@
441
448
  var personService = new (await cinerino.loadService()).Person({
442
449
  endpoint: settings.API_ENDPOINT,
443
450
  auth: auth,
444
- project: { id: settings.PROJECT_ID }
451
+ project: { id: settings.PROJECT_ID },
452
+ seller: { id: settings.SELLER_ID }
445
453
  });
446
454
  const orderDateFrom = new Date();
447
455
  // 3ヶ月前
@@ -474,7 +482,8 @@
474
482
  var ownershipInfoService = new (await cinerino.loadService()).person.OwnershipInfo({
475
483
  endpoint: settings.API_ENDPOINT,
476
484
  auth: auth,
477
- project: { id: settings.PROJECT_ID }
485
+ project: { id: settings.PROJECT_ID },
486
+ seller: { id: settings.SELLER_ID }
478
487
  });
479
488
  await ownershipInfoService.searchMyReservations({
480
489
  })
@@ -498,7 +507,8 @@
498
507
  var ownershipInfoService = new (await cinerino.loadService()).person.OwnershipInfo({
499
508
  endpoint: settings.API_ENDPOINT,
500
509
  auth: auth,
501
- project: { id: settings.PROJECT_ID }
510
+ project: { id: settings.PROJECT_ID },
511
+ seller: { id: settings.SELLER_ID }
502
512
  });
503
513
  await ownershipInfoService.searchMyMemberships({
504
514
  })
@@ -522,7 +532,8 @@
522
532
  var ownershipInfoService = new (await cinerino.loadService()).person.OwnershipInfo({
523
533
  endpoint: settings.API_ENDPOINT,
524
534
  auth: auth,
525
- project: { id: settings.PROJECT_ID }
535
+ project: { id: settings.PROJECT_ID },
536
+ seller: { id: settings.SELLER_ID }
526
537
  });
527
538
  await ownershipInfoService.searchMyPaymentCards({
528
539
  })
@@ -546,7 +557,8 @@
546
557
  var people = new (await cinerino.loadService()).Person({
547
558
  endpoint: settings.API_ENDPOINT,
548
559
  auth: auth,
549
- project: { id: settings.PROJECT_ID }
560
+ project: { id: settings.PROJECT_ID },
561
+ seller: { id: settings.SELLER_ID }
550
562
  });
551
563
  await people.addCreditCard({
552
564
  creditCard: {