squarefi-bff-api-module 1.36.66 → 1.36.68
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/dist/api/frontend.d.ts +5 -0
- package/dist/api/frontend.js +7 -0
- package/dist/api/types/autogen/apiV1External.types.d.ts +17 -2
- package/dist/api/types/autogen/apiV1Frontend.types.d.ts +1510 -54
- package/dist/api/types/autogen/apiV1Legacy.types.d.ts +1 -1
- package/dist/api/types/autogen/apiV1Tenant.types.d.ts +6 -1
- package/dist/api/types/autogen/apiV2.types.d.ts +11 -1
- package/dist/api/types/types.d.ts +13 -2
- package/package.json +1 -1
package/dist/api/frontend.d.ts
CHANGED
package/dist/api/frontend.js
CHANGED
|
@@ -131,4 +131,11 @@ export const frontend = {
|
|
|
131
131
|
},
|
|
132
132
|
},
|
|
133
133
|
},
|
|
134
|
+
reference: {
|
|
135
|
+
// Frontend twin of `exchange.byOrderType.*` (legacy `GET /exchange/`): the same tenant pairs, but paged in
|
|
136
|
+
// memory — 50 per page by default, 500 at most, in no particular order — and behind the bearer session.
|
|
137
|
+
exchangeRates: {
|
|
138
|
+
list: (params = {}) => apiClientV1Frontend.getRequest('/frontend/reference/exchange_rates', { params }),
|
|
139
|
+
},
|
|
140
|
+
},
|
|
134
141
|
};
|
|
@@ -3400,6 +3400,11 @@ export interface paths {
|
|
|
3400
3400
|
*/
|
|
3401
3401
|
from_currency_id: string;
|
|
3402
3402
|
amount: number;
|
|
3403
|
+
/**
|
|
3404
|
+
* @description When true, `amount` is what the sub-account is credited; the wallet debit (conversion + fees) is derived from it.
|
|
3405
|
+
* @default false
|
|
3406
|
+
*/
|
|
3407
|
+
is_reverse?: boolean;
|
|
3403
3408
|
note?: string;
|
|
3404
3409
|
};
|
|
3405
3410
|
};
|
|
@@ -4172,6 +4177,11 @@ export interface paths {
|
|
|
4172
4177
|
* @example 250
|
|
4173
4178
|
*/
|
|
4174
4179
|
amount: number;
|
|
4180
|
+
/**
|
|
4181
|
+
* @description When true, `amount` is what the sub-account is credited; the wallet debit (conversion + fees) is derived from it.
|
|
4182
|
+
* @default false
|
|
4183
|
+
*/
|
|
4184
|
+
is_reverse?: boolean;
|
|
4175
4185
|
/**
|
|
4176
4186
|
* @description Optional description for the deposit
|
|
4177
4187
|
* @example Top up sub-account
|
|
@@ -7135,7 +7145,7 @@ export interface components {
|
|
|
7135
7145
|
* @example EXCHANGE_OMNI
|
|
7136
7146
|
* @enum {string}
|
|
7137
7147
|
*/
|
|
7138
|
-
OrderTypeId: "EXCHANGE_OMNI" | "EXCHANGE_OMNI_ONRAMP" | "EXCHANGE_OMNI_OFFRAMP" | "EXCHANGE_OMNI_CRYPTO" | "EXCHANGE_CRYPTO_INTERNAL" | "L2F_ACH_ONRAMP" | "L2F_ACH_OFFRAMP" | "L2F_SEPA_ONRAMP" | "L2F_SEPA_OFFRAMP" | "L2F_SWIFT_ONRAMP" | "L2F_SWIFT_OFFRAMP" | "L2F_WIRE_ONRAMP" | "L2F_WIRE_OFFRAMP" | "L2F_CHAPS_ONRAMP" | "L2F_CHAPS_OFFRAMP" | "L2F_FPS_ONRAMP" | "L2F_FPS_OFFRAMP" | "BRL_WIRE_ONRAMP" | "BRL_WIRE_OFFRAMP" | "BRL_ACH_ONRAMP" | "BRL_ACH_OFFRAMP" | "BRL_RTP_OFFRAMP" | "DLS_WIRE_ONRAMP" | "DLS_WIRE_OFFRAMP" | "DLS_ACH_ONRAMP" | "DLS_ACH_OFFRAMP" | "DLS_SEPA_ONRAMP" | "DLS_SEPA_OFFRAMP" | "DLS_SWIFT_ONRAMP" | "DLS_SWIFT_OFFRAMP" | "BC1_SEPA_ONRAMP" | "BC1_SEPA_OFFRAMP" | "BC1_SWIFT_ONRAMP" | "BC1_SWIFT_OFFRAMP" | "BC3_SEPA_ONRAMP" | "BC3_SEPA_OFFRAMP" | "RPP_SWIFT_OFFRAMP" | "RPP_SEPA_OFFRAMP" | "RPP_FPS_OFFRAMP" | "RPP_ACH_OFFRAMP" | "OMNIBUS_CRYPTO_TRANSFER" | "OMNIBUS_CRYPTO_WITHDRAWAL" | "OMNIBUS_INTERNAL_TRANSFER" | "SEGREGATED_CRYPTO_TRANSFER" | "TRANSFER_INTERNAL" | "TRANSFER_CARD_PREPAID" | "TRANSFER_CARD_SUBACCOUNT" | "TRANSFER_CARD_WHOLESALE" | "WITHDRAW_CARD_PREPAID" | "WITHDRAW_CARD_SUBACCOUNT" | "REFUND_CARD_PREPAID" | "REFUND_CARD_SUBACCOUNT" | "RN_CARDS_OFFRAMP" | "CARD_ISSUING_FEE" | "MONTHLY_FEE";
|
|
7148
|
+
OrderTypeId: "EXCHANGE_OMNI" | "EXCHANGE_OMNI_ONRAMP" | "EXCHANGE_OMNI_OFFRAMP" | "EXCHANGE_OMNI_CRYPTO" | "EXCHANGE_CRYPTO_INTERNAL" | "L2F_ACH_ONRAMP" | "L2F_ACH_OFFRAMP" | "L2F_SEPA_ONRAMP" | "L2F_SEPA_OFFRAMP" | "L2F_SWIFT_ONRAMP" | "L2F_SWIFT_OFFRAMP" | "L2F_WIRE_ONRAMP" | "L2F_WIRE_OFFRAMP" | "L2F_CHAPS_ONRAMP" | "L2F_CHAPS_OFFRAMP" | "L2F_FPS_ONRAMP" | "L2F_FPS_OFFRAMP" | "BRL_WIRE_ONRAMP" | "BRL_WIRE_OFFRAMP" | "BRL_ACH_ONRAMP" | "BRL_ACH_OFFRAMP" | "BRL_RTP_OFFRAMP" | "DLS_WIRE_ONRAMP" | "DLS_WIRE_OFFRAMP" | "DLS_ACH_ONRAMP" | "DLS_ACH_OFFRAMP" | "DLS_SEPA_ONRAMP" | "DLS_SEPA_OFFRAMP" | "DLS_SWIFT_ONRAMP" | "DLS_SWIFT_OFFRAMP" | "BC1_SEPA_ONRAMP" | "BC1_SEPA_OFFRAMP" | "BC1_SWIFT_ONRAMP" | "BC1_SWIFT_OFFRAMP" | "BC3_SEPA_ONRAMP" | "BC3_SEPA_OFFRAMP" | "RPP_SWIFT_OFFRAMP" | "RPP_SEPA_OFFRAMP" | "RPP_FPS_OFFRAMP" | "RPP_ACH_OFFRAMP" | "OMNIBUS_CRYPTO_TRANSFER" | "OMNIBUS_CRYPTO_WITHDRAWAL" | "OMNIBUS_INTERNAL_TRANSFER" | "SEGREGATED_CRYPTO_TRANSFER" | "TRANSFER_INTERNAL" | "TRANSFER_CARD_PREPAID" | "TRANSFER_CARD_SUBACCOUNT" | "TRANSFER_CARD_WHOLESALE" | "WITHDRAW_CARD_PREPAID" | "WITHDRAW_CARD_SUBACCOUNT" | "REFUND_CARD_PREPAID" | "REFUND_CARD_SUBACCOUNT" | "RN_CARDS_OFFRAMP" | "CARD_ISSUING_FEE" | "MONTHLY_FEE" | "REFERRAL_PAYOUT";
|
|
7139
7149
|
OrderCalculation: {
|
|
7140
7150
|
/**
|
|
7141
7151
|
* Format: uuid
|
|
@@ -8257,7 +8267,7 @@ export interface components {
|
|
|
8257
8267
|
/** Format: uuid */
|
|
8258
8268
|
transaction_amount_currency?: string | null;
|
|
8259
8269
|
billing_amount?: number | null;
|
|
8260
|
-
/**
|
|
8270
|
+
/** @description Currency of `billing_amount`. Not uniform across rails: a currency uuid on most orders, an ISO code (e.g. `EUR`) on L2F off-ramps, the destination currency uuid on BC/DLS on-ramps. Use the order's `from_uuid` for the debited currency. */
|
|
8261
8271
|
billing_amount_currency?: string | null;
|
|
8262
8272
|
fee?: number | null;
|
|
8263
8273
|
/** Format: uuid */
|
|
@@ -8276,6 +8286,11 @@ export interface components {
|
|
|
8276
8286
|
from_currency_id?: string | null;
|
|
8277
8287
|
/** Format: uuid */
|
|
8278
8288
|
to_currency_id?: string | null;
|
|
8289
|
+
/**
|
|
8290
|
+
* @description Leg side of an internal transfer: 'out' on the sender's order, 'in' on the receiver's. Card authorizations carry 'out', their refunds 'in'.
|
|
8291
|
+
* @enum {string|null}
|
|
8292
|
+
*/
|
|
8293
|
+
direction?: "in" | "out" | null;
|
|
8279
8294
|
/** Format: uuid */
|
|
8280
8295
|
counterparty_account_id?: string | null;
|
|
8281
8296
|
counterparty_account_name?: string | null;
|