@spritz-finance/service-client 0.6.1 → 0.6.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.
@@ -60,3 +60,7 @@ export declare function queryUserPayments(userId: string, input?: PaymentQueryFi
60
60
  export declare function getVoidedLiabilities(): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<{
61
61
  total: number;
62
62
  }>>;
63
+ export declare function getUnrefundedFailedRtpSum(): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<{
64
+ totalAmount: number;
65
+ count: number;
66
+ }>>;
@@ -51,6 +51,7 @@ exports.getUserPaymentById = getUserPaymentById;
51
51
  exports.directPaymentsForRiskAnalysis = directPaymentsForRiskAnalysis;
52
52
  exports.queryUserPayments = queryUserPayments;
53
53
  exports.getVoidedLiabilities = getVoidedLiabilities;
54
+ exports.getUnrefundedFailedRtpSum = getUnrefundedFailedRtpSum;
54
55
  exports.PaymentsClient = __importStar(require("./paymentsClient"));
55
56
  const serviceClient_1 = require("../serviceClient");
56
57
  const PAYMENTS_ENDPOINT = "/liabilities";
@@ -143,3 +144,8 @@ async function getVoidedLiabilities() {
143
144
  .get(`${PAYMENTS_ROUTER_ENDPOINT}/checkbook/voided-liabilities`)
144
145
  .then((res) => res.data);
145
146
  }
147
+ async function getUnrefundedFailedRtpSum() {
148
+ return serviceClient_1.baseClient
149
+ .get(`${PAYMENTS_ROUTER_ENDPOINT}/payments/liabilities/rtp`)
150
+ .then((res) => res.data);
151
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "gitHead": "06f8e96b7b38c34df26a38da329331940675e4f8",
5
5
  "description": "Service client",
6
6
  "license": "ISC",