@riocrypto/common-server 1.0.1359 → 1.0.1360

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.
@@ -8,6 +8,7 @@ declare class ClusterClient {
8
8
  getQuote(userId: string, side: Side, country: Country, fiat: Fiat, crypto: Crypto, amountFiat?: number, amountCrypto?: number): Promise<Quote>;
9
9
  getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
10
10
  createOrder(quoteId: string, cryptoAddress?: string, notes?: string): Promise<Order>;
11
+ confirmPayment(orderId: string): Promise<void>;
11
12
  createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
12
13
  getBalance(asset: Crypto | Fiat): Promise<number>;
13
14
  getTransactionLimits(userId: string): Promise<{
@@ -117,6 +117,17 @@ class ClusterClient {
117
117
  return response.data;
118
118
  });
119
119
  }
120
+ confirmPayment(orderId) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ yield this.axios.post(`${this.baseUrl}/api/payments/bank/check`, {
123
+ orderId,
124
+ }, {
125
+ headers: {
126
+ "x-cluster-api-key": this.clusterApiKey,
127
+ },
128
+ });
129
+ });
130
+ }
120
131
  createBitsoBankAccount(userId) {
121
132
  return __awaiter(this, void 0, void 0, function* () {
122
133
  const response = yield this.axios.post(`${this.baseUrl}/api/bank/accounts/bitso`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1359",
3
+ "version": "1.0.1360",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
29
  "@google-cloud/vision": "^4.0.2",
30
- "@riocrypto/common": "^1.0.1196",
30
+ "@riocrypto/common": "^1.0.1200",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",