@riocrypto/common-server 1.0.2032 → 1.0.2033

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.
@@ -40,6 +40,7 @@ declare class ClusterClient {
40
40
  verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<void>;
41
41
  sendVerificationEmail(userId: string, country?: Country): Promise<void>;
42
42
  registerFXTrade(orderId: string, provider: FXProvider, amount: number, price: number): Promise<void>;
43
+ generateInvoice(orderId: string): Promise<void>;
43
44
  cancelFXTrade(fxTradeId: string): Promise<void>;
44
45
  resetOrderFXData(orderId: string): Promise<void>;
45
46
  deleteInvoice(id: string): Promise<void>;
@@ -299,6 +299,17 @@ class ClusterClient {
299
299
  });
300
300
  });
301
301
  }
302
+ generateInvoice(orderId) {
303
+ return __awaiter(this, void 0, void 0, function* () {
304
+ yield this.axios.post(`${this.baseUrl}/api/invoices`, {
305
+ orderId,
306
+ }, {
307
+ headers: {
308
+ "x-cluster-api-key": this.clusterApiKey,
309
+ },
310
+ });
311
+ });
312
+ }
302
313
  cancelFXTrade(fxTradeId) {
303
314
  return __awaiter(this, void 0, void 0, function* () {
304
315
  yield this.axios.post(`${this.baseUrl}/api/fx/trades/${fxTradeId}/cancel`, {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2032",
3
+ "version": "1.0.2033",
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.1772",
31
+ "@riocrypto/common": "^1.0.1773",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",