@riocrypto/common-server 1.0.2450 → 1.0.2451

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.
@@ -51,7 +51,7 @@ declare class ClusterClient {
51
51
  deferredPaymentType?: DeferredPaymentType;
52
52
  twoWaySettlementType?: TwoWaySettlementType;
53
53
  twoWaySettlementDateOffset?: number;
54
- }): Promise<void>;
54
+ }): Promise<Order>;
55
55
  checkBankPayment(orderId: string): Promise<void>;
56
56
  checkCryptoPayment(orderId: string): Promise<void>;
57
57
  createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
@@ -178,7 +178,7 @@ class ClusterClient {
178
178
  }
179
179
  takeAxe({ axeId, userId, amount, crypto, userAddressId, payoutBankAccountId, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, }) {
180
180
  return __awaiter(this, void 0, void 0, function* () {
181
- yield this.axios.post(`${this.baseUrl}/api/axes/${axeId}/take`, {
181
+ const response = yield this.axios.post(`${this.baseUrl}/api/axes/${axeId}/take`, {
182
182
  userId,
183
183
  amount,
184
184
  crypto,
@@ -192,6 +192,7 @@ class ClusterClient {
192
192
  "x-cluster-api-key": this.clusterApiKey,
193
193
  },
194
194
  });
195
+ return response.data;
195
196
  });
196
197
  }
197
198
  checkBankPayment(orderId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2450",
3
+ "version": "1.0.2451",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",