@riocrypto/common-server 1.0.1798 → 1.0.1800

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, bitsoBankAccountCode: string): Promise<string>;
10
+ createReceivingAccount(user: User, bankAccount: BankAccount): Promise<string>;
11
11
  deleteReceivingAccount(bitsoReceivingAccountId: string): Promise<string>;
12
12
  createWithdraw(bitsoReceivingAccountId: string, amount: number, concept: string, rfc?: string): Promise<Object>;
13
13
  getWithdrawal(withdrawalId: string): Promise<any>;
@@ -44,7 +44,7 @@ class BitsoClient {
44
44
  return data.payload.clabe;
45
45
  });
46
46
  }
47
- createReceivingAccount(user, bankAccount, bitsoBankAccountCode) {
47
+ createReceivingAccount(user, bankAccount) {
48
48
  return __awaiter(this, void 0, void 0, function* () {
49
49
  if ([common_1.RioEnv.Sandbox, common_1.RioEnv.Local].includes(process.env.RIO_ENV)) {
50
50
  throw new Error("Bitso create receiving account not allowed in sandbox");
@@ -67,7 +67,6 @@ class BitsoClient {
67
67
  },
68
68
  details: {
69
69
  beneficiary: bankAccount.accountHolderName,
70
- institution_code: bitsoBankAccountCode,
71
70
  clabe: bankAccount.CLABE,
72
71
  },
73
72
  },
@@ -18,6 +18,7 @@ interface ChainedOrderAttrs {
18
18
  destinationOrderStatus: OrderStatus;
19
19
  originOrderProcessor: Processor;
20
20
  destinationOrderProcessor: Processor;
21
+ destinationBankAccountId?: string;
21
22
  fees: Fees;
22
23
  createdAt: Date;
23
24
  brokerId?: string;
@@ -46,6 +47,7 @@ interface ChainedOrderDoc extends Document {
46
47
  destinationOrderStatus: OrderStatus;
47
48
  originOrderProcessor: Processor;
48
49
  destinationOrderProcessor: Processor;
50
+ destinationBankAccountId?: string;
49
51
  fees: Fees;
50
52
  createdAt: Date;
51
53
  brokerId?: string;
@@ -15,6 +15,9 @@ const buildChainedOrder = (mongoose) => {
15
15
  type: String,
16
16
  required: true,
17
17
  },
18
+ destinationBankAccountId: {
19
+ type: String,
20
+ },
18
21
  chainedQuoteId: {
19
22
  type: String,
20
23
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1798",
3
+ "version": "1.0.1800",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@google-cloud/secret-manager": "^5.3.0",
27
27
  "@google-cloud/storage": "^6.9.5",
28
28
  "@hyperdx/node-opentelemetry": "^0.4.2",
29
- "@riocrypto/common": "^1.0.1597",
29
+ "@riocrypto/common": "^1.0.1603",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",