squarefi-bff-api-module 1.36.103 → 1.36.104

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.
@@ -2896,6 +2896,19 @@ export interface paths {
2896
2896
  "application/json": components["schemas"]["ApiErrorResponse"];
2897
2897
  };
2898
2898
  };
2899
+ /** @description `CARDHOLDER_REFUSED` — no card can be issued on this cardholder; anything charged was returned. Either the card
2900
+ * issuer refused the person, or the cardholder does not qualify: no email, not submitted, short of the program's
2901
+ * KYC requirements, or their identity review came back rejected; `message` says which. A review still in
2902
+ * progress is not a refusal: it answers `400 INVALID_REQUEST`.
2903
+ * */
2904
+ 422: {
2905
+ headers: {
2906
+ [name: string]: unknown;
2907
+ };
2908
+ content: {
2909
+ "application/json": components["schemas"]["ApiErrorResponse"];
2910
+ };
2911
+ };
2899
2912
  /** @description Internal Server Error */
2900
2913
  500: {
2901
2914
  headers: {
@@ -3500,7 +3500,11 @@ export interface paths {
3500
3500
  "application/json": components["schemas"]["ErrorResponse"];
3501
3501
  };
3502
3502
  };
3503
- /** @description `CARDHOLDER_REFUSED` — the card issuer refused the cardholder; anything charged was returned */
3503
+ /** @description `CARDHOLDER_REFUSED` — no card can be issued on this cardholder; anything charged was returned. Either the card
3504
+ * issuer refused the person, or the cardholder does not qualify: no email, not submitted, short of the program's
3505
+ * KYC requirements, or their identity review came back rejected; `message` says which. A review still in
3506
+ * progress is not a refusal: it answers `400 INVALID_REQUEST`.
3507
+ * */
3504
3508
  422: {
3505
3509
  headers: {
3506
3510
  [name: string]: unknown;
@@ -1381,8 +1381,10 @@ export declare namespace API {
1381
1381
  /**
1382
1382
  * An ACTIVE cardholder is linked (`cardholder_id`), but it does not hold what the
1383
1383
  * program's ISSUANCE bar asks for — typically one written before that bar existed.
1384
- * Creating a card now is refused with `400`; `will_require` names the same fields
1385
- * that 400 would. Nothing is submitted again: `PATCH` the fields, and for the
1384
+ * Creating a card now is refused with `422 CARDHOLDER_REFUSED`, whose `message` lists
1385
+ * the same missing fields as `will_require`. The refusal holds for the cardholder as
1386
+ * it is: once completed, the same cardholder can get the card. Nothing is submitted
1387
+ * again: `PATCH` the fields, and for the
1386
1388
  * document photos call `POST /cardholders` with the member's `user_data_id` — it
1387
1389
  * answers `409` with this `cardholder_id` after completing the row from the
1388
1390
  * member's KYC dossier. When the member has not passed that verification, run it first.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.103",
3
+ "version": "1.36.104",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",