@cinerino/sdk 3.167.0-alpha.8 → 3.167.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.
@@ -4381,6 +4381,27 @@ var EventService = /** @class */ (function (_super) {
4381
4381
  });
4382
4382
  });
4383
4383
  };
4384
+ /**
4385
+ * オファーで利用可能な適用決済カード条件を検索する
4386
+ */
4387
+ EventService.prototype.searchOfferAppliesToMovieTicket = function (params) {
4388
+ return __awaiter(this, void 0, void 0, function () {
4389
+ var id, query;
4390
+ var _this = this;
4391
+ return __generator(this, function (_a) {
4392
+ id = params.id, query = __rest(params, ["id"]);
4393
+ return [2 /*return*/, this.fetch({
4394
+ uri: "/events/" + encodeURIComponent(String(id)) + "/offers/appliesToMovieTicket",
4395
+ method: 'GET',
4396
+ qs: query,
4397
+ expectedStatusCodes: [http_status_1.OK]
4398
+ })
4399
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
4400
+ return [2 /*return*/, response.json()];
4401
+ }); }); })];
4402
+ });
4403
+ });
4404
+ };
4384
4405
  return EventService;
4385
4406
  }(service_1.Service));
4386
4407
  exports.EventService = EventService;
@@ -5465,6 +5486,17 @@ var __extends = (this && this.__extends) || (function () {
5465
5486
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5466
5487
  };
5467
5488
  })();
5489
+ var __assign = (this && this.__assign) || function () {
5490
+ __assign = Object.assign || function(t) {
5491
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5492
+ s = arguments[i];
5493
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5494
+ t[p] = s[p];
5495
+ }
5496
+ return t;
5497
+ };
5498
+ return __assign.apply(this, arguments);
5499
+ };
5468
5500
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5469
5501
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5470
5502
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -5515,6 +5547,7 @@ var __rest = (this && this.__rest) || function (s, e) {
5515
5547
  Object.defineProperty(exports, "__esModule", { value: true });
5516
5548
  exports.OfferCatalogService = void 0;
5517
5549
  var http_status_1 = require("http-status");
5550
+ var factory = require("../factory");
5518
5551
  var service_1 = require("../service");
5519
5552
  /**
5520
5553
  * オファーカタログサービス
@@ -5544,17 +5577,50 @@ var OfferCatalogService = /** @class */ (function (_super) {
5544
5577
  });
5545
5578
  };
5546
5579
  /**
5547
- * オファーカタログ検索
5548
- * レスポンス最適化(2023-02-28~)
5580
+ * サブカタログ検索
5581
+ * 強制的にitemListElement.typeOf: { $eq: 'Offer' }
5549
5582
  */
5550
- OfferCatalogService.prototype.search = function (params) {
5583
+ OfferCatalogService.prototype.searchSubCatalogs = function (params) {
5551
5584
  return __awaiter(this, void 0, void 0, function () {
5585
+ var qs;
5552
5586
  var _this = this;
5553
5587
  return __generator(this, function (_a) {
5588
+ qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: factory.offerType.Offer } }) });
5554
5589
  return [2 /*return*/, this.fetch({
5555
5590
  uri: '/offerCatalogs',
5556
5591
  method: 'GET',
5557
- qs: params,
5592
+ qs: qs,
5593
+ expectedStatusCodes: [http_status_1.OK]
5594
+ })
5595
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
5596
+ var _a;
5597
+ return __generator(this, function (_b) {
5598
+ switch (_b.label) {
5599
+ case 0:
5600
+ _a = {};
5601
+ return [4 /*yield*/, response.json()];
5602
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
5603
+ _a)];
5604
+ }
5605
+ });
5606
+ }); })];
5607
+ });
5608
+ });
5609
+ };
5610
+ /**
5611
+ * カタログ(親)検索
5612
+ * 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
5613
+ */
5614
+ OfferCatalogService.prototype.searchCatalogs = function (params) {
5615
+ return __awaiter(this, void 0, void 0, function () {
5616
+ var qs;
5617
+ var _this = this;
5618
+ return __generator(this, function (_a) {
5619
+ qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: 'OfferCatalog' } }) });
5620
+ return [2 /*return*/, this.fetch({
5621
+ uri: '/catalogs',
5622
+ method: 'GET',
5623
+ qs: qs,
5558
5624
  expectedStatusCodes: [http_status_1.OK]
5559
5625
  })
5560
5626
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
@@ -5662,7 +5728,7 @@ var OfferCatalogService = /** @class */ (function (_super) {
5662
5728
  }(service_1.Service));
5663
5729
  exports.OfferCatalogService = OfferCatalogService;
5664
5730
 
5665
- },{"../service":65,"http-status":294}],34:[function(require,module,exports){
5731
+ },{"../factory":60,"../service":65,"http-status":294}],34:[function(require,module,exports){
5666
5732
  "use strict";
5667
5733
  var __extends = (this && this.__extends) || (function () {
5668
5734
  var extendStatics = function (d, b) {
@@ -11891,6 +11957,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
11891
11957
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
11892
11958
  }
11893
11959
  };
11960
+ var __rest = (this && this.__rest) || function (s, e) {
11961
+ var t = {};
11962
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
11963
+ t[p] = s[p];
11964
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
11965
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
11966
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
11967
+ t[p[i]] = s[p[i]];
11968
+ }
11969
+ return t;
11970
+ };
11894
11971
  Object.defineProperty(exports, "__esModule", { value: true });
11895
11972
  exports.EventService = void 0;
11896
11973
  var http_status_1 = require("http-status");
@@ -11995,12 +12072,14 @@ var EventService = /** @class */ (function (_super) {
11995
12072
  */
11996
12073
  EventService.prototype.searchSeats = function (params) {
11997
12074
  return __awaiter(this, void 0, void 0, function () {
12075
+ var event, query;
11998
12076
  var _this = this;
11999
12077
  return __generator(this, function (_a) {
12078
+ event = params.event, query = __rest(params, ["event"]);
12000
12079
  return [2 /*return*/, this.fetch({
12001
12080
  uri: "/events/" + params.event.id + "/seats",
12002
12081
  method: 'GET',
12003
- qs: params,
12082
+ qs: query,
12004
12083
  expectedStatusCodes: [http_status_1.OK]
12005
12084
  })
12006
12085
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
@@ -12023,13 +12102,15 @@ var EventService = /** @class */ (function (_super) {
12023
12102
  */
12024
12103
  EventService.prototype.searchTicketOffers = function (params) {
12025
12104
  return __awaiter(this, void 0, void 0, function () {
12105
+ var event, query;
12026
12106
  var _this = this;
12027
12107
  return __generator(this, function (_a) {
12108
+ event = params.event, query = __rest(params, ["event"]);
12028
12109
  return [2 /*return*/, this.fetch({
12029
12110
  uri: "/events/" + params.event.id + "/offers/ticket",
12030
12111
  method: 'GET',
12031
12112
  expectedStatusCodes: [http_status_1.OK],
12032
- qs: params
12113
+ qs: query
12033
12114
  })
12034
12115
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
12035
12116
  return [2 /*return*/, response.json()];
@@ -12042,13 +12123,36 @@ var EventService = /** @class */ (function (_super) {
12042
12123
  */
12043
12124
  EventService.prototype.searchTicketOffers4COA = function (params) {
12044
12125
  return __awaiter(this, void 0, void 0, function () {
12126
+ var event, query;
12045
12127
  var _this = this;
12046
12128
  return __generator(this, function (_a) {
12129
+ event = params.event, query = __rest(params, ["event"]);
12047
12130
  return [2 /*return*/, this.fetch({
12048
12131
  uri: "/events/" + params.event.id + "/offers/ticket",
12049
12132
  method: 'GET',
12050
12133
  expectedStatusCodes: [http_status_1.OK],
12051
- qs: params
12134
+ qs: query
12135
+ })
12136
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
12137
+ return [2 /*return*/, response.json()];
12138
+ }); }); })];
12139
+ });
12140
+ });
12141
+ };
12142
+ /**
12143
+ * オファーで利用可能な適用決済カード条件を検索する
12144
+ */
12145
+ EventService.prototype.searchOfferAppliesToMovieTicket = function (params) {
12146
+ return __awaiter(this, void 0, void 0, function () {
12147
+ var event, query;
12148
+ var _this = this;
12149
+ return __generator(this, function (_a) {
12150
+ event = params.event, query = __rest(params, ["event"]);
12151
+ return [2 /*return*/, this.fetch({
12152
+ uri: "/events/" + params.event.id + "/offers/appliesToMovieTicket",
12153
+ method: 'GET',
12154
+ expectedStatusCodes: [http_status_1.OK],
12155
+ qs: query
12052
12156
  })
12053
12157
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
12054
12158
  return [2 /*return*/, response.json()];
@@ -108,4 +108,16 @@ export declare class EventService extends Service {
108
108
  searchSeats(params: {
109
109
  id: string;
110
110
  } & Omit<factory.place.seat.ISearchConditions, 'project'>): Promise<ISearchResult<factory.place.seat.IPlaceWithOffer[]>>;
111
+ /**
112
+ * オファーで利用可能な適用決済カード条件を検索する
113
+ */
114
+ searchOfferAppliesToMovieTicket(params: {
115
+ limit?: number;
116
+ page?: number;
117
+ id: string;
118
+ availableAt?: {
119
+ id?: string;
120
+ };
121
+ onlyValid?: boolean;
122
+ }): Promise<Pick<factory.priceSpecification.unitPrice.IAppliesToMovieTicket, 'serviceOutput'>[]>;
111
123
  }
@@ -325,6 +325,27 @@ var EventService = /** @class */ (function (_super) {
325
325
  });
326
326
  });
327
327
  };
328
+ /**
329
+ * オファーで利用可能な適用決済カード条件を検索する
330
+ */
331
+ EventService.prototype.searchOfferAppliesToMovieTicket = function (params) {
332
+ return __awaiter(this, void 0, void 0, function () {
333
+ var id, query;
334
+ var _this = this;
335
+ return __generator(this, function (_a) {
336
+ id = params.id, query = __rest(params, ["id"]);
337
+ return [2 /*return*/, this.fetch({
338
+ uri: "/events/" + encodeURIComponent(String(id)) + "/offers/appliesToMovieTicket",
339
+ method: 'GET',
340
+ qs: query,
341
+ expectedStatusCodes: [http_status_1.OK]
342
+ })
343
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
344
+ return [2 /*return*/, response.json()];
345
+ }); }); })];
346
+ });
347
+ });
348
+ };
328
349
  return EventService;
329
350
  }(service_1.Service));
330
351
  exports.EventService = EventService;
@@ -1,7 +1,13 @@
1
1
  import * as factory from '../factory';
2
2
  import { ISearchResult, Service } from '../service';
3
3
  export declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty'> & {
4
+ /**
5
+ * アイテム数
6
+ */
4
7
  numberOfItems?: number;
8
+ /**
9
+ * アイテムタイプ
10
+ */
5
11
  itemListElementTypeOf: factory.offerType.Offer | 'OfferCatalog';
6
12
  };
7
13
  export declare type IItemListElement = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification'> & {
@@ -18,9 +24,8 @@ export declare class OfferCatalogService extends Service {
18
24
  create(params: factory.offerCatalog.IOfferCatalog): Promise<ICreateResult>;
19
25
  /**
20
26
  * オファーカタログ検索
21
- * レスポンス最適化(2023-02-28~)
22
27
  */
23
- search(params: Omit<factory.offerCatalog.ISearchConditions, 'project'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
28
+ search(params: Omit<factory.offerCatalog.ISearchConditions, 'project' | 'relatedOffer'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
24
29
  /**
25
30
  * オファーカタログ更新
26
31
  */
@@ -94,7 +94,6 @@ var OfferCatalogService = /** @class */ (function (_super) {
94
94
  };
95
95
  /**
96
96
  * オファーカタログ検索
97
- * レスポンス最適化(2023-02-28~)
98
97
  */
99
98
  OfferCatalogService.prototype.search = function (params) {
100
99
  return __awaiter(this, void 0, void 0, function () {
@@ -0,0 +1,32 @@
1
+ import * as factory from '../factory';
2
+ import { ISearchResult, Service } from '../service';
3
+ export declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty' | 'relatedOffer'> & {
4
+ /**
5
+ * アイテム数
6
+ */
7
+ numberOfItems?: number;
8
+ /**
9
+ * アイテムタイプ
10
+ */
11
+ itemListElementTypeOf: factory.offerType.Offer;
12
+ };
13
+ export declare type IItemListElement = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification'> & {
14
+ sortIndex?: number;
15
+ };
16
+ export declare type ICreateResult = Omit<factory.offerCatalog.IOfferCatalog, 'itemListElement'>;
17
+ /**
18
+ * オファーカタログアイテムサービス
19
+ */
20
+ export declare class OfferCatalogItemService extends Service {
21
+ create(params: factory.offerCatalog.IOfferCatalog): Promise<ICreateResult>;
22
+ search(params: Omit<factory.offerCatalog.ISearchConditions, 'project'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
23
+ update(params: factory.offerCatalog.IOfferCatalog): Promise<void>;
24
+ deleteById(params: {
25
+ id: string;
26
+ }): Promise<void>;
27
+ searchItemListElement(params: {
28
+ id: string;
29
+ limit?: number;
30
+ page?: number;
31
+ }): Promise<ISearchResult<IItemListElement[]>>;
32
+ }
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
53
+ var __rest = (this && this.__rest) || function (s, e) {
54
+ var t = {};
55
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
+ t[p] = s[p];
57
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
+ t[p[i]] = s[p[i]];
61
+ }
62
+ return t;
63
+ };
64
+ Object.defineProperty(exports, "__esModule", { value: true });
65
+ exports.OfferCatalogItemService = void 0;
66
+ var http_status_1 = require("http-status");
67
+ var service_1 = require("../service");
68
+ /**
69
+ * オファーカタログアイテムサービス
70
+ */
71
+ var OfferCatalogItemService = /** @class */ (function (_super) {
72
+ __extends(OfferCatalogItemService, _super);
73
+ function OfferCatalogItemService() {
74
+ return _super !== null && _super.apply(this, arguments) || this;
75
+ }
76
+ OfferCatalogItemService.prototype.create = function (params) {
77
+ return __awaiter(this, void 0, void 0, function () {
78
+ var _this = this;
79
+ return __generator(this, function (_a) {
80
+ return [2 /*return*/, this.fetch({
81
+ uri: '/offerCatalogItems',
82
+ method: 'POST',
83
+ body: params,
84
+ expectedStatusCodes: [http_status_1.CREATED]
85
+ })
86
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
87
+ return [2 /*return*/, response.json()];
88
+ }); }); })];
89
+ });
90
+ });
91
+ };
92
+ OfferCatalogItemService.prototype.search = function (params) {
93
+ return __awaiter(this, void 0, void 0, function () {
94
+ var _this = this;
95
+ return __generator(this, function (_a) {
96
+ return [2 /*return*/, this.fetch({
97
+ uri: '/offerCatalogItems',
98
+ method: 'GET',
99
+ qs: params,
100
+ expectedStatusCodes: [http_status_1.OK]
101
+ })
102
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
103
+ var _a;
104
+ return __generator(this, function (_b) {
105
+ switch (_b.label) {
106
+ case 0:
107
+ _a = {};
108
+ return [4 /*yield*/, response.json()];
109
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
110
+ _a)];
111
+ }
112
+ });
113
+ }); })];
114
+ });
115
+ });
116
+ };
117
+ OfferCatalogItemService.prototype.update = function (params) {
118
+ return __awaiter(this, void 0, void 0, function () {
119
+ return __generator(this, function (_a) {
120
+ switch (_a.label) {
121
+ case 0: return [4 /*yield*/, this.fetch({
122
+ uri: "/offerCatalogItems/" + encodeURIComponent(String(params.id)),
123
+ method: 'PUT',
124
+ body: params,
125
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
126
+ })];
127
+ case 1:
128
+ _a.sent();
129
+ return [2 /*return*/];
130
+ }
131
+ });
132
+ });
133
+ };
134
+ OfferCatalogItemService.prototype.deleteById = function (params) {
135
+ return __awaiter(this, void 0, void 0, function () {
136
+ return __generator(this, function (_a) {
137
+ switch (_a.label) {
138
+ case 0: return [4 /*yield*/, this.fetch({
139
+ uri: "/offerCatalogItems/" + encodeURIComponent(String(params.id)),
140
+ method: 'DELETE',
141
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
142
+ })];
143
+ case 1:
144
+ _a.sent();
145
+ return [2 /*return*/];
146
+ }
147
+ });
148
+ });
149
+ };
150
+ OfferCatalogItemService.prototype.searchItemListElement = function (params) {
151
+ return __awaiter(this, void 0, void 0, function () {
152
+ var id, query;
153
+ var _this = this;
154
+ return __generator(this, function (_a) {
155
+ id = params.id, query = __rest(params, ["id"]);
156
+ return [2 /*return*/, this.fetch({
157
+ uri: "/offerCatalogItems/" + encodeURIComponent(String(id)) + "/itemListElement",
158
+ method: 'GET',
159
+ qs: query,
160
+ expectedStatusCodes: [http_status_1.OK]
161
+ })
162
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
163
+ var _a;
164
+ return __generator(this, function (_b) {
165
+ switch (_b.label) {
166
+ case 0:
167
+ _a = {};
168
+ return [4 /*yield*/, response.json()];
169
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
170
+ _a)];
171
+ }
172
+ });
173
+ }); })];
174
+ });
175
+ });
176
+ };
177
+ return OfferCatalogItemService;
178
+ }(service_1.Service));
179
+ exports.OfferCatalogItemService = OfferCatalogItemService;
@@ -32,6 +32,7 @@ import { MeService } from './chevre/me';
32
32
  import { MerchantReturnPolicyService } from './chevre/merchantReturnPolicy';
33
33
  import { OfferService } from './chevre/offer';
34
34
  import { OfferCatalogService } from './chevre/offerCatalog';
35
+ import { OfferCatalogItemService } from './chevre/offerCatalogItem';
35
36
  import { OfferItemConditionService } from './chevre/offerItemCondition';
36
37
  import { OrderService } from './chevre/order';
37
38
  import { OwnershipInfoService } from './chevre/ownershipInfo';
@@ -229,6 +230,11 @@ export declare namespace service {
229
230
  */
230
231
  class OfferCatalog extends OfferCatalogService {
231
232
  }
233
+ /**
234
+ * オファーカタログアイテムサービス
235
+ */
236
+ class OfferCatalogItem extends OfferCatalogItemService {
237
+ }
232
238
  /**
233
239
  * アイテムコンディションサービス
234
240
  */
@@ -50,6 +50,7 @@ var me_1 = require("./chevre/me");
50
50
  var merchantReturnPolicy_1 = require("./chevre/merchantReturnPolicy");
51
51
  var offer_1 = require("./chevre/offer");
52
52
  var offerCatalog_1 = require("./chevre/offerCatalog");
53
+ var offerCatalogItem_1 = require("./chevre/offerCatalogItem");
53
54
  var offerItemCondition_1 = require("./chevre/offerItemCondition");
54
55
  var order_1 = require("./chevre/order");
55
56
  var ownershipInfo_1 = require("./chevre/ownershipInfo");
@@ -453,6 +454,17 @@ var service;
453
454
  return OfferCatalog;
454
455
  }(offerCatalog_1.OfferCatalogService));
455
456
  service.OfferCatalog = OfferCatalog;
457
+ /**
458
+ * オファーカタログアイテムサービス
459
+ */
460
+ var OfferCatalogItem = /** @class */ (function (_super) {
461
+ __extends(OfferCatalogItem, _super);
462
+ function OfferCatalogItem() {
463
+ return _super !== null && _super.apply(this, arguments) || this;
464
+ }
465
+ return OfferCatalogItem;
466
+ }(offerCatalogItem_1.OfferCatalogItemService));
467
+ service.OfferCatalogItem = OfferCatalogItem;
456
468
  /**
457
469
  * アイテムコンディションサービス
458
470
  */
@@ -158,16 +158,6 @@ export declare class EventService extends Service {
158
158
  event: {
159
159
  id: string;
160
160
  };
161
- /**
162
- * 販売者
163
- */
164
- seller: {
165
- typeOf: factory.organizationType;
166
- id: string;
167
- };
168
- /**
169
- * 店舗(idにはアプリケーションクライアントIDを指定)
170
- */
171
161
  /**
172
162
  * ムビチケ券種もほしい場合に指定
173
163
  */
@@ -198,4 +188,17 @@ export declare class EventService extends Service {
198
188
  kbnEisyahousiki: string;
199
189
  };
200
190
  }): Promise<ICOATicketOffer[]>;
191
+ /**
192
+ * オファーで利用可能な適用決済カード条件を検索する
193
+ */
194
+ searchOfferAppliesToMovieTicket(params: {
195
+ limit?: number;
196
+ page?: number;
197
+ /**
198
+ * イベント
199
+ */
200
+ event: {
201
+ id: string;
202
+ };
203
+ }): Promise<Pick<factory.priceSpecification.unitPrice.IAppliesToMovieTicket, 'serviceOutput'>[]>;
201
204
  }
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
50
50
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
51
  }
52
52
  };
53
+ var __rest = (this && this.__rest) || function (s, e) {
54
+ var t = {};
55
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
+ t[p] = s[p];
57
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
+ t[p[i]] = s[p[i]];
61
+ }
62
+ return t;
63
+ };
53
64
  Object.defineProperty(exports, "__esModule", { value: true });
54
65
  exports.EventService = void 0;
55
66
  var http_status_1 = require("http-status");
@@ -154,12 +165,14 @@ var EventService = /** @class */ (function (_super) {
154
165
  */
155
166
  EventService.prototype.searchSeats = function (params) {
156
167
  return __awaiter(this, void 0, void 0, function () {
168
+ var event, query;
157
169
  var _this = this;
158
170
  return __generator(this, function (_a) {
171
+ event = params.event, query = __rest(params, ["event"]);
159
172
  return [2 /*return*/, this.fetch({
160
173
  uri: "/events/" + params.event.id + "/seats",
161
174
  method: 'GET',
162
- qs: params,
175
+ qs: query,
163
176
  expectedStatusCodes: [http_status_1.OK]
164
177
  })
165
178
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
@@ -182,13 +195,15 @@ var EventService = /** @class */ (function (_super) {
182
195
  */
183
196
  EventService.prototype.searchTicketOffers = function (params) {
184
197
  return __awaiter(this, void 0, void 0, function () {
198
+ var event, query;
185
199
  var _this = this;
186
200
  return __generator(this, function (_a) {
201
+ event = params.event, query = __rest(params, ["event"]);
187
202
  return [2 /*return*/, this.fetch({
188
203
  uri: "/events/" + params.event.id + "/offers/ticket",
189
204
  method: 'GET',
190
205
  expectedStatusCodes: [http_status_1.OK],
191
- qs: params
206
+ qs: query
192
207
  })
193
208
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
194
209
  return [2 /*return*/, response.json()];
@@ -201,13 +216,36 @@ var EventService = /** @class */ (function (_super) {
201
216
  */
202
217
  EventService.prototype.searchTicketOffers4COA = function (params) {
203
218
  return __awaiter(this, void 0, void 0, function () {
219
+ var event, query;
204
220
  var _this = this;
205
221
  return __generator(this, function (_a) {
222
+ event = params.event, query = __rest(params, ["event"]);
206
223
  return [2 /*return*/, this.fetch({
207
224
  uri: "/events/" + params.event.id + "/offers/ticket",
208
225
  method: 'GET',
209
226
  expectedStatusCodes: [http_status_1.OK],
210
- qs: params
227
+ qs: query
228
+ })
229
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
230
+ return [2 /*return*/, response.json()];
231
+ }); }); })];
232
+ });
233
+ });
234
+ };
235
+ /**
236
+ * オファーで利用可能な適用決済カード条件を検索する
237
+ */
238
+ EventService.prototype.searchOfferAppliesToMovieTicket = function (params) {
239
+ return __awaiter(this, void 0, void 0, function () {
240
+ var event, query;
241
+ var _this = this;
242
+ return __generator(this, function (_a) {
243
+ event = params.event, query = __rest(params, ["event"]);
244
+ return [2 /*return*/, this.fetch({
245
+ uri: "/events/" + params.event.id + "/offers/appliesToMovieTicket",
246
+ method: 'GET',
247
+ expectedStatusCodes: [http_status_1.OK],
248
+ qs: query
211
249
  })
212
250
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
213
251
  return [2 /*return*/, response.json()];