@riocrypto/common 1.0.2163 → 1.0.2165

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.
@@ -0,0 +1,4 @@
1
+ export declare enum OrderExecutionType {
2
+ RFQ = "RFQ",
3
+ LimitPrice = "limitPrice"
4
+ }
@@ -0,0 +1,8 @@
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 = {}));
@@ -2,6 +2,7 @@ export declare enum OrderStatus {
2
2
  Created = "created",
3
3
  Cancelled = "cancelled",
4
4
  Processing = "processing",
5
+ AwaitingLimitPriceCondition = "awaitingLimitPriceCondition",
5
6
  SourcingLiquidity = "sourcingLiquidity",
6
7
  CryptoAddressAdded = "cryptoAddressAdded",
7
8
  LiquiditySourced = "liquiditySourced",
@@ -11,6 +11,7 @@ var OrderStatus;
11
11
  // When the order is being processed by payment
12
12
  // processor
13
13
  OrderStatus["Processing"] = "processing";
14
+ OrderStatus["AwaitingLimitPriceCondition"] = "awaitingLimitPriceCondition";
14
15
  OrderStatus["SourcingLiquidity"] = "sourcingLiquidity";
15
16
  OrderStatus["CryptoAddressAdded"] = "cryptoAddressAdded";
16
17
  OrderStatus["LiquiditySourced"] = "liquiditySourced";
@@ -11,36 +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
15
  export interface Order {
15
16
  id: string;
16
- quoteId: string;
17
+ quoteId?: string;
17
18
  createdAt: Date;
18
19
  userId: string;
19
20
  crypto: Crypto;
20
21
  side: Side;
21
22
  fiat: Fiat;
23
+ executionType: OrderExecutionType;
24
+ amountFiat: number;
25
+ amountCrypto: number;
22
26
  paymentMethod?: PaymentMethod;
23
27
  payoutMethod?: PayoutMethod;
24
28
  status: OrderStatus;
25
29
  cryptoAddress?: string;
26
30
  country: Country;
27
- state?: string;
28
- amountFiat?: number;
31
+ limitPrice?: number;
29
32
  amountFiatReceived?: number;
30
- amountCrypto?: number;
31
33
  amountCryptoReceived?: number;
32
- liquidityProvider: LiquidityProvider;
33
- processor: Processor;
34
- fees: Fees;
35
- actualFees: Fees;
34
+ liquidityProvider?: LiquidityProvider;
35
+ processor?: Processor;
36
+ fees?: Fees;
37
+ actualFees?: Fees;
36
38
  price: number;
37
39
  depositAddress?: string;
38
40
  depositTxId?: string;
39
41
  withdrawalTxId?: string;
40
42
  withdrawalTxIds?: string[];
41
43
  brokerId?: string;
42
- conversionRateUSD: number;
43
- conversionRateUSDWithMarkups: number;
44
+ conversionRateUSD?: number;
45
+ conversionRateUSDWithMarkups?: number;
44
46
  actualConversionRateUSD?: number;
45
47
  notes?: string;
46
48
  discount?: number;
@@ -54,7 +56,7 @@ export interface Order {
54
56
  isAfterHours?: boolean;
55
57
  isSurgePricing?: boolean;
56
58
  chainedOrderId?: string;
57
- netPrice: number;
59
+ netPrice?: number;
58
60
  requestedNetPrice?: number;
59
61
  paymentAddressId?: string;
60
62
  payoutAddressId?: string;
@@ -62,10 +64,11 @@ export interface Order {
62
64
  attributes?: OrderAttribute[];
63
65
  binancePaymentId?: string;
64
66
  binancePayoutId?: string;
65
- deferredPaymentType: DeferredPaymentType;
66
- twoWaySettlementType: TwoWaySettlementType;
67
- twoWaySettlementDate: Date;
67
+ deferredPaymentType?: DeferredPaymentType;
68
+ twoWaySettlementType?: TwoWaySettlementType;
69
+ twoWaySettlementDate?: Date;
68
70
  twoWaySettlementDateOffset?: number;
71
+ effectiveTwoWaySettlementDateOffset?: number;
69
72
  bulkCryptoPaymentId?: string;
70
73
  bulkBankPaymentId?: string;
71
74
  invoice?: {
@@ -130,6 +133,6 @@ export interface Order {
130
133
  };
131
134
  payoutTransferLimit?: number;
132
135
  paymentReceivedAt?: Date;
133
- rioPayoutFireblocksVaultId: string;
136
+ rioPayoutFireblocksVaultId?: string;
134
137
  version: number;
135
138
  }
@@ -50,4 +50,5 @@ export interface Quote {
50
50
  deferredPaymentType: DeferredPaymentType;
51
51
  twoWaySettlementType: TwoWaySettlementType;
52
52
  twoWaySettlementDateOffset?: number;
53
+ effectiveTwoWaySettlementDateOffset?: number;
53
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2163",
3
+ "version": "1.0.2165",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",