@riocrypto/common-server 1.0.1853 → 1.0.1855

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.
@@ -48,8 +48,14 @@ interface OrderAttrs {
48
48
  requestedNetPrice?: number;
49
49
  payoutAddressId?: string;
50
50
  payoutBankAccountId?: string;
51
- binancePaymentId?: string;
52
- binancePayoutId?: string;
51
+ binancePayment?: {
52
+ binanceTransactionId: string;
53
+ amount: number;
54
+ };
55
+ binancePayout?: {
56
+ binanceTransactionId: string;
57
+ amount: number;
58
+ };
53
59
  attributes?: OrderAttribute[];
54
60
  settleBy?: Date;
55
61
  originOfFunds?: {
@@ -66,6 +72,7 @@ interface OrderAttrs {
66
72
  CCI?: string;
67
73
  CLABE?: string;
68
74
  };
75
+ payoutTransferLimit?: number;
69
76
  }
70
77
  interface OrderDoc extends Document {
71
78
  quoteId: string;
@@ -115,8 +122,14 @@ interface OrderDoc extends Document {
115
122
  requestedNetPrice?: number;
116
123
  payoutAddressId?: string;
117
124
  payoutBankAccountId?: string;
118
- binancePaymentId?: string;
119
- binancePayoutId?: string;
125
+ binancePayment?: {
126
+ binanceTransactionId: string;
127
+ amount: number;
128
+ };
129
+ binancePayout?: {
130
+ binanceTransactionId: string;
131
+ amount: number;
132
+ };
120
133
  attributes?: OrderAttribute[];
121
134
  settleBy?: Date;
122
135
  originOfFunds?: {
@@ -133,6 +146,7 @@ interface OrderDoc extends Document {
133
146
  CCI?: string;
134
147
  CLABE?: string;
135
148
  };
149
+ payoutTransferLimit?: number;
136
150
  }
137
151
  interface OrderModel extends Model<OrderDoc> {
138
152
  build(attrs: OrderAttrs): OrderDoc;
@@ -217,11 +217,21 @@ const buildOrder = (mongoose) => {
217
217
  payoutBankAccountId: {
218
218
  type: String,
219
219
  },
220
- binancePaymentId: {
221
- type: String,
220
+ binancePayment: {
221
+ binanceTransactionId: {
222
+ type: String,
223
+ },
224
+ amount: {
225
+ type: Number,
226
+ },
222
227
  },
223
- binancePayoutId: {
224
- type: String,
228
+ binancePayout: {
229
+ binanceTransactionId: {
230
+ type: String,
231
+ },
232
+ amount: {
233
+ type: Number,
234
+ },
225
235
  },
226
236
  settleBy: {
227
237
  type: mongoose.Schema.Types.Date,
@@ -265,6 +275,9 @@ const buildOrder = (mongoose) => {
265
275
  type: String,
266
276
  },
267
277
  },
278
+ payoutTransferLimit: {
279
+ type: Number,
280
+ },
268
281
  }, {
269
282
  toJSON: {
270
283
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1853",
3
+ "version": "1.0.1855",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@google-cloud/secret-manager": "^5.3.0",
27
27
  "@google-cloud/storage": "^6.9.5",
28
28
  "@hyperdx/node-opentelemetry": "^0.4.2",
29
- "@riocrypto/common": "^1.0.1660",
29
+ "@riocrypto/common": "^1.0.1662",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",