@compassdigital/sdk.typescript 3.0.0-beta.21 → 3.0.0-beta.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.
Files changed (226) hide show
  1. package/README.md +9 -126
  2. package/gen.ts +41 -86
  3. package/lib/announcement.d.ts.map +1 -0
  4. package/lib/announcement.js +3 -0
  5. package/lib/announcement.js.map +1 -0
  6. package/lib/base.d.ts +4 -141
  7. package/lib/base.d.ts.map +1 -1
  8. package/lib/base.js +35 -328
  9. package/lib/base.js.map +1 -1
  10. package/lib/brand.d.ts.map +1 -0
  11. package/lib/brand.js +3 -0
  12. package/lib/brand.js.map +1 -0
  13. package/lib/calendar.d.ts.map +1 -0
  14. package/lib/calendar.js +3 -0
  15. package/lib/calendar.js.map +1 -0
  16. package/lib/config.d.ts.map +1 -0
  17. package/lib/config.js +3 -0
  18. package/lib/config.js.map +1 -0
  19. package/lib/datalake.d.ts.map +1 -0
  20. package/lib/datalake.js +3 -0
  21. package/lib/datalake.js.map +1 -0
  22. package/lib/delivery.d.ts.map +1 -0
  23. package/lib/delivery.js +3 -0
  24. package/lib/delivery.js.map +1 -0
  25. package/lib/dh.d.ts.map +1 -0
  26. package/lib/dh.js +3 -0
  27. package/lib/dh.js.map +1 -0
  28. package/lib/email.d.ts +5 -0
  29. package/lib/email.d.ts.map +1 -0
  30. package/lib/email.js +3 -0
  31. package/lib/email.js.map +1 -0
  32. package/lib/file.d.ts.map +1 -0
  33. package/lib/file.js +3 -0
  34. package/lib/file.js.map +1 -0
  35. package/lib/index.d.ts +264 -503
  36. package/lib/index.d.ts.map +1 -1
  37. package/lib/index.js +242 -534
  38. package/lib/index.js.map +1 -1
  39. package/lib/{interface/kds.d.ts → kds.d.ts} +0 -1
  40. package/lib/kds.d.ts.map +1 -0
  41. package/lib/kds.js +3 -0
  42. package/lib/kds.js.map +1 -0
  43. package/lib/{interface/location.d.ts → location.d.ts} +18 -23
  44. package/lib/location.d.ts.map +1 -0
  45. package/lib/location.js +3 -0
  46. package/lib/location.js.map +1 -0
  47. package/lib/logger.d.ts.map +1 -0
  48. package/lib/logger.js +3 -0
  49. package/lib/logger.js.map +1 -0
  50. package/lib/loyalty.d.ts.map +1 -0
  51. package/lib/loyalty.js +3 -0
  52. package/lib/loyalty.js.map +1 -0
  53. package/lib/mealplan.d.ts.map +1 -0
  54. package/lib/mealplan.js +3 -0
  55. package/lib/mealplan.js.map +1 -0
  56. package/lib/message.d.ts.map +1 -0
  57. package/lib/message.js +3 -0
  58. package/lib/message.js.map +1 -0
  59. package/lib/{interface/order.d.ts → order.d.ts} +4 -11
  60. package/lib/order.d.ts.map +1 -0
  61. package/lib/order.js +3 -0
  62. package/lib/order.js.map +1 -0
  63. package/lib/{interface/partner.d.ts → partner.d.ts} +4 -243
  64. package/lib/partner.d.ts.map +1 -0
  65. package/lib/partner.js +3 -0
  66. package/lib/partner.js.map +1 -0
  67. package/lib/{interface/payment.d.ts → payment.d.ts} +0 -1
  68. package/lib/payment.d.ts.map +1 -0
  69. package/lib/payment.js +3 -0
  70. package/lib/payment.js.map +1 -0
  71. package/lib/promo.d.ts.map +1 -0
  72. package/lib/promo.js +3 -0
  73. package/lib/promo.js.map +1 -0
  74. package/lib/report.d.ts.map +1 -0
  75. package/lib/report.js +3 -0
  76. package/lib/report.js.map +1 -0
  77. package/lib/schedule.d.ts.map +1 -0
  78. package/lib/schedule.js +3 -0
  79. package/lib/schedule.js.map +1 -0
  80. package/lib/{interface/shoppingcart.d.ts → shoppingcart.d.ts} +1 -10
  81. package/lib/shoppingcart.d.ts.map +1 -0
  82. package/lib/shoppingcart.js +3 -0
  83. package/lib/shoppingcart.js.map +1 -0
  84. package/lib/task.d.ts.map +1 -0
  85. package/lib/task.js +3 -0
  86. package/lib/task.js.map +1 -0
  87. package/lib/{interface/user.d.ts → user.d.ts} +0 -19
  88. package/lib/user.d.ts.map +1 -0
  89. package/lib/user.js +3 -0
  90. package/lib/user.js.map +1 -0
  91. package/lib/vote.d.ts.map +1 -0
  92. package/lib/vote.js +3 -0
  93. package/lib/vote.js.map +1 -0
  94. package/manifest.json +50 -29
  95. package/package.json +5 -19
  96. package/src/{interface/announcement.ts → announcement.ts} +0 -2
  97. package/src/base.ts +17 -330
  98. package/src/{interface/brand.ts → brand.ts} +0 -2
  99. package/src/{interface/calendar.ts → calendar.ts} +0 -2
  100. package/src/{interface/config.ts → config.ts} +0 -2
  101. package/src/{interface/datalake.ts → datalake.ts} +0 -2
  102. package/src/{interface/delivery.ts → delivery.ts} +0 -2
  103. package/src/{interface/dh.ts → dh.ts} +0 -2
  104. package/src/email.ts +4 -0
  105. package/src/{interface/file.ts → file.ts} +0 -2
  106. package/src/index.ts +503 -2219
  107. package/src/{interface/kds.ts → kds.ts} +0 -4
  108. package/src/{interface/location.ts → location.ts} +33 -41
  109. package/src/{interface/logger.ts → logger.ts} +0 -2
  110. package/src/{interface/loyalty.ts → loyalty.ts} +0 -2
  111. package/src/{interface/mealplan.ts → mealplan.ts} +0 -2
  112. package/src/{interface/message.ts → message.ts} +0 -2
  113. package/src/{interface/order.ts → order.ts} +6 -21
  114. package/src/{interface/partner.ts → partner.ts} +5 -291
  115. package/src/{interface/payment.ts → payment.ts} +0 -4
  116. package/src/{interface/promo.ts → promo.ts} +0 -2
  117. package/src/{interface/report.ts → report.ts} +0 -2
  118. package/src/{interface/schedule.ts → schedule.ts} +0 -2
  119. package/src/{interface/shoppingcart.ts → shoppingcart.ts} +1 -14
  120. package/src/{interface/task.ts → task.ts} +0 -2
  121. package/src/{interface/user.ts → user.ts} +1 -34
  122. package/src/{interface/vote.ts → vote.ts} +0 -2
  123. package/template.ejs +2 -3
  124. package/bin/gen.js +0 -472
  125. package/bin/index.js +0 -3
  126. package/lib/interface/announcement.d.ts.map +0 -1
  127. package/lib/interface/announcement.js +0 -4
  128. package/lib/interface/announcement.js.map +0 -1
  129. package/lib/interface/brand.d.ts.map +0 -1
  130. package/lib/interface/brand.js +0 -4
  131. package/lib/interface/brand.js.map +0 -1
  132. package/lib/interface/calendar.d.ts.map +0 -1
  133. package/lib/interface/calendar.js +0 -4
  134. package/lib/interface/calendar.js.map +0 -1
  135. package/lib/interface/config.d.ts.map +0 -1
  136. package/lib/interface/config.js +0 -4
  137. package/lib/interface/config.js.map +0 -1
  138. package/lib/interface/datalake.d.ts.map +0 -1
  139. package/lib/interface/datalake.js +0 -4
  140. package/lib/interface/datalake.js.map +0 -1
  141. package/lib/interface/delivery.d.ts.map +0 -1
  142. package/lib/interface/delivery.js +0 -4
  143. package/lib/interface/delivery.js.map +0 -1
  144. package/lib/interface/dh.d.ts.map +0 -1
  145. package/lib/interface/dh.js +0 -4
  146. package/lib/interface/dh.js.map +0 -1
  147. package/lib/interface/email.d.ts +0 -21
  148. package/lib/interface/email.d.ts.map +0 -1
  149. package/lib/interface/email.js +0 -4
  150. package/lib/interface/email.js.map +0 -1
  151. package/lib/interface/file.d.ts.map +0 -1
  152. package/lib/interface/file.js +0 -4
  153. package/lib/interface/file.js.map +0 -1
  154. package/lib/interface/kds.d.ts.map +0 -1
  155. package/lib/interface/kds.js +0 -4
  156. package/lib/interface/kds.js.map +0 -1
  157. package/lib/interface/location.d.ts.map +0 -1
  158. package/lib/interface/location.js +0 -4
  159. package/lib/interface/location.js.map +0 -1
  160. package/lib/interface/logger.d.ts.map +0 -1
  161. package/lib/interface/logger.js +0 -4
  162. package/lib/interface/logger.js.map +0 -1
  163. package/lib/interface/loyalty.d.ts.map +0 -1
  164. package/lib/interface/loyalty.js +0 -4
  165. package/lib/interface/loyalty.js.map +0 -1
  166. package/lib/interface/mealplan.d.ts.map +0 -1
  167. package/lib/interface/mealplan.js +0 -4
  168. package/lib/interface/mealplan.js.map +0 -1
  169. package/lib/interface/menu.d.ts +0 -444
  170. package/lib/interface/menu.d.ts.map +0 -1
  171. package/lib/interface/menu.js +0 -4
  172. package/lib/interface/menu.js.map +0 -1
  173. package/lib/interface/message.d.ts.map +0 -1
  174. package/lib/interface/message.js +0 -4
  175. package/lib/interface/message.js.map +0 -1
  176. package/lib/interface/order.d.ts.map +0 -1
  177. package/lib/interface/order.js +0 -4
  178. package/lib/interface/order.js.map +0 -1
  179. package/lib/interface/partner.d.ts.map +0 -1
  180. package/lib/interface/partner.js +0 -4
  181. package/lib/interface/partner.js.map +0 -1
  182. package/lib/interface/payment.d.ts.map +0 -1
  183. package/lib/interface/payment.js +0 -4
  184. package/lib/interface/payment.js.map +0 -1
  185. package/lib/interface/promo.d.ts.map +0 -1
  186. package/lib/interface/promo.js +0 -4
  187. package/lib/interface/promo.js.map +0 -1
  188. package/lib/interface/report.d.ts.map +0 -1
  189. package/lib/interface/report.js +0 -4
  190. package/lib/interface/report.js.map +0 -1
  191. package/lib/interface/schedule.d.ts.map +0 -1
  192. package/lib/interface/schedule.js +0 -4
  193. package/lib/interface/schedule.js.map +0 -1
  194. package/lib/interface/shoppingcart.d.ts.map +0 -1
  195. package/lib/interface/shoppingcart.js +0 -4
  196. package/lib/interface/shoppingcart.js.map +0 -1
  197. package/lib/interface/task.d.ts.map +0 -1
  198. package/lib/interface/task.js +0 -4
  199. package/lib/interface/task.js.map +0 -1
  200. package/lib/interface/user.d.ts.map +0 -1
  201. package/lib/interface/user.js +0 -4
  202. package/lib/interface/user.js.map +0 -1
  203. package/lib/interface/vote.d.ts.map +0 -1
  204. package/lib/interface/vote.js +0 -4
  205. package/lib/interface/vote.js.map +0 -1
  206. package/src/interface/email.ts +0 -30
  207. package/src/interface/menu.ts +0 -644
  208. package/test/client.test.ts +0 -192
  209. package/test/gen.test.ts +0 -22
  210. /package/lib/{interface/announcement.d.ts → announcement.d.ts} +0 -0
  211. /package/lib/{interface/brand.d.ts → brand.d.ts} +0 -0
  212. /package/lib/{interface/calendar.d.ts → calendar.d.ts} +0 -0
  213. /package/lib/{interface/config.d.ts → config.d.ts} +0 -0
  214. /package/lib/{interface/datalake.d.ts → datalake.d.ts} +0 -0
  215. /package/lib/{interface/delivery.d.ts → delivery.d.ts} +0 -0
  216. /package/lib/{interface/dh.d.ts → dh.d.ts} +0 -0
  217. /package/lib/{interface/file.d.ts → file.d.ts} +0 -0
  218. /package/lib/{interface/logger.d.ts → logger.d.ts} +0 -0
  219. /package/lib/{interface/loyalty.d.ts → loyalty.d.ts} +0 -0
  220. /package/lib/{interface/mealplan.d.ts → mealplan.d.ts} +0 -0
  221. /package/lib/{interface/message.d.ts → message.d.ts} +0 -0
  222. /package/lib/{interface/promo.d.ts → promo.d.ts} +0 -0
  223. /package/lib/{interface/report.d.ts → report.d.ts} +0 -0
  224. /package/lib/{interface/schedule.d.ts → schedule.d.ts} +0 -0
  225. /package/lib/{interface/task.d.ts → task.d.ts} +0 -0
  226. /package/lib/{interface/vote.d.ts → vote.d.ts} +0 -0
package/src/index.ts CHANGED
@@ -1,5 +1,3 @@
1
- // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
-
3
1
  import {
4
2
  PostPaymentTransactionBody,
5
3
  PostPaymentTransactionResponse,
@@ -28,7 +26,7 @@ import {
28
26
  GetPaymentMethodsResponse,
29
27
  GetPaymentHpcQuery,
30
28
  GetPaymentHpcResponse,
31
- } from "./interface/payment";
29
+ } from "./payment";
32
30
 
33
31
  import {
34
32
  PostOrderQuery,
@@ -45,14 +43,13 @@ import {
45
43
  GetOrderCustomerOrdersQuery,
46
44
  GetOrderCustomerOrdersResponse,
47
45
  GetOrderCustomerOrdersBrandResponse,
48
- GetOrderLocationBrandQuery,
49
- GetOrderLocationBrandResponse,
46
+ GetOrderBrandOrdersQuery,
47
+ GetOrderBrandOrdersResponse,
50
48
  GetOrderLocationOrdersQuery,
51
49
  GetOrderLocationOrdersResponse,
52
50
  GetOrderGroupOrdersQuery,
53
51
  GetOrderGroupOrdersResponse,
54
- PatchOrderCheckinResponse,
55
- } from "./interface/order";
52
+ } from "./order";
56
53
 
57
54
  import {
58
55
  PostLocationBody,
@@ -98,11 +95,10 @@ import {
98
95
  GetLocationGroupDeliverydestinationsResponse,
99
96
  PostLocationGroupDeliverydestinationBody,
100
97
  PostLocationGroupDeliverydestinationResponse,
98
+ GetLocationGroupDeliverydestinationResponse,
101
99
  PatchLocationGroupDeliverydestinationBody,
102
100
  PatchLocationGroupDeliverydestinationResponse,
103
- DeleteLocationGroupDeliverydestinationBody,
104
101
  DeleteLocationGroupDeliverydestinationResponse,
105
- GetLocationGroupDeliverydestinationResponse,
106
102
  GetLocationUserGroupQuery,
107
103
  GetLocationUserGroupResponse,
108
104
  GetLocationBrandsResponse,
@@ -150,7 +146,7 @@ import {
150
146
  GetLocationCompanyResponse,
151
147
  PatchLocationCompanyBody,
152
148
  PatchLocationCompanyResponse,
153
- } from "./interface/location";
149
+ } from "./location";
154
150
 
155
151
  import {
156
152
  PostShoppingcartCartBody,
@@ -175,21 +171,16 @@ import {
175
171
  PostShoppingcartCloneCartResponse,
176
172
  PostShoppingcartBulkBody,
177
173
  PostShoppingcartBulkResponse,
178
- } from "./interface/shoppingcart";
174
+ } from "./shoppingcart";
179
175
 
180
176
  import {
181
177
  PostPartnerStandardcognitionShoppingcartBody,
182
178
  PostPartnerStandardcognitionShoppingcartResponse,
183
179
  GetPartnerStandardcognitionLocationsResponse,
184
- GetPartnerStandardcognitionStoresResponse,
185
- PostPartnerStandardcognitionMenuBody,
186
- PostPartnerStandardcognitionMenuResponse,
187
180
  GetPartnerCoolrLocationsResponse,
188
181
  GetPartnerCoolrImagesResponse,
189
182
  GetPartnerSwaggerResponse,
190
- } from "./interface/partner";
191
-
192
- import { PostEmailBody, PostEmailResponse } from "./interface/email";
183
+ } from "./partner";
193
184
 
194
185
  import {
195
186
  PostTaskBody,
@@ -208,7 +199,7 @@ import {
208
199
  GetTaskLocationBrandResponse,
209
200
  GetTaskLocationGroupQuery,
210
201
  GetTaskLocationGroupResponse,
211
- } from "./interface/task";
202
+ } from "./task";
212
203
 
213
204
  import {
214
205
  GetKdsDevicesQuery,
@@ -217,7 +208,7 @@ import {
217
208
  PostKdsDeviceAuthResponse,
218
209
  DeleteKdsDeviceAuthResponse,
219
210
  GetKdsSwaggerResponse,
220
- } from "./interface/kds";
211
+ } from "./kds";
221
212
 
222
213
  import {
223
214
  PostMealplanBody,
@@ -239,13 +230,9 @@ import {
239
230
  PutMealplanVerifyResponse,
240
231
  PostMealplanAuthorizeBody,
241
232
  PostMealplanAuthorizeResponse,
242
- } from "./interface/mealplan";
233
+ } from "./mealplan";
243
234
 
244
- import {
245
- PostDatalakeSqlBody,
246
- PostDatalakeSqlResponse,
247
- GetSwaggerResponse,
248
- } from "./interface/datalake";
235
+ import { PostDatalakeSqlBody, PostDatalakeSqlResponse, GetSwaggerResponse } from "./datalake";
249
236
 
250
237
  import {
251
238
  PostPromoBody,
@@ -278,9 +265,9 @@ import {
278
265
  PostPromoVoucherifyActivityExecuteBody,
279
266
  PostPromoVoucherifyActivityExecuteResponse,
280
267
  GetPromoVoucherifyActivityConfigResponse,
281
- } from "./interface/promo";
268
+ } from "./promo";
282
269
 
283
- import { PostDhSqlResponse } from "./interface/dh";
270
+ import { PostDhSqlResponse } from "./dh";
284
271
 
285
272
  import {
286
273
  GetConfigResponse,
@@ -295,7 +282,7 @@ import {
295
282
  PutConfigPublicBody,
296
283
  PutConfigPublicResponse,
297
284
  DeleteConfigPublicResponse,
298
- } from "./interface/config";
285
+ } from "./config";
299
286
 
300
287
  import {
301
288
  PostAnnouncementBody,
@@ -308,7 +295,7 @@ import {
308
295
  PutAnnouncementBody,
309
296
  PutAnnouncementResponse,
310
297
  DeleteAnnouncementResponse,
311
- } from "./interface/announcement";
298
+ } from "./announcement";
312
299
 
313
300
  import {
314
301
  GetReportAnalyticsGroupQuery,
@@ -336,7 +323,7 @@ import {
336
323
  DeleteReportDiscrepancySubscribersResponse,
337
324
  PostReportDiscrepancySubscribersBody,
338
325
  PostReportDiscrepancySubscribersResponse,
339
- } from "./interface/report";
326
+ } from "./report";
340
327
 
341
328
  import {
342
329
  GetUserAuthQuery,
@@ -362,7 +349,6 @@ import {
362
349
  GetUserKdsTokenQuery,
363
350
  GetUserKdsTokenResponse,
364
351
  DeleteUserDeviceAuthResponse,
365
- PatchUserAuthKdsBody,
366
352
  PatchUserAuthKdsResponse,
367
353
  PostUserChangePasswordBody,
368
354
  PostUserChangePasswordResponse,
@@ -392,9 +378,7 @@ import {
392
378
  PostUserSendEmailVerificationResponse,
393
379
  PutUserVerifyUserEmailBody,
394
380
  PutUserVerifyUserEmailResponse,
395
- PutUserVerificationPhoneBody,
396
- PutUserVerificationPhoneResponse,
397
- } from "./interface/user";
381
+ } from "./user";
398
382
 
399
383
  import {
400
384
  PostLoyaltyEnrollQuery,
@@ -431,9 +415,9 @@ import {
431
415
  GetLoyaltyUsersResponse,
432
416
  GetLoyaltyEventsQuery,
433
417
  GetLoyaltyEventsResponse,
434
- } from "./interface/loyalty";
418
+ } from "./loyalty";
435
419
 
436
- import { GetBrandResponse, GetBrandsResponse } from "./interface/brand";
420
+ import { GetBrandResponse, GetBrandsResponse } from "./brand";
437
421
 
438
422
  import {
439
423
  GetCalendarResponse,
@@ -443,14 +427,14 @@ import {
443
427
  GetCalendarCdlResponse,
444
428
  GetCalendarSwaggerResponse,
445
429
  PostCalendarSyncResponse,
446
- } from "./interface/calendar";
430
+ } from "./calendar";
447
431
 
448
432
  import {
449
433
  PostDeliveryOrderBody,
450
434
  PostDeliveryOrderResponse,
451
435
  PatchDeliveryOrderResponse,
452
436
  GetDeliveryOrderResponse,
453
- } from "./interface/delivery";
437
+ } from "./delivery";
454
438
 
455
439
  import {
456
440
  PostScheduleBody,
@@ -461,68 +445,17 @@ import {
461
445
  PutScheduleBody,
462
446
  PutScheduleResponse,
463
447
  DeleteScheduleResponse,
464
- } from "./interface/schedule";
448
+ } from "./schedule";
465
449
 
466
- import {
467
- PostVoteBody,
468
- PostVoteResponse,
469
- GetVoteIdfaQuery,
470
- GetVoteIdfaResponse,
471
- } from "./interface/vote";
450
+ import { PostVoteBody, PostVoteResponse, GetVoteIdfaQuery, GetVoteIdfaResponse } from "./vote";
472
451
 
473
- import { PostFileBody, PostFileResponse } from "./interface/file";
452
+ import { PostFileBody, PostFileResponse } from "./file";
474
453
 
475
- import { PostMessageBody, PostMessageResponse, GetMessageResponse } from "./interface/message";
454
+ import { PostMessageBody, PostMessageResponse, GetMessageResponse } from "./message";
476
455
 
477
- import { GetLoggerBrandStatusQuery, GetLoggerBrandStatusResponse } from "./interface/logger";
456
+ import { GetLoggerBrandStatusQuery, GetLoggerBrandStatusResponse } from "./logger";
478
457
 
479
- import {
480
- GetMenuClientResponse,
481
- GetMenusQuery,
482
- GetMenusResponse,
483
- PostMenuBody,
484
- PostMenuResponse,
485
- HeadMenuQuery,
486
- HeadMenuResponse,
487
- GetMenuQuery,
488
- GetMenuResponse,
489
- PutMenuQuery,
490
- PutMenuBody,
491
- PutMenuResponse,
492
- DeleteMenuQuery,
493
- DeleteMenuResponse,
494
- PatchMenuQuery,
495
- PatchMenuBody,
496
- PatchMenuResponse,
497
- PostMenuImportMenuBody,
498
- PostMenuImportMenuResponse,
499
- GetMenuItemResponse,
500
- DeleteMenuItemResponse,
501
- PostMenuItemBody,
502
- PostMenuItemResponse,
503
- GetMenuItemsQuery,
504
- GetMenuItemsResponse,
505
- PostMenuImportItemsCanteenResponse,
506
- GetMenuLocationItemsResponse,
507
- GetMenuLocationItemRandomQuery,
508
- GetMenuLocationItemRandomResponse,
509
- GetMenuLocationItemsRandomQuery,
510
- GetMenuLocationItemsRandomResponse,
511
- GetMenuSectorMenusResponse,
512
- GetMenuCompanyMenusResponse,
513
- PostMenuModifierGroupBody,
514
- PostMenuModifierGroupResponse,
515
- GetMenuModifierGroupResponse,
516
- PutMenuModifierGroupBody,
517
- PutMenuModifierGroupResponse,
518
- DeleteMenuModifierGroupResponse,
519
- GetMenuCompanyModifierGroupsResponse,
520
- GetMenuCompanyModifierGroupsExportResponse,
521
- GetMenuExportResponse,
522
- } from "./interface/menu";
523
-
524
- import { BaseServiceClient, RequestOptions, ResponsePromise } from "./base";
525
- export * from "./base";
458
+ import { BaseServiceClient, RequestOptions } from "./base";
526
459
 
527
460
  export class ServiceClient extends BaseServiceClient {
528
461
  /**
@@ -536,15 +469,8 @@ export class ServiceClient extends BaseServiceClient {
536
469
  id: string,
537
470
  body: PostPaymentTransactionBody,
538
471
  options?: RequestOptions
539
- ): ResponsePromise<PostPaymentTransactionResponse> {
540
- return this.request(
541
- "payment",
542
- "post_payment_transaction",
543
- "post",
544
- `/payment/${id}/transaction`,
545
- body,
546
- options
547
- );
472
+ ): Promise<PostPaymentTransactionResponse> {
473
+ return this.request("post", `/payment/${id}/transaction`, body, options);
548
474
  }
549
475
 
550
476
  /**
@@ -560,10 +486,8 @@ export class ServiceClient extends BaseServiceClient {
560
486
  transaction_id: string,
561
487
  body: PostPaymentTransactionRefundBody,
562
488
  options?: RequestOptions
563
- ): ResponsePromise<PostPaymentTransactionRefundResponse> {
489
+ ): Promise<PostPaymentTransactionRefundResponse> {
564
490
  return this.request(
565
- "payment",
566
- "post_payment_transaction_refund",
567
491
  "post",
568
492
  `/payment/${id}/transaction/${transaction_id}/refund`,
569
493
  body,
@@ -580,15 +504,8 @@ export class ServiceClient extends BaseServiceClient {
580
504
  get_payment_clienttoken(
581
505
  id: string,
582
506
  options?: RequestOptions
583
- ): ResponsePromise<GetPaymentClienttokenResponse> {
584
- return this.request(
585
- "payment",
586
- "get_payment_clienttoken",
587
- "get",
588
- `/payment/${id}/clienttoken`,
589
- null,
590
- options
591
- );
507
+ ): Promise<GetPaymentClienttokenResponse> {
508
+ return this.request("get", `/payment/${id}/clienttoken`, null, options);
592
509
  }
593
510
 
594
511
  /**
@@ -602,15 +519,8 @@ export class ServiceClient extends BaseServiceClient {
602
519
  id: string,
603
520
  body: PostPaymentPaymenttokenBody,
604
521
  options?: RequestOptions
605
- ): ResponsePromise<PostPaymentPaymenttokenResponse> {
606
- return this.request(
607
- "payment",
608
- "post_payment_paymenttoken",
609
- "post",
610
- `/payment/${id}/paymenttoken`,
611
- body,
612
- options
613
- );
522
+ ): Promise<PostPaymentPaymenttokenResponse> {
523
+ return this.request("post", `/payment/${id}/paymenttoken`, body, options);
614
524
  }
615
525
 
616
526
  /**
@@ -622,15 +532,8 @@ export class ServiceClient extends BaseServiceClient {
622
532
  post_payment_consumer(
623
533
  body: PostPaymentConsumerBody,
624
534
  options?: RequestOptions
625
- ): ResponsePromise<PostPaymentConsumerResponse> {
626
- return this.request(
627
- "payment",
628
- "post_payment_consumer",
629
- "post",
630
- `/payment/consumer`,
631
- body,
632
- options
633
- );
535
+ ): Promise<PostPaymentConsumerResponse> {
536
+ return this.request("post", `/payment/consumer`, body, options);
634
537
  }
635
538
 
636
539
  /**
@@ -642,8 +545,8 @@ export class ServiceClient extends BaseServiceClient {
642
545
  post_payment_method(
643
546
  body: PostPaymentMethodBody,
644
547
  options?: RequestOptions
645
- ): ResponsePromise<PostPaymentMethodResponse> {
646
- return this.request("payment", "post_payment_method", "post", `/payment/method`, body, options);
548
+ ): Promise<PostPaymentMethodResponse> {
549
+ return this.request("post", `/payment/method`, body, options);
647
550
  }
648
551
 
649
552
  /**
@@ -657,15 +560,8 @@ export class ServiceClient extends BaseServiceClient {
657
560
  options: {
658
561
  query: GetPaymentMethodQuery;
659
562
  } & RequestOptions
660
- ): ResponsePromise<GetPaymentMethodResponse> {
661
- return this.request(
662
- "payment",
663
- "get_payment_method",
664
- "get",
665
- `/payment/${id}/method`,
666
- null,
667
- options
668
- );
563
+ ): Promise<GetPaymentMethodResponse> {
564
+ return this.request("get", `/payment/${id}/method`, null, options);
669
565
  }
670
566
 
671
567
  /**
@@ -681,15 +577,8 @@ export class ServiceClient extends BaseServiceClient {
681
577
  method_id: string,
682
578
  body: DeletePaymentMethodBody,
683
579
  options?: RequestOptions
684
- ): ResponsePromise<DeletePaymentMethodResponse> {
685
- return this.request(
686
- "payment",
687
- "delete_payment_method",
688
- "delete",
689
- `/payment/${id}/method/${method_id}`,
690
- body,
691
- options
692
- );
580
+ ): Promise<DeletePaymentMethodResponse> {
581
+ return this.request("delete", `/payment/${id}/method/${method_id}`, body, options);
693
582
  }
694
583
 
695
584
  /**
@@ -701,8 +590,8 @@ export class ServiceClient extends BaseServiceClient {
701
590
  options: {
702
591
  query: GetPaymentTokenQuery;
703
592
  } & RequestOptions
704
- ): ResponsePromise<GetPaymentTokenResponse> {
705
- return this.request("payment", "get_payment_token", "get", `/payment/token`, null, options);
593
+ ): Promise<GetPaymentTokenResponse> {
594
+ return this.request("get", `/payment/token`, null, options);
706
595
  }
707
596
 
708
597
  /**
@@ -714,8 +603,8 @@ export class ServiceClient extends BaseServiceClient {
714
603
  post_payment_token(
715
604
  body: PostPaymentTokenBody,
716
605
  options?: RequestOptions
717
- ): ResponsePromise<PostPaymentTokenResponse> {
718
- return this.request("payment", "post_payment_token", "post", `/payment/token`, body, options);
606
+ ): Promise<PostPaymentTokenResponse> {
607
+ return this.request("post", `/payment/token`, body, options);
719
608
  }
720
609
 
721
610
  /**
@@ -727,8 +616,8 @@ export class ServiceClient extends BaseServiceClient {
727
616
  put_payment_token(
728
617
  body: PutPaymentTokenBody,
729
618
  options?: RequestOptions
730
- ): ResponsePromise<PutPaymentTokenResponse> {
731
- return this.request("payment", "put_payment_token", "put", `/payment/token`, body, options);
619
+ ): Promise<PutPaymentTokenResponse> {
620
+ return this.request("put", `/payment/token`, body, options);
732
621
  }
733
622
 
734
623
  /**
@@ -740,15 +629,8 @@ export class ServiceClient extends BaseServiceClient {
740
629
  delete_payment_token(
741
630
  body: DeletePaymentTokenBody,
742
631
  options?: RequestOptions
743
- ): ResponsePromise<DeletePaymentTokenResponse> {
744
- return this.request(
745
- "payment",
746
- "delete_payment_token",
747
- "delete",
748
- `/payment/token`,
749
- body,
750
- options
751
- );
632
+ ): Promise<DeletePaymentTokenResponse> {
633
+ return this.request("delete", `/payment/token`, body, options);
752
634
  }
753
635
 
754
636
  /**
@@ -760,8 +642,8 @@ export class ServiceClient extends BaseServiceClient {
760
642
  options: {
761
643
  query: GetPaymentMethodsQuery;
762
644
  } & RequestOptions
763
- ): ResponsePromise<GetPaymentMethodsResponse> {
764
- return this.request("payment", "get_payment_methods", "get", `/payment/methods`, null, options);
645
+ ): Promise<GetPaymentMethodsResponse> {
646
+ return this.request("get", `/payment/methods`, null, options);
765
647
  }
766
648
 
767
649
  /**
@@ -773,8 +655,8 @@ export class ServiceClient extends BaseServiceClient {
773
655
  options: {
774
656
  query: GetPaymentHpcQuery;
775
657
  } & RequestOptions
776
- ): ResponsePromise<GetPaymentHpcResponse> {
777
- return this.request("payment", "get_payment_hpc", "get", `/payment/hpc`, null, options);
658
+ ): Promise<GetPaymentHpcResponse> {
659
+ return this.request("get", `/payment/hpc`, null, options);
778
660
  }
779
661
 
780
662
  /**
@@ -788,8 +670,8 @@ export class ServiceClient extends BaseServiceClient {
788
670
  options?: {
789
671
  query?: PostOrderQuery;
790
672
  } & RequestOptions
791
- ): ResponsePromise<PostOrderResponse> {
792
- return this.request("order", "post_order", "post", `/order`, body, options);
673
+ ): Promise<PostOrderResponse> {
674
+ return this.request("post", `/order`, body, options);
793
675
  }
794
676
 
795
677
  /**
@@ -798,8 +680,8 @@ export class ServiceClient extends BaseServiceClient {
798
680
  * @param id - The order ID
799
681
  * @param options - additional request options
800
682
  */
801
- get_order(id: string, options?: RequestOptions): ResponsePromise<GetOrderResponse> {
802
- return this.request("order", "get_order", "get", `/order/${id}`, null, options);
683
+ get_order(id: string, options?: RequestOptions): Promise<GetOrderResponse> {
684
+ return this.request("get", `/order/${id}`, null, options);
803
685
  }
804
686
 
805
687
  /**
@@ -808,8 +690,8 @@ export class ServiceClient extends BaseServiceClient {
808
690
  * @param id - The order ID
809
691
  * @param options - additional request options
810
692
  */
811
- put_order(id: string, options?: RequestOptions): ResponsePromise<PutOrderResponse> {
812
- return this.request("order", "put_order", "put", `/order/${id}`, null, options);
693
+ put_order(id: string, options?: RequestOptions): Promise<PutOrderResponse> {
694
+ return this.request("put", `/order/${id}`, null, options);
813
695
  }
814
696
 
815
697
  /**
@@ -823,8 +705,8 @@ export class ServiceClient extends BaseServiceClient {
823
705
  id: string,
824
706
  body: PatchOrderBody,
825
707
  options?: RequestOptions
826
- ): ResponsePromise<PatchOrderResponse> {
827
- return this.request("order", "patch_order", "patch", `/order/${id}`, body, options);
708
+ ): Promise<PatchOrderResponse> {
709
+ return this.request("patch", `/order/${id}`, body, options);
828
710
  }
829
711
 
830
712
  /**
@@ -838,8 +720,8 @@ export class ServiceClient extends BaseServiceClient {
838
720
  id: string,
839
721
  body: PostOrderIssueBody,
840
722
  options?: RequestOptions
841
- ): ResponsePromise<PostOrderIssueResponse> {
842
- return this.request("order", "post_order_issue", "post", `/order/${id}/issue`, body, options);
723
+ ): Promise<PostOrderIssueResponse> {
724
+ return this.request("post", `/order/${id}/issue`, body, options);
843
725
  }
844
726
 
845
727
  /**
@@ -853,15 +735,8 @@ export class ServiceClient extends BaseServiceClient {
853
735
  id: string,
854
736
  body: PatchOrderRefundBody,
855
737
  options?: RequestOptions
856
- ): ResponsePromise<PatchOrderRefundResponse> {
857
- return this.request(
858
- "order",
859
- "patch_order_refund",
860
- "patch",
861
- `/order/${id}/refund`,
862
- body,
863
- options
864
- );
738
+ ): Promise<PatchOrderRefundResponse> {
739
+ return this.request("patch", `/order/${id}/refund`, body, options);
865
740
  }
866
741
 
867
742
  /**
@@ -875,15 +750,8 @@ export class ServiceClient extends BaseServiceClient {
875
750
  options?: {
876
751
  query?: GetOrderCustomerOrdersQuery;
877
752
  } & RequestOptions
878
- ): ResponsePromise<GetOrderCustomerOrdersResponse> {
879
- return this.request(
880
- "order",
881
- "get_order_customer_orders",
882
- "get",
883
- `/order/customer/${id}`,
884
- null,
885
- options
886
- );
753
+ ): Promise<GetOrderCustomerOrdersResponse> {
754
+ return this.request("get", `/order/customer/${id}`, null, options);
887
755
  }
888
756
 
889
757
  /**
@@ -897,10 +765,8 @@ export class ServiceClient extends BaseServiceClient {
897
765
  id: string,
898
766
  location_brand: string,
899
767
  options?: RequestOptions
900
- ): ResponsePromise<GetOrderCustomerOrdersBrandResponse> {
768
+ ): Promise<GetOrderCustomerOrdersBrandResponse> {
901
769
  return this.request(
902
- "order",
903
- "get_order_customer_orders_brand",
904
770
  "get",
905
771
  `/order/customer/${id}/location/brand/${location_brand}`,
906
772
  null,
@@ -914,20 +780,13 @@ export class ServiceClient extends BaseServiceClient {
914
780
  * @param id - The location brand ID
915
781
  * @param options - additional request options
916
782
  */
917
- get_order_location_brand(
783
+ get_order_brand_orders(
918
784
  id: string,
919
785
  options?: {
920
- query?: GetOrderLocationBrandQuery;
786
+ query?: GetOrderBrandOrdersQuery;
921
787
  } & RequestOptions
922
- ): ResponsePromise<GetOrderLocationBrandResponse> {
923
- return this.request(
924
- "order",
925
- "get_order_location_brand",
926
- "get",
927
- `/order/location/brand/${id}`,
928
- null,
929
- options
930
- );
788
+ ): Promise<GetOrderBrandOrdersResponse> {
789
+ return this.request("get", `/order/location/brand/${id}`, null, options);
931
790
  }
932
791
 
933
792
  /**
@@ -941,15 +800,8 @@ export class ServiceClient extends BaseServiceClient {
941
800
  options?: {
942
801
  query?: GetOrderLocationOrdersQuery;
943
802
  } & RequestOptions
944
- ): ResponsePromise<GetOrderLocationOrdersResponse> {
945
- return this.request(
946
- "order",
947
- "get_order_location_orders",
948
- "get",
949
- `/order/location/${id}`,
950
- null,
951
- options
952
- );
803
+ ): Promise<GetOrderLocationOrdersResponse> {
804
+ return this.request("get", `/order/location/${id}`, null, options);
953
805
  }
954
806
 
955
807
  /**
@@ -963,35 +815,8 @@ export class ServiceClient extends BaseServiceClient {
963
815
  options?: {
964
816
  query?: GetOrderGroupOrdersQuery;
965
817
  } & RequestOptions
966
- ): ResponsePromise<GetOrderGroupOrdersResponse> {
967
- return this.request(
968
- "order",
969
- "get_order_group_orders",
970
- "get",
971
- `/order/location/group/${id}`,
972
- null,
973
- options
974
- );
975
- }
976
-
977
- /**
978
- * PATCH /order/{id}/checkin - Accept an order by checking in
979
- *
980
- * @param id - The order ID
981
- * @param options - additional request options
982
- */
983
- patch_order_checkin(
984
- id: string,
985
- options?: RequestOptions
986
- ): ResponsePromise<PatchOrderCheckinResponse> {
987
- return this.request(
988
- "order",
989
- "patch_order_checkin",
990
- "patch",
991
- `/order/${id}/checkin`,
992
- null,
993
- options
994
- );
818
+ ): Promise<GetOrderGroupOrdersResponse> {
819
+ return this.request("get", `/order/location/group/${id}`, null, options);
995
820
  }
996
821
 
997
822
  /**
@@ -1000,11 +825,8 @@ export class ServiceClient extends BaseServiceClient {
1000
825
  * @param body
1001
826
  * @param options - additional request options
1002
827
  */
1003
- post_location(
1004
- body: PostLocationBody,
1005
- options?: RequestOptions
1006
- ): ResponsePromise<PostLocationResponse> {
1007
- return this.request("location", "post_location", "post", `/location`, body, options);
828
+ post_location(body: PostLocationBody, options?: RequestOptions): Promise<PostLocationResponse> {
829
+ return this.request("post", `/location`, body, options);
1008
830
  }
1009
831
 
1010
832
  /**
@@ -1012,8 +834,8 @@ export class ServiceClient extends BaseServiceClient {
1012
834
  *
1013
835
  * @param options - additional request options
1014
836
  */
1015
- get_locations(options?: RequestOptions): ResponsePromise<GetLocationsResponse> {
1016
- return this.request("location", "get_locations", "get", `/location`, null, options);
837
+ get_locations(options?: RequestOptions): Promise<GetLocationsResponse> {
838
+ return this.request("get", `/location`, null, options);
1017
839
  }
1018
840
 
1019
841
  /**
@@ -1025,15 +847,8 @@ export class ServiceClient extends BaseServiceClient {
1025
847
  options?: {
1026
848
  query?: GetLocationSearchQuery;
1027
849
  } & RequestOptions
1028
- ): ResponsePromise<GetLocationSearchResponse> {
1029
- return this.request(
1030
- "location",
1031
- "get_location_search",
1032
- "get",
1033
- `/location/search`,
1034
- null,
1035
- options
1036
- );
850
+ ): Promise<GetLocationSearchResponse> {
851
+ return this.request("get", `/location/search`, null, options);
1037
852
  }
1038
853
 
1039
854
  /**
@@ -1047,8 +862,8 @@ export class ServiceClient extends BaseServiceClient {
1047
862
  options?: {
1048
863
  query?: GetLocationQuery;
1049
864
  } & RequestOptions
1050
- ): ResponsePromise<GetLocationResponse> {
1051
- return this.request("location", "get_location", "get", `/location/${id}`, null, options);
865
+ ): Promise<GetLocationResponse> {
866
+ return this.request("get", `/location/${id}`, null, options);
1052
867
  }
1053
868
 
1054
869
  /**
@@ -1062,8 +877,8 @@ export class ServiceClient extends BaseServiceClient {
1062
877
  id: string,
1063
878
  body: PutLocationBody,
1064
879
  options?: RequestOptions
1065
- ): ResponsePromise<PutLocationResponse> {
1066
- return this.request("location", "put_location", "put", `/location/${id}`, body, options);
880
+ ): Promise<PutLocationResponse> {
881
+ return this.request("put", `/location/${id}`, body, options);
1067
882
  }
1068
883
 
1069
884
  /**
@@ -1077,8 +892,8 @@ export class ServiceClient extends BaseServiceClient {
1077
892
  id: string,
1078
893
  body: DeleteLocationBody,
1079
894
  options?: RequestOptions
1080
- ): ResponsePromise<DeleteLocationResponse> {
1081
- return this.request("location", "delete_location", "delete", `/location/${id}`, body, options);
895
+ ): Promise<DeleteLocationResponse> {
896
+ return this.request("delete", `/location/${id}`, body, options);
1082
897
  }
1083
898
 
1084
899
  /**
@@ -1092,8 +907,8 @@ export class ServiceClient extends BaseServiceClient {
1092
907
  id: string,
1093
908
  body: PatchLocationBody,
1094
909
  options?: RequestOptions
1095
- ): ResponsePromise<PatchLocationResponse> {
1096
- return this.request("location", "patch_location", "patch", `/location/${id}`, body, options);
910
+ ): Promise<PatchLocationResponse> {
911
+ return this.request("patch", `/location/${id}`, body, options);
1097
912
  }
1098
913
 
1099
914
  /**
@@ -1102,15 +917,8 @@ export class ServiceClient extends BaseServiceClient {
1102
917
  * @param id - POS ID
1103
918
  * @param options - additional request options
1104
919
  */
1105
- get_location_pos(id: string, options?: RequestOptions): ResponsePromise<GetLocationPosResponse> {
1106
- return this.request(
1107
- "location",
1108
- "get_location_pos",
1109
- "get",
1110
- `/location/pos/${id}`,
1111
- null,
1112
- options
1113
- );
920
+ get_location_pos(id: string, options?: RequestOptions): Promise<GetLocationPosResponse> {
921
+ return this.request("get", `/location/pos/${id}`, null, options);
1114
922
  }
1115
923
 
1116
924
  /**
@@ -1124,15 +932,8 @@ export class ServiceClient extends BaseServiceClient {
1124
932
  id: string,
1125
933
  body: PutLocationPosBody,
1126
934
  options?: RequestOptions
1127
- ): ResponsePromise<PutLocationPosResponse> {
1128
- return this.request(
1129
- "location",
1130
- "put_location_pos",
1131
- "put",
1132
- `/location/pos/${id}`,
1133
- body,
1134
- options
1135
- );
935
+ ): Promise<PutLocationPosResponse> {
936
+ return this.request("put", `/location/pos/${id}`, body, options);
1136
937
  }
1137
938
 
1138
939
  /**
@@ -1140,17 +941,8 @@ export class ServiceClient extends BaseServiceClient {
1140
941
  *
1141
942
  * @param options - additional request options
1142
943
  */
1143
- get_location_multigroups(
1144
- options?: RequestOptions
1145
- ): ResponsePromise<GetLocationMultigroupsResponse> {
1146
- return this.request(
1147
- "location",
1148
- "get_location_multigroups",
1149
- "get",
1150
- `/location/multigroup`,
1151
- null,
1152
- options
1153
- );
944
+ get_location_multigroups(options?: RequestOptions): Promise<GetLocationMultigroupsResponse> {
945
+ return this.request("get", `/location/multigroup`, null, options);
1154
946
  }
1155
947
 
1156
948
  /**
@@ -1162,15 +954,8 @@ export class ServiceClient extends BaseServiceClient {
1162
954
  post_location_multigroup(
1163
955
  body: PostLocationMultigroupBody,
1164
956
  options?: RequestOptions
1165
- ): ResponsePromise<PostLocationMultigroupResponse> {
1166
- return this.request(
1167
- "location",
1168
- "post_location_multigroup",
1169
- "post",
1170
- `/location/multigroup`,
1171
- body,
1172
- options
1173
- );
957
+ ): Promise<PostLocationMultigroupResponse> {
958
+ return this.request("post", `/location/multigroup`, body, options);
1174
959
  }
1175
960
 
1176
961
  /**
@@ -1184,15 +969,8 @@ export class ServiceClient extends BaseServiceClient {
1184
969
  options?: {
1185
970
  query?: GetLocationMultigroupQuery;
1186
971
  } & RequestOptions
1187
- ): ResponsePromise<GetLocationMultigroupResponse> {
1188
- return this.request(
1189
- "location",
1190
- "get_location_multigroup",
1191
- "get",
1192
- `/location/multigroup/${id}`,
1193
- null,
1194
- options
1195
- );
972
+ ): Promise<GetLocationMultigroupResponse> {
973
+ return this.request("get", `/location/multigroup/${id}`, null, options);
1196
974
  }
1197
975
 
1198
976
  /**
@@ -1206,15 +984,8 @@ export class ServiceClient extends BaseServiceClient {
1206
984
  id: string,
1207
985
  body: PutLocationMultigroupBody,
1208
986
  options?: RequestOptions
1209
- ): ResponsePromise<PutLocationMultigroupResponse> {
1210
- return this.request(
1211
- "location",
1212
- "put_location_multigroup",
1213
- "put",
1214
- `/location/multigroup/${id}`,
1215
- body,
1216
- options
1217
- );
987
+ ): Promise<PutLocationMultigroupResponse> {
988
+ return this.request("put", `/location/multigroup/${id}`, body, options);
1218
989
  }
1219
990
 
1220
991
  /**
@@ -1228,15 +999,8 @@ export class ServiceClient extends BaseServiceClient {
1228
999
  id: string,
1229
1000
  body: DeleteLocationMultigroupBody,
1230
1001
  options?: RequestOptions
1231
- ): ResponsePromise<DeleteLocationMultigroupResponse> {
1232
- return this.request(
1233
- "location",
1234
- "delete_location_multigroup",
1235
- "delete",
1236
- `/location/multigroup/${id}`,
1237
- body,
1238
- options
1239
- );
1002
+ ): Promise<DeleteLocationMultigroupResponse> {
1003
+ return this.request("delete", `/location/multigroup/${id}`, body, options);
1240
1004
  }
1241
1005
 
1242
1006
  /**
@@ -1250,15 +1014,8 @@ export class ServiceClient extends BaseServiceClient {
1250
1014
  id: string,
1251
1015
  body: PatchLocationMultigroupBody,
1252
1016
  options?: RequestOptions
1253
- ): ResponsePromise<PatchLocationMultigroupResponse> {
1254
- return this.request(
1255
- "location",
1256
- "patch_location_multigroup",
1257
- "patch",
1258
- `/location/multigroup/${id}`,
1259
- body,
1260
- options
1261
- );
1017
+ ): Promise<PatchLocationMultigroupResponse> {
1018
+ return this.request("patch", `/location/multigroup/${id}`, body, options);
1262
1019
  }
1263
1020
 
1264
1021
  /**
@@ -1274,15 +1031,8 @@ export class ServiceClient extends BaseServiceClient {
1274
1031
  options?: {
1275
1032
  query?: GetLocationUserMultigroupQuery;
1276
1033
  } & RequestOptions
1277
- ): ResponsePromise<GetLocationUserMultigroupResponse> {
1278
- return this.request(
1279
- "location",
1280
- "get_location_user_multigroup",
1281
- "get",
1282
- `/location/multigroup/${id}/user/${user_id}`,
1283
- null,
1284
- options
1285
- );
1034
+ ): Promise<GetLocationUserMultigroupResponse> {
1035
+ return this.request("get", `/location/multigroup/${id}/user/${user_id}`, null, options);
1286
1036
  }
1287
1037
 
1288
1038
  /**
@@ -1294,15 +1044,8 @@ export class ServiceClient extends BaseServiceClient {
1294
1044
  post_location_group(
1295
1045
  body: PostLocationGroupBody,
1296
1046
  options?: RequestOptions
1297
- ): ResponsePromise<PostLocationGroupResponse> {
1298
- return this.request(
1299
- "location",
1300
- "post_location_group",
1301
- "post",
1302
- `/location/group`,
1303
- body,
1304
- options
1305
- );
1047
+ ): Promise<PostLocationGroupResponse> {
1048
+ return this.request("post", `/location/group`, body, options);
1306
1049
  }
1307
1050
 
1308
1051
  /**
@@ -1316,15 +1059,8 @@ export class ServiceClient extends BaseServiceClient {
1316
1059
  options?: {
1317
1060
  query?: GetLocationGroupQuery;
1318
1061
  } & RequestOptions
1319
- ): ResponsePromise<GetLocationGroupResponse> {
1320
- return this.request(
1321
- "location",
1322
- "get_location_group",
1323
- "get",
1324
- `/location/group/${id}`,
1325
- null,
1326
- options
1327
- );
1062
+ ): Promise<GetLocationGroupResponse> {
1063
+ return this.request("get", `/location/group/${id}`, null, options);
1328
1064
  }
1329
1065
 
1330
1066
  /**
@@ -1338,15 +1074,8 @@ export class ServiceClient extends BaseServiceClient {
1338
1074
  id: string,
1339
1075
  body: PutLocationGroupBody,
1340
1076
  options?: RequestOptions
1341
- ): ResponsePromise<PutLocationGroupResponse> {
1342
- return this.request(
1343
- "location",
1344
- "put_location_group",
1345
- "put",
1346
- `/location/group/${id}`,
1347
- body,
1348
- options
1349
- );
1077
+ ): Promise<PutLocationGroupResponse> {
1078
+ return this.request("put", `/location/group/${id}`, body, options);
1350
1079
  }
1351
1080
 
1352
1081
  /**
@@ -1360,15 +1089,8 @@ export class ServiceClient extends BaseServiceClient {
1360
1089
  id: string,
1361
1090
  body: DeleteLocationGroupBody,
1362
1091
  options?: RequestOptions
1363
- ): ResponsePromise<DeleteLocationGroupResponse> {
1364
- return this.request(
1365
- "location",
1366
- "delete_location_group",
1367
- "delete",
1368
- `/location/group/${id}`,
1369
- body,
1370
- options
1371
- );
1092
+ ): Promise<DeleteLocationGroupResponse> {
1093
+ return this.request("delete", `/location/group/${id}`, body, options);
1372
1094
  }
1373
1095
 
1374
1096
  /**
@@ -1382,15 +1104,8 @@ export class ServiceClient extends BaseServiceClient {
1382
1104
  id: string,
1383
1105
  body: PatchLocationGroupBody,
1384
1106
  options?: RequestOptions
1385
- ): ResponsePromise<PatchLocationGroupResponse> {
1386
- return this.request(
1387
- "location",
1388
- "patch_location_group",
1389
- "patch",
1390
- `/location/group/${id}`,
1391
- body,
1392
- options
1393
- );
1107
+ ): Promise<PatchLocationGroupResponse> {
1108
+ return this.request("patch", `/location/group/${id}`, body, options);
1394
1109
  }
1395
1110
 
1396
1111
  /**
@@ -1404,15 +1119,8 @@ export class ServiceClient extends BaseServiceClient {
1404
1119
  options?: {
1405
1120
  query?: GetLocationGroupDeliverydestinationsQuery;
1406
1121
  } & RequestOptions
1407
- ): ResponsePromise<GetLocationGroupDeliverydestinationsResponse> {
1408
- return this.request(
1409
- "location",
1410
- "get_location_group_deliverydestinations",
1411
- "get",
1412
- `/location/group/${id}/deliverydestination`,
1413
- null,
1414
- options
1415
- );
1122
+ ): Promise<GetLocationGroupDeliverydestinationsResponse> {
1123
+ return this.request("get", `/location/group/${id}/deliverydestination`, null, options);
1416
1124
  }
1417
1125
 
1418
1126
  /**
@@ -1426,77 +1134,66 @@ export class ServiceClient extends BaseServiceClient {
1426
1134
  id: string,
1427
1135
  body: PostLocationGroupDeliverydestinationBody,
1428
1136
  options?: RequestOptions
1429
- ): ResponsePromise<PostLocationGroupDeliverydestinationResponse> {
1430
- return this.request(
1431
- "location",
1432
- "post_location_group_deliverydestination",
1433
- "post",
1434
- `/location/group/${id}/deliverydestination`,
1435
- body,
1436
- options
1437
- );
1137
+ ): Promise<PostLocationGroupDeliverydestinationResponse> {
1138
+ return this.request("post", `/location/group/${id}/deliverydestination`, body, options);
1438
1139
  }
1439
1140
 
1440
1141
  /**
1441
- * PATCH /location/group/{id}/deliverydestination - Patch single or multiple delivery destinations
1142
+ * GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
1442
1143
  *
1443
1144
  * @param id - Group ID
1444
- * @param body
1145
+ * @param delivery_destination - Delivery Destination ID
1445
1146
  * @param options - additional request options
1446
1147
  */
1447
- patch_location_group_deliverydestination(
1148
+ get_location_group_deliverydestination(
1448
1149
  id: string,
1449
- body: PatchLocationGroupDeliverydestinationBody,
1150
+ delivery_destination: string,
1450
1151
  options?: RequestOptions
1451
- ): ResponsePromise<PatchLocationGroupDeliverydestinationResponse> {
1152
+ ): Promise<GetLocationGroupDeliverydestinationResponse> {
1452
1153
  return this.request(
1453
- "location",
1454
- "patch_location_group_deliverydestination",
1455
- "patch",
1456
- `/location/group/${id}/deliverydestination`,
1457
- body,
1154
+ "get",
1155
+ `/location/group/${id}/deliverydestination/${delivery_destination}`,
1156
+ null,
1458
1157
  options
1459
1158
  );
1460
1159
  }
1461
1160
 
1462
1161
  /**
1463
- * DELETE /location/group/{id}/deliverydestination - Delete single or multiple delivery destinations
1162
+ * PATCH /location/group/{id}/deliverydestination/{delivery_destination} - Patch a delivery destination
1464
1163
  *
1465
1164
  * @param id - Group ID
1165
+ * @param delivery_destination - Delivery Destination ID
1466
1166
  * @param body
1467
1167
  * @param options - additional request options
1468
1168
  */
1469
- delete_location_group_deliverydestination(
1169
+ patch_location_group_deliverydestination(
1470
1170
  id: string,
1471
- body: DeleteLocationGroupDeliverydestinationBody,
1171
+ delivery_destination: string,
1172
+ body: PatchLocationGroupDeliverydestinationBody,
1472
1173
  options?: RequestOptions
1473
- ): ResponsePromise<DeleteLocationGroupDeliverydestinationResponse> {
1174
+ ): Promise<PatchLocationGroupDeliverydestinationResponse> {
1474
1175
  return this.request(
1475
- "location",
1476
- "delete_location_group_deliverydestination",
1477
- "delete",
1478
- `/location/group/${id}/deliverydestination`,
1176
+ "patch",
1177
+ `/location/group/${id}/deliverydestination/${delivery_destination}`,
1479
1178
  body,
1480
1179
  options
1481
1180
  );
1482
1181
  }
1483
1182
 
1484
1183
  /**
1485
- * GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
1184
+ * DELETE /location/group/{id}/deliverydestination/{delivery_destination} - Delete a delivery destination
1486
1185
  *
1487
1186
  * @param id - Group ID
1488
1187
  * @param delivery_destination - Delivery Destination ID
1489
1188
  * @param options - additional request options
1490
1189
  */
1491
- get_location_group_deliverydestination(
1190
+ delete_location_group_deliverydestination(
1492
1191
  id: string,
1493
1192
  delivery_destination: string,
1494
1193
  options?: RequestOptions
1495
- ): ResponsePromise<GetLocationGroupDeliverydestinationResponse> {
1194
+ ): Promise<DeleteLocationGroupDeliverydestinationResponse> {
1496
1195
  return this.request(
1497
- "location",
1498
- "get_location_group_deliverydestination",
1499
- "get",
1196
+ "delete",
1500
1197
  `/location/group/${id}/deliverydestination/${delivery_destination}`,
1501
1198
  null,
1502
1199
  options
@@ -1516,15 +1213,8 @@ export class ServiceClient extends BaseServiceClient {
1516
1213
  options?: {
1517
1214
  query?: GetLocationUserGroupQuery;
1518
1215
  } & RequestOptions
1519
- ): ResponsePromise<GetLocationUserGroupResponse> {
1520
- return this.request(
1521
- "location",
1522
- "get_location_user_group",
1523
- "get",
1524
- `/location/group/${id}/user/${user_id}`,
1525
- null,
1526
- options
1527
- );
1216
+ ): Promise<GetLocationUserGroupResponse> {
1217
+ return this.request("get", `/location/group/${id}/user/${user_id}`, null, options);
1528
1218
  }
1529
1219
 
1530
1220
  /**
@@ -1532,15 +1222,8 @@ export class ServiceClient extends BaseServiceClient {
1532
1222
  *
1533
1223
  * @param options - additional request options
1534
1224
  */
1535
- get_location_brands(options?: RequestOptions): ResponsePromise<GetLocationBrandsResponse> {
1536
- return this.request(
1537
- "location",
1538
- "get_location_brands",
1539
- "get",
1540
- `/location/brands`,
1541
- null,
1542
- options
1543
- );
1225
+ get_location_brands(options?: RequestOptions): Promise<GetLocationBrandsResponse> {
1226
+ return this.request("get", `/location/brands`, null, options);
1544
1227
  }
1545
1228
 
1546
1229
  /**
@@ -1552,15 +1235,8 @@ export class ServiceClient extends BaseServiceClient {
1552
1235
  get_location_brand_destinations(
1553
1236
  id: string,
1554
1237
  options?: RequestOptions
1555
- ): ResponsePromise<GetLocationBrandDestinationsResponse> {
1556
- return this.request(
1557
- "location",
1558
- "get_location_brand_destinations",
1559
- "get",
1560
- `/location/brand/${id}/deliverydestinations`,
1561
- null,
1562
- options
1563
- );
1238
+ ): Promise<GetLocationBrandDestinationsResponse> {
1239
+ return this.request("get", `/location/brand/${id}/deliverydestinations`, null, options);
1564
1240
  }
1565
1241
 
1566
1242
  /**
@@ -1574,15 +1250,8 @@ export class ServiceClient extends BaseServiceClient {
1574
1250
  id: string,
1575
1251
  body: PostLocationBrandDocumentBody,
1576
1252
  options?: RequestOptions
1577
- ): ResponsePromise<PostLocationBrandDocumentResponse> {
1578
- return this.request(
1579
- "location",
1580
- "post_location_brand_document",
1581
- "post",
1582
- `/location/brand/${id}/document`,
1583
- body,
1584
- options
1585
- );
1253
+ ): Promise<PostLocationBrandDocumentResponse> {
1254
+ return this.request("post", `/location/brand/${id}/document`, body, options);
1586
1255
  }
1587
1256
 
1588
1257
  /**
@@ -1594,15 +1263,8 @@ export class ServiceClient extends BaseServiceClient {
1594
1263
  patch_location_brand_document(
1595
1264
  id: string,
1596
1265
  options?: RequestOptions
1597
- ): ResponsePromise<PatchLocationBrandDocumentResponse> {
1598
- return this.request(
1599
- "location",
1600
- "patch_location_brand_document",
1601
- "patch",
1602
- `/location/brand/${id}/document`,
1603
- null,
1604
- options
1605
- );
1266
+ ): Promise<PatchLocationBrandDocumentResponse> {
1267
+ return this.request("patch", `/location/brand/${id}/document`, null, options);
1606
1268
  }
1607
1269
 
1608
1270
  /**
@@ -1614,15 +1276,8 @@ export class ServiceClient extends BaseServiceClient {
1614
1276
  delete_location_brand_document(
1615
1277
  id: string,
1616
1278
  options?: RequestOptions
1617
- ): ResponsePromise<DeleteLocationBrandDocumentResponse> {
1618
- return this.request(
1619
- "location",
1620
- "delete_location_brand_document",
1621
- "delete",
1622
- `/location/brand/${id}/document`,
1623
- null,
1624
- options
1625
- );
1279
+ ): Promise<DeleteLocationBrandDocumentResponse> {
1280
+ return this.request("delete", `/location/brand/${id}/document`, null, options);
1626
1281
  }
1627
1282
 
1628
1283
  /**
@@ -1634,15 +1289,8 @@ export class ServiceClient extends BaseServiceClient {
1634
1289
  get_location_brand_documents(
1635
1290
  id: string,
1636
1291
  options?: RequestOptions
1637
- ): ResponsePromise<GetLocationBrandDocumentsResponse> {
1638
- return this.request(
1639
- "location",
1640
- "get_location_brand_documents",
1641
- "get",
1642
- `/location/brand/${id}/documents`,
1643
- null,
1644
- options
1645
- );
1292
+ ): Promise<GetLocationBrandDocumentsResponse> {
1293
+ return this.request("get", `/location/brand/${id}/documents`, null, options);
1646
1294
  }
1647
1295
 
1648
1296
  /**
@@ -1656,15 +1304,8 @@ export class ServiceClient extends BaseServiceClient {
1656
1304
  options?: {
1657
1305
  query?: GetLocationBrandTimeslotsQuery;
1658
1306
  } & RequestOptions
1659
- ): ResponsePromise<GetLocationBrandTimeslotsResponse> {
1660
- return this.request(
1661
- "location",
1662
- "get_location_brand_timeslots",
1663
- "get",
1664
- `/location/brand/${id}/timeslots`,
1665
- null,
1666
- options
1667
- );
1307
+ ): Promise<GetLocationBrandTimeslotsResponse> {
1308
+ return this.request("get", `/location/brand/${id}/timeslots`, null, options);
1668
1309
  }
1669
1310
 
1670
1311
  /**
@@ -1678,15 +1319,8 @@ export class ServiceClient extends BaseServiceClient {
1678
1319
  options?: {
1679
1320
  query?: PostLocationMarketplaceTimeslotsQuery;
1680
1321
  } & RequestOptions
1681
- ): ResponsePromise<PostLocationMarketplaceTimeslotsResponse> {
1682
- return this.request(
1683
- "location",
1684
- "post_location_marketplace_timeslots",
1685
- "post",
1686
- `/location/marketplace/timeslots`,
1687
- body,
1688
- options
1689
- );
1322
+ ): Promise<PostLocationMarketplaceTimeslotsResponse> {
1323
+ return this.request("post", `/location/marketplace/timeslots`, body, options);
1690
1324
  }
1691
1325
 
1692
1326
  /**
@@ -1700,15 +1334,8 @@ export class ServiceClient extends BaseServiceClient {
1700
1334
  options?: {
1701
1335
  query?: PostLocationMarketplaceTimeslotsDeliveryQuery;
1702
1336
  } & RequestOptions
1703
- ): ResponsePromise<PostLocationMarketplaceTimeslotsDeliveryResponse> {
1704
- return this.request(
1705
- "location",
1706
- "post_location_marketplace_timeslots_delivery",
1707
- "post",
1708
- `/location/marketplace/timeslots/delivery`,
1709
- body,
1710
- options
1711
- );
1337
+ ): Promise<PostLocationMarketplaceTimeslotsDeliveryResponse> {
1338
+ return this.request("post", `/location/marketplace/timeslots/delivery`, body, options);
1712
1339
  }
1713
1340
 
1714
1341
  /**
@@ -1724,15 +1351,8 @@ export class ServiceClient extends BaseServiceClient {
1724
1351
  options?: {
1725
1352
  query?: GetLocationBrandMenuTimeslotsQuery;
1726
1353
  } & RequestOptions
1727
- ): ResponsePromise<GetLocationBrandMenuTimeslotsResponse> {
1728
- return this.request(
1729
- "location",
1730
- "get_location_brand_menu_timeslots",
1731
- "get",
1732
- `/location/brand/${id}/timeslots/menu/${menu}`,
1733
- null,
1734
- options
1735
- );
1354
+ ): Promise<GetLocationBrandMenuTimeslotsResponse> {
1355
+ return this.request("get", `/location/brand/${id}/timeslots/menu/${menu}`, null, options);
1736
1356
  }
1737
1357
 
1738
1358
  /**
@@ -1746,15 +1366,8 @@ export class ServiceClient extends BaseServiceClient {
1746
1366
  options?: {
1747
1367
  query?: GetLocationBrandDeliveryTimeslotsQuery;
1748
1368
  } & RequestOptions
1749
- ): ResponsePromise<GetLocationBrandDeliveryTimeslotsResponse> {
1750
- return this.request(
1751
- "location",
1752
- "get_location_brand_delivery_timeslots",
1753
- "get",
1754
- `/location/brand/${id}/timeslots/delivery`,
1755
- null,
1756
- options
1757
- );
1369
+ ): Promise<GetLocationBrandDeliveryTimeslotsResponse> {
1370
+ return this.request("get", `/location/brand/${id}/timeslots/delivery`, null, options);
1758
1371
  }
1759
1372
 
1760
1373
  /**
@@ -1770,10 +1383,8 @@ export class ServiceClient extends BaseServiceClient {
1770
1383
  options?: {
1771
1384
  query?: GetLocationBrandMenuDeliveryTimeslostsQuery;
1772
1385
  } & RequestOptions
1773
- ): ResponsePromise<GetLocationBrandMenuDeliveryTimeslostsResponse> {
1386
+ ): Promise<GetLocationBrandMenuDeliveryTimeslostsResponse> {
1774
1387
  return this.request(
1775
- "location",
1776
- "get_location_brand_menu_delivery_timeslosts",
1777
1388
  "get",
1778
1389
  `/location/brand/${id}/timeslots/delivery/menu/${menu}`,
1779
1390
  null,
@@ -1790,15 +1401,8 @@ export class ServiceClient extends BaseServiceClient {
1790
1401
  post_location_brand(
1791
1402
  body: PostLocationBrandBody,
1792
1403
  options?: RequestOptions
1793
- ): ResponsePromise<PostLocationBrandResponse> {
1794
- return this.request(
1795
- "location",
1796
- "post_location_brand",
1797
- "post",
1798
- `/location/brand`,
1799
- body,
1800
- options
1801
- );
1404
+ ): Promise<PostLocationBrandResponse> {
1405
+ return this.request("post", `/location/brand`, body, options);
1802
1406
  }
1803
1407
 
1804
1408
  /**
@@ -1812,15 +1416,8 @@ export class ServiceClient extends BaseServiceClient {
1812
1416
  options?: {
1813
1417
  query?: GetLocationBrandQuery;
1814
1418
  } & RequestOptions
1815
- ): ResponsePromise<GetLocationBrandResponse> {
1816
- return this.request(
1817
- "location",
1818
- "get_location_brand",
1819
- "get",
1820
- `/location/brand/${id}`,
1821
- null,
1822
- options
1823
- );
1419
+ ): Promise<GetLocationBrandResponse> {
1420
+ return this.request("get", `/location/brand/${id}`, null, options);
1824
1421
  }
1825
1422
 
1826
1423
  /**
@@ -1834,15 +1431,8 @@ export class ServiceClient extends BaseServiceClient {
1834
1431
  id: string,
1835
1432
  body: PatchLocationBrandBody,
1836
1433
  options?: RequestOptions
1837
- ): ResponsePromise<PatchLocationBrandResponse> {
1838
- return this.request(
1839
- "location",
1840
- "patch_location_brand",
1841
- "patch",
1842
- `/location/brand/${id}`,
1843
- body,
1844
- options
1845
- );
1434
+ ): Promise<PatchLocationBrandResponse> {
1435
+ return this.request("patch", `/location/brand/${id}`, body, options);
1846
1436
  }
1847
1437
 
1848
1438
  /**
@@ -1856,15 +1446,8 @@ export class ServiceClient extends BaseServiceClient {
1856
1446
  id: string,
1857
1447
  body: DeleteLocationBrandBody,
1858
1448
  options?: RequestOptions
1859
- ): ResponsePromise<DeleteLocationBrandResponse> {
1860
- return this.request(
1861
- "location",
1862
- "delete_location_brand",
1863
- "delete",
1864
- `/location/brand/${id}`,
1865
- body,
1866
- options
1867
- );
1449
+ ): Promise<DeleteLocationBrandResponse> {
1450
+ return this.request("delete", `/location/brand/${id}`, body, options);
1868
1451
  }
1869
1452
 
1870
1453
  /**
@@ -1878,15 +1461,8 @@ export class ServiceClient extends BaseServiceClient {
1878
1461
  id: string,
1879
1462
  body: PutLocationBrandBody,
1880
1463
  options?: RequestOptions
1881
- ): ResponsePromise<PutLocationBrandResponse> {
1882
- return this.request(
1883
- "location",
1884
- "put_location_brand",
1885
- "put",
1886
- `/location/brand/${id}`,
1887
- body,
1888
- options
1889
- );
1464
+ ): Promise<PutLocationBrandResponse> {
1465
+ return this.request("put", `/location/brand/${id}`, body, options);
1890
1466
  }
1891
1467
 
1892
1468
  /**
@@ -1894,15 +1470,8 @@ export class ServiceClient extends BaseServiceClient {
1894
1470
  *
1895
1471
  * @param options - additional request options
1896
1472
  */
1897
- get_location_sectors(options?: RequestOptions): ResponsePromise<GetLocationSectorsResponse> {
1898
- return this.request(
1899
- "location",
1900
- "get_location_sectors",
1901
- "get",
1902
- `/location/sector`,
1903
- null,
1904
- options
1905
- );
1473
+ get_location_sectors(options?: RequestOptions): Promise<GetLocationSectorsResponse> {
1474
+ return this.request("get", `/location/sector`, null, options);
1906
1475
  }
1907
1476
 
1908
1477
  /**
@@ -1914,15 +1483,8 @@ export class ServiceClient extends BaseServiceClient {
1914
1483
  post_location_sector(
1915
1484
  body: PostLocationSectorBody,
1916
1485
  options?: RequestOptions
1917
- ): ResponsePromise<PostLocationSectorResponse> {
1918
- return this.request(
1919
- "location",
1920
- "post_location_sector",
1921
- "post",
1922
- `/location/sector`,
1923
- body,
1924
- options
1925
- );
1486
+ ): Promise<PostLocationSectorResponse> {
1487
+ return this.request("post", `/location/sector`, body, options);
1926
1488
  }
1927
1489
 
1928
1490
  /**
@@ -1936,15 +1498,8 @@ export class ServiceClient extends BaseServiceClient {
1936
1498
  options?: {
1937
1499
  query?: GetLocationSectorQuery;
1938
1500
  } & RequestOptions
1939
- ): ResponsePromise<GetLocationSectorResponse> {
1940
- return this.request(
1941
- "location",
1942
- "get_location_sector",
1943
- "get",
1944
- `/location/sector/${id}`,
1945
- null,
1946
- options
1947
- );
1501
+ ): Promise<GetLocationSectorResponse> {
1502
+ return this.request("get", `/location/sector/${id}`, null, options);
1948
1503
  }
1949
1504
 
1950
1505
  /**
@@ -1960,15 +1515,8 @@ export class ServiceClient extends BaseServiceClient {
1960
1515
  options?: {
1961
1516
  query?: PatchLocationSectorQuery;
1962
1517
  } & RequestOptions
1963
- ): ResponsePromise<PatchLocationSectorResponse> {
1964
- return this.request(
1965
- "location",
1966
- "patch_location_sector",
1967
- "patch",
1968
- `/location/sector/${id}`,
1969
- body,
1970
- options
1971
- );
1518
+ ): Promise<PatchLocationSectorResponse> {
1519
+ return this.request("patch", `/location/sector/${id}`, body, options);
1972
1520
  }
1973
1521
 
1974
1522
  /**
@@ -1980,15 +1528,8 @@ export class ServiceClient extends BaseServiceClient {
1980
1528
  post_location_company(
1981
1529
  body: PostLocationCompanyBody,
1982
1530
  options?: RequestOptions
1983
- ): ResponsePromise<PostLocationCompanyResponse> {
1984
- return this.request(
1985
- "location",
1986
- "post_location_company",
1987
- "post",
1988
- `/location/company`,
1989
- body,
1990
- options
1991
- );
1531
+ ): Promise<PostLocationCompanyResponse> {
1532
+ return this.request("post", `/location/company`, body, options);
1992
1533
  }
1993
1534
 
1994
1535
  /**
@@ -2002,15 +1543,8 @@ export class ServiceClient extends BaseServiceClient {
2002
1543
  options?: {
2003
1544
  query?: GetLocationCompanyQuery;
2004
1545
  } & RequestOptions
2005
- ): ResponsePromise<GetLocationCompanyResponse> {
2006
- return this.request(
2007
- "location",
2008
- "get_location_company",
2009
- "get",
2010
- `/location/company/${id}`,
2011
- null,
2012
- options
2013
- );
1546
+ ): Promise<GetLocationCompanyResponse> {
1547
+ return this.request("get", `/location/company/${id}`, null, options);
2014
1548
  }
2015
1549
 
2016
1550
  /**
@@ -2024,15 +1558,8 @@ export class ServiceClient extends BaseServiceClient {
2024
1558
  id: string,
2025
1559
  body: PatchLocationCompanyBody,
2026
1560
  options?: RequestOptions
2027
- ): ResponsePromise<PatchLocationCompanyResponse> {
2028
- return this.request(
2029
- "location",
2030
- "patch_location_company",
2031
- "patch",
2032
- `/location/company/${id}`,
2033
- body,
2034
- options
2035
- );
1561
+ ): Promise<PatchLocationCompanyResponse> {
1562
+ return this.request("patch", `/location/company/${id}`, body, options);
2036
1563
  }
2037
1564
 
2038
1565
  /**
@@ -2044,15 +1571,8 @@ export class ServiceClient extends BaseServiceClient {
2044
1571
  post_shoppingcart_cart(
2045
1572
  body: PostShoppingcartCartBody,
2046
1573
  options?: RequestOptions
2047
- ): ResponsePromise<PostShoppingcartCartResponse> {
2048
- return this.request(
2049
- "shoppingcart",
2050
- "post_shoppingcart_cart",
2051
- "post",
2052
- `/shoppingcart/`,
2053
- body,
2054
- options
2055
- );
1574
+ ): Promise<PostShoppingcartCartResponse> {
1575
+ return this.request("post", `/shoppingcart/`, body, options);
2056
1576
  }
2057
1577
 
2058
1578
  /**
@@ -2066,15 +1586,8 @@ export class ServiceClient extends BaseServiceClient {
2066
1586
  id: string,
2067
1587
  body: PutShoppingcartCartItemsBody,
2068
1588
  options?: RequestOptions
2069
- ): ResponsePromise<PutShoppingcartCartItemsResponse> {
2070
- return this.request(
2071
- "shoppingcart",
2072
- "put_shoppingcart_cart_items",
2073
- "put",
2074
- `/shoppingcart/${id}`,
2075
- body,
2076
- options
2077
- );
1589
+ ): Promise<PutShoppingcartCartItemsResponse> {
1590
+ return this.request("put", `/shoppingcart/${id}`, body, options);
2078
1591
  }
2079
1592
 
2080
1593
  /**
@@ -2088,15 +1601,8 @@ export class ServiceClient extends BaseServiceClient {
2088
1601
  id: string,
2089
1602
  body: DeleteShoppingcartCartItemsBody,
2090
1603
  options?: RequestOptions
2091
- ): ResponsePromise<DeleteShoppingcartCartItemsResponse> {
2092
- return this.request(
2093
- "shoppingcart",
2094
- "delete_shoppingcart_cart_items",
2095
- "delete",
2096
- `/shoppingcart/${id}`,
2097
- body,
2098
- options
2099
- );
1604
+ ): Promise<DeleteShoppingcartCartItemsResponse> {
1605
+ return this.request("delete", `/shoppingcart/${id}`, body, options);
2100
1606
  }
2101
1607
 
2102
1608
  /**
@@ -2108,15 +1614,8 @@ export class ServiceClient extends BaseServiceClient {
2108
1614
  get_shoppingcart_cart(
2109
1615
  id: string,
2110
1616
  options?: RequestOptions
2111
- ): ResponsePromise<GetShoppingcartCartResponse> {
2112
- return this.request(
2113
- "shoppingcart",
2114
- "get_shoppingcart_cart",
2115
- "get",
2116
- `/shoppingcart/${id}`,
2117
- null,
2118
- options
2119
- );
1617
+ ): Promise<GetShoppingcartCartResponse> {
1618
+ return this.request("get", `/shoppingcart/${id}`, null, options);
2120
1619
  }
2121
1620
 
2122
1621
  /**
@@ -2128,15 +1627,8 @@ export class ServiceClient extends BaseServiceClient {
2128
1627
  patch_shoppingcart_cart(
2129
1628
  id: string,
2130
1629
  options?: RequestOptions
2131
- ): ResponsePromise<PatchShoppingcartCartResponse> {
2132
- return this.request(
2133
- "shoppingcart",
2134
- "patch_shoppingcart_cart",
2135
- "patch",
2136
- `/shoppingcart/${id}`,
2137
- null,
2138
- options
2139
- );
1630
+ ): Promise<PatchShoppingcartCartResponse> {
1631
+ return this.request("patch", `/shoppingcart/${id}`, null, options);
2140
1632
  }
2141
1633
 
2142
1634
  /**
@@ -2150,15 +1642,8 @@ export class ServiceClient extends BaseServiceClient {
2150
1642
  id: string,
2151
1643
  body: PutShoppingcartCartPromoBody,
2152
1644
  options?: RequestOptions
2153
- ): ResponsePromise<PutShoppingcartCartPromoResponse> {
2154
- return this.request(
2155
- "shoppingcart",
2156
- "put_shoppingcart_cart_promo",
2157
- "put",
2158
- `/shoppingcart/${id}/promo`,
2159
- body,
2160
- options
2161
- );
1645
+ ): Promise<PutShoppingcartCartPromoResponse> {
1646
+ return this.request("put", `/shoppingcart/${id}/promo`, body, options);
2162
1647
  }
2163
1648
 
2164
1649
  /**
@@ -2170,15 +1655,8 @@ export class ServiceClient extends BaseServiceClient {
2170
1655
  delete_shoppingcart_cart_promo(
2171
1656
  id: string,
2172
1657
  options?: RequestOptions
2173
- ): ResponsePromise<DeleteShoppingcartCartPromoResponse> {
2174
- return this.request(
2175
- "shoppingcart",
2176
- "delete_shoppingcart_cart_promo",
2177
- "delete",
2178
- `/shoppingcart/${id}/promo`,
2179
- null,
2180
- options
2181
- );
1658
+ ): Promise<DeleteShoppingcartCartPromoResponse> {
1659
+ return this.request("delete", `/shoppingcart/${id}/promo`, null, options);
2182
1660
  }
2183
1661
 
2184
1662
  /**
@@ -2192,15 +1670,8 @@ export class ServiceClient extends BaseServiceClient {
2192
1670
  id: string,
2193
1671
  body: PutShoppingcartCartPaymentBody,
2194
1672
  options?: RequestOptions
2195
- ): ResponsePromise<PutShoppingcartCartPaymentResponse> {
2196
- return this.request(
2197
- "shoppingcart",
2198
- "put_shoppingcart_cart_payment",
2199
- "put",
2200
- `/shoppingcart/${id}/paymentmethod/`,
2201
- body,
2202
- options
2203
- );
1673
+ ): Promise<PutShoppingcartCartPaymentResponse> {
1674
+ return this.request("put", `/shoppingcart/${id}/paymentmethod/`, body, options);
2204
1675
  }
2205
1676
 
2206
1677
  /**
@@ -2214,15 +1685,8 @@ export class ServiceClient extends BaseServiceClient {
2214
1685
  id: string,
2215
1686
  body: PutShoppingcartCartOrderBody,
2216
1687
  options?: RequestOptions
2217
- ): ResponsePromise<PutShoppingcartCartOrderResponse> {
2218
- return this.request(
2219
- "shoppingcart",
2220
- "put_shoppingcart_cart_order",
2221
- "put",
2222
- `/shoppingcart/${id}/order/`,
2223
- body,
2224
- options
2225
- );
1688
+ ): Promise<PutShoppingcartCartOrderResponse> {
1689
+ return this.request("put", `/shoppingcart/${id}/order/`, body, options);
2226
1690
  }
2227
1691
 
2228
1692
  /**
@@ -2238,15 +1702,8 @@ export class ServiceClient extends BaseServiceClient {
2238
1702
  user_id: string,
2239
1703
  body: PutShoppingcartCartLoyaltyBody,
2240
1704
  options?: RequestOptions
2241
- ): ResponsePromise<PutShoppingcartCartLoyaltyResponse> {
2242
- return this.request(
2243
- "shoppingcart",
2244
- "put_shoppingcart_cart_loyalty",
2245
- "put",
2246
- `/shoppingcart/${id}/loyalty/${user_id}`,
2247
- body,
2248
- options
2249
- );
1705
+ ): Promise<PutShoppingcartCartLoyaltyResponse> {
1706
+ return this.request("put", `/shoppingcart/${id}/loyalty/${user_id}`, body, options);
2250
1707
  }
2251
1708
 
2252
1709
  /**
@@ -2260,15 +1717,8 @@ export class ServiceClient extends BaseServiceClient {
2260
1717
  id: string,
2261
1718
  user_id: string,
2262
1719
  options?: RequestOptions
2263
- ): ResponsePromise<DeleteShoppingcartCartLoyaltyResponse> {
2264
- return this.request(
2265
- "shoppingcart",
2266
- "delete_shoppingcart_cart_loyalty",
2267
- "delete",
2268
- `/shoppingcart/${id}/loyalty/${user_id}`,
2269
- null,
2270
- options
2271
- );
1720
+ ): Promise<DeleteShoppingcartCartLoyaltyResponse> {
1721
+ return this.request("delete", `/shoppingcart/${id}/loyalty/${user_id}`, null, options);
2272
1722
  }
2273
1723
 
2274
1724
  /**
@@ -2282,15 +1732,8 @@ export class ServiceClient extends BaseServiceClient {
2282
1732
  id: string,
2283
1733
  body: PostShoppingcartCloneCartBody,
2284
1734
  options?: RequestOptions
2285
- ): ResponsePromise<PostShoppingcartCloneCartResponse> {
2286
- return this.request(
2287
- "shoppingcart",
2288
- "post_shoppingcart_clone_cart",
2289
- "post",
2290
- `/shoppingcart/${id}/clone`,
2291
- body,
2292
- options
2293
- );
1735
+ ): Promise<PostShoppingcartCloneCartResponse> {
1736
+ return this.request("post", `/shoppingcart/${id}/clone`, body, options);
2294
1737
  }
2295
1738
 
2296
1739
  /**
@@ -2302,15 +1745,8 @@ export class ServiceClient extends BaseServiceClient {
2302
1745
  post_shoppingcart_bulk(
2303
1746
  body: PostShoppingcartBulkBody,
2304
1747
  options?: RequestOptions
2305
- ): ResponsePromise<PostShoppingcartBulkResponse> {
2306
- return this.request(
2307
- "shoppingcart",
2308
- "post_shoppingcart_bulk",
2309
- "post",
2310
- `/shoppingcart/bulk`,
2311
- body,
2312
- options
2313
- );
1748
+ ): Promise<PostShoppingcartBulkResponse> {
1749
+ return this.request("post", `/shoppingcart/bulk`, body, options);
2314
1750
  }
2315
1751
 
2316
1752
  /**
@@ -2322,15 +1758,8 @@ export class ServiceClient extends BaseServiceClient {
2322
1758
  post_partner_standardcognition_shoppingcart(
2323
1759
  body: PostPartnerStandardcognitionShoppingcartBody,
2324
1760
  options?: RequestOptions
2325
- ): ResponsePromise<PostPartnerStandardcognitionShoppingcartResponse> {
2326
- return this.request(
2327
- "partner",
2328
- "post_partner_standardcognition_shoppingcart",
2329
- "post",
2330
- `/partner/standardcognition/shoppingcart`,
2331
- body,
2332
- options
2333
- );
1761
+ ): Promise<PostPartnerStandardcognitionShoppingcartResponse> {
1762
+ return this.request("post", `/partner/standardcognition/shoppingcart`, body, options);
2334
1763
  }
2335
1764
 
2336
1765
  /**
@@ -2340,53 +1769,8 @@ export class ServiceClient extends BaseServiceClient {
2340
1769
  */
2341
1770
  get_partner_standardcognition_locations(
2342
1771
  options?: RequestOptions
2343
- ): ResponsePromise<GetPartnerStandardcognitionLocationsResponse> {
2344
- return this.request(
2345
- "partner",
2346
- "get_partner_standardcognition_locations",
2347
- "get",
2348
- `/partner/standardcognition/locations`,
2349
- null,
2350
- options
2351
- );
2352
- }
2353
-
2354
- /**
2355
- * GET /partner/standardcognition/stores - Gets the UUID for all the Standard Cognition external locations
2356
- *
2357
- * @param options - additional request options
2358
- */
2359
- get_partner_standardcognition_stores(
2360
- options?: RequestOptions
2361
- ): ResponsePromise<GetPartnerStandardcognitionStoresResponse> {
2362
- return this.request(
2363
- "partner",
2364
- "get_partner_standardcognition_stores",
2365
- "get",
2366
- `/partner/standardcognition/stores`,
2367
- null,
2368
- options
2369
- );
2370
- }
2371
-
2372
- /**
2373
- * POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
2374
- *
2375
- * @param body
2376
- * @param options - additional request options
2377
- */
2378
- post_partner_standardcognition_menu(
2379
- body: PostPartnerStandardcognitionMenuBody,
2380
- options?: RequestOptions
2381
- ): ResponsePromise<PostPartnerStandardcognitionMenuResponse> {
2382
- return this.request(
2383
- "partner",
2384
- "post_partner_standardcognition_menu",
2385
- "post",
2386
- `/partner/standardcognition/menu`,
2387
- body,
2388
- options
2389
- );
1772
+ ): Promise<GetPartnerStandardcognitionLocationsResponse> {
1773
+ return this.request("get", `/partner/standardcognition/locations`, null, options);
2390
1774
  }
2391
1775
 
2392
1776
  /**
@@ -2394,17 +1778,8 @@ export class ServiceClient extends BaseServiceClient {
2394
1778
  *
2395
1779
  * @param options - additional request options
2396
1780
  */
2397
- get_partner_coolr_locations(
2398
- options?: RequestOptions
2399
- ): ResponsePromise<GetPartnerCoolrLocationsResponse> {
2400
- return this.request(
2401
- "partner",
2402
- "get_partner_coolr_locations",
2403
- "get",
2404
- `/partner/coolr/locations`,
2405
- null,
2406
- options
2407
- );
1781
+ get_partner_coolr_locations(options?: RequestOptions): Promise<GetPartnerCoolrLocationsResponse> {
1782
+ return this.request("get", `/partner/coolr/locations`, null, options);
2408
1783
  }
2409
1784
 
2410
1785
  /**
@@ -2416,15 +1791,8 @@ export class ServiceClient extends BaseServiceClient {
2416
1791
  get_partner_coolr_images(
2417
1792
  id: string,
2418
1793
  options?: RequestOptions
2419
- ): ResponsePromise<GetPartnerCoolrImagesResponse> {
2420
- return this.request(
2421
- "partner",
2422
- "get_partner_coolr_images",
2423
- "get",
2424
- `/partner/coolr/${id}/images`,
2425
- null,
2426
- options
2427
- );
1794
+ ): Promise<GetPartnerCoolrImagesResponse> {
1795
+ return this.request("get", `/partner/coolr/${id}/images`, null, options);
2428
1796
  }
2429
1797
 
2430
1798
  /**
@@ -2432,25 +1800,8 @@ export class ServiceClient extends BaseServiceClient {
2432
1800
  *
2433
1801
  * @param options - additional request options
2434
1802
  */
2435
- get_partner_swagger(options?: RequestOptions): ResponsePromise<GetPartnerSwaggerResponse> {
2436
- return this.request(
2437
- "partner",
2438
- "get_partner_swagger",
2439
- "get",
2440
- `/partner/swagger.json`,
2441
- null,
2442
- options
2443
- );
2444
- }
2445
-
2446
- /**
2447
- * POST /email - Send an email
2448
- *
2449
- * @param body
2450
- * @param options - additional request options
2451
- */
2452
- post_email(body: PostEmailBody, options?: RequestOptions): ResponsePromise<PostEmailResponse> {
2453
- return this.request("email", "post_email", "post", `/email`, body, options);
1803
+ get_partner_swagger(options?: RequestOptions): Promise<GetPartnerSwaggerResponse> {
1804
+ return this.request("get", `/partner/swagger.json`, null, options);
2454
1805
  }
2455
1806
 
2456
1807
  /**
@@ -2459,8 +1810,8 @@ export class ServiceClient extends BaseServiceClient {
2459
1810
  * @param body - Task Information
2460
1811
  * @param options - additional request options
2461
1812
  */
2462
- post_task(body: PostTaskBody, options?: RequestOptions): ResponsePromise<PostTaskResponse> {
2463
- return this.request("task", "post_task", "post", `/task/`, body, options);
1813
+ post_task(body: PostTaskBody, options?: RequestOptions): Promise<PostTaskResponse> {
1814
+ return this.request("post", `/task/`, body, options);
2464
1815
  }
2465
1816
 
2466
1817
  /**
@@ -2469,8 +1820,8 @@ export class ServiceClient extends BaseServiceClient {
2469
1820
  * @param id - Task ID
2470
1821
  * @param options - additional request options
2471
1822
  */
2472
- get_task(id: string, options?: RequestOptions): ResponsePromise<GetTaskResponse> {
2473
- return this.request("task", "get_task", "get", `/task/${id}`, null, options);
1823
+ get_task(id: string, options?: RequestOptions): Promise<GetTaskResponse> {
1824
+ return this.request("get", `/task/${id}`, null, options);
2474
1825
  }
2475
1826
 
2476
1827
  /**
@@ -2484,8 +1835,8 @@ export class ServiceClient extends BaseServiceClient {
2484
1835
  id: string,
2485
1836
  body: PatchTaskBody,
2486
1837
  options?: RequestOptions
2487
- ): ResponsePromise<PatchTaskResponse> {
2488
- return this.request("task", "patch_task", "patch", `/task/${id}`, body, options);
1838
+ ): Promise<PatchTaskResponse> {
1839
+ return this.request("patch", `/task/${id}`, body, options);
2489
1840
  }
2490
1841
 
2491
1842
  /**
@@ -2494,8 +1845,8 @@ export class ServiceClient extends BaseServiceClient {
2494
1845
  * @param id - Task ID
2495
1846
  * @param options - additional request options
2496
1847
  */
2497
- delete_task(id: string, options?: RequestOptions): ResponsePromise<DeleteTaskResponse> {
2498
- return this.request("task", "delete_task", "delete", `/task/${id}`, null, options);
1848
+ delete_task(id: string, options?: RequestOptions): Promise<DeleteTaskResponse> {
1849
+ return this.request("delete", `/task/${id}`, null, options);
2499
1850
  }
2500
1851
 
2501
1852
  /**
@@ -2504,8 +1855,8 @@ export class ServiceClient extends BaseServiceClient {
2504
1855
  * @param id - Order ID
2505
1856
  * @param options - additional request options
2506
1857
  */
2507
- get_task_order(id: string, options?: RequestOptions): ResponsePromise<GetTaskOrderResponse> {
2508
- return this.request("task", "get_task_order", "get", `/task/order/${id}`, null, options);
1858
+ get_task_order(id: string, options?: RequestOptions): Promise<GetTaskOrderResponse> {
1859
+ return this.request("get", `/task/order/${id}`, null, options);
2509
1860
  }
2510
1861
 
2511
1862
  /**
@@ -2514,18 +1865,8 @@ export class ServiceClient extends BaseServiceClient {
2514
1865
  * @param id - Order ID
2515
1866
  * @param options - additional request options
2516
1867
  */
2517
- get_task_order_kds(
2518
- id: string,
2519
- options?: RequestOptions
2520
- ): ResponsePromise<GetTaskOrderKdsResponse> {
2521
- return this.request(
2522
- "task",
2523
- "get_task_order_kds",
2524
- "get",
2525
- `/task/order/${id}/kds`,
2526
- null,
2527
- options
2528
- );
1868
+ get_task_order_kds(id: string, options?: RequestOptions): Promise<GetTaskOrderKdsResponse> {
1869
+ return this.request("get", `/task/order/${id}/kds`, null, options);
2529
1870
  }
2530
1871
 
2531
1872
  /**
@@ -2539,15 +1880,8 @@ export class ServiceClient extends BaseServiceClient {
2539
1880
  id: string,
2540
1881
  body: PatchTaskOrderKdsBody,
2541
1882
  options?: RequestOptions
2542
- ): ResponsePromise<PatchTaskOrderKdsResponse> {
2543
- return this.request(
2544
- "task",
2545
- "patch_task_order_kds",
2546
- "patch",
2547
- `/task/order/${id}/kds`,
2548
- body,
2549
- options
2550
- );
1883
+ ): Promise<PatchTaskOrderKdsResponse> {
1884
+ return this.request("patch", `/task/order/${id}/kds`, body, options);
2551
1885
  }
2552
1886
 
2553
1887
  /**
@@ -2561,8 +1895,8 @@ export class ServiceClient extends BaseServiceClient {
2561
1895
  options?: {
2562
1896
  query?: GetTaskAssigneeQuery;
2563
1897
  } & RequestOptions
2564
- ): ResponsePromise<GetTaskAssigneeResponse> {
2565
- return this.request("task", "get_task_assignee", "get", `/task/assignee/${id}`, null, options);
1898
+ ): Promise<GetTaskAssigneeResponse> {
1899
+ return this.request("get", `/task/assignee/${id}`, null, options);
2566
1900
  }
2567
1901
 
2568
1902
  /**
@@ -2576,15 +1910,8 @@ export class ServiceClient extends BaseServiceClient {
2576
1910
  options?: {
2577
1911
  query?: GetTaskLocationBrandQuery;
2578
1912
  } & RequestOptions
2579
- ): ResponsePromise<GetTaskLocationBrandResponse> {
2580
- return this.request(
2581
- "task",
2582
- "get_task_location_brand",
2583
- "get",
2584
- `/task/location/brand/${id}`,
2585
- null,
2586
- options
2587
- );
1913
+ ): Promise<GetTaskLocationBrandResponse> {
1914
+ return this.request("get", `/task/location/brand/${id}`, null, options);
2588
1915
  }
2589
1916
 
2590
1917
  /**
@@ -2598,15 +1925,8 @@ export class ServiceClient extends BaseServiceClient {
2598
1925
  options?: {
2599
1926
  query?: GetTaskLocationGroupQuery;
2600
1927
  } & RequestOptions
2601
- ): ResponsePromise<GetTaskLocationGroupResponse> {
2602
- return this.request(
2603
- "task",
2604
- "get_task_location_group",
2605
- "get",
2606
- `/task/location/group/${id}`,
2607
- null,
2608
- options
2609
- );
1928
+ ): Promise<GetTaskLocationGroupResponse> {
1929
+ return this.request("get", `/task/location/group/${id}`, null, options);
2610
1930
  }
2611
1931
 
2612
1932
  /**
@@ -2618,8 +1938,8 @@ export class ServiceClient extends BaseServiceClient {
2618
1938
  options: {
2619
1939
  query: GetKdsDevicesQuery;
2620
1940
  } & RequestOptions
2621
- ): ResponsePromise<GetKdsDevicesResponse> {
2622
- return this.request("kds", "get_kds_devices", "get", `/kds/devices`, null, options);
1941
+ ): Promise<GetKdsDevicesResponse> {
1942
+ return this.request("get", `/kds/devices`, null, options);
2623
1943
  }
2624
1944
 
2625
1945
  /**
@@ -2631,8 +1951,8 @@ export class ServiceClient extends BaseServiceClient {
2631
1951
  post_kds_device_auth(
2632
1952
  body: PostKdsDeviceAuthBody,
2633
1953
  options?: RequestOptions
2634
- ): ResponsePromise<PostKdsDeviceAuthResponse> {
2635
- return this.request("kds", "post_kds_device_auth", "post", `/kds/device/auth`, body, options);
1954
+ ): Promise<PostKdsDeviceAuthResponse> {
1955
+ return this.request("post", `/kds/device/auth`, body, options);
2636
1956
  }
2637
1957
 
2638
1958
  /**
@@ -2644,15 +1964,8 @@ export class ServiceClient extends BaseServiceClient {
2644
1964
  delete_kds_device_auth(
2645
1965
  device_id: string,
2646
1966
  options?: RequestOptions
2647
- ): ResponsePromise<DeleteKdsDeviceAuthResponse> {
2648
- return this.request(
2649
- "kds",
2650
- "delete_kds_device_auth",
2651
- "delete",
2652
- `/kds/device/auth/${device_id}`,
2653
- null,
2654
- options
2655
- );
1967
+ ): Promise<DeleteKdsDeviceAuthResponse> {
1968
+ return this.request("delete", `/kds/device/auth/${device_id}`, null, options);
2656
1969
  }
2657
1970
 
2658
1971
  /**
@@ -2660,8 +1973,8 @@ export class ServiceClient extends BaseServiceClient {
2660
1973
  *
2661
1974
  * @param options - additional request options
2662
1975
  */
2663
- get_kds_swagger(options?: RequestOptions): ResponsePromise<GetKdsSwaggerResponse> {
2664
- return this.request("kds", "get_kds_swagger", "get", `/kds/swagger.json`, null, options);
1976
+ get_kds_swagger(options?: RequestOptions): Promise<GetKdsSwaggerResponse> {
1977
+ return this.request("get", `/kds/swagger.json`, null, options);
2665
1978
  }
2666
1979
 
2667
1980
  /**
@@ -2675,8 +1988,8 @@ export class ServiceClient extends BaseServiceClient {
2675
1988
  id: string,
2676
1989
  body: PostMealplanBody,
2677
1990
  options?: RequestOptions
2678
- ): ResponsePromise<PostMealplanResponse> {
2679
- return this.request("mealplan", "post_mealplan", "post", `/mealplan/${id}`, body, options);
1991
+ ): Promise<PostMealplanResponse> {
1992
+ return this.request("post", `/mealplan/${id}`, body, options);
2680
1993
  }
2681
1994
 
2682
1995
  /**
@@ -2690,8 +2003,8 @@ export class ServiceClient extends BaseServiceClient {
2690
2003
  id: string,
2691
2004
  body: PutMealplanBody,
2692
2005
  options?: RequestOptions
2693
- ): ResponsePromise<PutMealplanResponse> {
2694
- return this.request("mealplan", "put_mealplan", "put", `/mealplan/${id}`, body, options);
2006
+ ): Promise<PutMealplanResponse> {
2007
+ return this.request("put", `/mealplan/${id}`, body, options);
2695
2008
  }
2696
2009
 
2697
2010
  /**
@@ -2700,8 +2013,8 @@ export class ServiceClient extends BaseServiceClient {
2700
2013
  * @param id - Meal plan ID
2701
2014
  * @param options - additional request options
2702
2015
  */
2703
- get_mealplan(id: string, options?: RequestOptions): ResponsePromise<GetMealplanResponse> {
2704
- return this.request("mealplan", "get_mealplan", "get", `/mealplan/${id}`, null, options);
2016
+ get_mealplan(id: string, options?: RequestOptions): Promise<GetMealplanResponse> {
2017
+ return this.request("get", `/mealplan/${id}`, null, options);
2705
2018
  }
2706
2019
 
2707
2020
  /**
@@ -2715,8 +2028,8 @@ export class ServiceClient extends BaseServiceClient {
2715
2028
  id: string,
2716
2029
  body: DeleteMealplanBody,
2717
2030
  options?: RequestOptions
2718
- ): ResponsePromise<DeleteMealplanResponse> {
2719
- return this.request("mealplan", "delete_mealplan", "delete", `/mealplan/${id}`, body, options);
2031
+ ): Promise<DeleteMealplanResponse> {
2032
+ return this.request("delete", `/mealplan/${id}`, body, options);
2720
2033
  }
2721
2034
 
2722
2035
  /**
@@ -2728,15 +2041,8 @@ export class ServiceClient extends BaseServiceClient {
2728
2041
  post_mealplan_callback(
2729
2042
  id: string,
2730
2043
  options?: RequestOptions
2731
- ): ResponsePromise<PostMealplanCallbackResponse> {
2732
- return this.request(
2733
- "mealplan",
2734
- "post_mealplan_callback",
2735
- "post",
2736
- `/mealplan/${id}/callback`,
2737
- null,
2738
- options
2739
- );
2044
+ ): Promise<PostMealplanCallbackResponse> {
2045
+ return this.request("post", `/mealplan/${id}/callback`, null, options);
2740
2046
  }
2741
2047
 
2742
2048
  /**
@@ -2750,15 +2056,8 @@ export class ServiceClient extends BaseServiceClient {
2750
2056
  id: string,
2751
2057
  tender: string,
2752
2058
  options?: RequestOptions
2753
- ): ResponsePromise<GetMealplanTenderResponse> {
2754
- return this.request(
2755
- "mealplan",
2756
- "get_mealplan_tender",
2757
- "get",
2758
- `/mealplan/${id}/tender/${tender}`,
2759
- null,
2760
- options
2761
- );
2059
+ ): Promise<GetMealplanTenderResponse> {
2060
+ return this.request("get", `/mealplan/${id}/tender/${tender}`, null, options);
2762
2061
  }
2763
2062
 
2764
2063
  /**
@@ -2772,15 +2071,8 @@ export class ServiceClient extends BaseServiceClient {
2772
2071
  id: string,
2773
2072
  tender: string,
2774
2073
  options?: RequestOptions
2775
- ): ResponsePromise<DeleteMealplanTenderResponse> {
2776
- return this.request(
2777
- "mealplan",
2778
- "delete_mealplan_tender",
2779
- "delete",
2780
- `/mealplan/${id}/tender/${tender}`,
2781
- null,
2782
- options
2783
- );
2074
+ ): Promise<DeleteMealplanTenderResponse> {
2075
+ return this.request("delete", `/mealplan/${id}/tender/${tender}`, null, options);
2784
2076
  }
2785
2077
 
2786
2078
  /**
@@ -2796,15 +2088,8 @@ export class ServiceClient extends BaseServiceClient {
2796
2088
  tender: string,
2797
2089
  body: PatchMealplanTenderBody,
2798
2090
  options?: RequestOptions
2799
- ): ResponsePromise<PatchMealplanTenderResponse> {
2800
- return this.request(
2801
- "mealplan",
2802
- "patch_mealplan_tender",
2803
- "patch",
2804
- `/mealplan/${id}/tender/${tender}`,
2805
- body,
2806
- options
2807
- );
2091
+ ): Promise<PatchMealplanTenderResponse> {
2092
+ return this.request("patch", `/mealplan/${id}/tender/${tender}`, body, options);
2808
2093
  }
2809
2094
 
2810
2095
  /**
@@ -2820,15 +2105,8 @@ export class ServiceClient extends BaseServiceClient {
2820
2105
  options?: {
2821
2106
  query?: PostMealplanVerifyQuery;
2822
2107
  } & RequestOptions
2823
- ): ResponsePromise<PostMealplanVerifyResponse> {
2824
- return this.request(
2825
- "mealplan",
2826
- "post_mealplan_verify",
2827
- "post",
2828
- `/mealplan/${id}/verify`,
2829
- body,
2830
- options
2831
- );
2108
+ ): Promise<PostMealplanVerifyResponse> {
2109
+ return this.request("post", `/mealplan/${id}/verify`, body, options);
2832
2110
  }
2833
2111
 
2834
2112
  /**
@@ -2842,15 +2120,8 @@ export class ServiceClient extends BaseServiceClient {
2842
2120
  id: string,
2843
2121
  body: PutMealplanVerifyBody,
2844
2122
  options?: RequestOptions
2845
- ): ResponsePromise<PutMealplanVerifyResponse> {
2846
- return this.request(
2847
- "mealplan",
2848
- "put_mealplan_verify",
2849
- "put",
2850
- `/mealplan/${id}/verify`,
2851
- body,
2852
- options
2853
- );
2123
+ ): Promise<PutMealplanVerifyResponse> {
2124
+ return this.request("put", `/mealplan/${id}/verify`, body, options);
2854
2125
  }
2855
2126
 
2856
2127
  /**
@@ -2864,15 +2135,8 @@ export class ServiceClient extends BaseServiceClient {
2864
2135
  id: string,
2865
2136
  body: PostMealplanAuthorizeBody,
2866
2137
  options?: RequestOptions
2867
- ): ResponsePromise<PostMealplanAuthorizeResponse> {
2868
- return this.request(
2869
- "mealplan",
2870
- "post_mealplan_authorize",
2871
- "post",
2872
- `/mealplan/${id}/authorize`,
2873
- body,
2874
- options
2875
- );
2138
+ ): Promise<PostMealplanAuthorizeResponse> {
2139
+ return this.request("post", `/mealplan/${id}/authorize`, body, options);
2876
2140
  }
2877
2141
 
2878
2142
  /**
@@ -2884,8 +2148,8 @@ export class ServiceClient extends BaseServiceClient {
2884
2148
  post_datalake_sql(
2885
2149
  body: PostDatalakeSqlBody,
2886
2150
  options?: RequestOptions
2887
- ): ResponsePromise<PostDatalakeSqlResponse> {
2888
- return this.request("datalake", "post_datalake_sql", "post", `/datalake/sql`, body, options);
2151
+ ): Promise<PostDatalakeSqlResponse> {
2152
+ return this.request("post", `/datalake/sql`, body, options);
2889
2153
  }
2890
2154
 
2891
2155
  /**
@@ -2893,8 +2157,8 @@ export class ServiceClient extends BaseServiceClient {
2893
2157
  *
2894
2158
  * @param options - additional request options
2895
2159
  */
2896
- get_swagger(options?: RequestOptions): ResponsePromise<GetSwaggerResponse> {
2897
- return this.request("datalake", "get_swagger", "get", `/swagger.json`, null, options);
2160
+ get_swagger(options?: RequestOptions): Promise<GetSwaggerResponse> {
2161
+ return this.request("get", `/swagger.json`, null, options);
2898
2162
  }
2899
2163
 
2900
2164
  /**
@@ -2903,8 +2167,8 @@ export class ServiceClient extends BaseServiceClient {
2903
2167
  * @param body
2904
2168
  * @param options - additional request options
2905
2169
  */
2906
- post_promo(body: PostPromoBody, options?: RequestOptions): ResponsePromise<PostPromoResponse> {
2907
- return this.request("promo", "post_promo", "post", `/promo`, body, options);
2170
+ post_promo(body: PostPromoBody, options?: RequestOptions): Promise<PostPromoResponse> {
2171
+ return this.request("post", `/promo`, body, options);
2908
2172
  }
2909
2173
 
2910
2174
  /**
@@ -2916,8 +2180,8 @@ export class ServiceClient extends BaseServiceClient {
2916
2180
  options?: {
2917
2181
  query?: GetPromosQuery;
2918
2182
  } & RequestOptions
2919
- ): ResponsePromise<GetPromosResponse> {
2920
- return this.request("promo", "get_promos", "get", `/promo`, null, options);
2183
+ ): Promise<GetPromosResponse> {
2184
+ return this.request("get", `/promo`, null, options);
2921
2185
  }
2922
2186
 
2923
2187
  /**
@@ -2931,8 +2195,8 @@ export class ServiceClient extends BaseServiceClient {
2931
2195
  options?: {
2932
2196
  query?: GetPromoQuery;
2933
2197
  } & RequestOptions
2934
- ): ResponsePromise<GetPromoResponse> {
2935
- return this.request("promo", "get_promo", "get", `/promo/${id}`, null, options);
2198
+ ): Promise<GetPromoResponse> {
2199
+ return this.request("get", `/promo/${id}`, null, options);
2936
2200
  }
2937
2201
 
2938
2202
  /**
@@ -2942,12 +2206,8 @@ export class ServiceClient extends BaseServiceClient {
2942
2206
  * @param body
2943
2207
  * @param options - additional request options
2944
2208
  */
2945
- put_promo(
2946
- id: string,
2947
- body: PutPromoBody,
2948
- options?: RequestOptions
2949
- ): ResponsePromise<PutPromoResponse> {
2950
- return this.request("promo", "put_promo", "put", `/promo/${id}`, body, options);
2209
+ put_promo(id: string, body: PutPromoBody, options?: RequestOptions): Promise<PutPromoResponse> {
2210
+ return this.request("put", `/promo/${id}`, body, options);
2951
2211
  }
2952
2212
 
2953
2213
  /**
@@ -2956,8 +2216,8 @@ export class ServiceClient extends BaseServiceClient {
2956
2216
  * @param id - Id of a promotion
2957
2217
  * @param options - additional request options
2958
2218
  */
2959
- delete_promo(id: string, options?: RequestOptions): ResponsePromise<DeletePromoResponse> {
2960
- return this.request("promo", "delete_promo", "delete", `/promo/${id}`, null, options);
2219
+ delete_promo(id: string, options?: RequestOptions): Promise<DeletePromoResponse> {
2220
+ return this.request("delete", `/promo/${id}`, null, options);
2961
2221
  }
2962
2222
 
2963
2223
  /**
@@ -2973,10 +2233,8 @@ export class ServiceClient extends BaseServiceClient {
2973
2233
  options?: {
2974
2234
  query?: GetPromoCompanyLocationGroupQuery;
2975
2235
  } & RequestOptions
2976
- ): ResponsePromise<GetPromoCompanyLocationGroupResponse> {
2236
+ ): Promise<GetPromoCompanyLocationGroupResponse> {
2977
2237
  return this.request(
2978
- "promo",
2979
- "get_promo_company_location_group",
2980
2238
  "get",
2981
2239
  `/promo/company/${company}/location/group/${location_group}`,
2982
2240
  null,
@@ -2993,15 +2251,8 @@ export class ServiceClient extends BaseServiceClient {
2993
2251
  post_promo_validate_voucher(
2994
2252
  body: PostPromoValidateVoucherBody,
2995
2253
  options?: RequestOptions
2996
- ): ResponsePromise<PostPromoValidateVoucherResponse> {
2997
- return this.request(
2998
- "promo",
2999
- "post_promo_validate_voucher",
3000
- "post",
3001
- `/promo/validate/voucher`,
3002
- body,
3003
- options
3004
- );
2254
+ ): Promise<PostPromoValidateVoucherResponse> {
2255
+ return this.request("post", `/promo/validate/voucher`, body, options);
3005
2256
  }
3006
2257
 
3007
2258
  /**
@@ -3013,15 +2264,8 @@ export class ServiceClient extends BaseServiceClient {
3013
2264
  post_promo_redeem_voucher(
3014
2265
  body: PostPromoRedeemVoucherBody,
3015
2266
  options?: RequestOptions
3016
- ): ResponsePromise<PostPromoRedeemVoucherResponse> {
3017
- return this.request(
3018
- "promo",
3019
- "post_promo_redeem_voucher",
3020
- "post",
3021
- `/promo/redeem/voucher`,
3022
- body,
3023
- options
3024
- );
2267
+ ): Promise<PostPromoRedeemVoucherResponse> {
2268
+ return this.request("post", `/promo/redeem/voucher`, body, options);
3025
2269
  }
3026
2270
 
3027
2271
  /**
@@ -3033,8 +2277,8 @@ export class ServiceClient extends BaseServiceClient {
3033
2277
  post_promo_voucher(
3034
2278
  body: PostPromoVoucherBody,
3035
2279
  options?: RequestOptions
3036
- ): ResponsePromise<PostPromoVoucherResponse> {
3037
- return this.request("promo", "post_promo_voucher", "post", `/promo/voucher`, body, options);
2280
+ ): Promise<PostPromoVoucherResponse> {
2281
+ return this.request("post", `/promo/voucher`, body, options);
3038
2282
  }
3039
2283
 
3040
2284
  /**
@@ -3048,8 +2292,8 @@ export class ServiceClient extends BaseServiceClient {
3048
2292
  id: string,
3049
2293
  body: PutPromoVoucherBody,
3050
2294
  options?: RequestOptions
3051
- ): ResponsePromise<PutPromoVoucherResponse> {
3052
- return this.request("promo", "put_promo_voucher", "put", `/promo/voucher/${id}`, body, options);
2295
+ ): Promise<PutPromoVoucherResponse> {
2296
+ return this.request("put", `/promo/voucher/${id}`, body, options);
3053
2297
  }
3054
2298
 
3055
2299
  /**
@@ -3063,15 +2307,8 @@ export class ServiceClient extends BaseServiceClient {
3063
2307
  options?: {
3064
2308
  query?: DeletePromoVoucherQuery;
3065
2309
  } & RequestOptions
3066
- ): ResponsePromise<DeletePromoVoucherResponse> {
3067
- return this.request(
3068
- "promo",
3069
- "delete_promo_voucher",
3070
- "delete",
3071
- `/promo/voucher/${id}`,
3072
- null,
3073
- options
3074
- );
2310
+ ): Promise<DeletePromoVoucherResponse> {
2311
+ return this.request("delete", `/promo/voucher/${id}`, null, options);
3075
2312
  }
3076
2313
 
3077
2314
  /**
@@ -3083,8 +2320,8 @@ export class ServiceClient extends BaseServiceClient {
3083
2320
  post_promo_customer(
3084
2321
  body: PostPromoCustomerBody,
3085
2322
  options?: RequestOptions
3086
- ): ResponsePromise<PostPromoCustomerResponse> {
3087
- return this.request("promo", "post_promo_customer", "post", `/promo/customer/`, body, options);
2323
+ ): Promise<PostPromoCustomerResponse> {
2324
+ return this.request("post", `/promo/customer/`, body, options);
3088
2325
  }
3089
2326
 
3090
2327
  /**
@@ -3096,15 +2333,8 @@ export class ServiceClient extends BaseServiceClient {
3096
2333
  delete_promo_customer(
3097
2334
  body: DeletePromoCustomerBody,
3098
2335
  options?: RequestOptions
3099
- ): ResponsePromise<DeletePromoCustomerResponse> {
3100
- return this.request(
3101
- "promo",
3102
- "delete_promo_customer",
3103
- "delete",
3104
- `/promo/customer/`,
3105
- body,
3106
- options
3107
- );
2336
+ ): Promise<DeletePromoCustomerResponse> {
2337
+ return this.request("delete", `/promo/customer/`, body, options);
3108
2338
  }
3109
2339
 
3110
2340
  /**
@@ -3118,15 +2348,8 @@ export class ServiceClient extends BaseServiceClient {
3118
2348
  id: string,
3119
2349
  body: PostPromoVoucherReverseBody,
3120
2350
  options?: RequestOptions
3121
- ): ResponsePromise<PostPromoVoucherReverseResponse> {
3122
- return this.request(
3123
- "promo",
3124
- "post_promo_voucher_reverse",
3125
- "post",
3126
- `/promo/voucher/${id}/reverse`,
3127
- body,
3128
- options
3129
- );
2351
+ ): Promise<PostPromoVoucherReverseResponse> {
2352
+ return this.request("post", `/promo/voucher/${id}/reverse`, body, options);
3130
2353
  }
3131
2354
 
3132
2355
  /**
@@ -3138,15 +2361,8 @@ export class ServiceClient extends BaseServiceClient {
3138
2361
  post_promo_voucherify_activity_execute(
3139
2362
  body: PostPromoVoucherifyActivityExecuteBody,
3140
2363
  options?: RequestOptions
3141
- ): ResponsePromise<PostPromoVoucherifyActivityExecuteResponse> {
3142
- return this.request(
3143
- "promo",
3144
- "post_promo_voucherify_activity_execute",
3145
- "post",
3146
- `/promo/voucherify/activity/execute`,
3147
- body,
3148
- options
3149
- );
2364
+ ): Promise<PostPromoVoucherifyActivityExecuteResponse> {
2365
+ return this.request("post", `/promo/voucherify/activity/execute`, body, options);
3150
2366
  }
3151
2367
 
3152
2368
  /**
@@ -3156,15 +2372,8 @@ export class ServiceClient extends BaseServiceClient {
3156
2372
  */
3157
2373
  get_promo_voucherify_activity_config(
3158
2374
  options?: RequestOptions
3159
- ): ResponsePromise<GetPromoVoucherifyActivityConfigResponse> {
3160
- return this.request(
3161
- "promo",
3162
- "get_promo_voucherify_activity_config",
3163
- "get",
3164
- `/promo/voucherify/activity/config.json`,
3165
- null,
3166
- options
3167
- );
2375
+ ): Promise<GetPromoVoucherifyActivityConfigResponse> {
2376
+ return this.request("get", `/promo/voucherify/activity/config.json`, null, options);
3168
2377
  }
3169
2378
 
3170
2379
  /**
@@ -3172,8 +2381,8 @@ export class ServiceClient extends BaseServiceClient {
3172
2381
  *
3173
2382
  * @param options - additional request options
3174
2383
  */
3175
- post_dh_sql(options?: RequestOptions): ResponsePromise<PostDhSqlResponse> {
3176
- return this.request("dh", "post_dh_sql", "post", `/dh/sql`, null, options);
2384
+ post_dh_sql(options?: RequestOptions): Promise<PostDhSqlResponse> {
2385
+ return this.request("post", `/dh/sql`, null, options);
3177
2386
  }
3178
2387
 
3179
2388
  /**
@@ -3182,8 +2391,8 @@ export class ServiceClient extends BaseServiceClient {
3182
2391
  * @param key - configuration key
3183
2392
  * @param options - additional request options
3184
2393
  */
3185
- get_config(key: string, options?: RequestOptions): ResponsePromise<GetConfigResponse> {
3186
- return this.request("config", "get_config", "get", `/config/${key}`, null, options);
2394
+ get_config(key: string, options?: RequestOptions): Promise<GetConfigResponse> {
2395
+ return this.request("get", `/config/${key}`, null, options);
3187
2396
  }
3188
2397
 
3189
2398
  /**
@@ -3197,8 +2406,8 @@ export class ServiceClient extends BaseServiceClient {
3197
2406
  key: string,
3198
2407
  body: PostConfigBody,
3199
2408
  options?: RequestOptions
3200
- ): ResponsePromise<PostConfigResponse> {
3201
- return this.request("config", "post_config", "post", `/config/${key}`, body, options);
2409
+ ): Promise<PostConfigResponse> {
2410
+ return this.request("post", `/config/${key}`, body, options);
3202
2411
  }
3203
2412
 
3204
2413
  /**
@@ -3212,8 +2421,8 @@ export class ServiceClient extends BaseServiceClient {
3212
2421
  key: string,
3213
2422
  body: PutConfigBody,
3214
2423
  options?: RequestOptions
3215
- ): ResponsePromise<PutConfigResponse> {
3216
- return this.request("config", "put_config", "put", `/config/${key}`, body, options);
2424
+ ): Promise<PutConfigResponse> {
2425
+ return this.request("put", `/config/${key}`, body, options);
3217
2426
  }
3218
2427
 
3219
2428
  /**
@@ -3222,8 +2431,8 @@ export class ServiceClient extends BaseServiceClient {
3222
2431
  * @param key - configuration key
3223
2432
  * @param options - additional request options
3224
2433
  */
3225
- delete_config(key: string, options?: RequestOptions): ResponsePromise<DeleteConfigResponse> {
3226
- return this.request("config", "delete_config", "delete", `/config/${key}`, null, options);
2434
+ delete_config(key: string, options?: RequestOptions): Promise<DeleteConfigResponse> {
2435
+ return this.request("delete", `/config/${key}`, null, options);
3227
2436
  }
3228
2437
 
3229
2438
  /**
@@ -3232,18 +2441,8 @@ export class ServiceClient extends BaseServiceClient {
3232
2441
  * @param key - configuration key
3233
2442
  * @param options - additional request options
3234
2443
  */
3235
- get_config_public(
3236
- key: string,
3237
- options?: RequestOptions
3238
- ): ResponsePromise<GetConfigPublicResponse> {
3239
- return this.request(
3240
- "config",
3241
- "get_config_public",
3242
- "get",
3243
- `/config/public/${key}`,
3244
- null,
3245
- options
3246
- );
2444
+ get_config_public(key: string, options?: RequestOptions): Promise<GetConfigPublicResponse> {
2445
+ return this.request("get", `/config/public/${key}`, null, options);
3247
2446
  }
3248
2447
 
3249
2448
  /**
@@ -3257,15 +2456,8 @@ export class ServiceClient extends BaseServiceClient {
3257
2456
  key: string,
3258
2457
  body: PostConfigPublicBody,
3259
2458
  options?: RequestOptions
3260
- ): ResponsePromise<PostConfigPublicResponse> {
3261
- return this.request(
3262
- "config",
3263
- "post_config_public",
3264
- "post",
3265
- `/config/public/${key}`,
3266
- body,
3267
- options
3268
- );
2459
+ ): Promise<PostConfigPublicResponse> {
2460
+ return this.request("post", `/config/public/${key}`, body, options);
3269
2461
  }
3270
2462
 
3271
2463
  /**
@@ -3279,15 +2471,8 @@ export class ServiceClient extends BaseServiceClient {
3279
2471
  key: string,
3280
2472
  body: PutConfigPublicBody,
3281
2473
  options?: RequestOptions
3282
- ): ResponsePromise<PutConfigPublicResponse> {
3283
- return this.request(
3284
- "config",
3285
- "put_config_public",
3286
- "put",
3287
- `/config/public/${key}`,
3288
- body,
3289
- options
3290
- );
2474
+ ): Promise<PutConfigPublicResponse> {
2475
+ return this.request("put", `/config/public/${key}`, body, options);
3291
2476
  }
3292
2477
 
3293
2478
  /**
@@ -3296,18 +2481,8 @@ export class ServiceClient extends BaseServiceClient {
3296
2481
  * @param key - configuration key
3297
2482
  * @param options - additional request options
3298
2483
  */
3299
- delete_config_public(
3300
- key: string,
3301
- options?: RequestOptions
3302
- ): ResponsePromise<DeleteConfigPublicResponse> {
3303
- return this.request(
3304
- "config",
3305
- "delete_config_public",
3306
- "delete",
3307
- `/config/public/${key}`,
3308
- null,
3309
- options
3310
- );
2484
+ delete_config_public(key: string, options?: RequestOptions): Promise<DeleteConfigPublicResponse> {
2485
+ return this.request("delete", `/config/public/${key}`, null, options);
3311
2486
  }
3312
2487
 
3313
2488
  /**
@@ -3319,15 +2494,8 @@ export class ServiceClient extends BaseServiceClient {
3319
2494
  post_announcement(
3320
2495
  body: PostAnnouncementBody,
3321
2496
  options?: RequestOptions
3322
- ): ResponsePromise<PostAnnouncementResponse> {
3323
- return this.request(
3324
- "announcement",
3325
- "post_announcement",
3326
- "post",
3327
- `/announcement`,
3328
- body,
3329
- options
3330
- );
2497
+ ): Promise<PostAnnouncementResponse> {
2498
+ return this.request("post", `/announcement`, body, options);
3331
2499
  }
3332
2500
 
3333
2501
  /**
@@ -3341,15 +2509,8 @@ export class ServiceClient extends BaseServiceClient {
3341
2509
  options?: {
3342
2510
  query?: GetAnnouncementResourceQuery;
3343
2511
  } & RequestOptions
3344
- ): ResponsePromise<GetAnnouncementResourceResponse> {
3345
- return this.request(
3346
- "announcement",
3347
- "get_announcement_resource",
3348
- "get",
3349
- `/announcement/resource/${id}`,
3350
- null,
3351
- options
3352
- );
2512
+ ): Promise<GetAnnouncementResourceResponse> {
2513
+ return this.request("get", `/announcement/resource/${id}`, null, options);
3353
2514
  }
3354
2515
 
3355
2516
  /**
@@ -3361,15 +2522,8 @@ export class ServiceClient extends BaseServiceClient {
3361
2522
  options?: {
3362
2523
  query?: GetAnnouncementResourcesQuery;
3363
2524
  } & RequestOptions
3364
- ): ResponsePromise<GetAnnouncementResourcesResponse> {
3365
- return this.request(
3366
- "announcement",
3367
- "get_announcement_resources",
3368
- "get",
3369
- `/announcement/resource`,
3370
- null,
3371
- options
3372
- );
2525
+ ): Promise<GetAnnouncementResourcesResponse> {
2526
+ return this.request("get", `/announcement/resource`, null, options);
3373
2527
  }
3374
2528
 
3375
2529
  /**
@@ -3378,15 +2532,8 @@ export class ServiceClient extends BaseServiceClient {
3378
2532
  * @param id - Id of the entity to which announcement is specifically related.
3379
2533
  * @param options - additional request options
3380
2534
  */
3381
- get_announcement(id: string, options?: RequestOptions): ResponsePromise<GetAnnouncementResponse> {
3382
- return this.request(
3383
- "announcement",
3384
- "get_announcement",
3385
- "get",
3386
- `/announcement/${id}`,
3387
- null,
3388
- options
3389
- );
2535
+ get_announcement(id: string, options?: RequestOptions): Promise<GetAnnouncementResponse> {
2536
+ return this.request("get", `/announcement/${id}`, null, options);
3390
2537
  }
3391
2538
 
3392
2539
  /**
@@ -3400,15 +2547,8 @@ export class ServiceClient extends BaseServiceClient {
3400
2547
  id: string,
3401
2548
  body: PutAnnouncementBody,
3402
2549
  options?: RequestOptions
3403
- ): ResponsePromise<PutAnnouncementResponse> {
3404
- return this.request(
3405
- "announcement",
3406
- "put_announcement",
3407
- "put",
3408
- `/announcement/${id}`,
3409
- body,
3410
- options
3411
- );
2550
+ ): Promise<PutAnnouncementResponse> {
2551
+ return this.request("put", `/announcement/${id}`, body, options);
3412
2552
  }
3413
2553
 
3414
2554
  /**
@@ -3417,18 +2557,8 @@ export class ServiceClient extends BaseServiceClient {
3417
2557
  * @param id - Id of the announcement
3418
2558
  * @param options - additional request options
3419
2559
  */
3420
- delete_announcement(
3421
- id: string,
3422
- options?: RequestOptions
3423
- ): ResponsePromise<DeleteAnnouncementResponse> {
3424
- return this.request(
3425
- "announcement",
3426
- "delete_announcement",
3427
- "delete",
3428
- `/announcement/${id}`,
3429
- null,
3430
- options
3431
- );
2560
+ delete_announcement(id: string, options?: RequestOptions): Promise<DeleteAnnouncementResponse> {
2561
+ return this.request("delete", `/announcement/${id}`, null, options);
3432
2562
  }
3433
2563
 
3434
2564
  /**
@@ -3444,10 +2574,8 @@ export class ServiceClient extends BaseServiceClient {
3444
2574
  options: {
3445
2575
  query: GetReportAnalyticsGroupQuery;
3446
2576
  } & RequestOptions
3447
- ): ResponsePromise<GetReportAnalyticsGroupResponse> {
2577
+ ): Promise<GetReportAnalyticsGroupResponse> {
3448
2578
  return this.request(
3449
- "report",
3450
- "get_report_analytics_group",
3451
2579
  "get",
3452
2580
  `/report/analytics/group/${location_group}/${report_type}`,
3453
2581
  null,
@@ -3466,15 +2594,8 @@ export class ServiceClient extends BaseServiceClient {
3466
2594
  options: {
3467
2595
  query: GetReportAnalyticsCombinedGroupQuery;
3468
2596
  } & RequestOptions
3469
- ): ResponsePromise<GetReportAnalyticsCombinedGroupResponse> {
3470
- return this.request(
3471
- "report",
3472
- "get_report_analytics_combined_group",
3473
- "get",
3474
- `/report/analytics/combined/group/${location_group}`,
3475
- null,
3476
- options
3477
- );
2597
+ ): Promise<GetReportAnalyticsCombinedGroupResponse> {
2598
+ return this.request("get", `/report/analytics/combined/group/${location_group}`, null, options);
3478
2599
  }
3479
2600
 
3480
2601
  /**
@@ -3486,15 +2607,8 @@ export class ServiceClient extends BaseServiceClient {
3486
2607
  options: {
3487
2608
  query: GetReportAnalyticsExactmobileTotalsQuery;
3488
2609
  } & RequestOptions
3489
- ): ResponsePromise<GetReportAnalyticsExactmobileTotalsResponse> {
3490
- return this.request(
3491
- "report",
3492
- "get_report_analytics_exactmobile_totals",
3493
- "get",
3494
- `/report/analytics/exactmobile/totals`,
3495
- null,
3496
- options
3497
- );
2610
+ ): Promise<GetReportAnalyticsExactmobileTotalsResponse> {
2611
+ return this.request("get", `/report/analytics/exactmobile/totals`, null, options);
3498
2612
  }
3499
2613
 
3500
2614
  /**
@@ -3506,15 +2620,8 @@ export class ServiceClient extends BaseServiceClient {
3506
2620
  options: {
3507
2621
  query: GetReportAnalyticsExactmobileTransactionsQuery;
3508
2622
  } & RequestOptions
3509
- ): ResponsePromise<GetReportAnalyticsExactmobileTransactionsResponse> {
3510
- return this.request(
3511
- "report",
3512
- "get_report_analytics_exactmobile_transactions",
3513
- "get",
3514
- `/report/analytics/exactmobile/transactions`,
3515
- null,
3516
- options
3517
- );
2623
+ ): Promise<GetReportAnalyticsExactmobileTransactionsResponse> {
2624
+ return this.request("get", `/report/analytics/exactmobile/transactions`, null, options);
3518
2625
  }
3519
2626
 
3520
2627
  /**
@@ -3526,15 +2633,8 @@ export class ServiceClient extends BaseServiceClient {
3526
2633
  options: {
3527
2634
  query: GetReportAnalyticsExactmobileDiscrepanciesQuery;
3528
2635
  } & RequestOptions
3529
- ): ResponsePromise<GetReportAnalyticsExactmobileDiscrepanciesResponse> {
3530
- return this.request(
3531
- "report",
3532
- "get_report_analytics_exactmobile_discrepancies",
3533
- "get",
3534
- `/report/analytics/exactmobile/discrepancies`,
3535
- null,
3536
- options
3537
- );
2636
+ ): Promise<GetReportAnalyticsExactmobileDiscrepanciesResponse> {
2637
+ return this.request("get", `/report/analytics/exactmobile/discrepancies`, null, options);
3538
2638
  }
3539
2639
 
3540
2640
  /**
@@ -3546,15 +2646,8 @@ export class ServiceClient extends BaseServiceClient {
3546
2646
  get_report_analytics_tracker_report(
3547
2647
  id: string,
3548
2648
  options?: RequestOptions
3549
- ): ResponsePromise<GetReportAnalyticsTrackerReportResponse> {
3550
- return this.request(
3551
- "report",
3552
- "get_report_analytics_tracker_report",
3553
- "get",
3554
- `/report/analytics/tracker/report/${id}`,
3555
- null,
3556
- options
3557
- );
2649
+ ): Promise<GetReportAnalyticsTrackerReportResponse> {
2650
+ return this.request("get", `/report/analytics/tracker/report/${id}`, null, options);
3558
2651
  }
3559
2652
 
3560
2653
  /**
@@ -3568,15 +2661,8 @@ export class ServiceClient extends BaseServiceClient {
3568
2661
  options?: {
3569
2662
  query?: GetReportEodGroupQuery;
3570
2663
  } & RequestOptions
3571
- ): ResponsePromise<GetReportEodGroupResponse> {
3572
- return this.request(
3573
- "report",
3574
- "get_report_eod_group",
3575
- "get",
3576
- `/report/eod/group/${id}`,
3577
- null,
3578
- options
3579
- );
2664
+ ): Promise<GetReportEodGroupResponse> {
2665
+ return this.request("get", `/report/eod/group/${id}`, null, options);
3580
2666
  }
3581
2667
 
3582
2668
  /**
@@ -3588,15 +2674,8 @@ export class ServiceClient extends BaseServiceClient {
3588
2674
  get_report_eod_group_subscribers(
3589
2675
  id: string,
3590
2676
  options?: RequestOptions
3591
- ): ResponsePromise<GetReportEodGroupSubscribersResponse> {
3592
- return this.request(
3593
- "report",
3594
- "get_report_eod_group_subscribers",
3595
- "get",
3596
- `/report/eod/group/${id}/subscribers`,
3597
- null,
3598
- options
3599
- );
2677
+ ): Promise<GetReportEodGroupSubscribersResponse> {
2678
+ return this.request("get", `/report/eod/group/${id}/subscribers`, null, options);
3600
2679
  }
3601
2680
 
3602
2681
  /**
@@ -3610,15 +2689,8 @@ export class ServiceClient extends BaseServiceClient {
3610
2689
  id: string,
3611
2690
  body: PostReportEodGroupSubscribersBody,
3612
2691
  options?: RequestOptions
3613
- ): ResponsePromise<PostReportEodGroupSubscribersResponse> {
3614
- return this.request(
3615
- "report",
3616
- "post_report_eod_group_subscribers",
3617
- "post",
3618
- `/report/eod/group/${id}/subscribers`,
3619
- body,
3620
- options
3621
- );
2692
+ ): Promise<PostReportEodGroupSubscribersResponse> {
2693
+ return this.request("post", `/report/eod/group/${id}/subscribers`, body, options);
3622
2694
  }
3623
2695
 
3624
2696
  /**
@@ -3630,15 +2702,8 @@ export class ServiceClient extends BaseServiceClient {
3630
2702
  delete_report_eod_group_subscribers(
3631
2703
  id: string,
3632
2704
  options?: RequestOptions
3633
- ): ResponsePromise<DeleteReportEodGroupSubscribersResponse> {
3634
- return this.request(
3635
- "report",
3636
- "delete_report_eod_group_subscribers",
3637
- "delete",
3638
- `/report/eod/group/${id}/subscribers`,
3639
- null,
3640
- options
3641
- );
2705
+ ): Promise<DeleteReportEodGroupSubscribersResponse> {
2706
+ return this.request("delete", `/report/eod/group/${id}/subscribers`, null, options);
3642
2707
  }
3643
2708
 
3644
2709
  /**
@@ -3652,15 +2717,8 @@ export class ServiceClient extends BaseServiceClient {
3652
2717
  id: string,
3653
2718
  body: PutReportEodGroupSubscribersBody,
3654
2719
  options?: RequestOptions
3655
- ): ResponsePromise<PutReportEodGroupSubscribersResponse> {
3656
- return this.request(
3657
- "report",
3658
- "put_report_eod_group_subscribers",
3659
- "put",
3660
- `/report/eod/group/${id}/subscribers`,
3661
- body,
3662
- options
3663
- );
2720
+ ): Promise<PutReportEodGroupSubscribersResponse> {
2721
+ return this.request("put", `/report/eod/group/${id}/subscribers`, body, options);
3664
2722
  }
3665
2723
 
3666
2724
  /**
@@ -3672,15 +2730,8 @@ export class ServiceClient extends BaseServiceClient {
3672
2730
  options?: {
3673
2731
  query?: GetReportDiscrepancySubscribersQuery;
3674
2732
  } & RequestOptions
3675
- ): ResponsePromise<GetReportDiscrepancySubscribersResponse> {
3676
- return this.request(
3677
- "report",
3678
- "get_report_discrepancy_subscribers",
3679
- "get",
3680
- `/report/discrepancy/subscribers`,
3681
- null,
3682
- options
3683
- );
2733
+ ): Promise<GetReportDiscrepancySubscribersResponse> {
2734
+ return this.request("get", `/report/discrepancy/subscribers`, null, options);
3684
2735
  }
3685
2736
 
3686
2737
  /**
@@ -3692,15 +2743,8 @@ export class ServiceClient extends BaseServiceClient {
3692
2743
  options: {
3693
2744
  query: DeleteReportDiscrepancySubscribersQuery;
3694
2745
  } & RequestOptions
3695
- ): ResponsePromise<DeleteReportDiscrepancySubscribersResponse> {
3696
- return this.request(
3697
- "report",
3698
- "delete_report_discrepancy_subscribers",
3699
- "delete",
3700
- `/report/discrepancy/subscribers`,
3701
- null,
3702
- options
3703
- );
2746
+ ): Promise<DeleteReportDiscrepancySubscribersResponse> {
2747
+ return this.request("delete", `/report/discrepancy/subscribers`, null, options);
3704
2748
  }
3705
2749
 
3706
2750
  /**
@@ -3712,15 +2756,8 @@ export class ServiceClient extends BaseServiceClient {
3712
2756
  post_report_discrepancy_subscribers(
3713
2757
  body: PostReportDiscrepancySubscribersBody,
3714
2758
  options?: RequestOptions
3715
- ): ResponsePromise<PostReportDiscrepancySubscribersResponse> {
3716
- return this.request(
3717
- "report",
3718
- "post_report_discrepancy_subscribers",
3719
- "post",
3720
- `/report/discrepancy/subscribers`,
3721
- body,
3722
- options
3723
- );
2759
+ ): Promise<PostReportDiscrepancySubscribersResponse> {
2760
+ return this.request("post", `/report/discrepancy/subscribers`, body, options);
3724
2761
  }
3725
2762
 
3726
2763
  /**
@@ -3732,8 +2769,8 @@ export class ServiceClient extends BaseServiceClient {
3732
2769
  options?: {
3733
2770
  query?: GetUserAuthQuery;
3734
2771
  } & RequestOptions
3735
- ): ResponsePromise<GetUserAuthResponse> {
3736
- return this.request("user", "get_user_auth", "get", `/user/auth`, null, options);
2772
+ ): Promise<GetUserAuthResponse> {
2773
+ return this.request("get", `/user/auth`, null, options);
3737
2774
  }
3738
2775
 
3739
2776
  /**
@@ -3742,11 +2779,8 @@ export class ServiceClient extends BaseServiceClient {
3742
2779
  * @param body
3743
2780
  * @param options - additional request options
3744
2781
  */
3745
- post_user_auth(
3746
- body: PostUserAuthBody,
3747
- options?: RequestOptions
3748
- ): ResponsePromise<PostUserAuthResponse> {
3749
- return this.request("user", "post_user_auth", "post", `/user/auth`, body, options);
2782
+ post_user_auth(body: PostUserAuthBody, options?: RequestOptions): Promise<PostUserAuthResponse> {
2783
+ return this.request("post", `/user/auth`, body, options);
3750
2784
  }
3751
2785
 
3752
2786
  /**
@@ -3754,8 +2788,8 @@ export class ServiceClient extends BaseServiceClient {
3754
2788
  *
3755
2789
  * @param options - additional request options
3756
2790
  */
3757
- get_user_zendesk(options?: RequestOptions): ResponsePromise<GetUserZendeskResponse> {
3758
- return this.request("user", "get_user_zendesk", "get", `/user/zendesk`, null, options);
2791
+ get_user_zendesk(options?: RequestOptions): Promise<GetUserZendeskResponse> {
2792
+ return this.request("get", `/user/zendesk`, null, options);
3759
2793
  }
3760
2794
 
3761
2795
  /**
@@ -3769,8 +2803,8 @@ export class ServiceClient extends BaseServiceClient {
3769
2803
  options?: {
3770
2804
  query?: PostUserQuery;
3771
2805
  } & RequestOptions
3772
- ): ResponsePromise<PostUserResponse> {
3773
- return this.request("user", "post_user", "post", `/user`, body, options);
2806
+ ): Promise<PostUserResponse> {
2807
+ return this.request("post", `/user`, body, options);
3774
2808
  }
3775
2809
 
3776
2810
  /**
@@ -3784,8 +2818,8 @@ export class ServiceClient extends BaseServiceClient {
3784
2818
  options?: {
3785
2819
  query?: GetUserQuery;
3786
2820
  } & RequestOptions
3787
- ): ResponsePromise<GetUserResponse> {
3788
- return this.request("user", "get_user", "get", `/user/${id}`, null, options);
2821
+ ): Promise<GetUserResponse> {
2822
+ return this.request("get", `/user/${id}`, null, options);
3789
2823
  }
3790
2824
 
3791
2825
  /**
@@ -3801,8 +2835,8 @@ export class ServiceClient extends BaseServiceClient {
3801
2835
  options?: {
3802
2836
  query?: PutUserQuery;
3803
2837
  } & RequestOptions
3804
- ): ResponsePromise<PutUserResponse> {
3805
- return this.request("user", "put_user", "put", `/user/${id}`, body, options);
2838
+ ): Promise<PutUserResponse> {
2839
+ return this.request("put", `/user/${id}`, body, options);
3806
2840
  }
3807
2841
 
3808
2842
  /**
@@ -3818,8 +2852,8 @@ export class ServiceClient extends BaseServiceClient {
3818
2852
  options?: {
3819
2853
  query?: PatchUserQuery;
3820
2854
  } & RequestOptions
3821
- ): ResponsePromise<PatchUserResponse> {
3822
- return this.request("user", "patch_user", "patch", `/user/${id}`, body, options);
2855
+ ): Promise<PatchUserResponse> {
2856
+ return this.request("patch", `/user/${id}`, body, options);
3823
2857
  }
3824
2858
 
3825
2859
  /**
@@ -3833,8 +2867,8 @@ export class ServiceClient extends BaseServiceClient {
3833
2867
  options?: {
3834
2868
  query?: DeleteUserQuery;
3835
2869
  } & RequestOptions
3836
- ): ResponsePromise<DeleteUserResponse> {
3837
- return this.request("user", "delete_user", "delete", `/user/${id}`, null, options);
2870
+ ): Promise<DeleteUserResponse> {
2871
+ return this.request("delete", `/user/${id}`, null, options);
3838
2872
  }
3839
2873
 
3840
2874
  /**
@@ -3846,8 +2880,8 @@ export class ServiceClient extends BaseServiceClient {
3846
2880
  post_user_kds_token(
3847
2881
  body: PostUserKdsTokenBody,
3848
2882
  options?: RequestOptions
3849
- ): ResponsePromise<PostUserKdsTokenResponse> {
3850
- return this.request("user", "post_user_kds_token", "post", `/user/device/auth`, body, options);
2883
+ ): Promise<PostUserKdsTokenResponse> {
2884
+ return this.request("post", `/user/device/auth`, body, options);
3851
2885
  }
3852
2886
 
3853
2887
  /**
@@ -3859,8 +2893,8 @@ export class ServiceClient extends BaseServiceClient {
3859
2893
  options?: {
3860
2894
  query?: GetUserKdsTokenQuery;
3861
2895
  } & RequestOptions
3862
- ): ResponsePromise<GetUserKdsTokenResponse> {
3863
- return this.request("user", "get_user_kds_token", "get", `/user/device/auth`, null, options);
2896
+ ): Promise<GetUserKdsTokenResponse> {
2897
+ return this.request("get", `/user/device/auth`, null, options);
3864
2898
  }
3865
2899
 
3866
2900
  /**
@@ -3872,37 +2906,21 @@ export class ServiceClient extends BaseServiceClient {
3872
2906
  delete_user_device_auth(
3873
2907
  device_id: string,
3874
2908
  options?: RequestOptions
3875
- ): ResponsePromise<DeleteUserDeviceAuthResponse> {
3876
- return this.request(
3877
- "user",
3878
- "delete_user_device_auth",
3879
- "delete",
3880
- `/user/device/auth/${device_id}`,
3881
- null,
3882
- options
3883
- );
2909
+ ): Promise<DeleteUserDeviceAuthResponse> {
2910
+ return this.request("delete", `/user/device/auth/${device_id}`, null, options);
3884
2911
  }
3885
2912
 
3886
2913
  /**
3887
2914
  * PATCH /user/device/auth/{device_id} - Endpoint for authorizing device to retrieve valid kds token
3888
2915
  *
3889
2916
  * @param device_id - KDS device ID
3890
- * @param body
3891
2917
  * @param options - additional request options
3892
2918
  */
3893
2919
  patch_user_auth_kds(
3894
2920
  device_id: string,
3895
- body: PatchUserAuthKdsBody,
3896
2921
  options?: RequestOptions
3897
- ): ResponsePromise<PatchUserAuthKdsResponse> {
3898
- return this.request(
3899
- "user",
3900
- "patch_user_auth_kds",
3901
- "patch",
3902
- `/user/device/auth/${device_id}`,
3903
- body,
3904
- options
3905
- );
2922
+ ): Promise<PatchUserAuthKdsResponse> {
2923
+ return this.request("patch", `/user/device/auth/${device_id}`, null, options);
3906
2924
  }
3907
2925
 
3908
2926
  /**
@@ -3916,15 +2934,8 @@ export class ServiceClient extends BaseServiceClient {
3916
2934
  id: string,
3917
2935
  body: PostUserChangePasswordBody,
3918
2936
  options?: RequestOptions
3919
- ): ResponsePromise<PostUserChangePasswordResponse> {
3920
- return this.request(
3921
- "user",
3922
- "post_user_change_password",
3923
- "post",
3924
- `/user/${id}/changepassword`,
3925
- body,
3926
- options
3927
- );
2937
+ ): Promise<PostUserChangePasswordResponse> {
2938
+ return this.request("post", `/user/${id}/changepassword`, body, options);
3928
2939
  }
3929
2940
 
3930
2941
  /**
@@ -3932,8 +2943,8 @@ export class ServiceClient extends BaseServiceClient {
3932
2943
  *
3933
2944
  * @param options - additional request options
3934
2945
  */
3935
- delete_user_logout(options?: RequestOptions): ResponsePromise<DeleteUserLogoutResponse> {
3936
- return this.request("user", "delete_user_logout", "delete", `/user/logout`, null, options);
2946
+ delete_user_logout(options?: RequestOptions): Promise<DeleteUserLogoutResponse> {
2947
+ return this.request("delete", `/user/logout`, null, options);
3937
2948
  }
3938
2949
 
3939
2950
  /**
@@ -3949,15 +2960,8 @@ export class ServiceClient extends BaseServiceClient {
3949
2960
  key: string,
3950
2961
  body: PostUserAddSecretBody,
3951
2962
  options?: RequestOptions
3952
- ): ResponsePromise<PostUserAddSecretResponse> {
3953
- return this.request(
3954
- "user",
3955
- "post_user_add_secret",
3956
- "post",
3957
- `/user/${id}/secret/${key}`,
3958
- body,
3959
- options
3960
- );
2963
+ ): Promise<PostUserAddSecretResponse> {
2964
+ return this.request("post", `/user/${id}/secret/${key}`, body, options);
3961
2965
  }
3962
2966
 
3963
2967
  /**
@@ -3971,15 +2975,8 @@ export class ServiceClient extends BaseServiceClient {
3971
2975
  id: string,
3972
2976
  key: string,
3973
2977
  options?: RequestOptions
3974
- ): ResponsePromise<GetUserSecretResponse> {
3975
- return this.request(
3976
- "user",
3977
- "get_user_secret",
3978
- "get",
3979
- `/user/${id}/secret/${key}`,
3980
- null,
3981
- options
3982
- );
2978
+ ): Promise<GetUserSecretResponse> {
2979
+ return this.request("get", `/user/${id}/secret/${key}`, null, options);
3983
2980
  }
3984
2981
 
3985
2982
  /**
@@ -3993,15 +2990,8 @@ export class ServiceClient extends BaseServiceClient {
3993
2990
  options?: {
3994
2991
  query?: PostUserResetPasswordQuery;
3995
2992
  } & RequestOptions
3996
- ): ResponsePromise<PostUserResetPasswordResponse> {
3997
- return this.request(
3998
- "user",
3999
- "post_user_reset_password",
4000
- "post",
4001
- `/user/forgotpassword`,
4002
- body,
4003
- options
4004
- );
2993
+ ): Promise<PostUserResetPasswordResponse> {
2994
+ return this.request("post", `/user/forgotpassword`, body, options);
4005
2995
  }
4006
2996
 
4007
2997
  /**
@@ -4017,15 +3007,8 @@ export class ServiceClient extends BaseServiceClient {
4017
3007
  options: {
4018
3008
  query: PostUserResetPasswordTokenQuery;
4019
3009
  } & RequestOptions
4020
- ): ResponsePromise<PostUserResetPasswordTokenResponse> {
4021
- return this.request(
4022
- "user",
4023
- "post_user_reset_password_token",
4024
- "post",
4025
- `/user/${id}/resetpassword`,
4026
- body,
4027
- options
4028
- );
3010
+ ): Promise<PostUserResetPasswordTokenResponse> {
3011
+ return this.request("post", `/user/${id}/resetpassword`, body, options);
4029
3012
  }
4030
3013
 
4031
3014
  /**
@@ -4039,15 +3022,8 @@ export class ServiceClient extends BaseServiceClient {
4039
3022
  options?: {
4040
3023
  query?: GetUserRealmUsersQuery;
4041
3024
  } & RequestOptions
4042
- ): ResponsePromise<GetUserRealmUsersResponse> {
4043
- return this.request(
4044
- "user",
4045
- "get_user_realm_users",
4046
- "get",
4047
- `/user/realm/${realm}`,
4048
- null,
4049
- options
4050
- );
3025
+ ): Promise<GetUserRealmUsersResponse> {
3026
+ return this.request("get", `/user/realm/${realm}`, null, options);
4051
3027
  }
4052
3028
 
4053
3029
  /**
@@ -4061,15 +3037,8 @@ export class ServiceClient extends BaseServiceClient {
4061
3037
  options?: {
4062
3038
  query?: GetUserPermissionsQuery;
4063
3039
  } & RequestOptions
4064
- ): ResponsePromise<GetUserPermissionsResponse> {
4065
- return this.request(
4066
- "user",
4067
- "get_user_permissions",
4068
- "get",
4069
- `/user/${id}/permissions`,
4070
- null,
4071
- options
4072
- );
3040
+ ): Promise<GetUserPermissionsResponse> {
3041
+ return this.request("get", `/user/${id}/permissions`, null, options);
4073
3042
  }
4074
3043
 
4075
3044
  /**
@@ -4085,15 +3054,8 @@ export class ServiceClient extends BaseServiceClient {
4085
3054
  options?: {
4086
3055
  query?: PutUserPermissionsQuery;
4087
3056
  } & RequestOptions
4088
- ): ResponsePromise<PutUserPermissionsResponse> {
4089
- return this.request(
4090
- "user",
4091
- "put_user_permissions",
4092
- "put",
4093
- `/user/${id}/permissions`,
4094
- body,
4095
- options
4096
- );
3057
+ ): Promise<PutUserPermissionsResponse> {
3058
+ return this.request("put", `/user/${id}/permissions`, body, options);
4097
3059
  }
4098
3060
 
4099
3061
  /**
@@ -4107,8 +3069,8 @@ export class ServiceClient extends BaseServiceClient {
4107
3069
  id: string,
4108
3070
  body: PostUserCheckInBody,
4109
3071
  options?: RequestOptions
4110
- ): ResponsePromise<PostUserCheckInResponse> {
4111
- return this.request("user", "post_user_check_in", "post", `/user/${id}/checkin`, body, options);
3072
+ ): Promise<PostUserCheckInResponse> {
3073
+ return this.request("post", `/user/${id}/checkin`, body, options);
4112
3074
  }
4113
3075
 
4114
3076
  /**
@@ -4124,15 +3086,8 @@ export class ServiceClient extends BaseServiceClient {
4124
3086
  checkin_id: string,
4125
3087
  body: PatchUserCheckinBody,
4126
3088
  options?: RequestOptions
4127
- ): ResponsePromise<PatchUserCheckinResponse> {
4128
- return this.request(
4129
- "user",
4130
- "patch_user_checkin",
4131
- "patch",
4132
- `/user/${id}/checkin/${checkin_id}`,
4133
- body,
4134
- options
4135
- );
3089
+ ): Promise<PatchUserCheckinResponse> {
3090
+ return this.request("patch", `/user/${id}/checkin/${checkin_id}`, body, options);
4136
3091
  }
4137
3092
 
4138
3093
  /**
@@ -4144,15 +3099,8 @@ export class ServiceClient extends BaseServiceClient {
4144
3099
  options?: {
4145
3100
  query?: GetUserSearchCheckInQuery;
4146
3101
  } & RequestOptions
4147
- ): ResponsePromise<GetUserSearchCheckInResponse> {
4148
- return this.request(
4149
- "user",
4150
- "get_user_search_check_in",
4151
- "get",
4152
- `/user/checkin/search`,
4153
- null,
4154
- options
4155
- );
3102
+ ): Promise<GetUserSearchCheckInResponse> {
3103
+ return this.request("get", `/user/checkin/search`, null, options);
4156
3104
  }
4157
3105
 
4158
3106
  /**
@@ -4164,15 +3112,8 @@ export class ServiceClient extends BaseServiceClient {
4164
3112
  post_user_send_email_verification(
4165
3113
  id: string,
4166
3114
  options?: RequestOptions
4167
- ): ResponsePromise<PostUserSendEmailVerificationResponse> {
4168
- return this.request(
4169
- "user",
4170
- "post_user_send_email_verification",
4171
- "post",
4172
- `/user/${id}/verification`,
4173
- null,
4174
- options
4175
- );
3115
+ ): Promise<PostUserSendEmailVerificationResponse> {
3116
+ return this.request("post", `/user/${id}/verification`, null, options);
4176
3117
  }
4177
3118
 
4178
3119
  /**
@@ -4186,37 +3127,8 @@ export class ServiceClient extends BaseServiceClient {
4186
3127
  id: string,
4187
3128
  body: PutUserVerifyUserEmailBody,
4188
3129
  options?: RequestOptions
4189
- ): ResponsePromise<PutUserVerifyUserEmailResponse> {
4190
- return this.request(
4191
- "user",
4192
- "put_user_verify_user_email",
4193
- "put",
4194
- `/user/${id}/verification/confirm`,
4195
- body,
4196
- options
4197
- );
4198
- }
4199
-
4200
- /**
4201
- * PUT /user/{id}/verification/phone - Send phone verification to user
4202
- *
4203
- * @param id - realm
4204
- * @param body
4205
- * @param options - additional request options
4206
- */
4207
- put_user_verification_phone(
4208
- id: string,
4209
- body: PutUserVerificationPhoneBody,
4210
- options?: RequestOptions
4211
- ): ResponsePromise<PutUserVerificationPhoneResponse> {
4212
- return this.request(
4213
- "user",
4214
- "put_user_verification_phone",
4215
- "put",
4216
- `/user/${id}/verification/phone`,
4217
- body,
4218
- options
4219
- );
3130
+ ): Promise<PutUserVerifyUserEmailResponse> {
3131
+ return this.request("put", `/user/${id}/verification/confirm`, body, options);
4220
3132
  }
4221
3133
 
4222
3134
  /**
@@ -4232,15 +3144,8 @@ export class ServiceClient extends BaseServiceClient {
4232
3144
  options?: {
4233
3145
  query?: PostLoyaltyEnrollQuery;
4234
3146
  } & RequestOptions
4235
- ): ResponsePromise<PostLoyaltyEnrollResponse> {
4236
- return this.request(
4237
- "loyalty",
4238
- "post_loyalty_enroll",
4239
- "post",
4240
- `/loyalty/${id}/enroll/${user_id}`,
4241
- null,
4242
- options
4243
- );
3147
+ ): Promise<PostLoyaltyEnrollResponse> {
3148
+ return this.request("post", `/loyalty/${id}/enroll/${user_id}`, null, options);
4244
3149
  }
4245
3150
 
4246
3151
  /**
@@ -4254,15 +3159,8 @@ export class ServiceClient extends BaseServiceClient {
4254
3159
  options: {
4255
3160
  query: GetLoyaltyPointsQuery;
4256
3161
  } & RequestOptions
4257
- ): ResponsePromise<GetLoyaltyPointsResponse> {
4258
- return this.request(
4259
- "loyalty",
4260
- "get_loyalty_points",
4261
- "get",
4262
- `/loyalty/${id}/points`,
4263
- null,
4264
- options
4265
- );
3162
+ ): Promise<GetLoyaltyPointsResponse> {
3163
+ return this.request("get", `/loyalty/${id}/points`, null, options);
4266
3164
  }
4267
3165
 
4268
3166
  /**
@@ -4276,15 +3174,8 @@ export class ServiceClient extends BaseServiceClient {
4276
3174
  id: string,
4277
3175
  user_id: string,
4278
3176
  options?: RequestOptions
4279
- ): ResponsePromise<GetLoyaltyOffersResponse> {
4280
- return this.request(
4281
- "loyalty",
4282
- "get_loyalty_offers",
4283
- "get",
4284
- `/loyalty/${id}/offers/${user_id}`,
4285
- null,
4286
- options
4287
- );
3177
+ ): Promise<GetLoyaltyOffersResponse> {
3178
+ return this.request("get", `/loyalty/${id}/offers/${user_id}`, null, options);
4288
3179
  }
4289
3180
 
4290
3181
  /**
@@ -4298,15 +3189,8 @@ export class ServiceClient extends BaseServiceClient {
4298
3189
  id: string,
4299
3190
  user_id: string,
4300
3191
  options?: RequestOptions
4301
- ): ResponsePromise<GetLoyaltyEnrollmentstatusResponse> {
4302
- return this.request(
4303
- "loyalty",
4304
- "get_loyalty_enrollmentstatus",
4305
- "get",
4306
- `/loyalty/${id}/enrollmentstatus/${user_id}`,
4307
- null,
4308
- options
4309
- );
3192
+ ): Promise<GetLoyaltyEnrollmentstatusResponse> {
3193
+ return this.request("get", `/loyalty/${id}/enrollmentstatus/${user_id}`, null, options);
4310
3194
  }
4311
3195
 
4312
3196
  /**
@@ -4320,15 +3204,8 @@ export class ServiceClient extends BaseServiceClient {
4320
3204
  id: string,
4321
3205
  user_id: string,
4322
3206
  options?: RequestOptions
4323
- ): ResponsePromise<GetLoyaltyBalanceResponse> {
4324
- return this.request(
4325
- "loyalty",
4326
- "get_loyalty_balance",
4327
- "get",
4328
- `/loyalty/${id}/balance/${user_id}`,
4329
- null,
4330
- options
4331
- );
3207
+ ): Promise<GetLoyaltyBalanceResponse> {
3208
+ return this.request("get", `/loyalty/${id}/balance/${user_id}`, null, options);
4332
3209
  }
4333
3210
 
4334
3211
  /**
@@ -4344,15 +3221,8 @@ export class ServiceClient extends BaseServiceClient {
4344
3221
  options?: {
4345
3222
  query?: GetLoyaltyOpportunitiesQuery;
4346
3223
  } & RequestOptions
4347
- ): ResponsePromise<GetLoyaltyOpportunitiesResponse> {
4348
- return this.request(
4349
- "loyalty",
4350
- "get_loyalty_opportunities",
4351
- "get",
4352
- `/loyalty/${id}/opportunities/${user_id}`,
4353
- null,
4354
- options
4355
- );
3224
+ ): Promise<GetLoyaltyOpportunitiesResponse> {
3225
+ return this.request("get", `/loyalty/${id}/opportunities/${user_id}`, null, options);
4356
3226
  }
4357
3227
 
4358
3228
  /**
@@ -4368,15 +3238,8 @@ export class ServiceClient extends BaseServiceClient {
4368
3238
  options: {
4369
3239
  query: PostLoyaltyOpportunitiesQuery;
4370
3240
  } & RequestOptions
4371
- ): ResponsePromise<PostLoyaltyOpportunitiesResponse> {
4372
- return this.request(
4373
- "loyalty",
4374
- "post_loyalty_opportunities",
4375
- "post",
4376
- `/loyalty/${id}/opportunities/${user_id}`,
4377
- null,
4378
- options
4379
- );
3241
+ ): Promise<PostLoyaltyOpportunitiesResponse> {
3242
+ return this.request("post", `/loyalty/${id}/opportunities/${user_id}`, null, options);
4380
3243
  }
4381
3244
 
4382
3245
  /**
@@ -4390,15 +3253,8 @@ export class ServiceClient extends BaseServiceClient {
4390
3253
  id: string,
4391
3254
  user_id: string,
4392
3255
  options?: RequestOptions
4393
- ): ResponsePromise<GetLoyaltyRewardsResponse> {
4394
- return this.request(
4395
- "loyalty",
4396
- "get_loyalty_rewards",
4397
- "get",
4398
- `/loyalty/${id}/rewards/${user_id}`,
4399
- null,
4400
- options
4401
- );
3256
+ ): Promise<GetLoyaltyRewardsResponse> {
3257
+ return this.request("get", `/loyalty/${id}/rewards/${user_id}`, null, options);
4402
3258
  }
4403
3259
 
4404
3260
  /**
@@ -4412,15 +3268,8 @@ export class ServiceClient extends BaseServiceClient {
4412
3268
  id: string,
4413
3269
  user_id: string,
4414
3270
  options?: RequestOptions
4415
- ): ResponsePromise<GetLoyaltyCouponsResponse> {
4416
- return this.request(
4417
- "loyalty",
4418
- "get_loyalty_coupons",
4419
- "get",
4420
- `/loyalty/${id}/coupons/${user_id}`,
4421
- null,
4422
- options
4423
- );
3271
+ ): Promise<GetLoyaltyCouponsResponse> {
3272
+ return this.request("get", `/loyalty/${id}/coupons/${user_id}`, null, options);
4424
3273
  }
4425
3274
 
4426
3275
  /**
@@ -4436,15 +3285,8 @@ export class ServiceClient extends BaseServiceClient {
4436
3285
  options: {
4437
3286
  query: GetLoyaltyOrderpointsQuery;
4438
3287
  } & RequestOptions
4439
- ): ResponsePromise<GetLoyaltyOrderpointsResponse> {
4440
- return this.request(
4441
- "loyalty",
4442
- "get_loyalty_orderpoints",
4443
- "get",
4444
- `/loyalty/${id}/orderpoints/${user_id}`,
4445
- null,
4446
- options
4447
- );
3288
+ ): Promise<GetLoyaltyOrderpointsResponse> {
3289
+ return this.request("get", `/loyalty/${id}/orderpoints/${user_id}`, null, options);
4448
3290
  }
4449
3291
 
4450
3292
  /**
@@ -4460,15 +3302,8 @@ export class ServiceClient extends BaseServiceClient {
4460
3302
  user_id: string,
4461
3303
  body: PostLoyaltyOrderpointsBody,
4462
3304
  options?: RequestOptions
4463
- ): ResponsePromise<PostLoyaltyOrderpointsResponse> {
4464
- return this.request(
4465
- "loyalty",
4466
- "post_loyalty_orderpoints",
4467
- "post",
4468
- `/loyalty/${id}/orderpoints/${user_id}`,
4469
- body,
4470
- options
4471
- );
3305
+ ): Promise<PostLoyaltyOrderpointsResponse> {
3306
+ return this.request("post", `/loyalty/${id}/orderpoints/${user_id}`, body, options);
4472
3307
  }
4473
3308
 
4474
3309
  /**
@@ -4486,15 +3321,8 @@ export class ServiceClient extends BaseServiceClient {
4486
3321
  options?: {
4487
3322
  query?: PostLoyaltyPurchaseQuery;
4488
3323
  } & RequestOptions
4489
- ): ResponsePromise<PostLoyaltyPurchaseResponse> {
4490
- return this.request(
4491
- "loyalty",
4492
- "post_loyalty_purchase",
4493
- "post",
4494
- `/loyalty/${id}/purchase/${user_id}`,
4495
- body,
4496
- options
4497
- );
3324
+ ): Promise<PostLoyaltyPurchaseResponse> {
3325
+ return this.request("post", `/loyalty/${id}/purchase/${user_id}`, body, options);
4498
3326
  }
4499
3327
 
4500
3328
  /**
@@ -4512,15 +3340,8 @@ export class ServiceClient extends BaseServiceClient {
4512
3340
  options?: {
4513
3341
  query?: PostLoyaltyBuyrewardQuery;
4514
3342
  } & RequestOptions
4515
- ): ResponsePromise<PostLoyaltyBuyrewardResponse> {
4516
- return this.request(
4517
- "loyalty",
4518
- "post_loyalty_buyreward",
4519
- "post",
4520
- `/loyalty/${id}/buyreward/${user_id}`,
4521
- body,
4522
- options
4523
- );
3343
+ ): Promise<PostLoyaltyBuyrewardResponse> {
3344
+ return this.request("post", `/loyalty/${id}/buyreward/${user_id}`, body, options);
4524
3345
  }
4525
3346
 
4526
3347
  /**
@@ -4536,15 +3357,8 @@ export class ServiceClient extends BaseServiceClient {
4536
3357
  options?: {
4537
3358
  query?: GetLoyaltyHistoryQuery;
4538
3359
  } & RequestOptions
4539
- ): ResponsePromise<GetLoyaltyHistoryResponse> {
4540
- return this.request(
4541
- "loyalty",
4542
- "get_loyalty_history",
4543
- "get",
4544
- `/loyalty/${id}/history/${user_id}`,
4545
- null,
4546
- options
4547
- );
3360
+ ): Promise<GetLoyaltyHistoryResponse> {
3361
+ return this.request("get", `/loyalty/${id}/history/${user_id}`, null, options);
4548
3362
  }
4549
3363
 
4550
3364
  /**
@@ -4560,15 +3374,8 @@ export class ServiceClient extends BaseServiceClient {
4560
3374
  user_id: string,
4561
3375
  coupon_id: string,
4562
3376
  options?: RequestOptions
4563
- ): ResponsePromise<GetLoyaltyCouponResponse> {
4564
- return this.request(
4565
- "loyalty",
4566
- "get_loyalty_coupon",
4567
- "get",
4568
- `/loyalty/${id}/coupon/${user_id}/${coupon_id}`,
4569
- null,
4570
- options
4571
- );
3377
+ ): Promise<GetLoyaltyCouponResponse> {
3378
+ return this.request("get", `/loyalty/${id}/coupon/${user_id}/${coupon_id}`, null, options);
4572
3379
  }
4573
3380
 
4574
3381
  /**
@@ -4586,15 +3393,8 @@ export class ServiceClient extends BaseServiceClient {
4586
3393
  coupon_id: string,
4587
3394
  body: PatchLoyaltyCouponBody,
4588
3395
  options?: RequestOptions
4589
- ): ResponsePromise<PatchLoyaltyCouponResponse> {
4590
- return this.request(
4591
- "loyalty",
4592
- "patch_loyalty_coupon",
4593
- "patch",
4594
- `/loyalty/${id}/coupon/${user_id}/${coupon_id}`,
4595
- body,
4596
- options
4597
- );
3396
+ ): Promise<PatchLoyaltyCouponResponse> {
3397
+ return this.request("patch", `/loyalty/${id}/coupon/${user_id}/${coupon_id}`, body, options);
4598
3398
  }
4599
3399
 
4600
3400
  /**
@@ -4608,15 +3408,8 @@ export class ServiceClient extends BaseServiceClient {
4608
3408
  options: {
4609
3409
  query: GetLoyaltySearchQuery;
4610
3410
  } & RequestOptions
4611
- ): ResponsePromise<GetLoyaltySearchResponse> {
4612
- return this.request(
4613
- "loyalty",
4614
- "get_loyalty_search",
4615
- "get",
4616
- `/loyalty/${id}/search`,
4617
- null,
4618
- options
4619
- );
3411
+ ): Promise<GetLoyaltySearchResponse> {
3412
+ return this.request("get", `/loyalty/${id}/search`, null, options);
4620
3413
  }
4621
3414
 
4622
3415
  /**
@@ -4630,15 +3423,8 @@ export class ServiceClient extends BaseServiceClient {
4630
3423
  options: {
4631
3424
  query: GetLoyaltyUsersQuery;
4632
3425
  } & RequestOptions
4633
- ): ResponsePromise<GetLoyaltyUsersResponse> {
4634
- return this.request(
4635
- "loyalty",
4636
- "get_loyalty_users",
4637
- "get",
4638
- `/loyalty/${id}/users`,
4639
- null,
4640
- options
4641
- );
3426
+ ): Promise<GetLoyaltyUsersResponse> {
3427
+ return this.request("get", `/loyalty/${id}/users`, null, options);
4642
3428
  }
4643
3429
 
4644
3430
  /**
@@ -4652,15 +3438,8 @@ export class ServiceClient extends BaseServiceClient {
4652
3438
  options: {
4653
3439
  query: GetLoyaltyEventsQuery;
4654
3440
  } & RequestOptions
4655
- ): ResponsePromise<GetLoyaltyEventsResponse> {
4656
- return this.request(
4657
- "loyalty",
4658
- "get_loyalty_events",
4659
- "get",
4660
- `/loyalty/${id}/events`,
4661
- null,
4662
- options
4663
- );
3441
+ ): Promise<GetLoyaltyEventsResponse> {
3442
+ return this.request("get", `/loyalty/${id}/events`, null, options);
4664
3443
  }
4665
3444
 
4666
3445
  /**
@@ -4669,8 +3448,8 @@ export class ServiceClient extends BaseServiceClient {
4669
3448
  * @param id - TODO: add parameter to swagger.json
4670
3449
  * @param options - additional request options
4671
3450
  */
4672
- get_brand(id: string, options?: RequestOptions): ResponsePromise<GetBrandResponse> {
4673
- return this.request("brand", "get_brand", "get", `/brand/${id}`, null, options);
3451
+ get_brand(id: string, options?: RequestOptions): Promise<GetBrandResponse> {
3452
+ return this.request("get", `/brand/${id}`, null, options);
4674
3453
  }
4675
3454
 
4676
3455
  /**
@@ -4678,8 +3457,8 @@ export class ServiceClient extends BaseServiceClient {
4678
3457
  *
4679
3458
  * @param options - additional request options
4680
3459
  */
4681
- get_brands(options?: RequestOptions): ResponsePromise<GetBrandsResponse> {
4682
- return this.request("brand", "get_brands", "get", `/brand`, null, options);
3460
+ get_brands(options?: RequestOptions): Promise<GetBrandsResponse> {
3461
+ return this.request("get", `/brand`, null, options);
4683
3462
  }
4684
3463
 
4685
3464
  /**
@@ -4688,8 +3467,8 @@ export class ServiceClient extends BaseServiceClient {
4688
3467
  * @param id - brand
4689
3468
  * @param options - additional request options
4690
3469
  */
4691
- get_calendar(id: string, options?: RequestOptions): ResponsePromise<GetCalendarResponse> {
4692
- return this.request("calendar", "get_calendar", "get", `/calendar/${id}`, null, options);
3470
+ get_calendar(id: string, options?: RequestOptions): Promise<GetCalendarResponse> {
3471
+ return this.request("get", `/calendar/${id}`, null, options);
4693
3472
  }
4694
3473
 
4695
3474
  /**
@@ -4703,8 +3482,8 @@ export class ServiceClient extends BaseServiceClient {
4703
3482
  id: string,
4704
3483
  body: PutCalendarBody,
4705
3484
  options?: RequestOptions
4706
- ): ResponsePromise<PutCalendarResponse> {
4707
- return this.request("calendar", "put_calendar", "put", `/calendar/${id}`, body, options);
3485
+ ): Promise<PutCalendarResponse> {
3486
+ return this.request("put", `/calendar/${id}`, body, options);
4708
3487
  }
4709
3488
 
4710
3489
  /**
@@ -4718,15 +3497,8 @@ export class ServiceClient extends BaseServiceClient {
4718
3497
  options?: {
4719
3498
  query?: GetCalendarCdlQuery;
4720
3499
  } & RequestOptions
4721
- ): ResponsePromise<GetCalendarCdlResponse> {
4722
- return this.request(
4723
- "calendar",
4724
- "get_calendar_cdl",
4725
- "get",
4726
- `/calendar/${id}/cdl`,
4727
- null,
4728
- options
4729
- );
3500
+ ): Promise<GetCalendarCdlResponse> {
3501
+ return this.request("get", `/calendar/${id}/cdl`, null, options);
4730
3502
  }
4731
3503
 
4732
3504
  /**
@@ -4734,15 +3506,8 @@ export class ServiceClient extends BaseServiceClient {
4734
3506
  *
4735
3507
  * @param options - additional request options
4736
3508
  */
4737
- get_calendar_swagger(options?: RequestOptions): ResponsePromise<GetCalendarSwaggerResponse> {
4738
- return this.request(
4739
- "calendar",
4740
- "get_calendar_swagger",
4741
- "get",
4742
- `/calendar/swagger.json`,
4743
- null,
4744
- options
4745
- );
3509
+ get_calendar_swagger(options?: RequestOptions): Promise<GetCalendarSwaggerResponse> {
3510
+ return this.request("get", `/calendar/swagger.json`, null, options);
4746
3511
  }
4747
3512
 
4748
3513
  /**
@@ -4751,18 +3516,8 @@ export class ServiceClient extends BaseServiceClient {
4751
3516
  * @param id - brand
4752
3517
  * @param options - additional request options
4753
3518
  */
4754
- post_calendar_sync(
4755
- id: string,
4756
- options?: RequestOptions
4757
- ): ResponsePromise<PostCalendarSyncResponse> {
4758
- return this.request(
4759
- "calendar",
4760
- "post_calendar_sync",
4761
- "post",
4762
- `/calendar/${id}/sync`,
4763
- null,
4764
- options
4765
- );
3519
+ post_calendar_sync(id: string, options?: RequestOptions): Promise<PostCalendarSyncResponse> {
3520
+ return this.request("post", `/calendar/${id}/sync`, null, options);
4766
3521
  }
4767
3522
 
4768
3523
  /**
@@ -4774,15 +3529,8 @@ export class ServiceClient extends BaseServiceClient {
4774
3529
  post_delivery_order(
4775
3530
  body: PostDeliveryOrderBody,
4776
3531
  options?: RequestOptions
4777
- ): ResponsePromise<PostDeliveryOrderResponse> {
4778
- return this.request(
4779
- "delivery",
4780
- "post_delivery_order",
4781
- "post",
4782
- `/delivery/order`,
4783
- body,
4784
- options
4785
- );
3532
+ ): Promise<PostDeliveryOrderResponse> {
3533
+ return this.request("post", `/delivery/order`, body, options);
4786
3534
  }
4787
3535
 
4788
3536
  /**
@@ -4794,15 +3542,8 @@ export class ServiceClient extends BaseServiceClient {
4794
3542
  patch_delivery_order(
4795
3543
  order_id: string,
4796
3544
  options?: RequestOptions
4797
- ): ResponsePromise<PatchDeliveryOrderResponse> {
4798
- return this.request(
4799
- "delivery",
4800
- "patch_delivery_order",
4801
- "patch",
4802
- `/delivery/order/${order_id}`,
4803
- null,
4804
- options
4805
- );
3545
+ ): Promise<PatchDeliveryOrderResponse> {
3546
+ return this.request("patch", `/delivery/order/${order_id}`, null, options);
4806
3547
  }
4807
3548
 
4808
3549
  /**
@@ -4814,15 +3555,8 @@ export class ServiceClient extends BaseServiceClient {
4814
3555
  get_delivery_order(
4815
3556
  order_id: string,
4816
3557
  options?: RequestOptions
4817
- ): ResponsePromise<GetDeliveryOrderResponse> {
4818
- return this.request(
4819
- "delivery",
4820
- "get_delivery_order",
4821
- "get",
4822
- `/delivery/order/${order_id}`,
4823
- null,
4824
- options
4825
- );
3558
+ ): Promise<GetDeliveryOrderResponse> {
3559
+ return this.request("get", `/delivery/order/${order_id}`, null, options);
4826
3560
  }
4827
3561
 
4828
3562
  /**
@@ -4831,11 +3565,8 @@ export class ServiceClient extends BaseServiceClient {
4831
3565
  * @param body
4832
3566
  * @param options - additional request options
4833
3567
  */
4834
- post_schedule(
4835
- body: PostScheduleBody,
4836
- options?: RequestOptions
4837
- ): ResponsePromise<PostScheduleResponse> {
4838
- return this.request("schedule", "post_schedule", "post", `/schedule`, body, options);
3568
+ post_schedule(body: PostScheduleBody, options?: RequestOptions): Promise<PostScheduleResponse> {
3569
+ return this.request("post", `/schedule`, body, options);
4839
3570
  }
4840
3571
 
4841
3572
  /**
@@ -4847,8 +3578,8 @@ export class ServiceClient extends BaseServiceClient {
4847
3578
  options: {
4848
3579
  query: GetSchedulesQuery;
4849
3580
  } & RequestOptions
4850
- ): ResponsePromise<GetSchedulesResponse> {
4851
- return this.request("schedule", "get_schedules", "get", `/schedule`, null, options);
3581
+ ): Promise<GetSchedulesResponse> {
3582
+ return this.request("get", `/schedule`, null, options);
4852
3583
  }
4853
3584
 
4854
3585
  /**
@@ -4857,8 +3588,8 @@ export class ServiceClient extends BaseServiceClient {
4857
3588
  * @param id - schedule id
4858
3589
  * @param options - additional request options
4859
3590
  */
4860
- get_schedule(id: string, options?: RequestOptions): ResponsePromise<GetScheduleResponse> {
4861
- return this.request("schedule", "get_schedule", "get", `/schedule/${id}`, null, options);
3591
+ get_schedule(id: string, options?: RequestOptions): Promise<GetScheduleResponse> {
3592
+ return this.request("get", `/schedule/${id}`, null, options);
4862
3593
  }
4863
3594
 
4864
3595
  /**
@@ -4872,8 +3603,8 @@ export class ServiceClient extends BaseServiceClient {
4872
3603
  id: string,
4873
3604
  body: PutScheduleBody,
4874
3605
  options?: RequestOptions
4875
- ): ResponsePromise<PutScheduleResponse> {
4876
- return this.request("schedule", "put_schedule", "put", `/schedule/${id}`, body, options);
3606
+ ): Promise<PutScheduleResponse> {
3607
+ return this.request("put", `/schedule/${id}`, body, options);
4877
3608
  }
4878
3609
 
4879
3610
  /**
@@ -4882,8 +3613,8 @@ export class ServiceClient extends BaseServiceClient {
4882
3613
  * @param id - Id of a schedule
4883
3614
  * @param options - additional request options
4884
3615
  */
4885
- delete_schedule(id: string, options?: RequestOptions): ResponsePromise<DeleteScheduleResponse> {
4886
- return this.request("schedule", "delete_schedule", "delete", `/schedule/${id}`, null, options);
3616
+ delete_schedule(id: string, options?: RequestOptions): Promise<DeleteScheduleResponse> {
3617
+ return this.request("delete", `/schedule/${id}`, null, options);
4887
3618
  }
4888
3619
 
4889
3620
  /**
@@ -4892,8 +3623,8 @@ export class ServiceClient extends BaseServiceClient {
4892
3623
  * @param body
4893
3624
  * @param options - additional request options
4894
3625
  */
4895
- post_vote(body: PostVoteBody, options?: RequestOptions): ResponsePromise<PostVoteResponse> {
4896
- return this.request("vote", "post_vote", "post", `/vote`, body, options);
3626
+ post_vote(body: PostVoteBody, options?: RequestOptions): Promise<PostVoteResponse> {
3627
+ return this.request("post", `/vote`, body, options);
4897
3628
  }
4898
3629
 
4899
3630
  /**
@@ -4907,8 +3638,8 @@ export class ServiceClient extends BaseServiceClient {
4907
3638
  options?: {
4908
3639
  query?: GetVoteIdfaQuery;
4909
3640
  } & RequestOptions
4910
- ): ResponsePromise<GetVoteIdfaResponse> {
4911
- return this.request("vote", "get_vote_idfa", "get", `/vote/idfa/${idfa}`, null, options);
3641
+ ): Promise<GetVoteIdfaResponse> {
3642
+ return this.request("get", `/vote/idfa/${idfa}`, null, options);
4912
3643
  }
4913
3644
 
4914
3645
  /**
@@ -4917,8 +3648,8 @@ export class ServiceClient extends BaseServiceClient {
4917
3648
  * @param body
4918
3649
  * @param options - additional request options
4919
3650
  */
4920
- post_file(body: PostFileBody, options?: RequestOptions): ResponsePromise<PostFileResponse> {
4921
- return this.request("file", "post_file", "post", `/file`, body, options);
3651
+ post_file(body: PostFileBody, options?: RequestOptions): Promise<PostFileResponse> {
3652
+ return this.request("post", `/file`, body, options);
4922
3653
  }
4923
3654
 
4924
3655
  /**
@@ -4927,11 +3658,8 @@ export class ServiceClient extends BaseServiceClient {
4927
3658
  * @param body - Message object that needs to be created
4928
3659
  * @param options - additional request options
4929
3660
  */
4930
- post_message(
4931
- body: PostMessageBody,
4932
- options?: RequestOptions
4933
- ): ResponsePromise<PostMessageResponse> {
4934
- return this.request("message", "post_message", "post", `/message`, body, options);
3661
+ post_message(body: PostMessageBody, options?: RequestOptions): Promise<PostMessageResponse> {
3662
+ return this.request("post", `/message`, body, options);
4935
3663
  }
4936
3664
 
4937
3665
  /**
@@ -4940,8 +3668,8 @@ export class ServiceClient extends BaseServiceClient {
4940
3668
  * @param id - Message CDL encoded id
4941
3669
  * @param options - additional request options
4942
3670
  */
4943
- get_message(id: string, options?: RequestOptions): ResponsePromise<GetMessageResponse> {
4944
- return this.request("message", "get_message", "get", `/message/${id}`, null, options);
3671
+ get_message(id: string, options?: RequestOptions): Promise<GetMessageResponse> {
3672
+ return this.request("get", `/message/${id}`, null, options);
4945
3673
  }
4946
3674
 
4947
3675
  /**
@@ -4955,451 +3683,7 @@ export class ServiceClient extends BaseServiceClient {
4955
3683
  options?: {
4956
3684
  query?: GetLoggerBrandStatusQuery;
4957
3685
  } & RequestOptions
4958
- ): ResponsePromise<GetLoggerBrandStatusResponse> {
4959
- return this.request(
4960
- "logger",
4961
- "get_logger_brand_status",
4962
- "get",
4963
- `/logger/${id}/brand/status`,
4964
- null,
4965
- options
4966
- );
4967
- }
4968
-
4969
- /**
4970
- * GET /menu/client/{client_id} - Get menu client
4971
- *
4972
- * @param client_id
4973
- * @param options - additional request options
4974
- */
4975
- get_menu_client(
4976
- client_id: string,
4977
- options?: RequestOptions
4978
- ): ResponsePromise<GetMenuClientResponse> {
4979
- return this.request(
4980
- "menu",
4981
- "get_menu_client",
4982
- "get",
4983
- `/menu/client/${client_id}`,
4984
- null,
4985
- options
4986
- );
4987
- }
4988
-
4989
- /**
4990
- * GET /menu - Get Menus or search for Menus
4991
- *
4992
- * @param options - additional request options
4993
- */
4994
- get_menus(
4995
- options: {
4996
- query: GetMenusQuery;
4997
- } & RequestOptions
4998
- ): ResponsePromise<GetMenusResponse> {
4999
- return this.request("menu", "get_menus", "get", `/menu`, null, options);
5000
- }
5001
-
5002
- /**
5003
- * POST /menu - Create a new Menu
5004
- *
5005
- * @param body
5006
- * @param options - additional request options
5007
- */
5008
- post_menu(body: PostMenuBody, options?: RequestOptions): ResponsePromise<PostMenuResponse> {
5009
- return this.request("menu", "post_menu", "post", `/menu`, body, options);
5010
- }
5011
-
5012
- /**
5013
- * HEAD /menu/{id} - Get an individual Menu
5014
- *
5015
- * @param id - menu
5016
- * @param options - additional request options
5017
- */
5018
- head_menu(
5019
- id: string,
5020
- options?: {
5021
- query?: HeadMenuQuery;
5022
- } & RequestOptions
5023
- ): ResponsePromise<HeadMenuResponse> {
5024
- return this.request("menu", "head_menu", "head", `/menu/${id}`, null, options);
5025
- }
5026
-
5027
- /**
5028
- * GET /menu/{id} - Get an individual Menu
5029
- *
5030
- * @param id - menu
5031
- * @param options - additional request options
5032
- */
5033
- get_menu(
5034
- id: string,
5035
- options?: {
5036
- query?: GetMenuQuery;
5037
- } & RequestOptions
5038
- ): ResponsePromise<GetMenuResponse> {
5039
- return this.request("menu", "get_menu", "get", `/menu/${id}`, null, options);
5040
- }
5041
-
5042
- /**
5043
- * PUT /menu/{id} - Override a complete Menu
5044
- *
5045
- * @param id - menu
5046
- * @param body
5047
- * @param options - additional request options
5048
- */
5049
- put_menu(
5050
- id: string,
5051
- body: PutMenuBody,
5052
- options?: {
5053
- query?: PutMenuQuery;
5054
- } & RequestOptions
5055
- ): ResponsePromise<PutMenuResponse> {
5056
- return this.request("menu", "put_menu", "put", `/menu/${id}`, body, options);
5057
- }
5058
-
5059
- /**
5060
- * DELETE /menu/{id} - Delete a Menu
5061
- *
5062
- * @param id - menu
5063
- * @param options - additional request options
5064
- */
5065
- delete_menu(
5066
- id: string,
5067
- options?: {
5068
- query?: DeleteMenuQuery;
5069
- } & RequestOptions
5070
- ): ResponsePromise<DeleteMenuResponse> {
5071
- return this.request("menu", "delete_menu", "delete", `/menu/${id}`, null, options);
5072
- }
5073
-
5074
- /**
5075
- * PATCH /menu/{id} - Update a menu
5076
- *
5077
- * @param id - menu
5078
- * @param body
5079
- * @param options - additional request options
5080
- */
5081
- patch_menu(
5082
- id: string,
5083
- body: PatchMenuBody,
5084
- options?: {
5085
- query?: PatchMenuQuery;
5086
- } & RequestOptions
5087
- ): ResponsePromise<PatchMenuResponse> {
5088
- return this.request("menu", "patch_menu", "patch", `/menu/${id}`, body, options);
5089
- }
5090
-
5091
- /**
5092
- * POST /menu/import - Import an existing Menu
5093
- *
5094
- * @param body
5095
- * @param options - additional request options
5096
- */
5097
- post_menu_import_menu(
5098
- body: PostMenuImportMenuBody,
5099
- options?: RequestOptions
5100
- ): ResponsePromise<PostMenuImportMenuResponse> {
5101
- return this.request("menu", "post_menu_import_menu", "post", `/menu/import`, body, options);
5102
- }
5103
-
5104
- /**
5105
- * GET /menu/item/{id} - Get menu item
5106
- *
5107
- * @param id - Item ID
5108
- * @param options - additional request options
5109
- */
5110
- get_menu_item(id: string, options?: RequestOptions): ResponsePromise<GetMenuItemResponse> {
5111
- return this.request("menu", "get_menu_item", "get", `/menu/item/${id}`, null, options);
5112
- }
5113
-
5114
- /**
5115
- * DELETE /menu/item/{id} - Delete a menu item
5116
- *
5117
- * @param id - Item ID
5118
- * @param options - additional request options
5119
- */
5120
- delete_menu_item(id: string, options?: RequestOptions): ResponsePromise<DeleteMenuItemResponse> {
5121
- return this.request("menu", "delete_menu_item", "delete", `/menu/item/${id}`, null, options);
5122
- }
5123
-
5124
- /**
5125
- * POST /menu/item - Create a menu item
5126
- *
5127
- * @param body
5128
- * @param options - additional request options
5129
- */
5130
- post_menu_item(
5131
- body: PostMenuItemBody,
5132
- options?: RequestOptions
5133
- ): ResponsePromise<PostMenuItemResponse> {
5134
- return this.request("menu", "post_menu_item", "post", `/menu/item`, body, options);
5135
- }
5136
-
5137
- /**
5138
- * GET /menu/items - Search for menu items
5139
- *
5140
- * @param options - additional request options
5141
- */
5142
- get_menu_items(
5143
- options: {
5144
- query: GetMenuItemsQuery;
5145
- } & RequestOptions
5146
- ): ResponsePromise<GetMenuItemsResponse> {
5147
- return this.request("menu", "get_menu_items", "get", `/menu/items`, null, options);
5148
- }
5149
-
5150
- /**
5151
- * POST /menu/items/import/{location} - trigger import items
5152
- *
5153
- * @param location - Location ID
5154
- * @param options - additional request options
5155
- */
5156
- post_menu_import_items_canteen(
5157
- location: string,
5158
- options?: RequestOptions
5159
- ): ResponsePromise<PostMenuImportItemsCanteenResponse> {
5160
- return this.request(
5161
- "menu",
5162
- "post_menu_import_items_canteen",
5163
- "post",
5164
- `/menu/items/import/${location}`,
5165
- null,
5166
- options
5167
- );
5168
- }
5169
-
5170
- /**
5171
- * GET /menu/items/location/{location} - Get all menu items for a location
5172
- *
5173
- * @param location - Location ID
5174
- * @param options - additional request options
5175
- */
5176
- get_menu_location_items(
5177
- location: string,
5178
- options?: RequestOptions
5179
- ): ResponsePromise<GetMenuLocationItemsResponse> {
5180
- return this.request(
5181
- "menu",
5182
- "get_menu_location_items",
5183
- "get",
5184
- `/menu/items/location/${location}`,
5185
- null,
5186
- options
5187
- );
5188
- }
5189
-
5190
- /**
5191
- * GET /menu/item/random/location/{location} - Get a random item
5192
- *
5193
- * @param location - Location ID
5194
- * @param options - additional request options
5195
- */
5196
- get_menu_location_item_random(
5197
- location: string,
5198
- options?: {
5199
- query?: GetMenuLocationItemRandomQuery;
5200
- } & RequestOptions
5201
- ): ResponsePromise<GetMenuLocationItemRandomResponse> {
5202
- return this.request(
5203
- "menu",
5204
- "get_menu_location_item_random",
5205
- "get",
5206
- `/menu/item/random/location/${location}`,
5207
- null,
5208
- options
5209
- );
5210
- }
5211
-
5212
- /**
5213
- * GET /menu/items/random/location/{location} - Get a set of random items
5214
- *
5215
- * @param location - Location ID
5216
- * @param options - additional request options
5217
- */
5218
- get_menu_location_items_random(
5219
- location: string,
5220
- options?: {
5221
- query?: GetMenuLocationItemsRandomQuery;
5222
- } & RequestOptions
5223
- ): ResponsePromise<GetMenuLocationItemsRandomResponse> {
5224
- return this.request(
5225
- "menu",
5226
- "get_menu_location_items_random",
5227
- "get",
5228
- `/menu/items/random/location/${location}`,
5229
- null,
5230
- options
5231
- );
5232
- }
5233
-
5234
- /**
5235
- * GET /menu/sector/{sector} - Get menus that belong to sector
5236
- *
5237
- * @param sector - Sector ID
5238
- * @param options - additional request options
5239
- */
5240
- get_menu_sector_menus(
5241
- sector: string,
5242
- options?: RequestOptions
5243
- ): ResponsePromise<GetMenuSectorMenusResponse> {
5244
- return this.request(
5245
- "menu",
5246
- "get_menu_sector_menus",
5247
- "get",
5248
- `/menu/sector/${sector}`,
5249
- null,
5250
- options
5251
- );
5252
- }
5253
-
5254
- /**
5255
- * GET /menu/company/{company} - Get menus that belong to company
5256
- *
5257
- * @param company - Company ID
5258
- * @param options - additional request options
5259
- */
5260
- get_menu_company_menus(
5261
- company: string,
5262
- options?: RequestOptions
5263
- ): ResponsePromise<GetMenuCompanyMenusResponse> {
5264
- return this.request(
5265
- "menu",
5266
- "get_menu_company_menus",
5267
- "get",
5268
- `/menu/company/${company}`,
5269
- null,
5270
- options
5271
- );
5272
- }
5273
-
5274
- /**
5275
- * POST /menu/modifier/group - Create a new Menu Modifier Group
5276
- *
5277
- * @param body
5278
- * @param options - additional request options
5279
- */
5280
- post_menu_modifier_group(
5281
- body: PostMenuModifierGroupBody,
5282
- options?: RequestOptions
5283
- ): ResponsePromise<PostMenuModifierGroupResponse> {
5284
- return this.request(
5285
- "menu",
5286
- "post_menu_modifier_group",
5287
- "post",
5288
- `/menu/modifier/group`,
5289
- body,
5290
- options
5291
- );
5292
- }
5293
-
5294
- /**
5295
- * GET /menu/modifier/group/{id} - Get a Menu Modifier Group
5296
- *
5297
- * @param id - modifier_group
5298
- * @param options - additional request options
5299
- */
5300
- get_menu_modifier_group(
5301
- id: string,
5302
- options?: RequestOptions
5303
- ): ResponsePromise<GetMenuModifierGroupResponse> {
5304
- return this.request(
5305
- "menu",
5306
- "get_menu_modifier_group",
5307
- "get",
5308
- `/menu/modifier/group/${id}`,
5309
- null,
5310
- options
5311
- );
5312
- }
5313
-
5314
- /**
5315
- * PUT /menu/modifier/group/{id} - Update a Menu Modifier Group
5316
- *
5317
- * @param id - modifier_group
5318
- * @param body
5319
- * @param options - additional request options
5320
- */
5321
- put_menu_modifier_group(
5322
- id: string,
5323
- body: PutMenuModifierGroupBody,
5324
- options?: RequestOptions
5325
- ): ResponsePromise<PutMenuModifierGroupResponse> {
5326
- return this.request(
5327
- "menu",
5328
- "put_menu_modifier_group",
5329
- "put",
5330
- `/menu/modifier/group/${id}`,
5331
- body,
5332
- options
5333
- );
5334
- }
5335
-
5336
- /**
5337
- * DELETE /menu/modifier/group/{id} - Delete a Menu Modifier Group
5338
- *
5339
- * @param id - modifier_group
5340
- * @param options - additional request options
5341
- */
5342
- delete_menu_modifier_group(
5343
- id: string,
5344
- options?: RequestOptions
5345
- ): ResponsePromise<DeleteMenuModifierGroupResponse> {
5346
- return this.request(
5347
- "menu",
5348
- "delete_menu_modifier_group",
5349
- "delete",
5350
- `/menu/modifier/group/${id}`,
5351
- null,
5352
- options
5353
- );
5354
- }
5355
-
5356
- /**
5357
- * GET /menu/modifier/group/company/{company} - Get the modifier groups that belong to company
5358
- *
5359
- * @param company - Company ID
5360
- * @param options - additional request options
5361
- */
5362
- get_menu_company_modifier_groups(
5363
- company: string,
5364
- options?: RequestOptions
5365
- ): ResponsePromise<GetMenuCompanyModifierGroupsResponse> {
5366
- return this.request(
5367
- "menu",
5368
- "get_menu_company_modifier_groups",
5369
- "get",
5370
- `/menu/modifier/group/company/${company}`,
5371
- null,
5372
- options
5373
- );
5374
- }
5375
-
5376
- /**
5377
- * GET /menu/modifier/group/company/{company}/export - Export company modifier groups to zipped excel file.
5378
- *
5379
- * @param company - Company ID
5380
- * @param options - additional request options
5381
- */
5382
- get_menu_company_modifier_groups_export(
5383
- company: string,
5384
- options?: RequestOptions
5385
- ): ResponsePromise<GetMenuCompanyModifierGroupsExportResponse> {
5386
- return this.request(
5387
- "menu",
5388
- "get_menu_company_modifier_groups_export",
5389
- "get",
5390
- `/menu/modifier/group/company/${company}/export`,
5391
- null,
5392
- options
5393
- );
5394
- }
5395
-
5396
- /**
5397
- * GET /menu/{id}/export - Export menu set to zipped excel file.
5398
- *
5399
- * @param id - menu; TODO: cannot use compassdigital.id as path parameter
5400
- * @param options - additional request options
5401
- */
5402
- get_menu_export(id: string, options?: RequestOptions): ResponsePromise<GetMenuExportResponse> {
5403
- return this.request("menu", "get_menu_export", "get", `/menu/${id}/export`, null, options);
3686
+ ): Promise<GetLoggerBrandStatusResponse> {
3687
+ return this.request("get", `/logger/${id}/brand/status`, null, options);
5404
3688
  }
5405
3689
  }