@compassdigital/sdk.typescript 4.394.0 → 4.396.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +23 -23
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +27 -27
- package/lib/index.js.map +1 -1
- package/lib/interface/discount.d.ts +112 -112
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +1 -0
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +66 -66
- package/src/interface/discount.ts +162 -162
- package/src/interface/shoppingcart.ts +1 -0
package/lib/index.js
CHANGED
|
@@ -6212,6 +6212,15 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6212
6212
|
delete_review(id, options) {
|
|
6213
6213
|
return this.request('review', '/review/{id}', 'DELETE', `/review/${id}`, null, options);
|
|
6214
6214
|
}
|
|
6215
|
+
/**
|
|
6216
|
+
* DELETE /discount/{id} - Delete a discount
|
|
6217
|
+
*
|
|
6218
|
+
* @param id - Discount id
|
|
6219
|
+
* @param options - additional request options
|
|
6220
|
+
*/
|
|
6221
|
+
delete_discount(id, options) {
|
|
6222
|
+
return this.request('discount', '/discount/{id}', 'DELETE', `/discount/${id}`, null, options);
|
|
6223
|
+
}
|
|
6215
6224
|
/**
|
|
6216
6225
|
* GET /discount/{id} - Get a discount
|
|
6217
6226
|
*
|
|
@@ -6222,33 +6231,32 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6222
6231
|
return this.request('discount', '/discount/{id}', 'GET', `/discount/${id}`, null, options);
|
|
6223
6232
|
}
|
|
6224
6233
|
/**
|
|
6225
|
-
*
|
|
6234
|
+
* PATCH /discount/{id} - Patch a discount
|
|
6226
6235
|
*
|
|
6227
6236
|
* @param id - Discount ID
|
|
6228
6237
|
* @param body
|
|
6229
6238
|
* @param options - additional request options
|
|
6230
6239
|
*/
|
|
6231
|
-
|
|
6232
|
-
return this.request('discount', '/discount/{id}', '
|
|
6240
|
+
patch_discount(id, body, options) {
|
|
6241
|
+
return this.request('discount', '/discount/{id}', 'PATCH', `/discount/${id}`, body, options);
|
|
6233
6242
|
}
|
|
6234
6243
|
/**
|
|
6235
|
-
*
|
|
6244
|
+
* PUT /discount/{id} - Update a discount
|
|
6236
6245
|
*
|
|
6237
|
-
* @param id - Discount
|
|
6246
|
+
* @param id - Discount ID
|
|
6247
|
+
* @param body
|
|
6238
6248
|
* @param options - additional request options
|
|
6239
6249
|
*/
|
|
6240
|
-
|
|
6241
|
-
return this.request('discount', '/discount/{id}', '
|
|
6250
|
+
put_discount(id, body, options) {
|
|
6251
|
+
return this.request('discount', '/discount/{id}', 'PUT', `/discount/${id}`, body, options);
|
|
6242
6252
|
}
|
|
6243
6253
|
/**
|
|
6244
|
-
*
|
|
6254
|
+
* GET /discount/all - Get all discounts
|
|
6245
6255
|
*
|
|
6246
|
-
* @param id - Discount ID
|
|
6247
|
-
* @param body
|
|
6248
6256
|
* @param options - additional request options
|
|
6249
6257
|
*/
|
|
6250
|
-
|
|
6251
|
-
return this.request('discount', '/discount/
|
|
6258
|
+
get_discounts_all(options) {
|
|
6259
|
+
return this.request('discount', '/discount/all', 'GET', `/discount/all`, null, options);
|
|
6252
6260
|
}
|
|
6253
6261
|
/**
|
|
6254
6262
|
* GET /discount - Get discounts by taxonomy
|
|
@@ -6268,22 +6276,13 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6268
6276
|
return this.request('discount', '/discount', 'POST', `/discount`, body, options);
|
|
6269
6277
|
}
|
|
6270
6278
|
/**
|
|
6271
|
-
*
|
|
6272
|
-
*
|
|
6273
|
-
* @param options - additional request options
|
|
6274
|
-
*/
|
|
6275
|
-
get_discounts_all(options) {
|
|
6276
|
-
return this.request('discount', '/discount/all', 'GET', `/discount/all`, null, options);
|
|
6277
|
-
}
|
|
6278
|
-
/**
|
|
6279
|
-
* PUT /discount/{id}/publish - Publish a discount
|
|
6279
|
+
* POST /discount/event - Handle discount event
|
|
6280
6280
|
*
|
|
6281
|
-
* @param id - Discount ID
|
|
6282
6281
|
* @param body
|
|
6283
6282
|
* @param options - additional request options
|
|
6284
6283
|
*/
|
|
6285
|
-
|
|
6286
|
-
return this.request('discount', '/discount/
|
|
6284
|
+
post_discount_event(body, options) {
|
|
6285
|
+
return this.request('discount', '/discount/event', 'POST', `/discount/event`, body, options);
|
|
6287
6286
|
}
|
|
6288
6287
|
/**
|
|
6289
6288
|
* POST /discount/site/{id}/rewards - Get eligible rewards for a customer and site
|
|
@@ -6296,13 +6295,14 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6296
6295
|
return this.request('discount', '/discount/site/{id}/rewards', 'POST', `/discount/site/${id}/rewards`, body, options);
|
|
6297
6296
|
}
|
|
6298
6297
|
/**
|
|
6299
|
-
*
|
|
6298
|
+
* PUT /discount/{id}/publish - Publish a discount
|
|
6300
6299
|
*
|
|
6300
|
+
* @param id - Discount ID
|
|
6301
6301
|
* @param body
|
|
6302
6302
|
* @param options - additional request options
|
|
6303
6303
|
*/
|
|
6304
|
-
|
|
6305
|
-
return this.request('discount', '/discount/
|
|
6304
|
+
put_discount_publish(id, body, options) {
|
|
6305
|
+
return this.request('discount', '/discount/{id}/publish', 'PUT', `/discount/${id}/publish`, body, options);
|
|
6306
6306
|
}
|
|
6307
6307
|
/**
|
|
6308
6308
|
* GET /timeslots/brand/{brandId} - Get timeslots for brand
|