@riocrypto/common-server 1.0.2831 → 1.0.2832
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/clients/cluster-client.d.ts +2 -2
- package/build/clients/cluster-client.js +2 -2
- package/build/models/alfin-settings.d.ts +4 -0
- package/build/models/alfin-settings.js +6 -0
- package/build/models/alfin-virtual-cci.d.ts +6 -6
- package/build/models/alfin-virtual-cci.js +3 -3
- package/package.json +2 -2
|
@@ -197,9 +197,9 @@ declare class ClusterClient {
|
|
|
197
197
|
}>;
|
|
198
198
|
generateAlfinVirtualCci(userId: string): Promise<{
|
|
199
199
|
CCIV: string;
|
|
200
|
-
|
|
200
|
+
codigoPagoCCIV?: string;
|
|
201
201
|
}>;
|
|
202
|
-
createAlfinPENTreasuryWithdrawal(amount: number,
|
|
202
|
+
createAlfinPENTreasuryWithdrawal(amount: number, CCI: string, internalTransferId?: string): Promise<{
|
|
203
203
|
movimientoUId: number;
|
|
204
204
|
transferenciaId: string;
|
|
205
205
|
mpe001IDL: number;
|
|
@@ -689,9 +689,9 @@ class ClusterClient {
|
|
|
689
689
|
return response.data;
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
|
-
createAlfinPENTreasuryWithdrawal(amount,
|
|
692
|
+
createAlfinPENTreasuryWithdrawal(amount, CCI, internalTransferId) {
|
|
693
693
|
return __awaiter(this, void 0, void 0, function* () {
|
|
694
|
-
const response = yield this.axios.post(`${this.baseUrl}/api/bank/accounts/alfin/PEN/treasury-withdrawal`, { amount,
|
|
694
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/bank/accounts/alfin/PEN/treasury-withdrawal`, { amount, CCI, internalTransferId }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
695
695
|
return response.data;
|
|
696
696
|
});
|
|
697
697
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import mongoose, { HydratedDocument } from "mongoose";
|
|
2
2
|
interface AlfinSettingsAttrs {
|
|
3
3
|
payinCodeOffset: number;
|
|
4
|
+
treasuryCCIV?: string;
|
|
5
|
+
treasuryCodigoPagoCCIV?: string;
|
|
4
6
|
}
|
|
5
7
|
interface AlfinSettingsDoc extends mongoose.Document {
|
|
6
8
|
payinCodeOffset: number;
|
|
9
|
+
treasuryCCIV?: string;
|
|
10
|
+
treasuryCodigoPagoCCIV?: string;
|
|
7
11
|
}
|
|
8
12
|
interface AlfinSettingsModel extends mongoose.Model<AlfinSettingsDoc> {
|
|
9
13
|
build(attrs: AlfinSettingsAttrs): HydratedDocument<AlfinSettingsDoc>;
|
|
@@ -2,17 +2,17 @@ import { Mongoose, Model, Document, HydratedDocument } from "mongoose";
|
|
|
2
2
|
type AlfinVirtualCciType = "UNICO" | "RECURRENTE";
|
|
3
3
|
type AlfinVirtualCciStatus = "ACTIVO" | "BAJA" | "VENCIDO";
|
|
4
4
|
interface AlfinVirtualCciAttrs {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
CCI: string;
|
|
6
|
+
CCIV: string;
|
|
7
|
+
codigoPagoCCIV?: string;
|
|
8
8
|
userId: string;
|
|
9
9
|
type: AlfinVirtualCciType;
|
|
10
10
|
status?: AlfinVirtualCciStatus;
|
|
11
11
|
}
|
|
12
12
|
interface AlfinVirtualCciDoc extends Document {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
CCI: string;
|
|
14
|
+
CCIV: string;
|
|
15
|
+
codigoPagoCCIV?: string;
|
|
16
16
|
userId: string;
|
|
17
17
|
type: AlfinVirtualCciType;
|
|
18
18
|
status: AlfinVirtualCciStatus;
|
|
@@ -9,16 +9,16 @@ const buildAlfinVirtualCci = (mongoose) => {
|
|
|
9
9
|
return mongoose.model("AlfinVirtualCci");
|
|
10
10
|
}
|
|
11
11
|
const AlfinVirtualCciSchema = new mongoose.Schema({
|
|
12
|
-
|
|
12
|
+
CCI: {
|
|
13
13
|
type: String,
|
|
14
14
|
required: true,
|
|
15
15
|
},
|
|
16
|
-
|
|
16
|
+
CCIV: {
|
|
17
17
|
type: String,
|
|
18
18
|
required: true,
|
|
19
19
|
unique: true,
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
codigoPagoCCIV: {
|
|
22
22
|
type: String,
|
|
23
23
|
index: true,
|
|
24
24
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2832",
|
|
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.6.0",
|
|
29
29
|
"@google-cloud/storage": "^7.19.0",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.10.3",
|
|
31
|
-
"@riocrypto/common": "1.0.
|
|
31
|
+
"@riocrypto/common": "1.0.2631",
|
|
32
32
|
"@slack/web-api": "^7.15.0",
|
|
33
33
|
"@types/express": "^4.17.25",
|
|
34
34
|
"axios": "1.16.0",
|