@voucherify/sdk 2.7.1 → 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.
- package/CHANGELOG.md +6 -0
- package/README.md +7 -0
- package/dist/Customers.d.ts +4 -0
- package/dist/types/Customers.d.ts +89 -0
- package/dist/voucherifysdk.esm.js +10 -2
- package/dist/voucherifysdk.esm.js.map +1 -1
- package/dist/voucherifysdk.umd.development.js +10 -2
- package/dist/voucherifysdk.umd.development.js.map +1 -1
- package/dist/voucherifysdk.umd.production.min.js +1 -1
- package/dist/voucherifysdk.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -977,6 +977,14 @@
|
|
|
977
977
|
};
|
|
978
978
|
return this.client.post(`/customers/importCSV`, form, undefined, headers);
|
|
979
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
|
+
}
|
|
980
988
|
|
|
981
989
|
}
|
|
982
990
|
|
|
@@ -1948,7 +1956,7 @@
|
|
|
1948
1956
|
let headers = {
|
|
1949
1957
|
'X-App-Id': options.applicationId,
|
|
1950
1958
|
'X-App-Token': options.secretKey,
|
|
1951
|
-
'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.7.
|
|
1959
|
+
'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.7.2"}`,
|
|
1952
1960
|
'Content-Type': 'application/json'
|
|
1953
1961
|
};
|
|
1954
1962
|
|
|
@@ -2214,7 +2222,7 @@
|
|
|
2214
2222
|
let headers = {
|
|
2215
2223
|
'X-Client-Application-Id': options.clientApplicationId,
|
|
2216
2224
|
'X-Client-Token': options.clientSecretKey,
|
|
2217
|
-
'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.7.
|
|
2225
|
+
'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.7.2"}`
|
|
2218
2226
|
};
|
|
2219
2227
|
|
|
2220
2228
|
if (environment().startsWith('Node')) {
|