@riocrypto/common-server 1.0.1830 → 1.0.1833
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 +28 -2
- package/build/models/order.js +38 -3
- package/package.json +2 -2
package/build/models/order.d.ts
CHANGED
|
@@ -46,13 +46,26 @@ interface OrderAttrs {
|
|
|
46
46
|
chainedOrderId?: string;
|
|
47
47
|
netPrice: number;
|
|
48
48
|
requestedNetPrice?: number;
|
|
49
|
-
paymentAddressId?: string;
|
|
50
49
|
payoutAddressId?: string;
|
|
51
50
|
payoutBankAccountId?: string;
|
|
52
51
|
binancePaymentId?: string;
|
|
53
52
|
binancePayoutId?: string;
|
|
54
53
|
attributes?: OrderAttribute[];
|
|
55
54
|
settleBy?: Date;
|
|
55
|
+
originOfFunds?: {
|
|
56
|
+
blockchainAddresses?: string[];
|
|
57
|
+
accountHolderName?: string;
|
|
58
|
+
accountNumber?: string;
|
|
59
|
+
CCI?: string;
|
|
60
|
+
CLABE?: string;
|
|
61
|
+
};
|
|
62
|
+
destinationOfFunds?: {
|
|
63
|
+
blockchainAddresses?: string[];
|
|
64
|
+
accountHolderName?: string;
|
|
65
|
+
accountNumber?: string;
|
|
66
|
+
CCI?: string;
|
|
67
|
+
CLABE?: string;
|
|
68
|
+
};
|
|
56
69
|
}
|
|
57
70
|
interface OrderDoc extends Document {
|
|
58
71
|
quoteId: string;
|
|
@@ -100,13 +113,26 @@ interface OrderDoc extends Document {
|
|
|
100
113
|
chainedOrderId?: string;
|
|
101
114
|
netPrice: number;
|
|
102
115
|
requestedNetPrice?: number;
|
|
103
|
-
paymentAddressId?: string;
|
|
104
116
|
payoutAddressId?: string;
|
|
105
117
|
payoutBankAccountId?: string;
|
|
106
118
|
binancePaymentId?: string;
|
|
107
119
|
binancePayoutId?: string;
|
|
108
120
|
attributes?: OrderAttribute[];
|
|
109
121
|
settleBy?: Date;
|
|
122
|
+
originOfFunds?: {
|
|
123
|
+
blockchainAddresses?: string[];
|
|
124
|
+
accountHolderName?: string;
|
|
125
|
+
accountNumber?: string;
|
|
126
|
+
CCI?: string;
|
|
127
|
+
CLABE?: string;
|
|
128
|
+
};
|
|
129
|
+
destinationOfFunds?: {
|
|
130
|
+
blockchainAddress?: string[];
|
|
131
|
+
accountHolderName?: string;
|
|
132
|
+
accountNumber?: string;
|
|
133
|
+
CCI?: string;
|
|
134
|
+
CLABE?: string;
|
|
135
|
+
};
|
|
110
136
|
}
|
|
111
137
|
interface OrderModel extends Model<OrderDoc> {
|
|
112
138
|
build(attrs: OrderAttrs): OrderDoc;
|
package/build/models/order.js
CHANGED
|
@@ -211,9 +211,6 @@ const buildOrder = (mongoose) => {
|
|
|
211
211
|
requestedNetPrice: {
|
|
212
212
|
type: Number,
|
|
213
213
|
},
|
|
214
|
-
paymentAddressId: {
|
|
215
|
-
type: String,
|
|
216
|
-
},
|
|
217
214
|
payoutAddressId: {
|
|
218
215
|
type: String,
|
|
219
216
|
},
|
|
@@ -234,6 +231,44 @@ const buildOrder = (mongoose) => {
|
|
|
234
231
|
type: String,
|
|
235
232
|
},
|
|
236
233
|
],
|
|
234
|
+
originOfFunds: {
|
|
235
|
+
blockchainAddresses: [
|
|
236
|
+
{
|
|
237
|
+
type: String,
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
accountHolderName: {
|
|
241
|
+
type: String,
|
|
242
|
+
},
|
|
243
|
+
accountNumber: {
|
|
244
|
+
type: String,
|
|
245
|
+
},
|
|
246
|
+
CCI: {
|
|
247
|
+
type: String,
|
|
248
|
+
},
|
|
249
|
+
CLABE: {
|
|
250
|
+
type: String,
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
destinationOfFunds: {
|
|
254
|
+
blockchainAddresses: [
|
|
255
|
+
{
|
|
256
|
+
type: String,
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
accountHolderName: {
|
|
260
|
+
type: String,
|
|
261
|
+
},
|
|
262
|
+
accountNumber: {
|
|
263
|
+
type: String,
|
|
264
|
+
},
|
|
265
|
+
CCI: {
|
|
266
|
+
type: String,
|
|
267
|
+
},
|
|
268
|
+
CLABE: {
|
|
269
|
+
type: String,
|
|
270
|
+
},
|
|
271
|
+
},
|
|
237
272
|
}, {
|
|
238
273
|
toJSON: {
|
|
239
274
|
transform(doc, ret) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1833",
|
|
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.
|
|
29
|
+
"@riocrypto/common": "^1.0.1643",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^1.6.0",
|
|
32
32
|
"crypto-js": "^4.2.0",
|