@compassdigital/sdk.typescript 3.32.0 → 3.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,20 +1,5 @@
1
1
  "use strict";
2
2
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
19
4
  if (k2 === undefined) k2 = k;
20
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -31,13 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
31
16
  };
32
17
  Object.defineProperty(exports, "__esModule", { value: true });
33
18
  exports.ServiceClient = void 0;
34
- var base_1 = require("./base");
19
+ const base_1 = require("./base");
35
20
  __exportStar(require("./base"), exports);
36
- var ServiceClient = /** @class */ (function (_super) {
37
- __extends(ServiceClient, _super);
38
- function ServiceClient() {
39
- return _super !== null && _super.apply(this, arguments) || this;
40
- }
21
+ class ServiceClient extends base_1.BaseServiceClient {
41
22
  /**
42
23
  * POST /payment/{id}/transaction
43
24
  *
@@ -45,9 +26,9 @@ var ServiceClient = /** @class */ (function (_super) {
45
26
  * @param body
46
27
  * @param options - additional request options
47
28
  */
48
- ServiceClient.prototype.post_payment_transaction = function (id, body, options) {
49
- return this.request("payment", "post_payment_transaction", "post", "/payment/".concat(id, "/transaction"), body, options);
50
- };
29
+ post_payment_transaction(id, body, options) {
30
+ return this.request("payment", "post_payment_transaction", "post", `/payment/${id}/transaction`, body, options);
31
+ }
51
32
  /**
52
33
  * POST /payment/{id}/transaction/{transaction_id}/refund
53
34
  *
@@ -56,18 +37,18 @@ var ServiceClient = /** @class */ (function (_super) {
56
37
  * @param body
57
38
  * @param options - additional request options
58
39
  */
59
- ServiceClient.prototype.post_payment_transaction_refund = function (id, transaction_id, body, options) {
60
- return this.request("payment", "post_payment_transaction_refund", "post", "/payment/".concat(id, "/transaction/").concat(transaction_id, "/refund"), body, options);
61
- };
40
+ post_payment_transaction_refund(id, transaction_id, body, options) {
41
+ return this.request("payment", "post_payment_transaction_refund", "post", `/payment/${id}/transaction/${transaction_id}/refund`, body, options);
42
+ }
62
43
  /**
63
44
  * GET /payment/{id}/clienttoken
64
45
  *
65
46
  * @param id - TODO: add parameter to swagger.json
66
47
  * @param options - additional request options
67
48
  */
68
- ServiceClient.prototype.get_payment_clienttoken = function (id, options) {
69
- return this.request("payment", "get_payment_clienttoken", "get", "/payment/".concat(id, "/clienttoken"), null, options);
70
- };
49
+ get_payment_clienttoken(id, options) {
50
+ return this.request("payment", "get_payment_clienttoken", "get", `/payment/${id}/clienttoken`, null, options);
51
+ }
71
52
  /**
72
53
  * POST /payment/{id}/paymenttoken
73
54
  *
@@ -75,36 +56,36 @@ var ServiceClient = /** @class */ (function (_super) {
75
56
  * @param body
76
57
  * @param options - additional request options
77
58
  */
78
- ServiceClient.prototype.post_payment_paymenttoken = function (id, body, options) {
79
- return this.request("payment", "post_payment_paymenttoken", "post", "/payment/".concat(id, "/paymenttoken"), body, options);
80
- };
59
+ post_payment_paymenttoken(id, body, options) {
60
+ return this.request("payment", "post_payment_paymenttoken", "post", `/payment/${id}/paymenttoken`, body, options);
61
+ }
81
62
  /**
82
63
  * POST /payment/consumer
83
64
  *
84
65
  * @param body
85
66
  * @param options - additional request options
86
67
  */
87
- ServiceClient.prototype.post_payment_consumer = function (body, options) {
88
- return this.request("payment", "post_payment_consumer", "post", "/payment/consumer", body, options);
89
- };
68
+ post_payment_consumer(body, options) {
69
+ return this.request("payment", "post_payment_consumer", "post", `/payment/consumer`, body, options);
70
+ }
90
71
  /**
91
72
  * POST /payment/method
92
73
  *
93
74
  * @param body
94
75
  * @param options - additional request options
95
76
  */
96
- ServiceClient.prototype.post_payment_method = function (body, options) {
97
- return this.request("payment", "post_payment_method", "post", "/payment/method", body, options);
98
- };
77
+ post_payment_method(body, options) {
78
+ return this.request("payment", "post_payment_method", "post", `/payment/method`, body, options);
79
+ }
99
80
  /**
100
81
  * GET /payment/{id}/method - Get a users available payment methods
101
82
  *
102
83
  * @param id - TODO: add parameter to swagger.json
103
84
  * @param options - additional request options
104
85
  */
105
- ServiceClient.prototype.get_payment_method = function (id, options) {
106
- return this.request("payment", "get_payment_method", "get", "/payment/".concat(id, "/method"), null, options);
107
- };
86
+ get_payment_method(id, options) {
87
+ return this.request("payment", "get_payment_method", "get", `/payment/${id}/method`, null, options);
88
+ }
108
89
  /**
109
90
  * DELETE /payment/{id}/method/{method_id}
110
91
  *
@@ -113,77 +94,77 @@ var ServiceClient = /** @class */ (function (_super) {
113
94
  * @param body
114
95
  * @param options - additional request options
115
96
  */
116
- ServiceClient.prototype.delete_payment_method = function (id, method_id, body, options) {
117
- return this.request("payment", "delete_payment_method", "delete", "/payment/".concat(id, "/method/").concat(method_id), body, options);
118
- };
97
+ delete_payment_method(id, method_id, body, options) {
98
+ return this.request("payment", "delete_payment_method", "delete", `/payment/${id}/method/${method_id}`, body, options);
99
+ }
119
100
  /**
120
101
  * GET /payment/token
121
102
  *
122
103
  * @param options - additional request options
123
104
  */
124
- ServiceClient.prototype.get_payment_token = function (options) {
125
- return this.request("payment", "get_payment_token", "get", "/payment/token", null, options);
126
- };
105
+ get_payment_token(options) {
106
+ return this.request("payment", "get_payment_token", "get", `/payment/token`, null, options);
107
+ }
127
108
  /**
128
109
  * POST /payment/token
129
110
  *
130
111
  * @param body
131
112
  * @param options - additional request options
132
113
  */
133
- ServiceClient.prototype.post_payment_token = function (body, options) {
134
- return this.request("payment", "post_payment_token", "post", "/payment/token", body, options);
135
- };
114
+ post_payment_token(body, options) {
115
+ return this.request("payment", "post_payment_token", "post", `/payment/token`, body, options);
116
+ }
136
117
  /**
137
118
  * PUT /payment/token
138
119
  *
139
120
  * @param body
140
121
  * @param options - additional request options
141
122
  */
142
- ServiceClient.prototype.put_payment_token = function (body, options) {
143
- return this.request("payment", "put_payment_token", "put", "/payment/token", body, options);
144
- };
123
+ put_payment_token(body, options) {
124
+ return this.request("payment", "put_payment_token", "put", `/payment/token`, body, options);
125
+ }
145
126
  /**
146
127
  * DELETE /payment/token
147
128
  *
148
129
  * @param body
149
130
  * @param options - additional request options
150
131
  */
151
- ServiceClient.prototype.delete_payment_token = function (body, options) {
152
- return this.request("payment", "delete_payment_token", "delete", "/payment/token", body, options);
153
- };
132
+ delete_payment_token(body, options) {
133
+ return this.request("payment", "delete_payment_token", "delete", `/payment/token`, body, options);
134
+ }
154
135
  /**
155
136
  * GET /payment/methods
156
137
  *
157
138
  * @param options - additional request options
158
139
  */
159
- ServiceClient.prototype.get_payment_methods = function (options) {
160
- return this.request("payment", "get_payment_methods", "get", "/payment/methods", null, options);
161
- };
140
+ get_payment_methods(options) {
141
+ return this.request("payment", "get_payment_methods", "get", `/payment/methods`, null, options);
142
+ }
162
143
  /**
163
144
  * GET /payment/hpc
164
145
  *
165
146
  * @param options - additional request options
166
147
  */
167
- ServiceClient.prototype.get_payment_hpc = function (options) {
168
- return this.request("payment", "get_payment_hpc", "get", "/payment/hpc", null, options);
169
- };
148
+ get_payment_hpc(options) {
149
+ return this.request("payment", "get_payment_hpc", "get", `/payment/hpc`, null, options);
150
+ }
170
151
  /**
171
152
  * GET /payment/hcaptcha/verify
172
153
  *
173
154
  * @param options - additional request options
174
155
  */
175
- ServiceClient.prototype.get_payment_hcaptcha_verify = function (options) {
176
- return this.request("payment", "get_payment_hcaptcha_verify", "get", "/payment/hcaptcha/verify", null, options);
177
- };
156
+ get_payment_hcaptcha_verify(options) {
157
+ return this.request("payment", "get_payment_hcaptcha_verify", "get", `/payment/hcaptcha/verify`, null, options);
158
+ }
178
159
  /**
179
160
  * GET /payment/{id}/badgepay
180
161
  *
181
162
  * @param id - TODO: add parameter to swagger.json
182
163
  * @param options - additional request options
183
164
  */
184
- ServiceClient.prototype.get_payment_badgepay = function (id, options) {
185
- return this.request("payment", "get_payment_badgepay", "get", "/payment/".concat(id, "/badgepay"), null, options);
186
- };
165
+ get_payment_badgepay(id, options) {
166
+ return this.request("payment", "get_payment_badgepay", "get", `/payment/${id}/badgepay`, null, options);
167
+ }
187
168
  /**
188
169
  * POST /payment/{id}/badgepay
189
170
  *
@@ -191,36 +172,46 @@ var ServiceClient = /** @class */ (function (_super) {
191
172
  * @param body
192
173
  * @param options - additional request options
193
174
  */
194
- ServiceClient.prototype.post_payment_badgepay = function (id, body, options) {
195
- return this.request("payment", "post_payment_badgepay", "post", "/payment/".concat(id, "/badgepay"), body, options);
196
- };
175
+ post_payment_badgepay(id, body, options) {
176
+ return this.request("payment", "post_payment_badgepay", "post", `/payment/${id}/badgepay`, body, options);
177
+ }
178
+ /**
179
+ * DELETE /payment/{id}/badgepay
180
+ *
181
+ * @param id - TODO: add parameter to swagger.json
182
+ * @param body
183
+ * @param options - additional request options
184
+ */
185
+ delete_payment_badgepay(id, body, options) {
186
+ return this.request("payment", "delete_payment_badgepay", "delete", `/payment/${id}/badgepay`, body, options);
187
+ }
197
188
  /**
198
189
  * POST /order - Create an Order
199
190
  *
200
191
  * @param body - Order object that needs to be created
201
192
  * @param options - additional request options
202
193
  */
203
- ServiceClient.prototype.post_order = function (body, options) {
204
- return this.request("order", "post_order", "post", "/order", body, options);
205
- };
194
+ post_order(body, options) {
195
+ return this.request("order", "post_order", "post", `/order`, body, options);
196
+ }
206
197
  /**
207
198
  * GET /order/{id} - Get an individual order
208
199
  *
209
200
  * @param id - The order ID
210
201
  * @param options - additional request options
211
202
  */
212
- ServiceClient.prototype.get_order = function (id, options) {
213
- return this.request("order", "get_order", "get", "/order/".concat(id), null, options);
214
- };
203
+ get_order(id, options) {
204
+ return this.request("order", "get_order", "get", `/order/${id}`, null, options);
205
+ }
215
206
  /**
216
207
  * PUT /order/{id} - Update an individual order
217
208
  *
218
209
  * @param id - The order ID
219
210
  * @param options - additional request options
220
211
  */
221
- ServiceClient.prototype.put_order = function (id, options) {
222
- return this.request("order", "put_order", "put", "/order/".concat(id), null, options);
223
- };
212
+ put_order(id, options) {
213
+ return this.request("order", "put_order", "put", `/order/${id}`, null, options);
214
+ }
224
215
  /**
225
216
  * PATCH /order/{id} - Update an existing order
226
217
  *
@@ -228,9 +219,9 @@ var ServiceClient = /** @class */ (function (_super) {
228
219
  * @param body - Order properties to be updated
229
220
  * @param options - additional request options
230
221
  */
231
- ServiceClient.prototype.patch_order = function (id, body, options) {
232
- return this.request("order", "patch_order", "patch", "/order/".concat(id), body, options);
233
- };
222
+ patch_order(id, body, options) {
223
+ return this.request("order", "patch_order", "patch", `/order/${id}`, body, options);
224
+ }
234
225
  /**
235
226
  * POST /order/{id}/issue - Create an issue with an order
236
227
  *
@@ -238,9 +229,9 @@ var ServiceClient = /** @class */ (function (_super) {
238
229
  * @param body - Order issue payload. If reporting dispute please use type as 'DISPUTE'. In case of dispute 'item id' and 'reason' are mandatory params in body.
239
230
  * @param options - additional request options
240
231
  */
241
- ServiceClient.prototype.post_order_issue = function (id, body, options) {
242
- return this.request("order", "post_order_issue", "post", "/order/".concat(id, "/issue"), body, options);
243
- };
232
+ post_order_issue(id, body, options) {
233
+ return this.request("order", "post_order_issue", "post", `/order/${id}/issue`, body, options);
234
+ }
244
235
  /**
245
236
  * PATCH /order/{id}/refund - Issue a refund on an existing order
246
237
  *
@@ -248,18 +239,18 @@ var ServiceClient = /** @class */ (function (_super) {
248
239
  * @param body - Items with pricing and quanitity to be refunded
249
240
  * @param options - additional request options
250
241
  */
251
- ServiceClient.prototype.patch_order_refund = function (id, body, options) {
252
- return this.request("order", "patch_order_refund", "patch", "/order/".concat(id, "/refund"), body, options);
253
- };
242
+ patch_order_refund(id, body, options) {
243
+ return this.request("order", "patch_order_refund", "patch", `/order/${id}/refund`, body, options);
244
+ }
254
245
  /**
255
246
  * GET /order/customer/{id} - Get all orders for a Customer
256
247
  *
257
248
  * @param id - The user ID
258
249
  * @param options - additional request options
259
250
  */
260
- ServiceClient.prototype.get_order_customer_orders = function (id, options) {
261
- return this.request("order", "get_order_customer_orders", "get", "/order/customer/".concat(id), null, options);
262
- };
251
+ get_order_customer_orders(id, options) {
252
+ return this.request("order", "get_order_customer_orders", "get", `/order/customer/${id}`, null, options);
253
+ }
263
254
  /**
264
255
  * GET /order/customer/{id}/location/brand/{location_brand} - Get all orders for a Customer for a specific Location Brand
265
256
  *
@@ -267,97 +258,97 @@ var ServiceClient = /** @class */ (function (_super) {
267
258
  * @param location_brand - Brand id
268
259
  * @param options - additional request options
269
260
  */
270
- ServiceClient.prototype.get_order_customer_orders_brand = function (id, location_brand, options) {
271
- return this.request("order", "get_order_customer_orders_brand", "get", "/order/customer/".concat(id, "/location/brand/").concat(location_brand), null, options);
272
- };
261
+ get_order_customer_orders_brand(id, location_brand, options) {
262
+ return this.request("order", "get_order_customer_orders_brand", "get", `/order/customer/${id}/location/brand/${location_brand}`, null, options);
263
+ }
273
264
  /**
274
265
  * GET /order/location/brand/{id} - Get all orders for a location Brand
275
266
  *
276
267
  * @param id - The location brand ID
277
268
  * @param options - additional request options
278
269
  */
279
- ServiceClient.prototype.get_order_location_brand = function (id, options) {
280
- return this.request("order", "get_order_location_brand", "get", "/order/location/brand/".concat(id), null, options);
281
- };
270
+ get_order_location_brand(id, options) {
271
+ return this.request("order", "get_order_location_brand", "get", `/order/location/brand/${id}`, null, options);
272
+ }
282
273
  /**
283
274
  * GET /order/location/{id} - Get all orders for a location
284
275
  *
285
276
  * @param id - The location ID
286
277
  * @param options - additional request options
287
278
  */
288
- ServiceClient.prototype.get_order_location_orders = function (id, options) {
289
- return this.request("order", "get_order_location_orders", "get", "/order/location/".concat(id), null, options);
290
- };
279
+ get_order_location_orders(id, options) {
280
+ return this.request("order", "get_order_location_orders", "get", `/order/location/${id}`, null, options);
281
+ }
291
282
  /**
292
283
  * GET /order/location/group/{id} - Get all orders for a location group
293
284
  *
294
285
  * @param id - Get orders by their associated group
295
286
  * @param options - additional request options
296
287
  */
297
- ServiceClient.prototype.get_order_group_orders = function (id, options) {
298
- return this.request("order", "get_order_group_orders", "get", "/order/location/group/".concat(id), null, options);
299
- };
288
+ get_order_group_orders(id, options) {
289
+ return this.request("order", "get_order_group_orders", "get", `/order/location/group/${id}`, null, options);
290
+ }
300
291
  /**
301
292
  * GET /order/user/{id} - Get all delivery orders for a User related to the order in the details (Runner)
302
293
  *
303
294
  * @param id - Get orders by their associated group
304
295
  * @param options - additional request options
305
296
  */
306
- ServiceClient.prototype.get_order_user_orders = function (id, options) {
307
- return this.request("order", "get_order_user_orders", "get", "/order/user/".concat(id), null, options);
308
- };
297
+ get_order_user_orders(id, options) {
298
+ return this.request("order", "get_order_user_orders", "get", `/order/user/${id}`, null, options);
299
+ }
309
300
  /**
310
301
  * PATCH /order/{id}/checkin - Accept an order by checking in
311
302
  *
312
303
  * @param id - The order ID
313
304
  * @param options - additional request options
314
305
  */
315
- ServiceClient.prototype.patch_order_checkin = function (id, options) {
316
- return this.request("order", "patch_order_checkin", "patch", "/order/".concat(id, "/checkin"), null, options);
317
- };
306
+ patch_order_checkin(id, options) {
307
+ return this.request("order", "patch_order_checkin", "patch", `/order/${id}/checkin`, null, options);
308
+ }
318
309
  /**
319
310
  * POST /order/apex/sns - Update apex integrated order
320
311
  *
321
312
  * @param body - SNS message
322
313
  * @param options - additional request options
323
314
  */
324
- ServiceClient.prototype.post_order_apex_sns = function (body, options) {
325
- return this.request("order", "post_order_apex_sns", "post", "/order/apex/sns", body, options);
326
- };
315
+ post_order_apex_sns(body, options) {
316
+ return this.request("order", "post_order_apex_sns", "post", `/order/apex/sns`, body, options);
317
+ }
327
318
  /**
328
319
  * POST /location - Create a new location
329
320
  *
330
321
  * @param body
331
322
  * @param options - additional request options
332
323
  */
333
- ServiceClient.prototype.post_location = function (body, options) {
334
- return this.request("location", "post_location", "post", "/location", body, options);
335
- };
324
+ post_location(body, options) {
325
+ return this.request("location", "post_location", "post", `/location`, body, options);
326
+ }
336
327
  /**
337
328
  * GET /location - Get all location
338
329
  *
339
330
  * @param options - additional request options
340
331
  */
341
- ServiceClient.prototype.get_locations = function (options) {
342
- return this.request("location", "get_locations", "get", "/location", null, options);
343
- };
332
+ get_locations(options) {
333
+ return this.request("location", "get_locations", "get", `/location`, null, options);
334
+ }
344
335
  /**
345
336
  * GET /location/search - Gets Location within a radius of the provided point
346
337
  *
347
338
  * @param options - additional request options
348
339
  */
349
- ServiceClient.prototype.get_location_search = function (options) {
350
- return this.request("location", "get_location_search", "get", "/location/search", null, options);
351
- };
340
+ get_location_search(options) {
341
+ return this.request("location", "get_location_search", "get", `/location/search`, null, options);
342
+ }
352
343
  /**
353
344
  * GET /location/{id} - Get an individual Location
354
345
  *
355
346
  * @param id - location id
356
347
  * @param options - additional request options
357
348
  */
358
- ServiceClient.prototype.get_location = function (id, options) {
359
- return this.request("location", "get_location", "get", "/location/".concat(id), null, options);
360
- };
349
+ get_location(id, options) {
350
+ return this.request("location", "get_location", "get", `/location/${id}`, null, options);
351
+ }
361
352
  /**
362
353
  * PUT /location/{id} - Override a complete Location
363
354
  *
@@ -365,9 +356,9 @@ var ServiceClient = /** @class */ (function (_super) {
365
356
  * @param body
366
357
  * @param options - additional request options
367
358
  */
368
- ServiceClient.prototype.put_location = function (id, body, options) {
369
- return this.request("location", "put_location", "put", "/location/".concat(id), body, options);
370
- };
359
+ put_location(id, body, options) {
360
+ return this.request("location", "put_location", "put", `/location/${id}`, body, options);
361
+ }
371
362
  /**
372
363
  * DELETE /location/{id} - Delete brands from a Location
373
364
  *
@@ -375,9 +366,9 @@ var ServiceClient = /** @class */ (function (_super) {
375
366
  * @param body
376
367
  * @param options - additional request options
377
368
  */
378
- ServiceClient.prototype.delete_location = function (id, body, options) {
379
- return this.request("location", "delete_location", "delete", "/location/".concat(id), body, options);
380
- };
369
+ delete_location(id, body, options) {
370
+ return this.request("location", "delete_location", "delete", `/location/${id}`, body, options);
371
+ }
381
372
  /**
382
373
  * PATCH /location/{id} - Update a Location
383
374
  *
@@ -385,18 +376,18 @@ var ServiceClient = /** @class */ (function (_super) {
385
376
  * @param body
386
377
  * @param options - additional request options
387
378
  */
388
- ServiceClient.prototype.patch_location = function (id, body, options) {
389
- return this.request("location", "patch_location", "patch", "/location/".concat(id), body, options);
390
- };
379
+ patch_location(id, body, options) {
380
+ return this.request("location", "patch_location", "patch", `/location/${id}`, body, options);
381
+ }
391
382
  /**
392
383
  * GET /location/pos/{id} - Get information about a POS
393
384
  *
394
385
  * @param id - POS ID
395
386
  * @param options - additional request options
396
387
  */
397
- ServiceClient.prototype.get_location_pos = function (id, options) {
398
- return this.request("location", "get_location_pos", "get", "/location/pos/".concat(id), null, options);
399
- };
388
+ get_location_pos(id, options) {
389
+ return this.request("location", "get_location_pos", "get", `/location/pos/${id}`, null, options);
390
+ }
400
391
  /**
401
392
  * PUT /location/pos/{id} - Set information about a POS
402
393
  *
@@ -404,35 +395,35 @@ var ServiceClient = /** @class */ (function (_super) {
404
395
  * @param body
405
396
  * @param options - additional request options
406
397
  */
407
- ServiceClient.prototype.put_location_pos = function (id, body, options) {
408
- return this.request("location", "put_location_pos", "put", "/location/pos/".concat(id), body, options);
409
- };
398
+ put_location_pos(id, body, options) {
399
+ return this.request("location", "put_location_pos", "put", `/location/pos/${id}`, body, options);
400
+ }
410
401
  /**
411
402
  * GET /location/multigroup - Get all the top level multigroups
412
403
  *
413
404
  * @param options - additional request options
414
405
  */
415
- ServiceClient.prototype.get_location_multigroups = function (options) {
416
- return this.request("location", "get_location_multigroups", "get", "/location/multigroup", null, options);
417
- };
406
+ get_location_multigroups(options) {
407
+ return this.request("location", "get_location_multigroups", "get", `/location/multigroup`, null, options);
408
+ }
418
409
  /**
419
410
  * POST /location/multigroup - Create a new multigroup
420
411
  *
421
412
  * @param body
422
413
  * @param options - additional request options
423
414
  */
424
- ServiceClient.prototype.post_location_multigroup = function (body, options) {
425
- return this.request("location", "post_location_multigroup", "post", "/location/multigroup", body, options);
426
- };
415
+ post_location_multigroup(body, options) {
416
+ return this.request("location", "post_location_multigroup", "post", `/location/multigroup`, body, options);
417
+ }
427
418
  /**
428
419
  * GET /location/multigroup/{id} - Get a multigroup
429
420
  *
430
421
  * @param id - multigroup id
431
422
  * @param options - additional request options
432
423
  */
433
- ServiceClient.prototype.get_location_multigroup = function (id, options) {
434
- return this.request("location", "get_location_multigroup", "get", "/location/multigroup/".concat(id), null, options);
435
- };
424
+ get_location_multigroup(id, options) {
425
+ return this.request("location", "get_location_multigroup", "get", `/location/multigroup/${id}`, null, options);
426
+ }
436
427
  /**
437
428
  * PUT /location/multigroup/{id} - Override a complete multigroup
438
429
  *
@@ -440,9 +431,9 @@ var ServiceClient = /** @class */ (function (_super) {
440
431
  * @param body
441
432
  * @param options - additional request options
442
433
  */
443
- ServiceClient.prototype.put_location_multigroup = function (id, body, options) {
444
- return this.request("location", "put_location_multigroup", "put", "/location/multigroup/".concat(id), body, options);
445
- };
434
+ put_location_multigroup(id, body, options) {
435
+ return this.request("location", "put_location_multigroup", "put", `/location/multigroup/${id}`, body, options);
436
+ }
446
437
  /**
447
438
  * DELETE /location/multigroup/{id} - Delete groups from a multigroup
448
439
  *
@@ -450,9 +441,9 @@ var ServiceClient = /** @class */ (function (_super) {
450
441
  * @param body
451
442
  * @param options - additional request options
452
443
  */
453
- ServiceClient.prototype.delete_location_multigroup = function (id, body, options) {
454
- return this.request("location", "delete_location_multigroup", "delete", "/location/multigroup/".concat(id), body, options);
455
- };
444
+ delete_location_multigroup(id, body, options) {
445
+ return this.request("location", "delete_location_multigroup", "delete", `/location/multigroup/${id}`, body, options);
446
+ }
456
447
  /**
457
448
  * PATCH /location/multigroup/{id} - Update a multigroup
458
449
  *
@@ -460,9 +451,9 @@ var ServiceClient = /** @class */ (function (_super) {
460
451
  * @param body
461
452
  * @param options - additional request options
462
453
  */
463
- ServiceClient.prototype.patch_location_multigroup = function (id, body, options) {
464
- return this.request("location", "patch_location_multigroup", "patch", "/location/multigroup/".concat(id), body, options);
465
- };
454
+ patch_location_multigroup(id, body, options) {
455
+ return this.request("location", "patch_location_multigroup", "patch", `/location/multigroup/${id}`, body, options);
456
+ }
466
457
  /**
467
458
  * GET /location/multigroup/{id}/user/{user_id} - Get all the groups in a multigroup specific to user permissions
468
459
  *
@@ -470,27 +461,27 @@ var ServiceClient = /** @class */ (function (_super) {
470
461
  * @param user_id - user
471
462
  * @param options - additional request options
472
463
  */
473
- ServiceClient.prototype.get_location_user_multigroup = function (id, user_id, options) {
474
- return this.request("location", "get_location_user_multigroup", "get", "/location/multigroup/".concat(id, "/user/").concat(user_id), null, options);
475
- };
464
+ get_location_user_multigroup(id, user_id, options) {
465
+ return this.request("location", "get_location_user_multigroup", "get", `/location/multigroup/${id}/user/${user_id}`, null, options);
466
+ }
476
467
  /**
477
468
  * POST /location/group - Create a new group
478
469
  *
479
470
  * @param body
480
471
  * @param options - additional request options
481
472
  */
482
- ServiceClient.prototype.post_location_group = function (body, options) {
483
- return this.request("location", "post_location_group", "post", "/location/group", body, options);
484
- };
473
+ post_location_group(body, options) {
474
+ return this.request("location", "post_location_group", "post", `/location/group`, body, options);
475
+ }
485
476
  /**
486
477
  * GET /location/group/{id} - Get an individual Group based on id or latitude/longitude
487
478
  *
488
479
  * @param id - group id
489
480
  * @param options - additional request options
490
481
  */
491
- ServiceClient.prototype.get_location_group = function (id, options) {
492
- return this.request("location", "get_location_group", "get", "/location/group/".concat(id), null, options);
493
- };
482
+ get_location_group(id, options) {
483
+ return this.request("location", "get_location_group", "get", `/location/group/${id}`, null, options);
484
+ }
494
485
  /**
495
486
  * PUT /location/group/{id} - Override a complete Group
496
487
  *
@@ -498,9 +489,9 @@ var ServiceClient = /** @class */ (function (_super) {
498
489
  * @param body
499
490
  * @param options - additional request options
500
491
  */
501
- ServiceClient.prototype.put_location_group = function (id, body, options) {
502
- return this.request("location", "put_location_group", "put", "/location/group/".concat(id), body, options);
503
- };
492
+ put_location_group(id, body, options) {
493
+ return this.request("location", "put_location_group", "put", `/location/group/${id}`, body, options);
494
+ }
504
495
  /**
505
496
  * DELETE /location/group/{id} - Delete locations from a Group
506
497
  *
@@ -508,9 +499,9 @@ var ServiceClient = /** @class */ (function (_super) {
508
499
  * @param body
509
500
  * @param options - additional request options
510
501
  */
511
- ServiceClient.prototype.delete_location_group = function (id, body, options) {
512
- return this.request("location", "delete_location_group", "delete", "/location/group/".concat(id), body, options);
513
- };
502
+ delete_location_group(id, body, options) {
503
+ return this.request("location", "delete_location_group", "delete", `/location/group/${id}`, body, options);
504
+ }
514
505
  /**
515
506
  * PATCH /location/group/{id} - Update a Group
516
507
  *
@@ -518,18 +509,18 @@ var ServiceClient = /** @class */ (function (_super) {
518
509
  * @param body
519
510
  * @param options - additional request options
520
511
  */
521
- ServiceClient.prototype.patch_location_group = function (id, body, options) {
522
- return this.request("location", "patch_location_group", "patch", "/location/group/".concat(id), body, options);
523
- };
512
+ patch_location_group(id, body, options) {
513
+ return this.request("location", "patch_location_group", "patch", `/location/group/${id}`, body, options);
514
+ }
524
515
  /**
525
516
  * GET /location/group/{id}/deliverydestination - Get all delivery destinations for group
526
517
  *
527
518
  * @param id - Group ID
528
519
  * @param options - additional request options
529
520
  */
530
- ServiceClient.prototype.get_location_group_deliverydestinations = function (id, options) {
531
- return this.request("location", "get_location_group_deliverydestinations", "get", "/location/group/".concat(id, "/deliverydestination"), null, options);
532
- };
521
+ get_location_group_deliverydestinations(id, options) {
522
+ return this.request("location", "get_location_group_deliverydestinations", "get", `/location/group/${id}/deliverydestination`, null, options);
523
+ }
533
524
  /**
534
525
  * POST /location/group/{id}/deliverydestination - Create a new location group delivery destination
535
526
  *
@@ -537,9 +528,9 @@ var ServiceClient = /** @class */ (function (_super) {
537
528
  * @param body
538
529
  * @param options - additional request options
539
530
  */
540
- ServiceClient.prototype.post_location_group_deliverydestination = function (id, body, options) {
541
- return this.request("location", "post_location_group_deliverydestination", "post", "/location/group/".concat(id, "/deliverydestination"), body, options);
542
- };
531
+ post_location_group_deliverydestination(id, body, options) {
532
+ return this.request("location", "post_location_group_deliverydestination", "post", `/location/group/${id}/deliverydestination`, body, options);
533
+ }
543
534
  /**
544
535
  * PATCH /location/group/{id}/deliverydestination - Patch single or multiple delivery destinations
545
536
  *
@@ -547,9 +538,9 @@ var ServiceClient = /** @class */ (function (_super) {
547
538
  * @param body
548
539
  * @param options - additional request options
549
540
  */
550
- ServiceClient.prototype.patch_location_group_deliverydestination = function (id, body, options) {
551
- return this.request("location", "patch_location_group_deliverydestination", "patch", "/location/group/".concat(id, "/deliverydestination"), body, options);
552
- };
541
+ patch_location_group_deliverydestination(id, body, options) {
542
+ return this.request("location", "patch_location_group_deliverydestination", "patch", `/location/group/${id}/deliverydestination`, body, options);
543
+ }
553
544
  /**
554
545
  * DELETE /location/group/{id}/deliverydestination - Delete single or multiple delivery destinations
555
546
  *
@@ -557,9 +548,9 @@ var ServiceClient = /** @class */ (function (_super) {
557
548
  * @param body
558
549
  * @param options - additional request options
559
550
  */
560
- ServiceClient.prototype.delete_location_group_deliverydestination = function (id, body, options) {
561
- return this.request("location", "delete_location_group_deliverydestination", "delete", "/location/group/".concat(id, "/deliverydestination"), body, options);
562
- };
551
+ delete_location_group_deliverydestination(id, body, options) {
552
+ return this.request("location", "delete_location_group_deliverydestination", "delete", `/location/group/${id}/deliverydestination`, body, options);
553
+ }
563
554
  /**
564
555
  * GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
565
556
  *
@@ -567,9 +558,9 @@ var ServiceClient = /** @class */ (function (_super) {
567
558
  * @param delivery_destination - Delivery Destination ID
568
559
  * @param options - additional request options
569
560
  */
570
- ServiceClient.prototype.get_location_group_deliverydestination = function (id, delivery_destination, options) {
571
- return this.request("location", "get_location_group_deliverydestination", "get", "/location/group/".concat(id, "/deliverydestination/").concat(delivery_destination), null, options);
572
- };
561
+ get_location_group_deliverydestination(id, delivery_destination, options) {
562
+ return this.request("location", "get_location_group_deliverydestination", "get", `/location/group/${id}/deliverydestination/${delivery_destination}`, null, options);
563
+ }
573
564
  /**
574
565
  * GET /location/group/{id}/user/{user_id} - Get a location group info specific to user read permissions
575
566
  *
@@ -577,26 +568,26 @@ var ServiceClient = /** @class */ (function (_super) {
577
568
  * @param user_id - user
578
569
  * @param options - additional request options
579
570
  */
580
- ServiceClient.prototype.get_location_user_group = function (id, user_id, options) {
581
- return this.request("location", "get_location_user_group", "get", "/location/group/".concat(id, "/user/").concat(user_id), null, options);
582
- };
571
+ get_location_user_group(id, user_id, options) {
572
+ return this.request("location", "get_location_user_group", "get", `/location/group/${id}/user/${user_id}`, null, options);
573
+ }
583
574
  /**
584
575
  * GET /location/brands - Get all location brands
585
576
  *
586
577
  * @param options - additional request options
587
578
  */
588
- ServiceClient.prototype.get_location_brands = function (options) {
589
- return this.request("location", "get_location_brands", "get", "/location/brands", null, options);
590
- };
579
+ get_location_brands(options) {
580
+ return this.request("location", "get_location_brands", "get", `/location/brands`, null, options);
581
+ }
591
582
  /**
592
583
  * GET /location/brand/{id}/deliverydestinations - Get delivery destinations for a brand
593
584
  *
594
585
  * @param id - Brand ID
595
586
  * @param options - additional request options
596
587
  */
597
- ServiceClient.prototype.get_location_brand_destinations = function (id, options) {
598
- return this.request("location", "get_location_brand_destinations", "get", "/location/brand/".concat(id, "/deliverydestinations"), null, options);
599
- };
588
+ get_location_brand_destinations(id, options) {
589
+ return this.request("location", "get_location_brand_destinations", "get", `/location/brand/${id}/deliverydestinations`, null, options);
590
+ }
600
591
  /**
601
592
  * POST /location/brand/{id}/document - Attach document to a brand
602
593
  *
@@ -604,63 +595,63 @@ var ServiceClient = /** @class */ (function (_super) {
604
595
  * @param body
605
596
  * @param options - additional request options
606
597
  */
607
- ServiceClient.prototype.post_location_brand_document = function (id, body, options) {
608
- return this.request("location", "post_location_brand_document", "post", "/location/brand/".concat(id, "/document"), body, options);
609
- };
598
+ post_location_brand_document(id, body, options) {
599
+ return this.request("location", "post_location_brand_document", "post", `/location/brand/${id}/document`, body, options);
600
+ }
610
601
  /**
611
602
  * PATCH /location/brand/{id}/document - Edit location document
612
603
  *
613
604
  * @param id - Brand ID
614
605
  * @param options - additional request options
615
606
  */
616
- ServiceClient.prototype.patch_location_brand_document = function (id, options) {
617
- return this.request("location", "patch_location_brand_document", "patch", "/location/brand/".concat(id, "/document"), null, options);
618
- };
607
+ patch_location_brand_document(id, options) {
608
+ return this.request("location", "patch_location_brand_document", "patch", `/location/brand/${id}/document`, null, options);
609
+ }
619
610
  /**
620
611
  * DELETE /location/brand/{id}/document - Deleted brand document
621
612
  *
622
613
  * @param id - Brand ID
623
614
  * @param options - additional request options
624
615
  */
625
- ServiceClient.prototype.delete_location_brand_document = function (id, options) {
626
- return this.request("location", "delete_location_brand_document", "delete", "/location/brand/".concat(id, "/document"), null, options);
627
- };
616
+ delete_location_brand_document(id, options) {
617
+ return this.request("location", "delete_location_brand_document", "delete", `/location/brand/${id}/document`, null, options);
618
+ }
628
619
  /**
629
620
  * GET /location/brand/{id}/documents - Get location brand attached documents
630
621
  *
631
622
  * @param id - Brand ID
632
623
  * @param options - additional request options
633
624
  */
634
- ServiceClient.prototype.get_location_brand_documents = function (id, options) {
635
- return this.request("location", "get_location_brand_documents", "get", "/location/brand/".concat(id, "/documents"), null, options);
636
- };
625
+ get_location_brand_documents(id, options) {
626
+ return this.request("location", "get_location_brand_documents", "get", `/location/brand/${id}/documents`, null, options);
627
+ }
637
628
  /**
638
629
  * GET /location/brand/{id}/timeslots - Get location brand timeslots
639
630
  *
640
631
  * @param id - Brand ID
641
632
  * @param options - additional request options
642
633
  */
643
- ServiceClient.prototype.get_location_brand_timeslots = function (id, options) {
644
- return this.request("location", "get_location_brand_timeslots", "get", "/location/brand/".concat(id, "/timeslots"), null, options);
645
- };
634
+ get_location_brand_timeslots(id, options) {
635
+ return this.request("location", "get_location_brand_timeslots", "get", `/location/brand/${id}/timeslots`, null, options);
636
+ }
646
637
  /**
647
638
  * POST /location/marketplace/timeslots - Get Market Place timeslots
648
639
  *
649
640
  * @param body
650
641
  * @param options - additional request options
651
642
  */
652
- ServiceClient.prototype.post_location_marketplace_timeslots = function (body, options) {
653
- return this.request("location", "post_location_marketplace_timeslots", "post", "/location/marketplace/timeslots", body, options);
654
- };
643
+ post_location_marketplace_timeslots(body, options) {
644
+ return this.request("location", "post_location_marketplace_timeslots", "post", `/location/marketplace/timeslots`, body, options);
645
+ }
655
646
  /**
656
647
  * POST /location/marketplace/timeslots/delivery - Get Marketplace delivery timeslots
657
648
  *
658
649
  * @param body
659
650
  * @param options - additional request options
660
651
  */
661
- ServiceClient.prototype.post_location_marketplace_timeslots_delivery = function (body, options) {
662
- return this.request("location", "post_location_marketplace_timeslots_delivery", "post", "/location/marketplace/timeslots/delivery", body, options);
663
- };
652
+ post_location_marketplace_timeslots_delivery(body, options) {
653
+ return this.request("location", "post_location_marketplace_timeslots_delivery", "post", `/location/marketplace/timeslots/delivery`, body, options);
654
+ }
664
655
  /**
665
656
  * GET /location/brand/{id}/timeslots/menu/{menu} - Get location brand timeslots for menu
666
657
  *
@@ -668,18 +659,18 @@ var ServiceClient = /** @class */ (function (_super) {
668
659
  * @param menu - Menu ID
669
660
  * @param options - additional request options
670
661
  */
671
- ServiceClient.prototype.get_location_brand_menu_timeslots = function (id, menu, options) {
672
- return this.request("location", "get_location_brand_menu_timeslots", "get", "/location/brand/".concat(id, "/timeslots/menu/").concat(menu), null, options);
673
- };
662
+ get_location_brand_menu_timeslots(id, menu, options) {
663
+ return this.request("location", "get_location_brand_menu_timeslots", "get", `/location/brand/${id}/timeslots/menu/${menu}`, null, options);
664
+ }
674
665
  /**
675
666
  * GET /location/brand/{id}/timeslots/delivery - Get location brand delivery timeslots
676
667
  *
677
668
  * @param id - Brand ID
678
669
  * @param options - additional request options
679
670
  */
680
- ServiceClient.prototype.get_location_brand_delivery_timeslots = function (id, options) {
681
- return this.request("location", "get_location_brand_delivery_timeslots", "get", "/location/brand/".concat(id, "/timeslots/delivery"), null, options);
682
- };
671
+ get_location_brand_delivery_timeslots(id, options) {
672
+ return this.request("location", "get_location_brand_delivery_timeslots", "get", `/location/brand/${id}/timeslots/delivery`, null, options);
673
+ }
683
674
  /**
684
675
  * GET /location/brand/{id}/timeslots/delivery/menu/{menu} - Get location brand delivery timeslots for menu
685
676
  *
@@ -687,27 +678,27 @@ var ServiceClient = /** @class */ (function (_super) {
687
678
  * @param menu - Menu ID
688
679
  * @param options - additional request options
689
680
  */
690
- ServiceClient.prototype.get_location_brand_menu_delivery_timeslosts = function (id, menu, options) {
691
- return this.request("location", "get_location_brand_menu_delivery_timeslosts", "get", "/location/brand/".concat(id, "/timeslots/delivery/menu/").concat(menu), null, options);
692
- };
681
+ get_location_brand_menu_delivery_timeslosts(id, menu, options) {
682
+ return this.request("location", "get_location_brand_menu_delivery_timeslosts", "get", `/location/brand/${id}/timeslots/delivery/menu/${menu}`, null, options);
683
+ }
693
684
  /**
694
685
  * POST /location/brand - Create a new Brand
695
686
  *
696
687
  * @param body
697
688
  * @param options - additional request options
698
689
  */
699
- ServiceClient.prototype.post_location_brand = function (body, options) {
700
- return this.request("location", "post_location_brand", "post", "/location/brand", body, options);
701
- };
690
+ post_location_brand(body, options) {
691
+ return this.request("location", "post_location_brand", "post", `/location/brand`, body, options);
692
+ }
702
693
  /**
703
694
  * GET /location/brand/{id} - Get location brand
704
695
  *
705
696
  * @param id - Brand ID
706
697
  * @param options - additional request options
707
698
  */
708
- ServiceClient.prototype.get_location_brand = function (id, options) {
709
- return this.request("location", "get_location_brand", "get", "/location/brand/".concat(id), null, options);
710
- };
699
+ get_location_brand(id, options) {
700
+ return this.request("location", "get_location_brand", "get", `/location/brand/${id}`, null, options);
701
+ }
711
702
  /**
712
703
  * PATCH /location/brand/{id} - Update location brand
713
704
  *
@@ -715,9 +706,9 @@ var ServiceClient = /** @class */ (function (_super) {
715
706
  * @param body
716
707
  * @param options - additional request options
717
708
  */
718
- ServiceClient.prototype.patch_location_brand = function (id, body, options) {
719
- return this.request("location", "patch_location_brand", "patch", "/location/brand/".concat(id), body, options);
720
- };
709
+ patch_location_brand(id, body, options) {
710
+ return this.request("location", "patch_location_brand", "patch", `/location/brand/${id}`, body, options);
711
+ }
721
712
  /**
722
713
  * DELETE /location/brand/{id} - Delete data from a Brand
723
714
  *
@@ -725,9 +716,9 @@ var ServiceClient = /** @class */ (function (_super) {
725
716
  * @param body
726
717
  * @param options - additional request options
727
718
  */
728
- ServiceClient.prototype.delete_location_brand = function (id, body, options) {
729
- return this.request("location", "delete_location_brand", "delete", "/location/brand/".concat(id), body, options);
730
- };
719
+ delete_location_brand(id, body, options) {
720
+ return this.request("location", "delete_location_brand", "delete", `/location/brand/${id}`, body, options);
721
+ }
731
722
  /**
732
723
  * PUT /location/brand/{id} - Update location brand
733
724
  *
@@ -735,35 +726,35 @@ var ServiceClient = /** @class */ (function (_super) {
735
726
  * @param body
736
727
  * @param options - additional request options
737
728
  */
738
- ServiceClient.prototype.put_location_brand = function (id, body, options) {
739
- return this.request("location", "put_location_brand", "put", "/location/brand/".concat(id), body, options);
740
- };
729
+ put_location_brand(id, body, options) {
730
+ return this.request("location", "put_location_brand", "put", `/location/brand/${id}`, body, options);
731
+ }
741
732
  /**
742
733
  * GET /location/sector - Get list of all the sectors
743
734
  *
744
735
  * @param options - additional request options
745
736
  */
746
- ServiceClient.prototype.get_location_sectors = function (options) {
747
- return this.request("location", "get_location_sectors", "get", "/location/sector", null, options);
748
- };
737
+ get_location_sectors(options) {
738
+ return this.request("location", "get_location_sectors", "get", `/location/sector`, null, options);
739
+ }
749
740
  /**
750
741
  * POST /location/sector - Create a new sector
751
742
  *
752
743
  * @param body
753
744
  * @param options - additional request options
754
745
  */
755
- ServiceClient.prototype.post_location_sector = function (body, options) {
756
- return this.request("location", "post_location_sector", "post", "/location/sector", body, options);
757
- };
746
+ post_location_sector(body, options) {
747
+ return this.request("location", "post_location_sector", "post", `/location/sector`, body, options);
748
+ }
758
749
  /**
759
750
  * GET /location/sector/{id} - Get a sector
760
751
  *
761
752
  * @param id - sector
762
753
  * @param options - additional request options
763
754
  */
764
- ServiceClient.prototype.get_location_sector = function (id, options) {
765
- return this.request("location", "get_location_sector", "get", "/location/sector/".concat(id), null, options);
766
- };
755
+ get_location_sector(id, options) {
756
+ return this.request("location", "get_location_sector", "get", `/location/sector/${id}`, null, options);
757
+ }
767
758
  /**
768
759
  * PATCH /location/sector/{id} - Update a sector
769
760
  *
@@ -771,27 +762,27 @@ var ServiceClient = /** @class */ (function (_super) {
771
762
  * @param body
772
763
  * @param options - additional request options
773
764
  */
774
- ServiceClient.prototype.patch_location_sector = function (id, body, options) {
775
- return this.request("location", "patch_location_sector", "patch", "/location/sector/".concat(id), body, options);
776
- };
765
+ patch_location_sector(id, body, options) {
766
+ return this.request("location", "patch_location_sector", "patch", `/location/sector/${id}`, body, options);
767
+ }
777
768
  /**
778
769
  * POST /location/company - Create a new company
779
770
  *
780
771
  * @param body
781
772
  * @param options - additional request options
782
773
  */
783
- ServiceClient.prototype.post_location_company = function (body, options) {
784
- return this.request("location", "post_location_company", "post", "/location/company", body, options);
785
- };
774
+ post_location_company(body, options) {
775
+ return this.request("location", "post_location_company", "post", `/location/company`, body, options);
776
+ }
786
777
  /**
787
778
  * GET /location/company/{id} - Get a company within sector
788
779
  *
789
780
  * @param id - Company ID
790
781
  * @param options - additional request options
791
782
  */
792
- ServiceClient.prototype.get_location_company = function (id, options) {
793
- return this.request("location", "get_location_company", "get", "/location/company/".concat(id), null, options);
794
- };
783
+ get_location_company(id, options) {
784
+ return this.request("location", "get_location_company", "get", `/location/company/${id}`, null, options);
785
+ }
795
786
  /**
796
787
  * PATCH /location/company/{id} - Update a company
797
788
  *
@@ -799,27 +790,27 @@ var ServiceClient = /** @class */ (function (_super) {
799
790
  * @param body
800
791
  * @param options - additional request options
801
792
  */
802
- ServiceClient.prototype.patch_location_company = function (id, body, options) {
803
- return this.request("location", "patch_location_company", "patch", "/location/company/".concat(id), body, options);
804
- };
793
+ patch_location_company(id, body, options) {
794
+ return this.request("location", "patch_location_company", "patch", `/location/company/${id}`, body, options);
795
+ }
805
796
  /**
806
797
  * DELETE /location/record/{id} - Delete a Brand, Location, Group, or MultiGroup
807
798
  *
808
799
  * @param id - brand, location, group, or multigroup id
809
800
  * @param options - additional request options
810
801
  */
811
- ServiceClient.prototype.delete_location_record = function (id, options) {
812
- return this.request("location", "delete_location_record", "delete", "/location/record/".concat(id), null, options);
813
- };
802
+ delete_location_record(id, options) {
803
+ return this.request("location", "delete_location_record", "delete", `/location/record/${id}`, null, options);
804
+ }
814
805
  /**
815
806
  * POST /shoppingcart/ - Create a new ShoppingCart
816
807
  *
817
808
  * @param body
818
809
  * @param options - additional request options
819
810
  */
820
- ServiceClient.prototype.post_shoppingcart_cart = function (body, options) {
821
- return this.request("shoppingcart", "post_shoppingcart_cart", "post", "/shoppingcart/", body, options);
822
- };
811
+ post_shoppingcart_cart(body, options) {
812
+ return this.request("shoppingcart", "post_shoppingcart_cart", "post", `/shoppingcart/`, body, options);
813
+ }
823
814
  /**
824
815
  * PUT /shoppingcart/{id} - Put a menu item into a ShoppingCart
825
816
  *
@@ -827,9 +818,9 @@ var ServiceClient = /** @class */ (function (_super) {
827
818
  * @param body
828
819
  * @param options - additional request options
829
820
  */
830
- ServiceClient.prototype.put_shoppingcart_cart_items = function (id, body, options) {
831
- return this.request("shoppingcart", "put_shoppingcart_cart_items", "put", "/shoppingcart/".concat(id), body, options);
832
- };
821
+ put_shoppingcart_cart_items(id, body, options) {
822
+ return this.request("shoppingcart", "put_shoppingcart_cart_items", "put", `/shoppingcart/${id}`, body, options);
823
+ }
833
824
  /**
834
825
  * DELETE /shoppingcart/{id} - Delete a menu item from a ShoppingCart
835
826
  *
@@ -837,18 +828,18 @@ var ServiceClient = /** @class */ (function (_super) {
837
828
  * @param body
838
829
  * @param options - additional request options
839
830
  */
840
- ServiceClient.prototype.delete_shoppingcart_cart_items = function (id, body, options) {
841
- return this.request("shoppingcart", "delete_shoppingcart_cart_items", "delete", "/shoppingcart/".concat(id), body, options);
842
- };
831
+ delete_shoppingcart_cart_items(id, body, options) {
832
+ return this.request("shoppingcart", "delete_shoppingcart_cart_items", "delete", `/shoppingcart/${id}`, body, options);
833
+ }
843
834
  /**
844
835
  * GET /shoppingcart/{id} - Get an individual ShoppingCart
845
836
  *
846
837
  * @param id - Shopping cart ID
847
838
  * @param options - additional request options
848
839
  */
849
- ServiceClient.prototype.get_shoppingcart_cart = function (id, options) {
850
- return this.request("shoppingcart", "get_shoppingcart_cart", "get", "/shoppingcart/".concat(id), null, options);
851
- };
840
+ get_shoppingcart_cart(id, options) {
841
+ return this.request("shoppingcart", "get_shoppingcart_cart", "get", `/shoppingcart/${id}`, null, options);
842
+ }
852
843
  /**
853
844
  * PATCH /shoppingcart/{id} - Update a ShoppingCart
854
845
  *
@@ -856,9 +847,9 @@ var ServiceClient = /** @class */ (function (_super) {
856
847
  * @param body - body accepting properties to patch
857
848
  * @param options - additional request options
858
849
  */
859
- ServiceClient.prototype.patch_shoppingcart_cart = function (id, body, options) {
860
- return this.request("shoppingcart", "patch_shoppingcart_cart", "patch", "/shoppingcart/".concat(id), body, options);
861
- };
850
+ patch_shoppingcart_cart(id, body, options) {
851
+ return this.request("shoppingcart", "patch_shoppingcart_cart", "patch", `/shoppingcart/${id}`, body, options);
852
+ }
862
853
  /**
863
854
  * PUT /shoppingcart/{id}/promo - Put a promo in a ShoppingCart
864
855
  *
@@ -866,18 +857,18 @@ var ServiceClient = /** @class */ (function (_super) {
866
857
  * @param body
867
858
  * @param options - additional request options
868
859
  */
869
- ServiceClient.prototype.put_shoppingcart_cart_promo = function (id, body, options) {
870
- return this.request("shoppingcart", "put_shoppingcart_cart_promo", "put", "/shoppingcart/".concat(id, "/promo"), body, options);
871
- };
860
+ put_shoppingcart_cart_promo(id, body, options) {
861
+ return this.request("shoppingcart", "put_shoppingcart_cart_promo", "put", `/shoppingcart/${id}/promo`, body, options);
862
+ }
872
863
  /**
873
864
  * DELETE /shoppingcart/{id}/promo - Delete the promo in a ShoppingCart
874
865
  *
875
866
  * @param id - Shopping cart ID
876
867
  * @param options - additional request options
877
868
  */
878
- ServiceClient.prototype.delete_shoppingcart_cart_promo = function (id, options) {
879
- return this.request("shoppingcart", "delete_shoppingcart_cart_promo", "delete", "/shoppingcart/".concat(id, "/promo"), null, options);
880
- };
869
+ delete_shoppingcart_cart_promo(id, options) {
870
+ return this.request("shoppingcart", "delete_shoppingcart_cart_promo", "delete", `/shoppingcart/${id}/promo`, null, options);
871
+ }
881
872
  /**
882
873
  * PUT /shoppingcart/{id}/paymentmethod/ - Change payment method used in shopping cart
883
874
  *
@@ -885,9 +876,9 @@ var ServiceClient = /** @class */ (function (_super) {
885
876
  * @param body
886
877
  * @param options - additional request options
887
878
  */
888
- ServiceClient.prototype.put_shoppingcart_cart_payment = function (id, body, options) {
889
- return this.request("shoppingcart", "put_shoppingcart_cart_payment", "put", "/shoppingcart/".concat(id, "/paymentmethod/"), body, options);
890
- };
879
+ put_shoppingcart_cart_payment(id, body, options) {
880
+ return this.request("shoppingcart", "put_shoppingcart_cart_payment", "put", `/shoppingcart/${id}/paymentmethod/`, body, options);
881
+ }
891
882
  /**
892
883
  * PUT /shoppingcart/{id}/order/ - Store information about the order created with this shopping cart
893
884
  *
@@ -895,9 +886,9 @@ var ServiceClient = /** @class */ (function (_super) {
895
886
  * @param body
896
887
  * @param options - additional request options
897
888
  */
898
- ServiceClient.prototype.put_shoppingcart_cart_order = function (id, body, options) {
899
- return this.request("shoppingcart", "put_shoppingcart_cart_order", "put", "/shoppingcart/".concat(id, "/order/"), body, options);
900
- };
889
+ put_shoppingcart_cart_order(id, body, options) {
890
+ return this.request("shoppingcart", "put_shoppingcart_cart_order", "put", `/shoppingcart/${id}/order/`, body, options);
891
+ }
901
892
  /**
902
893
  * POST /shoppingcart/{id}/clone - Create a shopping cart from existing shopping cart
903
894
  *
@@ -905,113 +896,113 @@ var ServiceClient = /** @class */ (function (_super) {
905
896
  * @param body
906
897
  * @param options - additional request options
907
898
  */
908
- ServiceClient.prototype.post_shoppingcart_clone_cart = function (id, body, options) {
909
- return this.request("shoppingcart", "post_shoppingcart_clone_cart", "post", "/shoppingcart/".concat(id, "/clone"), body, options);
910
- };
899
+ post_shoppingcart_clone_cart(id, body, options) {
900
+ return this.request("shoppingcart", "post_shoppingcart_clone_cart", "post", `/shoppingcart/${id}/clone`, body, options);
901
+ }
911
902
  /**
912
903
  * PUT /shoppingcart/{id}/checkout - handle ui checkout flow and call taxjar for full tax breakdown
913
904
  *
914
905
  * @param id - Shopping cart ID
915
906
  * @param options - additional request options
916
907
  */
917
- ServiceClient.prototype.put_shoppingcart_checkout = function (id, options) {
918
- return this.request("shoppingcart", "put_shoppingcart_checkout", "put", "/shoppingcart/".concat(id, "/checkout"), null, options);
919
- };
908
+ put_shoppingcart_checkout(id, options) {
909
+ return this.request("shoppingcart", "put_shoppingcart_checkout", "put", `/shoppingcart/${id}/checkout`, null, options);
910
+ }
920
911
  /**
921
912
  * POST /shoppingcart/bulk - Get multiple ShoppingCarts
922
913
  *
923
914
  * @param body - Shopping cart ids
924
915
  * @param options - additional request options
925
916
  */
926
- ServiceClient.prototype.post_shoppingcart_bulk = function (body, options) {
927
- return this.request("shoppingcart", "post_shoppingcart_bulk", "post", "/shoppingcart/bulk", body, options);
928
- };
917
+ post_shoppingcart_bulk(body, options) {
918
+ return this.request("shoppingcart", "post_shoppingcart_bulk", "post", `/shoppingcart/bulk`, body, options);
919
+ }
929
920
  /**
930
921
  * POST /partner/standardcognition/shoppingcart - Calculates a shoppingcart
931
922
  *
932
923
  * @param body
933
924
  * @param options - additional request options
934
925
  */
935
- ServiceClient.prototype.post_partner_standardcognition_shoppingcart = function (body, options) {
936
- return this.request("partner", "post_partner_standardcognition_shoppingcart", "post", "/partner/standardcognition/shoppingcart", body, options);
937
- };
926
+ post_partner_standardcognition_shoppingcart(body, options) {
927
+ return this.request("partner", "post_partner_standardcognition_shoppingcart", "post", `/partner/standardcognition/shoppingcart`, body, options);
928
+ }
938
929
  /**
939
930
  * GET /partner/standardcognition/locations - Gets the locations where Standard Cognition is available
940
931
  *
941
932
  * @param options - additional request options
942
933
  */
943
- ServiceClient.prototype.get_partner_standardcognition_locations = function (options) {
944
- return this.request("partner", "get_partner_standardcognition_locations", "get", "/partner/standardcognition/locations", null, options);
945
- };
934
+ get_partner_standardcognition_locations(options) {
935
+ return this.request("partner", "get_partner_standardcognition_locations", "get", `/partner/standardcognition/locations`, null, options);
936
+ }
946
937
  /**
947
938
  * GET /partner/standardcognition/stores - Gets the UUID for all the Standard Cognition external locations
948
939
  *
949
940
  * @param options - additional request options
950
941
  */
951
- ServiceClient.prototype.get_partner_standardcognition_stores = function (options) {
952
- return this.request("partner", "get_partner_standardcognition_stores", "get", "/partner/standardcognition/stores", null, options);
953
- };
942
+ get_partner_standardcognition_stores(options) {
943
+ return this.request("partner", "get_partner_standardcognition_stores", "get", `/partner/standardcognition/stores`, null, options);
944
+ }
954
945
  /**
955
946
  * POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
956
947
  *
957
948
  * @param body
958
949
  * @param options - additional request options
959
950
  */
960
- ServiceClient.prototype.post_partner_standardcognition_menu = function (body, options) {
961
- return this.request("partner", "post_partner_standardcognition_menu", "post", "/partner/standardcognition/menu", body, options);
962
- };
951
+ post_partner_standardcognition_menu(body, options) {
952
+ return this.request("partner", "post_partner_standardcognition_menu", "post", `/partner/standardcognition/menu`, body, options);
953
+ }
963
954
  /**
964
955
  * GET /partner/coolr/locations - Gets the locations where Coolr is available
965
956
  *
966
957
  * @param options - additional request options
967
958
  */
968
- ServiceClient.prototype.get_partner_coolr_locations = function (options) {
969
- return this.request("partner", "get_partner_coolr_locations", "get", "/partner/coolr/locations", null, options);
970
- };
959
+ get_partner_coolr_locations(options) {
960
+ return this.request("partner", "get_partner_coolr_locations", "get", `/partner/coolr/locations`, null, options);
961
+ }
971
962
  /**
972
963
  * GET /partner/coolr/{id}/images - Gets the latest images for Coolr Location AssetID
973
964
  *
974
965
  * @param id - location
975
966
  * @param options - additional request options
976
967
  */
977
- ServiceClient.prototype.get_partner_coolr_images = function (id, options) {
978
- return this.request("partner", "get_partner_coolr_images", "get", "/partner/coolr/".concat(id, "/images"), null, options);
979
- };
968
+ get_partner_coolr_images(id, options) {
969
+ return this.request("partner", "get_partner_coolr_images", "get", `/partner/coolr/${id}/images`, null, options);
970
+ }
980
971
  /**
981
972
  * GET /partner/swagger.json
982
973
  *
983
974
  * @param options - additional request options
984
975
  */
985
- ServiceClient.prototype.get_partner_swagger = function (options) {
986
- return this.request("partner", "get_partner_swagger", "get", "/partner/swagger.json", null, options);
987
- };
976
+ get_partner_swagger(options) {
977
+ return this.request("partner", "get_partner_swagger", "get", `/partner/swagger.json`, null, options);
978
+ }
988
979
  /**
989
980
  * POST /email - Send an email
990
981
  *
991
982
  * @param body
992
983
  * @param options - additional request options
993
984
  */
994
- ServiceClient.prototype.post_email = function (body, options) {
995
- return this.request("email", "post_email", "post", "/email", body, options);
996
- };
985
+ post_email(body, options) {
986
+ return this.request("email", "post_email", "post", `/email`, body, options);
987
+ }
997
988
  /**
998
989
  * POST /task/ - Create new Task
999
990
  *
1000
991
  * @param body - Task Information
1001
992
  * @param options - additional request options
1002
993
  */
1003
- ServiceClient.prototype.post_task = function (body, options) {
1004
- return this.request("task", "post_task", "post", "/task/", body, options);
1005
- };
994
+ post_task(body, options) {
995
+ return this.request("task", "post_task", "post", `/task/`, body, options);
996
+ }
1006
997
  /**
1007
998
  * GET /task/{id} - Get task based on passed ID
1008
999
  *
1009
1000
  * @param id - Task ID
1010
1001
  * @param options - additional request options
1011
1002
  */
1012
- ServiceClient.prototype.get_task = function (id, options) {
1013
- return this.request("task", "get_task", "get", "/task/".concat(id), null, options);
1014
- };
1003
+ get_task(id, options) {
1004
+ return this.request("task", "get_task", "get", `/task/${id}`, null, options);
1005
+ }
1015
1006
  /**
1016
1007
  * PATCH /task/{id} - Update Task
1017
1008
  *
@@ -1019,36 +1010,36 @@ var ServiceClient = /** @class */ (function (_super) {
1019
1010
  * @param body - Task Information
1020
1011
  * @param options - additional request options
1021
1012
  */
1022
- ServiceClient.prototype.patch_task = function (id, body, options) {
1023
- return this.request("task", "patch_task", "patch", "/task/".concat(id), body, options);
1024
- };
1013
+ patch_task(id, body, options) {
1014
+ return this.request("task", "patch_task", "patch", `/task/${id}`, body, options);
1015
+ }
1025
1016
  /**
1026
1017
  * DELETE /task/{id} - Delete Task
1027
1018
  *
1028
1019
  * @param id - Task ID
1029
1020
  * @param options - additional request options
1030
1021
  */
1031
- ServiceClient.prototype.delete_task = function (id, options) {
1032
- return this.request("task", "delete_task", "delete", "/task/".concat(id), null, options);
1033
- };
1022
+ delete_task(id, options) {
1023
+ return this.request("task", "delete_task", "delete", `/task/${id}`, null, options);
1024
+ }
1034
1025
  /**
1035
1026
  * GET /task/order/{id} - Get task based on passed order ID
1036
1027
  *
1037
1028
  * @param id - Order ID
1038
1029
  * @param options - additional request options
1039
1030
  */
1040
- ServiceClient.prototype.get_task_order = function (id, options) {
1041
- return this.request("task", "get_task_order", "get", "/task/order/".concat(id), null, options);
1042
- };
1031
+ get_task_order(id, options) {
1032
+ return this.request("task", "get_task_order", "get", `/task/order/${id}`, null, options);
1033
+ }
1043
1034
  /**
1044
1035
  * GET /task/order/{id}/kds - Get KDS tasks based on passed order ID
1045
1036
  *
1046
1037
  * @param id - Order ID
1047
1038
  * @param options - additional request options
1048
1039
  */
1049
- ServiceClient.prototype.get_task_order_kds = function (id, options) {
1050
- return this.request("task", "get_task_order_kds", "get", "/task/order/".concat(id, "/kds"), null, options);
1051
- };
1040
+ get_task_order_kds(id, options) {
1041
+ return this.request("task", "get_task_order_kds", "get", `/task/order/${id}/kds`, null, options);
1042
+ }
1052
1043
  /**
1053
1044
  * PATCH /task/order/{id}/kds - Update an order and its associated tasks
1054
1045
  *
@@ -1056,62 +1047,62 @@ var ServiceClient = /** @class */ (function (_super) {
1056
1047
  * @param body - Order information that you wish to update
1057
1048
  * @param options - additional request options
1058
1049
  */
1059
- ServiceClient.prototype.patch_task_order_kds = function (id, body, options) {
1060
- return this.request("task", "patch_task_order_kds", "patch", "/task/order/".concat(id, "/kds"), body, options);
1061
- };
1050
+ patch_task_order_kds(id, body, options) {
1051
+ return this.request("task", "patch_task_order_kds", "patch", `/task/order/${id}/kds`, body, options);
1052
+ }
1062
1053
  /**
1063
1054
  * GET /task/assignee/{id} - Get Assignee tasks
1064
1055
  *
1065
1056
  * @param id - Assignee ID
1066
1057
  * @param options - additional request options
1067
1058
  */
1068
- ServiceClient.prototype.get_task_assignee = function (id, options) {
1069
- return this.request("task", "get_task_assignee", "get", "/task/assignee/".concat(id), null, options);
1070
- };
1059
+ get_task_assignee(id, options) {
1060
+ return this.request("task", "get_task_assignee", "get", `/task/assignee/${id}`, null, options);
1061
+ }
1071
1062
  /**
1072
1063
  * GET /task/location/brand/{id} - Get location brand tasks
1073
1064
  *
1074
1065
  * @param id - location brand ID
1075
1066
  * @param options - additional request options
1076
1067
  */
1077
- ServiceClient.prototype.get_task_location_brand = function (id, options) {
1078
- return this.request("task", "get_task_location_brand", "get", "/task/location/brand/".concat(id), null, options);
1079
- };
1068
+ get_task_location_brand(id, options) {
1069
+ return this.request("task", "get_task_location_brand", "get", `/task/location/brand/${id}`, null, options);
1070
+ }
1080
1071
  /**
1081
1072
  * GET /task/location/group/{id} - Get location group tasks
1082
1073
  *
1083
1074
  * @param id - Location group ID
1084
1075
  * @param options - additional request options
1085
1076
  */
1086
- ServiceClient.prototype.get_task_location_group = function (id, options) {
1087
- return this.request("task", "get_task_location_group", "get", "/task/location/group/".concat(id), null, options);
1088
- };
1077
+ get_task_location_group(id, options) {
1078
+ return this.request("task", "get_task_location_group", "get", `/task/location/group/${id}`, null, options);
1079
+ }
1089
1080
  /**
1090
1081
  * GET /kds/devices - Get kds devices for a specified unit number
1091
1082
  *
1092
1083
  * @param options - additional request options
1093
1084
  */
1094
- ServiceClient.prototype.get_kds_devices = function (options) {
1095
- return this.request("kds", "get_kds_devices", "get", "/kds/devices", null, options);
1096
- };
1085
+ get_kds_devices(options) {
1086
+ return this.request("kds", "get_kds_devices", "get", `/kds/devices`, null, options);
1087
+ }
1097
1088
  /**
1098
1089
  * POST /kds/device/auth - Get auth token for a device
1099
1090
  *
1100
1091
  * @param body - AuthPostBody object
1101
1092
  * @param options - additional request options
1102
1093
  */
1103
- ServiceClient.prototype.post_kds_device_auth = function (body, options) {
1104
- return this.request("kds", "post_kds_device_auth", "post", "/kds/device/auth", body, options);
1105
- };
1094
+ post_kds_device_auth(body, options) {
1095
+ return this.request("kds", "post_kds_device_auth", "post", `/kds/device/auth`, body, options);
1096
+ }
1106
1097
  /**
1107
1098
  * DELETE /kds/device/auth/{device_id} - Delete authorization for specified serial_number
1108
1099
  *
1109
1100
  * @param device_id - serial number encoded as cdl id
1110
1101
  * @param options - additional request options
1111
1102
  */
1112
- ServiceClient.prototype.delete_kds_device_auth = function (device_id, options) {
1113
- return this.request("kds", "delete_kds_device_auth", "delete", "/kds/device/auth/".concat(device_id), null, options);
1114
- };
1103
+ delete_kds_device_auth(device_id, options) {
1104
+ return this.request("kds", "delete_kds_device_auth", "delete", `/kds/device/auth/${device_id}`, null, options);
1105
+ }
1115
1106
  /**
1116
1107
  * PATCH /kds/device/info/{device_id} - Update additional information related to the kds
1117
1108
  *
@@ -1119,26 +1110,26 @@ var ServiceClient = /** @class */ (function (_super) {
1119
1110
  * @param body
1120
1111
  * @param options - additional request options
1121
1112
  */
1122
- ServiceClient.prototype.patch_kds_device_info = function (device_id, body, options) {
1123
- return this.request("kds", "patch_kds_device_info", "patch", "/kds/device/info/".concat(device_id), body, options);
1124
- };
1113
+ patch_kds_device_info(device_id, body, options) {
1114
+ return this.request("kds", "patch_kds_device_info", "patch", `/kds/device/info/${device_id}`, body, options);
1115
+ }
1125
1116
  /**
1126
1117
  * DELETE /kds/device/info/{device_id} - Delete additional information related to the kds
1127
1118
  *
1128
1119
  * @param device_id - serial number encoded as cdl id
1129
1120
  * @param options - additional request options
1130
1121
  */
1131
- ServiceClient.prototype.delete_kds_device_info = function (device_id, options) {
1132
- return this.request("kds", "delete_kds_device_info", "delete", "/kds/device/info/".concat(device_id), null, options);
1133
- };
1122
+ delete_kds_device_info(device_id, options) {
1123
+ return this.request("kds", "delete_kds_device_info", "delete", `/kds/device/info/${device_id}`, null, options);
1124
+ }
1134
1125
  /**
1135
1126
  * GET /kds/swagger.json - Get a swagger for kds service
1136
1127
  *
1137
1128
  * @param options - additional request options
1138
1129
  */
1139
- ServiceClient.prototype.get_kds_swagger = function (options) {
1140
- return this.request("kds", "get_kds_swagger", "get", "/kds/swagger.json", null, options);
1141
- };
1130
+ get_kds_swagger(options) {
1131
+ return this.request("kds", "get_kds_swagger", "get", `/kds/swagger.json`, null, options);
1132
+ }
1142
1133
  /**
1143
1134
  * POST /mealplan/{id} - Authenticate against the meal plan provider
1144
1135
  *
@@ -1146,9 +1137,9 @@ var ServiceClient = /** @class */ (function (_super) {
1146
1137
  * @param body - User credentials
1147
1138
  * @param options - additional request options
1148
1139
  */
1149
- ServiceClient.prototype.post_mealplan = function (id, body, options) {
1150
- return this.request("mealplan", "post_mealplan", "post", "/mealplan/".concat(id), body, options);
1151
- };
1140
+ post_mealplan(id, body, options) {
1141
+ return this.request("mealplan", "post_mealplan", "post", `/mealplan/${id}`, body, options);
1142
+ }
1152
1143
  /**
1153
1144
  * PUT /mealplan/{id} - Save a token for access to the meal plan
1154
1145
  *
@@ -1156,18 +1147,18 @@ var ServiceClient = /** @class */ (function (_super) {
1156
1147
  * @param body
1157
1148
  * @param options - additional request options
1158
1149
  */
1159
- ServiceClient.prototype.put_mealplan = function (id, body, options) {
1160
- return this.request("mealplan", "put_mealplan", "put", "/mealplan/".concat(id), body, options);
1161
- };
1150
+ put_mealplan(id, body, options) {
1151
+ return this.request("mealplan", "put_mealplan", "put", `/mealplan/${id}`, body, options);
1152
+ }
1162
1153
  /**
1163
1154
  * GET /mealplan/{id} - Check the user's meal plan tenders and get the authentication configuration
1164
1155
  *
1165
1156
  * @param id - Meal plan ID
1166
1157
  * @param options - additional request options
1167
1158
  */
1168
- ServiceClient.prototype.get_mealplan = function (id, options) {
1169
- return this.request("mealplan", "get_mealplan", "get", "/mealplan/".concat(id), null, options);
1170
- };
1159
+ get_mealplan(id, options) {
1160
+ return this.request("mealplan", "get_mealplan", "get", `/mealplan/${id}`, null, options);
1161
+ }
1171
1162
  /**
1172
1163
  * DELETE /mealplan/{id} - Delete a mealplan or a tender from the user's account
1173
1164
  *
@@ -1175,18 +1166,18 @@ var ServiceClient = /** @class */ (function (_super) {
1175
1166
  * @param body - Tenders to be deleted. If not passed, it will delete all the tenders for this user
1176
1167
  * @param options - additional request options
1177
1168
  */
1178
- ServiceClient.prototype.delete_mealplan = function (id, body, options) {
1179
- return this.request("mealplan", "delete_mealplan", "delete", "/mealplan/".concat(id), body, options);
1180
- };
1169
+ delete_mealplan(id, body, options) {
1170
+ return this.request("mealplan", "delete_mealplan", "delete", `/mealplan/${id}`, body, options);
1171
+ }
1181
1172
  /**
1182
1173
  * POST /mealplan/{id}/callback - Callback endpoint for meal plans that make a call back from a webview workflow
1183
1174
  *
1184
1175
  * @param id - Meal plan ID
1185
1176
  * @param options - additional request options
1186
1177
  */
1187
- ServiceClient.prototype.post_mealplan_callback = function (id, options) {
1188
- return this.request("mealplan", "post_mealplan_callback", "post", "/mealplan/".concat(id, "/callback"), null, options);
1189
- };
1178
+ post_mealplan_callback(id, options) {
1179
+ return this.request("mealplan", "post_mealplan_callback", "post", `/mealplan/${id}/callback`, null, options);
1180
+ }
1190
1181
  /**
1191
1182
  * GET /mealplan/{id}/tender/{tender} - Check the user's tender balance
1192
1183
  *
@@ -1194,9 +1185,9 @@ var ServiceClient = /** @class */ (function (_super) {
1194
1185
  * @param tender - Tender ID
1195
1186
  * @param options - additional request options
1196
1187
  */
1197
- ServiceClient.prototype.get_mealplan_tender = function (id, tender, options) {
1198
- return this.request("mealplan", "get_mealplan_tender", "get", "/mealplan/".concat(id, "/tender/").concat(tender), null, options);
1199
- };
1188
+ get_mealplan_tender(id, tender, options) {
1189
+ return this.request("mealplan", "get_mealplan_tender", "get", `/mealplan/${id}/tender/${tender}`, null, options);
1190
+ }
1200
1191
  /**
1201
1192
  * DELETE /mealplan/{id}/tender/{tender} - Debit an amount from the tender balance
1202
1193
  *
@@ -1204,9 +1195,9 @@ var ServiceClient = /** @class */ (function (_super) {
1204
1195
  * @param tender - Tender ID
1205
1196
  * @param options - additional request options
1206
1197
  */
1207
- ServiceClient.prototype.delete_mealplan_tender = function (id, tender, options) {
1208
- return this.request("mealplan", "delete_mealplan_tender", "delete", "/mealplan/".concat(id, "/tender/").concat(tender), null, options);
1209
- };
1198
+ delete_mealplan_tender(id, tender, options) {
1199
+ return this.request("mealplan", "delete_mealplan_tender", "delete", `/mealplan/${id}/tender/${tender}`, null, options);
1200
+ }
1210
1201
  /**
1211
1202
  * PATCH /mealplan/{id}/tender/{tender} - Refund an amount to the tender balance
1212
1203
  *
@@ -1215,9 +1206,9 @@ var ServiceClient = /** @class */ (function (_super) {
1215
1206
  * @param body
1216
1207
  * @param options - additional request options
1217
1208
  */
1218
- ServiceClient.prototype.patch_mealplan_tender = function (id, tender, body, options) {
1219
- return this.request("mealplan", "patch_mealplan_tender", "patch", "/mealplan/".concat(id, "/tender/").concat(tender), body, options);
1220
- };
1209
+ patch_mealplan_tender(id, tender, body, options) {
1210
+ return this.request("mealplan", "patch_mealplan_tender", "patch", `/mealplan/${id}/tender/${tender}`, body, options);
1211
+ }
1221
1212
  /**
1222
1213
  * POST /mealplan/{id}/verify - Send verification email to user linking a mealplan
1223
1214
  *
@@ -1225,9 +1216,9 @@ var ServiceClient = /** @class */ (function (_super) {
1225
1216
  * @param body - Verification Email Parameters
1226
1217
  * @param options - additional request options
1227
1218
  */
1228
- ServiceClient.prototype.post_mealplan_verify = function (id, body, options) {
1229
- return this.request("mealplan", "post_mealplan_verify", "post", "/mealplan/".concat(id, "/verify"), body, options);
1230
- };
1219
+ post_mealplan_verify(id, body, options) {
1220
+ return this.request("mealplan", "post_mealplan_verify", "post", `/mealplan/${id}/verify`, body, options);
1221
+ }
1231
1222
  /**
1232
1223
  * PUT /mealplan/{id}/verify - Verify email address using provided payload
1233
1224
  *
@@ -1235,9 +1226,9 @@ var ServiceClient = /** @class */ (function (_super) {
1235
1226
  * @param body - Verify Email Parameters
1236
1227
  * @param options - additional request options
1237
1228
  */
1238
- ServiceClient.prototype.put_mealplan_verify = function (id, body, options) {
1239
- return this.request("mealplan", "put_mealplan_verify", "put", "/mealplan/".concat(id, "/verify"), body, options);
1240
- };
1229
+ put_mealplan_verify(id, body, options) {
1230
+ return this.request("mealplan", "put_mealplan_verify", "put", `/mealplan/${id}/verify`, body, options);
1231
+ }
1241
1232
  /**
1242
1233
  * POST /mealplan/{id}/authorize - Authorize Transaction
1243
1234
  *
@@ -1245,52 +1236,52 @@ var ServiceClient = /** @class */ (function (_super) {
1245
1236
  * @param body
1246
1237
  * @param options - additional request options
1247
1238
  */
1248
- ServiceClient.prototype.post_mealplan_authorize = function (id, body, options) {
1249
- return this.request("mealplan", "post_mealplan_authorize", "post", "/mealplan/".concat(id, "/authorize"), body, options);
1250
- };
1239
+ post_mealplan_authorize(id, body, options) {
1240
+ return this.request("mealplan", "post_mealplan_authorize", "post", `/mealplan/${id}/authorize`, body, options);
1241
+ }
1251
1242
  /**
1252
1243
  * POST /datalake/sql - Query datalake for data
1253
1244
  *
1254
1245
  * @param body
1255
1246
  * @param options - additional request options
1256
1247
  */
1257
- ServiceClient.prototype.post_datalake_sql = function (body, options) {
1258
- return this.request("datalake", "post_datalake_sql", "post", "/datalake/sql", body, options);
1259
- };
1248
+ post_datalake_sql(body, options) {
1249
+ return this.request("datalake", "post_datalake_sql", "post", `/datalake/sql`, body, options);
1250
+ }
1260
1251
  /**
1261
1252
  * GET /swagger.json
1262
1253
  *
1263
1254
  * @param options - additional request options
1264
1255
  */
1265
- ServiceClient.prototype.get_swagger = function (options) {
1266
- return this.request("datalake", "get_swagger", "get", "/swagger.json", null, options);
1267
- };
1256
+ get_swagger(options) {
1257
+ return this.request("datalake", "get_swagger", "get", `/swagger.json`, null, options);
1258
+ }
1268
1259
  /**
1269
1260
  * POST /promo - Create a new promotion
1270
1261
  *
1271
1262
  * @param body
1272
1263
  * @param options - additional request options
1273
1264
  */
1274
- ServiceClient.prototype.post_promo = function (body, options) {
1275
- return this.request("promo", "post_promo", "post", "/promo", body, options);
1276
- };
1265
+ post_promo(body, options) {
1266
+ return this.request("promo", "post_promo", "post", `/promo`, body, options);
1267
+ }
1277
1268
  /**
1278
1269
  * GET /promo - Get all promotions
1279
1270
  *
1280
1271
  * @param options - additional request options
1281
1272
  */
1282
- ServiceClient.prototype.get_promos = function (options) {
1283
- return this.request("promo", "get_promos", "get", "/promo", null, options);
1284
- };
1273
+ get_promos(options) {
1274
+ return this.request("promo", "get_promos", "get", `/promo`, null, options);
1275
+ }
1285
1276
  /**
1286
1277
  * GET /promo/{id} - Get an individual promotion
1287
1278
  *
1288
1279
  * @param id - promo
1289
1280
  * @param options - additional request options
1290
1281
  */
1291
- ServiceClient.prototype.get_promo = function (id, options) {
1292
- return this.request("promo", "get_promo", "get", "/promo/".concat(id), null, options);
1293
- };
1282
+ get_promo(id, options) {
1283
+ return this.request("promo", "get_promo", "get", `/promo/${id}`, null, options);
1284
+ }
1294
1285
  /**
1295
1286
  * PUT /promo/{id} - Update a promotion
1296
1287
  *
@@ -1298,18 +1289,18 @@ var ServiceClient = /** @class */ (function (_super) {
1298
1289
  * @param body
1299
1290
  * @param options - additional request options
1300
1291
  */
1301
- ServiceClient.prototype.put_promo = function (id, body, options) {
1302
- return this.request("promo", "put_promo", "put", "/promo/".concat(id), body, options);
1303
- };
1292
+ put_promo(id, body, options) {
1293
+ return this.request("promo", "put_promo", "put", `/promo/${id}`, body, options);
1294
+ }
1304
1295
  /**
1305
1296
  * DELETE /promo/{id} - Delete promotion
1306
1297
  *
1307
1298
  * @param id - Id of a promotion
1308
1299
  * @param options - additional request options
1309
1300
  */
1310
- ServiceClient.prototype.delete_promo = function (id, options) {
1311
- return this.request("promo", "delete_promo", "delete", "/promo/".concat(id), null, options);
1312
- };
1301
+ delete_promo(id, options) {
1302
+ return this.request("promo", "delete_promo", "delete", `/promo/${id}`, null, options);
1303
+ }
1313
1304
  /**
1314
1305
  * GET /promo/company/{company}/location/group/{location_group} - Get all promotions within company for a location group
1315
1306
  *
@@ -1317,36 +1308,36 @@ var ServiceClient = /** @class */ (function (_super) {
1317
1308
  * @param location_group - Show promotions for selected location group
1318
1309
  * @param options - additional request options
1319
1310
  */
1320
- ServiceClient.prototype.get_promo_company_location_group = function (company, location_group, options) {
1321
- return this.request("promo", "get_promo_company_location_group", "get", "/promo/company/".concat(company, "/location/group/").concat(location_group), null, options);
1322
- };
1311
+ get_promo_company_location_group(company, location_group, options) {
1312
+ return this.request("promo", "get_promo_company_location_group", "get", `/promo/company/${company}/location/group/${location_group}`, null, options);
1313
+ }
1323
1314
  /**
1324
1315
  * POST /promo/validate/voucher - Validate a promo voucher
1325
1316
  *
1326
1317
  * @param body
1327
1318
  * @param options - additional request options
1328
1319
  */
1329
- ServiceClient.prototype.post_promo_validate_voucher = function (body, options) {
1330
- return this.request("promo", "post_promo_validate_voucher", "post", "/promo/validate/voucher", body, options);
1331
- };
1320
+ post_promo_validate_voucher(body, options) {
1321
+ return this.request("promo", "post_promo_validate_voucher", "post", `/promo/validate/voucher`, body, options);
1322
+ }
1332
1323
  /**
1333
1324
  * POST /promo/redeem/voucher - Redeem a promo voucher
1334
1325
  *
1335
1326
  * @param body
1336
1327
  * @param options - additional request options
1337
1328
  */
1338
- ServiceClient.prototype.post_promo_redeem_voucher = function (body, options) {
1339
- return this.request("promo", "post_promo_redeem_voucher", "post", "/promo/redeem/voucher", body, options);
1340
- };
1329
+ post_promo_redeem_voucher(body, options) {
1330
+ return this.request("promo", "post_promo_redeem_voucher", "post", `/promo/redeem/voucher`, body, options);
1331
+ }
1341
1332
  /**
1342
1333
  * POST /promo/voucher - Create new voucher
1343
1334
  *
1344
1335
  * @param body
1345
1336
  * @param options - additional request options
1346
1337
  */
1347
- ServiceClient.prototype.post_promo_voucher = function (body, options) {
1348
- return this.request("promo", "post_promo_voucher", "post", "/promo/voucher", body, options);
1349
- };
1338
+ post_promo_voucher(body, options) {
1339
+ return this.request("promo", "post_promo_voucher", "post", `/promo/voucher`, body, options);
1340
+ }
1350
1341
  /**
1351
1342
  * PUT /promo/voucher/{id} - Update voucher
1352
1343
  *
@@ -1354,36 +1345,36 @@ var ServiceClient = /** @class */ (function (_super) {
1354
1345
  * @param body
1355
1346
  * @param options - additional request options
1356
1347
  */
1357
- ServiceClient.prototype.put_promo_voucher = function (id, body, options) {
1358
- return this.request("promo", "put_promo_voucher", "put", "/promo/voucher/".concat(id), body, options);
1359
- };
1348
+ put_promo_voucher(id, body, options) {
1349
+ return this.request("promo", "put_promo_voucher", "put", `/promo/voucher/${id}`, body, options);
1350
+ }
1360
1351
  /**
1361
1352
  * DELETE /promo/voucher/{id} - Delete voucher
1362
1353
  *
1363
1354
  * @param id - TODO: add parameter to swagger.json
1364
1355
  * @param options - additional request options
1365
1356
  */
1366
- ServiceClient.prototype.delete_promo_voucher = function (id, options) {
1367
- return this.request("promo", "delete_promo_voucher", "delete", "/promo/voucher/".concat(id), null, options);
1368
- };
1357
+ delete_promo_voucher(id, options) {
1358
+ return this.request("promo", "delete_promo_voucher", "delete", `/promo/voucher/${id}`, null, options);
1359
+ }
1369
1360
  /**
1370
1361
  * POST /promo/customer/ - Add user to voucherify
1371
1362
  *
1372
1363
  * @param body
1373
1364
  * @param options - additional request options
1374
1365
  */
1375
- ServiceClient.prototype.post_promo_customer = function (body, options) {
1376
- return this.request("promo", "post_promo_customer", "post", "/promo/customer/", body, options);
1377
- };
1366
+ post_promo_customer(body, options) {
1367
+ return this.request("promo", "post_promo_customer", "post", `/promo/customer/`, body, options);
1368
+ }
1378
1369
  /**
1379
1370
  * DELETE /promo/customer/ - Delete user from voucherify
1380
1371
  *
1381
1372
  * @param body
1382
1373
  * @param options - additional request options
1383
1374
  */
1384
- ServiceClient.prototype.delete_promo_customer = function (body, options) {
1385
- return this.request("promo", "delete_promo_customer", "delete", "/promo/customer/", body, options);
1386
- };
1375
+ delete_promo_customer(body, options) {
1376
+ return this.request("promo", "delete_promo_customer", "delete", `/promo/customer/`, body, options);
1377
+ }
1387
1378
  /**
1388
1379
  * POST /promo/voucher/{id}/reverse - Reverse a redemption from a promo voucher
1389
1380
  *
@@ -1391,43 +1382,43 @@ var ServiceClient = /** @class */ (function (_super) {
1391
1382
  * @param body
1392
1383
  * @param options - additional request options
1393
1384
  */
1394
- ServiceClient.prototype.post_promo_voucher_reverse = function (id, body, options) {
1395
- return this.request("promo", "post_promo_voucher_reverse", "post", "/promo/voucher/".concat(id, "/reverse"), body, options);
1396
- };
1385
+ post_promo_voucher_reverse(id, body, options) {
1386
+ return this.request("promo", "post_promo_voucher_reverse", "post", `/promo/voucher/${id}/reverse`, body, options);
1387
+ }
1397
1388
  /**
1398
1389
  * POST /promo/voucherify/activity/execute - Execute a Journey custom Activity request
1399
1390
  *
1400
1391
  * @param body
1401
1392
  * @param options - additional request options
1402
1393
  */
1403
- ServiceClient.prototype.post_promo_voucherify_activity_execute = function (body, options) {
1404
- return this.request("promo", "post_promo_voucherify_activity_execute", "post", "/promo/voucherify/activity/execute", body, options);
1405
- };
1394
+ post_promo_voucherify_activity_execute(body, options) {
1395
+ return this.request("promo", "post_promo_voucherify_activity_execute", "post", `/promo/voucherify/activity/execute`, body, options);
1396
+ }
1406
1397
  /**
1407
1398
  * GET /promo/voucherify/activity/config.json - Get SFMC Journey Custom Activity configuration
1408
1399
  *
1409
1400
  * @param options - additional request options
1410
1401
  */
1411
- ServiceClient.prototype.get_promo_voucherify_activity_config = function (options) {
1412
- return this.request("promo", "get_promo_voucherify_activity_config", "get", "/promo/voucherify/activity/config.json", null, options);
1413
- };
1402
+ get_promo_voucherify_activity_config(options) {
1403
+ return this.request("promo", "get_promo_voucherify_activity_config", "get", `/promo/voucherify/activity/config.json`, null, options);
1404
+ }
1414
1405
  /**
1415
1406
  * GET /config/appconfig - get appconfig - an object with data for clients including minimum versions apps (boost, thrive, J&J) should be running and a link to the respective app store
1416
1407
  *
1417
1408
  * @param options - additional request options
1418
1409
  */
1419
- ServiceClient.prototype.get_config_appconfig = function (options) {
1420
- return this.request("config", "get_config_appconfig", "get", "/config/appconfig", null, options);
1421
- };
1410
+ get_config_appconfig(options) {
1411
+ return this.request("config", "get_config_appconfig", "get", `/config/appconfig`, null, options);
1412
+ }
1422
1413
  /**
1423
1414
  * GET /config/{key} - get a configuration
1424
1415
  *
1425
1416
  * @param key - configuration key
1426
1417
  * @param options - additional request options
1427
1418
  */
1428
- ServiceClient.prototype.get_config = function (key, options) {
1429
- return this.request("config", "get_config", "get", "/config/".concat(key), null, options);
1430
- };
1419
+ get_config(key, options) {
1420
+ return this.request("config", "get_config", "get", `/config/${key}`, null, options);
1421
+ }
1431
1422
  /**
1432
1423
  * POST /config/{key} - Create a configuration
1433
1424
  *
@@ -1435,9 +1426,9 @@ var ServiceClient = /** @class */ (function (_super) {
1435
1426
  * @param body
1436
1427
  * @param options - additional request options
1437
1428
  */
1438
- ServiceClient.prototype.post_config = function (key, body, options) {
1439
- return this.request("config", "post_config", "post", "/config/".concat(key), body, options);
1440
- };
1429
+ post_config(key, body, options) {
1430
+ return this.request("config", "post_config", "post", `/config/${key}`, body, options);
1431
+ }
1441
1432
  /**
1442
1433
  * PUT /config/{key} - Update a configuration
1443
1434
  *
@@ -1445,27 +1436,27 @@ var ServiceClient = /** @class */ (function (_super) {
1445
1436
  * @param body
1446
1437
  * @param options - additional request options
1447
1438
  */
1448
- ServiceClient.prototype.put_config = function (key, body, options) {
1449
- return this.request("config", "put_config", "put", "/config/".concat(key), body, options);
1450
- };
1439
+ put_config(key, body, options) {
1440
+ return this.request("config", "put_config", "put", `/config/${key}`, body, options);
1441
+ }
1451
1442
  /**
1452
1443
  * DELETE /config/{key} - Delete a configuration
1453
1444
  *
1454
1445
  * @param key - configuration key
1455
1446
  * @param options - additional request options
1456
1447
  */
1457
- ServiceClient.prototype.delete_config = function (key, options) {
1458
- return this.request("config", "delete_config", "delete", "/config/".concat(key), null, options);
1459
- };
1448
+ delete_config(key, options) {
1449
+ return this.request("config", "delete_config", "delete", `/config/${key}`, null, options);
1450
+ }
1460
1451
  /**
1461
1452
  * GET /config/public/{key} - get a public configuration
1462
1453
  *
1463
1454
  * @param key - configuration key
1464
1455
  * @param options - additional request options
1465
1456
  */
1466
- ServiceClient.prototype.get_config_public = function (key, options) {
1467
- return this.request("config", "get_config_public", "get", "/config/public/".concat(key), null, options);
1468
- };
1457
+ get_config_public(key, options) {
1458
+ return this.request("config", "get_config_public", "get", `/config/public/${key}`, null, options);
1459
+ }
1469
1460
  /**
1470
1461
  * POST /config/public/{key} - Create a public configuration
1471
1462
  *
@@ -1473,9 +1464,9 @@ var ServiceClient = /** @class */ (function (_super) {
1473
1464
  * @param body
1474
1465
  * @param options - additional request options
1475
1466
  */
1476
- ServiceClient.prototype.post_config_public = function (key, body, options) {
1477
- return this.request("config", "post_config_public", "post", "/config/public/".concat(key), body, options);
1478
- };
1467
+ post_config_public(key, body, options) {
1468
+ return this.request("config", "post_config_public", "post", `/config/public/${key}`, body, options);
1469
+ }
1479
1470
  /**
1480
1471
  * PUT /config/public/{key} - Update a public configuration
1481
1472
  *
@@ -1483,53 +1474,53 @@ var ServiceClient = /** @class */ (function (_super) {
1483
1474
  * @param body
1484
1475
  * @param options - additional request options
1485
1476
  */
1486
- ServiceClient.prototype.put_config_public = function (key, body, options) {
1487
- return this.request("config", "put_config_public", "put", "/config/public/".concat(key), body, options);
1488
- };
1477
+ put_config_public(key, body, options) {
1478
+ return this.request("config", "put_config_public", "put", `/config/public/${key}`, body, options);
1479
+ }
1489
1480
  /**
1490
1481
  * DELETE /config/public/{key} - Delete a public configuration
1491
1482
  *
1492
1483
  * @param key - configuration key
1493
1484
  * @param options - additional request options
1494
1485
  */
1495
- ServiceClient.prototype.delete_config_public = function (key, options) {
1496
- return this.request("config", "delete_config_public", "delete", "/config/public/".concat(key), null, options);
1497
- };
1486
+ delete_config_public(key, options) {
1487
+ return this.request("config", "delete_config_public", "delete", `/config/public/${key}`, null, options);
1488
+ }
1498
1489
  /**
1499
1490
  * POST /announcement - Create Announcement
1500
1491
  *
1501
1492
  * @param body - Announcement
1502
1493
  * @param options - additional request options
1503
1494
  */
1504
- ServiceClient.prototype.post_announcement = function (body, options) {
1505
- return this.request("announcement", "post_announcement", "post", "/announcement", body, options);
1506
- };
1495
+ post_announcement(body, options) {
1496
+ return this.request("announcement", "post_announcement", "post", `/announcement`, body, options);
1497
+ }
1507
1498
  /**
1508
1499
  * GET /announcement/resource/{id} - Get Announcements
1509
1500
  *
1510
1501
  * @param id - Id of the entity to which announcement is specifically related.; TODO: mark parameter as required in swagger
1511
1502
  * @param options - additional request options
1512
1503
  */
1513
- ServiceClient.prototype.get_announcement_resource = function (id, options) {
1514
- return this.request("announcement", "get_announcement_resource", "get", "/announcement/resource/".concat(id), null, options);
1515
- };
1504
+ get_announcement_resource(id, options) {
1505
+ return this.request("announcement", "get_announcement_resource", "get", `/announcement/resource/${id}`, null, options);
1506
+ }
1516
1507
  /**
1517
1508
  * GET /announcement/resource - Get Announcements
1518
1509
  *
1519
1510
  * @param options - additional request options
1520
1511
  */
1521
- ServiceClient.prototype.get_announcement_resources = function (options) {
1522
- return this.request("announcement", "get_announcement_resources", "get", "/announcement/resource", null, options);
1523
- };
1512
+ get_announcement_resources(options) {
1513
+ return this.request("announcement", "get_announcement_resources", "get", `/announcement/resource`, null, options);
1514
+ }
1524
1515
  /**
1525
1516
  * GET /announcement/{id} - Get Announcement
1526
1517
  *
1527
1518
  * @param id - Id of the entity to which announcement is specifically related.
1528
1519
  * @param options - additional request options
1529
1520
  */
1530
- ServiceClient.prototype.get_announcement = function (id, options) {
1531
- return this.request("announcement", "get_announcement", "get", "/announcement/".concat(id), null, options);
1532
- };
1521
+ get_announcement(id, options) {
1522
+ return this.request("announcement", "get_announcement", "get", `/announcement/${id}`, null, options);
1523
+ }
1533
1524
  /**
1534
1525
  * PUT /announcement/{id} - Update Announcement
1535
1526
  *
@@ -1537,18 +1528,18 @@ var ServiceClient = /** @class */ (function (_super) {
1537
1528
  * @param body - Announcement
1538
1529
  * @param options - additional request options
1539
1530
  */
1540
- ServiceClient.prototype.put_announcement = function (id, body, options) {
1541
- return this.request("announcement", "put_announcement", "put", "/announcement/".concat(id), body, options);
1542
- };
1531
+ put_announcement(id, body, options) {
1532
+ return this.request("announcement", "put_announcement", "put", `/announcement/${id}`, body, options);
1533
+ }
1543
1534
  /**
1544
1535
  * DELETE /announcement/{id} - Delete announcement item
1545
1536
  *
1546
1537
  * @param id - Id of the announcement
1547
1538
  * @param options - additional request options
1548
1539
  */
1549
- ServiceClient.prototype.delete_announcement = function (id, options) {
1550
- return this.request("announcement", "delete_announcement", "delete", "/announcement/".concat(id), null, options);
1551
- };
1540
+ delete_announcement(id, options) {
1541
+ return this.request("announcement", "delete_announcement", "delete", `/announcement/${id}`, null, options);
1542
+ }
1552
1543
  /**
1553
1544
  * GET /report/analytics/group/{location_group}/{report_type}
1554
1545
  *
@@ -1556,36 +1547,36 @@ var ServiceClient = /** @class */ (function (_super) {
1556
1547
  * @param report_type
1557
1548
  * @param options - additional request options
1558
1549
  */
1559
- ServiceClient.prototype.get_report_analytics_group = function (location_group, report_type, options) {
1560
- return this.request("report", "get_report_analytics_group", "get", "/report/analytics/group/".concat(location_group, "/").concat(report_type), null, options);
1561
- };
1550
+ get_report_analytics_group(location_group, report_type, options) {
1551
+ return this.request("report", "get_report_analytics_group", "get", `/report/analytics/group/${location_group}/${report_type}`, null, options);
1552
+ }
1562
1553
  /**
1563
1554
  * GET /report/analytics/combined/group/{location_group}
1564
1555
  *
1565
1556
  * @param location_group
1566
1557
  * @param options - additional request options
1567
1558
  */
1568
- ServiceClient.prototype.get_report_analytics_combined_group = function (location_group, options) {
1569
- return this.request("report", "get_report_analytics_combined_group", "get", "/report/analytics/combined/group/".concat(location_group), null, options);
1570
- };
1559
+ get_report_analytics_combined_group(location_group, options) {
1560
+ return this.request("report", "get_report_analytics_combined_group", "get", `/report/analytics/combined/group/${location_group}`, null, options);
1561
+ }
1571
1562
  /**
1572
1563
  * GET /report/eod/group/{id} - Get reports for selected location group
1573
1564
  *
1574
1565
  * @param id
1575
1566
  * @param options - additional request options
1576
1567
  */
1577
- ServiceClient.prototype.get_report_eod_group = function (id, options) {
1578
- return this.request("report", "get_report_eod_group", "get", "/report/eod/group/".concat(id), null, options);
1579
- };
1568
+ get_report_eod_group(id, options) {
1569
+ return this.request("report", "get_report_eod_group", "get", `/report/eod/group/${id}`, null, options);
1570
+ }
1580
1571
  /**
1581
1572
  * GET /report/eod/group/{id}/subscribers - Get reports for selected location group
1582
1573
  *
1583
1574
  * @param id
1584
1575
  * @param options - additional request options
1585
1576
  */
1586
- ServiceClient.prototype.get_report_eod_group_subscribers = function (id, options) {
1587
- return this.request("report", "get_report_eod_group_subscribers", "get", "/report/eod/group/".concat(id, "/subscribers"), null, options);
1588
- };
1577
+ get_report_eod_group_subscribers(id, options) {
1578
+ return this.request("report", "get_report_eod_group_subscribers", "get", `/report/eod/group/${id}/subscribers`, null, options);
1579
+ }
1589
1580
  /**
1590
1581
  * POST /report/eod/group/{id}/subscribers - Add emails to selected location group
1591
1582
  *
@@ -1593,18 +1584,18 @@ var ServiceClient = /** @class */ (function (_super) {
1593
1584
  * @param body
1594
1585
  * @param options - additional request options
1595
1586
  */
1596
- ServiceClient.prototype.post_report_eod_group_subscribers = function (id, body, options) {
1597
- return this.request("report", "post_report_eod_group_subscribers", "post", "/report/eod/group/".concat(id, "/subscribers"), body, options);
1598
- };
1587
+ post_report_eod_group_subscribers(id, body, options) {
1588
+ return this.request("report", "post_report_eod_group_subscribers", "post", `/report/eod/group/${id}/subscribers`, body, options);
1589
+ }
1599
1590
  /**
1600
1591
  * DELETE /report/eod/group/{id}/subscribers - deletes subscribers from selected group
1601
1592
  *
1602
1593
  * @param id
1603
1594
  * @param options - additional request options
1604
1595
  */
1605
- ServiceClient.prototype.delete_report_eod_group_subscribers = function (id, options) {
1606
- return this.request("report", "delete_report_eod_group_subscribers", "delete", "/report/eod/group/".concat(id, "/subscribers"), null, options);
1607
- };
1596
+ delete_report_eod_group_subscribers(id, options) {
1597
+ return this.request("report", "delete_report_eod_group_subscribers", "delete", `/report/eod/group/${id}/subscribers`, null, options);
1598
+ }
1608
1599
  /**
1609
1600
  * PUT /report/eod/group/{id}/subscribers - replace all subscribers from selected location group with payload
1610
1601
  *
@@ -1612,52 +1603,52 @@ var ServiceClient = /** @class */ (function (_super) {
1612
1603
  * @param body
1613
1604
  * @param options - additional request options
1614
1605
  */
1615
- ServiceClient.prototype.put_report_eod_group_subscribers = function (id, body, options) {
1616
- return this.request("report", "put_report_eod_group_subscribers", "put", "/report/eod/group/".concat(id, "/subscribers"), body, options);
1617
- };
1606
+ put_report_eod_group_subscribers(id, body, options) {
1607
+ return this.request("report", "put_report_eod_group_subscribers", "put", `/report/eod/group/${id}/subscribers`, body, options);
1608
+ }
1618
1609
  /**
1619
1610
  * GET /user/auth - Gets the JWT token for a user
1620
1611
  *
1621
1612
  * @param options - additional request options
1622
1613
  */
1623
- ServiceClient.prototype.get_user_auth = function (options) {
1624
- return this.request("user", "get_user_auth", "get", "/user/auth", null, options);
1625
- };
1614
+ get_user_auth(options) {
1615
+ return this.request("user", "get_user_auth", "get", `/user/auth`, null, options);
1616
+ }
1626
1617
  /**
1627
1618
  * POST /user/auth - Use refresh token to generate a new access token and refresh token
1628
1619
  *
1629
1620
  * @param body
1630
1621
  * @param options - additional request options
1631
1622
  */
1632
- ServiceClient.prototype.post_user_auth = function (body, options) {
1633
- return this.request("user", "post_user_auth", "post", "/user/auth", body, options);
1634
- };
1623
+ post_user_auth(body, options) {
1624
+ return this.request("user", "post_user_auth", "post", `/user/auth`, body, options);
1625
+ }
1635
1626
  /**
1636
1627
  * GET /user/zendesk - Get zendesk JWT token to allow web widget to search restricted articles
1637
1628
  *
1638
1629
  * @param options - additional request options
1639
1630
  */
1640
- ServiceClient.prototype.get_user_zendesk = function (options) {
1641
- return this.request("user", "get_user_zendesk", "get", "/user/zendesk", null, options);
1642
- };
1631
+ get_user_zendesk(options) {
1632
+ return this.request("user", "get_user_zendesk", "get", `/user/zendesk`, null, options);
1633
+ }
1643
1634
  /**
1644
1635
  * POST /user - Create an User
1645
1636
  *
1646
1637
  * @param body - User object that needs to be created
1647
1638
  * @param options - additional request options
1648
1639
  */
1649
- ServiceClient.prototype.post_user = function (body, options) {
1650
- return this.request("user", "post_user", "post", "/user", body, options);
1651
- };
1640
+ post_user(body, options) {
1641
+ return this.request("user", "post_user", "post", `/user`, body, options);
1642
+ }
1652
1643
  /**
1653
1644
  * GET /user/{id} - Get an individual user
1654
1645
  *
1655
1646
  * @param id - User ID
1656
1647
  * @param options - additional request options
1657
1648
  */
1658
- ServiceClient.prototype.get_user = function (id, options) {
1659
- return this.request("user", "get_user", "get", "/user/".concat(id), null, options);
1660
- };
1649
+ get_user(id, options) {
1650
+ return this.request("user", "get_user", "get", `/user/${id}`, null, options);
1651
+ }
1661
1652
  /**
1662
1653
  * PUT /user/{id} - Update an individual user
1663
1654
  *
@@ -1665,9 +1656,9 @@ var ServiceClient = /** @class */ (function (_super) {
1665
1656
  * @param body - User object that needs to be updated
1666
1657
  * @param options - additional request options
1667
1658
  */
1668
- ServiceClient.prototype.put_user = function (id, body, options) {
1669
- return this.request("user", "put_user", "put", "/user/".concat(id), body, options);
1670
- };
1659
+ put_user(id, body, options) {
1660
+ return this.request("user", "put_user", "put", `/user/${id}`, body, options);
1661
+ }
1671
1662
  /**
1672
1663
  * PATCH /user/{id} - Update an individual user
1673
1664
  *
@@ -1675,53 +1666,53 @@ var ServiceClient = /** @class */ (function (_super) {
1675
1666
  * @param body - User properties which should be updated
1676
1667
  * @param options - additional request options
1677
1668
  */
1678
- ServiceClient.prototype.patch_user = function (id, body, options) {
1679
- return this.request("user", "patch_user", "patch", "/user/".concat(id), body, options);
1680
- };
1669
+ patch_user(id, body, options) {
1670
+ return this.request("user", "patch_user", "patch", `/user/${id}`, body, options);
1671
+ }
1681
1672
  /**
1682
1673
  * DELETE /user/{id} - delete an individual user
1683
1674
  *
1684
1675
  * @param id - User ID
1685
1676
  * @param options - additional request options
1686
1677
  */
1687
- ServiceClient.prototype.delete_user = function (id, options) {
1688
- return this.request("user", "delete_user", "delete", "/user/".concat(id), null, options);
1689
- };
1678
+ delete_user(id, options) {
1679
+ return this.request("user", "delete_user", "delete", `/user/${id}`, null, options);
1680
+ }
1690
1681
  /**
1691
1682
  * POST /user/device/auth - Endpoint for generating/retrieving KDS device token
1692
1683
  *
1693
1684
  * @param body
1694
1685
  * @param options - additional request options
1695
1686
  */
1696
- ServiceClient.prototype.post_user_kds_token = function (body, options) {
1697
- return this.request("user", "post_user_kds_token", "post", "/user/device/auth", body, options);
1698
- };
1687
+ post_user_kds_token(body, options) {
1688
+ return this.request("user", "post_user_kds_token", "post", `/user/device/auth`, body, options);
1689
+ }
1699
1690
  /**
1700
1691
  * GET /user/device/auth - Endpoint retrieving KDS device token
1701
1692
  *
1702
1693
  * @param options - additional request options
1703
1694
  */
1704
- ServiceClient.prototype.get_user_kds_token = function (options) {
1705
- return this.request("user", "get_user_kds_token", "get", "/user/device/auth", null, options);
1706
- };
1695
+ get_user_kds_token(options) {
1696
+ return this.request("user", "get_user_kds_token", "get", `/user/device/auth`, null, options);
1697
+ }
1707
1698
  /**
1708
1699
  * DELETE /user/device/auth/{device_id} - Endpoint for deleting a device by specified device_id
1709
1700
  *
1710
1701
  * @param device_id - KDS device ID
1711
1702
  * @param options - additional request options
1712
1703
  */
1713
- ServiceClient.prototype.delete_user_device_auth = function (device_id, options) {
1714
- return this.request("user", "delete_user_device_auth", "delete", "/user/device/auth/".concat(device_id), null, options);
1715
- };
1704
+ delete_user_device_auth(device_id, options) {
1705
+ return this.request("user", "delete_user_device_auth", "delete", `/user/device/auth/${device_id}`, null, options);
1706
+ }
1716
1707
  /**
1717
1708
  * PATCH /user/device/auth/{device_id} - Endpoint for authorizing device to retrieve valid kds token
1718
1709
  *
1719
1710
  * @param device_id - KDS device ID
1720
1711
  * @param options - additional request options
1721
1712
  */
1722
- ServiceClient.prototype.patch_user_auth_kds = function (device_id, options) {
1723
- return this.request("user", "patch_user_auth_kds", "patch", "/user/device/auth/".concat(device_id), null, options);
1724
- };
1713
+ patch_user_auth_kds(device_id, options) {
1714
+ return this.request("user", "patch_user_auth_kds", "patch", `/user/device/auth/${device_id}`, null, options);
1715
+ }
1725
1716
  /**
1726
1717
  * POST /user/{id}/changepassword - Change the users password
1727
1718
  *
@@ -1729,17 +1720,17 @@ var ServiceClient = /** @class */ (function (_super) {
1729
1720
  * @param body
1730
1721
  * @param options - additional request options
1731
1722
  */
1732
- ServiceClient.prototype.post_user_change_password = function (id, body, options) {
1733
- return this.request("user", "post_user_change_password", "post", "/user/".concat(id, "/changepassword"), body, options);
1734
- };
1723
+ post_user_change_password(id, body, options) {
1724
+ return this.request("user", "post_user_change_password", "post", `/user/${id}/changepassword`, body, options);
1725
+ }
1735
1726
  /**
1736
1727
  * DELETE /user/logout - Logs out current user
1737
1728
  *
1738
1729
  * @param options - additional request options
1739
1730
  */
1740
- ServiceClient.prototype.delete_user_logout = function (options) {
1741
- return this.request("user", "delete_user_logout", "delete", "/user/logout", null, options);
1742
- };
1731
+ delete_user_logout(options) {
1732
+ return this.request("user", "delete_user_logout", "delete", `/user/logout`, null, options);
1733
+ }
1743
1734
  /**
1744
1735
  * POST /user/{id}/secret/{key} - Add a secret key
1745
1736
  *
@@ -1748,9 +1739,9 @@ var ServiceClient = /** @class */ (function (_super) {
1748
1739
  * @param body - Secret to be stored
1749
1740
  * @param options - additional request options
1750
1741
  */
1751
- ServiceClient.prototype.post_user_add_secret = function (id, key, body, options) {
1752
- return this.request("user", "post_user_add_secret", "post", "/user/".concat(id, "/secret/").concat(key), body, options);
1753
- };
1742
+ post_user_add_secret(id, key, body, options) {
1743
+ return this.request("user", "post_user_add_secret", "post", `/user/${id}/secret/${key}`, body, options);
1744
+ }
1754
1745
  /**
1755
1746
  * GET /user/{id}/secret/{key} - Get back a secret key
1756
1747
  *
@@ -1758,18 +1749,18 @@ var ServiceClient = /** @class */ (function (_super) {
1758
1749
  * @param key
1759
1750
  * @param options - additional request options
1760
1751
  */
1761
- ServiceClient.prototype.get_user_secret = function (id, key, options) {
1762
- return this.request("user", "get_user_secret", "get", "/user/".concat(id, "/secret/").concat(key), null, options);
1763
- };
1752
+ get_user_secret(id, key, options) {
1753
+ return this.request("user", "get_user_secret", "get", `/user/${id}/secret/${key}`, null, options);
1754
+ }
1764
1755
  /**
1765
1756
  * POST /user/forgotpassword - Reset the users password
1766
1757
  *
1767
1758
  * @param body
1768
1759
  * @param options - additional request options
1769
1760
  */
1770
- ServiceClient.prototype.post_user_reset_password = function (body, options) {
1771
- return this.request("user", "post_user_reset_password", "post", "/user/forgotpassword", body, options);
1772
- };
1761
+ post_user_reset_password(body, options) {
1762
+ return this.request("user", "post_user_reset_password", "post", `/user/forgotpassword`, body, options);
1763
+ }
1773
1764
  /**
1774
1765
  * POST /user/{id}/resetpassword - Reset the users password using a reset token
1775
1766
  *
@@ -1777,27 +1768,27 @@ var ServiceClient = /** @class */ (function (_super) {
1777
1768
  * @param body
1778
1769
  * @param options - additional request options
1779
1770
  */
1780
- ServiceClient.prototype.post_user_reset_password_token = function (id, body, options) {
1781
- return this.request("user", "post_user_reset_password_token", "post", "/user/".concat(id, "/resetpassword"), body, options);
1782
- };
1771
+ post_user_reset_password_token(id, body, options) {
1772
+ return this.request("user", "post_user_reset_password_token", "post", `/user/${id}/resetpassword`, body, options);
1773
+ }
1783
1774
  /**
1784
1775
  * GET /user/realm/{realm} - Get all the users in a realm
1785
1776
  *
1786
1777
  * @param realm - realm
1787
1778
  * @param options - additional request options
1788
1779
  */
1789
- ServiceClient.prototype.get_user_realm_users = function (realm, options) {
1790
- return this.request("user", "get_user_realm_users", "get", "/user/realm/".concat(realm), null, options);
1791
- };
1780
+ get_user_realm_users(realm, options) {
1781
+ return this.request("user", "get_user_realm_users", "get", `/user/realm/${realm}`, null, options);
1782
+ }
1792
1783
  /**
1793
1784
  * GET /user/{id}/permissions - Get user permissions
1794
1785
  *
1795
1786
  * @param id - user
1796
1787
  * @param options - additional request options
1797
1788
  */
1798
- ServiceClient.prototype.get_user_permissions = function (id, options) {
1799
- return this.request("user", "get_user_permissions", "get", "/user/".concat(id, "/permissions"), null, options);
1800
- };
1789
+ get_user_permissions(id, options) {
1790
+ return this.request("user", "get_user_permissions", "get", `/user/${id}/permissions`, null, options);
1791
+ }
1801
1792
  /**
1802
1793
  * PUT /user/{id}/permissions - Update user permissions
1803
1794
  *
@@ -1805,9 +1796,9 @@ var ServiceClient = /** @class */ (function (_super) {
1805
1796
  * @param body
1806
1797
  * @param options - additional request options
1807
1798
  */
1808
- ServiceClient.prototype.put_user_permissions = function (id, body, options) {
1809
- return this.request("user", "put_user_permissions", "put", "/user/".concat(id, "/permissions"), body, options);
1810
- };
1799
+ put_user_permissions(id, body, options) {
1800
+ return this.request("user", "put_user_permissions", "put", `/user/${id}/permissions`, body, options);
1801
+ }
1811
1802
  /**
1812
1803
  * POST /user/{id}/checkin - Create check-in for user
1813
1804
  *
@@ -1815,9 +1806,9 @@ var ServiceClient = /** @class */ (function (_super) {
1815
1806
  * @param body
1816
1807
  * @param options - additional request options
1817
1808
  */
1818
- ServiceClient.prototype.post_user_check_in = function (id, body, options) {
1819
- return this.request("user", "post_user_check_in", "post", "/user/".concat(id, "/checkin"), body, options);
1820
- };
1809
+ post_user_check_in(id, body, options) {
1810
+ return this.request("user", "post_user_check_in", "post", `/user/${id}/checkin`, body, options);
1811
+ }
1821
1812
  /**
1822
1813
  * PATCH /user/{id}/checkin/{checkin_id} - Update check-in
1823
1814
  *
@@ -1826,26 +1817,26 @@ var ServiceClient = /** @class */ (function (_super) {
1826
1817
  * @param body - The updated state/date_queued of the check-in
1827
1818
  * @param options - additional request options
1828
1819
  */
1829
- ServiceClient.prototype.patch_user_checkin = function (id, checkin_id, body, options) {
1830
- return this.request("user", "patch_user_checkin", "patch", "/user/".concat(id, "/checkin/").concat(checkin_id), body, options);
1831
- };
1820
+ patch_user_checkin(id, checkin_id, body, options) {
1821
+ return this.request("user", "patch_user_checkin", "patch", `/user/${id}/checkin/${checkin_id}`, body, options);
1822
+ }
1832
1823
  /**
1833
1824
  * GET /user/checkin/search - Search check-in
1834
1825
  *
1835
1826
  * @param options - additional request options
1836
1827
  */
1837
- ServiceClient.prototype.get_user_search_check_in = function (options) {
1838
- return this.request("user", "get_user_search_check_in", "get", "/user/checkin/search", null, options);
1839
- };
1828
+ get_user_search_check_in(options) {
1829
+ return this.request("user", "get_user_search_check_in", "get", `/user/checkin/search`, null, options);
1830
+ }
1840
1831
  /**
1841
1832
  * POST /user/{id}/verification - Send email verification to user
1842
1833
  *
1843
1834
  * @param id - realm
1844
1835
  * @param options - additional request options
1845
1836
  */
1846
- ServiceClient.prototype.post_user_send_email_verification = function (id, options) {
1847
- return this.request("user", "post_user_send_email_verification", "post", "/user/".concat(id, "/verification"), null, options);
1848
- };
1837
+ post_user_send_email_verification(id, options) {
1838
+ return this.request("user", "post_user_send_email_verification", "post", `/user/${id}/verification`, null, options);
1839
+ }
1849
1840
  /**
1850
1841
  * PUT /user/{id}/verification/confirm - Verify a users email
1851
1842
  *
@@ -1853,9 +1844,9 @@ var ServiceClient = /** @class */ (function (_super) {
1853
1844
  * @param body
1854
1845
  * @param options - additional request options
1855
1846
  */
1856
- ServiceClient.prototype.put_user_verify_user_email = function (id, body, options) {
1857
- return this.request("user", "put_user_verify_user_email", "put", "/user/".concat(id, "/verification/confirm"), body, options);
1858
- };
1847
+ put_user_verify_user_email(id, body, options) {
1848
+ return this.request("user", "put_user_verify_user_email", "put", `/user/${id}/verification/confirm`, body, options);
1849
+ }
1859
1850
  /**
1860
1851
  * POST /user/{id}/verification/phone - Send phone verification to user
1861
1852
  *
@@ -1863,9 +1854,9 @@ var ServiceClient = /** @class */ (function (_super) {
1863
1854
  * @param body - User phone number to be verified
1864
1855
  * @param options - additional request options
1865
1856
  */
1866
- ServiceClient.prototype.post_user_verification_phone = function (id, body, options) {
1867
- return this.request("user", "post_user_verification_phone", "post", "/user/".concat(id, "/verification/phone"), body, options);
1868
- };
1857
+ post_user_verification_phone(id, body, options) {
1858
+ return this.request("user", "post_user_verification_phone", "post", `/user/${id}/verification/phone`, body, options);
1859
+ }
1869
1860
  /**
1870
1861
  * PUT /user/{id}/verification/phone - Attempt phone verification for user
1871
1862
  *
@@ -1873,36 +1864,36 @@ var ServiceClient = /** @class */ (function (_super) {
1873
1864
  * @param body
1874
1865
  * @param options - additional request options
1875
1866
  */
1876
- ServiceClient.prototype.put_user_verification_phone = function (id, body, options) {
1877
- return this.request("user", "put_user_verification_phone", "put", "/user/".concat(id, "/verification/phone"), body, options);
1878
- };
1867
+ put_user_verification_phone(id, body, options) {
1868
+ return this.request("user", "put_user_verification_phone", "put", `/user/${id}/verification/phone`, body, options);
1869
+ }
1879
1870
  /**
1880
1871
  * POST /user/guest - Creates a guest user
1881
1872
  *
1882
1873
  * @param body - User object that needs to be created
1883
1874
  * @param options - additional request options
1884
1875
  */
1885
- ServiceClient.prototype.post_user_guest_user = function (body, options) {
1886
- return this.request("user", "post_user_guest_user", "post", "/user/guest", body, options);
1887
- };
1876
+ post_user_guest_user(body, options) {
1877
+ return this.request("user", "post_user_guest_user", "post", `/user/guest`, body, options);
1878
+ }
1888
1879
  /**
1889
1880
  * POST /user/guest/token - Creates a temporary guest token
1890
1881
  *
1891
1882
  * @param body - User object that needs to be created
1892
1883
  * @param options - additional request options
1893
1884
  */
1894
- ServiceClient.prototype.post_user_guest_token = function (body, options) {
1895
- return this.request("user", "post_user_guest_token", "post", "/user/guest/token", body, options);
1896
- };
1885
+ post_user_guest_token(body, options) {
1886
+ return this.request("user", "post_user_guest_token", "post", `/user/guest/token`, body, options);
1887
+ }
1897
1888
  /**
1898
1889
  * GET /calendar/{id}
1899
1890
  *
1900
1891
  * @param id - brand
1901
1892
  * @param options - additional request options
1902
1893
  */
1903
- ServiceClient.prototype.get_calendar = function (id, options) {
1904
- return this.request("calendar", "get_calendar", "get", "/calendar/".concat(id), null, options);
1905
- };
1894
+ get_calendar(id, options) {
1895
+ return this.request("calendar", "get_calendar", "get", `/calendar/${id}`, null, options);
1896
+ }
1906
1897
  /**
1907
1898
  * PUT /calendar/{id} - Set the calendar for an id. Overrides previous record
1908
1899
  *
@@ -1910,106 +1901,106 @@ var ServiceClient = /** @class */ (function (_super) {
1910
1901
  * @param body
1911
1902
  * @param options - additional request options
1912
1903
  */
1913
- ServiceClient.prototype.put_calendar = function (id, body, options) {
1914
- return this.request("calendar", "put_calendar", "put", "/calendar/".concat(id), body, options);
1915
- };
1904
+ put_calendar(id, body, options) {
1905
+ return this.request("calendar", "put_calendar", "put", `/calendar/${id}`, body, options);
1906
+ }
1916
1907
  /**
1917
1908
  * DELETE /calendar/{id} - Delete a calendar.
1918
1909
  *
1919
1910
  * @param id - brand
1920
1911
  * @param options - additional request options
1921
1912
  */
1922
- ServiceClient.prototype.delete_calendar = function (id, options) {
1923
- return this.request("calendar", "delete_calendar", "delete", "/calendar/".concat(id), null, options);
1924
- };
1913
+ delete_calendar(id, options) {
1914
+ return this.request("calendar", "delete_calendar", "delete", `/calendar/${id}`, null, options);
1915
+ }
1925
1916
  /**
1926
1917
  * GET /calendar/{id}/cdl - Get the calendar events in a CDL compatible format for next 7 days
1927
1918
  *
1928
1919
  * @param id - brand
1929
1920
  * @param options - additional request options
1930
1921
  */
1931
- ServiceClient.prototype.get_calendar_cdl = function (id, options) {
1932
- return this.request("calendar", "get_calendar_cdl", "get", "/calendar/".concat(id, "/cdl"), null, options);
1933
- };
1922
+ get_calendar_cdl(id, options) {
1923
+ return this.request("calendar", "get_calendar_cdl", "get", `/calendar/${id}/cdl`, null, options);
1924
+ }
1934
1925
  /**
1935
1926
  * GET /calendar/swagger.json
1936
1927
  *
1937
1928
  * @param options - additional request options
1938
1929
  */
1939
- ServiceClient.prototype.get_calendar_swagger = function (options) {
1940
- return this.request("calendar", "get_calendar_swagger", "get", "/calendar/swagger.json", null, options);
1941
- };
1930
+ get_calendar_swagger(options) {
1931
+ return this.request("calendar", "get_calendar_swagger", "get", `/calendar/swagger.json`, null, options);
1932
+ }
1942
1933
  /**
1943
1934
  * POST /calendar/{id}/sync - Trigger synchronization of calendar to location API
1944
1935
  *
1945
1936
  * @param id - brand
1946
1937
  * @param options - additional request options
1947
1938
  */
1948
- ServiceClient.prototype.post_calendar_sync = function (id, options) {
1949
- return this.request("calendar", "post_calendar_sync", "post", "/calendar/".concat(id, "/sync"), null, options);
1950
- };
1939
+ post_calendar_sync(id, options) {
1940
+ return this.request("calendar", "post_calendar_sync", "post", `/calendar/${id}/sync`, null, options);
1941
+ }
1951
1942
  /**
1952
1943
  * POST /file - Upload a file to CDL S3
1953
1944
  *
1954
1945
  * @param body
1955
1946
  * @param options - additional request options
1956
1947
  */
1957
- ServiceClient.prototype.post_file = function (body, options) {
1958
- return this.request("file", "post_file", "post", "/file", body, options);
1959
- };
1948
+ post_file(body, options) {
1949
+ return this.request("file", "post_file", "post", `/file`, body, options);
1950
+ }
1960
1951
  /**
1961
1952
  * DELETE /file - Delete a file from CDL S3
1962
1953
  *
1963
1954
  * @param body
1964
1955
  * @param options - additional request options
1965
1956
  */
1966
- ServiceClient.prototype.delete_file = function (body, options) {
1967
- return this.request("file", "delete_file", "delete", "/file", body, options);
1968
- };
1957
+ delete_file(body, options) {
1958
+ return this.request("file", "delete_file", "delete", `/file`, body, options);
1959
+ }
1969
1960
  /**
1970
1961
  * GET /menu/client/{client_id} - Get menu client
1971
1962
  *
1972
1963
  * @param client_id
1973
1964
  * @param options - additional request options
1974
1965
  */
1975
- ServiceClient.prototype.get_menu_client = function (client_id, options) {
1976
- return this.request("menu", "get_menu_client", "get", "/menu/client/".concat(client_id), null, options);
1977
- };
1966
+ get_menu_client(client_id, options) {
1967
+ return this.request("menu", "get_menu_client", "get", `/menu/client/${client_id}`, null, options);
1968
+ }
1978
1969
  /**
1979
1970
  * GET /menu - Get Menus or search for Menus
1980
1971
  *
1981
1972
  * @param options - additional request options
1982
1973
  */
1983
- ServiceClient.prototype.get_menus = function (options) {
1984
- return this.request("menu", "get_menus", "get", "/menu", null, options);
1985
- };
1974
+ get_menus(options) {
1975
+ return this.request("menu", "get_menus", "get", `/menu`, null, options);
1976
+ }
1986
1977
  /**
1987
1978
  * POST /menu - Create a new Menu
1988
1979
  *
1989
1980
  * @param body
1990
1981
  * @param options - additional request options
1991
1982
  */
1992
- ServiceClient.prototype.post_menu = function (body, options) {
1993
- return this.request("menu", "post_menu", "post", "/menu", body, options);
1994
- };
1983
+ post_menu(body, options) {
1984
+ return this.request("menu", "post_menu", "post", `/menu`, body, options);
1985
+ }
1995
1986
  /**
1996
1987
  * HEAD /menu/{id} - Get an individual Menu
1997
1988
  *
1998
1989
  * @param id - menu
1999
1990
  * @param options - additional request options
2000
1991
  */
2001
- ServiceClient.prototype.head_menu = function (id, options) {
2002
- return this.request("menu", "head_menu", "head", "/menu/".concat(id), null, options);
2003
- };
1992
+ head_menu(id, options) {
1993
+ return this.request("menu", "head_menu", "head", `/menu/${id}`, null, options);
1994
+ }
2004
1995
  /**
2005
1996
  * GET /menu/{id} - Get an individual Menu
2006
1997
  *
2007
1998
  * @param id - menu
2008
1999
  * @param options - additional request options
2009
2000
  */
2010
- ServiceClient.prototype.get_menu = function (id, options) {
2011
- return this.request("menu", "get_menu", "get", "/menu/".concat(id), null, options);
2012
- };
2001
+ get_menu(id, options) {
2002
+ return this.request("menu", "get_menu", "get", `/menu/${id}`, null, options);
2003
+ }
2013
2004
  /**
2014
2005
  * PUT /menu/{id} - Override a complete Menu
2015
2006
  *
@@ -2017,18 +2008,18 @@ var ServiceClient = /** @class */ (function (_super) {
2017
2008
  * @param body
2018
2009
  * @param options - additional request options
2019
2010
  */
2020
- ServiceClient.prototype.put_menu = function (id, body, options) {
2021
- return this.request("menu", "put_menu", "put", "/menu/".concat(id), body, options);
2022
- };
2011
+ put_menu(id, body, options) {
2012
+ return this.request("menu", "put_menu", "put", `/menu/${id}`, body, options);
2013
+ }
2023
2014
  /**
2024
2015
  * DELETE /menu/{id} - Delete a Menu
2025
2016
  *
2026
2017
  * @param id - menu
2027
2018
  * @param options - additional request options
2028
2019
  */
2029
- ServiceClient.prototype.delete_menu = function (id, options) {
2030
- return this.request("menu", "delete_menu", "delete", "/menu/".concat(id), null, options);
2031
- };
2020
+ delete_menu(id, options) {
2021
+ return this.request("menu", "delete_menu", "delete", `/menu/${id}`, null, options);
2022
+ }
2032
2023
  /**
2033
2024
  * PATCH /menu/{id} - Update a menu
2034
2025
  *
@@ -2036,125 +2027,125 @@ var ServiceClient = /** @class */ (function (_super) {
2036
2027
  * @param body
2037
2028
  * @param options - additional request options
2038
2029
  */
2039
- ServiceClient.prototype.patch_menu = function (id, body, options) {
2040
- return this.request("menu", "patch_menu", "patch", "/menu/".concat(id), body, options);
2041
- };
2030
+ patch_menu(id, body, options) {
2031
+ return this.request("menu", "patch_menu", "patch", `/menu/${id}`, body, options);
2032
+ }
2042
2033
  /**
2043
2034
  * POST /menu/import - Import an existing Menu
2044
2035
  *
2045
2036
  * @param body
2046
2037
  * @param options - additional request options
2047
2038
  */
2048
- ServiceClient.prototype.post_menu_import_menu = function (body, options) {
2049
- return this.request("menu", "post_menu_import_menu", "post", "/menu/import", body, options);
2050
- };
2039
+ post_menu_import_menu(body, options) {
2040
+ return this.request("menu", "post_menu_import_menu", "post", `/menu/import`, body, options);
2041
+ }
2051
2042
  /**
2052
2043
  * GET /menu/item/{id} - Get menu item
2053
2044
  *
2054
2045
  * @param id - Item ID
2055
2046
  * @param options - additional request options
2056
2047
  */
2057
- ServiceClient.prototype.get_menu_item = function (id, options) {
2058
- return this.request("menu", "get_menu_item", "get", "/menu/item/".concat(id), null, options);
2059
- };
2048
+ get_menu_item(id, options) {
2049
+ return this.request("menu", "get_menu_item", "get", `/menu/item/${id}`, null, options);
2050
+ }
2060
2051
  /**
2061
2052
  * DELETE /menu/item/{id} - Delete a menu item
2062
2053
  *
2063
2054
  * @param id - Item ID
2064
2055
  * @param options - additional request options
2065
2056
  */
2066
- ServiceClient.prototype.delete_menu_item = function (id, options) {
2067
- return this.request("menu", "delete_menu_item", "delete", "/menu/item/".concat(id), null, options);
2068
- };
2057
+ delete_menu_item(id, options) {
2058
+ return this.request("menu", "delete_menu_item", "delete", `/menu/item/${id}`, null, options);
2059
+ }
2069
2060
  /**
2070
2061
  * POST /menu/item - Create a menu item
2071
2062
  *
2072
2063
  * @param body
2073
2064
  * @param options - additional request options
2074
2065
  */
2075
- ServiceClient.prototype.post_menu_item = function (body, options) {
2076
- return this.request("menu", "post_menu_item", "post", "/menu/item", body, options);
2077
- };
2066
+ post_menu_item(body, options) {
2067
+ return this.request("menu", "post_menu_item", "post", `/menu/item`, body, options);
2068
+ }
2078
2069
  /**
2079
2070
  * GET /menu/items - Search for menu items
2080
2071
  *
2081
2072
  * @param options - additional request options
2082
2073
  */
2083
- ServiceClient.prototype.get_menu_items = function (options) {
2084
- return this.request("menu", "get_menu_items", "get", "/menu/items", null, options);
2085
- };
2074
+ get_menu_items(options) {
2075
+ return this.request("menu", "get_menu_items", "get", `/menu/items`, null, options);
2076
+ }
2086
2077
  /**
2087
2078
  * POST /menu/items/import/{location} - trigger import items
2088
2079
  *
2089
2080
  * @param location - Location ID
2090
2081
  * @param options - additional request options
2091
2082
  */
2092
- ServiceClient.prototype.post_menu_import_items_canteen = function (location, options) {
2093
- return this.request("menu", "post_menu_import_items_canteen", "post", "/menu/items/import/".concat(location), null, options);
2094
- };
2083
+ post_menu_import_items_canteen(location, options) {
2084
+ return this.request("menu", "post_menu_import_items_canteen", "post", `/menu/items/import/${location}`, null, options);
2085
+ }
2095
2086
  /**
2096
2087
  * GET /menu/items/location/{location} - Get all menu items for a location
2097
2088
  *
2098
2089
  * @param location - Location ID
2099
2090
  * @param options - additional request options
2100
2091
  */
2101
- ServiceClient.prototype.get_menu_location_items = function (location, options) {
2102
- return this.request("menu", "get_menu_location_items", "get", "/menu/items/location/".concat(location), null, options);
2103
- };
2092
+ get_menu_location_items(location, options) {
2093
+ return this.request("menu", "get_menu_location_items", "get", `/menu/items/location/${location}`, null, options);
2094
+ }
2104
2095
  /**
2105
2096
  * GET /menu/item/random/location/{location} - Get a random item
2106
2097
  *
2107
2098
  * @param location - Location ID
2108
2099
  * @param options - additional request options
2109
2100
  */
2110
- ServiceClient.prototype.get_menu_location_item_random = function (location, options) {
2111
- return this.request("menu", "get_menu_location_item_random", "get", "/menu/item/random/location/".concat(location), null, options);
2112
- };
2101
+ get_menu_location_item_random(location, options) {
2102
+ return this.request("menu", "get_menu_location_item_random", "get", `/menu/item/random/location/${location}`, null, options);
2103
+ }
2113
2104
  /**
2114
2105
  * GET /menu/items/random/location/{location} - Get a set of random items
2115
2106
  *
2116
2107
  * @param location - Location ID
2117
2108
  * @param options - additional request options
2118
2109
  */
2119
- ServiceClient.prototype.get_menu_location_items_random = function (location, options) {
2120
- return this.request("menu", "get_menu_location_items_random", "get", "/menu/items/random/location/".concat(location), null, options);
2121
- };
2110
+ get_menu_location_items_random(location, options) {
2111
+ return this.request("menu", "get_menu_location_items_random", "get", `/menu/items/random/location/${location}`, null, options);
2112
+ }
2122
2113
  /**
2123
2114
  * GET /menu/sector/{sector} - Get menus that belong to sector
2124
2115
  *
2125
2116
  * @param sector - Sector ID
2126
2117
  * @param options - additional request options
2127
2118
  */
2128
- ServiceClient.prototype.get_menu_sector_menus = function (sector, options) {
2129
- return this.request("menu", "get_menu_sector_menus", "get", "/menu/sector/".concat(sector), null, options);
2130
- };
2119
+ get_menu_sector_menus(sector, options) {
2120
+ return this.request("menu", "get_menu_sector_menus", "get", `/menu/sector/${sector}`, null, options);
2121
+ }
2131
2122
  /**
2132
2123
  * GET /menu/company/{company} - Get menus that belong to company
2133
2124
  *
2134
2125
  * @param company - Company ID
2135
2126
  * @param options - additional request options
2136
2127
  */
2137
- ServiceClient.prototype.get_menu_company_menus = function (company, options) {
2138
- return this.request("menu", "get_menu_company_menus", "get", "/menu/company/".concat(company), null, options);
2139
- };
2128
+ get_menu_company_menus(company, options) {
2129
+ return this.request("menu", "get_menu_company_menus", "get", `/menu/company/${company}`, null, options);
2130
+ }
2140
2131
  /**
2141
2132
  * POST /menu/modifier/group - Create a new Menu Modifier Group
2142
2133
  *
2143
2134
  * @param body
2144
2135
  * @param options - additional request options
2145
2136
  */
2146
- ServiceClient.prototype.post_menu_modifier_group = function (body, options) {
2147
- return this.request("menu", "post_menu_modifier_group", "post", "/menu/modifier/group", body, options);
2148
- };
2137
+ post_menu_modifier_group(body, options) {
2138
+ return this.request("menu", "post_menu_modifier_group", "post", `/menu/modifier/group`, body, options);
2139
+ }
2149
2140
  /**
2150
2141
  * GET /menu/modifier/group/{id} - Get a Menu Modifier Group
2151
2142
  *
2152
2143
  * @param id - modifier_group
2153
2144
  * @param options - additional request options
2154
2145
  */
2155
- ServiceClient.prototype.get_menu_modifier_group = function (id, options) {
2156
- return this.request("menu", "get_menu_modifier_group", "get", "/menu/modifier/group/".concat(id), null, options);
2157
- };
2146
+ get_menu_modifier_group(id, options) {
2147
+ return this.request("menu", "get_menu_modifier_group", "get", `/menu/modifier/group/${id}`, null, options);
2148
+ }
2158
2149
  /**
2159
2150
  * PUT /menu/modifier/group/{id} - Update a Menu Modifier Group
2160
2151
  *
@@ -2162,54 +2153,54 @@ var ServiceClient = /** @class */ (function (_super) {
2162
2153
  * @param body
2163
2154
  * @param options - additional request options
2164
2155
  */
2165
- ServiceClient.prototype.put_menu_modifier_group = function (id, body, options) {
2166
- return this.request("menu", "put_menu_modifier_group", "put", "/menu/modifier/group/".concat(id), body, options);
2167
- };
2156
+ put_menu_modifier_group(id, body, options) {
2157
+ return this.request("menu", "put_menu_modifier_group", "put", `/menu/modifier/group/${id}`, body, options);
2158
+ }
2168
2159
  /**
2169
2160
  * DELETE /menu/modifier/group/{id} - Delete a Menu Modifier Group
2170
2161
  *
2171
2162
  * @param id - modifier_group
2172
2163
  * @param options - additional request options
2173
2164
  */
2174
- ServiceClient.prototype.delete_menu_modifier_group = function (id, options) {
2175
- return this.request("menu", "delete_menu_modifier_group", "delete", "/menu/modifier/group/".concat(id), null, options);
2176
- };
2165
+ delete_menu_modifier_group(id, options) {
2166
+ return this.request("menu", "delete_menu_modifier_group", "delete", `/menu/modifier/group/${id}`, null, options);
2167
+ }
2177
2168
  /**
2178
2169
  * GET /menu/modifier/group/company/{company} - Get the modifier groups that belong to company
2179
2170
  *
2180
2171
  * @param company - Company ID
2181
2172
  * @param options - additional request options
2182
2173
  */
2183
- ServiceClient.prototype.get_menu_company_modifier_groups = function (company, options) {
2184
- return this.request("menu", "get_menu_company_modifier_groups", "get", "/menu/modifier/group/company/".concat(company), null, options);
2185
- };
2174
+ get_menu_company_modifier_groups(company, options) {
2175
+ return this.request("menu", "get_menu_company_modifier_groups", "get", `/menu/modifier/group/company/${company}`, null, options);
2176
+ }
2186
2177
  /**
2187
2178
  * GET /menu/modifier/group/company/{company}/export - Export company modifier groups to zipped excel file.
2188
2179
  *
2189
2180
  * @param company - Company ID
2190
2181
  * @param options - additional request options
2191
2182
  */
2192
- ServiceClient.prototype.get_menu_company_modifier_groups_export = function (company, options) {
2193
- return this.request("menu", "get_menu_company_modifier_groups_export", "get", "/menu/modifier/group/company/".concat(company, "/export"), null, options);
2194
- };
2183
+ get_menu_company_modifier_groups_export(company, options) {
2184
+ return this.request("menu", "get_menu_company_modifier_groups_export", "get", `/menu/modifier/group/company/${company}/export`, null, options);
2185
+ }
2195
2186
  /**
2196
2187
  * GET /menu/{id}/export - Export menu set to zipped excel file.
2197
2188
  *
2198
2189
  * @param id - menu; TODO: cannot use compassdigital.id as path parameter
2199
2190
  * @param options - additional request options
2200
2191
  */
2201
- ServiceClient.prototype.get_menu_export = function (id, options) {
2202
- return this.request("menu", "get_menu_export", "get", "/menu/".concat(id, "/export"), null, options);
2203
- };
2192
+ get_menu_export(id, options) {
2193
+ return this.request("menu", "get_menu_export", "get", `/menu/${id}/export`, null, options);
2194
+ }
2204
2195
  /**
2205
2196
  * GET /menu/partial/{id}/groups - Get an individual menu with its categories only partially loaded. (No items)
2206
2197
  *
2207
2198
  * @param id - menu; TODO: cannot use compassdigital.id as path parameter
2208
2199
  * @param options - additional request options
2209
2200
  */
2210
- ServiceClient.prototype.get_menu_partial_groups = function (id, options) {
2211
- return this.request("menu", "get_menu_partial_groups", "get", "/menu/partial/".concat(id, "/groups"), null, options);
2212
- };
2201
+ get_menu_partial_groups(id, options) {
2202
+ return this.request("menu", "get_menu_partial_groups", "get", `/menu/partial/${id}/groups`, null, options);
2203
+ }
2213
2204
  /**
2214
2205
  * GET /menu/partial/{id}/group/{group_id}/items - Get an individual menu with its categories only partially loaded. (No items)
2215
2206
  *
@@ -2217,9 +2208,9 @@ var ServiceClient = /** @class */ (function (_super) {
2217
2208
  * @param group_id - group; TODO: cannot use compassdigital.id as path parameter
2218
2209
  * @param options - additional request options
2219
2210
  */
2220
- ServiceClient.prototype.get_menu_partial_group_items = function (id, group_id, options) {
2221
- return this.request("menu", "get_menu_partial_group_items", "get", "/menu/partial/".concat(id, "/group/").concat(group_id, "/items"), null, options);
2222
- };
2211
+ get_menu_partial_group_items(id, group_id, options) {
2212
+ return this.request("menu", "get_menu_partial_group_items", "get", `/menu/partial/${id}/group/${group_id}/items`, null, options);
2213
+ }
2223
2214
  /**
2224
2215
  * POST /menu/partial/{id}/group/{group_id}/item/options - Get menu items's options
2225
2216
  *
@@ -2228,26 +2219,26 @@ var ServiceClient = /** @class */ (function (_super) {
2228
2219
  * @param body
2229
2220
  * @param options - additional request options
2230
2221
  */
2231
- ServiceClient.prototype.post_menu_partial_group_item_options = function (id, group_id, body, options) {
2232
- return this.request("menu", "post_menu_partial_group_item_options", "post", "/menu/partial/".concat(id, "/group/").concat(group_id, "/item/options"), body, options);
2233
- };
2222
+ post_menu_partial_group_item_options(id, group_id, body, options) {
2223
+ return this.request("menu", "post_menu_partial_group_item_options", "post", `/menu/partial/${id}/group/${group_id}/item/options`, body, options);
2224
+ }
2234
2225
  /**
2235
2226
  * GET /notification - Get all notifications
2236
2227
  *
2237
2228
  * @param options - additional request options
2238
2229
  */
2239
- ServiceClient.prototype.get_notifications = function (options) {
2240
- return this.request("notification", "get_notifications", "get", "/notification", null, options);
2241
- };
2230
+ get_notifications(options) {
2231
+ return this.request("notification", "get_notifications", "get", `/notification`, null, options);
2232
+ }
2242
2233
  /**
2243
2234
  * POST /notification - Create a notification
2244
2235
  *
2245
2236
  * @param body
2246
2237
  * @param options - additional request options
2247
2238
  */
2248
- ServiceClient.prototype.post_notification = function (body, options) {
2249
- return this.request("notification", "post_notification", "post", "/notification", body, options);
2250
- };
2239
+ post_notification(body, options) {
2240
+ return this.request("notification", "post_notification", "post", `/notification`, body, options);
2241
+ }
2251
2242
  /**
2252
2243
  * PATCH /notification/{id} - Update a notification
2253
2244
  *
@@ -2255,18 +2246,18 @@ var ServiceClient = /** @class */ (function (_super) {
2255
2246
  * @param body
2256
2247
  * @param options - additional request options
2257
2248
  */
2258
- ServiceClient.prototype.patch_notification = function (id, body, options) {
2259
- return this.request("notification", "patch_notification", "patch", "/notification/".concat(id), body, options);
2260
- };
2249
+ patch_notification(id, body, options) {
2250
+ return this.request("notification", "patch_notification", "patch", `/notification/${id}`, body, options);
2251
+ }
2261
2252
  /**
2262
2253
  * DELETE /notification/{id} - Delete a notification
2263
2254
  *
2264
2255
  * @param id - Id of a notification
2265
2256
  * @param options - additional request options
2266
2257
  */
2267
- ServiceClient.prototype.delete_notification = function (id, options) {
2268
- return this.request("notification", "delete_notification", "delete", "/notification/".concat(id), null, options);
2269
- };
2258
+ delete_notification(id, options) {
2259
+ return this.request("notification", "delete_notification", "delete", `/notification/${id}`, null, options);
2260
+ }
2270
2261
  /**
2271
2262
  * POST /notification/{id}/status - Set a notification status for request user
2272
2263
  *
@@ -2274,42 +2265,42 @@ var ServiceClient = /** @class */ (function (_super) {
2274
2265
  * @param body - Status to set
2275
2266
  * @param options - additional request options
2276
2267
  */
2277
- ServiceClient.prototype.post_notification_status = function (id, body, options) {
2278
- return this.request("notification", "post_notification_status", "post", "/notification/".concat(id, "/status"), body, options);
2279
- };
2268
+ post_notification_status(id, body, options) {
2269
+ return this.request("notification", "post_notification_status", "post", `/notification/${id}/status`, body, options);
2270
+ }
2280
2271
  /**
2281
2272
  * GET /notification/swagger.json - Get a swagger for notification service
2282
2273
  *
2283
2274
  * @param options - additional request options
2284
2275
  */
2285
- ServiceClient.prototype.get_notification_swagger = function (options) {
2286
- return this.request("notification", "get_notification_swagger", "get", "/notification/swagger.json", null, options);
2287
- };
2276
+ get_notification_swagger(options) {
2277
+ return this.request("notification", "get_notification_swagger", "get", `/notification/swagger.json`, null, options);
2278
+ }
2288
2279
  /**
2289
2280
  * GET /compassconnect/get_oms_token - Gets an OMS token
2290
2281
  *
2291
2282
  * @param options - additional request options
2292
2283
  */
2293
- ServiceClient.prototype.get_compassconnect_oms_token = function (options) {
2294
- return this.request("compassconnect", "get_compassconnect_oms_token", "get", "/compassconnect/get_oms_token", null, options);
2295
- };
2284
+ get_compassconnect_oms_token(options) {
2285
+ return this.request("compassconnect", "get_compassconnect_oms_token", "get", `/compassconnect/get_oms_token`, null, options);
2286
+ }
2296
2287
  /**
2297
2288
  * POST /vendor/application - Create a new application for review
2298
2289
  *
2299
2290
  * @param body
2300
2291
  * @param options - additional request options
2301
2292
  */
2302
- ServiceClient.prototype.post_vendor_application = function (body, options) {
2303
- return this.request("vendor", "post_vendor_application", "post", "/vendor/application", body, options);
2304
- };
2293
+ post_vendor_application(body, options) {
2294
+ return this.request("vendor", "post_vendor_application", "post", `/vendor/application`, body, options);
2295
+ }
2305
2296
  /**
2306
2297
  * GET /vendor/application - Get a list of all applications
2307
2298
  *
2308
2299
  * @param options - additional request options
2309
2300
  */
2310
- ServiceClient.prototype.get_vendor_application = function (options) {
2311
- return this.request("vendor", "get_vendor_application", "get", "/vendor/application", null, options);
2312
- };
2301
+ get_vendor_application(options) {
2302
+ return this.request("vendor", "get_vendor_application", "get", `/vendor/application`, null, options);
2303
+ }
2313
2304
  /**
2314
2305
  * PATCH /vendor/application/{id} - Update an application (or update status)
2315
2306
  *
@@ -2317,35 +2308,35 @@ var ServiceClient = /** @class */ (function (_super) {
2317
2308
  * @param body
2318
2309
  * @param options - additional request options
2319
2310
  */
2320
- ServiceClient.prototype.patch_vendor_application = function (id, body, options) {
2321
- return this.request("vendor", "patch_vendor_application", "patch", "/vendor/application/".concat(id), body, options);
2322
- };
2311
+ patch_vendor_application(id, body, options) {
2312
+ return this.request("vendor", "patch_vendor_application", "patch", `/vendor/application/${id}`, body, options);
2313
+ }
2323
2314
  /**
2324
2315
  * POST /vendor - Create new vendor
2325
2316
  *
2326
2317
  * @param body
2327
2318
  * @param options - additional request options
2328
2319
  */
2329
- ServiceClient.prototype.post_vendor = function (body, options) {
2330
- return this.request("vendor", "post_vendor", "post", "/vendor", body, options);
2331
- };
2320
+ post_vendor(body, options) {
2321
+ return this.request("vendor", "post_vendor", "post", `/vendor`, body, options);
2322
+ }
2332
2323
  /**
2333
2324
  * GET /vendor - Get all Vendors
2334
2325
  *
2335
2326
  * @param options - additional request options
2336
2327
  */
2337
- ServiceClient.prototype.get_vendors = function (options) {
2338
- return this.request("vendor", "get_vendors", "get", "/vendor", null, options);
2339
- };
2328
+ get_vendors(options) {
2329
+ return this.request("vendor", "get_vendors", "get", `/vendor`, null, options);
2330
+ }
2340
2331
  /**
2341
2332
  * GET /vendor/{id} - Get info about the Vendor
2342
2333
  *
2343
2334
  * @param id - vendor
2344
2335
  * @param options - additional request options
2345
2336
  */
2346
- ServiceClient.prototype.get_vendor = function (id, options) {
2347
- return this.request("vendor", "get_vendor", "get", "/vendor/".concat(id), null, options);
2348
- };
2337
+ get_vendor(id, options) {
2338
+ return this.request("vendor", "get_vendor", "get", `/vendor/${id}`, null, options);
2339
+ }
2349
2340
  /**
2350
2341
  * PATCH /vendor/{id} - Update info about the Vendor
2351
2342
  *
@@ -2353,35 +2344,35 @@ var ServiceClient = /** @class */ (function (_super) {
2353
2344
  * @param body
2354
2345
  * @param options - additional request options
2355
2346
  */
2356
- ServiceClient.prototype.patch_vendor = function (id, body, options) {
2357
- return this.request("vendor", "patch_vendor", "patch", "/vendor/".concat(id), body, options);
2358
- };
2347
+ patch_vendor(id, body, options) {
2348
+ return this.request("vendor", "patch_vendor", "patch", `/vendor/${id}`, body, options);
2349
+ }
2359
2350
  /**
2360
2351
  * GET /vendor/auth - Get access/refresh tokens for accessing our APIs
2361
2352
  *
2362
2353
  * @param options - additional request options
2363
2354
  */
2364
- ServiceClient.prototype.get_vendor_auth = function (options) {
2365
- return this.request("vendor", "get_vendor_auth", "get", "/vendor/auth", null, options);
2366
- };
2355
+ get_vendor_auth(options) {
2356
+ return this.request("vendor", "get_vendor_auth", "get", `/vendor/auth`, null, options);
2357
+ }
2367
2358
  /**
2368
2359
  * POST /vendor/auth - Get new access token using refresh token and previous token
2369
2360
  *
2370
2361
  * @param body
2371
2362
  * @param options - additional request options
2372
2363
  */
2373
- ServiceClient.prototype.post_vendor_auth = function (body, options) {
2374
- return this.request("vendor", "post_vendor_auth", "post", "/vendor/auth", body, options);
2375
- };
2364
+ post_vendor_auth(body, options) {
2365
+ return this.request("vendor", "post_vendor_auth", "post", `/vendor/auth`, body, options);
2366
+ }
2376
2367
  /**
2377
2368
  * GET /vendor/{id}/key - Get list of Vendor keys
2378
2369
  *
2379
2370
  * @param id - vendor
2380
2371
  * @param options - additional request options
2381
2372
  */
2382
- ServiceClient.prototype.get_vendor_keys = function (id, options) {
2383
- return this.request("vendor", "get_vendor_keys", "get", "/vendor/".concat(id, "/key"), null, options);
2384
- };
2373
+ get_vendor_keys(id, options) {
2374
+ return this.request("vendor", "get_vendor_keys", "get", `/vendor/${id}/key`, null, options);
2375
+ }
2385
2376
  /**
2386
2377
  * POST /vendor/{id}/key - Create new key for the vendor
2387
2378
  *
@@ -2389,9 +2380,9 @@ var ServiceClient = /** @class */ (function (_super) {
2389
2380
  * @param body
2390
2381
  * @param options - additional request options
2391
2382
  */
2392
- ServiceClient.prototype.post_vendor_key = function (id, body, options) {
2393
- return this.request("vendor", "post_vendor_key", "post", "/vendor/".concat(id, "/key"), body, options);
2394
- };
2383
+ post_vendor_key(id, body, options) {
2384
+ return this.request("vendor", "post_vendor_key", "post", `/vendor/${id}/key`, body, options);
2385
+ }
2395
2386
  /**
2396
2387
  * GET /vendor/{id}/key/{key} - Get info about vendor key
2397
2388
  *
@@ -2399,9 +2390,9 @@ var ServiceClient = /** @class */ (function (_super) {
2399
2390
  * @param key - key
2400
2391
  * @param options - additional request options
2401
2392
  */
2402
- ServiceClient.prototype.get_vendor_key = function (id, key, options) {
2403
- return this.request("vendor", "get_vendor_key", "get", "/vendor/".concat(id, "/key/").concat(key), null, options);
2404
- };
2393
+ get_vendor_key(id, key, options) {
2394
+ return this.request("vendor", "get_vendor_key", "get", `/vendor/${id}/key/${key}`, null, options);
2395
+ }
2405
2396
  /**
2406
2397
  * PATCH /vendor/{id}/key/{key} - Update info for vendor key
2407
2398
  *
@@ -2410,9 +2401,9 @@ var ServiceClient = /** @class */ (function (_super) {
2410
2401
  * @param body
2411
2402
  * @param options - additional request options
2412
2403
  */
2413
- ServiceClient.prototype.patch_vendor_key = function (id, key, body, options) {
2414
- return this.request("vendor", "patch_vendor_key", "patch", "/vendor/".concat(id, "/key/").concat(key), body, options);
2415
- };
2404
+ patch_vendor_key(id, key, body, options) {
2405
+ return this.request("vendor", "patch_vendor_key", "patch", `/vendor/${id}/key/${key}`, body, options);
2406
+ }
2416
2407
  /**
2417
2408
  * DELETE /vendor/{id}/key/{key} - Mark key as expired
2418
2409
  *
@@ -2420,9 +2411,9 @@ var ServiceClient = /** @class */ (function (_super) {
2420
2411
  * @param key - key
2421
2412
  * @param options - additional request options
2422
2413
  */
2423
- ServiceClient.prototype.delete_vendor_key = function (id, key, options) {
2424
- return this.request("vendor", "delete_vendor_key", "delete", "/vendor/".concat(id, "/key/").concat(key), null, options);
2425
- };
2414
+ delete_vendor_key(id, key, options) {
2415
+ return this.request("vendor", "delete_vendor_key", "delete", `/vendor/${id}/key/${key}`, null, options);
2416
+ }
2426
2417
  /**
2427
2418
  * POST /vendor/{id}/key/{key}/rotate - Rotate vendor key
2428
2419
  *
@@ -2430,9 +2421,9 @@ var ServiceClient = /** @class */ (function (_super) {
2430
2421
  * @param key - key
2431
2422
  * @param options - additional request options
2432
2423
  */
2433
- ServiceClient.prototype.post_vendor_key_rotate = function (id, key, options) {
2434
- return this.request("vendor", "post_vendor_key_rotate", "post", "/vendor/".concat(id, "/key/").concat(key, "/rotate"), null, options);
2435
- };
2424
+ post_vendor_key_rotate(id, key, options) {
2425
+ return this.request("vendor", "post_vendor_key_rotate", "post", `/vendor/${id}/key/${key}/rotate`, null, options);
2426
+ }
2436
2427
  /**
2437
2428
  * POST /vendor/{id}/reset/password - Reset the existing password for vendor
2438
2429
  *
@@ -2440,44 +2431,44 @@ var ServiceClient = /** @class */ (function (_super) {
2440
2431
  * @param body
2441
2432
  * @param options - additional request options
2442
2433
  */
2443
- ServiceClient.prototype.post_vendor_reset_password = function (id, body, options) {
2444
- return this.request("vendor", "post_vendor_reset_password", "post", "/vendor/".concat(id, "/reset/password"), body, options);
2445
- };
2434
+ post_vendor_reset_password(id, body, options) {
2435
+ return this.request("vendor", "post_vendor_reset_password", "post", `/vendor/${id}/reset/password`, body, options);
2436
+ }
2446
2437
  /**
2447
2438
  * POST /permission - Creates a new permission for a role or a user
2448
2439
  *
2449
2440
  * @param body
2450
2441
  * @param options - additional request options
2451
2442
  */
2452
- ServiceClient.prototype.post_permission = function (body, options) {
2453
- return this.request("permission", "post_permission", "post", "/permission", body, options);
2454
- };
2443
+ post_permission(body, options) {
2444
+ return this.request("permission", "post_permission", "post", `/permission`, body, options);
2445
+ }
2455
2446
  /**
2456
2447
  * DELETE /permission/{id} - Delete a permission from a role or a user
2457
2448
  *
2458
2449
  * @param id - permission
2459
2450
  * @param options - additional request options
2460
2451
  */
2461
- ServiceClient.prototype.delete_permission = function (id, options) {
2462
- return this.request("permission", "delete_permission", "delete", "/permission/".concat(id), null, options);
2463
- };
2452
+ delete_permission(id, options) {
2453
+ return this.request("permission", "delete_permission", "delete", `/permission/${id}`, null, options);
2454
+ }
2464
2455
  /**
2465
2456
  * GET /permission/role - Get Roles, with pagination and filters
2466
2457
  *
2467
2458
  * @param options - additional request options
2468
2459
  */
2469
- ServiceClient.prototype.get_permission_role = function (options) {
2470
- return this.request("permission", "get_permission_role", "get", "/permission/role", null, options);
2471
- };
2460
+ get_permission_role(options) {
2461
+ return this.request("permission", "get_permission_role", "get", `/permission/role`, null, options);
2462
+ }
2472
2463
  /**
2473
2464
  * POST /permission/role - Create a new role
2474
2465
  *
2475
2466
  * @param body
2476
2467
  * @param options - additional request options
2477
2468
  */
2478
- ServiceClient.prototype.post_permission_role = function (body, options) {
2479
- return this.request("permission", "post_permission_role", "post", "/permission/role", body, options);
2480
- };
2469
+ post_permission_role(body, options) {
2470
+ return this.request("permission", "post_permission_role", "post", `/permission/role`, body, options);
2471
+ }
2481
2472
  /**
2482
2473
  * PATCH /permission/role/{id} - Update a role
2483
2474
  *
@@ -2485,27 +2476,27 @@ var ServiceClient = /** @class */ (function (_super) {
2485
2476
  * @param body
2486
2477
  * @param options - additional request options
2487
2478
  */
2488
- ServiceClient.prototype.patch_permission_role = function (id, body, options) {
2489
- return this.request("permission", "patch_permission_role", "patch", "/permission/role/".concat(id), body, options);
2490
- };
2479
+ patch_permission_role(id, body, options) {
2480
+ return this.request("permission", "patch_permission_role", "patch", `/permission/role/${id}`, body, options);
2481
+ }
2491
2482
  /**
2492
2483
  * GET /permission/recipient/{recipient_id} - Get permissions for a recipient(role or user id)
2493
2484
  *
2494
2485
  * @param recipient_id - TODO: add parameter to swagger.json
2495
2486
  * @param options - additional request options
2496
2487
  */
2497
- ServiceClient.prototype.get_permission_recipient = function (recipient_id, options) {
2498
- return this.request("permission", "get_permission_recipient", "get", "/permission/recipient/".concat(recipient_id), null, options);
2499
- };
2488
+ get_permission_recipient(recipient_id, options) {
2489
+ return this.request("permission", "get_permission_recipient", "get", `/permission/recipient/${recipient_id}`, null, options);
2490
+ }
2500
2491
  /**
2501
2492
  * GET /permission/role/user/{user_id} - Get a list of role assignments for a user
2502
2493
  *
2503
2494
  * @param user_id - Id of a user
2504
2495
  * @param options - additional request options
2505
2496
  */
2506
- ServiceClient.prototype.get_permission_role_user = function (user_id, options) {
2507
- return this.request("permission", "get_permission_role_user", "get", "/permission/role/user/".concat(user_id), null, options);
2508
- };
2497
+ get_permission_role_user(user_id, options) {
2498
+ return this.request("permission", "get_permission_role_user", "get", `/permission/role/user/${user_id}`, null, options);
2499
+ }
2509
2500
  /**
2510
2501
  * POST /permission/role/user/{user_id} - Assign a role to a user
2511
2502
  *
@@ -2513,9 +2504,9 @@ var ServiceClient = /** @class */ (function (_super) {
2513
2504
  * @param body
2514
2505
  * @param options - additional request options
2515
2506
  */
2516
- ServiceClient.prototype.post_permission_role_user = function (user_id, body, options) {
2517
- return this.request("permission", "post_permission_role_user", "post", "/permission/role/user/".concat(user_id), body, options);
2518
- };
2507
+ post_permission_role_user(user_id, body, options) {
2508
+ return this.request("permission", "post_permission_role_user", "post", `/permission/role/user/${user_id}`, body, options);
2509
+ }
2519
2510
  /**
2520
2511
  * DELETE /permission/role/user/{user_id} - Remove a role from a user
2521
2512
  *
@@ -2523,9 +2514,9 @@ var ServiceClient = /** @class */ (function (_super) {
2523
2514
  * @param body
2524
2515
  * @param options - additional request options
2525
2516
  */
2526
- ServiceClient.prototype.delete_permission_role_user = function (user_id, body, options) {
2527
- return this.request("permission", "delete_permission_role_user", "delete", "/permission/role/user/".concat(user_id), body, options);
2528
- };
2517
+ delete_permission_role_user(user_id, body, options) {
2518
+ return this.request("permission", "delete_permission_role_user", "delete", `/permission/role/user/${user_id}`, body, options);
2519
+ }
2529
2520
  /**
2530
2521
  * POST /loyalty/{id}/enroll/{user_id} - Enroll logged in user in Loyalty program
2531
2522
  *
@@ -2533,18 +2524,18 @@ var ServiceClient = /** @class */ (function (_super) {
2533
2524
  * @param user_id - CompassDigital User id
2534
2525
  * @param options - additional request options
2535
2526
  */
2536
- ServiceClient.prototype.post_loyalty_enroll = function (id, user_id, options) {
2537
- return this.request("loyalty", "post_loyalty_enroll", "post", "/loyalty/".concat(id, "/enroll/").concat(user_id), null, options);
2538
- };
2527
+ post_loyalty_enroll(id, user_id, options) {
2528
+ return this.request("loyalty", "post_loyalty_enroll", "post", `/loyalty/${id}/enroll/${user_id}`, null, options);
2529
+ }
2539
2530
  /**
2540
2531
  * GET /loyalty/{id}/points - Get potential points user could earn from certain event in Loyalty program
2541
2532
  *
2542
2533
  * @param id - Loyalty Provider id
2543
2534
  * @param options - additional request options
2544
2535
  */
2545
- ServiceClient.prototype.get_loyalty_points = function (id, options) {
2546
- return this.request("loyalty", "get_loyalty_points", "get", "/loyalty/".concat(id, "/points"), null, options);
2547
- };
2536
+ get_loyalty_points(id, options) {
2537
+ return this.request("loyalty", "get_loyalty_points", "get", `/loyalty/${id}/points`, null, options);
2538
+ }
2548
2539
  /**
2549
2540
  * GET /loyalty/{id}/offers/{user_id} - Get offers for the logged in user
2550
2541
  *
@@ -2552,9 +2543,9 @@ var ServiceClient = /** @class */ (function (_super) {
2552
2543
  * @param user_id - CompassDigital User id
2553
2544
  * @param options - additional request options
2554
2545
  */
2555
- ServiceClient.prototype.get_loyalty_offers = function (id, user_id, options) {
2556
- return this.request("loyalty", "get_loyalty_offers", "get", "/loyalty/".concat(id, "/offers/").concat(user_id), null, options);
2557
- };
2546
+ get_loyalty_offers(id, user_id, options) {
2547
+ return this.request("loyalty", "get_loyalty_offers", "get", `/loyalty/${id}/offers/${user_id}`, null, options);
2548
+ }
2558
2549
  /**
2559
2550
  * GET /loyalty/{id}/enrollmentstatus/{user_id} - Get enrollment status for logged in user
2560
2551
  *
@@ -2562,9 +2553,9 @@ var ServiceClient = /** @class */ (function (_super) {
2562
2553
  * @param user_id - CompassDigital User id
2563
2554
  * @param options - additional request options
2564
2555
  */
2565
- ServiceClient.prototype.get_loyalty_enrollmentstatus = function (id, user_id, options) {
2566
- return this.request("loyalty", "get_loyalty_enrollmentstatus", "get", "/loyalty/".concat(id, "/enrollmentstatus/").concat(user_id), null, options);
2567
- };
2556
+ get_loyalty_enrollmentstatus(id, user_id, options) {
2557
+ return this.request("loyalty", "get_loyalty_enrollmentstatus", "get", `/loyalty/${id}/enrollmentstatus/${user_id}`, null, options);
2558
+ }
2568
2559
  /**
2569
2560
  * GET /loyalty/{id}/balance/{user_id} - Get loyalty point balance for logged in user
2570
2561
  *
@@ -2572,9 +2563,9 @@ var ServiceClient = /** @class */ (function (_super) {
2572
2563
  * @param user_id - CompassDigital User id
2573
2564
  * @param options - additional request options
2574
2565
  */
2575
- ServiceClient.prototype.get_loyalty_balance = function (id, user_id, options) {
2576
- return this.request("loyalty", "get_loyalty_balance", "get", "/loyalty/".concat(id, "/balance/").concat(user_id), null, options);
2577
- };
2566
+ get_loyalty_balance(id, user_id, options) {
2567
+ return this.request("loyalty", "get_loyalty_balance", "get", `/loyalty/${id}/balance/${user_id}`, null, options);
2568
+ }
2578
2569
  /**
2579
2570
  * GET /loyalty/{id}/opportunities/{user_id} - Get earning opportunities for the logged in user
2580
2571
  *
@@ -2582,9 +2573,9 @@ var ServiceClient = /** @class */ (function (_super) {
2582
2573
  * @param user_id - CompassDigital User id
2583
2574
  * @param options - additional request options
2584
2575
  */
2585
- ServiceClient.prototype.get_loyalty_opportunities = function (id, user_id, options) {
2586
- return this.request("loyalty", "get_loyalty_opportunities", "get", "/loyalty/".concat(id, "/opportunities/").concat(user_id), null, options);
2587
- };
2576
+ get_loyalty_opportunities(id, user_id, options) {
2577
+ return this.request("loyalty", "get_loyalty_opportunities", "get", `/loyalty/${id}/opportunities/${user_id}`, null, options);
2578
+ }
2588
2579
  /**
2589
2580
  * POST /loyalty/{id}/opportunities/{user_id} - Record an event for the logged in user
2590
2581
  *
@@ -2592,9 +2583,9 @@ var ServiceClient = /** @class */ (function (_super) {
2592
2583
  * @param user_id - CompassDigital User id
2593
2584
  * @param options - additional request options
2594
2585
  */
2595
- ServiceClient.prototype.post_loyalty_opportunities = function (id, user_id, options) {
2596
- return this.request("loyalty", "post_loyalty_opportunities", "post", "/loyalty/".concat(id, "/opportunities/").concat(user_id), null, options);
2597
- };
2586
+ post_loyalty_opportunities(id, user_id, options) {
2587
+ return this.request("loyalty", "post_loyalty_opportunities", "post", `/loyalty/${id}/opportunities/${user_id}`, null, options);
2588
+ }
2598
2589
  /**
2599
2590
  * GET /loyalty/{id}/rewards/{user_id} - Get rewards available for the logged in user
2600
2591
  *
@@ -2602,9 +2593,9 @@ var ServiceClient = /** @class */ (function (_super) {
2602
2593
  * @param user_id - CompassDigital User id
2603
2594
  * @param options - additional request options
2604
2595
  */
2605
- ServiceClient.prototype.get_loyalty_rewards = function (id, user_id, options) {
2606
- return this.request("loyalty", "get_loyalty_rewards", "get", "/loyalty/".concat(id, "/rewards/").concat(user_id), null, options);
2607
- };
2596
+ get_loyalty_rewards(id, user_id, options) {
2597
+ return this.request("loyalty", "get_loyalty_rewards", "get", `/loyalty/${id}/rewards/${user_id}`, null, options);
2598
+ }
2608
2599
  /**
2609
2600
  * GET /loyalty/{id}/coupons/{user_id} - Get coupons available for the logged in user
2610
2601
  *
@@ -2612,9 +2603,9 @@ var ServiceClient = /** @class */ (function (_super) {
2612
2603
  * @param user_id - CompassDigital User id
2613
2604
  * @param options - additional request options
2614
2605
  */
2615
- ServiceClient.prototype.get_loyalty_coupons = function (id, user_id, options) {
2616
- return this.request("loyalty", "get_loyalty_coupons", "get", "/loyalty/".concat(id, "/coupons/").concat(user_id), null, options);
2617
- };
2606
+ get_loyalty_coupons(id, user_id, options) {
2607
+ return this.request("loyalty", "get_loyalty_coupons", "get", `/loyalty/${id}/coupons/${user_id}`, null, options);
2608
+ }
2618
2609
  /**
2619
2610
  * GET /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for an order based on amount.
2620
2611
  *
@@ -2622,9 +2613,9 @@ var ServiceClient = /** @class */ (function (_super) {
2622
2613
  * @param user_id - CompassDigital User id
2623
2614
  * @param options - additional request options
2624
2615
  */
2625
- ServiceClient.prototype.get_loyalty_orderpoints = function (id, user_id, options) {
2626
- return this.request("loyalty", "get_loyalty_orderpoints", "get", "/loyalty/".concat(id, "/orderpoints/").concat(user_id), null, options);
2627
- };
2616
+ get_loyalty_orderpoints(id, user_id, options) {
2617
+ return this.request("loyalty", "get_loyalty_orderpoints", "get", `/loyalty/${id}/orderpoints/${user_id}`, null, options);
2618
+ }
2628
2619
  /**
2629
2620
  * POST /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for a order based on amount and items
2630
2621
  *
@@ -2633,9 +2624,9 @@ var ServiceClient = /** @class */ (function (_super) {
2633
2624
  * @param body
2634
2625
  * @param options - additional request options
2635
2626
  */
2636
- ServiceClient.prototype.post_loyalty_orderpoints = function (id, user_id, body, options) {
2637
- return this.request("loyalty", "post_loyalty_orderpoints", "post", "/loyalty/".concat(id, "/orderpoints/").concat(user_id), body, options);
2638
- };
2627
+ post_loyalty_orderpoints(id, user_id, body, options) {
2628
+ return this.request("loyalty", "post_loyalty_orderpoints", "post", `/loyalty/${id}/orderpoints/${user_id}`, body, options);
2629
+ }
2639
2630
  /**
2640
2631
  * POST /loyalty/{id}/purchase/{user_id} - Record purchase event
2641
2632
  *
@@ -2644,9 +2635,9 @@ var ServiceClient = /** @class */ (function (_super) {
2644
2635
  * @param body
2645
2636
  * @param options - additional request options
2646
2637
  */
2647
- ServiceClient.prototype.post_loyalty_purchase = function (id, user_id, body, options) {
2648
- return this.request("loyalty", "post_loyalty_purchase", "post", "/loyalty/".concat(id, "/purchase/").concat(user_id), body, options);
2649
- };
2638
+ post_loyalty_purchase(id, user_id, body, options) {
2639
+ return this.request("loyalty", "post_loyalty_purchase", "post", `/loyalty/${id}/purchase/${user_id}`, body, options);
2640
+ }
2650
2641
  /**
2651
2642
  * POST /loyalty/{id}/buyreward/{user_id} - Redeem rewards to coupons
2652
2643
  *
@@ -2655,9 +2646,9 @@ var ServiceClient = /** @class */ (function (_super) {
2655
2646
  * @param body
2656
2647
  * @param options - additional request options
2657
2648
  */
2658
- ServiceClient.prototype.post_loyalty_buyreward = function (id, user_id, body, options) {
2659
- return this.request("loyalty", "post_loyalty_buyreward", "post", "/loyalty/".concat(id, "/buyreward/").concat(user_id), body, options);
2660
- };
2649
+ post_loyalty_buyreward(id, user_id, body, options) {
2650
+ return this.request("loyalty", "post_loyalty_buyreward", "post", `/loyalty/${id}/buyreward/${user_id}`, body, options);
2651
+ }
2661
2652
  /**
2662
2653
  * GET /loyalty/{id}/history/{user_id} - Get history of loyalty transactions for user
2663
2654
  *
@@ -2665,9 +2656,9 @@ var ServiceClient = /** @class */ (function (_super) {
2665
2656
  * @param user_id - CompassDigital User id
2666
2657
  * @param options - additional request options
2667
2658
  */
2668
- ServiceClient.prototype.get_loyalty_history = function (id, user_id, options) {
2669
- return this.request("loyalty", "get_loyalty_history", "get", "/loyalty/".concat(id, "/history/").concat(user_id), null, options);
2670
- };
2659
+ get_loyalty_history(id, user_id, options) {
2660
+ return this.request("loyalty", "get_loyalty_history", "get", `/loyalty/${id}/history/${user_id}`, null, options);
2661
+ }
2671
2662
  /**
2672
2663
  * GET /loyalty/{id}/coupon/{user_id}/{coupon_id} - get coupon's information
2673
2664
  *
@@ -2676,9 +2667,9 @@ var ServiceClient = /** @class */ (function (_super) {
2676
2667
  * @param coupon_id - Coupon code to get coupon information
2677
2668
  * @param options - additional request options
2678
2669
  */
2679
- ServiceClient.prototype.get_loyalty_coupon = function (id, user_id, coupon_id, options) {
2680
- return this.request("loyalty", "get_loyalty_coupon", "get", "/loyalty/".concat(id, "/coupon/").concat(user_id, "/").concat(coupon_id), null, options);
2681
- };
2670
+ get_loyalty_coupon(id, user_id, coupon_id, options) {
2671
+ return this.request("loyalty", "get_loyalty_coupon", "get", `/loyalty/${id}/coupon/${user_id}/${coupon_id}`, null, options);
2672
+ }
2682
2673
  /**
2683
2674
  * PATCH /loyalty/{id}/coupon/{user_id}/{coupon_id} - Update coupon's status
2684
2675
  *
@@ -2688,37 +2679,36 @@ var ServiceClient = /** @class */ (function (_super) {
2688
2679
  * @param body
2689
2680
  * @param options - additional request options
2690
2681
  */
2691
- ServiceClient.prototype.patch_loyalty_coupon = function (id, user_id, coupon_id, body, options) {
2692
- return this.request("loyalty", "patch_loyalty_coupon", "patch", "/loyalty/".concat(id, "/coupon/").concat(user_id, "/").concat(coupon_id), body, options);
2693
- };
2682
+ patch_loyalty_coupon(id, user_id, coupon_id, body, options) {
2683
+ return this.request("loyalty", "patch_loyalty_coupon", "patch", `/loyalty/${id}/coupon/${user_id}/${coupon_id}`, body, options);
2684
+ }
2694
2685
  /**
2695
2686
  * GET /loyalty/{id}/search - Search CDL user id by internal 500friends id
2696
2687
  *
2697
2688
  * @param id - Loyalty Provider id
2698
2689
  * @param options - additional request options
2699
2690
  */
2700
- ServiceClient.prototype.get_loyalty_search = function (id, options) {
2701
- return this.request("loyalty", "get_loyalty_search", "get", "/loyalty/".concat(id, "/search"), null, options);
2702
- };
2691
+ get_loyalty_search(id, options) {
2692
+ return this.request("loyalty", "get_loyalty_search", "get", `/loyalty/${id}/search`, null, options);
2693
+ }
2703
2694
  /**
2704
2695
  * GET /loyalty/{id}/users - Get all loyalty users updated after specific date
2705
2696
  *
2706
2697
  * @param id - Loyalty Provider id
2707
2698
  * @param options - additional request options
2708
2699
  */
2709
- ServiceClient.prototype.get_loyalty_users = function (id, options) {
2710
- return this.request("loyalty", "get_loyalty_users", "get", "/loyalty/".concat(id, "/users"), null, options);
2711
- };
2700
+ get_loyalty_users(id, options) {
2701
+ return this.request("loyalty", "get_loyalty_users", "get", `/loyalty/${id}/users`, null, options);
2702
+ }
2712
2703
  /**
2713
2704
  * GET /loyalty/{id}/events - Get all loyalty events updated after specific date
2714
2705
  *
2715
2706
  * @param id - Loyalty Provider id
2716
2707
  * @param options - additional request options
2717
2708
  */
2718
- ServiceClient.prototype.get_loyalty_events = function (id, options) {
2719
- return this.request("loyalty", "get_loyalty_events", "get", "/loyalty/".concat(id, "/events"), null, options);
2720
- };
2721
- return ServiceClient;
2722
- }(base_1.BaseServiceClient));
2709
+ get_loyalty_events(id, options) {
2710
+ return this.request("loyalty", "get_loyalty_events", "get", `/loyalty/${id}/events`, null, options);
2711
+ }
2712
+ }
2723
2713
  exports.ServiceClient = ServiceClient;
2724
2714
  //# sourceMappingURL=index.js.map