@riocrypto/common-server 1.0.2503 → 1.0.2504
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.
- package/build/clients/cluster-client.d.ts +4 -4
- package/build/clients/cluster-client.js +8 -8
- package/build/models/bulk-bank-payment.d.ts +3 -1
- package/build/models/bulk-bank-payment.js +3 -0
- package/build/models/bulk-bank-payout.d.ts +3 -1
- package/build/models/bulk-bank-payout.js +3 -0
- package/build/models/bulk-crypto-payment.d.ts +3 -1
- package/build/models/bulk-crypto-payment.js +3 -0
- package/build/models/bulk-crypto-payout.d.ts +3 -1
- package/build/models/bulk-crypto-payout.js +3 -0
- package/package.json +2 -2
|
@@ -173,10 +173,10 @@ declare class ClusterClient {
|
|
|
173
173
|
getSTPMXNBalance(): Promise<number>;
|
|
174
174
|
createSTPMXNWithdrawal(amount: number, CLABE: string, concepto: string, beneficiaryName: string): Promise<void>;
|
|
175
175
|
getSTPMXNWithdrawal(id: string): Promise<STPMXNWithdrawal>;
|
|
176
|
-
createBulkBankPayout(userId: string, payoutBankAccountId: string): Promise<BulkBankPayout>;
|
|
177
|
-
createBulkCryptoPayout(userId: string, payoutAddressId: string, country: Country): Promise<BulkCryptoPayout>;
|
|
178
|
-
createBulkBankPayment(userId: string, fiat: Fiat, country: Country): Promise<BulkBankPayment>;
|
|
179
|
-
createBulkCryptoPayment(userId: string, crypto: Crypto, country: Country): Promise<BulkCryptoPayment>;
|
|
176
|
+
createBulkBankPayout(userId: string, payoutBankAccountId: string, deferredPaymentType: DeferredPaymentType): Promise<BulkBankPayout>;
|
|
177
|
+
createBulkCryptoPayout(userId: string, payoutAddressId: string, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkCryptoPayout>;
|
|
178
|
+
createBulkBankPayment(userId: string, fiat: Fiat, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkBankPayment>;
|
|
179
|
+
createBulkCryptoPayment(userId: string, crypto: Crypto, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkCryptoPayment>;
|
|
180
180
|
}
|
|
181
181
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
182
182
|
export {};
|
|
@@ -601,27 +601,27 @@ class ClusterClient {
|
|
|
601
601
|
return response.data;
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
-
createBulkBankPayout(userId, payoutBankAccountId) {
|
|
604
|
+
createBulkBankPayout(userId, payoutBankAccountId, deferredPaymentType) {
|
|
605
605
|
return __awaiter(this, void 0, void 0, function* () {
|
|
606
|
-
const response = yield this.axios.post(`${this.baseUrl}/api/payouts/bank/bulk`, { userId, payoutBankAccountId }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
606
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/payouts/bank/bulk`, { userId, payoutBankAccountId, deferredPaymentType }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
607
607
|
return response.data;
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
|
-
createBulkCryptoPayout(userId, payoutAddressId, country) {
|
|
610
|
+
createBulkCryptoPayout(userId, payoutAddressId, country, deferredPaymentType) {
|
|
611
611
|
return __awaiter(this, void 0, void 0, function* () {
|
|
612
|
-
const response = yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk`, { userId, payoutAddressId, country }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
612
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk`, { userId, payoutAddressId, country, deferredPaymentType }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
613
613
|
return response.data;
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
createBulkBankPayment(userId, fiat, country) {
|
|
616
|
+
createBulkBankPayment(userId, fiat, country, deferredPaymentType) {
|
|
617
617
|
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
-
const response = yield this.axios.post(`${this.baseUrl}/api/payments/bank/bulk`, { userId, fiat, country }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
618
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/payments/bank/bulk`, { userId, fiat, country, deferredPaymentType }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
619
619
|
return response.data;
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
|
-
createBulkCryptoPayment(userId, crypto, country) {
|
|
622
|
+
createBulkCryptoPayment(userId, crypto, country, deferredPaymentType) {
|
|
623
623
|
return __awaiter(this, void 0, void 0, function* () {
|
|
624
|
-
const response = yield this.axios.post(`${this.baseUrl}/api/payments/crypto/bulk`, { userId, crypto, country }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
624
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/payments/crypto/bulk`, { userId, crypto, country, deferredPaymentType }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
625
625
|
return response.data;
|
|
626
626
|
});
|
|
627
627
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BulkBankPaymentStatus, Country, Fiat } from "@riocrypto/common";
|
|
1
|
+
import { BulkBankPaymentStatus, Country, Fiat, DeferredPaymentType } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface BulkBankPaymentAttrs {
|
|
4
4
|
createdAt: Date;
|
|
@@ -7,6 +7,7 @@ interface BulkBankPaymentAttrs {
|
|
|
7
7
|
amount: number;
|
|
8
8
|
fiat: Fiat;
|
|
9
9
|
country: Country;
|
|
10
|
+
deferredPaymentType: DeferredPaymentType;
|
|
10
11
|
amountPaid?: number;
|
|
11
12
|
orderIdsPaid?: string[];
|
|
12
13
|
bankName?: string;
|
|
@@ -27,6 +28,7 @@ interface BulkBankPaymentDoc extends Document {
|
|
|
27
28
|
orderIds: string[];
|
|
28
29
|
amount: number;
|
|
29
30
|
fiat: Fiat;
|
|
31
|
+
deferredPaymentType: DeferredPaymentType;
|
|
30
32
|
amountPaid?: number;
|
|
31
33
|
orderIdsPaid?: string[];
|
|
32
34
|
bankName?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Country, Fiat, BulkBankPayoutStatus } from "@riocrypto/common";
|
|
1
|
+
import { Country, Fiat, BulkBankPayoutStatus, DeferredPaymentType } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface BulkBankPayoutAttrs {
|
|
4
4
|
createdAt: Date;
|
|
@@ -7,6 +7,7 @@ interface BulkBankPayoutAttrs {
|
|
|
7
7
|
amount: number;
|
|
8
8
|
fiat: Fiat;
|
|
9
9
|
country: Country;
|
|
10
|
+
deferredPaymentType: DeferredPaymentType;
|
|
10
11
|
payoutBankAccountId?: string;
|
|
11
12
|
bankName?: string;
|
|
12
13
|
reference?: string;
|
|
@@ -23,6 +24,7 @@ interface BulkBankPayoutDoc extends Document {
|
|
|
23
24
|
amount: number;
|
|
24
25
|
fiat: Fiat;
|
|
25
26
|
country: Country;
|
|
27
|
+
deferredPaymentType: DeferredPaymentType;
|
|
26
28
|
payoutBankAccountId?: string;
|
|
27
29
|
bankName?: string;
|
|
28
30
|
reference?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Country, BulkCryptoPaymentStatus, Crypto } from "@riocrypto/common";
|
|
1
|
+
import { Country, BulkCryptoPaymentStatus, Crypto, DeferredPaymentType } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface BulkCryptoPaymentAttrs {
|
|
4
4
|
createdAt: Date;
|
|
@@ -7,6 +7,7 @@ interface BulkCryptoPaymentAttrs {
|
|
|
7
7
|
amount: number;
|
|
8
8
|
crypto: Crypto;
|
|
9
9
|
country: Country;
|
|
10
|
+
deferredPaymentType: DeferredPaymentType;
|
|
10
11
|
amountPaid?: number;
|
|
11
12
|
orderIdsPaid?: string[];
|
|
12
13
|
depositAddress?: string;
|
|
@@ -19,6 +20,7 @@ interface BulkCryptoPaymentDoc extends Document {
|
|
|
19
20
|
amount: number;
|
|
20
21
|
crypto: Crypto;
|
|
21
22
|
country: Country;
|
|
23
|
+
deferredPaymentType: DeferredPaymentType;
|
|
22
24
|
amountPaid?: number;
|
|
23
25
|
orderIdsPaid?: string[];
|
|
24
26
|
depositAddress?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Country, Crypto, BulkCryptoPayoutStatus } from "@riocrypto/common";
|
|
1
|
+
import { Country, Crypto, BulkCryptoPayoutStatus, DeferredPaymentType } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface BulkCryptoPayoutAttrs {
|
|
4
4
|
createdAt: Date;
|
|
@@ -6,6 +6,7 @@ interface BulkCryptoPayoutAttrs {
|
|
|
6
6
|
orderIds: string[];
|
|
7
7
|
amount: number;
|
|
8
8
|
crypto: Crypto;
|
|
9
|
+
deferredPaymentType: DeferredPaymentType;
|
|
9
10
|
payoutAddressId?: string;
|
|
10
11
|
blockchainAddress?: string;
|
|
11
12
|
country: Country;
|
|
@@ -18,6 +19,7 @@ interface BulkCryptoPayoutDoc extends Document {
|
|
|
18
19
|
orderIds: string[];
|
|
19
20
|
amount: number;
|
|
20
21
|
crypto: Crypto;
|
|
22
|
+
deferredPaymentType: DeferredPaymentType;
|
|
21
23
|
payoutAddressId?: string;
|
|
22
24
|
blockchainAddress?: string;
|
|
23
25
|
country: Country;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2504",
|
|
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.2273",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|