@riocrypto/common-server 1.0.2405 → 1.0.2406

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.
@@ -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;
@@ -15,6 +15,9 @@ const buildOrder = (mongoose) => {
15
15
  type: String,
16
16
  required: true,
17
17
  },
18
+ twoWaySettlementDate: {
19
+ type: mongoose.Schema.Types.Date,
20
+ },
18
21
  status: {
19
22
  type: String,
20
23
  required: true,
@@ -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;
@@ -66,6 +66,9 @@ const buildRioSettings = (mongoose) => {
66
66
  TVFXDataProvider: {
67
67
  type: Object,
68
68
  },
69
+ defaultTwoWaySettlementOffsetFee: {
70
+ type: Object,
71
+ },
69
72
  }, {
70
73
  toJSON: {
71
74
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2405",
3
+ "version": "1.0.2406",
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.2136",
31
+ "@riocrypto/common": "^1.0.2137",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",