squarefi-bff-api-module 1.36.88 → 1.36.90

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.
@@ -1586,8 +1586,37 @@ export interface components {
1586
1586
  state_province_region?: string | null;
1587
1587
  id?: string;
1588
1588
  };
1589
+ KycDocumentDto: {
1590
+ /** Format: uuid */
1591
+ readonly id?: string;
1592
+ /** Format: uuid */
1593
+ readonly kyc_entity_id?: string;
1594
+ /**
1595
+ * Format: uuid
1596
+ * @description Beneficial owner the document belongs to; null for the entity itself.
1597
+ */
1598
+ readonly ubo_id?: Record<string, never> | null;
1599
+ /**
1600
+ * @description Document type.
1601
+ * @example formation_doc
1602
+ * @enum {string}
1603
+ */
1604
+ type: "supplementary" | "gov_id_front" | "gov_id_back" | "gov_id_hand_hold" | "selfie" | "proof_of_address" | "auth_letter" | "formation_doc" | "proof_of_ownership" | "certificate_of_registration_doc" | "business_registration_doc" | "share_structure" | "constitution_or_annual_report" | "articles_of_association" | "ubo_declaration" | "partnership_mins_of_meeting" | "partnership_deed" | "certificate_of_incumbency" | "regulatory_license" | "state_registry_doc" | "good_standing_cert" | "business_proof_of_address" | "invoices" | "contracts" | "financial_statements" | "source_of_funds" | "business_bank_statement" | "source_of_wealth_ubo" | "customer_supplier_agreements";
1605
+ /** Format: uri */
1606
+ link: string;
1607
+ /** @example bff */
1608
+ readonly source?: string;
1609
+ /**
1610
+ * Format: uuid
1611
+ * @description Shared by the files filed together (one submission); the newest batch of a type is its current set.
1612
+ */
1613
+ readonly batch_id?: string;
1614
+ /** @description Order of the file within its batch, from 0. */
1615
+ readonly position?: number;
1616
+ /** Format: date-time */
1617
+ readonly created_at?: string;
1618
+ };
1589
1619
  KycBeneficialOwnerDto: {
1590
- auth_letter_url: string | null;
1591
1620
  business_title: string | null;
1592
1621
  country_of_birth: string | null;
1593
1622
  date_of_birth: string | null;
@@ -1598,10 +1627,8 @@ export interface components {
1598
1627
  last_name_local: string | null;
1599
1628
  middle_name: string | null;
1600
1629
  middle_name_local: string | null;
1601
- gov_id_back_url: string | null;
1602
1630
  gov_id_country: string | null;
1603
1631
  gov_id_expiration_date: string | null;
1604
- gov_id_front_url: string | null;
1605
1632
  gov_id_issuance_authority: string | null;
1606
1633
  gov_id_issuance_date: string | null;
1607
1634
  gov_id_number: string | null;
@@ -1614,15 +1641,12 @@ export interface components {
1614
1641
  phone: string | null;
1615
1642
  /** @enum {string|null} */
1616
1643
  proof_of_address_type: "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | null;
1617
- proof_of_address_url: string | null;
1618
1644
  relationship_established_at: string | null;
1619
1645
  /** @enum {string|null} */
1620
1646
  role?: "OWNER_OR_OPERATOR" | "PARTNER" | "UBO" | "DIRECTOR_CONTROL_PERSON_OR_LEGAL_REP" | "AGENT_OR_AUTHORISED_PERSON" | null;
1621
1647
  share_proportion: string | null;
1622
1648
  supplementary_info: string | null;
1623
- supplementary_url: string | null;
1624
1649
  tax_identification_number: string | null;
1625
- selfie_url?: string | null;
1626
1650
  /**
1627
1651
  * @default individual
1628
1652
  * @enum {string|null}
@@ -1635,6 +1659,8 @@ export interface components {
1635
1659
  corporate_country: string | null;
1636
1660
  id?: string;
1637
1661
  address?: components["schemas"]["KycAddressDto"] | null;
1662
+ /** @description KYC documents of this beneficial owner. Request: documents to file for the owner (type + link). */
1663
+ documents?: components["schemas"]["KycDocumentDto"][];
1638
1664
  };
1639
1665
  KycEntityDto: {
1640
1666
  id: string;
@@ -1647,22 +1673,17 @@ export interface components {
1647
1673
  id_type?: "PASSPORT" | "ID_CARD" | "DRIVERS" | "NIN" | null;
1648
1674
  additional_id_number?: string | null;
1649
1675
  additional_id_type?: string | null;
1650
- articles_of_association_url?: string | null;
1651
1676
  business_description?: string | null;
1652
1677
  business_industry?: string[] | null;
1653
1678
  business_industry_other?: string | null;
1654
1679
  business_name?: string | null;
1655
1680
  business_name_local?: string | null;
1656
- business_registration_doc_url?: string | null;
1657
1681
  /** @enum {string|null} */
1658
1682
  business_type?: "cooperative" | "s_corporation" | "b_corporation" | "c_corporation" | "close_corporation" | "nonprofit_corporation" | "general_partnership" | "limited_partnership" | "limited_liability_company" | "other" | "sole_proprietorship" | "trust" | null;
1659
1683
  certificate_number?: string | null;
1660
- certificate_of_incumbency_url?: string | null;
1661
1684
  /** @enum {string|null} */
1662
1685
  certificate_of_registration_doc_type?: "ACRA" | "GST" | "MSME" | "CERTIFICATE_OF_REGISTRATION" | null;
1663
- certificate_of_registration_doc_url?: string | null;
1664
1686
  compliance_screening_explanation?: string | null;
1665
- constitution_or_annual_report_url?: string | null;
1666
1687
  country_of_birth?: string | null;
1667
1688
  /** @default false */
1668
1689
  dao_status: boolean | null;
@@ -1673,12 +1694,8 @@ export interface components {
1673
1694
  first_name?: string | null;
1674
1695
  first_name_local?: string | null;
1675
1696
  formation_date?: string | null;
1676
- formation_doc_url?: string | null;
1677
- gov_id_back_url?: string | null;
1678
1697
  gov_id_country?: string | null;
1679
1698
  gov_id_expiration_date?: string | null;
1680
- gov_id_front_url?: string | null;
1681
- gov_id_hand_hold_url?: string | null;
1682
1699
  gov_id_issuance_authority?: string | null;
1683
1700
  gov_id_issuance_date?: string | null;
1684
1701
  gov_id_number?: string | null;
@@ -1691,23 +1708,17 @@ export interface components {
1691
1708
  middle_name?: string | null;
1692
1709
  middle_name_local?: string | null;
1693
1710
  nationality?: string | null;
1694
- partnership_deed_url?: string | null;
1695
- partnership_mins_of_meeting_url?: string | null;
1696
1711
  phone?: string | null;
1697
1712
  product_service_category?: string | null;
1698
1713
  /** @enum {string|null} */
1699
1714
  proof_of_address_type?: "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | null;
1700
- proof_of_address_url?: string | null;
1701
- proof_of_ownership_url?: string | null;
1702
1715
  /** @enum {string|null} */
1703
1716
  purpose?: "charitable_donations" | "ecommerce_retail_payments" | "investment_purposes" | "other" | "payments_to_friends_or_family_abroad" | "payroll" | "personal_or_living_expenses" | "protect_wealth" | "purchase_goods_and_services" | "receive_payments_for_goods_and_services" | "tax_optimization" | "third_party_money_transmission" | "treasury_management" | "operating_a_company" | "receive_payment_for_freelancing" | "receive_salary" | null;
1704
1717
  purpose_other?: string | null;
1705
1718
  registration_number?: string | null;
1706
- share_structure_url?: string | null;
1707
1719
  /** @enum {string|null} */
1708
1720
  source_of_funds?: "employment" | "savings" | "winnings" | "marital" | "real_estate" | "trust" | "investment" | "other" | "sales_of_goods_and_services" | "owners_capital" | "business_loans" | "private_capital" | "grant" | null;
1709
1721
  supplementary_info?: string | null;
1710
- supplementary_url?: string | null;
1711
1722
  tax_identification_number?: string | null;
1712
1723
  /** @enum {string|null} */
1713
1724
  tax_identification_number_type?: "EIN" | "SSN" | "VAT" | "TIN" | "UTR" | null;
@@ -1716,10 +1727,7 @@ export interface components {
1716
1727
  trade_type?: "00" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "40" | "41" | null;
1717
1728
  /** @default false */
1718
1729
  transmits_customer_funds: boolean | null;
1719
- ubo_declaration_url?: string | null;
1720
1730
  website?: string | null;
1721
- selfie_url?: string | null;
1722
- regulatory_license_url?: string | null;
1723
1731
  annual_salary?: string | null;
1724
1732
  expected_monthly_volume?: string | null;
1725
1733
  monthly_crypto_deposits?: string | null;
@@ -1770,31 +1778,25 @@ export interface components {
1770
1778
  regulatory_authority_name?: string | null;
1771
1779
  regulatory_authority_country?: string | null;
1772
1780
  regulatory_license_number?: string | null;
1773
- regulatory_license_urls?: string[] | null;
1774
- state_registry_doc_url?: string | null;
1775
- good_standing_cert_url?: string | null;
1776
- business_proof_of_address_url?: string | null;
1777
1781
  /** @enum {string|null} */
1778
1782
  business_proof_of_address_type?: "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | null;
1779
- invoices_url?: string[] | null;
1780
1783
  invoices_absence_reason?: string | null;
1781
- contracts_url?: string[] | null;
1782
1784
  contracts_absence_reason?: string | null;
1783
- financial_statements_url?: string | null;
1784
- source_of_funds_url?: string | null;
1785
- business_bank_statement_url?: string[] | null;
1786
1785
  professional_description?: string | null;
1787
1786
  source_of_accumulated?: string | null;
1788
1787
  send_and_receive?: string | null;
1789
1788
  employment_status_other?: string | null;
1790
1789
  source_of_wealth_ubo?: string | null;
1791
- source_of_wealth_ubo_url?: string | null;
1790
+ customer_acquisition_and_location?: string | null;
1791
+ funds_senders_and_recipients?: string | null;
1792
1792
  purposes?: string[] | null;
1793
1793
  payment_flows?: string[] | null;
1794
1794
  source_of_funds_list?: string[] | null;
1795
1795
  address?: components["schemas"]["KycAddressDto"] | null;
1796
1796
  physical_address?: components["schemas"]["KycAddressDto"] | null;
1797
1797
  beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
1798
+ /** @description KYC documents. Response: every document of the entity and of its beneficial owners (ubo_id set). Request: documents to file for the entity (type + link). */
1799
+ documents?: components["schemas"]["KycDocumentDto"][];
1798
1800
  };
1799
1801
  WalletKycRailExtraActionDto: {
1800
1802
  /** @enum {string} */
@@ -109,6 +109,8 @@ export declare namespace API {
109
109
  /** Hex colour for every text on the card face (balance, nickname, PAN). */
110
110
  text_color?: string;
111
111
  }
112
+ /** A mobile wallet a card can be added to; follows the frontend program schema. */
113
+ type DigitalWallet = componentsV1Frontend['schemas']['IssuingProgram']['digital_wallets'][number];
112
114
  namespace Config {
113
115
  type IssuingProgramOrderType = {
114
116
  id: string;
@@ -124,7 +126,17 @@ export declare namespace API {
124
126
  name: string;
125
127
  max_cards: number;
126
128
  realtime_auth: boolean;
129
+ /** At least one mobile wallet is supported; which ones: `digital_wallets`. */
127
130
  tokenizable: boolean;
131
+ /**
132
+ * Mobile wallets cards of this program can be added to; empty = none. A
133
+ * program can support Google Pay without Apple Pay.
134
+ *
135
+ * Optional on the type because a backend older than the
136
+ * `issuing_programs.digital_wallets` migration omits it: read it with a
137
+ * fallback to `tokenizable` (true = both wallets).
138
+ */
139
+ digital_wallets?: API.Cards.DigitalWallet[];
128
140
  kyc_rails_id: string;
129
141
  integration_vendor_id: string;
130
142
  vendor_id: string;
@@ -230,7 +242,20 @@ export declare namespace API {
230
242
  name_on_card: string | null;
231
243
  type: CardType | string;
232
244
  form_factor: CardFormFactor | string;
245
+ /** Set when the card was issued; never rewritten from the program. */
233
246
  tokenizable: boolean;
247
+ /**
248
+ * Mobile wallets this card can be added to: its program's wallets, or none
249
+ * when `tokenizable` is false; a card with no program and `tokenizable`
250
+ * true lists both.
251
+ *
252
+ * Absent when the card's program could not be read (unknown, not "both")
253
+ * and on a backend older than the field. Without it, read it the way the
254
+ * backend does: none when `tokenizable` is false, otherwise the program's
255
+ * `digital_wallets` when the program is at hand (an empty list means
256
+ * none), both only when there is no program to ask.
257
+ */
258
+ digital_wallets?: API.Cards.DigitalWallet[];
234
259
  /**
235
260
  * This card's artwork, copied from its issuing program. Served WITH the
236
261
  * card on purpose: joining against the program catalogue client-side
@@ -252,6 +277,8 @@ export declare namespace API {
252
277
  wallet_id: string;
253
278
  type: string;
254
279
  tokenizable: boolean;
280
+ /** This card's mobile wallets; see `IssuingCardListItem.digital_wallets`. */
281
+ digital_wallets?: API.Cards.DigitalWallet[];
255
282
  issuing_programs: API.Cards.Config.Program;
256
283
  limits?: API.Cards.Limits.Limits;
257
284
  /** This card's artwork; see `IssuingCardListItem.card_design`. */
@@ -2754,28 +2781,20 @@ export declare namespace API {
2754
2781
  }
2755
2782
  namespace List {
2756
2783
  namespace ByWallet {
2757
- interface Request {
2758
- wallet_uuid: string;
2759
- offset?: number;
2760
- limit?: number;
2761
- sort_by?: string;
2762
- sort_order?: 'asc' | 'desc';
2784
+ type ByWalletRoot = pathsV1Frontend['/frontend/orders/wallet/{wallet_uuid}'];
2785
+ export type Request = ByWalletRoot['get']['parameters']['path'] & Omit<NonNullable<ByWalletRoot['get']['parameters']['query']>, 'filters'> & {
2763
2786
  filters?: API.Orders.V2.List.ByWallet.OrderListFilter[];
2764
- date_from?: string;
2765
- date_to?: string;
2766
- show_low_balance?: 'true' | 'false';
2767
- }
2768
- type Response = pathsV1Frontend['/frontend/orders/wallet/{wallet_uuid}']['get']['responses'][200]['content']['application/json'];
2787
+ };
2788
+ export type Response = ByWalletRoot['get']['responses'][200]['content']['application/json'];
2789
+ export {};
2769
2790
  }
2770
2791
  namespace Csv {
2771
- interface Request {
2772
- wallet_uuid: string;
2792
+ type CsvRoot = pathsV1Frontend['/frontend/orders/wallet/{wallet_uuid}/csv'];
2793
+ export type Request = CsvRoot['get']['parameters']['path'] & Omit<NonNullable<CsvRoot['get']['parameters']['query']>, 'filters'> & {
2773
2794
  filters?: API.Orders.V2.List.ByWallet.OrderListFilter[];
2774
- date_from?: string;
2775
- date_to?: string;
2776
- show_low_balance?: 'true' | 'false';
2777
- }
2778
- type Response = string;
2795
+ };
2796
+ export type Response = string;
2797
+ export {};
2779
2798
  }
2780
2799
  }
2781
2800
  namespace ScheduledFunding {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.88",
3
+ "version": "1.36.90",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",