@riocrypto/common-server 1.0.1084 → 1.0.1086

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,7 +7,7 @@ declare class BitsoClient {
7
7
  private baseUrl;
8
8
  constructor(apiKey: string, apiSecret: string, env: "production" | "sandbox");
9
9
  createClabe(): Promise<string>;
10
- createReceivingAccount(user: User, bankAccount: BankAccount, bitsoBankCode: string): Promise<string>;
10
+ createReceivingAccount(user: User, bankAccount: BankAccount, bitsoBankAccountCode: string): Promise<string>;
11
11
  signRequest(requestConfig: AxiosRequestConfig): AxiosRequestConfig;
12
12
  }
13
13
  export declare const buildBistoClient: () => Promise<BitsoClient>;
@@ -41,7 +41,7 @@ class BitsoClient {
41
41
  return data.payload.clabe;
42
42
  });
43
43
  }
44
- createReceivingAccount(user, bankAccount, bitsoBankCode) {
44
+ createReceivingAccount(user, bankAccount, bitsoBankAccountCode) {
45
45
  return __awaiter(this, void 0, void 0, function* () {
46
46
  const requestConfig = {
47
47
  method: "POST",
@@ -62,7 +62,7 @@ class BitsoClient {
62
62
  },
63
63
  details: {
64
64
  beneficiary: bankAccount.accountHolderName,
65
- institution_code: bitsoBankCode,
65
+ institution_code: bitsoBankAccountCode,
66
66
  clabe: bankAccount.accountNumber,
67
67
  },
68
68
  },
@@ -11,7 +11,6 @@ interface BankAccountAttrs {
11
11
  approved: boolean;
12
12
  swiftCode?: string;
13
13
  notes?: string;
14
- bitsoBankCode?: string;
15
14
  }
16
15
  interface BankAccountDoc extends Document {
17
16
  createdAt: Date;
@@ -24,7 +23,6 @@ interface BankAccountDoc extends Document {
24
23
  approved: boolean;
25
24
  swiftCode?: string;
26
25
  notes?: string;
27
- bitsoBankCode?: string;
28
26
  }
29
27
  interface BankAccountModel extends Model<BankAccountDoc> {
30
28
  build(attrs: BankAccountAttrs): BankAccountDoc;
@@ -45,9 +45,6 @@ const buildBankAccount = (mongoose) => {
45
45
  notes: {
46
46
  type: String,
47
47
  },
48
- bitsoBankCode: {
49
- type: String,
50
- },
51
48
  }, {
52
49
  toJSON: {
53
50
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1084",
3
+ "version": "1.0.1086",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "@aws-sdk/client-s3": "^3.297.0",
26
26
  "@everapi/currencyapi-js": "^1.0.6",
27
27
  "@google-cloud/storage": "^6.9.5",
28
- "@riocrypto/common": "^1.0.922",
28
+ "@riocrypto/common": "^1.0.924",
29
29
  "@types/express": "^4.17.13",
30
30
  "axios": "^0.27.2",
31
31
  "ccxt": "^3.0.30",