squarefi-bff-api-module 1.36.48 → 1.36.50

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.
@@ -23,11 +23,6 @@ export declare const frontend: {
23
23
  limits: {
24
24
  update: ({ card_id, ...data }: API.Frontend.Issuing.Cards.Limits.Request) => Promise<API.Frontend.Issuing.Cards.Limits.Response>;
25
25
  };
26
- /**
27
- * PLAINTEXT PAN/CVV — server-to-server only. In a browser or mobile client use
28
- * `sensitiveEncrypted` instead, so the card number never travels readable.
29
- */
30
- sensitive: ({ card_id, }: API.Frontend.Issuing.Cards.Sensitive.Request) => Promise<API.Frontend.Issuing.Cards.Sensitive.Response>;
31
26
  /**
32
27
  * PAN/CVV over the encrypted channel: generates an AES-256 key, sends it encrypted to
33
28
  * the server's RSA public key (`SERVER_PUBLIC_KEY_BASE64`) and decrypts the answer —
@@ -40,11 +40,6 @@ export const frontend = {
40
40
  limits: {
41
41
  update: ({ card_id, ...data }) => apiClientV1Frontend.putRequest(`/frontend/issuing/cards/${card_id}/limits`, { data }),
42
42
  },
43
- /**
44
- * PLAINTEXT PAN/CVV — server-to-server only. In a browser or mobile client use
45
- * `sensitiveEncrypted` instead, so the card number never travels readable.
46
- */
47
- sensitive: ({ card_id, }) => apiClientV1Frontend.getRequest(`/frontend/issuing/cards/${card_id}/sensitive`),
48
43
  /**
49
44
  * PAN/CVV over the encrypted channel: generates an AES-256 key, sends it encrypted to
50
45
  * the server's RSA public key (`SERVER_PUBLIC_KEY_BASE64`) and decrypts the answer —
@@ -12610,22 +12610,22 @@ export interface components {
12610
12610
  /** @description Card / sub-account transaction (GET /cards/{card_id}/transactions and GET /sub-accounts/{sub_account_id}/transactions). */
12611
12611
  IssuingTransaction: {
12612
12612
  /** @description Transaction id in the issuing vendor */
12613
- vendor_transaction_id?: string;
12613
+ vendor_transaction_id: string;
12614
12614
  title?: string;
12615
12615
  last4?: string;
12616
12616
  /** @example APPROVED */
12617
- status?: string;
12617
+ status: string;
12618
12618
  /** @example CLEARING */
12619
12619
  transaction_type?: string;
12620
12620
  /** @example Purchase */
12621
12621
  group?: string;
12622
- is_credit?: boolean;
12623
- billing_amount?: number;
12622
+ is_credit: boolean;
12623
+ billing_amount: number;
12624
12624
  /** @example USD */
12625
- billing_currency?: string;
12626
- transaction_amount?: number;
12625
+ billing_currency: string;
12626
+ transaction_amount: number;
12627
12627
  /** @example USD */
12628
- transaction_currency?: string;
12628
+ transaction_currency: string;
12629
12629
  /** @description What actually left the card: `billing_amount` plus `fee` for a debit. Show this one when a fee sits inside the operation. */
12630
12630
  total_amount?: number;
12631
12631
  /** @description Fee charged inside this operation, in billing currency. 0 for vendors that bill fees as their own transactions (those arrive as separate rows with `transaction_type: FEE`). */
@@ -12646,7 +12646,7 @@ export interface components {
12646
12646
  has_receipt?: boolean;
12647
12647
  merchant?: components["schemas"]["TransactionMerchant"];
12648
12648
  /** Format: date-time */
12649
- created_at?: string;
12649
+ created_at: string;
12650
12650
  /** Format: date-time */
12651
12651
  cleared_at?: string | null;
12652
12652
  };
@@ -676,7 +676,6 @@ export declare namespace API {
676
676
  type CardFreezeRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/freeze'];
677
677
  type CardUnfreezeRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/unfreeze'];
678
678
  type CardLimitsRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/limits'];
679
- type CardSensitiveRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/sensitive'];
680
679
  type CardTransactionsRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/transactions'];
681
680
  type SubAccountTransactionsRoot = pathsV1Frontend['/frontend/issuing/sub-accounts/{sub_account_id}/transactions'];
682
681
  type CardDepositRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/deposit'];
@@ -788,16 +787,6 @@ export declare namespace API {
788
787
  } & CardLimitsRoot['put']['requestBody']['content']['application/json'];
789
788
  type Response = CardLimitsRoot['put']['responses']['200']['content']['application/json'];
790
789
  }
791
- /**
792
- * Card PAN/CVV in PLAINTEXT. Server-to-server only — a browser or mobile client
793
- * should use `SensitiveEncrypted`, which never puts the PAN in a readable body.
794
- */
795
- namespace Sensitive {
796
- type Request = {
797
- card_id: string;
798
- };
799
- type Response = CardSensitiveRoot['get']['responses']['200']['content']['application/json'];
800
- }
801
790
  /**
802
791
  * Card PAN/CVV over an end-to-end encrypted channel: the client's AES-256 key is
803
792
  * sent encrypted to the server's RSA public key, and the answer comes back
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.48",
3
+ "version": "1.36.50",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",