@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.
@@ -197,9 +197,9 @@ declare class ClusterClient {
197
197
  }>;
198
198
  generateAlfinVirtualCci(userId: string): Promise<{
199
199
  CCIV: string;
200
- codigoPagoCciv?: string;
200
+ codigoPagoCCIV?: string;
201
201
  }>;
202
- createAlfinPENTreasuryWithdrawal(amount: number, cci: string, internalTransferId?: string): Promise<{
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, cci, internalTransferId) {
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, cci, internalTransferId }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
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>;
@@ -10,6 +10,12 @@ const buildAlfinSettings = (mongoose) => {
10
10
  type: Number,
11
11
  required: true,
12
12
  },
13
+ treasuryCCIV: {
14
+ type: String,
15
+ },
16
+ treasuryCodigoPagoCCIV: {
17
+ type: String,
18
+ },
13
19
  }, {
14
20
  toJSON: {
15
21
  transform(doc, ret) {
@@ -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
- cci: string;
6
- cciv: string;
7
- codigoPagoCciv?: string;
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
- cci: string;
14
- cciv: string;
15
- codigoPagoCciv?: string;
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
- cci: {
12
+ CCI: {
13
13
  type: String,
14
14
  required: true,
15
15
  },
16
- cciv: {
16
+ CCIV: {
17
17
  type: String,
18
18
  required: true,
19
19
  unique: true,
20
20
  },
21
- codigoPagoCciv: {
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.2831",
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.2629",
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",