@riocrypto/common 1.0.2166 → 1.0.2169
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/build/types/order.d.ts
CHANGED
|
@@ -11,38 +11,38 @@ import { PayoutMethod } from "./payout-method";
|
|
|
11
11
|
import { OrderAttribute } from "./order-attribute";
|
|
12
12
|
import { DeferredPaymentType } from "./deferred-payment-type";
|
|
13
13
|
import { TwoWaySettlementType } from "./two-way-settlement-type";
|
|
14
|
-
import {
|
|
14
|
+
import { PriceExecutionType } from "./price-execution-type";
|
|
15
15
|
export interface Order {
|
|
16
16
|
id: string;
|
|
17
|
-
quoteId
|
|
17
|
+
quoteId: string;
|
|
18
18
|
createdAt: Date;
|
|
19
19
|
userId: string;
|
|
20
20
|
crypto: Crypto;
|
|
21
21
|
side: Side;
|
|
22
22
|
fiat: Fiat;
|
|
23
|
-
|
|
24
|
-
amountFiat: number;
|
|
25
|
-
amountCrypto: number;
|
|
23
|
+
priceExecutionType: PriceExecutionType;
|
|
26
24
|
paymentMethod?: PaymentMethod;
|
|
27
25
|
payoutMethod?: PayoutMethod;
|
|
28
26
|
status: OrderStatus;
|
|
29
27
|
cryptoAddress?: string;
|
|
30
28
|
country: Country;
|
|
31
|
-
|
|
29
|
+
state?: string;
|
|
30
|
+
amountFiat?: number;
|
|
32
31
|
amountFiatReceived?: number;
|
|
32
|
+
amountCrypto?: number;
|
|
33
33
|
amountCryptoReceived?: number;
|
|
34
|
-
liquidityProvider
|
|
35
|
-
processor
|
|
36
|
-
fees
|
|
37
|
-
actualFees
|
|
34
|
+
liquidityProvider: LiquidityProvider;
|
|
35
|
+
processor: Processor;
|
|
36
|
+
fees: Fees;
|
|
37
|
+
actualFees: Fees;
|
|
38
38
|
price: number;
|
|
39
39
|
depositAddress?: string;
|
|
40
40
|
depositTxId?: string;
|
|
41
41
|
withdrawalTxId?: string;
|
|
42
42
|
withdrawalTxIds?: string[];
|
|
43
43
|
brokerId?: string;
|
|
44
|
-
conversionRateUSD
|
|
45
|
-
conversionRateUSDWithMarkups
|
|
44
|
+
conversionRateUSD: number;
|
|
45
|
+
conversionRateUSDWithMarkups: number;
|
|
46
46
|
actualConversionRateUSD?: number;
|
|
47
47
|
notes?: string;
|
|
48
48
|
discount?: number;
|
|
@@ -56,7 +56,7 @@ export interface Order {
|
|
|
56
56
|
isAfterHours?: boolean;
|
|
57
57
|
isSurgePricing?: boolean;
|
|
58
58
|
chainedOrderId?: string;
|
|
59
|
-
netPrice
|
|
59
|
+
netPrice: number;
|
|
60
60
|
requestedNetPrice?: number;
|
|
61
61
|
paymentAddressId?: string;
|
|
62
62
|
payoutAddressId?: string;
|
|
@@ -64,9 +64,9 @@ export interface Order {
|
|
|
64
64
|
attributes?: OrderAttribute[];
|
|
65
65
|
binancePaymentId?: string;
|
|
66
66
|
binancePayoutId?: string;
|
|
67
|
-
deferredPaymentType
|
|
68
|
-
twoWaySettlementType
|
|
69
|
-
twoWaySettlementDate
|
|
67
|
+
deferredPaymentType: DeferredPaymentType;
|
|
68
|
+
twoWaySettlementType: TwoWaySettlementType;
|
|
69
|
+
twoWaySettlementDate: Date;
|
|
70
70
|
twoWaySettlementDateOffset?: number;
|
|
71
71
|
effectiveTwoWaySettlementDateOffset?: number;
|
|
72
72
|
bulkCryptoPaymentId?: string;
|
|
@@ -133,6 +133,6 @@ export interface Order {
|
|
|
133
133
|
};
|
|
134
134
|
payoutTransferLimit?: number;
|
|
135
135
|
paymentReceivedAt?: Date;
|
|
136
|
-
rioPayoutFireblocksVaultId
|
|
136
|
+
rioPayoutFireblocksVaultId: string;
|
|
137
137
|
version: number;
|
|
138
138
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PriceExecutionType = void 0;
|
|
4
|
+
var PriceExecutionType;
|
|
5
|
+
(function (PriceExecutionType) {
|
|
6
|
+
PriceExecutionType["Market"] = "market";
|
|
7
|
+
PriceExecutionType["Limit"] = "limit";
|
|
8
|
+
})(PriceExecutionType = exports.PriceExecutionType || (exports.PriceExecutionType = {}));
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrderExecutionType = void 0;
|
|
4
|
-
var OrderExecutionType;
|
|
5
|
-
(function (OrderExecutionType) {
|
|
6
|
-
OrderExecutionType["RFQ"] = "RFQ";
|
|
7
|
-
OrderExecutionType["LimitPrice"] = "limitPrice";
|
|
8
|
-
})(OrderExecutionType = exports.OrderExecutionType || (exports.OrderExecutionType = {}));
|