@riocrypto/common-server 1.0.773 → 1.0.775
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.
|
@@ -105,7 +105,7 @@ const getPlatformAndPartnerFees = (mongoose, amountFiat, fiat, processor, countr
|
|
|
105
105
|
platformFeeFiat = amountFiat * netPlatformFee;
|
|
106
106
|
partnerFeeFiat = 0;
|
|
107
107
|
}
|
|
108
|
-
if (brokerId) {
|
|
108
|
+
if (brokerId && !platformFeeFiat) {
|
|
109
109
|
const User = (0, user_1.buildUser)(mongoose);
|
|
110
110
|
const brokerCustomer = yield User.findById(brokerId);
|
|
111
111
|
if (!brokerCustomer) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Country, Fiat } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface BankAccountAttrs {
|
|
4
|
+
createdAt: Date;
|
|
4
5
|
userId: string;
|
|
5
6
|
country: Country;
|
|
6
7
|
fiat: Fiat;
|
|
@@ -10,6 +11,7 @@ interface BankAccountAttrs {
|
|
|
10
11
|
notes?: string;
|
|
11
12
|
}
|
|
12
13
|
interface BankAccountDoc extends Document {
|
|
14
|
+
createdAt: Date;
|
|
13
15
|
userId: string;
|
|
14
16
|
country: Country;
|
|
15
17
|
fiat: Fiat;
|
package/build/models/user.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Country, KYCStatus, Language, PlatformFeeRange, USState, UserAttribute, UserType } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface UserAttrs {
|
|
4
|
+
createdAt: Date;
|
|
4
5
|
authIds?: string[];
|
|
5
6
|
type: UserType;
|
|
6
7
|
phoneNumber: string;
|
|
@@ -34,6 +35,7 @@ interface UserModel extends Model<UserDoc> {
|
|
|
34
35
|
}
|
|
35
36
|
interface UserDoc extends Document {
|
|
36
37
|
_id: string;
|
|
38
|
+
createdAt: Date;
|
|
37
39
|
authIds?: string[];
|
|
38
40
|
type: UserType;
|
|
39
41
|
phoneNumber: string;
|
package/build/models/user.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.775",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
25
25
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
26
26
|
"@google-cloud/storage": "^6.9.5",
|
|
27
|
-
"@riocrypto/common": "^1.0.
|
|
27
|
+
"@riocrypto/common": "^1.0.685",
|
|
28
28
|
"@types/express": "^4.17.13",
|
|
29
29
|
"axios": "^0.27.2",
|
|
30
30
|
"ccxt": "^3.0.30",
|