@riocrypto/common-server 1.0.2405 → 1.0.2407
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/models/order.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ interface OrderAttrs {
|
|
|
9
9
|
paymentMethod?: PaymentMethod;
|
|
10
10
|
payoutMethod?: PayoutMethod;
|
|
11
11
|
createdAt: Date;
|
|
12
|
+
twoWaySettlementDate: Date;
|
|
12
13
|
status: OrderStatus;
|
|
13
14
|
cryptoAddress?: string;
|
|
14
15
|
country: Country;
|
|
@@ -133,6 +134,7 @@ interface OrderDoc extends Document {
|
|
|
133
134
|
paymentMethod?: PaymentMethod;
|
|
134
135
|
payoutMethod?: PayoutMethod;
|
|
135
136
|
createdAt: Date;
|
|
137
|
+
twoWaySettlementDate: Date;
|
|
136
138
|
country: Country;
|
|
137
139
|
state?: string;
|
|
138
140
|
cryptoAddress?: string;
|
package/build/models/order.js
CHANGED
package/build/models/quote.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ interface QuoteAttrs {
|
|
|
37
37
|
deferredPaymentType: DeferredPaymentType;
|
|
38
38
|
twoWaySettlementType: TwoWaySettlementType;
|
|
39
39
|
twoWaySettlementDateOffset?: number;
|
|
40
|
+
twoWaySettlementDate: Date;
|
|
40
41
|
}
|
|
41
42
|
interface QuoteDoc extends Document {
|
|
42
43
|
userId: string;
|
|
@@ -75,6 +76,7 @@ interface QuoteDoc extends Document {
|
|
|
75
76
|
deferredPaymentType: DeferredPaymentType;
|
|
76
77
|
twoWaySettlementType: TwoWaySettlementType;
|
|
77
78
|
twoWaySettlementDateOffset?: number;
|
|
79
|
+
twoWaySettlementDate: Date;
|
|
78
80
|
}
|
|
79
81
|
interface QuoteModel extends Model<QuoteDoc> {
|
|
80
82
|
build(attrs: QuoteAttrs): QuoteDoc;
|
package/build/models/quote.js
CHANGED
|
@@ -58,6 +58,13 @@ interface RioSettingsAttrs {
|
|
|
58
58
|
TVFXDataProvider: {
|
|
59
59
|
[key in Fiat]: TVFXDataProvider;
|
|
60
60
|
};
|
|
61
|
+
defaultTwoWaySettlementOffsetFee?: {
|
|
62
|
+
[key in Country]?: {
|
|
63
|
+
[key in Side]?: {
|
|
64
|
+
[key: number]: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
61
68
|
}
|
|
62
69
|
interface RioSettingsDoc extends mongoose.Document {
|
|
63
70
|
platformFee: number;
|
|
@@ -116,6 +123,13 @@ interface RioSettingsDoc extends mongoose.Document {
|
|
|
116
123
|
TVFXDataProvider: {
|
|
117
124
|
[key in Fiat]: TVFXDataProvider;
|
|
118
125
|
};
|
|
126
|
+
defaultTwoWaySettlementOffsetFee?: {
|
|
127
|
+
[key in Country]?: {
|
|
128
|
+
[key in Side]?: {
|
|
129
|
+
[key: number]: number;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
119
133
|
}
|
|
120
134
|
interface RioSettingsModel extends mongoose.Model<RioSettingsDoc> {
|
|
121
135
|
build(attrs: RioSettingsAttrs): RioSettingsDoc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2407",
|
|
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.
|
|
31
|
+
"@riocrypto/common": "^1.0.2138",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|