endpoints-sdk-cli 2.3.3 → 2.4.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.
@@ -0,0 +1,1294 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paymentNotification = exports.paymentOrdersPayConditional3DSecure = exports.paymentOrdersPayConditional = exports.informationGetKeywordsByCategories = exports.informationGetCityNamesInPrefecture = exports.inquiryCreateForCategoryPage = exports.inquiryGetCoupon = exports.inquiryGetVeritransTokenApiKey = exports.inquiryGetReservation = exports.inquiryGetPaymentOrders = exports.inquiryCreate = exports.internalDeleteListing = exports.reservationReserveImmediately = exports.guestUserAssociateWithInquiry = exports.guestUserResetPassword = exports.guestUserSendPasswordResetEmail = exports.guestUserSigninWithOAuth = exports.guestUserSigninWithPassword = exports.guestuserSignUpWithOAuth = exports.guestUserSignUpWithPassword = exports.getSaleTypeOnSaleListingsSortedBySaleTypeUpdatedAtAsc = exports.searchListingsWithRoomTypeByLocationNameAndMultipleConditions = exports.searchListingsByMultipleConditions = exports.searchListingsByLocationNameAndConditions = exports.getCalendarsByListingIdAndDateSpan = exports.listingGetTotalCostForDateSpanAndPersons = exports.listingGet = exports.authGuestIdentificationDeleteImageData = exports.authGuestIdentificationAdditionalUploadImageData = exports.authGuestIdentificationUploadImageData = exports.authGuestIdentificationGetImageData = exports.authGuestIdentificationList = exports.authContractAgree = exports.authContractSubmitGuestInformation = exports.authContractSubmitGuestInformationForIndividual = exports.authContractUpdateCorporationInformation = exports.authContractUpdateGuestInformation = exports.authContractGetCorporationInformation = exports.authContractGetGuestInformation = exports.authReadContract = exports.authGetContract = exports.authListContracts = exports.guestIdentificationUploadImage = exports.contractGetResidentCount = exports.contractAgree = exports.contractSubmitCorporationInformation = exports.contractSubmitGuestInformation = exports.readContract = exports.healthCheck = exports.root = void 0;
4
+ exports.sumyca_guestV3 = exports.roomTypeGetHotelStayTotalCostForAvailableDateSpanAndPersons = exports.roomTypeGetRepresentListing = exports.roomTypeCalendarGetByRoomTypeId = exports.guestCouponGetByCouponCode = exports.updateAllBlankPaymentOrderItemId = exports.managerReservationsList = exports.paymentResult = exports.paymentOrdersPayForInstantBook = void 0;
5
+ /* eslint-disable */
6
+ /**
7
+ * A function that returns the URL part common to the endpoints.
8
+ */
9
+ const root = () => {
10
+ let __root = "";
11
+ if (process.env.NODE_ENV === "local") {
12
+ __root = "http://localhost:8080";
13
+ }
14
+ if (process.env.NODE_ENV === "localDev") {
15
+ __root = "https://api-sumyca.dev.m2msystems.cloud";
16
+ }
17
+ if (process.env.NODE_ENV === "development") {
18
+ __root = "https://hoge.com";
19
+ }
20
+ if (process.env.NODE_ENV === "production") {
21
+ __root = "https://api-sumyca.m2msystems.cloud";
22
+ }
23
+ return __root;
24
+ };
25
+ exports.root = root;
26
+ /**
27
+ * ヘルスチェック
28
+ *
29
+ */
30
+ const healthCheck = () => {
31
+ const __root = (0, exports.root)();
32
+ const __queries = Object.entries({})
33
+ .filter(([_, value]) => {
34
+ return value !== undefined;
35
+ })
36
+ .map(([key, value]) => {
37
+ return `${key}=${value}`;
38
+ })
39
+ .join("&");
40
+ const __path = `${__root}/${`health_check`}`;
41
+ return __queries ? `${__path}?${__queries}` : __path;
42
+ };
43
+ exports.healthCheck = healthCheck;
44
+ exports.healthCheck.method = "GET";
45
+ /**
46
+ * トークまたは、パスワードを送り、契約書の内容を表示する
47
+ *
48
+ */
49
+ const readContract = ({ inquiryId, revision, }) => {
50
+ const __root = (0, exports.root)();
51
+ const __queries = Object.entries({})
52
+ .filter(([_, value]) => {
53
+ return value !== undefined;
54
+ })
55
+ .map(([key, value]) => {
56
+ return `${key}=${value}`;
57
+ })
58
+ .join("&");
59
+ const __path = `${__root}/${`contracts/${inquiryId}/${revision}`}`;
60
+ return __queries ? `${__path}?${__queries}` : __path;
61
+ };
62
+ exports.readContract = readContract;
63
+ exports.readContract.method = "POST";
64
+ /**
65
+ * ゲストが契約者情報を提出する
66
+ *
67
+ */
68
+ const contractSubmitGuestInformation = ({ inquiryId, revision, }) => {
69
+ const __root = (0, exports.root)();
70
+ const __queries = Object.entries({})
71
+ .filter(([_, value]) => {
72
+ return value !== undefined;
73
+ })
74
+ .map(([key, value]) => {
75
+ return `${key}=${value}`;
76
+ })
77
+ .join("&");
78
+ const __path = `${__root}/${`contracts/${inquiryId}/${revision}/guest_information`}`;
79
+ return __queries ? `${__path}?${__queries}` : __path;
80
+ };
81
+ exports.contractSubmitGuestInformation = contractSubmitGuestInformation;
82
+ exports.contractSubmitGuestInformation.method = "POST";
83
+ /**
84
+ * 法人ゲストが契約者情報を提出する
85
+ *
86
+ */
87
+ const contractSubmitCorporationInformation = ({ inquiryId, revision, }) => {
88
+ const __root = (0, exports.root)();
89
+ const __queries = Object.entries({})
90
+ .filter(([_, value]) => {
91
+ return value !== undefined;
92
+ })
93
+ .map(([key, value]) => {
94
+ return `${key}=${value}`;
95
+ })
96
+ .join("&");
97
+ const __path = `${__root}/${`contracts/${inquiryId}/${revision}/corporation_information`}`;
98
+ return __queries ? `${__path}?${__queries}` : __path;
99
+ };
100
+ exports.contractSubmitCorporationInformation = contractSubmitCorporationInformation;
101
+ exports.contractSubmitCorporationInformation.method = "POST";
102
+ /**
103
+ * パスワードを送り、契約書に同意する
104
+ *
105
+ */
106
+ const contractAgree = ({ inquiryId, revision, }) => {
107
+ const __root = (0, exports.root)();
108
+ const __queries = Object.entries({})
109
+ .filter(([_, value]) => {
110
+ return value !== undefined;
111
+ })
112
+ .map(([key, value]) => {
113
+ return `${key}=${value}`;
114
+ })
115
+ .join("&");
116
+ const __path = `${__root}/${`contracts/${inquiryId}/${revision}/agree`}`;
117
+ return __queries ? `${__path}?${__queries}` : __path;
118
+ };
119
+ exports.contractAgree = contractAgree;
120
+ exports.contractAgree.method = "POST";
121
+ /**
122
+ * 契約書作成に必要な入居者人数を取得する
123
+ *
124
+ */
125
+ const contractGetResidentCount = ({ inquiryId, revision, }) => {
126
+ const __root = (0, exports.root)();
127
+ const __queries = Object.entries({})
128
+ .filter(([_, value]) => {
129
+ return value !== undefined;
130
+ })
131
+ .map(([key, value]) => {
132
+ return `${key}=${value}`;
133
+ })
134
+ .join("&");
135
+ const __path = `${__root}/${`contracts/${inquiryId}/${revision}/resident_count`}`;
136
+ return __queries ? `${__path}?${__queries}` : __path;
137
+ };
138
+ exports.contractGetResidentCount = contractGetResidentCount;
139
+ exports.contractGetResidentCount.method = "GET";
140
+ /**
141
+ * ゲストが身分証明書の画像をアップロードする
142
+ *
143
+ */
144
+ const guestIdentificationUploadImage = ({ inquiryId, }) => {
145
+ const __root = (0, exports.root)();
146
+ const __queries = Object.entries({})
147
+ .filter(([_, value]) => {
148
+ return value !== undefined;
149
+ })
150
+ .map(([key, value]) => {
151
+ return `${key}=${value}`;
152
+ })
153
+ .join("&");
154
+ const __path = `${__root}/${`guest_identifications/${inquiryId}`}`;
155
+ return __queries ? `${__path}?${__queries}` : __path;
156
+ };
157
+ exports.guestIdentificationUploadImage = guestIdentificationUploadImage;
158
+ exports.guestIdentificationUploadImage.method = "POST";
159
+ /**
160
+ * ゲストが自分に紐づいている問い合わせの一覧を閲覧する
161
+ *
162
+ */
163
+ const authListContracts = () => {
164
+ const __root = (0, exports.root)();
165
+ const __queries = Object.entries({})
166
+ .filter(([_, value]) => {
167
+ return value !== undefined;
168
+ })
169
+ .map(([key, value]) => {
170
+ return `${key}=${value}`;
171
+ })
172
+ .join("&");
173
+ const __path = `${__root}/${`auth/contracts`}`;
174
+ return __queries ? `${__path}?${__queries}` : __path;
175
+ };
176
+ exports.authListContracts = authListContracts;
177
+ exports.authListContracts.method = "GET";
178
+ /**
179
+ * ゲストが自分に紐づいている問い合わせを閲覧する
180
+ *
181
+ */
182
+ const authGetContract = ({ inquiryId }) => {
183
+ const __root = (0, exports.root)();
184
+ const __queries = Object.entries({})
185
+ .filter(([_, value]) => {
186
+ return value !== undefined;
187
+ })
188
+ .map(([key, value]) => {
189
+ return `${key}=${value}`;
190
+ })
191
+ .join("&");
192
+ const __path = `${__root}/${`auth/contracts/${inquiryId}`}`;
193
+ return __queries ? `${__path}?${__queries}` : __path;
194
+ };
195
+ exports.authGetContract = authGetContract;
196
+ exports.authGetContract.method = "GET";
197
+ /**
198
+ * 契約書の内容を表示する
199
+ *
200
+ */
201
+ const authReadContract = ({ inquiryId, revision, }) => {
202
+ const __root = (0, exports.root)();
203
+ const __queries = Object.entries({})
204
+ .filter(([_, value]) => {
205
+ return value !== undefined;
206
+ })
207
+ .map(([key, value]) => {
208
+ return `${key}=${value}`;
209
+ })
210
+ .join("&");
211
+ const __path = `${__root}/${`auth/contracts/${inquiryId}/${revision}`}`;
212
+ return __queries ? `${__path}?${__queries}` : __path;
213
+ };
214
+ exports.authReadContract = authReadContract;
215
+ exports.authReadContract.method = "POST";
216
+ /**
217
+ * ゲストが契約者情報を取得する
218
+ *
219
+ */
220
+ const authContractGetGuestInformation = ({ inquiryId, revision, }) => {
221
+ const __root = (0, exports.root)();
222
+ const __queries = Object.entries({})
223
+ .filter(([_, value]) => {
224
+ return value !== undefined;
225
+ })
226
+ .map(([key, value]) => {
227
+ return `${key}=${value}`;
228
+ })
229
+ .join("&");
230
+ const __path = `${__root}/${`auth/contracts/${inquiryId}/${revision}/guest_information`}`;
231
+ return __queries ? `${__path}?${__queries}` : __path;
232
+ };
233
+ exports.authContractGetGuestInformation = authContractGetGuestInformation;
234
+ exports.authContractGetGuestInformation.method = "GET";
235
+ /**
236
+ * 法人ゲストが契約者情報を取得する
237
+ *
238
+ */
239
+ const authContractGetCorporationInformation = ({ inquiryId, revision, }) => {
240
+ const __root = (0, exports.root)();
241
+ const __queries = Object.entries({})
242
+ .filter(([_, value]) => {
243
+ return value !== undefined;
244
+ })
245
+ .map(([key, value]) => {
246
+ return `${key}=${value}`;
247
+ })
248
+ .join("&");
249
+ const __path = `${__root}/${`auth/contracts/${inquiryId}/${revision}/corporation_information`}`;
250
+ return __queries ? `${__path}?${__queries}` : __path;
251
+ };
252
+ exports.authContractGetCorporationInformation = authContractGetCorporationInformation;
253
+ exports.authContractGetCorporationInformation.method = "GET";
254
+ /**
255
+ * ゲストが契約者情報を更新する
256
+ *
257
+ */
258
+ const authContractUpdateGuestInformation = ({ inquiryId, revision, }) => {
259
+ const __root = (0, exports.root)();
260
+ const __queries = Object.entries({})
261
+ .filter(([_, value]) => {
262
+ return value !== undefined;
263
+ })
264
+ .map(([key, value]) => {
265
+ return `${key}=${value}`;
266
+ })
267
+ .join("&");
268
+ const __path = `${__root}/${`auth/contracts/${inquiryId}/${revision}/guest_information`}`;
269
+ return __queries ? `${__path}?${__queries}` : __path;
270
+ };
271
+ exports.authContractUpdateGuestInformation = authContractUpdateGuestInformation;
272
+ exports.authContractUpdateGuestInformation.method = "PUT";
273
+ /**
274
+ * 法人ゲストが契約者情報を更新する
275
+ *
276
+ */
277
+ const authContractUpdateCorporationInformation = ({ inquiryId, revision, }) => {
278
+ const __root = (0, exports.root)();
279
+ const __queries = Object.entries({})
280
+ .filter(([_, value]) => {
281
+ return value !== undefined;
282
+ })
283
+ .map(([key, value]) => {
284
+ return `${key}=${value}`;
285
+ })
286
+ .join("&");
287
+ const __path = `${__root}/${`auth/contracts/${inquiryId}/${revision}/corporation_information`}`;
288
+ return __queries ? `${__path}?${__queries}` : __path;
289
+ };
290
+ exports.authContractUpdateCorporationInformation = authContractUpdateCorporationInformation;
291
+ exports.authContractUpdateCorporationInformation.method = "PUT";
292
+ /**
293
+ * 個人ゲストが契約者情報を確定させる
294
+ *
295
+ */
296
+ const authContractSubmitGuestInformationForIndividual = ({ inquiryId, revision, }) => {
297
+ const __root = (0, exports.root)();
298
+ const __queries = Object.entries({})
299
+ .filter(([_, value]) => {
300
+ return value !== undefined;
301
+ })
302
+ .map(([key, value]) => {
303
+ return `${key}=${value}`;
304
+ })
305
+ .join("&");
306
+ const __path = `${__root}/${`auth/contracts/${inquiryId}/${revision}/guest_information/submit`}`;
307
+ return __queries ? `${__path}?${__queries}` : __path;
308
+ };
309
+ exports.authContractSubmitGuestInformationForIndividual = authContractSubmitGuestInformationForIndividual;
310
+ exports.authContractSubmitGuestInformationForIndividual.method = "POST";
311
+ /**
312
+ * 契約者情報を確定させる
313
+ *
314
+ */
315
+ const authContractSubmitGuestInformation = ({ inquiryId, revision, }) => {
316
+ const __root = (0, exports.root)();
317
+ const __queries = Object.entries({})
318
+ .filter(([_, value]) => {
319
+ return value !== undefined;
320
+ })
321
+ .map(([key, value]) => {
322
+ return `${key}=${value}`;
323
+ })
324
+ .join("&");
325
+ const __path = `${__root}/${`auth/contracts/${inquiryId}/${revision}/submit`}`;
326
+ return __queries ? `${__path}?${__queries}` : __path;
327
+ };
328
+ exports.authContractSubmitGuestInformation = authContractSubmitGuestInformation;
329
+ exports.authContractSubmitGuestInformation.method = "POST";
330
+ /**
331
+ * パスワードを送り、契約書に同意する
332
+ *
333
+ */
334
+ const authContractAgree = ({ inquiryId, revision, }) => {
335
+ const __root = (0, exports.root)();
336
+ const __queries = Object.entries({})
337
+ .filter(([_, value]) => {
338
+ return value !== undefined;
339
+ })
340
+ .map(([key, value]) => {
341
+ return `${key}=${value}`;
342
+ })
343
+ .join("&");
344
+ const __path = `${__root}/${`auth/contracts/${inquiryId}/${revision}/agree`}`;
345
+ return __queries ? `${__path}?${__queries}` : __path;
346
+ };
347
+ exports.authContractAgree = authContractAgree;
348
+ exports.authContractAgree.method = "POST";
349
+ /**
350
+ * ゲスト身分証画像の一覧を取得する
351
+ *
352
+ */
353
+ const authGuestIdentificationList = ({ inquiryId, }) => {
354
+ const __root = (0, exports.root)();
355
+ const __queries = Object.entries({})
356
+ .filter(([_, value]) => {
357
+ return value !== undefined;
358
+ })
359
+ .map(([key, value]) => {
360
+ return `${key}=${value}`;
361
+ })
362
+ .join("&");
363
+ const __path = `${__root}/${`auth/guest_identifications/${inquiryId}`}`;
364
+ return __queries ? `${__path}?${__queries}` : __path;
365
+ };
366
+ exports.authGuestIdentificationList = authGuestIdentificationList;
367
+ exports.authGuestIdentificationList.method = "GET";
368
+ /**
369
+ * ゲスト身分証画像の実データ(base64エンコードされた文字列形式)を取得する
370
+ *
371
+ */
372
+ const authGuestIdentificationGetImageData = ({ inquiryId, imageId, }) => {
373
+ const __root = (0, exports.root)();
374
+ const __queries = Object.entries({})
375
+ .filter(([_, value]) => {
376
+ return value !== undefined;
377
+ })
378
+ .map(([key, value]) => {
379
+ return `${key}=${value}`;
380
+ })
381
+ .join("&");
382
+ const __path = `${__root}/${`auth/guest_identifications/${inquiryId}/${imageId}/image_data`}`;
383
+ return __queries ? `${__path}?${__queries}` : __path;
384
+ };
385
+ exports.authGuestIdentificationGetImageData = authGuestIdentificationGetImageData;
386
+ exports.authGuestIdentificationGetImageData.method = "GET";
387
+ /**
388
+ * ゲスト身分証画像をアップロードする
389
+ *
390
+ */
391
+ const authGuestIdentificationUploadImageData = ({ inquiryId, }) => {
392
+ const __root = (0, exports.root)();
393
+ const __queries = Object.entries({})
394
+ .filter(([_, value]) => {
395
+ return value !== undefined;
396
+ })
397
+ .map(([key, value]) => {
398
+ return `${key}=${value}`;
399
+ })
400
+ .join("&");
401
+ const __path = `${__root}/${`auth/guest_identifications/${inquiryId}/image`}`;
402
+ return __queries ? `${__path}?${__queries}` : __path;
403
+ };
404
+ exports.authGuestIdentificationUploadImageData = authGuestIdentificationUploadImageData;
405
+ exports.authGuestIdentificationUploadImageData.method = "POST";
406
+ /**
407
+ * ゲスト身分証画像を追加アップロードする
408
+ *
409
+ */
410
+ const authGuestIdentificationAdditionalUploadImageData = ({ inquiryId, }) => {
411
+ const __root = (0, exports.root)();
412
+ const __queries = Object.entries({})
413
+ .filter(([_, value]) => {
414
+ return value !== undefined;
415
+ })
416
+ .map(([key, value]) => {
417
+ return `${key}=${value}`;
418
+ })
419
+ .join("&");
420
+ const __path = `${__root}/${`auth/guest_identifications/${inquiryId}/image/additional`}`;
421
+ return __queries ? `${__path}?${__queries}` : __path;
422
+ };
423
+ exports.authGuestIdentificationAdditionalUploadImageData = authGuestIdentificationAdditionalUploadImageData;
424
+ exports.authGuestIdentificationAdditionalUploadImageData.method = "POST";
425
+ /**
426
+ * ゲストの身分証画像を削除する
427
+ *
428
+ */
429
+ const authGuestIdentificationDeleteImageData = ({ inquiryId, imageId, }) => {
430
+ const __root = (0, exports.root)();
431
+ const __queries = Object.entries({})
432
+ .filter(([_, value]) => {
433
+ return value !== undefined;
434
+ })
435
+ .map(([key, value]) => {
436
+ return `${key}=${value}`;
437
+ })
438
+ .join("&");
439
+ const __path = `${__root}/${`auth/guest_identifications/${inquiryId}/image/${imageId}`}`;
440
+ return __queries ? `${__path}?${__queries}` : __path;
441
+ };
442
+ exports.authGuestIdentificationDeleteImageData = authGuestIdentificationDeleteImageData;
443
+ exports.authGuestIdentificationDeleteImageData.method = "DELETE";
444
+ /**
445
+ * 公開されているリスティングを取得する
446
+ * @param {string} locale jp
447
+ */
448
+ const listingGet = ({ locale, listingId, }) => {
449
+ const __root = (0, exports.root)();
450
+ const __queries = Object.entries({ locale })
451
+ .filter(([_, value]) => {
452
+ return value !== undefined;
453
+ })
454
+ .map(([key, value]) => {
455
+ return `${key}=${value}`;
456
+ })
457
+ .join("&");
458
+ const __path = `${__root}/${`listings/${listingId}`}`;
459
+ return __queries ? `${__path}?${__queries}` : __path;
460
+ };
461
+ exports.listingGet = listingGet;
462
+ exports.listingGet.method = "GET";
463
+ /**
464
+ * 指定した入居期間と入居人数に対する合計料金を取得する
465
+ * @param {string} startDate 2020-04-02
466
+ * @param {string} endDate 2020-05-23
467
+ * @param {number} persons 3
468
+ */
469
+ const listingGetTotalCostForDateSpanAndPersons = ({ startDate, endDate, persons, listingId, }) => {
470
+ const __root = (0, exports.root)();
471
+ const __queries = Object.entries({ startDate, endDate, persons })
472
+ .filter(([_, value]) => {
473
+ return value !== undefined;
474
+ })
475
+ .map(([key, value]) => {
476
+ return `${key}=${value}`;
477
+ })
478
+ .join("&");
479
+ const __path = `${__root}/${`listings/${listingId}/total_cost`}`;
480
+ return __queries ? `${__path}?${__queries}` : __path;
481
+ };
482
+ exports.listingGetTotalCostForDateSpanAndPersons = listingGetTotalCostForDateSpanAndPersons;
483
+ exports.listingGetTotalCostForDateSpanAndPersons.method = "GET";
484
+ /**
485
+ * カレンダーの在庫情報を取得する
486
+ * @param {string} startDate 2020-04-02
487
+ * @param {string} endDate 2020-05-23
488
+ */
489
+ const getCalendarsByListingIdAndDateSpan = ({ startDate, endDate, listingId, }) => {
490
+ const __root = (0, exports.root)();
491
+ const __queries = Object.entries({ startDate, endDate })
492
+ .filter(([_, value]) => {
493
+ return value !== undefined;
494
+ })
495
+ .map(([key, value]) => {
496
+ return `${key}=${value}`;
497
+ })
498
+ .join("&");
499
+ const __path = `${__root}/${`listings/${listingId}/calendar_stocks`}`;
500
+ return __queries ? `${__path}?${__queries}` : __path;
501
+ };
502
+ exports.getCalendarsByListingIdAndDateSpan = getCalendarsByListingIdAndDateSpan;
503
+ exports.getCalendarsByListingIdAndDateSpan.method = "GET";
504
+ /**
505
+ * 地点名及びキーワードなどの条件によるリスティング検索結果を取得する
506
+ * @param {string} locationName 新宿
507
+ * @param {number} radius 5.0
508
+ * @param {string} keywordIds 1,3,10
509
+ * @param {string} layoutTypes 1LDK,2LDK
510
+ * @param {string} listingTypes Apartment,Mansion
511
+ * @param {number} buildYearAfter 1980
512
+ * @param {number} buildYearBefore 2020
513
+ * @param {number} minSize 10.0
514
+ * @param {number} maxSize 50.2
515
+ * @param {number} minNumGuests 1
516
+ * @param {number} maxNumGuests 3
517
+ * @param {number} minCost 1000
518
+ * @param {number} maxCost 20000
519
+ * @param {number} page 0
520
+ * @param {number} itemsPerPage 20
521
+ * @param {string} reservationApprovalRequiredSetting ImmediateReservationRequest
522
+ * @param {number} maxMinuteWalk 5
523
+ * @param {string} listingSaleType onSale
524
+ * @param {string} locale ja
525
+ */
526
+ const searchListingsByLocationNameAndConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }) => {
527
+ const __root = (0, exports.root)();
528
+ const __queries = Object.entries({
529
+ locationName,
530
+ radius,
531
+ keywordIds,
532
+ layoutTypes,
533
+ listingTypes,
534
+ buildYearAfter,
535
+ buildYearBefore,
536
+ minSize,
537
+ maxSize,
538
+ minNumGuests,
539
+ maxNumGuests,
540
+ minCost,
541
+ maxCost,
542
+ page,
543
+ itemsPerPage,
544
+ reservationApprovalRequiredSetting,
545
+ maxMinuteWalk,
546
+ listingSaleType,
547
+ locale,
548
+ })
549
+ .filter(([_, value]) => {
550
+ return value !== undefined;
551
+ })
552
+ .map(([key, value]) => {
553
+ return `${key}=${value}`;
554
+ })
555
+ .join("&");
556
+ const __path = `${__root}/${`search_listings/location_name_and_conditions`}`;
557
+ return __queries ? `${__path}?${__queries}` : __path;
558
+ };
559
+ exports.searchListingsByLocationNameAndConditions = searchListingsByLocationNameAndConditions;
560
+ exports.searchListingsByLocationNameAndConditions.method = "GET";
561
+ /**
562
+ * 複数条件によるリスティング検索結果を取得する
563
+ * @param {string} stations 東京駅,池袋駅
564
+ * @param {string} prefecture 東京都
565
+ * @param {string} cities 渋谷区,豊島区
566
+ * @param {string} keywordIds 1,3,10
567
+ * @param {string} layoutTypes 1LDK,2LDK
568
+ * @param {string} listingTypes Apartment,Mansion
569
+ * @param {number} buildYearAfter 1980
570
+ * @param {number} buildYearBefore 2020
571
+ * @param {number} minSize 10.0
572
+ * @param {number} maxSize 50.2
573
+ * @param {number} minNumGuests 1
574
+ * @param {number} maxNumGuests 3
575
+ * @param {number} minCost 1000
576
+ * @param {number} maxCost 20000
577
+ * @param {number} page 0
578
+ * @param {number} itemsPerPage 20
579
+ * @param {string} reservationApprovalRequiredSetting ImmediateReservationRequest
580
+ * @param {number} maxMinuteWalk 5
581
+ * @param {string} listingSaleType onSale
582
+ * @param {string} locale ja
583
+ */
584
+ const searchListingsByMultipleConditions = ({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }) => {
585
+ const __root = (0, exports.root)();
586
+ const __queries = Object.entries({
587
+ stations,
588
+ prefecture,
589
+ cities,
590
+ keywordIds,
591
+ layoutTypes,
592
+ listingTypes,
593
+ buildYearAfter,
594
+ buildYearBefore,
595
+ minSize,
596
+ maxSize,
597
+ minNumGuests,
598
+ maxNumGuests,
599
+ minCost,
600
+ maxCost,
601
+ page,
602
+ itemsPerPage,
603
+ reservationApprovalRequiredSetting,
604
+ maxMinuteWalk,
605
+ listingSaleType,
606
+ locale,
607
+ })
608
+ .filter(([_, value]) => {
609
+ return value !== undefined;
610
+ })
611
+ .map(([key, value]) => {
612
+ return `${key}=${value}`;
613
+ })
614
+ .join("&");
615
+ const __path = `${__root}/${`search_listings/conditions`}`;
616
+ return __queries ? `${__path}?${__queries}` : __path;
617
+ };
618
+ exports.searchListingsByMultipleConditions = searchListingsByMultipleConditions;
619
+ exports.searchListingsByMultipleConditions.method = "GET";
620
+ /**
621
+ * 地点名及びキーワードなどの条件による部屋タイプ情報を含めたリスティング検索結果を取得する
622
+ * @param {string} locationName 新宿
623
+ * @param {number} radius 5.0
624
+ * @param {string} keywordIds 1,3,10
625
+ * @param {string} layoutTypes 1LDK,2LDK
626
+ * @param {string} listingTypes Apartment,Mansion
627
+ * @param {number} buildYearAfter 1980
628
+ * @param {number} buildYearBefore 2020
629
+ * @param {number} minSize 10.0
630
+ * @param {number} maxSize 50.2
631
+ * @param {number} minNumGuests 1
632
+ * @param {number} maxNumGuests 3
633
+ * @param {number} minCost 1000
634
+ * @param {number} maxCost 20000
635
+ * @param {number} page 0
636
+ * @param {number} itemsPerPage 20
637
+ * @param {string} reservationApprovalRequiredSetting ImmediateReservationRequest
638
+ * @param {number} maxMinuteWalk 5
639
+ * @param {string} listingSaleType onSale
640
+ * @param {string} locale ja
641
+ */
642
+ const searchListingsWithRoomTypeByLocationNameAndMultipleConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }) => {
643
+ const __root = (0, exports.root)();
644
+ const __queries = Object.entries({
645
+ locationName,
646
+ radius,
647
+ keywordIds,
648
+ layoutTypes,
649
+ listingTypes,
650
+ buildYearAfter,
651
+ buildYearBefore,
652
+ minSize,
653
+ maxSize,
654
+ minNumGuests,
655
+ maxNumGuests,
656
+ minCost,
657
+ maxCost,
658
+ page,
659
+ itemsPerPage,
660
+ reservationApprovalRequiredSetting,
661
+ maxMinuteWalk,
662
+ listingSaleType,
663
+ locale,
664
+ })
665
+ .filter(([_, value]) => {
666
+ return value !== undefined;
667
+ })
668
+ .map(([key, value]) => {
669
+ return `${key}=${value}`;
670
+ })
671
+ .join("&");
672
+ const __path = `${__root}/${`search_listings_with_room_type/location_name_and_conditions`}`;
673
+ return __queries ? `${__path}?${__queries}` : __path;
674
+ };
675
+ exports.searchListingsWithRoomTypeByLocationNameAndMultipleConditions = searchListingsWithRoomTypeByLocationNameAndMultipleConditions;
676
+ exports.searchListingsWithRoomTypeByLocationNameAndMultipleConditions.method =
677
+ "GET";
678
+ /**
679
+ * セール中の物件をセールタイプ更新日時順に取得する
680
+ * @param {number} page 0
681
+ * @param {number} itemsPerPage 30
682
+ */
683
+ const getSaleTypeOnSaleListingsSortedBySaleTypeUpdatedAtAsc = ({ page, itemsPerPage, }) => {
684
+ const __root = (0, exports.root)();
685
+ const __queries = Object.entries({ page, itemsPerPage })
686
+ .filter(([_, value]) => {
687
+ return value !== undefined;
688
+ })
689
+ .map(([key, value]) => {
690
+ return `${key}=${value}`;
691
+ })
692
+ .join("&");
693
+ const __path = `${__root}/${`sale_listings/sort_by_sale_updated_at`}`;
694
+ return __queries ? `${__path}?${__queries}` : __path;
695
+ };
696
+ exports.getSaleTypeOnSaleListingsSortedBySaleTypeUpdatedAtAsc = getSaleTypeOnSaleListingsSortedBySaleTypeUpdatedAtAsc;
697
+ exports.getSaleTypeOnSaleListingsSortedBySaleTypeUpdatedAtAsc.method = "GET";
698
+ /**
699
+ * メールアドレスとパスワードでサインアップする
700
+ *
701
+ */
702
+ const guestUserSignUpWithPassword = () => {
703
+ const __root = (0, exports.root)();
704
+ const __queries = Object.entries({})
705
+ .filter(([_, value]) => {
706
+ return value !== undefined;
707
+ })
708
+ .map(([key, value]) => {
709
+ return `${key}=${value}`;
710
+ })
711
+ .join("&");
712
+ const __path = `${__root}/${`guestUsers/signup_with_password`}`;
713
+ return __queries ? `${__path}?${__queries}` : __path;
714
+ };
715
+ exports.guestUserSignUpWithPassword = guestUserSignUpWithPassword;
716
+ exports.guestUserSignUpWithPassword.method = "POST";
717
+ /**
718
+ * OAuthを使ってサインアップする
719
+ *
720
+ */
721
+ const guestuserSignUpWithOAuth = () => {
722
+ const __root = (0, exports.root)();
723
+ const __queries = Object.entries({})
724
+ .filter(([_, value]) => {
725
+ return value !== undefined;
726
+ })
727
+ .map(([key, value]) => {
728
+ return `${key}=${value}`;
729
+ })
730
+ .join("&");
731
+ const __path = `${__root}/${`guestUsers/signup_with_oauth`}`;
732
+ return __queries ? `${__path}?${__queries}` : __path;
733
+ };
734
+ exports.guestuserSignUpWithOAuth = guestuserSignUpWithOAuth;
735
+ exports.guestuserSignUpWithOAuth.method = "POST";
736
+ /**
737
+ * メールアドレスとパスワードでサインインする
738
+ *
739
+ */
740
+ const guestUserSigninWithPassword = () => {
741
+ const __root = (0, exports.root)();
742
+ const __queries = Object.entries({})
743
+ .filter(([_, value]) => {
744
+ return value !== undefined;
745
+ })
746
+ .map(([key, value]) => {
747
+ return `${key}=${value}`;
748
+ })
749
+ .join("&");
750
+ const __path = `${__root}/${`guestUsers/signin_with_password`}`;
751
+ return __queries ? `${__path}?${__queries}` : __path;
752
+ };
753
+ exports.guestUserSigninWithPassword = guestUserSigninWithPassword;
754
+ exports.guestUserSigninWithPassword.method = "POST";
755
+ /**
756
+ * OAuthでサインインする
757
+ *
758
+ */
759
+ const guestUserSigninWithOAuth = () => {
760
+ const __root = (0, exports.root)();
761
+ const __queries = Object.entries({})
762
+ .filter(([_, value]) => {
763
+ return value !== undefined;
764
+ })
765
+ .map(([key, value]) => {
766
+ return `${key}=${value}`;
767
+ })
768
+ .join("&");
769
+ const __path = `${__root}/${`guestUsers/signin_with_oauth`}`;
770
+ return __queries ? `${__path}?${__queries}` : __path;
771
+ };
772
+ exports.guestUserSigninWithOAuth = guestUserSigninWithOAuth;
773
+ exports.guestUserSigninWithOAuth.method = "POST";
774
+ /**
775
+ * パスワードリセットを行うメールを送信する
776
+ *
777
+ */
778
+ const guestUserSendPasswordResetEmail = () => {
779
+ const __root = (0, exports.root)();
780
+ const __queries = Object.entries({})
781
+ .filter(([_, value]) => {
782
+ return value !== undefined;
783
+ })
784
+ .map(([key, value]) => {
785
+ return `${key}=${value}`;
786
+ })
787
+ .join("&");
788
+ const __path = `${__root}/${`guestUsers/send_password_reset_email`}`;
789
+ return __queries ? `${__path}?${__queries}` : __path;
790
+ };
791
+ exports.guestUserSendPasswordResetEmail = guestUserSendPasswordResetEmail;
792
+ exports.guestUserSendPasswordResetEmail.method = "POST";
793
+ /**
794
+ * パスワードをリセットする
795
+ *
796
+ */
797
+ const guestUserResetPassword = () => {
798
+ const __root = (0, exports.root)();
799
+ const __queries = Object.entries({})
800
+ .filter(([_, value]) => {
801
+ return value !== undefined;
802
+ })
803
+ .map(([key, value]) => {
804
+ return `${key}=${value}`;
805
+ })
806
+ .join("&");
807
+ const __path = `${__root}/${`guestUsers/reset_password`}`;
808
+ return __queries ? `${__path}?${__queries}` : __path;
809
+ };
810
+ exports.guestUserResetPassword = guestUserResetPassword;
811
+ exports.guestUserResetPassword.method = "POST";
812
+ /**
813
+ * 問い合わせとゲストの紐付けを行う
814
+ * @param {string} token foo
815
+ */
816
+ const guestUserAssociateWithInquiry = ({ token, }) => {
817
+ const __root = (0, exports.root)();
818
+ const __queries = Object.entries({ token })
819
+ .filter(([_, value]) => {
820
+ return value !== undefined;
821
+ })
822
+ .map(([key, value]) => {
823
+ return `${key}=${value}`;
824
+ })
825
+ .join("&");
826
+ const __path = `${__root}/${`guestUsers/associate_with_inquiry`}`;
827
+ return __queries ? `${__path}?${__queries}` : __path;
828
+ };
829
+ exports.guestUserAssociateWithInquiry = guestUserAssociateWithInquiry;
830
+ exports.guestUserAssociateWithInquiry.method = "POST";
831
+ /**
832
+ * ゲストが今すぐ予約を行う
833
+ *
834
+ */
835
+ const reservationReserveImmediately = () => {
836
+ const __root = (0, exports.root)();
837
+ const __queries = Object.entries({})
838
+ .filter(([_, value]) => {
839
+ return value !== undefined;
840
+ })
841
+ .map(([key, value]) => {
842
+ return `${key}=${value}`;
843
+ })
844
+ .join("&");
845
+ const __path = `${__root}/${`reservations/reserve_immediately`}`;
846
+ return __queries ? `${__path}?${__queries}` : __path;
847
+ };
848
+ exports.reservationReserveImmediately = reservationReserveImmediately;
849
+ exports.reservationReserveImmediately.method = "POST";
850
+ /**
851
+ * (内部向け) リスティングを削除する
852
+ *
853
+ */
854
+ const internalDeleteListing = ({ listingId }) => {
855
+ const __root = (0, exports.root)();
856
+ const __queries = Object.entries({})
857
+ .filter(([_, value]) => {
858
+ return value !== undefined;
859
+ })
860
+ .map(([key, value]) => {
861
+ return `${key}=${value}`;
862
+ })
863
+ .join("&");
864
+ const __path = `${__root}/${`internal/listings/${listingId}`}`;
865
+ return __queries ? `${__path}?${__queries}` : __path;
866
+ };
867
+ exports.internalDeleteListing = internalDeleteListing;
868
+ exports.internalDeleteListing.method = "DELETE";
869
+ /**
870
+ * ゲストが問い合わせを送信する
871
+ *
872
+ */
873
+ const inquiryCreate = () => {
874
+ const __root = (0, exports.root)();
875
+ const __queries = Object.entries({})
876
+ .filter(([_, value]) => {
877
+ return value !== undefined;
878
+ })
879
+ .map(([key, value]) => {
880
+ return `${key}=${value}`;
881
+ })
882
+ .join("&");
883
+ const __path = `${__root}/${`inquiries`}`;
884
+ return __queries ? `${__path}?${__queries}` : __path;
885
+ };
886
+ exports.inquiryCreate = inquiryCreate;
887
+ exports.inquiryCreate.method = "POST";
888
+ /**
889
+ * ゲストが問い合わせに紐ずく決済を取得する
890
+ *
891
+ */
892
+ const inquiryGetPaymentOrders = ({ inquiryId, }) => {
893
+ const __root = (0, exports.root)();
894
+ const __queries = Object.entries({})
895
+ .filter(([_, value]) => {
896
+ return value !== undefined;
897
+ })
898
+ .map(([key, value]) => {
899
+ return `${key}=${value}`;
900
+ })
901
+ .join("&");
902
+ const __path = `${__root}/${`inquiries/${inquiryId}/payment_orders`}`;
903
+ return __queries ? `${__path}?${__queries}` : __path;
904
+ };
905
+ exports.inquiryGetPaymentOrders = inquiryGetPaymentOrders;
906
+ exports.inquiryGetPaymentOrders.method = "GET";
907
+ /**
908
+ * ゲストが問い合わせに紐ずく予約を取得する
909
+ *
910
+ */
911
+ const inquiryGetReservation = ({ inquiryId }) => {
912
+ const __root = (0, exports.root)();
913
+ const __queries = Object.entries({})
914
+ .filter(([_, value]) => {
915
+ return value !== undefined;
916
+ })
917
+ .map(([key, value]) => {
918
+ return `${key}=${value}`;
919
+ })
920
+ .join("&");
921
+ const __path = `${__root}/${`inquiries/${inquiryId}/reservations`}`;
922
+ return __queries ? `${__path}?${__queries}` : __path;
923
+ };
924
+ exports.inquiryGetReservation = inquiryGetReservation;
925
+ exports.inquiryGetReservation.method = "GET";
926
+ /**
927
+ * ゲストがveritranaのトークンを取得するために必要なAPIKEYを取得する
928
+ *
929
+ */
930
+ const inquiryGetVeritransTokenApiKey = ({ inquiryId, }) => {
931
+ const __root = (0, exports.root)();
932
+ const __queries = Object.entries({})
933
+ .filter(([_, value]) => {
934
+ return value !== undefined;
935
+ })
936
+ .map(([key, value]) => {
937
+ return `${key}=${value}`;
938
+ })
939
+ .join("&");
940
+ const __path = `${__root}/${`inquiries/${inquiryId}/veritrans_token_api_keys`}`;
941
+ return __queries ? `${__path}?${__queries}` : __path;
942
+ };
943
+ exports.inquiryGetVeritransTokenApiKey = inquiryGetVeritransTokenApiKey;
944
+ exports.inquiryGetVeritransTokenApiKey.method = "GET";
945
+ /**
946
+ * ゲストが問い合わせに紐ずくクーポンを取得する
947
+ *
948
+ */
949
+ const inquiryGetCoupon = ({ inquiryId }) => {
950
+ const __root = (0, exports.root)();
951
+ const __queries = Object.entries({})
952
+ .filter(([_, value]) => {
953
+ return value !== undefined;
954
+ })
955
+ .map(([key, value]) => {
956
+ return `${key}=${value}`;
957
+ })
958
+ .join("&");
959
+ const __path = `${__root}/${`inquiries/${inquiryId}/coupons`}`;
960
+ return __queries ? `${__path}?${__queries}` : __path;
961
+ };
962
+ exports.inquiryGetCoupon = inquiryGetCoupon;
963
+ exports.inquiryGetCoupon.method = "GET";
964
+ /**
965
+ * ゲストがカテゴリページから問い合わせを送信する
966
+ *
967
+ */
968
+ const inquiryCreateForCategoryPage = () => {
969
+ const __root = (0, exports.root)();
970
+ const __queries = Object.entries({})
971
+ .filter(([_, value]) => {
972
+ return value !== undefined;
973
+ })
974
+ .map(([key, value]) => {
975
+ return `${key}=${value}`;
976
+ })
977
+ .join("&");
978
+ const __path = `${__root}/${`inquiriesForCategoryPage`}`;
979
+ return __queries ? `${__path}?${__queries}` : __path;
980
+ };
981
+ exports.inquiryCreateForCategoryPage = inquiryCreateForCategoryPage;
982
+ exports.inquiryCreateForCategoryPage.method = "POST";
983
+ /**
984
+ * 指定した都道府県に属する市町村の名前の一覧を取得する
985
+ * @param {string} prefName hoge
986
+ */
987
+ const informationGetCityNamesInPrefecture = ({ prefName, }) => {
988
+ const __root = (0, exports.root)();
989
+ const __queries = Object.entries({ prefName })
990
+ .filter(([_, value]) => {
991
+ return value !== undefined;
992
+ })
993
+ .map(([key, value]) => {
994
+ return `${key}=${value}`;
995
+ })
996
+ .join("&");
997
+ const __path = `${__root}/${`information/city_names`}`;
998
+ return __queries ? `${__path}?${__queries}` : __path;
999
+ };
1000
+ exports.informationGetCityNamesInPrefecture = informationGetCityNamesInPrefecture;
1001
+ exports.informationGetCityNamesInPrefecture.method = "GET";
1002
+ /**
1003
+ * 指定したカテゴリーのキーワードの一覧を取得する
1004
+ * @param {string} categories Furniture,Appliance,Feature
1005
+ */
1006
+ const informationGetKeywordsByCategories = ({ categories, }) => {
1007
+ const __root = (0, exports.root)();
1008
+ const __queries = Object.entries({ categories })
1009
+ .filter(([_, value]) => {
1010
+ return value !== undefined;
1011
+ })
1012
+ .map(([key, value]) => {
1013
+ return `${key}=${value}`;
1014
+ })
1015
+ .join("&");
1016
+ const __path = `${__root}/${`information/keywords`}`;
1017
+ return __queries ? `${__path}?${__queries}` : __path;
1018
+ };
1019
+ exports.informationGetKeywordsByCategories = informationGetKeywordsByCategories;
1020
+ exports.informationGetKeywordsByCategories.method = "GET";
1021
+ /**
1022
+ * ゲストが決済を行う
1023
+ *
1024
+ */
1025
+ const paymentOrdersPayConditional = ({ paymentOrderId, }) => {
1026
+ const __root = (0, exports.root)();
1027
+ const __queries = Object.entries({})
1028
+ .filter(([_, value]) => {
1029
+ return value !== undefined;
1030
+ })
1031
+ .map(([key, value]) => {
1032
+ return `${key}=${value}`;
1033
+ })
1034
+ .join("&");
1035
+ const __path = `${__root}/${`payment_orders/${paymentOrderId}/pay_conditional`}`;
1036
+ return __queries ? `${__path}?${__queries}` : __path;
1037
+ };
1038
+ exports.paymentOrdersPayConditional = paymentOrdersPayConditional;
1039
+ exports.paymentOrdersPayConditional.method = "POST";
1040
+ /**
1041
+ * ゲストが3Dセキュア決済を行う
1042
+ *
1043
+ */
1044
+ const paymentOrdersPayConditional3DSecure = ({ paymentOrderId, }) => {
1045
+ const __root = (0, exports.root)();
1046
+ const __queries = Object.entries({})
1047
+ .filter(([_, value]) => {
1048
+ return value !== undefined;
1049
+ })
1050
+ .map(([key, value]) => {
1051
+ return `${key}=${value}`;
1052
+ })
1053
+ .join("&");
1054
+ const __path = `${__root}/${`payment_orders/${paymentOrderId}/pay_conditional/3d_secure`}`;
1055
+ return __queries ? `${__path}?${__queries}` : __path;
1056
+ };
1057
+ exports.paymentOrdersPayConditional3DSecure = paymentOrdersPayConditional3DSecure;
1058
+ exports.paymentOrdersPayConditional3DSecure.method = "POST";
1059
+ /**
1060
+ * 決済通知を受け取る
1061
+ *
1062
+ */
1063
+ const paymentNotification = ({ paymentOrderId, }) => {
1064
+ const __root = (0, exports.root)();
1065
+ const __queries = Object.entries({})
1066
+ .filter(([_, value]) => {
1067
+ return value !== undefined;
1068
+ })
1069
+ .map(([key, value]) => {
1070
+ return `${key}=${value}`;
1071
+ })
1072
+ .join("&");
1073
+ const __path = `${__root}/${`payment_orders/${paymentOrderId}/webhook/payment_notification`}`;
1074
+ return __queries ? `${__path}?${__queries}` : __path;
1075
+ };
1076
+ exports.paymentNotification = paymentNotification;
1077
+ exports.paymentNotification.method = "POST";
1078
+ /**
1079
+ * ゲストが今すぐ予約で作成された問い合わせの決済を行う
1080
+ *
1081
+ */
1082
+ const paymentOrdersPayForInstantBook = ({ paymentOrderId, }) => {
1083
+ const __root = (0, exports.root)();
1084
+ const __queries = Object.entries({})
1085
+ .filter(([_, value]) => {
1086
+ return value !== undefined;
1087
+ })
1088
+ .map(([key, value]) => {
1089
+ return `${key}=${value}`;
1090
+ })
1091
+ .join("&");
1092
+ const __path = `${__root}/${`payment_orders/${paymentOrderId}/pay_for_instant_book`}`;
1093
+ return __queries ? `${__path}?${__queries}` : __path;
1094
+ };
1095
+ exports.paymentOrdersPayForInstantBook = paymentOrdersPayForInstantBook;
1096
+ exports.paymentOrdersPayForInstantBook.method = "POST";
1097
+ /**
1098
+ * ゲストの決済結果の取得
1099
+ * @param {number} sincePaymentTime 1666262441
1100
+ */
1101
+ const paymentResult = ({ sincePaymentTime, paymentOrderId, }) => {
1102
+ const __root = (0, exports.root)();
1103
+ const __queries = Object.entries({ sincePaymentTime })
1104
+ .filter(([_, value]) => {
1105
+ return value !== undefined;
1106
+ })
1107
+ .map(([key, value]) => {
1108
+ return `${key}=${value}`;
1109
+ })
1110
+ .join("&");
1111
+ const __path = `${__root}/${`payment_orders/${paymentOrderId}/pay_result`}`;
1112
+ return __queries ? `${__path}?${__queries}` : __path;
1113
+ };
1114
+ exports.paymentResult = paymentResult;
1115
+ exports.paymentResult.method = "GET";
1116
+ /**
1117
+ * 予約一覧を取得する
1118
+ * @param {string} couponId foo
1119
+ * @param {number} page 0
1120
+ * @param {number} itemsPerPage 20
1121
+ */
1122
+ const managerReservationsList = ({ couponId, page, itemsPerPage, }) => {
1123
+ const __root = (0, exports.root)();
1124
+ const __queries = Object.entries({ couponId, page, itemsPerPage })
1125
+ .filter(([_, value]) => {
1126
+ return value !== undefined;
1127
+ })
1128
+ .map(([key, value]) => {
1129
+ return `${key}=${value}`;
1130
+ })
1131
+ .join("&");
1132
+ const __path = `${__root}/${`manager/reservations`}`;
1133
+ return __queries ? `${__path}?${__queries}` : __path;
1134
+ };
1135
+ exports.managerReservationsList = managerReservationsList;
1136
+ exports.managerReservationsList.method = "GET";
1137
+ /**
1138
+ * 空欄の決済項目のidを更新する
1139
+ *
1140
+ */
1141
+ const updateAllBlankPaymentOrderItemId = () => {
1142
+ const __root = (0, exports.root)();
1143
+ const __queries = Object.entries({})
1144
+ .filter(([_, value]) => {
1145
+ return value !== undefined;
1146
+ })
1147
+ .map(([key, value]) => {
1148
+ return `${key}=${value}`;
1149
+ })
1150
+ .join("&");
1151
+ const __path = `${__root}/${`update_all_blanck_payment_order_item_id`}`;
1152
+ return __queries ? `${__path}?${__queries}` : __path;
1153
+ };
1154
+ exports.updateAllBlankPaymentOrderItemId = updateAllBlankPaymentOrderItemId;
1155
+ exports.updateAllBlankPaymentOrderItemId.method = "PUT";
1156
+ /**
1157
+ * 問い合わせとゲストの紐付けを行う
1158
+ * @param {string} couponCode ask3kd
1159
+ * @param {string} listingId 1a1969fa-2684-412b-846d-2913d6991aa5
1160
+ */
1161
+ const guestCouponGetByCouponCode = ({ couponCode, listingId, }) => {
1162
+ const __root = (0, exports.root)();
1163
+ const __queries = Object.entries({ couponCode, listingId })
1164
+ .filter(([_, value]) => {
1165
+ return value !== undefined;
1166
+ })
1167
+ .map(([key, value]) => {
1168
+ return `${key}=${value}`;
1169
+ })
1170
+ .join("&");
1171
+ const __path = `${__root}/${`coupons`}`;
1172
+ return __queries ? `${__path}?${__queries}` : __path;
1173
+ };
1174
+ exports.guestCouponGetByCouponCode = guestCouponGetByCouponCode;
1175
+ exports.guestCouponGetByCouponCode.method = "GET";
1176
+ /**
1177
+ * 公開されている部屋タイプの日ごとのカレンダーを取得する
1178
+ *
1179
+ */
1180
+ const roomTypeCalendarGetByRoomTypeId = ({ roomTypeId, }) => {
1181
+ const __root = (0, exports.root)();
1182
+ const __queries = Object.entries({})
1183
+ .filter(([_, value]) => {
1184
+ return value !== undefined;
1185
+ })
1186
+ .map(([key, value]) => {
1187
+ return `${key}=${value}`;
1188
+ })
1189
+ .join("&");
1190
+ const __path = `${__root}/${`room_types/${roomTypeId}/calendar_dates/query`}`;
1191
+ return __queries ? `${__path}?${__queries}` : __path;
1192
+ };
1193
+ exports.roomTypeCalendarGetByRoomTypeId = roomTypeCalendarGetByRoomTypeId;
1194
+ exports.roomTypeCalendarGetByRoomTypeId.method = "POST";
1195
+ /**
1196
+ * 部屋タイプと代表の部屋を取得する
1197
+ * @param {string} locale ja
1198
+ */
1199
+ const roomTypeGetRepresentListing = ({ locale, roomTypeId, }) => {
1200
+ const __root = (0, exports.root)();
1201
+ const __queries = Object.entries({ locale })
1202
+ .filter(([_, value]) => {
1203
+ return value !== undefined;
1204
+ })
1205
+ .map(([key, value]) => {
1206
+ return `${key}=${value}`;
1207
+ })
1208
+ .join("&");
1209
+ const __path = `${__root}/${`room_types/${roomTypeId}/represent_listing`}`;
1210
+ return __queries ? `${__path}?${__queries}` : __path;
1211
+ };
1212
+ exports.roomTypeGetRepresentListing = roomTypeGetRepresentListing;
1213
+ exports.roomTypeGetRepresentListing.method = "GET";
1214
+ /**
1215
+ * 指定した宿泊可能な期間と入居人数に対する宿泊契約の合計料金を取得する
1216
+ * @param {string} startDate 2020-04-02
1217
+ * @param {string} endDate 2020-05-23
1218
+ * @param {number} persons 3
1219
+ */
1220
+ const roomTypeGetHotelStayTotalCostForAvailableDateSpanAndPersons = ({ startDate, endDate, persons, roomTypeId, }) => {
1221
+ const __root = (0, exports.root)();
1222
+ const __queries = Object.entries({ startDate, endDate, persons })
1223
+ .filter(([_, value]) => {
1224
+ return value !== undefined;
1225
+ })
1226
+ .map(([key, value]) => {
1227
+ return `${key}=${value}`;
1228
+ })
1229
+ .join("&");
1230
+ const __path = `${__root}/${`room_types/${roomTypeId}/hotel_stay_cost`}`;
1231
+ return __queries ? `${__path}?${__queries}` : __path;
1232
+ };
1233
+ exports.roomTypeGetHotelStayTotalCostForAvailableDateSpanAndPersons = roomTypeGetHotelStayTotalCostForAvailableDateSpanAndPersons;
1234
+ exports.roomTypeGetHotelStayTotalCostForAvailableDateSpanAndPersons.method =
1235
+ "GET";
1236
+ exports.sumyca_guestV3 = {
1237
+ healthCheck: exports.healthCheck,
1238
+ readContract: exports.readContract,
1239
+ contractSubmitGuestInformation: exports.contractSubmitGuestInformation,
1240
+ contractSubmitCorporationInformation: exports.contractSubmitCorporationInformation,
1241
+ contractAgree: exports.contractAgree,
1242
+ contractGetResidentCount: exports.contractGetResidentCount,
1243
+ guestIdentificationUploadImage: exports.guestIdentificationUploadImage,
1244
+ authListContracts: exports.authListContracts,
1245
+ authGetContract: exports.authGetContract,
1246
+ authReadContract: exports.authReadContract,
1247
+ authContractGetGuestInformation: exports.authContractGetGuestInformation,
1248
+ authContractGetCorporationInformation: exports.authContractGetCorporationInformation,
1249
+ authContractUpdateGuestInformation: exports.authContractUpdateGuestInformation,
1250
+ authContractUpdateCorporationInformation: exports.authContractUpdateCorporationInformation,
1251
+ authContractSubmitGuestInformationForIndividual: exports.authContractSubmitGuestInformationForIndividual,
1252
+ authContractSubmitGuestInformation: exports.authContractSubmitGuestInformation,
1253
+ authContractAgree: exports.authContractAgree,
1254
+ authGuestIdentificationList: exports.authGuestIdentificationList,
1255
+ authGuestIdentificationGetImageData: exports.authGuestIdentificationGetImageData,
1256
+ authGuestIdentificationUploadImageData: exports.authGuestIdentificationUploadImageData,
1257
+ authGuestIdentificationAdditionalUploadImageData: exports.authGuestIdentificationAdditionalUploadImageData,
1258
+ authGuestIdentificationDeleteImageData: exports.authGuestIdentificationDeleteImageData,
1259
+ listingGet: exports.listingGet,
1260
+ listingGetTotalCostForDateSpanAndPersons: exports.listingGetTotalCostForDateSpanAndPersons,
1261
+ getCalendarsByListingIdAndDateSpan: exports.getCalendarsByListingIdAndDateSpan,
1262
+ searchListingsByLocationNameAndConditions: exports.searchListingsByLocationNameAndConditions,
1263
+ searchListingsByMultipleConditions: exports.searchListingsByMultipleConditions,
1264
+ searchListingsWithRoomTypeByLocationNameAndMultipleConditions: exports.searchListingsWithRoomTypeByLocationNameAndMultipleConditions,
1265
+ getSaleTypeOnSaleListingsSortedBySaleTypeUpdatedAtAsc: exports.getSaleTypeOnSaleListingsSortedBySaleTypeUpdatedAtAsc,
1266
+ guestUserSignUpWithPassword: exports.guestUserSignUpWithPassword,
1267
+ guestuserSignUpWithOAuth: exports.guestuserSignUpWithOAuth,
1268
+ guestUserSigninWithPassword: exports.guestUserSigninWithPassword,
1269
+ guestUserSigninWithOAuth: exports.guestUserSigninWithOAuth,
1270
+ guestUserSendPasswordResetEmail: exports.guestUserSendPasswordResetEmail,
1271
+ guestUserResetPassword: exports.guestUserResetPassword,
1272
+ guestUserAssociateWithInquiry: exports.guestUserAssociateWithInquiry,
1273
+ reservationReserveImmediately: exports.reservationReserveImmediately,
1274
+ internalDeleteListing: exports.internalDeleteListing,
1275
+ inquiryCreate: exports.inquiryCreate,
1276
+ inquiryGetPaymentOrders: exports.inquiryGetPaymentOrders,
1277
+ inquiryGetReservation: exports.inquiryGetReservation,
1278
+ inquiryGetVeritransTokenApiKey: exports.inquiryGetVeritransTokenApiKey,
1279
+ inquiryGetCoupon: exports.inquiryGetCoupon,
1280
+ inquiryCreateForCategoryPage: exports.inquiryCreateForCategoryPage,
1281
+ informationGetCityNamesInPrefecture: exports.informationGetCityNamesInPrefecture,
1282
+ informationGetKeywordsByCategories: exports.informationGetKeywordsByCategories,
1283
+ paymentOrdersPayConditional: exports.paymentOrdersPayConditional,
1284
+ paymentOrdersPayConditional3DSecure: exports.paymentOrdersPayConditional3DSecure,
1285
+ paymentNotification: exports.paymentNotification,
1286
+ paymentOrdersPayForInstantBook: exports.paymentOrdersPayForInstantBook,
1287
+ paymentResult: exports.paymentResult,
1288
+ managerReservationsList: exports.managerReservationsList,
1289
+ updateAllBlankPaymentOrderItemId: exports.updateAllBlankPaymentOrderItemId,
1290
+ guestCouponGetByCouponCode: exports.guestCouponGetByCouponCode,
1291
+ roomTypeCalendarGetByRoomTypeId: exports.roomTypeCalendarGetByRoomTypeId,
1292
+ roomTypeGetRepresentListing: exports.roomTypeGetRepresentListing,
1293
+ roomTypeGetHotelStayTotalCostForAvailableDateSpanAndPersons: exports.roomTypeGetHotelStayTotalCostForAvailableDateSpanAndPersons,
1294
+ };