@voucherify/sdk 2.7.4 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -946,7 +946,15 @@
946
946
  return this.client.post(`/customers/${encode(customerId)}/permanent-deletion`, {});
947
947
  }
948
948
  /**
949
- * @see https://docs.voucherify.io/reference/update-customers-consents
949
+ * @see https://docs.voucherify.io/reference/list-customer-activity
950
+ */
951
+
952
+
953
+ listActivity(customerIdOrSourceId, params) {
954
+ return this.client.get(`/customers/${encode(customerIdOrSourceId)}/activity`, params);
955
+ }
956
+ /**
957
+ * @deprecated This method is deprecated. We’re removing this method in next major version.
950
958
  */
951
959
 
952
960
 
@@ -954,7 +962,7 @@
954
962
  return this.client.put(`/customers/${encode(idOrSourceId)}/consents`, consents);
955
963
  }
956
964
  /**
957
- * @see https://docs.voucherify.io/reference/get-customer-activities
965
+ * @deprecated This method is deprecated in favor of the `listActivity` method. We’re removing this method in next major version.
958
966
  */
959
967
 
960
968
 
@@ -994,7 +1002,7 @@
994
1002
  this.client = client;
995
1003
  }
996
1004
  /**
997
- * @see https://docs.voucherify.io/reference/get-consents
1005
+ * @deprecated This method is deprecated. We’re removing this method in next major version.
998
1006
  */
999
1007
 
1000
1008
 
@@ -1956,7 +1964,7 @@
1956
1964
  let headers = {
1957
1965
  'X-App-Id': options.applicationId,
1958
1966
  'X-App-Token': options.secretKey,
1959
- 'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.7.4"}`,
1967
+ 'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.8.1"}`,
1960
1968
  'Content-Type': 'application/json'
1961
1969
  };
1962
1970
 
@@ -2222,7 +2230,7 @@
2222
2230
  let headers = {
2223
2231
  'X-Client-Application-Id': options.clientApplicationId,
2224
2232
  'X-Client-Token': options.clientSecretKey,
2225
- 'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.7.4"}`
2233
+ 'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.8.1"}`
2226
2234
  };
2227
2235
 
2228
2236
  if (environment().startsWith('Node')) {