@riocrypto/common-server 1.0.2489 → 1.0.2491
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.
|
@@ -31,13 +31,15 @@ declare class ClusterClient {
|
|
|
31
31
|
timeInForceEndsAt?: Date;
|
|
32
32
|
}): Promise<Quote>;
|
|
33
33
|
getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
|
|
34
|
-
createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, }: {
|
|
34
|
+
createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPayoutId, bulkBankPayoutId, }: {
|
|
35
35
|
quoteId: string;
|
|
36
36
|
userAddressId?: string;
|
|
37
37
|
payoutBankAccountId?: string;
|
|
38
38
|
parentOrderId?: string;
|
|
39
39
|
notes?: string;
|
|
40
40
|
isAxeTaker?: boolean;
|
|
41
|
+
bulkCryptoPayoutId?: string;
|
|
42
|
+
bulkBankPayoutId?: string;
|
|
41
43
|
}): Promise<Order>;
|
|
42
44
|
takeAxe({ axeId, userId, amount, crypto, userAddressId, payoutBankAccountId, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, }: {
|
|
43
45
|
axeId: string;
|
|
@@ -113,7 +113,7 @@ class ClusterClient {
|
|
|
113
113
|
return response.data;
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, }) {
|
|
116
|
+
createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPayoutId, bulkBankPayoutId, }) {
|
|
117
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
118
|
const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
|
|
119
119
|
quoteId,
|
|
@@ -124,6 +124,8 @@ class ClusterClient {
|
|
|
124
124
|
notes: notes ? notes : undefined,
|
|
125
125
|
isAxeTaker: isAxeTaker ? isAxeTaker : undefined,
|
|
126
126
|
parentOrderId: parentOrderId ? parentOrderId : undefined,
|
|
127
|
+
bulkCryptoPayoutId: bulkCryptoPayoutId ? bulkCryptoPayoutId : undefined,
|
|
128
|
+
bulkBankPayoutId: bulkBankPayoutId ? bulkBankPayoutId : undefined,
|
|
127
129
|
}, {
|
|
128
130
|
headers: {
|
|
129
131
|
"x-cluster-api-key": this.clusterApiKey,
|
package/build/models/order.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ interface OrderAttrs {
|
|
|
51
51
|
payoutBankAccountId?: string;
|
|
52
52
|
bulkCryptoPaymentId?: string;
|
|
53
53
|
bulkBankPaymentId?: string;
|
|
54
|
+
bulkCryptoPayoutId?: string;
|
|
55
|
+
bulkBankPayoutId?: string;
|
|
54
56
|
binancePayment?: {
|
|
55
57
|
binanceTransactionId: string;
|
|
56
58
|
amount: number;
|
|
@@ -179,6 +181,8 @@ interface OrderDoc extends Document {
|
|
|
179
181
|
payoutBankAccountId?: string;
|
|
180
182
|
bulkCryptoPaymentId?: string;
|
|
181
183
|
bulkBankPaymentId?: string;
|
|
184
|
+
bulkCryptoPayoutId?: string;
|
|
185
|
+
bulkBankPayoutId?: string;
|
|
182
186
|
invoice?: {
|
|
183
187
|
PDFLink?: string;
|
|
184
188
|
XMLLink?: string;
|
package/build/models/order.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2491",
|
|
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.
|
|
31
|
+
"@riocrypto/common": "^1.0.2258",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|