@riocrypto/common-server 1.0.1161 → 1.0.1163
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.
|
@@ -20,6 +20,9 @@ const getProcessorFees = (processor, amountFiat, conversionRateFromUSD) => __awa
|
|
|
20
20
|
else if (processor === common_1.Processor.Kapstar) {
|
|
21
21
|
return amountFiat * 0.006;
|
|
22
22
|
}
|
|
23
|
+
else if (processor === common_1.Processor.Interbank) {
|
|
24
|
+
return amountFiat * 0.005;
|
|
25
|
+
}
|
|
23
26
|
else if (processor === common_1.Processor.SWIFT) {
|
|
24
27
|
return 25 * conversionRateFromUSD;
|
|
25
28
|
}
|
package/build/models/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KYCStatus, Language, PlatformFeeRange, USState, UserAttribute, UserType, CountryOfOrigin } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface UserAttrs {
|
|
4
4
|
createdAt: Date;
|
|
@@ -11,7 +11,7 @@ interface UserAttrs {
|
|
|
11
11
|
city: string;
|
|
12
12
|
state: USState | string;
|
|
13
13
|
postalCode: string;
|
|
14
|
-
country:
|
|
14
|
+
country: CountryOfOrigin;
|
|
15
15
|
kycStatus: KYCStatus;
|
|
16
16
|
firstName?: string;
|
|
17
17
|
lastName?: string;
|
|
@@ -53,7 +53,7 @@ interface UserDoc extends Document {
|
|
|
53
53
|
city: string;
|
|
54
54
|
state: USState | string;
|
|
55
55
|
postalCode: string;
|
|
56
|
-
country:
|
|
56
|
+
country: CountryOfOrigin;
|
|
57
57
|
kycStatus: KYCStatus;
|
|
58
58
|
firstName?: string;
|
|
59
59
|
lastName?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1163",
|
|
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.1041",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^0.27.2",
|
|
32
32
|
"ccxt": "^3.0.30",
|