@spritz-finance/service-client 0.32.2 → 0.33.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.
- package/lib/platform/types.d.ts +34 -1
- package/package.json +1 -1
package/lib/platform/types.d.ts
CHANGED
|
@@ -152,10 +152,43 @@ export interface MTAccount {
|
|
|
152
152
|
* owed out. Decimal dollars. Disjoint from `liability`; the two sum to the
|
|
153
153
|
* full MT payable.
|
|
154
154
|
*/
|
|
155
|
-
terminalLiability: string;
|
|
155
|
+
terminalLiability: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* Outbound credits that are NOT liabilities payouts (treasury transfers such
|
|
158
|
+
* as MT → Checkbook / MT → Mercury) and have not yet been sent. Disjoint from
|
|
159
|
+
* `liability` and `terminalLiability`. MT still counts these in the available
|
|
160
|
+
* balance, so a consumer sizing MT top-ups must subtract this too. Decimal
|
|
161
|
+
* dollars.
|
|
162
|
+
*/
|
|
163
|
+
inFlightTransferLiability: string;
|
|
164
|
+
/**
|
|
165
|
+
* Subset of `liability`: next-day (standard) ACH credits still queued for
|
|
166
|
+
* their banking-day batch; not disbursable until the next banking day.
|
|
167
|
+
* Decimal dollars.
|
|
168
|
+
*/
|
|
169
|
+
nextDayAchLiability: string;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* An MT account that only collects ACH debits (FOMO's account, ledger 1061)
|
|
173
|
+
* and is swept into the Spritz USD account. Payouts never leave it, so it has
|
|
174
|
+
* none of `MTAccount`'s payout-liability fields.
|
|
175
|
+
*/
|
|
176
|
+
export interface MTCollectionAccount {
|
|
177
|
+
id: string;
|
|
178
|
+
name: string;
|
|
179
|
+
role: "fomo_ach_debit";
|
|
180
|
+
currency: string;
|
|
181
|
+
balances: MTAccountBalance[];
|
|
156
182
|
}
|
|
157
183
|
export interface MTBalancesData {
|
|
184
|
+
/** Spritz's own payout accounts. Consumers picking the first USD entry get Spritz's account. */
|
|
158
185
|
accounts: MTAccount[];
|
|
186
|
+
/**
|
|
187
|
+
* Kept out of `accounts` so existing consumers keep reading Spritz's own
|
|
188
|
+
* account. Platform omits a collection account whose balance read failed, so
|
|
189
|
+
* a missing entry means "unavailable", not zero.
|
|
190
|
+
*/
|
|
191
|
+
collectionAccounts: MTCollectionAccount[];
|
|
159
192
|
}
|
|
160
193
|
export interface PlaidTreasuryAccountBalance {
|
|
161
194
|
/** Platform plaid_accounts record id. */
|