@riocrypto/common-server 1.0.2420 → 1.0.2422

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.
@@ -29,6 +29,7 @@ interface OrderAttrs {
29
29
  withdrawalTxId?: string;
30
30
  withdrawalTxIds?: string[];
31
31
  brokerId?: string;
32
+ limitNetPrice?: number;
32
33
  conversionRateUSD: number;
33
34
  conversionRateUSDWithMarkups: number;
34
35
  actualConversionRateUSD?: number;
@@ -139,7 +140,7 @@ interface OrderDoc extends Document {
139
140
  createdAt: Date;
140
141
  twoWaySettlementDate: Date;
141
142
  country: Country;
142
- state?: string;
143
+ limitNetPrice?: number;
143
144
  cryptoAddress?: string;
144
145
  amountFiat: number;
145
146
  amountCrypto: number;
@@ -72,8 +72,8 @@ const buildOrder = (mongoose) => {
72
72
  type: String,
73
73
  required: true,
74
74
  },
75
- state: {
76
- type: String,
75
+ limitNetPrice: {
76
+ type: Number,
77
77
  },
78
78
  amountFiat: {
79
79
  type: Number,
@@ -1,4 +1,4 @@
1
- import { Country, Fees, Fiat, LiquidityProvider, PaymentMethod, PayoutMethod, Processor, Side, USState, Crypto, DeferredPaymentType, TwoWaySettlementType, PriceType } from "@riocrypto/common";
1
+ import { Country, Fees, Fiat, LiquidityProvider, PaymentMethod, PayoutMethod, Processor, Side, Crypto, DeferredPaymentType, TwoWaySettlementType, PriceType } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface QuoteAttrs {
4
4
  userId: string;
@@ -6,11 +6,11 @@ interface QuoteAttrs {
6
6
  crypto: Crypto;
7
7
  side: Side;
8
8
  fiat: Fiat;
9
+ limitNetPrice?: number;
9
10
  paymentMethod?: PaymentMethod;
10
11
  payoutMethod?: PayoutMethod;
11
12
  expiresAt?: Date;
12
13
  country: Country;
13
- state?: USState | string;
14
14
  amountFiat: number;
15
15
  amountCrypto: number;
16
16
  liquidityProvider: LiquidityProvider;
@@ -51,7 +51,7 @@ interface QuoteDoc extends Document {
51
51
  payoutMethod?: PayoutMethod;
52
52
  expiresAt?: Date;
53
53
  country: Country;
54
- state?: USState | string;
54
+ limitNetPrice?: number;
55
55
  amountFiat: number;
56
56
  amountCrypto: number;
57
57
  liquidityProvider: LiquidityProvider;
@@ -15,6 +15,9 @@ const buildQuote = (mongoose) => {
15
15
  type: String,
16
16
  required: true,
17
17
  },
18
+ limitNetPrice: {
19
+ type: Number,
20
+ },
18
21
  crypto: {
19
22
  type: String,
20
23
  required: true,
@@ -40,9 +43,6 @@ const buildQuote = (mongoose) => {
40
43
  type: String,
41
44
  required: true,
42
45
  },
43
- state: {
44
- type: String,
45
- },
46
46
  amountFiat: {
47
47
  type: Number,
48
48
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2420",
3
+ "version": "1.0.2422",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2171",
31
+ "@riocrypto/common": "^1.0.2175",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",