@voucherify/sdk 2.8.1 → 2.9.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.
@@ -1447,8 +1447,16 @@
1447
1447
  return this.client.get(campaignId ? `/loyalties/${encode(campaignId)}/members/${memberId}` : `/loyalties/members/${memberId}`);
1448
1448
  }
1449
1449
  /**
1450
- * @see https://docs.voucherify.io/reference/get-member-activities
1451
- * @see https://docs.voucherify.io/reference/get-member-activities-1
1450
+ * @see https://docs.voucherify.io/reference/list-member-activity
1451
+ * @see https://docs.voucherify.io/reference/list-member-activity-1
1452
+ */
1453
+
1454
+
1455
+ listMemberActivity(campaignId, memberId, params) {
1456
+ return this.client.get(campaignId ? `/loyalties/${encode(campaignId)}/members/${memberId}/activity` : `/loyalties/members/${memberId}/activity`, params);
1457
+ }
1458
+ /**
1459
+ * @deprecated This method is deprecated in favor of the `listMemberActivity` method. We’re removing this method in next major version.
1452
1460
  */
1453
1461
 
1454
1462
 
@@ -1964,7 +1972,7 @@
1964
1972
  let headers = {
1965
1973
  'X-App-Id': options.applicationId,
1966
1974
  'X-App-Token': options.secretKey,
1967
- 'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.8.1"}`,
1975
+ 'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.9.0"}`,
1968
1976
  'Content-Type': 'application/json'
1969
1977
  };
1970
1978
 
@@ -2230,7 +2238,7 @@
2230
2238
  let headers = {
2231
2239
  'X-Client-Application-Id': options.clientApplicationId,
2232
2240
  'X-Client-Token': options.clientSecretKey,
2233
- 'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.8.1"}`
2241
+ 'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.9.0"}`
2234
2242
  };
2235
2243
 
2236
2244
  if (environment().startsWith('Node')) {