@riocrypto/common-server 1.0.1591 → 1.0.1593
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Country, Fiat } from "@riocrypto/common";
|
|
1
|
+
import { BankAccountVerificationStatus, Country, Fiat } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface BankAccountAttrs {
|
|
4
4
|
createdAt: Date;
|
|
@@ -13,6 +13,10 @@ interface BankAccountAttrs {
|
|
|
13
13
|
CCI?: string;
|
|
14
14
|
CLABE?: string;
|
|
15
15
|
notes?: string;
|
|
16
|
+
verification?: {
|
|
17
|
+
status?: BankAccountVerificationStatus;
|
|
18
|
+
amount?: number;
|
|
19
|
+
};
|
|
16
20
|
}
|
|
17
21
|
interface BankAccountDoc extends Document {
|
|
18
22
|
createdAt: Date;
|
|
@@ -27,6 +31,10 @@ interface BankAccountDoc extends Document {
|
|
|
27
31
|
CCI?: string;
|
|
28
32
|
CLABE?: string;
|
|
29
33
|
notes?: string;
|
|
34
|
+
verification?: {
|
|
35
|
+
status?: BankAccountVerificationStatus;
|
|
36
|
+
amount?: number;
|
|
37
|
+
};
|
|
30
38
|
}
|
|
31
39
|
interface BankAccountModel extends Model<BankAccountDoc> {
|
|
32
40
|
build(attrs: BankAccountAttrs): BankAccountDoc;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { Mongoose, Model, Document } from "mongoose";
|
|
2
2
|
interface BitsoMXNWithdrawalAttrs {
|
|
3
3
|
createdAt: Date;
|
|
4
|
-
|
|
4
|
+
type: "transaction" | "bankAccountVerification";
|
|
5
|
+
orderId?: string;
|
|
6
|
+
bankAccountId?: string;
|
|
5
7
|
bitsoWithdrawalId: string;
|
|
6
8
|
status: "processing" | "complete" | "failed";
|
|
7
9
|
}
|
|
8
10
|
interface BitsoMXNWithdrawalDoc extends Document {
|
|
9
11
|
createdAt: Date;
|
|
10
|
-
|
|
12
|
+
type: "transaction" | "bankAccountVerification";
|
|
13
|
+
orderId?: string;
|
|
14
|
+
bankAccountId?: string;
|
|
11
15
|
bitsoWithdrawalId: string;
|
|
12
16
|
status: "processing" | "complete" | "failed";
|
|
13
17
|
}
|
|
@@ -15,4 +19,4 @@ interface BitsoMXNWithdrawalModel extends Model<BitsoMXNWithdrawalDoc> {
|
|
|
15
19
|
build(attrs: BitsoMXNWithdrawalAttrs): BitsoMXNWithdrawalDoc;
|
|
16
20
|
}
|
|
17
21
|
declare const buildBitsoMXNWithdrawal: (mongoose: Mongoose) => BitsoMXNWithdrawalModel;
|
|
18
|
-
export { buildBitsoMXNWithdrawal, BitsoMXNWithdrawalDoc, BitsoMXNWithdrawalAttrs };
|
|
22
|
+
export { buildBitsoMXNWithdrawal, BitsoMXNWithdrawalDoc, BitsoMXNWithdrawalAttrs, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1593",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
29
|
"@google-cloud/vision": "^4.0.2",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.4.2",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.1423",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.6.0",
|
|
34
34
|
"ccxt": "^3.0.30",
|