@riocrypto/common 1.0.2167 → 1.0.2170

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.
@@ -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 { OrderExecutionType } from "./order-execution-type";
14
+ import { PriceType } from "./price-type";
15
15
  export interface Order {
16
16
  id: string;
17
- quoteId?: string;
17
+ quoteId: string;
18
18
  createdAt: Date;
19
19
  userId: string;
20
20
  crypto: Crypto;
21
21
  side: Side;
22
22
  fiat: Fiat;
23
- executionType: OrderExecutionType;
24
- amountFiat: number;
25
- amountCrypto: number;
23
+ priceType: PriceType;
26
24
  paymentMethod?: PaymentMethod;
27
25
  payoutMethod?: PayoutMethod;
28
26
  status: OrderStatus;
29
27
  cryptoAddress?: string;
30
28
  country: Country;
31
- limitPrice?: number;
29
+ state?: string;
30
+ amountFiat?: number;
32
31
  amountFiatReceived?: number;
32
+ amountCrypto?: number;
33
33
  amountCryptoReceived?: number;
34
- liquidityProvider?: LiquidityProvider;
35
- processor?: Processor;
36
- fees?: Fees;
37
- actualFees?: Fees;
38
- price?: number;
34
+ liquidityProvider: LiquidityProvider;
35
+ processor: Processor;
36
+ fees: Fees;
37
+ actualFees: Fees;
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?: number;
45
- conversionRateUSDWithMarkups?: number;
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?: number;
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?: DeferredPaymentType;
68
- twoWaySettlementType?: TwoWaySettlementType;
69
- twoWaySettlementDate?: Date;
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?: string;
136
+ rioPayoutFireblocksVaultId: string;
137
137
  version: number;
138
138
  }
@@ -0,0 +1,4 @@
1
+ export declare enum PriceType {
2
+ Market = "market",
3
+ Limit = "limit"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PriceType = void 0;
4
+ var PriceType;
5
+ (function (PriceType) {
6
+ PriceType["Market"] = "market";
7
+ PriceType["Limit"] = "limit";
8
+ })(PriceType = exports.PriceType || (exports.PriceType = {}));
@@ -10,6 +10,7 @@ import { Processor } from "./processor";
10
10
  import { Side } from "./side";
11
11
  import { USState } from "./us-state";
12
12
  import { TwoWaySettlementType } from "./two-way-settlement-type";
13
+ import { PriceType } from "./price-type";
13
14
  export interface Quote {
14
15
  id?: string;
15
16
  userId: string;
@@ -17,6 +18,7 @@ export interface Quote {
17
18
  side: Side;
18
19
  fiat: Fiat;
19
20
  createdAt: Date;
21
+ priceType: PriceType;
20
22
  quoteInCrypto: boolean;
21
23
  paymentMethod?: PaymentMethod;
22
24
  payoutMethod?: PayoutMethod;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2167",
3
+ "version": "1.0.2170",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,4 +0,0 @@
1
- export declare enum OrderExecutionType {
2
- RFQ = "RFQ",
3
- LimitPrice = "limitPrice"
4
- }
@@ -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 = {}));