@riocrypto/common-server 1.0.2449 → 1.0.2450
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.
|
@@ -41,6 +41,17 @@ declare class ClusterClient {
|
|
|
41
41
|
notes?: string;
|
|
42
42
|
isAxeTaker?: boolean;
|
|
43
43
|
}): Promise<Order>;
|
|
44
|
+
takeAxe({ axeId, userId, amount, crypto, userAddressId, payoutBankAccountId, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, }: {
|
|
45
|
+
axeId: string;
|
|
46
|
+
userId: string;
|
|
47
|
+
amount: number;
|
|
48
|
+
crypto: Crypto;
|
|
49
|
+
userAddressId?: string;
|
|
50
|
+
payoutBankAccountId?: string;
|
|
51
|
+
deferredPaymentType?: DeferredPaymentType;
|
|
52
|
+
twoWaySettlementType?: TwoWaySettlementType;
|
|
53
|
+
twoWaySettlementDateOffset?: number;
|
|
54
|
+
}): Promise<void>;
|
|
44
55
|
checkBankPayment(orderId: string): Promise<void>;
|
|
45
56
|
checkCryptoPayment(orderId: string): Promise<void>;
|
|
46
57
|
createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
|
|
@@ -176,6 +176,24 @@ class ClusterClient {
|
|
|
176
176
|
return response.data;
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
+
takeAxe({ axeId, userId, amount, crypto, userAddressId, payoutBankAccountId, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, }) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
yield this.axios.post(`${this.baseUrl}/api/axes/${axeId}/take`, {
|
|
182
|
+
userId,
|
|
183
|
+
amount,
|
|
184
|
+
crypto,
|
|
185
|
+
userAddressId,
|
|
186
|
+
payoutBankAccountId,
|
|
187
|
+
deferredPaymentType,
|
|
188
|
+
twoWaySettlementType,
|
|
189
|
+
twoWaySettlementDateOffset,
|
|
190
|
+
}, {
|
|
191
|
+
headers: {
|
|
192
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
193
|
+
},
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
}
|
|
179
197
|
checkBankPayment(orderId) {
|
|
180
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
199
|
yield this.axios.post(`${this.baseUrl}/api/payments/bank/check`, {
|