@voucherify/sdk 2.7.0 → 2.7.2

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.
@@ -34,6 +34,7 @@
34
34
  this.related_object_ids = void 0;
35
35
  this.related_object_type = void 0;
36
36
  this.related_object_total = void 0;
37
+ this.error = void 0;
37
38
  this.cause = void 0;
38
39
  this.code = body.code;
39
40
  this.key = body.key;
@@ -44,6 +45,7 @@
44
45
  this.related_object_ids = body.related_object_ids;
45
46
  this.related_object_type = body.related_object_type;
46
47
  this.related_object_total = body.related_object_total;
48
+ this.error = body.error;
47
49
  this.cause = axiosError;
48
50
  }
49
51
 
@@ -975,6 +977,14 @@
975
977
  };
976
978
  return this.client.post(`/customers/importCSV`, form, undefined, headers);
977
979
  }
980
+ /**
981
+ * @see https://docs.voucherify.io/reference/list-customer-redeemables
982
+ */
983
+
984
+
985
+ listRedeemables(id, params) {
986
+ return this.client.get(`/customers/${encode(id)}/redeemables`, params);
987
+ }
978
988
 
979
989
  }
980
990
 
@@ -1946,7 +1956,7 @@
1946
1956
  let headers = {
1947
1957
  'X-App-Id': options.applicationId,
1948
1958
  'X-App-Token': options.secretKey,
1949
- 'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.7.0"}`,
1959
+ 'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.7.2"}`,
1950
1960
  'Content-Type': 'application/json'
1951
1961
  };
1952
1962
 
@@ -2212,7 +2222,7 @@
2212
2222
  let headers = {
2213
2223
  'X-Client-Application-Id': options.clientApplicationId,
2214
2224
  'X-Client-Token': options.clientSecretKey,
2215
- 'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.7.0"}`
2225
+ 'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.7.2"}`
2216
2226
  };
2217
2227
 
2218
2228
  if (environment().startsWith('Node')) {