@spritz-finance/service-client 0.16.0 → 0.17.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.
@@ -6,11 +6,40 @@ export interface ValidateBillData {
6
6
  payable: boolean;
7
7
  reason?: string;
8
8
  }
9
+ /**
10
+ * Mirrors platform's `GetTabapayBalancesResponse` (internal-api
11
+ * `services/billpay/tabapay/tabapay-read-handlers.ts`). Kept field-for-field:
12
+ * this type was hand-maintained and drifted, declaring `unwired_debt` and
13
+ * `reconciliation_total` — which that endpoint has never returned — while
14
+ * omitting most of what it does. Consumers reading the phantom fields got
15
+ * `undefined` at runtime with the type insisting they were `string`.
16
+ *
17
+ * `liability` and `terminal_liability` are DISJOINT components of the TabaPay
18
+ * payable, mirroring Modern Treasury: `liability` is payouts committed but not
19
+ * yet sent (still funded by the prefund), `terminal_liability` is payouts that
20
+ * bounced and have not been refunded (cash gone, still owed out). Total owed
21
+ * is the sum — reporting `liability` alone understates it.
22
+ */
9
23
  export type TabapayBalancesResponse = {
10
- balance: string;
11
- unwired_debt: string;
24
+ balance: string | null;
25
+ inferred_balance: string | null;
26
+ balance_as_of: string | null;
27
+ balance_s3_key: string | null;
28
+ balance_stale: boolean;
29
+ target_float: string;
30
+ surplus: string | null;
31
+ statement_balance: string | null;
32
+ statement_balance_as_of: string | null;
33
+ statement_balance_s3_key: string | null;
34
+ statement_balance_stale: boolean;
35
+ implied_in_flight: string | null;
36
+ wire_movements_total: string;
37
+ released_total: string;
38
+ excluded_after_submission: string;
39
+ pending_release_amount: string;
40
+ outstanding_payable: string;
12
41
  liability: string;
13
- reconciliation_total: string;
42
+ terminal_liability: string;
14
43
  };
15
44
  export type TabapayFundingRequirementResponse = {
16
45
  ready_amount: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "gitHead": "06f8e96b7b38c34df26a38da329331940675e4f8",
5
5
  "description": "Service client",
6
6
  "license": "ISC",