squarefi-bff-api-module 1.17.18 → 1.17.20

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/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.17.19] - 2025-05-07
9
+
10
+ ### Added
11
+
12
+ - Added order_types to IssuingPrograms for better program type management
13
+
14
+ ### Changed
15
+
16
+ - Deprecated payment_types in SubAccount in favor of new order_types system
17
+
8
18
  ## [1.17.18] - 2025-05-07
9
19
 
10
20
  ### Changed
@@ -109,6 +109,7 @@ export declare namespace API {
109
109
  vendor_id: string;
110
110
  purposes: string[] | null;
111
111
  type: CardType | string;
112
+ order_types: OrderType[];
112
113
  sub_account_type: SubAccountType | string;
113
114
  description: string | null;
114
115
  icon: string | null;
@@ -793,9 +794,6 @@ export declare namespace API {
793
794
  issuing_program: API.Cards.Config.Program;
794
795
  nick_name: string;
795
796
  program_id: string;
796
- payment_types: Array<{
797
- order_type: OrderType;
798
- }>;
799
797
  realtime_auth: [
800
798
  {
801
799
  crypto_token: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.17.18",
3
+ "version": "1.17.20",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/types.ts CHANGED
@@ -138,6 +138,7 @@ export namespace API {
138
138
  vendor_id: string;
139
139
  purposes: string[] | null;
140
140
  type: CardType | string; // MOCK
141
+ order_types: OrderType[];
141
142
  sub_account_type: SubAccountType | string;
142
143
  description: string | null;
143
144
  icon: string | null;
@@ -944,10 +945,10 @@ export namespace API {
944
945
  fiat_balance: number;
945
946
  type: SubAccountType | string;
946
947
  id: string;
948
+ // payment_types: Array<{ order_type: OrderType }>; deprecated, use order_types inside issuing_program
947
949
  issuing_program: API.Cards.Config.Program;
948
950
  nick_name: string;
949
951
  program_id: string;
950
- payment_types: Array<{ order_type: OrderType }>;
951
952
  realtime_auth: [
952
953
  {
953
954
  crypto_token: string;