@cinerino/sdk 3.167.0 → 3.169.0-alpha.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.
@@ -40,7 +40,10 @@ async function main() {
40
40
  // const selectedEvent = { id: '7iri100jqrrpxy1' };
41
41
 
42
42
  console.log('searching ticket types...');
43
- const ticketOffers = await eventService.searchTicketOffers({ id: selectedEvent.id });
43
+ const ticketOffers = await eventService.searchTicketOffers({
44
+ id: selectedEvent.id,
45
+ priceSpecification: {}
46
+ });
44
47
  console.log(ticketOffers.length, 'ticketOffers found');
45
48
  console.log('チケットオファーは以下の通りです');
46
49
  console.log(ticketOffers.map((o) => {
@@ -20,7 +20,8 @@ async function main() {
20
20
  const offers = await eventService.searchTicketOffers({
21
21
  // limit: 2,
22
22
  // page: 9,
23
- id: 'al6aff83o'
23
+ id: 'al6aff83o',
24
+ priceSpecification: {}
24
25
  // availableAt?: {
25
26
  // id?: string;
26
27
  // };
@@ -13,4 +13,10 @@ export declare class AggregateOfferService extends Service {
13
13
  * オファー検索
14
14
  */
15
15
  search(params: Omit<factory.unitPriceOffer.ISearchConditions, 'project'> & IProjectionSearchConditions): Promise<ISearchResult<factory.aggregateOffer.IAggregateOffer[]>>;
16
+ /**
17
+ * 集計オファー削除
18
+ */
19
+ deleteById(params: {
20
+ id: string;
21
+ }): Promise<void>;
16
22
  }
@@ -90,6 +90,25 @@ var AggregateOfferService = /** @class */ (function (_super) {
90
90
  });
91
91
  });
92
92
  };
93
+ /**
94
+ * 集計オファー削除
95
+ */
96
+ AggregateOfferService.prototype.deleteById = function (params) {
97
+ return __awaiter(this, void 0, void 0, function () {
98
+ return __generator(this, function (_a) {
99
+ switch (_a.label) {
100
+ case 0: return [4 /*yield*/, this.fetch({
101
+ uri: "/aggregateOffers/" + encodeURIComponent(String(params.id)),
102
+ method: 'DELETE',
103
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
104
+ })];
105
+ case 1:
106
+ _a.sent();
107
+ return [2 /*return*/];
108
+ }
109
+ });
110
+ });
111
+ };
93
112
  return AggregateOfferService;
94
113
  }(service_1.Service));
95
114
  exports.AggregateOfferService = AggregateOfferService;
@@ -101,6 +101,7 @@ export declare class EventService extends Service {
101
101
  id?: string;
102
102
  };
103
103
  onlyValid?: boolean;
104
+ priceSpecification: Pick<factory.unitPriceOffer.IPriceSpecificationSearchConditions, 'appliesToMovieTicket'>;
104
105
  }): Promise<factory.product.ITicketOffer[]>;
105
106
  /**
106
107
  * イベントに対する座席検索
@@ -76,12 +76,6 @@ export declare class OfferService extends Service {
76
76
  * オファー更新
77
77
  */
78
78
  update(params: factory.unitPriceOffer.IUnitPriceOffer & IUnset): Promise<void>;
79
- /**
80
- * オファー削除
81
- */
82
- deleteById(params: {
83
- id: string;
84
- }): Promise<void>;
85
79
  /**
86
80
  * プロダクトオファー承認
87
81
  */
@@ -163,25 +163,6 @@ var OfferService = /** @class */ (function (_super) {
163
163
  });
164
164
  });
165
165
  };
166
- /**
167
- * オファー削除
168
- */
169
- OfferService.prototype.deleteById = function (params) {
170
- return __awaiter(this, void 0, void 0, function () {
171
- return __generator(this, function (_a) {
172
- switch (_a.label) {
173
- case 0: return [4 /*yield*/, this.fetch({
174
- uri: "/offers/" + encodeURIComponent(String(params.id)),
175
- method: 'DELETE',
176
- expectedStatusCodes: [http_status_1.NO_CONTENT]
177
- })];
178
- case 1:
179
- _a.sent();
180
- return [2 /*return*/];
181
- }
182
- });
183
- });
184
- };
185
166
  /**
186
167
  * プロダクトオファー承認
187
168
  */
@@ -147,6 +147,27 @@ export declare class EventService extends Service {
147
147
  event: {
148
148
  id: string;
149
149
  };
150
+ priceSpecification?: {
151
+ /**
152
+ * 適用決済カード条件
153
+ */
154
+ appliesToMovieTicket?: {
155
+ serviceType?: {
156
+ /**
157
+ * 適用決済カード区分が存在するかどうか
158
+ */
159
+ $exists?: boolean;
160
+ };
161
+ serviceOutput?: {
162
+ typeOf?: {
163
+ /**
164
+ * 適用決済方法タイプ(完全一致)
165
+ */
166
+ $eq?: string;
167
+ };
168
+ };
169
+ };
170
+ };
150
171
  }): Promise<Omit<factory.product.ITicketOffer, 'availableAtOrFrom'>[]>;
151
172
  /**
152
173
  * イベントに対する券種オファー検索(COA券種)
package/lib/bundle.js CHANGED
@@ -1820,6 +1820,25 @@ var AggregateOfferService = /** @class */ (function (_super) {
1820
1820
  });
1821
1821
  });
1822
1822
  };
1823
+ /**
1824
+ * 集計オファー削除
1825
+ */
1826
+ AggregateOfferService.prototype.deleteById = function (params) {
1827
+ return __awaiter(this, void 0, void 0, function () {
1828
+ return __generator(this, function (_a) {
1829
+ switch (_a.label) {
1830
+ case 0: return [4 /*yield*/, this.fetch({
1831
+ uri: "/aggregateOffers/" + encodeURIComponent(String(params.id)),
1832
+ method: 'DELETE',
1833
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
1834
+ })];
1835
+ case 1:
1836
+ _a.sent();
1837
+ return [2 /*return*/];
1838
+ }
1839
+ });
1840
+ });
1841
+ };
1823
1842
  return AggregateOfferService;
1824
1843
  }(service_1.Service));
1825
1844
  exports.AggregateOfferService = AggregateOfferService;
@@ -5335,25 +5354,6 @@ var OfferService = /** @class */ (function (_super) {
5335
5354
  });
5336
5355
  });
5337
5356
  };
5338
- /**
5339
- * オファー削除
5340
- */
5341
- OfferService.prototype.deleteById = function (params) {
5342
- return __awaiter(this, void 0, void 0, function () {
5343
- return __generator(this, function (_a) {
5344
- switch (_a.label) {
5345
- case 0: return [4 /*yield*/, this.fetch({
5346
- uri: "/offers/" + encodeURIComponent(String(params.id)),
5347
- method: 'DELETE',
5348
- expectedStatusCodes: [http_status_1.NO_CONTENT]
5349
- })];
5350
- case 1:
5351
- _a.sent();
5352
- return [2 /*return*/];
5353
- }
5354
- });
5355
- });
5356
- };
5357
5357
  /**
5358
5358
  * プロダクトオファー承認
5359
5359
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.167.0",
3
+ "version": "3.169.0-alpha.0",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {