squarefi-bff-api-module 1.36.75 → 1.36.77

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.
@@ -571,113 +571,7 @@ export interface paths {
571
571
  };
572
572
  };
573
573
  put?: never;
574
- /**
575
- * Create destination
576
- * @description counterparty_account_id is required in the body.
577
- *
578
- * **Banking types** (ACH, SWIFT, SEPA, CHAPS, FPS, FEDWIRE):
579
- * banking_data: { account_number, routing_number, bank_name, swift_bic, iban, sort_code, note, address }
580
- *
581
- * **Crypto types** (CRYPTO_EXTERNAL, CRYPTO_INTERNAL):
582
- * crypto_data: { address, currency_id, memo }
583
- *
584
- * **Internal type** (INTERNAL):
585
- * internal_data: { wallet_id, description? } — receiver wallet on the same platform
586
- *
587
- */
588
- post: {
589
- parameters: {
590
- query?: never;
591
- header?: never;
592
- path?: never;
593
- cookie?: never;
594
- };
595
- requestBody: {
596
- content: {
597
- "application/json": {
598
- /** Format: uuid */
599
- counterparty_account_id: string;
600
- /** @enum {string} */
601
- type: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE" | "INTERNAL";
602
- nickname?: string;
603
- banking_data?: {
604
- account_number?: string;
605
- routing_number?: string;
606
- bank_name?: string;
607
- swift_bic?: string;
608
- iban?: string;
609
- /** @description Sort code (6 digits, UK banking) */
610
- sort_code?: string;
611
- note?: string;
612
- address?: {
613
- country_id?: number;
614
- city?: string;
615
- postcode?: string;
616
- street1?: string;
617
- street2?: string;
618
- /** @description Required when the selected country has states; countries without states may omit it */
619
- state_id?: number | null;
620
- };
621
- };
622
- crypto_data?: {
623
- address?: string;
624
- /** Format: uuid */
625
- currency_id?: string;
626
- memo?: string;
627
- /**
628
- * @description Hosting classification of the address
629
- * @default unknown
630
- * @enum {string}
631
- */
632
- wallet_custody_type?: "custodial" | "selfhosted" | "unknown";
633
- };
634
- /** @description Required for type INTERNAL — points at the receiver wallet on the same platform. */
635
- internal_data?: {
636
- /**
637
- * Format: uuid
638
- * @description Target (receiver) wallet uuid on the same platform.
639
- */
640
- wallet_id: string;
641
- /** @description Optional, reserved for future use. */
642
- description?: string;
643
- };
644
- };
645
- };
646
- };
647
- responses: {
648
- /** @description Counterparty destination created */
649
- 201: {
650
- headers: {
651
- [name: string]: unknown;
652
- };
653
- content: {
654
- "application/json": {
655
- /** @example true */
656
- success?: boolean;
657
- data?: {
658
- destination?: components["schemas"]["CounterpartyDestination"];
659
- /** @example Counterparty destination created successfully */
660
- message?: string;
661
- };
662
- };
663
- };
664
- };
665
- /** @description Validation error */
666
- 400: {
667
- headers: {
668
- [name: string]: unknown;
669
- };
670
- content?: never;
671
- };
672
- /** @description Account not found */
673
- 404: {
674
- headers: {
675
- [name: string]: unknown;
676
- };
677
- content?: never;
678
- };
679
- };
680
- };
574
+ post?: never;
681
575
  delete?: never;
682
576
  options?: never;
683
577
  head?: never;
@@ -1894,6 +1894,11 @@ export declare namespace API {
1894
1894
  to_currency: string;
1895
1895
  amount: number;
1896
1896
  is_reverse?: boolean;
1897
+ /**
1898
+ * The wallet the order would be for: when the caller may act on it, the backend prices the quote at its owner's tariff, as the
1899
+ * order is charged (on a tenant priced by tariff plans, at the wallet's plan).
1900
+ */
1901
+ wallet_id?: string;
1897
1902
  signal?: AbortSignal;
1898
1903
  }
1899
1904
  export interface WithdrawCryptoRequest extends CommonRequestParams {
@@ -1979,6 +1984,11 @@ export declare namespace API {
1979
1984
  amount: number;
1980
1985
  is_reverse: boolean;
1981
1986
  is_subtract: boolean;
1987
+ /**
1988
+ * The wallet the order would be for: when the caller may act on it, the backend prices the quote at its owner's tariff, as the
1989
+ * order is charged (on a tenant priced by tariff plans, at the wallet's plan).
1990
+ */
1991
+ wallet_id?: string;
1982
1992
  signal?: AbortSignal;
1983
1993
  }
1984
1994
  export interface WithdrawCryptoRequest extends CommonRequestParams {
@@ -2120,8 +2130,43 @@ export declare namespace API {
2120
2130
  }
2121
2131
  namespace ByOrderType {
2122
2132
  namespace INTERNAL_TRANSFER {
2123
- type Request = pathsV1Legacy['/v2/orders/TRANSFER_INTERNAL']['post']['requestBody']['content']['application/json'];
2124
- type Response = pathsV1Legacy['/v2/orders/TRANSFER_INTERNAL']['post']['responses']['200']['content']['application/json'];
2133
+ type Request = {
2134
+ wallet_id: string;
2135
+ from_currency_id: string;
2136
+ /** A counterparty destination of type `INTERNAL`, pointing at the receiving wallet. */
2137
+ counterparty_destination_id: string;
2138
+ amount: number;
2139
+ request_id: string;
2140
+ is_reverse?: boolean;
2141
+ documents?: {
2142
+ url: string;
2143
+ description?: string | null;
2144
+ }[];
2145
+ };
2146
+ type Response = {
2147
+ id?: string;
2148
+ order_uuid?: string;
2149
+ wallet_uuid?: string;
2150
+ from_uuid?: string;
2151
+ to_uuid?: string;
2152
+ amount_from?: number;
2153
+ amount_to?: number;
2154
+ order_type?: string;
2155
+ status?: string;
2156
+ created_at?: string;
2157
+ meta?: {
2158
+ meta_type?: string;
2159
+ from_wallet_uuid?: string;
2160
+ to_wallet_uuid?: string;
2161
+ transaction_amount?: number;
2162
+ transaction_amount_currency?: string;
2163
+ billing_amount?: number;
2164
+ billing_amount_currency?: string;
2165
+ exchange_rate?: number;
2166
+ network_fee?: number;
2167
+ network_fee_currency?: string | null;
2168
+ };
2169
+ };
2125
2170
  }
2126
2171
  namespace HIFI_WIRE_ONRAMP {
2127
2172
  type Request = Common.Request.OrderWithCounterpartyParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.75",
3
+ "version": "1.36.77",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",