@riocrypto/common-server 1.0.2091 → 1.0.2092
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.
|
@@ -7,11 +7,8 @@ interface BankPayoutAttrs {
|
|
|
7
7
|
status: "initialized" | "processing" | "complete" | "failed" | "cancelled";
|
|
8
8
|
transferDetails?: {
|
|
9
9
|
speiTrackingNumber?: string;
|
|
10
|
-
SPEITrackingNumbers?: string[];
|
|
11
10
|
spidTrackingNumber?: string;
|
|
12
|
-
SPIDTrackingNumbers?: string[];
|
|
13
11
|
cepLink?: string;
|
|
14
|
-
CEPLinks?: string[];
|
|
15
12
|
reference?: string;
|
|
16
13
|
};
|
|
17
14
|
}
|
|
@@ -22,11 +19,8 @@ interface BankPayoutDoc extends Document {
|
|
|
22
19
|
status: "initialized" | "processing" | "complete" | "failed" | "cancelled";
|
|
23
20
|
transferDetails?: {
|
|
24
21
|
speiTrackingNumber?: string;
|
|
25
|
-
SPEITrackingNumbers?: string[];
|
|
26
22
|
spidTrackingNumber?: string;
|
|
27
|
-
SPIDTrackingNumbers?: string[];
|
|
28
23
|
cepLink?: string;
|
|
29
|
-
CEPLinks?: string[];
|
|
30
24
|
reference?: string;
|
|
31
25
|
};
|
|
32
26
|
}
|
|
@@ -27,21 +27,12 @@ const buildBankPayout = (mongoose) => {
|
|
|
27
27
|
speiTrackingNumber: {
|
|
28
28
|
type: String,
|
|
29
29
|
},
|
|
30
|
-
SPEITrackingNumbers: {
|
|
31
|
-
type: [String],
|
|
32
|
-
},
|
|
33
30
|
spidTrackingNumber: {
|
|
34
31
|
type: String,
|
|
35
32
|
},
|
|
36
|
-
SPIDTrackingNumbers: {
|
|
37
|
-
type: [String],
|
|
38
|
-
},
|
|
39
33
|
cepLink: {
|
|
40
34
|
type: String,
|
|
41
35
|
},
|
|
42
|
-
CEPLinks: {
|
|
43
|
-
type: [String],
|
|
44
|
-
},
|
|
45
36
|
reference: {
|
|
46
37
|
type: String,
|
|
47
38
|
},
|
package/build/models/order.d.ts
CHANGED
|
@@ -89,19 +89,24 @@ interface OrderAttrs {
|
|
|
89
89
|
RFC?: string;
|
|
90
90
|
CCI?: string;
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
paymentsReceived?: {
|
|
93
|
+
amount: number;
|
|
94
|
+
blockchainTxId?: string;
|
|
95
|
+
SPEITrackingNumber?: string;
|
|
96
|
+
SPIDTrackingNumber?: string;
|
|
97
|
+
CEPLink?: string;
|
|
98
|
+
bankPaymentId?: string;
|
|
97
99
|
receivedAt?: Date;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
}[];
|
|
101
|
+
payoutsSent?: {
|
|
102
|
+
amount: number;
|
|
103
|
+
blockchainTxId?: string;
|
|
104
|
+
SPEITrackingNumber?: string;
|
|
105
|
+
SPIDTrackingNumber?: string;
|
|
106
|
+
bankPayoutId?: string;
|
|
107
|
+
CEPLink?: string;
|
|
108
|
+
sentAt?: Date;
|
|
109
|
+
}[];
|
|
105
110
|
}
|
|
106
111
|
interface OrderDoc extends Document {
|
|
107
112
|
quoteId: string;
|
|
@@ -188,19 +193,21 @@ interface OrderDoc extends Document {
|
|
|
188
193
|
RFC?: string;
|
|
189
194
|
CCI?: string;
|
|
190
195
|
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
+
paymentsReceived?: {
|
|
197
|
+
blockchainTxId?: string;
|
|
198
|
+
SPEITrackingNumber?: string;
|
|
199
|
+
SPIDTrackingNumber?: string;
|
|
200
|
+
CEPLink?: string;
|
|
201
|
+
bankPaymentId?: string;
|
|
196
202
|
receivedAt?: Date;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
}[];
|
|
204
|
+
payoutsSent?: {
|
|
205
|
+
blockchainTxId?: string;
|
|
206
|
+
SPEITrackingNumber?: string;
|
|
207
|
+
SPIDTrackingNumber?: string;
|
|
208
|
+
CEPLink?: string;
|
|
209
|
+
bankPayoutId?: string;
|
|
210
|
+
}[];
|
|
204
211
|
payoutTransferLimit?: number;
|
|
205
212
|
paymentReceivedAt?: Date;
|
|
206
213
|
version: number;
|
package/build/models/order.js
CHANGED
|
@@ -284,12 +284,16 @@ const buildOrder = (mongoose) => {
|
|
|
284
284
|
paymentInstructions: {
|
|
285
285
|
type: Object,
|
|
286
286
|
},
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
287
|
+
paymentsReceived: [
|
|
288
|
+
{
|
|
289
|
+
type: Object,
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
payoutsSent: [
|
|
293
|
+
{
|
|
294
|
+
type: Object,
|
|
295
|
+
},
|
|
296
|
+
],
|
|
293
297
|
}, {
|
|
294
298
|
toJSON: {
|
|
295
299
|
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.2092",
|
|
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.1838",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|