@compassdigital/sdk.typescript 4.791.0 → 4.793.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.js CHANGED
@@ -6796,6 +6796,24 @@ class ServiceClient extends base_1.BaseServiceClient {
6796
6796
  delete_centricos_station_integration(station_id, integration_type, options) {
6797
6797
  return this.request('centricos', '/centricos/station/{station_id}/{integration_type}', 'DELETE', `/centricos/station/${station_id}/${integration_type}`, null, options);
6798
6798
  }
6799
+ /**
6800
+ * PUT /centricos/discount - Add or Update a discount and assign it to multiple sites
6801
+ *
6802
+ * @param body
6803
+ * @param options - additional request options
6804
+ */
6805
+ put_centricos_discount(body, options) {
6806
+ return this.request('centricos', '/centricos/discount', 'PUT', `/centricos/discount`, body, options);
6807
+ }
6808
+ /**
6809
+ * PUT /centricos/discount/{id}/publish - Update and publish a discount and assign it to multiple sites
6810
+ *
6811
+ * @param id - Discount ID
6812
+ * @param options - additional request options
6813
+ */
6814
+ put_centricos_discount_publish(id, options) {
6815
+ return this.request('centricos', '/centricos/discount/{id}/publish', 'PUT', `/centricos/discount/${id}/publish`, null, options);
6816
+ }
6799
6817
  /**
6800
6818
  * PUT /centricos/discount/voucherify - Add or Update a voucherify discount and assign it to multiple sites
6801
6819
  *
@@ -6815,13 +6833,13 @@ class ServiceClient extends base_1.BaseServiceClient {
6815
6833
  return this.request('centricos', '/centricos/discount/{id}/voucherify/publish', 'PUT', `/centricos/discount/${id}/voucherify/publish`, null, options);
6816
6834
  }
6817
6835
  /**
6818
- * DELETE /centricos/discount/{id}/voucherify - Delete a discount from voucherify and all of its entity associations
6836
+ * DELETE /centricos/discount/{id} - Delete a discount and all of its entity associations
6819
6837
  *
6820
6838
  * @param id - Discount ID
6821
6839
  * @param options - additional request options
6822
6840
  */
6823
- delete_centricos_discounts_voucherify(id, options) {
6824
- return this.request('centricos', '/centricos/discount/{id}/voucherify', 'DELETE', `/centricos/discount/${id}/voucherify`, null, options);
6841
+ delete_centricos_discount(id, options) {
6842
+ return this.request('centricos', '/centricos/discount/{id}', 'DELETE', `/centricos/discount/${id}`, null, options);
6825
6843
  }
6826
6844
  /**
6827
6845
  * GET /centricos/discount/{id} - Get discount information by ID
@@ -6832,6 +6850,15 @@ class ServiceClient extends base_1.BaseServiceClient {
6832
6850
  get_centricos_discount(id, options) {
6833
6851
  return this.request('centricos', '/centricos/discount/{id}', 'GET', `/centricos/discount/${id}`, null, options);
6834
6852
  }
6853
+ /**
6854
+ * DELETE /centricos/discount/{id}/voucherify - Delete a discount from voucherify and all of its entity associations
6855
+ *
6856
+ * @param id - Discount ID
6857
+ * @param options - additional request options
6858
+ */
6859
+ delete_centricos_discounts_voucherify(id, options) {
6860
+ return this.request('centricos', '/centricos/discount/{id}/voucherify', 'DELETE', `/centricos/discount/${id}/voucherify`, null, options);
6861
+ }
6835
6862
  /**
6836
6863
  * GET /centricos/discounts - Get discounts with pagination and filtering
6837
6864
  *