@spritz-finance/service-client 0.5.2 → 0.5.3

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.
@@ -57,3 +57,6 @@ export declare function getAllPaymentsForUser(userId: string): Promise<import(".
57
57
  export declare function getUserPaymentById(userId: string, paymentId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<Payment>>;
58
58
  export declare function directPaymentsForRiskAnalysis(userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<DirectPaymentModel[]>>;
59
59
  export declare function queryUserPayments(userId: string, input?: PaymentQueryFilter): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<Payment[]>>;
60
+ export declare function getVoidedLiabilities(): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<{
61
+ total: number;
62
+ }>>;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.queryUserPayments = exports.directPaymentsForRiskAnalysis = exports.getUserPaymentById = exports.getAllPaymentsForUser = exports.getDirectPaymentDetails = exports.getDirectPaymentToken = exports.updateExternalPaymentStatus = exports.scheduleExternalPayment = exports.initializeExternalPayment = exports.getRewardFeeAmount = exports.getRewardTransactionVolume = exports.getValidPaymentsForUser = exports.getValidPaymentsForAccount = exports.validateDirectPayment = exports.validatePaymentAmount = exports.createDirectPayment = exports.PaymentsClient = void 0;
26
+ exports.getVoidedLiabilities = exports.queryUserPayments = exports.directPaymentsForRiskAnalysis = exports.getUserPaymentById = exports.getAllPaymentsForUser = exports.getDirectPaymentDetails = exports.getDirectPaymentToken = exports.updateExternalPaymentStatus = exports.scheduleExternalPayment = exports.initializeExternalPayment = exports.getRewardFeeAmount = exports.getRewardTransactionVolume = exports.getValidPaymentsForUser = exports.getValidPaymentsForAccount = exports.validateDirectPayment = exports.validatePaymentAmount = exports.createDirectPayment = exports.PaymentsClient = void 0;
27
27
  exports.PaymentsClient = __importStar(require("./paymentsClient"));
28
28
  const serviceClient_1 = require("../serviceClient");
29
29
  const PAYMENTS_ENDPOINT = "/liabilities";
@@ -127,3 +127,9 @@ async function queryUserPayments(userId, input = {}) {
127
127
  .then((res) => res.data);
128
128
  }
129
129
  exports.queryUserPayments = queryUserPayments;
130
+ async function getVoidedLiabilities() {
131
+ return serviceClient_1.baseClient
132
+ .get(`${PAYMENTS_ROUTER_ENDPOINT}/checkbook/voided-liabilities`)
133
+ .then((res) => res.data);
134
+ }
135
+ exports.getVoidedLiabilities = getVoidedLiabilities;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "gitHead": "06f8e96b7b38c34df26a38da329331940675e4f8",
5
5
  "description": "Service client",
6
6
  "license": "ISC",