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