@compassdigital/sdk.typescript 3.0.0-beta.13 → 3.0.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/README.md +10 -5
  2. package/gen.ts +13 -5
  3. package/lib/announcement.d.ts.map +1 -1
  4. package/lib/announcement.js +1 -0
  5. package/lib/announcement.js.map +1 -1
  6. package/lib/base.d.ts.map +1 -1
  7. package/lib/base.js.map +1 -1
  8. package/lib/brand.d.ts.map +1 -1
  9. package/lib/brand.js +1 -0
  10. package/lib/brand.js.map +1 -1
  11. package/lib/calendar.d.ts.map +1 -1
  12. package/lib/calendar.js +1 -0
  13. package/lib/calendar.js.map +1 -1
  14. package/lib/client/base.d.ts +157 -0
  15. package/lib/client/base.d.ts.map +1 -0
  16. package/lib/client/base.js +392 -0
  17. package/lib/client/base.js.map +1 -0
  18. package/lib/client/index.d.ts +1877 -0
  19. package/lib/client/index.d.ts.map +1 -0
  20. package/lib/client/index.js +2208 -0
  21. package/lib/client/index.js.map +1 -0
  22. package/lib/config.d.ts.map +1 -1
  23. package/lib/config.js +1 -0
  24. package/lib/config.js.map +1 -1
  25. package/lib/datalake.d.ts.map +1 -1
  26. package/lib/datalake.js +1 -0
  27. package/lib/datalake.js.map +1 -1
  28. package/lib/delivery.d.ts.map +1 -1
  29. package/lib/delivery.js +1 -0
  30. package/lib/delivery.js.map +1 -1
  31. package/lib/dh.d.ts.map +1 -1
  32. package/lib/dh.js +1 -0
  33. package/lib/dh.js.map +1 -1
  34. package/lib/email.d.ts.map +1 -1
  35. package/lib/email.js +1 -0
  36. package/lib/email.js.map +1 -1
  37. package/lib/file.d.ts.map +1 -1
  38. package/lib/file.js +1 -0
  39. package/lib/file.js.map +1 -1
  40. package/lib/index.d.ts +8 -19
  41. package/lib/index.d.ts.map +1 -1
  42. package/lib/index.js +11 -2
  43. package/lib/index.js.map +1 -1
  44. package/lib/interface/announcement.d.ts +76 -0
  45. package/lib/interface/announcement.d.ts.map +1 -0
  46. package/lib/interface/announcement.js +4 -0
  47. package/lib/interface/announcement.js.map +1 -0
  48. package/lib/interface/brand.d.ts +16 -0
  49. package/lib/interface/brand.d.ts.map +1 -0
  50. package/lib/interface/brand.js +4 -0
  51. package/lib/interface/brand.js.map +1 -0
  52. package/lib/interface/calendar.d.ts +85 -0
  53. package/lib/interface/calendar.d.ts.map +1 -0
  54. package/lib/interface/calendar.js +4 -0
  55. package/lib/interface/calendar.js.map +1 -0
  56. package/lib/interface/config.d.ts +68 -0
  57. package/lib/interface/config.d.ts.map +1 -0
  58. package/lib/interface/config.js +4 -0
  59. package/lib/interface/config.js.map +1 -0
  60. package/lib/interface/datalake.d.ts +19 -0
  61. package/lib/interface/datalake.d.ts.map +1 -0
  62. package/lib/interface/datalake.js +4 -0
  63. package/lib/interface/datalake.js.map +1 -0
  64. package/lib/interface/delivery.d.ts +34 -0
  65. package/lib/interface/delivery.d.ts.map +1 -0
  66. package/lib/interface/delivery.js +4 -0
  67. package/lib/interface/delivery.js.map +1 -0
  68. package/lib/interface/dh.d.ts +9 -0
  69. package/lib/interface/dh.d.ts.map +1 -0
  70. package/lib/interface/dh.js +4 -0
  71. package/lib/interface/dh.js.map +1 -0
  72. package/lib/interface/email.d.ts +5 -0
  73. package/lib/interface/email.d.ts.map +1 -0
  74. package/lib/interface/email.js +4 -0
  75. package/lib/interface/email.js.map +1 -0
  76. package/lib/interface/file.d.ts +17 -0
  77. package/lib/interface/file.d.ts.map +1 -0
  78. package/lib/interface/file.js +4 -0
  79. package/lib/interface/file.js.map +1 -0
  80. package/lib/interface/kds.d.ts +58 -0
  81. package/lib/interface/kds.d.ts.map +1 -0
  82. package/lib/interface/kds.js +4 -0
  83. package/lib/interface/kds.js.map +1 -0
  84. package/lib/interface/location.d.ts +747 -0
  85. package/lib/interface/location.d.ts.map +1 -0
  86. package/lib/interface/location.js +4 -0
  87. package/lib/interface/location.js.map +1 -0
  88. package/lib/interface/logger.d.ts +29 -0
  89. package/lib/interface/logger.d.ts.map +1 -0
  90. package/lib/interface/logger.js +4 -0
  91. package/lib/interface/logger.js.map +1 -0
  92. package/lib/interface/loyalty.d.ts +350 -0
  93. package/lib/interface/loyalty.d.ts.map +1 -0
  94. package/lib/interface/loyalty.js +4 -0
  95. package/lib/interface/loyalty.js.map +1 -0
  96. package/lib/interface/mealplan.d.ts +177 -0
  97. package/lib/interface/mealplan.d.ts.map +1 -0
  98. package/lib/interface/mealplan.js +4 -0
  99. package/lib/interface/mealplan.js.map +1 -0
  100. package/lib/interface/message.d.ts +38 -0
  101. package/lib/interface/message.d.ts.map +1 -0
  102. package/lib/interface/message.js +4 -0
  103. package/lib/interface/message.js.map +1 -0
  104. package/lib/interface/order.d.ts +303 -0
  105. package/lib/interface/order.d.ts.map +1 -0
  106. package/lib/interface/order.js +4 -0
  107. package/lib/interface/order.js.map +1 -0
  108. package/lib/interface/partner.d.ts +402 -0
  109. package/lib/interface/partner.d.ts.map +1 -0
  110. package/lib/interface/partner.js +4 -0
  111. package/lib/interface/partner.js.map +1 -0
  112. package/lib/interface/payment.d.ts +250 -0
  113. package/lib/interface/payment.d.ts.map +1 -0
  114. package/lib/interface/payment.js +4 -0
  115. package/lib/interface/payment.js.map +1 -0
  116. package/lib/interface/promo.d.ts +312 -0
  117. package/lib/interface/promo.d.ts.map +1 -0
  118. package/lib/interface/promo.js +4 -0
  119. package/lib/interface/promo.js.map +1 -0
  120. package/lib/interface/report.d.ts +376 -0
  121. package/lib/interface/report.d.ts.map +1 -0
  122. package/lib/interface/report.js +4 -0
  123. package/lib/interface/report.js.map +1 -0
  124. package/lib/interface/schedule.d.ts +95 -0
  125. package/lib/interface/schedule.d.ts.map +1 -0
  126. package/lib/interface/schedule.js +4 -0
  127. package/lib/interface/schedule.js.map +1 -0
  128. package/lib/interface/shoppingcart.d.ts +279 -0
  129. package/lib/interface/shoppingcart.d.ts.map +1 -0
  130. package/lib/interface/shoppingcart.js +4 -0
  131. package/lib/interface/shoppingcart.js.map +1 -0
  132. package/lib/interface/task.d.ts +171 -0
  133. package/lib/interface/task.d.ts.map +1 -0
  134. package/lib/interface/task.js +4 -0
  135. package/lib/interface/task.js.map +1 -0
  136. package/lib/interface/user.d.ts +359 -0
  137. package/lib/interface/user.d.ts.map +1 -0
  138. package/lib/interface/user.js +4 -0
  139. package/lib/interface/user.js.map +1 -0
  140. package/lib/interface/vote.d.ts +52 -0
  141. package/lib/interface/vote.d.ts.map +1 -0
  142. package/lib/interface/vote.js +4 -0
  143. package/lib/interface/vote.js.map +1 -0
  144. package/lib/kds.d.ts.map +1 -1
  145. package/lib/kds.js +1 -0
  146. package/lib/kds.js.map +1 -1
  147. package/lib/location.d.ts +4 -4
  148. package/lib/location.d.ts.map +1 -1
  149. package/lib/location.js +1 -0
  150. package/lib/location.js.map +1 -1
  151. package/lib/logger.d.ts.map +1 -1
  152. package/lib/logger.js +1 -0
  153. package/lib/logger.js.map +1 -1
  154. package/lib/loyalty.d.ts.map +1 -1
  155. package/lib/loyalty.js +1 -0
  156. package/lib/loyalty.js.map +1 -1
  157. package/lib/mealplan.d.ts.map +1 -1
  158. package/lib/mealplan.js +1 -0
  159. package/lib/mealplan.js.map +1 -1
  160. package/lib/message.d.ts.map +1 -1
  161. package/lib/message.js +1 -0
  162. package/lib/message.js.map +1 -1
  163. package/lib/order.d.ts.map +1 -1
  164. package/lib/order.js +1 -0
  165. package/lib/order.js.map +1 -1
  166. package/lib/partner.d.ts +13 -0
  167. package/lib/partner.d.ts.map +1 -1
  168. package/lib/partner.js +1 -0
  169. package/lib/partner.js.map +1 -1
  170. package/lib/payment.d.ts.map +1 -1
  171. package/lib/payment.js +1 -0
  172. package/lib/payment.js.map +1 -1
  173. package/lib/promo.d.ts.map +1 -1
  174. package/lib/promo.js +1 -0
  175. package/lib/promo.js.map +1 -1
  176. package/lib/report.d.ts.map +1 -1
  177. package/lib/report.js +1 -0
  178. package/lib/report.js.map +1 -1
  179. package/lib/schedule.d.ts.map +1 -1
  180. package/lib/schedule.js +1 -0
  181. package/lib/schedule.js.map +1 -1
  182. package/lib/shoppingcart.d.ts.map +1 -1
  183. package/lib/shoppingcart.js +1 -0
  184. package/lib/shoppingcart.js.map +1 -1
  185. package/lib/task.d.ts.map +1 -1
  186. package/lib/task.js +1 -0
  187. package/lib/task.js.map +1 -1
  188. package/lib/user.d.ts.map +1 -1
  189. package/lib/user.js +1 -0
  190. package/lib/user.js.map +1 -1
  191. package/lib/vote.d.ts.map +1 -1
  192. package/lib/vote.js +1 -0
  193. package/lib/vote.js.map +1 -1
  194. package/package.json +1 -1
  195. package/src/{index.ts → client/index.ts} +54 -24
  196. package/src/{announcement.ts → interface/announcement.ts} +2 -0
  197. package/src/{brand.ts → interface/brand.ts} +2 -0
  198. package/src/{calendar.ts → interface/calendar.ts} +2 -0
  199. package/src/{config.ts → interface/config.ts} +2 -0
  200. package/src/{datalake.ts → interface/datalake.ts} +2 -0
  201. package/src/{delivery.ts → interface/delivery.ts} +2 -0
  202. package/src/{dh.ts → interface/dh.ts} +2 -0
  203. package/src/{email.ts → interface/email.ts} +2 -0
  204. package/src/{file.ts → interface/file.ts} +2 -0
  205. package/src/{kds.ts → interface/kds.ts} +2 -0
  206. package/src/{location.ts → interface/location.ts} +2 -0
  207. package/src/{logger.ts → interface/logger.ts} +2 -0
  208. package/src/{loyalty.ts → interface/loyalty.ts} +2 -0
  209. package/src/{mealplan.ts → interface/mealplan.ts} +2 -0
  210. package/src/{message.ts → interface/message.ts} +2 -0
  211. package/src/{order.ts → interface/order.ts} +2 -0
  212. package/src/{partner.ts → interface/partner.ts} +25 -0
  213. package/src/{payment.ts → interface/payment.ts} +2 -0
  214. package/src/{promo.ts → interface/promo.ts} +2 -0
  215. package/src/{report.ts → interface/report.ts} +2 -0
  216. package/src/{schedule.ts → interface/schedule.ts} +2 -0
  217. package/src/{shoppingcart.ts → interface/shoppingcart.ts} +2 -0
  218. package/src/{task.ts → interface/task.ts} +2 -0
  219. package/src/{user.ts → interface/user.ts} +2 -0
  220. package/src/{vote.ts → interface/vote.ts} +2 -0
  221. package/test/client.test.ts +57 -73
  222. /package/src/{base.ts → client/base.ts} +0 -0
@@ -0,0 +1,2208 @@
1
+ "use strict";
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
21
+ }) : (function(o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ o[k2] = m[k];
24
+ }));
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ServiceClient = void 0;
30
+ var base_1 = require("./base");
31
+ __exportStar(require("./base"), exports);
32
+ var ServiceClient = /** @class */ (function (_super) {
33
+ __extends(ServiceClient, _super);
34
+ function ServiceClient() {
35
+ return _super !== null && _super.apply(this, arguments) || this;
36
+ }
37
+ /**
38
+ * POST /payment/{id}/transaction
39
+ *
40
+ * @param id - TODO: add parameter to swagger.json
41
+ * @param body
42
+ * @param options - additional request options
43
+ */
44
+ ServiceClient.prototype.post_payment_transaction = function (id, body, options) {
45
+ return this.request("payment", "post_payment_transaction", "post", "/payment/" + id + "/transaction", body, options);
46
+ };
47
+ /**
48
+ * POST /payment/{id}/transaction/{transaction_id}/refund
49
+ *
50
+ * @param id - TODO: add parameter to swagger.json
51
+ * @param transaction_id - TODO: add parameter to swagger.json
52
+ * @param body
53
+ * @param options - additional request options
54
+ */
55
+ ServiceClient.prototype.post_payment_transaction_refund = function (id, transaction_id, body, options) {
56
+ return this.request("payment", "post_payment_transaction_refund", "post", "/payment/" + id + "/transaction/" + transaction_id + "/refund", body, options);
57
+ };
58
+ /**
59
+ * GET /payment/{id}/clienttoken
60
+ *
61
+ * @param id - TODO: add parameter to swagger.json
62
+ * @param options - additional request options
63
+ */
64
+ ServiceClient.prototype.get_payment_clienttoken = function (id, options) {
65
+ return this.request("payment", "get_payment_clienttoken", "get", "/payment/" + id + "/clienttoken", null, options);
66
+ };
67
+ /**
68
+ * POST /payment/{id}/paymenttoken
69
+ *
70
+ * @param id - TODO: add parameter to swagger.json
71
+ * @param body
72
+ * @param options - additional request options
73
+ */
74
+ ServiceClient.prototype.post_payment_paymenttoken = function (id, body, options) {
75
+ return this.request("payment", "post_payment_paymenttoken", "post", "/payment/" + id + "/paymenttoken", body, options);
76
+ };
77
+ /**
78
+ * POST /payment/consumer
79
+ *
80
+ * @param body
81
+ * @param options - additional request options
82
+ */
83
+ ServiceClient.prototype.post_payment_consumer = function (body, options) {
84
+ return this.request("payment", "post_payment_consumer", "post", "/payment/consumer", body, options);
85
+ };
86
+ /**
87
+ * POST /payment/method
88
+ *
89
+ * @param body
90
+ * @param options - additional request options
91
+ */
92
+ ServiceClient.prototype.post_payment_method = function (body, options) {
93
+ return this.request("payment", "post_payment_method", "post", "/payment/method", body, options);
94
+ };
95
+ /**
96
+ * GET /payment/{id}/method - Get a users available payment methods
97
+ *
98
+ * @param id - TODO: add parameter to swagger.json
99
+ * @param options - additional request options
100
+ */
101
+ ServiceClient.prototype.get_payment_method = function (id, options) {
102
+ return this.request("payment", "get_payment_method", "get", "/payment/" + id + "/method", null, options);
103
+ };
104
+ /**
105
+ * DELETE /payment/{id}/method/{method_id}
106
+ *
107
+ * @param id - TODO: add parameter to swagger.json
108
+ * @param method_id - TODO: add parameter to swagger.json
109
+ * @param body
110
+ * @param options - additional request options
111
+ */
112
+ ServiceClient.prototype.delete_payment_method = function (id, method_id, body, options) {
113
+ return this.request("payment", "delete_payment_method", "delete", "/payment/" + id + "/method/" + method_id, body, options);
114
+ };
115
+ /**
116
+ * GET /payment/token
117
+ *
118
+ * @param options - additional request options
119
+ */
120
+ ServiceClient.prototype.get_payment_token = function (options) {
121
+ return this.request("payment", "get_payment_token", "get", "/payment/token", null, options);
122
+ };
123
+ /**
124
+ * POST /payment/token
125
+ *
126
+ * @param body
127
+ * @param options - additional request options
128
+ */
129
+ ServiceClient.prototype.post_payment_token = function (body, options) {
130
+ return this.request("payment", "post_payment_token", "post", "/payment/token", body, options);
131
+ };
132
+ /**
133
+ * PUT /payment/token
134
+ *
135
+ * @param body
136
+ * @param options - additional request options
137
+ */
138
+ ServiceClient.prototype.put_payment_token = function (body, options) {
139
+ return this.request("payment", "put_payment_token", "put", "/payment/token", body, options);
140
+ };
141
+ /**
142
+ * DELETE /payment/token
143
+ *
144
+ * @param body
145
+ * @param options - additional request options
146
+ */
147
+ ServiceClient.prototype.delete_payment_token = function (body, options) {
148
+ return this.request("payment", "delete_payment_token", "delete", "/payment/token", body, options);
149
+ };
150
+ /**
151
+ * GET /payment/methods
152
+ *
153
+ * @param options - additional request options
154
+ */
155
+ ServiceClient.prototype.get_payment_methods = function (options) {
156
+ return this.request("payment", "get_payment_methods", "get", "/payment/methods", null, options);
157
+ };
158
+ /**
159
+ * GET /payment/hpc
160
+ *
161
+ * @param options - additional request options
162
+ */
163
+ ServiceClient.prototype.get_payment_hpc = function (options) {
164
+ return this.request("payment", "get_payment_hpc", "get", "/payment/hpc", null, options);
165
+ };
166
+ /**
167
+ * POST /order - Create an Order
168
+ *
169
+ * @param body - Order object that needs to be created
170
+ * @param options - additional request options
171
+ */
172
+ ServiceClient.prototype.post_order = function (body, options) {
173
+ return this.request("order", "post_order", "post", "/order", body, options);
174
+ };
175
+ /**
176
+ * GET /order/{id} - Get an individual order
177
+ *
178
+ * @param id - The order ID
179
+ * @param options - additional request options
180
+ */
181
+ ServiceClient.prototype.get_order = function (id, options) {
182
+ return this.request("order", "get_order", "get", "/order/" + id, null, options);
183
+ };
184
+ /**
185
+ * PUT /order/{id} - Update an individual order
186
+ *
187
+ * @param id - The order ID
188
+ * @param options - additional request options
189
+ */
190
+ ServiceClient.prototype.put_order = function (id, options) {
191
+ return this.request("order", "put_order", "put", "/order/" + id, null, options);
192
+ };
193
+ /**
194
+ * PATCH /order/{id} - Update an existing order
195
+ *
196
+ * @param id - The order ID
197
+ * @param body - Order properties to be updated
198
+ * @param options - additional request options
199
+ */
200
+ ServiceClient.prototype.patch_order = function (id, body, options) {
201
+ return this.request("order", "patch_order", "patch", "/order/" + id, body, options);
202
+ };
203
+ /**
204
+ * POST /order/{id}/issue - Create an issue with an order
205
+ *
206
+ * @param id - The order ID
207
+ * @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.
208
+ * @param options - additional request options
209
+ */
210
+ ServiceClient.prototype.post_order_issue = function (id, body, options) {
211
+ return this.request("order", "post_order_issue", "post", "/order/" + id + "/issue", body, options);
212
+ };
213
+ /**
214
+ * PATCH /order/{id}/refund - Issue a refund on an existing order
215
+ *
216
+ * @param id - The order ID
217
+ * @param body - Items with pricing and quanitity to be refunded
218
+ * @param options - additional request options
219
+ */
220
+ ServiceClient.prototype.patch_order_refund = function (id, body, options) {
221
+ return this.request("order", "patch_order_refund", "patch", "/order/" + id + "/refund", body, options);
222
+ };
223
+ /**
224
+ * GET /order/customer/{id} - Get all orders for a Customer
225
+ *
226
+ * @param id - The user ID
227
+ * @param options - additional request options
228
+ */
229
+ ServiceClient.prototype.get_order_customer_orders = function (id, options) {
230
+ return this.request("order", "get_order_customer_orders", "get", "/order/customer/" + id, null, options);
231
+ };
232
+ /**
233
+ * GET /order/customer/{id}/location/brand/{location_brand} - Get all orders for a Customer for a specific Location Brand
234
+ *
235
+ * @param id - The user ID
236
+ * @param location_brand - Brand id
237
+ * @param options - additional request options
238
+ */
239
+ ServiceClient.prototype.get_order_customer_orders_brand = function (id, location_brand, options) {
240
+ return this.request("order", "get_order_customer_orders_brand", "get", "/order/customer/" + id + "/location/brand/" + location_brand, null, options);
241
+ };
242
+ /**
243
+ * GET /order/location/brand/{id} - Get all orders for a location Brand
244
+ *
245
+ * @param id - The location brand ID
246
+ * @param options - additional request options
247
+ */
248
+ ServiceClient.prototype.get_order_location_brand = function (id, options) {
249
+ return this.request("order", "get_order_location_brand", "get", "/order/location/brand/" + id, null, options);
250
+ };
251
+ /**
252
+ * GET /order/location/{id} - Get all orders for a location
253
+ *
254
+ * @param id - The location ID
255
+ * @param options - additional request options
256
+ */
257
+ ServiceClient.prototype.get_order_location_orders = function (id, options) {
258
+ return this.request("order", "get_order_location_orders", "get", "/order/location/" + id, null, options);
259
+ };
260
+ /**
261
+ * GET /order/location/group/{id} - Get all orders for a location group
262
+ *
263
+ * @param id - Get orders by their associated group
264
+ * @param options - additional request options
265
+ */
266
+ ServiceClient.prototype.get_order_group_orders = function (id, options) {
267
+ return this.request("order", "get_order_group_orders", "get", "/order/location/group/" + id, null, options);
268
+ };
269
+ /**
270
+ * POST /location - Create a new location
271
+ *
272
+ * @param body
273
+ * @param options - additional request options
274
+ */
275
+ ServiceClient.prototype.post_location = function (body, options) {
276
+ return this.request("location", "post_location", "post", "/location", body, options);
277
+ };
278
+ /**
279
+ * GET /location - Get all location
280
+ *
281
+ * @param options - additional request options
282
+ */
283
+ ServiceClient.prototype.get_locations = function (options) {
284
+ return this.request("location", "get_locations", "get", "/location", null, options);
285
+ };
286
+ /**
287
+ * GET /location/search - Gets Location within a radius of the provided point
288
+ *
289
+ * @param options - additional request options
290
+ */
291
+ ServiceClient.prototype.get_location_search = function (options) {
292
+ return this.request("location", "get_location_search", "get", "/location/search", null, options);
293
+ };
294
+ /**
295
+ * GET /location/{id} - Get an individual Location
296
+ *
297
+ * @param id - location id
298
+ * @param options - additional request options
299
+ */
300
+ ServiceClient.prototype.get_location = function (id, options) {
301
+ return this.request("location", "get_location", "get", "/location/" + id, null, options);
302
+ };
303
+ /**
304
+ * PUT /location/{id} - Override a complete Location
305
+ *
306
+ * @param id - location id
307
+ * @param body
308
+ * @param options - additional request options
309
+ */
310
+ ServiceClient.prototype.put_location = function (id, body, options) {
311
+ return this.request("location", "put_location", "put", "/location/" + id, body, options);
312
+ };
313
+ /**
314
+ * DELETE /location/{id} - Delete brands from a Location
315
+ *
316
+ * @param id - location id
317
+ * @param body
318
+ * @param options - additional request options
319
+ */
320
+ ServiceClient.prototype.delete_location = function (id, body, options) {
321
+ return this.request("location", "delete_location", "delete", "/location/" + id, body, options);
322
+ };
323
+ /**
324
+ * PATCH /location/{id} - Update a Location
325
+ *
326
+ * @param id - location id
327
+ * @param body
328
+ * @param options - additional request options
329
+ */
330
+ ServiceClient.prototype.patch_location = function (id, body, options) {
331
+ return this.request("location", "patch_location", "patch", "/location/" + id, body, options);
332
+ };
333
+ /**
334
+ * GET /location/pos/{id} - Get information about a POS
335
+ *
336
+ * @param id - POS ID
337
+ * @param options - additional request options
338
+ */
339
+ ServiceClient.prototype.get_location_pos = function (id, options) {
340
+ return this.request("location", "get_location_pos", "get", "/location/pos/" + id, null, options);
341
+ };
342
+ /**
343
+ * PUT /location/pos/{id} - Set information about a POS
344
+ *
345
+ * @param id - POS ID
346
+ * @param body
347
+ * @param options - additional request options
348
+ */
349
+ ServiceClient.prototype.put_location_pos = function (id, body, options) {
350
+ return this.request("location", "put_location_pos", "put", "/location/pos/" + id, body, options);
351
+ };
352
+ /**
353
+ * GET /location/multigroup - Get all the top level multigroups
354
+ *
355
+ * @param options - additional request options
356
+ */
357
+ ServiceClient.prototype.get_location_multigroups = function (options) {
358
+ return this.request("location", "get_location_multigroups", "get", "/location/multigroup", null, options);
359
+ };
360
+ /**
361
+ * POST /location/multigroup - Create a new multigroup
362
+ *
363
+ * @param body
364
+ * @param options - additional request options
365
+ */
366
+ ServiceClient.prototype.post_location_multigroup = function (body, options) {
367
+ return this.request("location", "post_location_multigroup", "post", "/location/multigroup", body, options);
368
+ };
369
+ /**
370
+ * GET /location/multigroup/{id} - Get a multigroup
371
+ *
372
+ * @param id - multigroup id
373
+ * @param options - additional request options
374
+ */
375
+ ServiceClient.prototype.get_location_multigroup = function (id, options) {
376
+ return this.request("location", "get_location_multigroup", "get", "/location/multigroup/" + id, null, options);
377
+ };
378
+ /**
379
+ * PUT /location/multigroup/{id} - Override a complete multigroup
380
+ *
381
+ * @param id - multigroup id
382
+ * @param body
383
+ * @param options - additional request options
384
+ */
385
+ ServiceClient.prototype.put_location_multigroup = function (id, body, options) {
386
+ return this.request("location", "put_location_multigroup", "put", "/location/multigroup/" + id, body, options);
387
+ };
388
+ /**
389
+ * DELETE /location/multigroup/{id} - Delete groups from a multigroup
390
+ *
391
+ * @param id - multigroup id
392
+ * @param body
393
+ * @param options - additional request options
394
+ */
395
+ ServiceClient.prototype.delete_location_multigroup = function (id, body, options) {
396
+ return this.request("location", "delete_location_multigroup", "delete", "/location/multigroup/" + id, body, options);
397
+ };
398
+ /**
399
+ * PATCH /location/multigroup/{id} - Update a multigroup
400
+ *
401
+ * @param id - multigroup id
402
+ * @param body
403
+ * @param options - additional request options
404
+ */
405
+ ServiceClient.prototype.patch_location_multigroup = function (id, body, options) {
406
+ return this.request("location", "patch_location_multigroup", "patch", "/location/multigroup/" + id, body, options);
407
+ };
408
+ /**
409
+ * GET /location/multigroup/{id}/user/{user_id} - Get all the groups in a multigroup specific to user permissions
410
+ *
411
+ * @param id - multigroup
412
+ * @param user_id - user
413
+ * @param options - additional request options
414
+ */
415
+ ServiceClient.prototype.get_location_user_multigroup = function (id, user_id, options) {
416
+ return this.request("location", "get_location_user_multigroup", "get", "/location/multigroup/" + id + "/user/" + user_id, null, options);
417
+ };
418
+ /**
419
+ * POST /location/group - Create a new group
420
+ *
421
+ * @param body
422
+ * @param options - additional request options
423
+ */
424
+ ServiceClient.prototype.post_location_group = function (body, options) {
425
+ return this.request("location", "post_location_group", "post", "/location/group", body, options);
426
+ };
427
+ /**
428
+ * GET /location/group/{id} - Get an individual Group based on id or latitude/longitude
429
+ *
430
+ * @param id - group id
431
+ * @param options - additional request options
432
+ */
433
+ ServiceClient.prototype.get_location_group = function (id, options) {
434
+ return this.request("location", "get_location_group", "get", "/location/group/" + id, null, options);
435
+ };
436
+ /**
437
+ * PUT /location/group/{id} - Override a complete Group
438
+ *
439
+ * @param id - group id
440
+ * @param body
441
+ * @param options - additional request options
442
+ */
443
+ ServiceClient.prototype.put_location_group = function (id, body, options) {
444
+ return this.request("location", "put_location_group", "put", "/location/group/" + id, body, options);
445
+ };
446
+ /**
447
+ * DELETE /location/group/{id} - Delete locations from a Group
448
+ *
449
+ * @param id - group id
450
+ * @param body
451
+ * @param options - additional request options
452
+ */
453
+ ServiceClient.prototype.delete_location_group = function (id, body, options) {
454
+ return this.request("location", "delete_location_group", "delete", "/location/group/" + id, body, options);
455
+ };
456
+ /**
457
+ * PATCH /location/group/{id} - Update a Group
458
+ *
459
+ * @param id - group id
460
+ * @param body
461
+ * @param options - additional request options
462
+ */
463
+ ServiceClient.prototype.patch_location_group = function (id, body, options) {
464
+ return this.request("location", "patch_location_group", "patch", "/location/group/" + id, body, options);
465
+ };
466
+ /**
467
+ * GET /location/group/{id}/deliverydestination - Get all delivery destinations for group
468
+ *
469
+ * @param id - Group ID
470
+ * @param options - additional request options
471
+ */
472
+ ServiceClient.prototype.get_location_group_deliverydestinations = function (id, options) {
473
+ return this.request("location", "get_location_group_deliverydestinations", "get", "/location/group/" + id + "/deliverydestination", null, options);
474
+ };
475
+ /**
476
+ * POST /location/group/{id}/deliverydestination - Create a new location group delivery destination
477
+ *
478
+ * @param id - Group ID
479
+ * @param body
480
+ * @param options - additional request options
481
+ */
482
+ ServiceClient.prototype.post_location_group_deliverydestination = function (id, body, options) {
483
+ return this.request("location", "post_location_group_deliverydestination", "post", "/location/group/" + id + "/deliverydestination", body, options);
484
+ };
485
+ /**
486
+ * GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
487
+ *
488
+ * @param id - Group ID
489
+ * @param delivery_destination - Delivery Destination ID
490
+ * @param options - additional request options
491
+ */
492
+ ServiceClient.prototype.get_location_group_deliverydestination = function (id, delivery_destination, options) {
493
+ return this.request("location", "get_location_group_deliverydestination", "get", "/location/group/" + id + "/deliverydestination/" + delivery_destination, null, options);
494
+ };
495
+ /**
496
+ * PATCH /location/group/{id}/deliverydestination/{delivery_destination} - Patch a delivery destination
497
+ *
498
+ * @param id - Group ID
499
+ * @param delivery_destination - Delivery Destination ID
500
+ * @param body
501
+ * @param options - additional request options
502
+ */
503
+ ServiceClient.prototype.patch_location_group_deliverydestination = function (id, delivery_destination, body, options) {
504
+ return this.request("location", "patch_location_group_deliverydestination", "patch", "/location/group/" + id + "/deliverydestination/" + delivery_destination, body, options);
505
+ };
506
+ /**
507
+ * DELETE /location/group/{id}/deliverydestination/{delivery_destination} - Delete a delivery destination
508
+ *
509
+ * @param id - Group ID
510
+ * @param delivery_destination - Delivery Destination ID
511
+ * @param options - additional request options
512
+ */
513
+ ServiceClient.prototype.delete_location_group_deliverydestination = function (id, delivery_destination, options) {
514
+ return this.request("location", "delete_location_group_deliverydestination", "delete", "/location/group/" + id + "/deliverydestination/" + delivery_destination, null, options);
515
+ };
516
+ /**
517
+ * GET /location/group/{id}/user/{user_id} - Get a location group info specific to user read permissions
518
+ *
519
+ * @param id - group
520
+ * @param user_id - user
521
+ * @param options - additional request options
522
+ */
523
+ ServiceClient.prototype.get_location_user_group = function (id, user_id, options) {
524
+ return this.request("location", "get_location_user_group", "get", "/location/group/" + id + "/user/" + user_id, null, options);
525
+ };
526
+ /**
527
+ * GET /location/brands - Get all location brands
528
+ *
529
+ * @param options - additional request options
530
+ */
531
+ ServiceClient.prototype.get_location_brands = function (options) {
532
+ return this.request("location", "get_location_brands", "get", "/location/brands", null, options);
533
+ };
534
+ /**
535
+ * GET /location/brand/{id}/deliverydestinations - Get delivery destinations for a brand
536
+ *
537
+ * @param id - Brand ID
538
+ * @param options - additional request options
539
+ */
540
+ ServiceClient.prototype.get_location_brand_destinations = function (id, options) {
541
+ return this.request("location", "get_location_brand_destinations", "get", "/location/brand/" + id + "/deliverydestinations", null, options);
542
+ };
543
+ /**
544
+ * POST /location/brand/{id}/document - Attach document to a brand
545
+ *
546
+ * @param id - Brand ID
547
+ * @param body
548
+ * @param options - additional request options
549
+ */
550
+ ServiceClient.prototype.post_location_brand_document = function (id, body, options) {
551
+ return this.request("location", "post_location_brand_document", "post", "/location/brand/" + id + "/document", body, options);
552
+ };
553
+ /**
554
+ * PATCH /location/brand/{id}/document - Edit location document
555
+ *
556
+ * @param id - Brand ID
557
+ * @param options - additional request options
558
+ */
559
+ ServiceClient.prototype.patch_location_brand_document = function (id, options) {
560
+ return this.request("location", "patch_location_brand_document", "patch", "/location/brand/" + id + "/document", null, options);
561
+ };
562
+ /**
563
+ * DELETE /location/brand/{id}/document - Deleted brand document
564
+ *
565
+ * @param id - Brand ID
566
+ * @param options - additional request options
567
+ */
568
+ ServiceClient.prototype.delete_location_brand_document = function (id, options) {
569
+ return this.request("location", "delete_location_brand_document", "delete", "/location/brand/" + id + "/document", null, options);
570
+ };
571
+ /**
572
+ * GET /location/brand/{id}/documents - Get location brand attached documents
573
+ *
574
+ * @param id - Brand ID
575
+ * @param options - additional request options
576
+ */
577
+ ServiceClient.prototype.get_location_brand_documents = function (id, options) {
578
+ return this.request("location", "get_location_brand_documents", "get", "/location/brand/" + id + "/documents", null, options);
579
+ };
580
+ /**
581
+ * GET /location/brand/{id}/timeslots - Get location brand timeslots
582
+ *
583
+ * @param id - Brand ID
584
+ * @param options - additional request options
585
+ */
586
+ ServiceClient.prototype.get_location_brand_timeslots = function (id, options) {
587
+ return this.request("location", "get_location_brand_timeslots", "get", "/location/brand/" + id + "/timeslots", null, options);
588
+ };
589
+ /**
590
+ * POST /location/marketplace/timeslots - Get Market Place timeslots
591
+ *
592
+ * @param body
593
+ * @param options - additional request options
594
+ */
595
+ ServiceClient.prototype.post_location_marketplace_timeslots = function (body, options) {
596
+ return this.request("location", "post_location_marketplace_timeslots", "post", "/location/marketplace/timeslots", body, options);
597
+ };
598
+ /**
599
+ * POST /location/marketplace/timeslots/delivery - Get Marketplace delivery timeslots
600
+ *
601
+ * @param body
602
+ * @param options - additional request options
603
+ */
604
+ ServiceClient.prototype.post_location_marketplace_timeslots_delivery = function (body, options) {
605
+ return this.request("location", "post_location_marketplace_timeslots_delivery", "post", "/location/marketplace/timeslots/delivery", body, options);
606
+ };
607
+ /**
608
+ * GET /location/brand/{id}/timeslots/menu/{menu} - Get location brand timeslots for menu
609
+ *
610
+ * @param id - Brand ID
611
+ * @param menu - Menu ID
612
+ * @param options - additional request options
613
+ */
614
+ ServiceClient.prototype.get_location_brand_menu_timeslots = function (id, menu, options) {
615
+ return this.request("location", "get_location_brand_menu_timeslots", "get", "/location/brand/" + id + "/timeslots/menu/" + menu, null, options);
616
+ };
617
+ /**
618
+ * GET /location/brand/{id}/timeslots/delivery - Get location brand delivery timeslots
619
+ *
620
+ * @param id - Brand ID
621
+ * @param options - additional request options
622
+ */
623
+ ServiceClient.prototype.get_location_brand_delivery_timeslots = function (id, options) {
624
+ return this.request("location", "get_location_brand_delivery_timeslots", "get", "/location/brand/" + id + "/timeslots/delivery", null, options);
625
+ };
626
+ /**
627
+ * GET /location/brand/{id}/timeslots/delivery/menu/{menu} - Get location brand delivery timeslots for menu
628
+ *
629
+ * @param id - Brand ID
630
+ * @param menu - Menu ID
631
+ * @param options - additional request options
632
+ */
633
+ ServiceClient.prototype.get_location_brand_menu_delivery_timeslosts = function (id, menu, options) {
634
+ return this.request("location", "get_location_brand_menu_delivery_timeslosts", "get", "/location/brand/" + id + "/timeslots/delivery/menu/" + menu, null, options);
635
+ };
636
+ /**
637
+ * POST /location/brand - Create a new Brand
638
+ *
639
+ * @param body
640
+ * @param options - additional request options
641
+ */
642
+ ServiceClient.prototype.post_location_brand = function (body, options) {
643
+ return this.request("location", "post_location_brand", "post", "/location/brand", body, options);
644
+ };
645
+ /**
646
+ * GET /location/brand/{id} - Get location brand
647
+ *
648
+ * @param id - Brand ID
649
+ * @param options - additional request options
650
+ */
651
+ ServiceClient.prototype.get_location_brand = function (id, options) {
652
+ return this.request("location", "get_location_brand", "get", "/location/brand/" + id, null, options);
653
+ };
654
+ /**
655
+ * PATCH /location/brand/{id} - Update location brand
656
+ *
657
+ * @param id - Brand ID
658
+ * @param body
659
+ * @param options - additional request options
660
+ */
661
+ ServiceClient.prototype.patch_location_brand = function (id, body, options) {
662
+ return this.request("location", "patch_location_brand", "patch", "/location/brand/" + id, body, options);
663
+ };
664
+ /**
665
+ * DELETE /location/brand/{id} - Delete data from a Brand
666
+ *
667
+ * @param id - Brand ID
668
+ * @param body
669
+ * @param options - additional request options
670
+ */
671
+ ServiceClient.prototype.delete_location_brand = function (id, body, options) {
672
+ return this.request("location", "delete_location_brand", "delete", "/location/brand/" + id, body, options);
673
+ };
674
+ /**
675
+ * PUT /location/brand/{id} - Update location brand
676
+ *
677
+ * @param id - Brand ID
678
+ * @param body
679
+ * @param options - additional request options
680
+ */
681
+ ServiceClient.prototype.put_location_brand = function (id, body, options) {
682
+ return this.request("location", "put_location_brand", "put", "/location/brand/" + id, body, options);
683
+ };
684
+ /**
685
+ * GET /location/sector - Get list of all the sectors
686
+ *
687
+ * @param options - additional request options
688
+ */
689
+ ServiceClient.prototype.get_location_sectors = function (options) {
690
+ return this.request("location", "get_location_sectors", "get", "/location/sector", null, options);
691
+ };
692
+ /**
693
+ * POST /location/sector - Create a new sector
694
+ *
695
+ * @param body
696
+ * @param options - additional request options
697
+ */
698
+ ServiceClient.prototype.post_location_sector = function (body, options) {
699
+ return this.request("location", "post_location_sector", "post", "/location/sector", body, options);
700
+ };
701
+ /**
702
+ * GET /location/sector/{id} - Get a sector
703
+ *
704
+ * @param id - sector
705
+ * @param options - additional request options
706
+ */
707
+ ServiceClient.prototype.get_location_sector = function (id, options) {
708
+ return this.request("location", "get_location_sector", "get", "/location/sector/" + id, null, options);
709
+ };
710
+ /**
711
+ * PATCH /location/sector/{id} - Update a sector
712
+ *
713
+ * @param id - sector
714
+ * @param body
715
+ * @param options - additional request options
716
+ */
717
+ ServiceClient.prototype.patch_location_sector = function (id, body, options) {
718
+ return this.request("location", "patch_location_sector", "patch", "/location/sector/" + id, body, options);
719
+ };
720
+ /**
721
+ * POST /location/company - Create a new company
722
+ *
723
+ * @param body
724
+ * @param options - additional request options
725
+ */
726
+ ServiceClient.prototype.post_location_company = function (body, options) {
727
+ return this.request("location", "post_location_company", "post", "/location/company", body, options);
728
+ };
729
+ /**
730
+ * GET /location/company/{id} - Get a company within sector
731
+ *
732
+ * @param id - Company ID
733
+ * @param options - additional request options
734
+ */
735
+ ServiceClient.prototype.get_location_company = function (id, options) {
736
+ return this.request("location", "get_location_company", "get", "/location/company/" + id, null, options);
737
+ };
738
+ /**
739
+ * PATCH /location/company/{id} - Update a company
740
+ *
741
+ * @param id - Company ID
742
+ * @param body
743
+ * @param options - additional request options
744
+ */
745
+ ServiceClient.prototype.patch_location_company = function (id, body, options) {
746
+ return this.request("location", "patch_location_company", "patch", "/location/company/" + id, body, options);
747
+ };
748
+ /**
749
+ * POST /shoppingcart/ - Create a new ShoppingCart
750
+ *
751
+ * @param body
752
+ * @param options - additional request options
753
+ */
754
+ ServiceClient.prototype.post_shoppingcart_cart = function (body, options) {
755
+ return this.request("shoppingcart", "post_shoppingcart_cart", "post", "/shoppingcart/", body, options);
756
+ };
757
+ /**
758
+ * PUT /shoppingcart/{id} - Put a menu item into a ShoppingCart
759
+ *
760
+ * @param id - Shopping cart ID
761
+ * @param body
762
+ * @param options - additional request options
763
+ */
764
+ ServiceClient.prototype.put_shoppingcart_cart_items = function (id, body, options) {
765
+ return this.request("shoppingcart", "put_shoppingcart_cart_items", "put", "/shoppingcart/" + id, body, options);
766
+ };
767
+ /**
768
+ * DELETE /shoppingcart/{id} - Delete a menu item from a ShoppingCart
769
+ *
770
+ * @param id - Shopping cart ID
771
+ * @param body
772
+ * @param options - additional request options
773
+ */
774
+ ServiceClient.prototype.delete_shoppingcart_cart_items = function (id, body, options) {
775
+ return this.request("shoppingcart", "delete_shoppingcart_cart_items", "delete", "/shoppingcart/" + id, body, options);
776
+ };
777
+ /**
778
+ * GET /shoppingcart/{id} - Get an individual ShoppingCart
779
+ *
780
+ * @param id - Shopping cart ID
781
+ * @param options - additional request options
782
+ */
783
+ ServiceClient.prototype.get_shoppingcart_cart = function (id, options) {
784
+ return this.request("shoppingcart", "get_shoppingcart_cart", "get", "/shoppingcart/" + id, null, options);
785
+ };
786
+ /**
787
+ * PATCH /shoppingcart/{id} - Update a ShoppingCart
788
+ *
789
+ * @param id - Shopping cart ID
790
+ * @param options - additional request options
791
+ */
792
+ ServiceClient.prototype.patch_shoppingcart_cart = function (id, options) {
793
+ return this.request("shoppingcart", "patch_shoppingcart_cart", "patch", "/shoppingcart/" + id, null, options);
794
+ };
795
+ /**
796
+ * PUT /shoppingcart/{id}/promo - Put a promo in a ShoppingCart
797
+ *
798
+ * @param id - Shopping cart ID
799
+ * @param body
800
+ * @param options - additional request options
801
+ */
802
+ ServiceClient.prototype.put_shoppingcart_cart_promo = function (id, body, options) {
803
+ return this.request("shoppingcart", "put_shoppingcart_cart_promo", "put", "/shoppingcart/" + id + "/promo", body, options);
804
+ };
805
+ /**
806
+ * DELETE /shoppingcart/{id}/promo - Delete the promo in a ShoppingCart
807
+ *
808
+ * @param id - Shopping cart ID
809
+ * @param options - additional request options
810
+ */
811
+ ServiceClient.prototype.delete_shoppingcart_cart_promo = function (id, options) {
812
+ return this.request("shoppingcart", "delete_shoppingcart_cart_promo", "delete", "/shoppingcart/" + id + "/promo", null, options);
813
+ };
814
+ /**
815
+ * PUT /shoppingcart/{id}/paymentmethod/ - Change payment method used in shopping cart
816
+ *
817
+ * @param id - Shopping cart ID
818
+ * @param body
819
+ * @param options - additional request options
820
+ */
821
+ ServiceClient.prototype.put_shoppingcart_cart_payment = function (id, body, options) {
822
+ return this.request("shoppingcart", "put_shoppingcart_cart_payment", "put", "/shoppingcart/" + id + "/paymentmethod/", body, options);
823
+ };
824
+ /**
825
+ * PUT /shoppingcart/{id}/order/ - Store information about the order created with this shopping cart
826
+ *
827
+ * @param id - Shopping cart ID
828
+ * @param body
829
+ * @param options - additional request options
830
+ */
831
+ ServiceClient.prototype.put_shoppingcart_cart_order = function (id, body, options) {
832
+ return this.request("shoppingcart", "put_shoppingcart_cart_order", "put", "/shoppingcart/" + id + "/order/", body, options);
833
+ };
834
+ /**
835
+ * PUT /shoppingcart/{id}/loyalty/{user_id} - Apply a loyalty coupon in a ShoppingCart
836
+ *
837
+ * @param id - Shopping cart ID
838
+ * @param user_id - User ID
839
+ * @param body
840
+ * @param options - additional request options
841
+ */
842
+ ServiceClient.prototype.put_shoppingcart_cart_loyalty = function (id, user_id, body, options) {
843
+ return this.request("shoppingcart", "put_shoppingcart_cart_loyalty", "put", "/shoppingcart/" + id + "/loyalty/" + user_id, body, options);
844
+ };
845
+ /**
846
+ * DELETE /shoppingcart/{id}/loyalty/{user_id} - Delete loyalty coupon in shoppingCart
847
+ *
848
+ * @param id - Shopping cart ID
849
+ * @param user_id - User ID
850
+ * @param options - additional request options
851
+ */
852
+ ServiceClient.prototype.delete_shoppingcart_cart_loyalty = function (id, user_id, options) {
853
+ return this.request("shoppingcart", "delete_shoppingcart_cart_loyalty", "delete", "/shoppingcart/" + id + "/loyalty/" + user_id, null, options);
854
+ };
855
+ /**
856
+ * POST /shoppingcart/{id}/clone - Create a shopping cart from existing shopping cart
857
+ *
858
+ * @param id - Shopping cart ID
859
+ * @param body
860
+ * @param options - additional request options
861
+ */
862
+ ServiceClient.prototype.post_shoppingcart_clone_cart = function (id, body, options) {
863
+ return this.request("shoppingcart", "post_shoppingcart_clone_cart", "post", "/shoppingcart/" + id + "/clone", body, options);
864
+ };
865
+ /**
866
+ * POST /shoppingcart/bulk - Get multiple ShoppingCarts
867
+ *
868
+ * @param body
869
+ * @param options - additional request options
870
+ */
871
+ ServiceClient.prototype.post_shoppingcart_bulk = function (body, options) {
872
+ return this.request("shoppingcart", "post_shoppingcart_bulk", "post", "/shoppingcart/bulk", body, options);
873
+ };
874
+ /**
875
+ * POST /partner/standardcognition/shoppingcart - Calculates a shoppingcart
876
+ *
877
+ * @param body
878
+ * @param options - additional request options
879
+ */
880
+ ServiceClient.prototype.post_partner_standardcognition_shoppingcart = function (body, options) {
881
+ return this.request("partner", "post_partner_standardcognition_shoppingcart", "post", "/partner/standardcognition/shoppingcart", body, options);
882
+ };
883
+ /**
884
+ * GET /partner/standardcognition/locations - Gets the locations where Standard Cognition is available
885
+ *
886
+ * @param options - additional request options
887
+ */
888
+ ServiceClient.prototype.get_partner_standardcognition_locations = function (options) {
889
+ return this.request("partner", "get_partner_standardcognition_locations", "get", "/partner/standardcognition/locations", null, options);
890
+ };
891
+ /**
892
+ * GET /partner/standardcognition/stores - Gets the UUID for all the Standard Cognition external locations
893
+ *
894
+ * @param options - additional request options
895
+ */
896
+ ServiceClient.prototype.get_partner_standardcognition_stores = function (options) {
897
+ return this.request("partner", "get_partner_standardcognition_stores", "get", "/partner/standardcognition/stores", null, options);
898
+ };
899
+ /**
900
+ * GET /partner/coolr/locations - Gets the locations where Coolr is available
901
+ *
902
+ * @param options - additional request options
903
+ */
904
+ ServiceClient.prototype.get_partner_coolr_locations = function (options) {
905
+ return this.request("partner", "get_partner_coolr_locations", "get", "/partner/coolr/locations", null, options);
906
+ };
907
+ /**
908
+ * GET /partner/coolr/{id}/images - Gets the latest images for Coolr Location AssetID
909
+ *
910
+ * @param id - location
911
+ * @param options - additional request options
912
+ */
913
+ ServiceClient.prototype.get_partner_coolr_images = function (id, options) {
914
+ return this.request("partner", "get_partner_coolr_images", "get", "/partner/coolr/" + id + "/images", null, options);
915
+ };
916
+ /**
917
+ * GET /partner/swagger.json
918
+ *
919
+ * @param options - additional request options
920
+ */
921
+ ServiceClient.prototype.get_partner_swagger = function (options) {
922
+ return this.request("partner", "get_partner_swagger", "get", "/partner/swagger.json", null, options);
923
+ };
924
+ /**
925
+ * POST /task/ - Create new Task
926
+ *
927
+ * @param body - Task Information
928
+ * @param options - additional request options
929
+ */
930
+ ServiceClient.prototype.post_task = function (body, options) {
931
+ return this.request("task", "post_task", "post", "/task/", body, options);
932
+ };
933
+ /**
934
+ * GET /task/{id} - Get task based on passed ID
935
+ *
936
+ * @param id - Task ID
937
+ * @param options - additional request options
938
+ */
939
+ ServiceClient.prototype.get_task = function (id, options) {
940
+ return this.request("task", "get_task", "get", "/task/" + id, null, options);
941
+ };
942
+ /**
943
+ * PATCH /task/{id} - Update Task
944
+ *
945
+ * @param id - Task ID
946
+ * @param body - Task Information
947
+ * @param options - additional request options
948
+ */
949
+ ServiceClient.prototype.patch_task = function (id, body, options) {
950
+ return this.request("task", "patch_task", "patch", "/task/" + id, body, options);
951
+ };
952
+ /**
953
+ * DELETE /task/{id} - Delete Task
954
+ *
955
+ * @param id - Task ID
956
+ * @param options - additional request options
957
+ */
958
+ ServiceClient.prototype.delete_task = function (id, options) {
959
+ return this.request("task", "delete_task", "delete", "/task/" + id, null, options);
960
+ };
961
+ /**
962
+ * GET /task/order/{id} - Get task based on passed order ID
963
+ *
964
+ * @param id - Order ID
965
+ * @param options - additional request options
966
+ */
967
+ ServiceClient.prototype.get_task_order = function (id, options) {
968
+ return this.request("task", "get_task_order", "get", "/task/order/" + id, null, options);
969
+ };
970
+ /**
971
+ * GET /task/order/{id}/kds - Get KDS tasks based on passed order ID
972
+ *
973
+ * @param id - Order ID
974
+ * @param options - additional request options
975
+ */
976
+ ServiceClient.prototype.get_task_order_kds = function (id, options) {
977
+ return this.request("task", "get_task_order_kds", "get", "/task/order/" + id + "/kds", null, options);
978
+ };
979
+ /**
980
+ * PATCH /task/order/{id}/kds - Update an order and its associated tasks
981
+ *
982
+ * @param id - Order ID
983
+ * @param body - Order information that you wish to update
984
+ * @param options - additional request options
985
+ */
986
+ ServiceClient.prototype.patch_task_order_kds = function (id, body, options) {
987
+ return this.request("task", "patch_task_order_kds", "patch", "/task/order/" + id + "/kds", body, options);
988
+ };
989
+ /**
990
+ * GET /task/assignee/{id} - Get Assignee tasks
991
+ *
992
+ * @param id - Assignee ID
993
+ * @param options - additional request options
994
+ */
995
+ ServiceClient.prototype.get_task_assignee = function (id, options) {
996
+ return this.request("task", "get_task_assignee", "get", "/task/assignee/" + id, null, options);
997
+ };
998
+ /**
999
+ * GET /task/location/brand/{id} - Get location brand tasks
1000
+ *
1001
+ * @param id - location brand ID
1002
+ * @param options - additional request options
1003
+ */
1004
+ ServiceClient.prototype.get_task_location_brand = function (id, options) {
1005
+ return this.request("task", "get_task_location_brand", "get", "/task/location/brand/" + id, null, options);
1006
+ };
1007
+ /**
1008
+ * GET /task/location/group/{id} - Get location group tasks
1009
+ *
1010
+ * @param id - Location group ID
1011
+ * @param options - additional request options
1012
+ */
1013
+ ServiceClient.prototype.get_task_location_group = function (id, options) {
1014
+ return this.request("task", "get_task_location_group", "get", "/task/location/group/" + id, null, options);
1015
+ };
1016
+ /**
1017
+ * GET /kds/devices - Get kds devices for a specified unit number
1018
+ *
1019
+ * @param options - additional request options
1020
+ */
1021
+ ServiceClient.prototype.get_kds_devices = function (options) {
1022
+ return this.request("kds", "get_kds_devices", "get", "/kds/devices", null, options);
1023
+ };
1024
+ /**
1025
+ * POST /kds/device/auth - Get auth token for a device
1026
+ *
1027
+ * @param body - AuthPostBody object
1028
+ * @param options - additional request options
1029
+ */
1030
+ ServiceClient.prototype.post_kds_device_auth = function (body, options) {
1031
+ return this.request("kds", "post_kds_device_auth", "post", "/kds/device/auth", body, options);
1032
+ };
1033
+ /**
1034
+ * DELETE /kds/device/auth/{device_id} - Delete authorization for specified serial_number
1035
+ *
1036
+ * @param device_id - serial number encoded as cdl id
1037
+ * @param options - additional request options
1038
+ */
1039
+ ServiceClient.prototype.delete_kds_device_auth = function (device_id, options) {
1040
+ return this.request("kds", "delete_kds_device_auth", "delete", "/kds/device/auth/" + device_id, null, options);
1041
+ };
1042
+ /**
1043
+ * GET /kds/swagger.json - Get a swagger for kds service
1044
+ *
1045
+ * @param options - additional request options
1046
+ */
1047
+ ServiceClient.prototype.get_kds_swagger = function (options) {
1048
+ return this.request("kds", "get_kds_swagger", "get", "/kds/swagger.json", null, options);
1049
+ };
1050
+ /**
1051
+ * POST /mealplan/{id} - Authenticate against the meal plan provider
1052
+ *
1053
+ * @param id - Meal plan ID
1054
+ * @param body - User credentials
1055
+ * @param options - additional request options
1056
+ */
1057
+ ServiceClient.prototype.post_mealplan = function (id, body, options) {
1058
+ return this.request("mealplan", "post_mealplan", "post", "/mealplan/" + id, body, options);
1059
+ };
1060
+ /**
1061
+ * PUT /mealplan/{id} - Save a token for access to the meal plan
1062
+ *
1063
+ * @param id - Meal plan ID
1064
+ * @param body
1065
+ * @param options - additional request options
1066
+ */
1067
+ ServiceClient.prototype.put_mealplan = function (id, body, options) {
1068
+ return this.request("mealplan", "put_mealplan", "put", "/mealplan/" + id, body, options);
1069
+ };
1070
+ /**
1071
+ * GET /mealplan/{id} - Check the user's meal plan tenders and get the authentication configuration
1072
+ *
1073
+ * @param id - Meal plan ID
1074
+ * @param options - additional request options
1075
+ */
1076
+ ServiceClient.prototype.get_mealplan = function (id, options) {
1077
+ return this.request("mealplan", "get_mealplan", "get", "/mealplan/" + id, null, options);
1078
+ };
1079
+ /**
1080
+ * DELETE /mealplan/{id} - Delete a mealplan or a tender from the user's account
1081
+ *
1082
+ * @param id - Meal plan ID
1083
+ * @param body - Tenders to be deleted. If not passed, it will delete all the tenders for this user
1084
+ * @param options - additional request options
1085
+ */
1086
+ ServiceClient.prototype.delete_mealplan = function (id, body, options) {
1087
+ return this.request("mealplan", "delete_mealplan", "delete", "/mealplan/" + id, body, options);
1088
+ };
1089
+ /**
1090
+ * POST /mealplan/{id}/callback - Callback endpoint for meal plans that make a call back from a webview workflow
1091
+ *
1092
+ * @param id - Meal plan ID
1093
+ * @param options - additional request options
1094
+ */
1095
+ ServiceClient.prototype.post_mealplan_callback = function (id, options) {
1096
+ return this.request("mealplan", "post_mealplan_callback", "post", "/mealplan/" + id + "/callback", null, options);
1097
+ };
1098
+ /**
1099
+ * GET /mealplan/{id}/tender/{tender} - Check the user's tender balance
1100
+ *
1101
+ * @param id - Meal plan ID
1102
+ * @param tender - Tender ID
1103
+ * @param options - additional request options
1104
+ */
1105
+ ServiceClient.prototype.get_mealplan_tender = function (id, tender, options) {
1106
+ return this.request("mealplan", "get_mealplan_tender", "get", "/mealplan/" + id + "/tender/" + tender, null, options);
1107
+ };
1108
+ /**
1109
+ * DELETE /mealplan/{id}/tender/{tender} - Debit an amount from the tender balance
1110
+ *
1111
+ * @param id - Meal plan ID
1112
+ * @param tender - Tender ID
1113
+ * @param options - additional request options
1114
+ */
1115
+ ServiceClient.prototype.delete_mealplan_tender = function (id, tender, options) {
1116
+ return this.request("mealplan", "delete_mealplan_tender", "delete", "/mealplan/" + id + "/tender/" + tender, null, options);
1117
+ };
1118
+ /**
1119
+ * PATCH /mealplan/{id}/tender/{tender} - Refund an amount to the tender balance
1120
+ *
1121
+ * @param id - Meal plan ID
1122
+ * @param tender - Tender ID
1123
+ * @param body
1124
+ * @param options - additional request options
1125
+ */
1126
+ ServiceClient.prototype.patch_mealplan_tender = function (id, tender, body, options) {
1127
+ return this.request("mealplan", "patch_mealplan_tender", "patch", "/mealplan/" + id + "/tender/" + tender, body, options);
1128
+ };
1129
+ /**
1130
+ * POST /mealplan/{id}/verify - Send verification email to user linking a mealplan
1131
+ *
1132
+ * @param id - Meal plan ID
1133
+ * @param body - Verification Email Parameters
1134
+ * @param options - additional request options
1135
+ */
1136
+ ServiceClient.prototype.post_mealplan_verify = function (id, body, options) {
1137
+ return this.request("mealplan", "post_mealplan_verify", "post", "/mealplan/" + id + "/verify", body, options);
1138
+ };
1139
+ /**
1140
+ * PUT /mealplan/{id}/verify - Verify email address using provided payload
1141
+ *
1142
+ * @param id - Meal plan ID
1143
+ * @param body - Verify Email Parameters
1144
+ * @param options - additional request options
1145
+ */
1146
+ ServiceClient.prototype.put_mealplan_verify = function (id, body, options) {
1147
+ return this.request("mealplan", "put_mealplan_verify", "put", "/mealplan/" + id + "/verify", body, options);
1148
+ };
1149
+ /**
1150
+ * POST /mealplan/{id}/authorize - Authorize Transaction
1151
+ *
1152
+ * @param id - TODO: add parameter to swagger.json
1153
+ * @param body
1154
+ * @param options - additional request options
1155
+ */
1156
+ ServiceClient.prototype.post_mealplan_authorize = function (id, body, options) {
1157
+ return this.request("mealplan", "post_mealplan_authorize", "post", "/mealplan/" + id + "/authorize", body, options);
1158
+ };
1159
+ /**
1160
+ * POST /datalake/sql - Query datalake for data
1161
+ *
1162
+ * @param body
1163
+ * @param options - additional request options
1164
+ */
1165
+ ServiceClient.prototype.post_datalake_sql = function (body, options) {
1166
+ return this.request("datalake", "post_datalake_sql", "post", "/datalake/sql", body, options);
1167
+ };
1168
+ /**
1169
+ * GET /swagger.json
1170
+ *
1171
+ * @param options - additional request options
1172
+ */
1173
+ ServiceClient.prototype.get_swagger = function (options) {
1174
+ return this.request("datalake", "get_swagger", "get", "/swagger.json", null, options);
1175
+ };
1176
+ /**
1177
+ * POST /promo - Create a new promotion
1178
+ *
1179
+ * @param body
1180
+ * @param options - additional request options
1181
+ */
1182
+ ServiceClient.prototype.post_promo = function (body, options) {
1183
+ return this.request("promo", "post_promo", "post", "/promo", body, options);
1184
+ };
1185
+ /**
1186
+ * GET /promo - Get all promotions
1187
+ *
1188
+ * @param options - additional request options
1189
+ */
1190
+ ServiceClient.prototype.get_promos = function (options) {
1191
+ return this.request("promo", "get_promos", "get", "/promo", null, options);
1192
+ };
1193
+ /**
1194
+ * GET /promo/{id} - Get an individual promotion
1195
+ *
1196
+ * @param id - promo
1197
+ * @param options - additional request options
1198
+ */
1199
+ ServiceClient.prototype.get_promo = function (id, options) {
1200
+ return this.request("promo", "get_promo", "get", "/promo/" + id, null, options);
1201
+ };
1202
+ /**
1203
+ * PUT /promo/{id} - Update a promotion
1204
+ *
1205
+ * @param id - Id of a promotion
1206
+ * @param body
1207
+ * @param options - additional request options
1208
+ */
1209
+ ServiceClient.prototype.put_promo = function (id, body, options) {
1210
+ return this.request("promo", "put_promo", "put", "/promo/" + id, body, options);
1211
+ };
1212
+ /**
1213
+ * DELETE /promo/{id} - Delete promotion
1214
+ *
1215
+ * @param id - Id of a promotion
1216
+ * @param options - additional request options
1217
+ */
1218
+ ServiceClient.prototype.delete_promo = function (id, options) {
1219
+ return this.request("promo", "delete_promo", "delete", "/promo/" + id, null, options);
1220
+ };
1221
+ /**
1222
+ * GET /promo/company/{company}/location/group/{location_group} - Get all promotions within company for a location group
1223
+ *
1224
+ * @param company - Show promotions for selected company
1225
+ * @param location_group - Show promotions for selected location group
1226
+ * @param options - additional request options
1227
+ */
1228
+ ServiceClient.prototype.get_promo_company_location_group = function (company, location_group, options) {
1229
+ return this.request("promo", "get_promo_company_location_group", "get", "/promo/company/" + company + "/location/group/" + location_group, null, options);
1230
+ };
1231
+ /**
1232
+ * POST /promo/validate/voucher - Validate a promo voucher
1233
+ *
1234
+ * @param body
1235
+ * @param options - additional request options
1236
+ */
1237
+ ServiceClient.prototype.post_promo_validate_voucher = function (body, options) {
1238
+ return this.request("promo", "post_promo_validate_voucher", "post", "/promo/validate/voucher", body, options);
1239
+ };
1240
+ /**
1241
+ * POST /promo/redeem/voucher - Redeem a promo voucher
1242
+ *
1243
+ * @param body
1244
+ * @param options - additional request options
1245
+ */
1246
+ ServiceClient.prototype.post_promo_redeem_voucher = function (body, options) {
1247
+ return this.request("promo", "post_promo_redeem_voucher", "post", "/promo/redeem/voucher", body, options);
1248
+ };
1249
+ /**
1250
+ * POST /promo/voucher - Create new voucher
1251
+ *
1252
+ * @param body
1253
+ * @param options - additional request options
1254
+ */
1255
+ ServiceClient.prototype.post_promo_voucher = function (body, options) {
1256
+ return this.request("promo", "post_promo_voucher", "post", "/promo/voucher", body, options);
1257
+ };
1258
+ /**
1259
+ * PUT /promo/voucher/{id} - Update voucher
1260
+ *
1261
+ * @param id - TODO: add parameter to swagger.json
1262
+ * @param body
1263
+ * @param options - additional request options
1264
+ */
1265
+ ServiceClient.prototype.put_promo_voucher = function (id, body, options) {
1266
+ return this.request("promo", "put_promo_voucher", "put", "/promo/voucher/" + id, body, options);
1267
+ };
1268
+ /**
1269
+ * DELETE /promo/voucher/{id} - Delete voucher
1270
+ *
1271
+ * @param id - TODO: add parameter to swagger.json
1272
+ * @param options - additional request options
1273
+ */
1274
+ ServiceClient.prototype.delete_promo_voucher = function (id, options) {
1275
+ return this.request("promo", "delete_promo_voucher", "delete", "/promo/voucher/" + id, null, options);
1276
+ };
1277
+ /**
1278
+ * POST /promo/customer/ - Add user to voucherify
1279
+ *
1280
+ * @param body
1281
+ * @param options - additional request options
1282
+ */
1283
+ ServiceClient.prototype.post_promo_customer = function (body, options) {
1284
+ return this.request("promo", "post_promo_customer", "post", "/promo/customer/", body, options);
1285
+ };
1286
+ /**
1287
+ * DELETE /promo/customer/ - Delete user from voucherify
1288
+ *
1289
+ * @param body
1290
+ * @param options - additional request options
1291
+ */
1292
+ ServiceClient.prototype.delete_promo_customer = function (body, options) {
1293
+ return this.request("promo", "delete_promo_customer", "delete", "/promo/customer/", body, options);
1294
+ };
1295
+ /**
1296
+ * POST /promo/voucher/{id}/reverse - Reverse a redemption from a promo voucher
1297
+ *
1298
+ * @param id - TODO: add parameter to swagger.json
1299
+ * @param body
1300
+ * @param options - additional request options
1301
+ */
1302
+ ServiceClient.prototype.post_promo_voucher_reverse = function (id, body, options) {
1303
+ return this.request("promo", "post_promo_voucher_reverse", "post", "/promo/voucher/" + id + "/reverse", body, options);
1304
+ };
1305
+ /**
1306
+ * POST /promo/voucherify/activity/execute - Execute a Journey custom Activity request
1307
+ *
1308
+ * @param body
1309
+ * @param options - additional request options
1310
+ */
1311
+ ServiceClient.prototype.post_promo_voucherify_activity_execute = function (body, options) {
1312
+ return this.request("promo", "post_promo_voucherify_activity_execute", "post", "/promo/voucherify/activity/execute", body, options);
1313
+ };
1314
+ /**
1315
+ * GET /promo/voucherify/activity/config.json - Get SFMC Journey Custom Activity configuration
1316
+ *
1317
+ * @param options - additional request options
1318
+ */
1319
+ ServiceClient.prototype.get_promo_voucherify_activity_config = function (options) {
1320
+ return this.request("promo", "get_promo_voucherify_activity_config", "get", "/promo/voucherify/activity/config.json", null, options);
1321
+ };
1322
+ /**
1323
+ * POST /dh/sql
1324
+ *
1325
+ * @param options - additional request options
1326
+ */
1327
+ ServiceClient.prototype.post_dh_sql = function (options) {
1328
+ return this.request("dh", "post_dh_sql", "post", "/dh/sql", null, options);
1329
+ };
1330
+ /**
1331
+ * GET /config/{key} - get a configuration
1332
+ *
1333
+ * @param key - configuration key
1334
+ * @param options - additional request options
1335
+ */
1336
+ ServiceClient.prototype.get_config = function (key, options) {
1337
+ return this.request("config", "get_config", "get", "/config/" + key, null, options);
1338
+ };
1339
+ /**
1340
+ * POST /config/{key} - Create a configuration
1341
+ *
1342
+ * @param key - configuration key
1343
+ * @param body
1344
+ * @param options - additional request options
1345
+ */
1346
+ ServiceClient.prototype.post_config = function (key, body, options) {
1347
+ return this.request("config", "post_config", "post", "/config/" + key, body, options);
1348
+ };
1349
+ /**
1350
+ * PUT /config/{key} - Update a configuration
1351
+ *
1352
+ * @param key - configuration key
1353
+ * @param body
1354
+ * @param options - additional request options
1355
+ */
1356
+ ServiceClient.prototype.put_config = function (key, body, options) {
1357
+ return this.request("config", "put_config", "put", "/config/" + key, body, options);
1358
+ };
1359
+ /**
1360
+ * DELETE /config/{key} - Delete a configuration
1361
+ *
1362
+ * @param key - configuration key
1363
+ * @param options - additional request options
1364
+ */
1365
+ ServiceClient.prototype.delete_config = function (key, options) {
1366
+ return this.request("config", "delete_config", "delete", "/config/" + key, null, options);
1367
+ };
1368
+ /**
1369
+ * GET /config/public/{key} - get a public configuration
1370
+ *
1371
+ * @param key - configuration key
1372
+ * @param options - additional request options
1373
+ */
1374
+ ServiceClient.prototype.get_config_public = function (key, options) {
1375
+ return this.request("config", "get_config_public", "get", "/config/public/" + key, null, options);
1376
+ };
1377
+ /**
1378
+ * POST /config/public/{key} - Create a public configuration
1379
+ *
1380
+ * @param key - configuration key
1381
+ * @param body
1382
+ * @param options - additional request options
1383
+ */
1384
+ ServiceClient.prototype.post_config_public = function (key, body, options) {
1385
+ return this.request("config", "post_config_public", "post", "/config/public/" + key, body, options);
1386
+ };
1387
+ /**
1388
+ * PUT /config/public/{key} - Update a public configuration
1389
+ *
1390
+ * @param key - configuration key
1391
+ * @param body
1392
+ * @param options - additional request options
1393
+ */
1394
+ ServiceClient.prototype.put_config_public = function (key, body, options) {
1395
+ return this.request("config", "put_config_public", "put", "/config/public/" + key, body, options);
1396
+ };
1397
+ /**
1398
+ * DELETE /config/public/{key} - Delete a public configuration
1399
+ *
1400
+ * @param key - configuration key
1401
+ * @param options - additional request options
1402
+ */
1403
+ ServiceClient.prototype.delete_config_public = function (key, options) {
1404
+ return this.request("config", "delete_config_public", "delete", "/config/public/" + key, null, options);
1405
+ };
1406
+ /**
1407
+ * POST /announcement - Create Announcement
1408
+ *
1409
+ * @param body - Announcement
1410
+ * @param options - additional request options
1411
+ */
1412
+ ServiceClient.prototype.post_announcement = function (body, options) {
1413
+ return this.request("announcement", "post_announcement", "post", "/announcement", body, options);
1414
+ };
1415
+ /**
1416
+ * GET /announcement/resource/{id} - Get Announcements for a specific entity
1417
+ *
1418
+ * @param id - Id of the entity to which announcement is specifically related.; TODO: mark parameter as required in swagger
1419
+ * @param options - additional request options
1420
+ */
1421
+ ServiceClient.prototype.get_announcement_resource = function (id, options) {
1422
+ return this.request("announcement", "get_announcement_resource", "get", "/announcement/resource/" + id, null, options);
1423
+ };
1424
+ /**
1425
+ * GET /announcement/resource - Get Announcements
1426
+ *
1427
+ * @param options - additional request options
1428
+ */
1429
+ ServiceClient.prototype.get_announcement_resources = function (options) {
1430
+ return this.request("announcement", "get_announcement_resources", "get", "/announcement/resource", null, options);
1431
+ };
1432
+ /**
1433
+ * GET /announcement/{id} - Get Announcement
1434
+ *
1435
+ * @param id - Id of the entity to which announcement is specifically related.
1436
+ * @param options - additional request options
1437
+ */
1438
+ ServiceClient.prototype.get_announcement = function (id, options) {
1439
+ return this.request("announcement", "get_announcement", "get", "/announcement/" + id, null, options);
1440
+ };
1441
+ /**
1442
+ * PUT /announcement/{id} - Update Announcement
1443
+ *
1444
+ * @param id - Id of the announcement
1445
+ * @param body - Announcement
1446
+ * @param options - additional request options
1447
+ */
1448
+ ServiceClient.prototype.put_announcement = function (id, body, options) {
1449
+ return this.request("announcement", "put_announcement", "put", "/announcement/" + id, body, options);
1450
+ };
1451
+ /**
1452
+ * DELETE /announcement/{id} - Delete announcement item
1453
+ *
1454
+ * @param id - Id of the announcement
1455
+ * @param options - additional request options
1456
+ */
1457
+ ServiceClient.prototype.delete_announcement = function (id, options) {
1458
+ return this.request("announcement", "delete_announcement", "delete", "/announcement/" + id, null, options);
1459
+ };
1460
+ /**
1461
+ * GET /report/analytics/group/{location_group}/{report_type}
1462
+ *
1463
+ * @param location_group
1464
+ * @param report_type
1465
+ * @param options - additional request options
1466
+ */
1467
+ ServiceClient.prototype.get_report_analytics_group = function (location_group, report_type, options) {
1468
+ return this.request("report", "get_report_analytics_group", "get", "/report/analytics/group/" + location_group + "/" + report_type, null, options);
1469
+ };
1470
+ /**
1471
+ * GET /report/analytics/combined/group/{location_group}
1472
+ *
1473
+ * @param location_group
1474
+ * @param options - additional request options
1475
+ */
1476
+ ServiceClient.prototype.get_report_analytics_combined_group = function (location_group, options) {
1477
+ return this.request("report", "get_report_analytics_combined_group", "get", "/report/analytics/combined/group/" + location_group, null, options);
1478
+ };
1479
+ /**
1480
+ * GET /report/analytics/exactmobile/totals
1481
+ *
1482
+ * @param options - additional request options
1483
+ */
1484
+ ServiceClient.prototype.get_report_analytics_exactmobile_totals = function (options) {
1485
+ return this.request("report", "get_report_analytics_exactmobile_totals", "get", "/report/analytics/exactmobile/totals", null, options);
1486
+ };
1487
+ /**
1488
+ * GET /report/analytics/exactmobile/transactions
1489
+ *
1490
+ * @param options - additional request options
1491
+ */
1492
+ ServiceClient.prototype.get_report_analytics_exactmobile_transactions = function (options) {
1493
+ return this.request("report", "get_report_analytics_exactmobile_transactions", "get", "/report/analytics/exactmobile/transactions", null, options);
1494
+ };
1495
+ /**
1496
+ * GET /report/analytics/exactmobile/discrepancies
1497
+ *
1498
+ * @param options - additional request options
1499
+ */
1500
+ ServiceClient.prototype.get_report_analytics_exactmobile_discrepancies = function (options) {
1501
+ return this.request("report", "get_report_analytics_exactmobile_discrepancies", "get", "/report/analytics/exactmobile/discrepancies", null, options);
1502
+ };
1503
+ /**
1504
+ * GET /report/analytics/tracker/report/{id}
1505
+ *
1506
+ * @param id
1507
+ * @param options - additional request options
1508
+ */
1509
+ ServiceClient.prototype.get_report_analytics_tracker_report = function (id, options) {
1510
+ return this.request("report", "get_report_analytics_tracker_report", "get", "/report/analytics/tracker/report/" + id, null, options);
1511
+ };
1512
+ /**
1513
+ * GET /report/eod/group/{id} - Get reports for selected location group
1514
+ *
1515
+ * @param id
1516
+ * @param options - additional request options
1517
+ */
1518
+ ServiceClient.prototype.get_report_eod_group = function (id, options) {
1519
+ return this.request("report", "get_report_eod_group", "get", "/report/eod/group/" + id, null, options);
1520
+ };
1521
+ /**
1522
+ * GET /report/eod/group/{id}/subscribers - Get reports for selected location group
1523
+ *
1524
+ * @param id
1525
+ * @param options - additional request options
1526
+ */
1527
+ ServiceClient.prototype.get_report_eod_group_subscribers = function (id, options) {
1528
+ return this.request("report", "get_report_eod_group_subscribers", "get", "/report/eod/group/" + id + "/subscribers", null, options);
1529
+ };
1530
+ /**
1531
+ * POST /report/eod/group/{id}/subscribers - Add emails to selected location group
1532
+ *
1533
+ * @param id
1534
+ * @param body
1535
+ * @param options - additional request options
1536
+ */
1537
+ ServiceClient.prototype.post_report_eod_group_subscribers = function (id, body, options) {
1538
+ return this.request("report", "post_report_eod_group_subscribers", "post", "/report/eod/group/" + id + "/subscribers", body, options);
1539
+ };
1540
+ /**
1541
+ * DELETE /report/eod/group/{id}/subscribers - deletes subscribers from selected group
1542
+ *
1543
+ * @param id
1544
+ * @param options - additional request options
1545
+ */
1546
+ ServiceClient.prototype.delete_report_eod_group_subscribers = function (id, options) {
1547
+ return this.request("report", "delete_report_eod_group_subscribers", "delete", "/report/eod/group/" + id + "/subscribers", null, options);
1548
+ };
1549
+ /**
1550
+ * PUT /report/eod/group/{id}/subscribers - replace all subscribers from selected location group with payload
1551
+ *
1552
+ * @param id
1553
+ * @param body
1554
+ * @param options - additional request options
1555
+ */
1556
+ ServiceClient.prototype.put_report_eod_group_subscribers = function (id, body, options) {
1557
+ return this.request("report", "put_report_eod_group_subscribers", "put", "/report/eod/group/" + id + "/subscribers", body, options);
1558
+ };
1559
+ /**
1560
+ * GET /report/discrepancy/subscribers - Get subscribers for discrepency widget
1561
+ *
1562
+ * @param options - additional request options
1563
+ */
1564
+ ServiceClient.prototype.get_report_discrepancy_subscribers = function (options) {
1565
+ return this.request("report", "get_report_discrepancy_subscribers", "get", "/report/discrepancy/subscribers", null, options);
1566
+ };
1567
+ /**
1568
+ * DELETE /report/discrepancy/subscribers - deletes subscriber from discrepency
1569
+ *
1570
+ * @param options - additional request options
1571
+ */
1572
+ ServiceClient.prototype.delete_report_discrepancy_subscribers = function (options) {
1573
+ return this.request("report", "delete_report_discrepancy_subscribers", "delete", "/report/discrepancy/subscribers", null, options);
1574
+ };
1575
+ /**
1576
+ * POST /report/discrepancy/subscribers - Create new discrepancy subscriber
1577
+ *
1578
+ * @param body
1579
+ * @param options - additional request options
1580
+ */
1581
+ ServiceClient.prototype.post_report_discrepancy_subscribers = function (body, options) {
1582
+ return this.request("report", "post_report_discrepancy_subscribers", "post", "/report/discrepancy/subscribers", body, options);
1583
+ };
1584
+ /**
1585
+ * GET /user/auth - Gets the JWT token for a user
1586
+ *
1587
+ * @param options - additional request options
1588
+ */
1589
+ ServiceClient.prototype.get_user_auth = function (options) {
1590
+ return this.request("user", "get_user_auth", "get", "/user/auth", null, options);
1591
+ };
1592
+ /**
1593
+ * POST /user/auth - Use refresh token to generate a new access token and refresh token
1594
+ *
1595
+ * @param body
1596
+ * @param options - additional request options
1597
+ */
1598
+ ServiceClient.prototype.post_user_auth = function (body, options) {
1599
+ return this.request("user", "post_user_auth", "post", "/user/auth", body, options);
1600
+ };
1601
+ /**
1602
+ * GET /user/zendesk - Get zendesk JWT token to allow web widget to search restricted articles
1603
+ *
1604
+ * @param options - additional request options
1605
+ */
1606
+ ServiceClient.prototype.get_user_zendesk = function (options) {
1607
+ return this.request("user", "get_user_zendesk", "get", "/user/zendesk", null, options);
1608
+ };
1609
+ /**
1610
+ * POST /user - Create an User
1611
+ *
1612
+ * @param body - User object that needs to be created
1613
+ * @param options - additional request options
1614
+ */
1615
+ ServiceClient.prototype.post_user = function (body, options) {
1616
+ return this.request("user", "post_user", "post", "/user", body, options);
1617
+ };
1618
+ /**
1619
+ * GET /user/{id} - Get an individual user
1620
+ *
1621
+ * @param id - User ID
1622
+ * @param options - additional request options
1623
+ */
1624
+ ServiceClient.prototype.get_user = function (id, options) {
1625
+ return this.request("user", "get_user", "get", "/user/" + id, null, options);
1626
+ };
1627
+ /**
1628
+ * PUT /user/{id} - Update an individual user
1629
+ *
1630
+ * @param id - User ID
1631
+ * @param body - User object that needs to be updated
1632
+ * @param options - additional request options
1633
+ */
1634
+ ServiceClient.prototype.put_user = function (id, body, options) {
1635
+ return this.request("user", "put_user", "put", "/user/" + id, body, options);
1636
+ };
1637
+ /**
1638
+ * PATCH /user/{id} - Update an individual user
1639
+ *
1640
+ * @param id - User ID
1641
+ * @param body - User properties which should be updated
1642
+ * @param options - additional request options
1643
+ */
1644
+ ServiceClient.prototype.patch_user = function (id, body, options) {
1645
+ return this.request("user", "patch_user", "patch", "/user/" + id, body, options);
1646
+ };
1647
+ /**
1648
+ * DELETE /user/{id} - delete an individual user
1649
+ *
1650
+ * @param id - User ID
1651
+ * @param options - additional request options
1652
+ */
1653
+ ServiceClient.prototype.delete_user = function (id, options) {
1654
+ return this.request("user", "delete_user", "delete", "/user/" + id, null, options);
1655
+ };
1656
+ /**
1657
+ * POST /user/device/auth - Endpoint for generating/retrieving KDS device token
1658
+ *
1659
+ * @param body
1660
+ * @param options - additional request options
1661
+ */
1662
+ ServiceClient.prototype.post_user_kds_token = function (body, options) {
1663
+ return this.request("user", "post_user_kds_token", "post", "/user/device/auth", body, options);
1664
+ };
1665
+ /**
1666
+ * GET /user/device/auth - Endpoint retrieving KDS device token
1667
+ *
1668
+ * @param options - additional request options
1669
+ */
1670
+ ServiceClient.prototype.get_user_kds_token = function (options) {
1671
+ return this.request("user", "get_user_kds_token", "get", "/user/device/auth", null, options);
1672
+ };
1673
+ /**
1674
+ * DELETE /user/device/auth/{device_id} - Endpoint for deleting a device by specified device_id
1675
+ *
1676
+ * @param device_id - KDS device ID
1677
+ * @param options - additional request options
1678
+ */
1679
+ ServiceClient.prototype.delete_user_device_auth = function (device_id, options) {
1680
+ return this.request("user", "delete_user_device_auth", "delete", "/user/device/auth/" + device_id, null, options);
1681
+ };
1682
+ /**
1683
+ * PATCH /user/device/auth/{device_id} - Endpoint for authorizing device to retrieve valid kds token
1684
+ *
1685
+ * @param device_id - KDS device ID
1686
+ * @param options - additional request options
1687
+ */
1688
+ ServiceClient.prototype.patch_user_auth_kds = function (device_id, options) {
1689
+ return this.request("user", "patch_user_auth_kds", "patch", "/user/device/auth/" + device_id, null, options);
1690
+ };
1691
+ /**
1692
+ * POST /user/{id}/changepassword - Change the users password
1693
+ *
1694
+ * @param id - User ID
1695
+ * @param body
1696
+ * @param options - additional request options
1697
+ */
1698
+ ServiceClient.prototype.post_user_change_password = function (id, body, options) {
1699
+ return this.request("user", "post_user_change_password", "post", "/user/" + id + "/changepassword", body, options);
1700
+ };
1701
+ /**
1702
+ * DELETE /user/logout - Logs out current user
1703
+ *
1704
+ * @param options - additional request options
1705
+ */
1706
+ ServiceClient.prototype.delete_user_logout = function (options) {
1707
+ return this.request("user", "delete_user_logout", "delete", "/user/logout", null, options);
1708
+ };
1709
+ /**
1710
+ * POST /user/{id}/secret/{key} - Add a secret key
1711
+ *
1712
+ * @param id - User ID
1713
+ * @param key
1714
+ * @param body - Secret to be stored
1715
+ * @param options - additional request options
1716
+ */
1717
+ ServiceClient.prototype.post_user_add_secret = function (id, key, body, options) {
1718
+ return this.request("user", "post_user_add_secret", "post", "/user/" + id + "/secret/" + key, body, options);
1719
+ };
1720
+ /**
1721
+ * GET /user/{id}/secret/{key} - Get back a secret key
1722
+ *
1723
+ * @param id - User ID
1724
+ * @param key
1725
+ * @param options - additional request options
1726
+ */
1727
+ ServiceClient.prototype.get_user_secret = function (id, key, options) {
1728
+ return this.request("user", "get_user_secret", "get", "/user/" + id + "/secret/" + key, null, options);
1729
+ };
1730
+ /**
1731
+ * POST /user/forgotpassword - Reset the users password
1732
+ *
1733
+ * @param body
1734
+ * @param options - additional request options
1735
+ */
1736
+ ServiceClient.prototype.post_user_reset_password = function (body, options) {
1737
+ return this.request("user", "post_user_reset_password", "post", "/user/forgotpassword", body, options);
1738
+ };
1739
+ /**
1740
+ * POST /user/{id}/resetpassword - Reset the users password using a reset token
1741
+ *
1742
+ * @param id - realm
1743
+ * @param body
1744
+ * @param options - additional request options
1745
+ */
1746
+ ServiceClient.prototype.post_user_reset_password_token = function (id, body, options) {
1747
+ return this.request("user", "post_user_reset_password_token", "post", "/user/" + id + "/resetpassword", body, options);
1748
+ };
1749
+ /**
1750
+ * GET /user/realm/{realm} - Get all the users in a realm
1751
+ *
1752
+ * @param realm - realm
1753
+ * @param options - additional request options
1754
+ */
1755
+ ServiceClient.prototype.get_user_realm_users = function (realm, options) {
1756
+ return this.request("user", "get_user_realm_users", "get", "/user/realm/" + realm, null, options);
1757
+ };
1758
+ /**
1759
+ * GET /user/{id}/permissions - Get user permissions
1760
+ *
1761
+ * @param id - user
1762
+ * @param options - additional request options
1763
+ */
1764
+ ServiceClient.prototype.get_user_permissions = function (id, options) {
1765
+ return this.request("user", "get_user_permissions", "get", "/user/" + id + "/permissions", null, options);
1766
+ };
1767
+ /**
1768
+ * PUT /user/{id}/permissions - Update user permissions
1769
+ *
1770
+ * @param id - user
1771
+ * @param body
1772
+ * @param options - additional request options
1773
+ */
1774
+ ServiceClient.prototype.put_user_permissions = function (id, body, options) {
1775
+ return this.request("user", "put_user_permissions", "put", "/user/" + id + "/permissions", body, options);
1776
+ };
1777
+ /**
1778
+ * POST /user/{id}/checkin - Create check-in for user
1779
+ *
1780
+ * @param id - UserId of user who wants to checkin
1781
+ * @param body
1782
+ * @param options - additional request options
1783
+ */
1784
+ ServiceClient.prototype.post_user_check_in = function (id, body, options) {
1785
+ return this.request("user", "post_user_check_in", "post", "/user/" + id + "/checkin", body, options);
1786
+ };
1787
+ /**
1788
+ * PATCH /user/{id}/checkin/{checkin_id} - Update check-in
1789
+ *
1790
+ * @param id - UserId of user who wants to checkin
1791
+ * @param checkin_id - Checkin id
1792
+ * @param body - The updated state/date_queued of the check-in
1793
+ * @param options - additional request options
1794
+ */
1795
+ ServiceClient.prototype.patch_user_checkin = function (id, checkin_id, body, options) {
1796
+ return this.request("user", "patch_user_checkin", "patch", "/user/" + id + "/checkin/" + checkin_id, body, options);
1797
+ };
1798
+ /**
1799
+ * GET /user/checkin/search - Search check-in
1800
+ *
1801
+ * @param options - additional request options
1802
+ */
1803
+ ServiceClient.prototype.get_user_search_check_in = function (options) {
1804
+ return this.request("user", "get_user_search_check_in", "get", "/user/checkin/search", null, options);
1805
+ };
1806
+ /**
1807
+ * POST /user/{id}/verification - Send email verification to user
1808
+ *
1809
+ * @param id - realm
1810
+ * @param options - additional request options
1811
+ */
1812
+ ServiceClient.prototype.post_user_send_email_verification = function (id, options) {
1813
+ return this.request("user", "post_user_send_email_verification", "post", "/user/" + id + "/verification", null, options);
1814
+ };
1815
+ /**
1816
+ * PUT /user/{id}/verification/confirm - Verify a users email
1817
+ *
1818
+ * @param id - realm
1819
+ * @param body
1820
+ * @param options - additional request options
1821
+ */
1822
+ ServiceClient.prototype.put_user_verify_user_email = function (id, body, options) {
1823
+ return this.request("user", "put_user_verify_user_email", "put", "/user/" + id + "/verification/confirm", body, options);
1824
+ };
1825
+ /**
1826
+ * POST /loyalty/{id}/enroll/{user_id} - Enroll logged in user in Loyalty program
1827
+ *
1828
+ * @param id - Loyalty Provider id
1829
+ * @param user_id - CompassDigital User id
1830
+ * @param options - additional request options
1831
+ */
1832
+ ServiceClient.prototype.post_loyalty_enroll = function (id, user_id, options) {
1833
+ return this.request("loyalty", "post_loyalty_enroll", "post", "/loyalty/" + id + "/enroll/" + user_id, null, options);
1834
+ };
1835
+ /**
1836
+ * GET /loyalty/{id}/points - Get potential points user could earn from certain event in Loyalty program
1837
+ *
1838
+ * @param id - Loyalty Provider id
1839
+ * @param options - additional request options
1840
+ */
1841
+ ServiceClient.prototype.get_loyalty_points = function (id, options) {
1842
+ return this.request("loyalty", "get_loyalty_points", "get", "/loyalty/" + id + "/points", null, options);
1843
+ };
1844
+ /**
1845
+ * GET /loyalty/{id}/offers/{user_id} - Get offers for the logged in user
1846
+ *
1847
+ * @param id - Loyalty Provider id
1848
+ * @param user_id - CompassDigital User id
1849
+ * @param options - additional request options
1850
+ */
1851
+ ServiceClient.prototype.get_loyalty_offers = function (id, user_id, options) {
1852
+ return this.request("loyalty", "get_loyalty_offers", "get", "/loyalty/" + id + "/offers/" + user_id, null, options);
1853
+ };
1854
+ /**
1855
+ * GET /loyalty/{id}/enrollmentstatus/{user_id} - Get enrollment status for logged in user
1856
+ *
1857
+ * @param id - Loyalty Provider id
1858
+ * @param user_id - CompassDigital User id
1859
+ * @param options - additional request options
1860
+ */
1861
+ ServiceClient.prototype.get_loyalty_enrollmentstatus = function (id, user_id, options) {
1862
+ return this.request("loyalty", "get_loyalty_enrollmentstatus", "get", "/loyalty/" + id + "/enrollmentstatus/" + user_id, null, options);
1863
+ };
1864
+ /**
1865
+ * GET /loyalty/{id}/balance/{user_id} - Get loyalty point balance for logged in user
1866
+ *
1867
+ * @param id - Loyalty Provider id
1868
+ * @param user_id - CompassDigital User id
1869
+ * @param options - additional request options
1870
+ */
1871
+ ServiceClient.prototype.get_loyalty_balance = function (id, user_id, options) {
1872
+ return this.request("loyalty", "get_loyalty_balance", "get", "/loyalty/" + id + "/balance/" + user_id, null, options);
1873
+ };
1874
+ /**
1875
+ * GET /loyalty/{id}/opportunities/{user_id} - Get earning opportunities for the logged in user
1876
+ *
1877
+ * @param id - Loyalty Provider id
1878
+ * @param user_id - CompassDigital User id
1879
+ * @param options - additional request options
1880
+ */
1881
+ ServiceClient.prototype.get_loyalty_opportunities = function (id, user_id, options) {
1882
+ return this.request("loyalty", "get_loyalty_opportunities", "get", "/loyalty/" + id + "/opportunities/" + user_id, null, options);
1883
+ };
1884
+ /**
1885
+ * POST /loyalty/{id}/opportunities/{user_id} - Record an event for the logged in user
1886
+ *
1887
+ * @param id - Loyalty Provider id
1888
+ * @param user_id - CompassDigital User id
1889
+ * @param options - additional request options
1890
+ */
1891
+ ServiceClient.prototype.post_loyalty_opportunities = function (id, user_id, options) {
1892
+ return this.request("loyalty", "post_loyalty_opportunities", "post", "/loyalty/" + id + "/opportunities/" + user_id, null, options);
1893
+ };
1894
+ /**
1895
+ * GET /loyalty/{id}/rewards/{user_id} - Get rewards available for the logged in user
1896
+ *
1897
+ * @param id - Loyalty Provider id
1898
+ * @param user_id - CompassDigital User id
1899
+ * @param options - additional request options
1900
+ */
1901
+ ServiceClient.prototype.get_loyalty_rewards = function (id, user_id, options) {
1902
+ return this.request("loyalty", "get_loyalty_rewards", "get", "/loyalty/" + id + "/rewards/" + user_id, null, options);
1903
+ };
1904
+ /**
1905
+ * GET /loyalty/{id}/coupons/{user_id} - Get coupons available for the logged in user
1906
+ *
1907
+ * @param id - Loyalty Provider id
1908
+ * @param user_id - CompassDigital User id
1909
+ * @param options - additional request options
1910
+ */
1911
+ ServiceClient.prototype.get_loyalty_coupons = function (id, user_id, options) {
1912
+ return this.request("loyalty", "get_loyalty_coupons", "get", "/loyalty/" + id + "/coupons/" + user_id, null, options);
1913
+ };
1914
+ /**
1915
+ * GET /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for an order based on amount.
1916
+ *
1917
+ * @param id - Loyalty Provider id
1918
+ * @param user_id - CompassDigital User id
1919
+ * @param options - additional request options
1920
+ */
1921
+ ServiceClient.prototype.get_loyalty_orderpoints = function (id, user_id, options) {
1922
+ return this.request("loyalty", "get_loyalty_orderpoints", "get", "/loyalty/" + id + "/orderpoints/" + user_id, null, options);
1923
+ };
1924
+ /**
1925
+ * POST /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for a order based on amount and items
1926
+ *
1927
+ * @param id - Loyalty Provider id
1928
+ * @param user_id - CompassDigital User id
1929
+ * @param body
1930
+ * @param options - additional request options
1931
+ */
1932
+ ServiceClient.prototype.post_loyalty_orderpoints = function (id, user_id, body, options) {
1933
+ return this.request("loyalty", "post_loyalty_orderpoints", "post", "/loyalty/" + id + "/orderpoints/" + user_id, body, options);
1934
+ };
1935
+ /**
1936
+ * POST /loyalty/{id}/purchase/{user_id} - Record purchase event
1937
+ *
1938
+ * @param id - Loyalty Provider id
1939
+ * @param user_id - CompassDigital User id
1940
+ * @param body
1941
+ * @param options - additional request options
1942
+ */
1943
+ ServiceClient.prototype.post_loyalty_purchase = function (id, user_id, body, options) {
1944
+ return this.request("loyalty", "post_loyalty_purchase", "post", "/loyalty/" + id + "/purchase/" + user_id, body, options);
1945
+ };
1946
+ /**
1947
+ * POST /loyalty/{id}/buyreward/{user_id} - Redeem rewards to coupons
1948
+ *
1949
+ * @param id - Loyalty Provider id
1950
+ * @param user_id - CompassDigital User id
1951
+ * @param body
1952
+ * @param options - additional request options
1953
+ */
1954
+ ServiceClient.prototype.post_loyalty_buyreward = function (id, user_id, body, options) {
1955
+ return this.request("loyalty", "post_loyalty_buyreward", "post", "/loyalty/" + id + "/buyreward/" + user_id, body, options);
1956
+ };
1957
+ /**
1958
+ * GET /loyalty/{id}/history/{user_id} - Get history of loyalty transactions for user
1959
+ *
1960
+ * @param id - Loyalty Provider id
1961
+ * @param user_id - CompassDigital User id
1962
+ * @param options - additional request options
1963
+ */
1964
+ ServiceClient.prototype.get_loyalty_history = function (id, user_id, options) {
1965
+ return this.request("loyalty", "get_loyalty_history", "get", "/loyalty/" + id + "/history/" + user_id, null, options);
1966
+ };
1967
+ /**
1968
+ * GET /loyalty/{id}/coupon/{user_id}/{coupon_id} - get coupon's information
1969
+ *
1970
+ * @param id - Loyalty Provider id
1971
+ * @param user_id - CompassDigital User id
1972
+ * @param coupon_id - Coupon code to get coupon information
1973
+ * @param options - additional request options
1974
+ */
1975
+ ServiceClient.prototype.get_loyalty_coupon = function (id, user_id, coupon_id, options) {
1976
+ return this.request("loyalty", "get_loyalty_coupon", "get", "/loyalty/" + id + "/coupon/" + user_id + "/" + coupon_id, null, options);
1977
+ };
1978
+ /**
1979
+ * PATCH /loyalty/{id}/coupon/{user_id}/{coupon_id} - Update coupon's status
1980
+ *
1981
+ * @param id - Loyalty Provider id
1982
+ * @param user_id - CompassDigital User id
1983
+ * @param coupon_id - Coupon code to update
1984
+ * @param body
1985
+ * @param options - additional request options
1986
+ */
1987
+ ServiceClient.prototype.patch_loyalty_coupon = function (id, user_id, coupon_id, body, options) {
1988
+ return this.request("loyalty", "patch_loyalty_coupon", "patch", "/loyalty/" + id + "/coupon/" + user_id + "/" + coupon_id, body, options);
1989
+ };
1990
+ /**
1991
+ * GET /loyalty/{id}/search - Search CDL user id by internal 500friends id
1992
+ *
1993
+ * @param id - Loyalty Provider id
1994
+ * @param options - additional request options
1995
+ */
1996
+ ServiceClient.prototype.get_loyalty_search = function (id, options) {
1997
+ return this.request("loyalty", "get_loyalty_search", "get", "/loyalty/" + id + "/search", null, options);
1998
+ };
1999
+ /**
2000
+ * GET /loyalty/{id}/users - Get all loyalty users updated after specific date
2001
+ *
2002
+ * @param id - Loyalty Provider id
2003
+ * @param options - additional request options
2004
+ */
2005
+ ServiceClient.prototype.get_loyalty_users = function (id, options) {
2006
+ return this.request("loyalty", "get_loyalty_users", "get", "/loyalty/" + id + "/users", null, options);
2007
+ };
2008
+ /**
2009
+ * GET /loyalty/{id}/events - Get all loyalty events updated after specific date
2010
+ *
2011
+ * @param id - Loyalty Provider id
2012
+ * @param options - additional request options
2013
+ */
2014
+ ServiceClient.prototype.get_loyalty_events = function (id, options) {
2015
+ return this.request("loyalty", "get_loyalty_events", "get", "/loyalty/" + id + "/events", null, options);
2016
+ };
2017
+ /**
2018
+ * GET /brand/{id}
2019
+ *
2020
+ * @param id - TODO: add parameter to swagger.json
2021
+ * @param options - additional request options
2022
+ */
2023
+ ServiceClient.prototype.get_brand = function (id, options) {
2024
+ return this.request("brand", "get_brand", "get", "/brand/" + id, null, options);
2025
+ };
2026
+ /**
2027
+ * GET /brand
2028
+ *
2029
+ * @param options - additional request options
2030
+ */
2031
+ ServiceClient.prototype.get_brands = function (options) {
2032
+ return this.request("brand", "get_brands", "get", "/brand", null, options);
2033
+ };
2034
+ /**
2035
+ * GET /calendar/{id}
2036
+ *
2037
+ * @param id - brand
2038
+ * @param options - additional request options
2039
+ */
2040
+ ServiceClient.prototype.get_calendar = function (id, options) {
2041
+ return this.request("calendar", "get_calendar", "get", "/calendar/" + id, null, options);
2042
+ };
2043
+ /**
2044
+ * PUT /calendar/{id} - Set the calendar for an id. Overrides previous record
2045
+ *
2046
+ * @param id - brand
2047
+ * @param body
2048
+ * @param options - additional request options
2049
+ */
2050
+ ServiceClient.prototype.put_calendar = function (id, body, options) {
2051
+ return this.request("calendar", "put_calendar", "put", "/calendar/" + id, body, options);
2052
+ };
2053
+ /**
2054
+ * GET /calendar/{id}/cdl - Get the calendar events in a CDL compatible format for next 7 days
2055
+ *
2056
+ * @param id - brand
2057
+ * @param options - additional request options
2058
+ */
2059
+ ServiceClient.prototype.get_calendar_cdl = function (id, options) {
2060
+ return this.request("calendar", "get_calendar_cdl", "get", "/calendar/" + id + "/cdl", null, options);
2061
+ };
2062
+ /**
2063
+ * GET /calendar/swagger.json
2064
+ *
2065
+ * @param options - additional request options
2066
+ */
2067
+ ServiceClient.prototype.get_calendar_swagger = function (options) {
2068
+ return this.request("calendar", "get_calendar_swagger", "get", "/calendar/swagger.json", null, options);
2069
+ };
2070
+ /**
2071
+ * POST /calendar/{id}/sync - Trigger synchronization of calendar to location API
2072
+ *
2073
+ * @param id - brand
2074
+ * @param options - additional request options
2075
+ */
2076
+ ServiceClient.prototype.post_calendar_sync = function (id, options) {
2077
+ return this.request("calendar", "post_calendar_sync", "post", "/calendar/" + id + "/sync", null, options);
2078
+ };
2079
+ /**
2080
+ * POST /delivery/order - make reservation
2081
+ *
2082
+ * @param body - reservation
2083
+ * @param options - additional request options
2084
+ */
2085
+ ServiceClient.prototype.post_delivery_order = function (body, options) {
2086
+ return this.request("delivery", "post_delivery_order", "post", "/delivery/order", body, options);
2087
+ };
2088
+ /**
2089
+ * PATCH /delivery/order/{order_id} - confirm order
2090
+ *
2091
+ * @param order_id - TODO: add parameter to swagger.json
2092
+ * @param options - additional request options
2093
+ */
2094
+ ServiceClient.prototype.patch_delivery_order = function (order_id, options) {
2095
+ return this.request("delivery", "patch_delivery_order", "patch", "/delivery/order/" + order_id, null, options);
2096
+ };
2097
+ /**
2098
+ * GET /delivery/order/{order_id} - get order
2099
+ *
2100
+ * @param order_id - TODO: add parameter to swagger.json
2101
+ * @param options - additional request options
2102
+ */
2103
+ ServiceClient.prototype.get_delivery_order = function (order_id, options) {
2104
+ return this.request("delivery", "get_delivery_order", "get", "/delivery/order/" + order_id, null, options);
2105
+ };
2106
+ /**
2107
+ * POST /schedule - Create a new schedule
2108
+ *
2109
+ * @param body
2110
+ * @param options - additional request options
2111
+ */
2112
+ ServiceClient.prototype.post_schedule = function (body, options) {
2113
+ return this.request("schedule", "post_schedule", "post", "/schedule", body, options);
2114
+ };
2115
+ /**
2116
+ * GET /schedule - Get schedule
2117
+ *
2118
+ * @param options - additional request options
2119
+ */
2120
+ ServiceClient.prototype.get_schedules = function (options) {
2121
+ return this.request("schedule", "get_schedules", "get", "/schedule", null, options);
2122
+ };
2123
+ /**
2124
+ * GET /schedule/{id} - Get an individual schedule
2125
+ *
2126
+ * @param id - schedule id
2127
+ * @param options - additional request options
2128
+ */
2129
+ ServiceClient.prototype.get_schedule = function (id, options) {
2130
+ return this.request("schedule", "get_schedule", "get", "/schedule/" + id, null, options);
2131
+ };
2132
+ /**
2133
+ * PUT /schedule/{id} - Update a schedule
2134
+ *
2135
+ * @param id - Id of a schedule
2136
+ * @param body
2137
+ * @param options - additional request options
2138
+ */
2139
+ ServiceClient.prototype.put_schedule = function (id, body, options) {
2140
+ return this.request("schedule", "put_schedule", "put", "/schedule/" + id, body, options);
2141
+ };
2142
+ /**
2143
+ * DELETE /schedule/{id} - Delete schedule
2144
+ *
2145
+ * @param id - Id of a schedule
2146
+ * @param options - additional request options
2147
+ */
2148
+ ServiceClient.prototype.delete_schedule = function (id, options) {
2149
+ return this.request("schedule", "delete_schedule", "delete", "/schedule/" + id, null, options);
2150
+ };
2151
+ /**
2152
+ * POST /vote - Submit a vote for an item
2153
+ *
2154
+ * @param body
2155
+ * @param options - additional request options
2156
+ */
2157
+ ServiceClient.prototype.post_vote = function (body, options) {
2158
+ return this.request("vote", "post_vote", "post", "/vote", body, options);
2159
+ };
2160
+ /**
2161
+ * GET /vote/idfa/{idfa} - Get votes for an idfa
2162
+ *
2163
+ * @param idfa - TODO: add parameter to swagger.json
2164
+ * @param options - additional request options
2165
+ */
2166
+ ServiceClient.prototype.get_vote_idfa = function (idfa, options) {
2167
+ return this.request("vote", "get_vote_idfa", "get", "/vote/idfa/" + idfa, null, options);
2168
+ };
2169
+ /**
2170
+ * POST /file - Upload a file to CDL S3
2171
+ *
2172
+ * @param body
2173
+ * @param options - additional request options
2174
+ */
2175
+ ServiceClient.prototype.post_file = function (body, options) {
2176
+ return this.request("file", "post_file", "post", "/file", body, options);
2177
+ };
2178
+ /**
2179
+ * POST /message - Create a Message
2180
+ *
2181
+ * @param body - Message object that needs to be created
2182
+ * @param options - additional request options
2183
+ */
2184
+ ServiceClient.prototype.post_message = function (body, options) {
2185
+ return this.request("message", "post_message", "post", "/message", body, options);
2186
+ };
2187
+ /**
2188
+ * GET /message/{id} - Get a Message
2189
+ *
2190
+ * @param id - Message CDL encoded id
2191
+ * @param options - additional request options
2192
+ */
2193
+ ServiceClient.prototype.get_message = function (id, options) {
2194
+ return this.request("message", "get_message", "get", "/message/" + id, null, options);
2195
+ };
2196
+ /**
2197
+ * GET /logger/{id}/brand/status - Get status changes of all brands
2198
+ *
2199
+ * @param id - action
2200
+ * @param options - additional request options
2201
+ */
2202
+ ServiceClient.prototype.get_logger_brand_status = function (id, options) {
2203
+ return this.request("logger", "get_logger_brand_status", "get", "/logger/" + id + "/brand/status", null, options);
2204
+ };
2205
+ return ServiceClient;
2206
+ }(base_1.BaseServiceClient));
2207
+ exports.ServiceClient = ServiceClient;
2208
+ //# sourceMappingURL=index.js.map