@spritz-finance/service-client 0.26.0 → 0.26.1
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.
|
@@ -167,9 +167,8 @@ export declare function markUnpayable(accountId: string, code: BankAccountUnpaya
|
|
|
167
167
|
unpayableAt?: string | null;
|
|
168
168
|
}>>;
|
|
169
169
|
/**
|
|
170
|
-
* Permanently mark a debit card unpayable
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
* replacement card. Idempotent.
|
|
170
|
+
* Permanently mark a debit card unpayable when the network reports a durable
|
|
171
|
+
* card verdict. `payable: false` is what liabilities gates creation, reissue
|
|
172
|
+
* and redirect on; the user must add a replacement card. Idempotent.
|
|
174
173
|
*/
|
|
175
174
|
export declare function markDebitCardUnpayable(cardId: string, code: DebitCardUnpayableCode, reason: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<DebitCardDetails>>;
|
|
@@ -139,10 +139,9 @@ async function markUnpayable(accountId, code, reason) {
|
|
|
139
139
|
.then((res) => res.data);
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
|
-
* Permanently mark a debit card unpayable
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* replacement card. Idempotent.
|
|
142
|
+
* Permanently mark a debit card unpayable when the network reports a durable
|
|
143
|
+
* card verdict. `payable: false` is what liabilities gates creation, reissue
|
|
144
|
+
* and redirect on; the user must add a replacement card. Idempotent.
|
|
146
145
|
*/
|
|
147
146
|
async function markDebitCardUnpayable(cardId, code, reason) {
|
|
148
147
|
return serviceClient_1.baseClient
|
|
@@ -103,7 +103,7 @@ type VirtualCardModel = Omit<VirtualCard, "type" | "institution"> & PayableAccou
|
|
|
103
103
|
* Mirrors `BankAccountUnpayableCode`; verbatim evidence stays in
|
|
104
104
|
* `unpayableReason`.
|
|
105
105
|
*/
|
|
106
|
-
export type DebitCardUnpayableCode = "card_expired";
|
|
106
|
+
export type DebitCardUnpayableCode = "card_expired" | "card_inactive" | "card_type_unsupported";
|
|
107
107
|
type DebitCardModel = Omit<DebitCard, "type" | "institution"> & PayableAccountModelExtension & {
|
|
108
108
|
providerRegistrations?: ProviderRegistration[];
|
|
109
109
|
/** Set alongside `payable: false` when the card lapsed or the network
|