squarefi-bff-api-module 1.36.90 → 1.36.91
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.
|
@@ -8476,6 +8476,12 @@ export interface components {
|
|
|
8476
8476
|
fee?: number | null;
|
|
8477
8477
|
/** Format: uuid */
|
|
8478
8478
|
fee_currency?: string | null;
|
|
8479
|
+
/** @description Fiat payouts: fixed part of `fee` (the rail's flat charge), in `fee_currency`. Absent on other order types and on payouts created before it was stored — show `fee` as one line then. */
|
|
8480
|
+
fixed_commission?: number | null;
|
|
8481
|
+
/** @description Percentage part of `fee`, in `fee_currency`. Each part is truncated to cents on its own, so `fixed_commission + percent_commission` can fall a cent short of `fee`; the total is always `fee`. */
|
|
8482
|
+
percent_commission?: number | null;
|
|
8483
|
+
/** @description Percent rate behind `percent_commission`, in whole percent (1 = 1%). */
|
|
8484
|
+
base_markup?: number | null;
|
|
8479
8485
|
network_fee?: number | null;
|
|
8480
8486
|
/** Format: uuid */
|
|
8481
8487
|
network_fee_currency?: string | null;
|
|
@@ -16009,6 +16009,26 @@ export interface components {
|
|
|
16009
16009
|
* @example 1.5
|
|
16010
16010
|
*/
|
|
16011
16011
|
comission: number;
|
|
16012
|
+
/**
|
|
16013
|
+
* Format: uuid
|
|
16014
|
+
* @description Currency UUID `comission` and its two parts are denominated in. Omitted by older engines — then it is the same currency on both sides.
|
|
16015
|
+
*/
|
|
16016
|
+
commission_currency?: string;
|
|
16017
|
+
/**
|
|
16018
|
+
* @description Fixed part of `comission` (the rail's flat charge), in `commission_currency`.
|
|
16019
|
+
* @example 0.5
|
|
16020
|
+
*/
|
|
16021
|
+
fixed_commission: number;
|
|
16022
|
+
/**
|
|
16023
|
+
* @description Percentage part of `comission`, in `commission_currency`. Each part is truncated to cents on its own, so `fixed_commission + percent_commission` can fall a cent short of `comission`; the total is always `comission`.
|
|
16024
|
+
* @example 1
|
|
16025
|
+
*/
|
|
16026
|
+
percent_commission: number;
|
|
16027
|
+
/**
|
|
16028
|
+
* @description Percent rate behind `percent_commission`, in whole percent (1 = 1%).
|
|
16029
|
+
* @example 1
|
|
16030
|
+
*/
|
|
16031
|
+
base_markup: number;
|
|
16012
16032
|
/**
|
|
16013
16033
|
* @description Estimated blockchain network fee (crypto withdrawals only, otherwise 0).
|
|
16014
16034
|
* @example 0
|
|
@@ -17394,6 +17414,12 @@ export interface components {
|
|
|
17394
17414
|
fee?: number | null;
|
|
17395
17415
|
/** Format: uuid */
|
|
17396
17416
|
fee_currency?: string | null;
|
|
17417
|
+
/** @description Fiat payouts: fixed part of `fee` (the rail's flat charge), in `fee_currency`. Absent on other order types and on payouts created before it was stored — show `fee` as one line then. */
|
|
17418
|
+
fixed_commission?: number | null;
|
|
17419
|
+
/** @description Percentage part of `fee`, in `fee_currency`. Each part is truncated to cents on its own, so `fixed_commission + percent_commission` can fall a cent short of `fee`; the total is always `fee`. */
|
|
17420
|
+
percent_commission?: number | null;
|
|
17421
|
+
/** @description Percent rate behind `percent_commission`, in whole percent (1 = 1%). */
|
|
17422
|
+
base_markup?: number | null;
|
|
17397
17423
|
network_fee?: number | null;
|
|
17398
17424
|
/** Format: uuid */
|
|
17399
17425
|
network_fee_currency?: string | null;
|
|
@@ -18007,6 +18033,12 @@ export interface components {
|
|
|
18007
18033
|
transaction_amount_currency?: string;
|
|
18008
18034
|
fee?: number;
|
|
18009
18035
|
fee_currency?: string;
|
|
18036
|
+
/** @description Fiat payouts: fixed part of `fee` (the rail's flat charge), in `fee_currency`. Absent on other order types and on payouts created before it was stored — show `fee` as one line then. */
|
|
18037
|
+
fixed_commission?: number;
|
|
18038
|
+
/** @description Percentage part of `fee`, in `fee_currency`. Each part is truncated to cents on its own, so `fixed_commission + percent_commission` can fall a cent short of `fee`; the total is always `fee`. */
|
|
18039
|
+
percent_commission?: number;
|
|
18040
|
+
/** @description Percent rate behind `percent_commission`, in whole percent (1 = 1%). */
|
|
18041
|
+
base_markup?: number;
|
|
18010
18042
|
network_fee?: number;
|
|
18011
18043
|
network_fee_currency?: string;
|
|
18012
18044
|
exchange_rate?: number;
|
package/dist/hooks/useCalc.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ type CalcResult = {
|
|
|
9
9
|
network_fee: number;
|
|
10
10
|
transaction_fee: number;
|
|
11
11
|
from_symbol: string;
|
|
12
|
+
commission_currency?: string;
|
|
13
|
+
fixed_commission?: number;
|
|
14
|
+
percent_commission?: number;
|
|
15
|
+
base_markup?: number;
|
|
12
16
|
};
|
|
13
17
|
type CalcData = CalcResult & {
|
|
14
18
|
is_subtract: boolean;
|
package/dist/hooks/useCalc.js
CHANGED
|
@@ -67,6 +67,10 @@ export const useOrderCalc = ({ from_currency_id, to_currency_id, calcHandler, di
|
|
|
67
67
|
network_fee: data.network_fee,
|
|
68
68
|
transaction_fee: data.transaction_fee,
|
|
69
69
|
from_symbol: data.from_symbol,
|
|
70
|
+
commission_currency: data.commission_currency,
|
|
71
|
+
fixed_commission: data.fixed_commission,
|
|
72
|
+
percent_commission: data.percent_commission,
|
|
73
|
+
base_markup: data.base_markup,
|
|
70
74
|
is_reverse,
|
|
71
75
|
is_subtract,
|
|
72
76
|
});
|