@riocrypto/common-server 1.0.1185 → 1.0.1186
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.
|
@@ -26,12 +26,12 @@ declare class BridgeClient {
|
|
|
26
26
|
}>;
|
|
27
27
|
createTransfer(bridgeCustomerId: string, amountInUSD: string, source: {
|
|
28
28
|
currency: "usdc" | "usdt" | "usd";
|
|
29
|
-
payment_rail: "
|
|
29
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
30
30
|
external_account_id?: string;
|
|
31
31
|
from_address?: string;
|
|
32
32
|
}, destination: {
|
|
33
33
|
currency: "usdc" | "usdt" | "usd";
|
|
34
|
-
payment_rail: "
|
|
34
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
35
35
|
external_account_id?: string;
|
|
36
36
|
to_address?: string;
|
|
37
37
|
wire_message?: string;
|
|
@@ -42,20 +42,20 @@ declare class BridgeClient {
|
|
|
42
42
|
developer_fee: string;
|
|
43
43
|
source: {
|
|
44
44
|
currency: "usdc" | "usdt" | "usd";
|
|
45
|
-
payment_rail: "
|
|
45
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
46
46
|
external_account_id?: string;
|
|
47
47
|
from_address?: string;
|
|
48
48
|
};
|
|
49
49
|
destination: {
|
|
50
50
|
currency: "usdc" | "usdt" | "usd";
|
|
51
|
-
payment_rail: "
|
|
51
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
52
52
|
external_account_id?: string;
|
|
53
53
|
to_address?: string;
|
|
54
54
|
wire_message?: string;
|
|
55
55
|
};
|
|
56
56
|
state: "awaiting_source_deposit" | "pending" | "completed" | "failed";
|
|
57
57
|
source_deposit_instructions: {
|
|
58
|
-
payment_rail: "
|
|
58
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
|
|
59
59
|
amount: string;
|
|
60
60
|
currency: "usdc" | "usdt" | "usd";
|
|
61
61
|
from_address?: string;
|
|
@@ -76,20 +76,20 @@ declare class BridgeClient {
|
|
|
76
76
|
developer_fee: string;
|
|
77
77
|
source: {
|
|
78
78
|
currency: "usdc" | "usdt" | "usd";
|
|
79
|
-
payment_rail: "
|
|
79
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
80
80
|
external_account_id?: string;
|
|
81
81
|
from_address?: string;
|
|
82
82
|
};
|
|
83
83
|
destination: {
|
|
84
84
|
currency: "usdc" | "usdt" | "usd";
|
|
85
|
-
payment_rail: "
|
|
85
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
86
86
|
external_account_id?: string;
|
|
87
87
|
to_address?: string;
|
|
88
88
|
wire_message?: string;
|
|
89
89
|
};
|
|
90
90
|
state: "awaiting_source_deposit" | "pending" | "completed" | "failed";
|
|
91
91
|
source_deposit_instructions: {
|
|
92
|
-
payment_rail: "
|
|
92
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
|
|
93
93
|
amount: string;
|
|
94
94
|
currency: "usdc" | "usdt" | "usd";
|
|
95
95
|
from_address?: string;
|
|
@@ -109,20 +109,20 @@ declare class BridgeClient {
|
|
|
109
109
|
developer_fee: string;
|
|
110
110
|
source: {
|
|
111
111
|
currency: "usdc" | "usdt" | "usd";
|
|
112
|
-
payment_rail: "
|
|
112
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
113
113
|
external_account_id?: string;
|
|
114
114
|
from_address?: string;
|
|
115
115
|
};
|
|
116
116
|
destination: {
|
|
117
117
|
currency: "usdc" | "usdt" | "usd";
|
|
118
|
-
payment_rail: "
|
|
118
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
119
119
|
external_account_id?: string;
|
|
120
120
|
to_address?: string;
|
|
121
121
|
wire_message?: string;
|
|
122
122
|
};
|
|
123
123
|
state: "awaiting_source_deposit" | "pending" | "completed" | "failed";
|
|
124
124
|
source_deposit_instructions: {
|
|
125
|
-
payment_rail: "
|
|
125
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
|
|
126
126
|
amount: string;
|
|
127
127
|
currency: "usdc" | "usdt" | "usd";
|
|
128
128
|
from_address?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Processor } from "@riocrypto/common";
|
|
2
|
-
export declare const getProcessorFees: (processor: Processor, amountFiat: number, conversionRateFromUSD: number, USBankTransferMethod?: "wire" | "
|
|
2
|
+
export declare const getProcessorFees: (processor: Processor, amountFiat: number, conversionRateFromUSD: number, USBankTransferMethod?: "wire" | "ach_push") => Promise<number>;
|
|
@@ -2,7 +2,7 @@ import { Mongoose, Model, Document } from "mongoose";
|
|
|
2
2
|
interface BankPaymentAttrs {
|
|
3
3
|
orderId: string;
|
|
4
4
|
PIXBarcode?: string;
|
|
5
|
-
USBankTransferMethod?: "wire" | "
|
|
5
|
+
USBankTransferMethod?: "wire" | "ach_push";
|
|
6
6
|
bankName?: string;
|
|
7
7
|
companyName?: string;
|
|
8
8
|
companyAddress?: string;
|
|
@@ -20,7 +20,7 @@ interface BankPaymentAttrs {
|
|
|
20
20
|
interface BankPaymentDoc extends Document {
|
|
21
21
|
orderId: string;
|
|
22
22
|
PIXBarcode?: string;
|
|
23
|
-
USBankTransferMethod?: "wire" | "
|
|
23
|
+
USBankTransferMethod?: "wire" | "ach_push";
|
|
24
24
|
bankName?: string;
|
|
25
25
|
companyName?: string;
|
|
26
26
|
companyAddress?: string;
|
package/build/models/order.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ interface OrderAttrs {
|
|
|
40
40
|
amountFixed?: number;
|
|
41
41
|
exchangeRateOrders?: ExchangeRateOrder[];
|
|
42
42
|
autoFXDisabled?: boolean;
|
|
43
|
-
USBankTransferMethod?: "wire" | "
|
|
43
|
+
USBankTransferMethod?: "wire" | "ach_push";
|
|
44
44
|
}
|
|
45
45
|
interface OrderDoc extends Document {
|
|
46
46
|
quoteId: string;
|
|
@@ -82,7 +82,7 @@ interface OrderDoc extends Document {
|
|
|
82
82
|
amountFixed?: number;
|
|
83
83
|
exchangeRateOrders?: ExchangeRateOrder[];
|
|
84
84
|
autoFXDisabled?: boolean;
|
|
85
|
-
USBankTransferMethod?: "wire" | "
|
|
85
|
+
USBankTransferMethod?: "wire" | "ach_push";
|
|
86
86
|
}
|
|
87
87
|
interface OrderModel extends Model<OrderDoc> {
|
|
88
88
|
build(attrs: OrderAttrs): OrderDoc;
|
package/build/models/quote.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ interface QuoteAttrs {
|
|
|
26
26
|
conversionRateUSDWithMarkups: number;
|
|
27
27
|
discount?: number;
|
|
28
28
|
markup?: number;
|
|
29
|
-
USBankTransferMethod?: "wire" | "
|
|
29
|
+
USBankTransferMethod?: "wire" | "ach_push";
|
|
30
30
|
}
|
|
31
31
|
interface QuoteDoc extends Document {
|
|
32
32
|
userId: string;
|
|
@@ -54,7 +54,7 @@ interface QuoteDoc extends Document {
|
|
|
54
54
|
conversionRateUSDWithMarkups: number;
|
|
55
55
|
discount?: number;
|
|
56
56
|
markup?: number;
|
|
57
|
-
USBankTransferMethod?: "wire" | "
|
|
57
|
+
USBankTransferMethod?: "wire" | "ach_push";
|
|
58
58
|
}
|
|
59
59
|
interface QuoteModel extends Model<QuoteDoc> {
|
|
60
60
|
build(attrs: QuoteAttrs): QuoteDoc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1186",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1068",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^0.27.2",
|
|
32
32
|
"ccxt": "^3.0.30",
|