@riocrypto/common-server 1.0.2325 → 1.0.2327
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.
|
@@ -27,12 +27,13 @@ declare class ClusterClient {
|
|
|
27
27
|
getNewChainedQuote(chainedOrderId: string, chainedQuote: ChainedQuote, newOriginAmount?: number): Promise<ChainedQuote>;
|
|
28
28
|
getBidQuote(userId: string, side: Side, country: Country, fiat: Fiat, crypto: Crypto, amountFiat?: number, amountCrypto?: number, USBankTransferMethod?: "ach_push" | "wire", netPrice?: string): Promise<Quote>;
|
|
29
29
|
getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
|
|
30
|
-
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, }: {
|
|
30
|
+
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, isReplacement, }: {
|
|
31
31
|
quoteId: string;
|
|
32
32
|
userAddressId?: string;
|
|
33
33
|
payoutBankAccountId?: string;
|
|
34
34
|
notes?: string;
|
|
35
35
|
isAxeTaker?: boolean;
|
|
36
|
+
isReplacement?: boolean;
|
|
36
37
|
}): Promise<Order>;
|
|
37
38
|
checkBankPayment(orderId: string): Promise<void>;
|
|
38
39
|
checkCryptoPayment(orderId: string): Promise<void>;
|
|
@@ -151,7 +151,7 @@ class ClusterClient {
|
|
|
151
151
|
return response.data;
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, }) {
|
|
154
|
+
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, isReplacement, }) {
|
|
155
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
156
|
const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
|
|
157
157
|
quoteId,
|
|
@@ -161,6 +161,7 @@ class ClusterClient {
|
|
|
161
161
|
: undefined,
|
|
162
162
|
notes: notes ? notes : undefined,
|
|
163
163
|
isAxeTaker: isAxeTaker ? isAxeTaker : undefined,
|
|
164
|
+
isReplacement: isReplacement ? isReplacement : undefined,
|
|
164
165
|
}, {
|
|
165
166
|
headers: {
|
|
166
167
|
"x-cluster-api-key": this.clusterApiKey,
|
|
@@ -52,7 +52,7 @@ interface RioSettingsAttrs {
|
|
|
52
52
|
activeFiatPaymentProcessors: {
|
|
53
53
|
[Side.Buy]: Processor[];
|
|
54
54
|
[Side.Sell]: Processor[];
|
|
55
|
-
|
|
55
|
+
bankAccountVerifications: Processor[];
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
interface RioSettingsDoc extends mongoose.Document {
|
|
@@ -107,7 +107,7 @@ interface RioSettingsDoc extends mongoose.Document {
|
|
|
107
107
|
activeFiatPaymentProcessors: {
|
|
108
108
|
[Side.Buy]: Processor[];
|
|
109
109
|
[Side.Sell]: Processor[];
|
|
110
|
-
|
|
110
|
+
bankAccountVerifications: Processor[];
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
interface RioSettingsModel extends mongoose.Model<RioSettingsDoc> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2327",
|
|
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.2038",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|