@riocrypto/common-server 1.0.2504 → 1.0.2506

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.
@@ -175,8 +175,10 @@ declare class ClusterClient {
175
175
  getSTPMXNWithdrawal(id: string): Promise<STPMXNWithdrawal>;
176
176
  createBulkBankPayout(userId: string, payoutBankAccountId: string, deferredPaymentType: DeferredPaymentType): Promise<BulkBankPayout>;
177
177
  createBulkCryptoPayout(userId: string, payoutAddressId: string, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkCryptoPayout>;
178
+ sendBulkCryptoPayout(id: string): Promise<void>;
178
179
  createBulkBankPayment(userId: string, fiat: Fiat, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkBankPayment>;
179
180
  createBulkCryptoPayment(userId: string, crypto: Crypto, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkCryptoPayment>;
181
+ sendBulkBankPayment(id: string): Promise<void>;
180
182
  }
181
183
  export declare const buildClusterClient: () => Promise<ClusterClient>;
182
184
  export {};
@@ -613,6 +613,11 @@ class ClusterClient {
613
613
  return response.data;
614
614
  });
615
615
  }
616
+ sendBulkCryptoPayout(id) {
617
+ return __awaiter(this, void 0, void 0, function* () {
618
+ yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk/${id}/send`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
619
+ });
620
+ }
616
621
  createBulkBankPayment(userId, fiat, country, deferredPaymentType) {
617
622
  return __awaiter(this, void 0, void 0, function* () {
618
623
  const response = yield this.axios.post(`${this.baseUrl}/api/payments/bank/bulk`, { userId, fiat, country, deferredPaymentType }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
@@ -625,6 +630,11 @@ class ClusterClient {
625
630
  return response.data;
626
631
  });
627
632
  }
633
+ sendBulkBankPayment(id) {
634
+ return __awaiter(this, void 0, void 0, function* () {
635
+ yield this.axios.post(`${this.baseUrl}/api/payments/bank/bulk/${id}/send`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
636
+ });
637
+ }
628
638
  }
629
639
  const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
630
640
  // Retrieve secrets asynchronously
@@ -15,6 +15,7 @@ interface BulkBankPayoutAttrs {
15
15
  CLABE?: string;
16
16
  CCI?: string;
17
17
  status: BulkBankPayoutStatus;
18
+ payoutTransferLimit?: number;
18
19
  }
19
20
  interface BulkBankPayoutDoc extends Document {
20
21
  id: string;
@@ -32,6 +33,7 @@ interface BulkBankPayoutDoc extends Document {
32
33
  CLABE?: string;
33
34
  CCI?: string;
34
35
  status: BulkBankPayoutStatus;
36
+ payoutTransferLimit?: number;
35
37
  }
36
38
  interface BulkBankPayoutModel extends Model<BulkBankPayoutDoc> {
37
39
  build(attrs: BulkBankPayoutAttrs): BulkBankPayoutDoc;
@@ -56,6 +56,9 @@ const buildBulkBankPayout = (mongoose) => {
56
56
  type: String,
57
57
  required: true,
58
58
  },
59
+ payoutTransferLimit: {
60
+ type: Number,
61
+ },
59
62
  }, {
60
63
  toJSON: {
61
64
  transform(doc, ret) {
@@ -11,6 +11,7 @@ interface BulkCryptoPayoutAttrs {
11
11
  blockchainAddress?: string;
12
12
  country: Country;
13
13
  status: BulkCryptoPayoutStatus;
14
+ payoutTransferLimit?: number;
14
15
  }
15
16
  interface BulkCryptoPayoutDoc extends Document {
16
17
  id: string;
@@ -24,6 +25,7 @@ interface BulkCryptoPayoutDoc extends Document {
24
25
  blockchainAddress?: string;
25
26
  country: Country;
26
27
  status: BulkCryptoPayoutStatus;
28
+ payoutTransferLimit?: number;
27
29
  }
28
30
  interface BulkCryptoPayoutModel extends Model<BulkCryptoPayoutDoc> {
29
31
  build(attrs: BulkCryptoPayoutAttrs): BulkCryptoPayoutDoc;
@@ -44,6 +44,9 @@ const buildBulkCryptoPayout = (mongoose) => {
44
44
  type: String,
45
45
  required: true,
46
46
  },
47
+ payoutTransferLimit: {
48
+ type: Number,
49
+ },
47
50
  }, {
48
51
  toJSON: {
49
52
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2504",
3
+ "version": "1.0.2506",
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.2273",
31
+ "@riocrypto/common": "^1.0.2278",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",