@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 — the network refused a payout for a
171
- * reason no retry can fix ("The card has expired."). `payable: false` is what
172
- * liabilities gates creation, reissue and redirect on; the user must add a
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 — the network refused a payout for a
143
- * reason no retry can fix ("The card has expired."). `payable: false` is what
144
- * liabilities gates creation, reissue and redirect on; the user must add a
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "gitHead": "06f8e96b7b38c34df26a38da329331940675e4f8",
5
5
  "description": "Service client",
6
6
  "license": "ISC",