@riocrypto/common-server 1.0.2531 → 1.0.2533

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.
@@ -179,6 +179,10 @@ declare class ClusterClient {
179
179
  createBulkBankPayment(userId: string, fiat: Fiat, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkBankPayment>;
180
180
  createBulkCryptoPayment(userId: string, crypto: Crypto, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkCryptoPayment>;
181
181
  sendBulkBankPayment(id: string): Promise<void>;
182
+ cancelBulkBankPayment(id: string): Promise<void>;
183
+ cancelBulkCryptoPayment(id: string): Promise<void>;
184
+ cancelBulkBankPayout(id: string): Promise<void>;
185
+ cancelBulkCryptoPayout(id: string): Promise<void>;
182
186
  }
183
187
  export declare const buildClusterClient: () => Promise<ClusterClient>;
184
188
  export {};
@@ -635,6 +635,26 @@ class ClusterClient {
635
635
  yield this.axios.post(`${this.baseUrl}/api/payments/bank/bulk/${id}/send`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
636
636
  });
637
637
  }
638
+ cancelBulkBankPayment(id) {
639
+ return __awaiter(this, void 0, void 0, function* () {
640
+ yield this.axios.post(`${this.baseUrl}/api/payments/bank/bulk/${id}/cancel`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
641
+ });
642
+ }
643
+ cancelBulkCryptoPayment(id) {
644
+ return __awaiter(this, void 0, void 0, function* () {
645
+ yield this.axios.post(`${this.baseUrl}/api/payments/crypto/bulk/${id}/cancel`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
646
+ });
647
+ }
648
+ cancelBulkBankPayout(id) {
649
+ return __awaiter(this, void 0, void 0, function* () {
650
+ yield this.axios.post(`${this.baseUrl}/api/payouts/bank/bulk/${id}/cancel`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
651
+ });
652
+ }
653
+ cancelBulkCryptoPayout(id) {
654
+ return __awaiter(this, void 0, void 0, function* () {
655
+ yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk/${id}/cancel`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
656
+ });
657
+ }
638
658
  }
639
659
  const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
640
660
  // Retrieve secrets asynchronously
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2531",
3
+ "version": "1.0.2533",
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.2327",
31
+ "@riocrypto/common": "^1.0.2330",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",