@cinerino/sdk 12.12.0-alpha.1 → 12.12.0-alpha.3

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.
@@ -0,0 +1,42 @@
1
+ // tslint:disable:no-implicit-dependencies no-console
2
+ // import * as moment from 'moment';
3
+
4
+ import * as client from '../../../../lib/index';
5
+
6
+ const PROJECT_ID = String(process.env.PROJECT_ID);
7
+ const SELLER_ID = '59d20831e53ebc2b4e774466';
8
+
9
+ async function main() {
10
+ const authClient = await client.auth.ClientCredentials.createInstance({
11
+ domain: <string>process.env.CHEVRE_AUTHORIZE_SERVER_DOMAIN,
12
+ clientId: <string>process.env.CHEVRE_CLIENT_ID,
13
+ clientSecret: <string>process.env.CHEVRE_CLIENT_SECRET,
14
+ scopes: [],
15
+ state: ''
16
+ });
17
+
18
+ const placeService = await (await client.loadChevre({
19
+ endpoint: <string>process.env.CHEVRE_ENDPOINT,
20
+ auth: authClient
21
+ })).createPlaceInstance({
22
+ project: { id: PROJECT_ID },
23
+ seller: { id: SELLER_ID }
24
+ });
25
+
26
+ const result = await placeService.findSeatsBySection({
27
+ limit: 100,
28
+ page: 1,
29
+ movieTheaterCode: '118',
30
+ roomCode: '100',
31
+ sectionCode: 'Default',
32
+ seatingType: 'Meal'
33
+ });
34
+ // tslint:disable-next-line:no-null-keyword
35
+ console.dir(result, { depth: null });
36
+ }
37
+
38
+ main()
39
+ .then(() => {
40
+ console.log('success!');
41
+ })
42
+ .catch(console.error);
@@ -0,0 +1,40 @@
1
+ // tslint:disable:no-implicit-dependencies no-console
2
+ // import * as moment from 'moment';
3
+
4
+ import * as client from '../../../../lib/index';
5
+
6
+ const PROJECT_ID = String(process.env.PROJECT_ID);
7
+ const SELLER_ID = '59d20831e53ebc2b4e774466';
8
+
9
+ async function main() {
10
+ const authClient = await client.auth.ClientCredentials.createInstance({
11
+ domain: <string>process.env.CHEVRE_AUTHORIZE_SERVER_DOMAIN,
12
+ clientId: <string>process.env.CHEVRE_CLIENT_ID,
13
+ clientSecret: <string>process.env.CHEVRE_CLIENT_SECRET,
14
+ scopes: [],
15
+ state: ''
16
+ });
17
+
18
+ const placeService = await (await client.loadChevre({
19
+ endpoint: <string>process.env.CHEVRE_ENDPOINT,
20
+ auth: authClient
21
+ })).createPlaceInstance({
22
+ project: { id: PROJECT_ID },
23
+ seller: { id: SELLER_ID }
24
+ });
25
+
26
+ const result = await placeService.findSectionsByRoom({
27
+ limit: 100,
28
+ page: 1,
29
+ movieTheaterCode: '118',
30
+ roomCode: '100'
31
+ });
32
+ // tslint:disable-next-line:no-null-keyword
33
+ console.dir(result, { depth: null });
34
+ }
35
+
36
+ main()
37
+ .then(() => {
38
+ console.log('success!');
39
+ })
40
+ .catch(console.error);
@@ -0,0 +1,35 @@
1
+ // tslint:disable:no-console
2
+ // tslint:disable-next-line:no-implicit-dependencies
3
+ import { loadCloudSearch } from '../../../../lib/index';
4
+ import { auth } from '../../auth/clientCredentials';
5
+
6
+ const PROJECT_ID = String(process.env.PROJECT_ID);
7
+ const SELLER_ID = '59d20831e53ebc2b4e774466';
8
+
9
+ async function main() {
10
+ const placeService = await (await loadCloudSearch({
11
+ endpoint: <string>process.env.API_ENDPOINT,
12
+ auth: await auth()
13
+ })).createPlaceInstance({
14
+ project: { id: PROJECT_ID },
15
+ seller: { id: SELLER_ID }
16
+ });
17
+
18
+ const seats = await placeService.findSeatsBySection({
19
+ limit: 100,
20
+ page: 1,
21
+ movieTheaterCode: '118',
22
+ roomCode: '100',
23
+ sectionCode: 'Default',
24
+ seatingType: 'Meal'
25
+ });
26
+ // tslint:disable-next-line:no-null-keyword
27
+ console.dir(seats, { depth: null });
28
+ console.log(seats.length);
29
+ }
30
+
31
+ main()
32
+ .then(() => {
33
+ console.log('success!');
34
+ })
35
+ .catch(console.error);
@@ -0,0 +1,33 @@
1
+ // tslint:disable:no-console
2
+ // tslint:disable-next-line:no-implicit-dependencies
3
+ import { loadCloudSearch } from '../../../../lib/index';
4
+ import { auth } from '../../auth/clientCredentials';
5
+
6
+ const PROJECT_ID = String(process.env.PROJECT_ID);
7
+ const SELLER_ID = '59d20831e53ebc2b4e774466';
8
+
9
+ async function main() {
10
+ const placeService = await (await loadCloudSearch({
11
+ endpoint: <string>process.env.API_ENDPOINT,
12
+ auth: await auth()
13
+ })).createPlaceInstance({
14
+ project: { id: PROJECT_ID },
15
+ seller: { id: SELLER_ID }
16
+ });
17
+
18
+ const sections = await placeService.findSectionsByRoom({
19
+ limit: 100,
20
+ page: 1,
21
+ movieTheaterCode: '118',
22
+ roomCode: '100'
23
+ });
24
+ // tslint:disable-next-line:no-null-keyword
25
+ console.dir(sections, { depth: null });
26
+ console.log(sections.length);
27
+ }
28
+
29
+ main()
30
+ .then(() => {
31
+ console.log('success!');
32
+ })
33
+ .catch(console.error);
@@ -32,6 +32,52 @@ export declare class PlaceService extends Service {
32
32
  searchSeats(params: Omit<factory.place.seat.ISearchConditions, 'project'>): Promise<{
33
33
  data: ISeat[];
34
34
  }>;
35
+ /**
36
+ * ルーム指定でセクション検索
37
+ * ルーティングによる販売者指定が必須
38
+ */
39
+ findSectionsByRoom(params: {
40
+ /**
41
+ * max: 100
42
+ */
43
+ limit: number;
44
+ page: number;
45
+ /**
46
+ * 施設コード
47
+ */
48
+ movieTheaterCode: string;
49
+ /**
50
+ * ルームコード
51
+ */
52
+ roomCode: string;
53
+ }): Promise<ISeat[]>;
54
+ /**
55
+ * セクション指定で座席検索
56
+ * ルーティングによる販売者指定が必須
57
+ */
58
+ findSeatsBySection(params: {
59
+ /**
60
+ * max: 100
61
+ */
62
+ limit: number;
63
+ page: number;
64
+ /**
65
+ * 施設コード
66
+ */
67
+ movieTheaterCode: string;
68
+ /**
69
+ * ルームコード
70
+ */
71
+ roomCode: string;
72
+ /**
73
+ * セクションコード
74
+ */
75
+ sectionCode: string;
76
+ /**
77
+ * 座席区分
78
+ */
79
+ seatingType?: string;
80
+ }): Promise<ISeat[]>;
35
81
  /**
36
82
  * ターミナル検索
37
83
  */
@@ -175,6 +175,50 @@ var PlaceService = /** @class */ (function (_super) {
175
175
  });
176
176
  });
177
177
  };
178
+ /**
179
+ * ルーム指定でセクション検索
180
+ * ルーティングによる販売者指定が必須
181
+ */
182
+ PlaceService.prototype.findSectionsByRoom = function (params) {
183
+ return __awaiter(this, void 0, void 0, function () {
184
+ var limit, page, movieTheaterCode, roomCode;
185
+ var _this = this;
186
+ return __generator(this, function (_a) {
187
+ limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
188
+ return [2 /*return*/, this.fetch({
189
+ uri: '/roomSections',
190
+ method: 'GET',
191
+ qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode },
192
+ expectedStatusCodes: [http_status_1.OK]
193
+ })
194
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
195
+ return [2 /*return*/, response.json()];
196
+ }); }); })];
197
+ });
198
+ });
199
+ };
200
+ /**
201
+ * セクション指定で座席検索
202
+ * ルーティングによる販売者指定が必須
203
+ */
204
+ PlaceService.prototype.findSeatsBySection = function (params) {
205
+ return __awaiter(this, void 0, void 0, function () {
206
+ var limit, page, movieTheaterCode, roomCode, sectionCode, seatingType;
207
+ var _this = this;
208
+ return __generator(this, function (_a) {
209
+ limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode, sectionCode = params.sectionCode, seatingType = params.seatingType;
210
+ return [2 /*return*/, this.fetch({
211
+ uri: '/seats',
212
+ method: 'GET',
213
+ qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode, sectionCode: sectionCode, seatingType: seatingType },
214
+ expectedStatusCodes: [http_status_1.OK]
215
+ })
216
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
217
+ return [2 /*return*/, response.json()];
218
+ }); }); })];
219
+ });
220
+ });
221
+ };
178
222
  /**
179
223
  * ターミナル検索
180
224
  */
@@ -62,8 +62,10 @@ export declare class PaymentService extends Service {
62
62
  /**
63
63
  * 決済ロケーション発行(非同期)
64
64
  */
65
- publishCreditCardPaymentUrlAsync(params: {
66
- object: IPublishPaymentUrlObject;
65
+ publishCreditCardPaymentUrl(params: {
66
+ object: IPublishPaymentUrlObject & {
67
+ ticketToken: string;
68
+ };
67
69
  purpose: IPurpose;
68
70
  }): Promise<{
69
71
  /**
@@ -161,6 +161,11 @@ var PaymentService = /** @class */ (function (_super) {
161
161
  return __generator(this, function (_a) {
162
162
  object = params.object, purpose = params.purpose;
163
163
  amount = object.amount, issuedThrough = object.issuedThrough, paymentMethod = object.paymentMethod, creditCard = object.creditCard, method = object.method, paymentMethodId = object.paymentMethodId, name = object.name, additionalProperty = object.additionalProperty, ticketToken = object.ticketToken, eventIdsAsOrderedItem = object.eventIdsAsOrderedItem;
164
+ // paymentMethodId or ticketToken required(2025-12-06~)
165
+ if ((typeof paymentMethodId !== 'string' || paymentMethodId === '')
166
+ && (typeof ticketToken !== 'string' || ticketToken === '')) {
167
+ throw new factory.errors.ArgumentNull('object.paymentMethodId or object.ticketToken');
168
+ }
164
169
  return [2 /*return*/, this.fetch({
165
170
  uri: "/payment/" + factory.service.paymentService.PaymentServiceType.CreditCard + "/authorize",
166
171
  method: 'POST',
@@ -242,13 +247,16 @@ var PaymentService = /** @class */ (function (_super) {
242
247
  /**
243
248
  * 決済ロケーション発行(非同期)
244
249
  */
245
- PaymentService.prototype.publishCreditCardPaymentUrlAsync = function (params) {
250
+ PaymentService.prototype.publishCreditCardPaymentUrl = function (params) {
246
251
  return __awaiter(this, void 0, void 0, function () {
247
252
  var object, purpose, amount, creditCard, issuedThrough, paymentMethod, method, ticketToken, eventIdsAsOrderedItem;
248
253
  var _this = this;
249
254
  return __generator(this, function (_a) {
250
255
  object = params.object, purpose = params.purpose;
251
256
  amount = object.amount, creditCard = object.creditCard, issuedThrough = object.issuedThrough, paymentMethod = object.paymentMethod, method = object.method, ticketToken = object.ticketToken, eventIdsAsOrderedItem = object.eventIdsAsOrderedItem;
257
+ if (typeof ticketToken !== 'string' || ticketToken === '') {
258
+ throw new factory.errors.ArgumentNull('object.ticketToken'); // required(2025-12-06~)
259
+ }
252
260
  return [2 /*return*/, this.fetch({
253
261
  uri: "/payment/" + factory.service.paymentService.PaymentServiceType.CreditCard + "/publishPaymentUrl",
254
262
  method: 'POST',
@@ -157,8 +157,7 @@ var PaymentService = /** @class */ (function (_super) {
157
157
  paymentService = _b.sent();
158
158
  return [4 /*yield*/, this.issueTicketThroughCreditCardIfNotExists({ object: object, purpose: purpose }, {
159
159
  checkPaymentMethodId: true,
160
- intervalAfterIssueTicketInMS: intervalAfterIssueTicketInMS,
161
- disableIssueTicket: false
160
+ intervalAfterIssueTicketInMS: intervalAfterIssueTicketInMS
162
161
  })];
163
162
  case 3:
164
163
  ticketToken = (_b.sent()).ticketToken;
@@ -234,12 +233,14 @@ var PaymentService = /** @class */ (function (_super) {
234
233
  paymentService = _b.sent();
235
234
  return [4 /*yield*/, this.issueTicketThroughCreditCardIfNotExists({ object: object, purpose: purpose }, {
236
235
  checkPaymentMethodId: false,
237
- intervalAfterIssueTicketInMS: intervalAfterIssueTicketInMS,
238
- disableIssueTicket: false
236
+ intervalAfterIssueTicketInMS: intervalAfterIssueTicketInMS
239
237
  })];
240
238
  case 3:
241
239
  ticketToken = (_b.sent()).ticketToken;
242
- return [2 /*return*/, paymentService.publishCreditCardPaymentUrlAsync({
240
+ if (typeof ticketToken !== 'string' || ticketToken === '') {
241
+ throw new factory.errors.ArgumentNull('object.ticketToken'); // required(2025-12-06~)
242
+ }
243
+ return [2 /*return*/, paymentService.publishCreditCardPaymentUrl({
243
244
  object: __assign(__assign({}, object), { ticketToken: ticketToken }),
244
245
  purpose: purpose
245
246
  })];
@@ -664,16 +665,13 @@ var PaymentService = /** @class */ (function (_super) {
664
665
  };
665
666
  PaymentService.prototype.issueTicketThroughCreditCardIfNotExists = function (params, options) {
666
667
  return __awaiter(this, void 0, void 0, function () {
667
- var object, purpose, checkPaymentMethodId, disableIssueTicket, ticketToken, intervalAfterIssueTicketInMS, issueForcibly, paymentMethodId, automaticallyIssuedTicket;
668
+ var object, purpose, checkPaymentMethodId, ticketToken, intervalAfterIssueTicketInMS, issueForcibly, paymentMethodId, automaticallyIssuedTicket;
668
669
  return __generator(this, function (_a) {
669
670
  switch (_a.label) {
670
671
  case 0:
671
672
  object = params.object, purpose = params.purpose;
672
- checkPaymentMethodId = options.checkPaymentMethodId, disableIssueTicket = options.disableIssueTicket;
673
+ checkPaymentMethodId = options.checkPaymentMethodId;
673
674
  ticketToken = object.ticketToken;
674
- if (disableIssueTicket) {
675
- return [2 /*return*/, { ticketToken: ticketToken }];
676
- }
677
675
  intervalAfterIssueTicketInMS = (typeof options.intervalAfterIssueTicketInMS === 'number'
678
676
  && options.intervalAfterIssueTicketInMS > MIN_INTERVAL_AFTER_ISSUE_TICKET_MS)
679
677
  ? options.intervalAfterIssueTicketInMS
@@ -0,0 +1,51 @@
1
+ import * as factory from '../../factory';
2
+ import { Service } from '../../service';
3
+ /**
4
+ * 施設サービス
5
+ */
6
+ export declare class PlaceService extends Service {
7
+ /**
8
+ * ルーム指定によるセクション検索
9
+ */
10
+ findSectionsByRoom(params: {
11
+ /**
12
+ * max: 100
13
+ */
14
+ limit: number;
15
+ page: number;
16
+ /**
17
+ * 施設コード
18
+ */
19
+ movieTheaterCode: string;
20
+ /**
21
+ * ルームコード
22
+ */
23
+ roomCode: string;
24
+ }): Promise<Pick<factory.place.screeningRoomSection.IPlace, 'additionalProperty' | 'branchCode' | 'name'>[]>;
25
+ /**
26
+ * セクション指定による座席検索
27
+ */
28
+ findSeatsBySection(params: {
29
+ /**
30
+ * max: 100
31
+ */
32
+ limit: number;
33
+ page: number;
34
+ /**
35
+ * 施設コード
36
+ */
37
+ movieTheaterCode: string;
38
+ /**
39
+ * ルームコード
40
+ */
41
+ roomCode: string;
42
+ /**
43
+ * セクションコード
44
+ */
45
+ sectionCode: string;
46
+ /**
47
+ * 座席区分
48
+ */
49
+ seatingType?: string;
50
+ }): Promise<Pick<factory.place.seat.IPlace, 'additionalProperty' | 'branchCode' | 'name' | 'seatingType'>[]>;
51
+ }
@@ -0,0 +1,109 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.PlaceService = void 0;
55
+ var http_status_1 = require("http-status");
56
+ var service_1 = require("../../service");
57
+ /**
58
+ * 施設サービス
59
+ */
60
+ var PlaceService = /** @class */ (function (_super) {
61
+ __extends(PlaceService, _super);
62
+ function PlaceService() {
63
+ return _super !== null && _super.apply(this, arguments) || this;
64
+ }
65
+ /**
66
+ * ルーム指定によるセクション検索
67
+ */
68
+ PlaceService.prototype.findSectionsByRoom = function (params) {
69
+ return __awaiter(this, void 0, void 0, function () {
70
+ var limit, page, movieTheaterCode, roomCode;
71
+ var _this = this;
72
+ return __generator(this, function (_a) {
73
+ limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
74
+ return [2 /*return*/, this.fetch({
75
+ uri: '/roomSections',
76
+ method: 'GET',
77
+ qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode },
78
+ expectedStatusCodes: [http_status_1.OK]
79
+ })
80
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
81
+ return [2 /*return*/, response.json()];
82
+ }); }); })];
83
+ });
84
+ });
85
+ };
86
+ /**
87
+ * セクション指定による座席検索
88
+ */
89
+ PlaceService.prototype.findSeatsBySection = function (params) {
90
+ return __awaiter(this, void 0, void 0, function () {
91
+ var limit, page, movieTheaterCode, roomCode, sectionCode, seatingType;
92
+ var _this = this;
93
+ return __generator(this, function (_a) {
94
+ limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode, sectionCode = params.sectionCode, seatingType = params.seatingType;
95
+ return [2 /*return*/, this.fetch({
96
+ uri: '/seats',
97
+ method: 'GET',
98
+ qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode, sectionCode: sectionCode, seatingType: seatingType },
99
+ expectedStatusCodes: [http_status_1.OK]
100
+ })
101
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
102
+ return [2 /*return*/, response.json()];
103
+ }); }); })];
104
+ });
105
+ });
106
+ };
107
+ return PlaceService;
108
+ }(service_1.Service));
109
+ exports.PlaceService = PlaceService;
@@ -2,6 +2,7 @@ import { IAdditionalOptions, IOptions } from '../service';
2
2
  import type { CreativeWorkService } from './search/creativeWork';
3
3
  import type { EventOfferService } from './search/eventOffer';
4
4
  import type { PaymentProductService } from './search/paymentService';
5
+ import type { PlaceService } from './search/place';
5
6
  import type { ProductService } from './search/product';
6
7
  import type { ProductOfferService } from './search/productOffer';
7
8
  /**
@@ -29,6 +30,13 @@ export declare namespace service {
29
30
  namespace PaymentProduct {
30
31
  let svc: typeof PaymentProductService | undefined;
31
32
  }
33
+ /**
34
+ * 施設サービス
35
+ */
36
+ type Place = PlaceService;
37
+ namespace Place {
38
+ let svc: typeof PlaceService | undefined;
39
+ }
32
40
  /**
33
41
  * プロダクトサービス
34
42
  */
@@ -54,10 +62,6 @@ export declare class CloudSearch {
54
62
  * コンテンツサービスインスタンス生成
55
63
  */
56
64
  createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
57
- /**
58
- * イベントオファーサービスインスタンス生成
59
- */
60
- createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
61
65
  /**
62
66
  * 決済商品サービスインスタンス生成
63
67
  */
@@ -70,4 +74,14 @@ export declare class CloudSearch {
70
74
  * プロダクトオファーサービスインスタンス生成
71
75
  */
72
76
  createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
77
+ /**
78
+ * イベントオファーサービスインスタンス生成
79
+ * 販売者指定必須
80
+ */
81
+ createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
82
+ /**
83
+ * 施設サービスインスタンス生成
84
+ * 販売者指定必須
85
+ */
86
+ createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
73
87
  }
@@ -64,6 +64,9 @@ var service;
64
64
  var PaymentProduct;
65
65
  (function (PaymentProduct) {
66
66
  })(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
67
+ var Place;
68
+ (function (Place) {
69
+ })(Place = service.Place || (service.Place = {}));
67
70
  var Product;
68
71
  (function (Product) {
69
72
  })(Product = service.Product || (service.Product = {}));
@@ -99,26 +102,6 @@ var CloudSearch = /** @class */ (function () {
99
102
  });
100
103
  });
101
104
  };
102
- /**
103
- * イベントオファーサービスインスタンス生成
104
- */
105
- CloudSearch.prototype.createEventOfferInstance = function (params) {
106
- return __awaiter(this, void 0, void 0, function () {
107
- var _a;
108
- return __generator(this, function (_b) {
109
- switch (_b.label) {
110
- case 0:
111
- if (!(service.EventOffer.svc === undefined)) return [3 /*break*/, 2];
112
- _a = service.EventOffer;
113
- return [4 /*yield*/, Promise.resolve().then(function () { return require('./search/eventOffer'); })];
114
- case 1:
115
- _a.svc = (_b.sent()).EventOfferService;
116
- _b.label = 2;
117
- case 2: return [2 /*return*/, new service.EventOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: defaultRetryableStatusCodes }))];
118
- }
119
- });
120
- });
121
- };
122
105
  /**
123
106
  * 決済商品サービスインスタンス生成
124
107
  */
@@ -179,6 +162,48 @@ var CloudSearch = /** @class */ (function () {
179
162
  });
180
163
  });
181
164
  };
165
+ /**
166
+ * イベントオファーサービスインスタンス生成
167
+ * 販売者指定必須
168
+ */
169
+ CloudSearch.prototype.createEventOfferInstance = function (params) {
170
+ return __awaiter(this, void 0, void 0, function () {
171
+ var _a;
172
+ return __generator(this, function (_b) {
173
+ switch (_b.label) {
174
+ case 0:
175
+ if (!(service.EventOffer.svc === undefined)) return [3 /*break*/, 2];
176
+ _a = service.EventOffer;
177
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./search/eventOffer'); })];
178
+ case 1:
179
+ _a.svc = (_b.sent()).EventOfferService;
180
+ _b.label = 2;
181
+ case 2: return [2 /*return*/, new service.EventOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: defaultRetryableStatusCodes }))];
182
+ }
183
+ });
184
+ });
185
+ };
186
+ /**
187
+ * 施設サービスインスタンス生成
188
+ * 販売者指定必須
189
+ */
190
+ CloudSearch.prototype.createPlaceInstance = function (params) {
191
+ return __awaiter(this, void 0, void 0, function () {
192
+ var _a;
193
+ return __generator(this, function (_b) {
194
+ switch (_b.label) {
195
+ case 0:
196
+ if (!(service.Place.svc === undefined)) return [3 /*break*/, 2];
197
+ _a = service.Place;
198
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./search/place'); })];
199
+ case 1:
200
+ _a.svc = (_b.sent()).PlaceService;
201
+ _b.label = 2;
202
+ case 2: return [2 /*return*/, new service.Place.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: defaultRetryableStatusCodes }))];
203
+ }
204
+ });
205
+ });
206
+ };
182
207
  return CloudSearch;
183
208
  }());
184
209
  exports.CloudSearch = CloudSearch;