@riocrypto/common 1.0.697 → 1.0.699
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-input.d.ts +14 -11
- package/build/types/order.d.ts +11 -12
- package/build/types/quote.d.ts +2 -2
- package/package.json +1 -1
|
@@ -9,30 +9,33 @@ import { Side } from "./side";
|
|
|
9
9
|
import { Fees } from "./fees";
|
|
10
10
|
import { PayoutMethod } from "./payout-method";
|
|
11
11
|
export interface OrderInput {
|
|
12
|
+
quoteId: string;
|
|
12
13
|
userId: string;
|
|
13
14
|
crypto: Crypto;
|
|
14
15
|
side: Side;
|
|
15
16
|
fiat: Fiat;
|
|
16
|
-
subtotal?: number;
|
|
17
|
-
amountFiat?: number;
|
|
18
|
-
amountCrypto?: number;
|
|
19
17
|
paymentMethod?: PaymentMethod;
|
|
20
18
|
payoutMethod?: PayoutMethod;
|
|
21
19
|
createdAt: Date;
|
|
22
20
|
status: OrderStatus;
|
|
23
21
|
cryptoAddress: string;
|
|
24
|
-
price?: number;
|
|
25
22
|
country: Country;
|
|
26
23
|
state?: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
amountFiat?: number;
|
|
25
|
+
amountCrypto?: number;
|
|
26
|
+
liquidityProvider: LiquidityProvider;
|
|
27
|
+
processor: Processor;
|
|
28
|
+
fees: Fees;
|
|
29
|
+
price: number;
|
|
31
30
|
partnerId?: string;
|
|
31
|
+
depositAddress?: string;
|
|
32
|
+
depositTxId?: string;
|
|
33
|
+
withdrawalTxId?: string;
|
|
34
|
+
brokerId?: string;
|
|
35
|
+
conversionRateUSD: number;
|
|
36
|
+
conversionRateUSDWithMarkups: number;
|
|
37
|
+
actualConversionRateUSD?: number;
|
|
32
38
|
notes?: string;
|
|
33
39
|
discount?: number;
|
|
34
40
|
markup?: number;
|
|
35
|
-
conversionRateUSD?: number;
|
|
36
|
-
actualConversionRateUSD?: number;
|
|
37
|
-
quoteId?: string;
|
|
38
41
|
}
|
package/build/types/order.d.ts
CHANGED
|
@@ -7,37 +7,36 @@ import { PaymentMethod } from "./payment-method";
|
|
|
7
7
|
import { Processor } from "./processor";
|
|
8
8
|
import { Side } from "./side";
|
|
9
9
|
import { Fees } from "./fees";
|
|
10
|
-
import { USState } from "./us-state";
|
|
11
10
|
import { PayoutMethod } from "./payout-method";
|
|
12
11
|
export interface Order {
|
|
13
12
|
id: string;
|
|
13
|
+
quoteId: string;
|
|
14
14
|
userId: string;
|
|
15
15
|
crypto: Crypto;
|
|
16
16
|
side: Side;
|
|
17
17
|
fiat: Fiat;
|
|
18
|
-
amountFiat?: number;
|
|
19
|
-
amountCrypto?: number;
|
|
20
18
|
paymentMethod?: PaymentMethod;
|
|
21
19
|
payoutMethod?: PayoutMethod;
|
|
22
20
|
createdAt: Date;
|
|
23
21
|
status: OrderStatus;
|
|
24
22
|
cryptoAddress: string;
|
|
25
|
-
price?: number;
|
|
26
23
|
country: Country;
|
|
27
|
-
state
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
state?: string;
|
|
25
|
+
amountFiat?: number;
|
|
26
|
+
amountCrypto?: number;
|
|
27
|
+
liquidityProvider: LiquidityProvider;
|
|
28
|
+
processor: Processor;
|
|
29
|
+
fees: Fees;
|
|
30
|
+
price: number;
|
|
31
31
|
partnerId?: string;
|
|
32
|
-
partnerFee?: number;
|
|
33
32
|
depositAddress?: string;
|
|
34
33
|
depositTxId?: string;
|
|
35
34
|
withdrawalTxId?: string;
|
|
36
35
|
brokerId?: string;
|
|
36
|
+
conversionRateUSD: number;
|
|
37
|
+
conversionRateUSDWithMarkups: number;
|
|
38
|
+
actualConversionRateUSD?: number;
|
|
37
39
|
notes?: string;
|
|
38
40
|
discount?: number;
|
|
39
41
|
markup?: number;
|
|
40
|
-
conversionRateUSD?: number;
|
|
41
|
-
actualConversionRateUSD?: number;
|
|
42
|
-
quoteId?: string;
|
|
43
42
|
}
|
package/build/types/quote.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ export interface Quote {
|
|
|
28
28
|
partnerId?: string;
|
|
29
29
|
depositAddress?: string;
|
|
30
30
|
brokerId?: string;
|
|
31
|
-
conversionRateUSD
|
|
32
|
-
conversionRateUSDWithMarkups
|
|
31
|
+
conversionRateUSD: number;
|
|
32
|
+
conversionRateUSDWithMarkups: number;
|
|
33
33
|
discount?: number;
|
|
34
34
|
markup?: number;
|
|
35
35
|
}
|