@riocrypto/common-server 1.0.1351 → 1.0.1353
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.
|
@@ -7,7 +7,7 @@ declare class ClusterClient {
|
|
|
7
7
|
getNewQuote(orderId: string, quote: Quote, newAmountFiat?: number, newAmountCrypto?: number): Promise<Quote>;
|
|
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
|
-
createOrder(quoteId: string): Promise<Order>;
|
|
10
|
+
createOrder(quoteId: string, cryptoAddress?: string, notes?: string): Promise<Order>;
|
|
11
11
|
createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
|
|
12
12
|
getBalance(asset: Crypto | Fiat): Promise<number>;
|
|
13
13
|
getTransactionLimits(userId: string): Promise<{
|
|
@@ -103,10 +103,12 @@ class ClusterClient {
|
|
|
103
103
|
return response.data;
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
createOrder(quoteId) {
|
|
106
|
+
createOrder(quoteId, cryptoAddress, notes) {
|
|
107
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
108
|
const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
|
|
109
109
|
quoteId,
|
|
110
|
+
cryptoAddress: cryptoAddress ? cryptoAddress : undefined,
|
|
111
|
+
notes: notes ? notes : undefined,
|
|
110
112
|
}, {
|
|
111
113
|
headers: {
|
|
112
114
|
"x-cluster-api-key": this.clusterApiKey,
|