@riocrypto/common-server 1.0.2245 → 1.0.2247
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.
|
@@ -118,7 +118,7 @@ declare class ClusterClient {
|
|
|
118
118
|
CLABE: string;
|
|
119
119
|
}>;
|
|
120
120
|
getSTPMXNBalance(): Promise<number>;
|
|
121
|
-
createSTPMXNWithdrawal(amount: number, CLABE: string): Promise<void>;
|
|
121
|
+
createSTPMXNWithdrawal(amount: number, CLABE: string, concepto: string, beneficiaryName: string): Promise<void>;
|
|
122
122
|
getSTPMXNWithdrawal(id: string): Promise<STPMXNWithdrawal>;
|
|
123
123
|
}
|
|
124
124
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
@@ -541,9 +541,9 @@ class ClusterClient {
|
|
|
541
541
|
return response.data;
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
|
-
createSTPMXNWithdrawal(amount, CLABE) {
|
|
544
|
+
createSTPMXNWithdrawal(amount, CLABE, concepto, beneficiaryName) {
|
|
545
545
|
return __awaiter(this, void 0, void 0, function* () {
|
|
546
|
-
yield this.axios.post(`${this.baseUrl}/api/bank/accounts/STP/MXN/withdrawals`, { amount, CLABE }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
546
|
+
yield this.axios.post(`${this.baseUrl}/api/bank/accounts/STP/MXN/withdrawals`, { amount, CLABE, concepto, beneficiaryName }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
549
|
getSTPMXNWithdrawal(id) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Mongoose, Model, Document } from "mongoose";
|
|
2
2
|
interface STPMXNWithdrawalAttrs {
|
|
3
3
|
createdAt: Date;
|
|
4
|
-
type: "transaction" | "bankAccountVerification" | "liquidityOrder";
|
|
4
|
+
type: "transaction" | "bankAccountVerification" | "liquidityOrder" | "internalTransfer";
|
|
5
5
|
orderId?: string;
|
|
6
6
|
numberOfParts?: number;
|
|
7
7
|
partsCompleted?: number;
|
|
@@ -16,7 +16,7 @@ interface STPMXNWithdrawalAttrs {
|
|
|
16
16
|
}
|
|
17
17
|
interface STPMXNWithdrawalDoc extends Document {
|
|
18
18
|
createdAt: Date;
|
|
19
|
-
type: "transaction" | "bankAccountVerification" | "liquidityOrder";
|
|
19
|
+
type: "transaction" | "bankAccountVerification" | "liquidityOrder" | "internalTransfer";
|
|
20
20
|
orderId?: string;
|
|
21
21
|
bankAccountVerificationId?: string;
|
|
22
22
|
multipartLiquidityOrderId?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Mongoose, Model, Document } from "mongoose";
|
|
2
2
|
interface BitsoMXNWithdrawalAttrs {
|
|
3
3
|
createdAt: Date;
|
|
4
|
-
type: "transaction" | "bankAccountVerification" | "liquidityOrder";
|
|
4
|
+
type: "transaction" | "bankAccountVerification" | "liquidityOrder" | "internalTransfer";
|
|
5
5
|
orderId?: string;
|
|
6
6
|
numberOfParts?: number;
|
|
7
7
|
partsCompleted?: number;
|
|
@@ -15,7 +15,7 @@ interface BitsoMXNWithdrawalAttrs {
|
|
|
15
15
|
}
|
|
16
16
|
interface BitsoMXNWithdrawalDoc extends Document {
|
|
17
17
|
createdAt: Date;
|
|
18
|
-
type: "transaction" | "bankAccountVerification" | "liquidityOrder";
|
|
18
|
+
type: "transaction" | "bankAccountVerification" | "liquidityOrder" | "internalTransfer";
|
|
19
19
|
orderId?: string;
|
|
20
20
|
bankAccountVerificationId?: string;
|
|
21
21
|
multipartLiquidityOrderId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2247",
|
|
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.1975",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|