@cinerino/sdk 3.167.0-alpha.9 → 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;
@@ -11936,6 +11957,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
11936
11957
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
11937
11958
  }
11938
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
+ };
11939
11971
  Object.defineProperty(exports, "__esModule", { value: true });
11940
11972
  exports.EventService = void 0;
11941
11973
  var http_status_1 = require("http-status");
@@ -12040,12 +12072,14 @@ var EventService = /** @class */ (function (_super) {
12040
12072
  */
12041
12073
  EventService.prototype.searchSeats = function (params) {
12042
12074
  return __awaiter(this, void 0, void 0, function () {
12075
+ var event, query;
12043
12076
  var _this = this;
12044
12077
  return __generator(this, function (_a) {
12078
+ event = params.event, query = __rest(params, ["event"]);
12045
12079
  return [2 /*return*/, this.fetch({
12046
12080
  uri: "/events/" + params.event.id + "/seats",
12047
12081
  method: 'GET',
12048
- qs: params,
12082
+ qs: query,
12049
12083
  expectedStatusCodes: [http_status_1.OK]
12050
12084
  })
12051
12085
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
@@ -12068,13 +12102,15 @@ var EventService = /** @class */ (function (_super) {
12068
12102
  */
12069
12103
  EventService.prototype.searchTicketOffers = function (params) {
12070
12104
  return __awaiter(this, void 0, void 0, function () {
12105
+ var event, query;
12071
12106
  var _this = this;
12072
12107
  return __generator(this, function (_a) {
12108
+ event = params.event, query = __rest(params, ["event"]);
12073
12109
  return [2 /*return*/, this.fetch({
12074
12110
  uri: "/events/" + params.event.id + "/offers/ticket",
12075
12111
  method: 'GET',
12076
12112
  expectedStatusCodes: [http_status_1.OK],
12077
- qs: params
12113
+ qs: query
12078
12114
  })
12079
12115
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
12080
12116
  return [2 /*return*/, response.json()];
@@ -12087,13 +12123,36 @@ var EventService = /** @class */ (function (_super) {
12087
12123
  */
12088
12124
  EventService.prototype.searchTicketOffers4COA = function (params) {
12089
12125
  return __awaiter(this, void 0, void 0, function () {
12126
+ var event, query;
12090
12127
  var _this = this;
12091
12128
  return __generator(this, function (_a) {
12129
+ event = params.event, query = __rest(params, ["event"]);
12092
12130
  return [2 /*return*/, this.fetch({
12093
12131
  uri: "/events/" + params.event.id + "/offers/ticket",
12094
12132
  method: 'GET',
12095
12133
  expectedStatusCodes: [http_status_1.OK],
12096
- 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
12097
12156
  })
12098
12157
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
12099
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'> & {
@@ -17,15 +23,9 @@ export declare class OfferCatalogService extends Service {
17
23
  */
18
24
  create(params: factory.offerCatalog.IOfferCatalog): Promise<ICreateResult>;
19
25
  /**
20
- * サブカタログ検索
21
- * 強制的にitemListElement.typeOf: { $eq: 'Offer' }
22
- */
23
- searchSubCatalogs(params: Omit<factory.offerCatalog.ISearchConditions, 'project'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
24
- /**
25
- * カタログ(親)検索
26
- * 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
26
+ * オファーカタログ検索
27
27
  */
28
- searchCatalogs(params: Omit<factory.offerCatalog.ISearchConditions, 'project'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
28
+ search(params: Omit<factory.offerCatalog.ISearchConditions, 'project' | 'relatedOffer'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
29
29
  /**
30
30
  * オファーカタログ更新
31
31
  */
@@ -14,17 +14,6 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
17
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
18
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
19
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -75,7 +64,6 @@ var __rest = (this && this.__rest) || function (s, e) {
75
64
  Object.defineProperty(exports, "__esModule", { value: true });
76
65
  exports.OfferCatalogService = void 0;
77
66
  var http_status_1 = require("http-status");
78
- var factory = require("../factory");
79
67
  var service_1 = require("../service");
80
68
  /**
81
69
  * オファーカタログサービス
@@ -105,50 +93,16 @@ var OfferCatalogService = /** @class */ (function (_super) {
105
93
  });
106
94
  };
107
95
  /**
108
- * サブカタログ検索
109
- * 強制的にitemListElement.typeOf: { $eq: 'Offer' }
96
+ * オファーカタログ検索
110
97
  */
111
- OfferCatalogService.prototype.searchSubCatalogs = function (params) {
98
+ OfferCatalogService.prototype.search = function (params) {
112
99
  return __awaiter(this, void 0, void 0, function () {
113
- var qs;
114
100
  var _this = this;
115
101
  return __generator(this, function (_a) {
116
- qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: factory.offerType.Offer } }) });
117
102
  return [2 /*return*/, this.fetch({
118
103
  uri: '/offerCatalogs',
119
104
  method: 'GET',
120
- qs: qs,
121
- expectedStatusCodes: [http_status_1.OK]
122
- })
123
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
124
- var _a;
125
- return __generator(this, function (_b) {
126
- switch (_b.label) {
127
- case 0:
128
- _a = {};
129
- return [4 /*yield*/, response.json()];
130
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
131
- _a)];
132
- }
133
- });
134
- }); })];
135
- });
136
- });
137
- };
138
- /**
139
- * カタログ(親)検索
140
- * 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
141
- */
142
- OfferCatalogService.prototype.searchCatalogs = function (params) {
143
- return __awaiter(this, void 0, void 0, function () {
144
- var qs;
145
- var _this = this;
146
- return __generator(this, function (_a) {
147
- qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: 'OfferCatalog' } }) });
148
- return [2 /*return*/, this.fetch({
149
- uri: '/catalogs',
150
- method: 'GET',
151
- qs: qs,
105
+ qs: params,
152
106
  expectedStatusCodes: [http_status_1.OK]
153
107
  })
154
108
  .then(function (response) { 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()];