@spritz-finance/service-client 0.3.2 → 0.3.4

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.
@@ -248,6 +248,7 @@ export declare class LiabilitiesServiceClient {
248
248
  createDirectPayment(args: CreateDirectPaymentArgs): Promise<DirectPayment>;
249
249
  validateDirectPayment(args: CreateDirectPaymentArgs): Promise<DirectPayment>;
250
250
  getValidPaymentsForAccount(accountId: string): Promise<Payment[]>;
251
+ getValidPaymentsForUser(userId: string): Promise<Payment[]>;
251
252
  getRewardTransactionVolume(args: GetUsersTransactionVolumeBody): Promise<number>;
252
253
  getRewardFeeAmount(args: GetUserRewardFeeAmountBody): Promise<number>;
253
254
  initializeExternalPayment(args: ExternalPaymentInput): Promise<Payment>;
@@ -114,6 +114,11 @@ class LiabilitiesServiceClient {
114
114
  .get(`/payments/valid-payments/account/${accountId}`)
115
115
  .then((res) => res.data);
116
116
  }
117
+ async getValidPaymentsForUser(userId) {
118
+ return this.client
119
+ .get(`/payments/valid-payments/user/${userId}`)
120
+ .then((res) => res.data);
121
+ }
117
122
  async getRewardTransactionVolume(args) {
118
123
  return this.client
119
124
  .post('/payments/rewards/volume', args)
@@ -21,4 +21,5 @@ export declare class OnrampServiceClient {
21
21
  client: AxiosInstance;
22
22
  constructor();
23
23
  syncTransfer(input: SyncOnrampTransferInput): Promise<OnRampPayment>;
24
+ getUserCompletedPayments(userId: string): Promise<OnRampPayment[]>;
24
25
  }
@@ -14,5 +14,10 @@ class OnrampServiceClient {
14
14
  .post('/external-transfer', input)
15
15
  .then((res) => res.data);
16
16
  }
17
+ async getUserCompletedPayments(userId) {
18
+ return this.client
19
+ .get(`/payments/user/${userId}/completed`)
20
+ .then((res) => res.data);
21
+ }
17
22
  }
18
23
  exports.OnrampServiceClient = OnrampServiceClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",