@riocrypto/common 1.0.504 → 1.0.506
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/index.d.ts +0 -41
- package/build/index.js +0 -41
- package/package.json +2 -2
- package/build/clients/bitstamp-client.d.ts +0 -16
- package/build/clients/bitstamp-client.js +0 -83
- package/build/clients/ccxt-client.d.ts +0 -48
- package/build/clients/ccxt-client.js +0 -201
- package/build/clients/etherscan-client.d.ts +0 -6
- package/build/clients/etherscan-client.js +0 -24
- package/build/clients/fireblocks-client.d.ts +0 -15
- package/build/clients/fireblocks-client.js +0 -140
- package/build/clients/fixer-client.d.ts +0 -8
- package/build/clients/fixer-client.js +0 -34
- package/build/clients/gueno-client.d.ts +0 -10
- package/build/clients/gueno-client.js +0 -44
- package/build/clients/kapstar-client.d.ts +0 -6
- package/build/clients/kapstar-client.js +0 -26
- package/build/clients/kushki-client.d.ts +0 -14
- package/build/clients/kushki-client.js +0 -150
- package/build/clients/rio-client.d.ts +0 -82
- package/build/clients/rio-client.js +0 -315
- package/build/clients/slack-client.d.ts +0 -7
- package/build/clients/slack-client.js +0 -34
- package/build/helpers/get-user-from-client-helper.d.ts +0 -4
- package/build/helpers/get-user-from-client-helper.js +0 -41
- package/build/helpers/get-user-helper.d.ts +0 -4
- package/build/helpers/get-user-helper.js +0 -35
- package/build/middlewares/authorize.d.ts +0 -28
- package/build/middlewares/authorize.js +0 -195
- package/build/middlewares/current-admin-auth.d.ts +0 -15
- package/build/middlewares/current-admin-auth.js +0 -20
- package/build/middlewares/current-auth.d.ts +0 -16
- package/build/middlewares/current-auth.js +0 -20
- package/build/middlewares/error-handler.d.ts +0 -2
- package/build/middlewares/error-handler.js +0 -14
- package/build/middlewares/get-order.d.ts +0 -11
- package/build/middlewares/get-order.js +0 -57
- package/build/middlewares/get-partner.d.ts +0 -10
- package/build/middlewares/get-partner.js +0 -41
- package/build/middlewares/get-user.d.ts +0 -12
- package/build/middlewares/get-user.js +0 -45
- package/build/middlewares/require-admin-api-key.d.ts +0 -2
- package/build/middlewares/require-admin-api-key.js +0 -11
- package/build/middlewares/require-auth.d.ts +0 -2
- package/build/middlewares/require-auth.js +0 -11
- package/build/middlewares/require-priveleges.d.ts +0 -2
- package/build/middlewares/require-priveleges.js +0 -15
- package/build/middlewares/validate-auth.d.ts +0 -2
- package/build/middlewares/validate-auth.js +0 -30
- package/build/middlewares/validate-kyc.d.ts +0 -2
- package/build/middlewares/validate-kyc.js +0 -30
- package/build/middlewares/validate-order.d.ts +0 -0
- package/build/middlewares/validate-order.js +0 -20
- package/build/middlewares/validate-request.d.ts +0 -2
- package/build/middlewares/validate-request.js +0 -13
- package/build/middlewares/verify-admin-api-key.d.ts +0 -9
- package/build/middlewares/verify-admin-api-key.js +0 -11
- package/build/models/admin-auth.d.ts +0 -16
- package/build/models/admin-auth.js +0 -59
- package/build/models/auth.d.ts +0 -24
- package/build/models/auth.js +0 -83
- package/build/models/bank-payout.d.ts +0 -20
- package/build/models/bank-payout.js +0 -44
- package/build/models/business-user.d.ts +0 -57
- package/build/models/business-user.js +0 -111
- package/build/models/ccxt-order.d.ts +0 -16
- package/build/models/ccxt-order.js +0 -37
- package/build/models/checked-address.d.ts +0 -17
- package/build/models/checked-address.js +0 -37
- package/build/models/kushki-payment.d.ts +0 -16
- package/build/models/kushki-payment.js +0 -37
- package/build/models/kyc.d.ts +0 -20
- package/build/models/kyc.js +0 -45
- package/build/models/order.d.ts +0 -67
- package/build/models/order.js +0 -123
- package/build/models/partner.d.ts +0 -35
- package/build/models/partner.js +0 -69
- package/build/models/rio-settings.d.ts +0 -12
- package/build/models/rio-settings.js +0 -29
- package/build/models/user.d.ts +0 -53
- package/build/models/user.js +0 -94
- package/build/services/apiKey.d.ts +0 -3
- package/build/services/apiKey.js +0 -24
- package/build/services/password.d.ts +0 -4
- package/build/services/password.js +0 -32
- package/build/services/s3.d.ts +0 -5
- package/build/services/s3.js +0 -21
- package/build/types.d.ts +0 -93
- package/build/types.js +0 -109
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.fixerClient = void 0;
|
|
16
|
-
const axios_1 = __importDefault(require("axios"));
|
|
17
|
-
class FixerClient {
|
|
18
|
-
constructor(apiKey) {
|
|
19
|
-
this.apiKey = apiKey;
|
|
20
|
-
}
|
|
21
|
-
convert(from, to) {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const fixerResponse = yield axios_1.default.get(`https://api.apilayer.com/fixer/latest?base=${from}&symbols=${to}`, {
|
|
24
|
-
headers: {
|
|
25
|
-
apikey: this.apiKey,
|
|
26
|
-
"Accept-Encoding": "gzip,deflate,compress",
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
const exchangeRate = fixerResponse.data.rates[to];
|
|
30
|
-
return exchangeRate;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.fixerClient = new FixerClient(process.env.FIXER_API_KEY);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare class GuenoClient {
|
|
2
|
-
private email;
|
|
3
|
-
private password;
|
|
4
|
-
private env;
|
|
5
|
-
constructor(email: string, password: string, env: "sandbox" | "production");
|
|
6
|
-
getAddressRiskScore(address: string, protocol: Crypto): Promise<any>;
|
|
7
|
-
getAccessToken(): Promise<any>;
|
|
8
|
-
}
|
|
9
|
-
export declare const guenoClient: GuenoClient;
|
|
10
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.guenoClient = void 0;
|
|
16
|
-
const axios_1 = __importDefault(require("axios"));
|
|
17
|
-
class GuenoClient {
|
|
18
|
-
constructor(email, password, env) {
|
|
19
|
-
this.email = email;
|
|
20
|
-
this.password = password;
|
|
21
|
-
this.env = env;
|
|
22
|
-
}
|
|
23
|
-
getAddressRiskScore(address, protocol) {
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const accessToken = yield this.getAccessToken();
|
|
26
|
-
const { data } = yield axios_1.default.get(`https://api-gueno.${this.env === "production" ? "prd" : "stg"}.gueno.com/api/amlCrypto/addressRiskScore?address=${address}&protocol=${protocol}`, {
|
|
27
|
-
headers: {
|
|
28
|
-
Authorization: `Bearer ${accessToken}`,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
return data;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
getAccessToken() {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
const { data } = yield axios_1.default.post(`https://api-gueno.${this.env === "production" ? "prd" : "stg"}.gueno.com/api/auth/login`, {
|
|
37
|
-
email: this.email,
|
|
38
|
-
password: this.password,
|
|
39
|
-
});
|
|
40
|
-
return data.access_token;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.guenoClient = new GuenoClient(process.env.GUENO_EMAIL, process.env.GUENO_PASSWORD, process.env.GUENO_ENV);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.kapstarClient = void 0;
|
|
16
|
-
const axios_1 = __importDefault(require("axios"));
|
|
17
|
-
class KapstarClient {
|
|
18
|
-
constructor() { }
|
|
19
|
-
getBRLExchangeRateUSD() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const kapstarResponse = yield axios_1.default.get(`https://api.ecsa.finance/quotation-service/v1/quotation/last`);
|
|
22
|
-
return 1 / kapstarResponse.data;
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.kapstarClient = new KapstarClient();
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BusinessUser } from "../types/business-user";
|
|
2
|
-
import { Order } from "../types/order";
|
|
3
|
-
import { User } from "../types/user";
|
|
4
|
-
declare class KushkiClient {
|
|
5
|
-
private privateMerchantId;
|
|
6
|
-
private environment;
|
|
7
|
-
private baseUrl;
|
|
8
|
-
constructor(privateMerchantId: string, environment: "sandbox" | "production");
|
|
9
|
-
createPaymentLink(order: Order, user: User, token: string): Promise<any>;
|
|
10
|
-
createBankPaymentToken(order: Order, user: User | BusinessUser): Promise<any>;
|
|
11
|
-
createBankPayment(order: Order, user: User | BusinessUser, token: string): Promise<any>;
|
|
12
|
-
}
|
|
13
|
-
export declare const kushkiClient: KushkiClient;
|
|
14
|
-
export {};
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.kushkiClient = void 0;
|
|
16
|
-
const axios_1 = __importDefault(require("axios"));
|
|
17
|
-
const user_type_1 = require("../types/user-type");
|
|
18
|
-
class KushkiClient {
|
|
19
|
-
constructor(privateMerchantId, environment) {
|
|
20
|
-
this.privateMerchantId = privateMerchantId;
|
|
21
|
-
this.environment = environment;
|
|
22
|
-
this.baseUrl = `https://api${this.environment === "production" ? "." : "-uat."}kushkipagos.com`;
|
|
23
|
-
}
|
|
24
|
-
createPaymentLink(order, user, token) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
const body = {
|
|
27
|
-
token,
|
|
28
|
-
amount: {
|
|
29
|
-
currency: order.fiat,
|
|
30
|
-
subtotalIva: 0,
|
|
31
|
-
subtotalIva0: order.amountFiat,
|
|
32
|
-
iva: 0,
|
|
33
|
-
ice: 0,
|
|
34
|
-
},
|
|
35
|
-
contactDetails: {
|
|
36
|
-
firstName: user.firstName,
|
|
37
|
-
lastName: user.lastName,
|
|
38
|
-
email: user.email,
|
|
39
|
-
documentType: "CC",
|
|
40
|
-
phoneNumber: user.phoneNumber,
|
|
41
|
-
},
|
|
42
|
-
orderDetails: {
|
|
43
|
-
siteDomain: "riocrypto.com",
|
|
44
|
-
shippingDetails: {
|
|
45
|
-
name: `${user.firstName} ${user.lastName}`,
|
|
46
|
-
phone: user.phoneNumber,
|
|
47
|
-
address1: user.street1,
|
|
48
|
-
address2: user.street2,
|
|
49
|
-
city: user.city,
|
|
50
|
-
region: user.state,
|
|
51
|
-
country: user.country,
|
|
52
|
-
zipcode: user.postalCode,
|
|
53
|
-
},
|
|
54
|
-
billingDetails: {
|
|
55
|
-
name: `${user.firstName} ${user.lastName}`,
|
|
56
|
-
phone: user.phoneNumber,
|
|
57
|
-
address1: user.street1,
|
|
58
|
-
address2: user.street2,
|
|
59
|
-
city: user.city,
|
|
60
|
-
region: user.state,
|
|
61
|
-
country: user.country,
|
|
62
|
-
zipcode: user.postalCode,
|
|
63
|
-
},
|
|
64
|
-
product: {
|
|
65
|
-
id: order.id,
|
|
66
|
-
title: order.crypto,
|
|
67
|
-
price: order.amountFiat,
|
|
68
|
-
sku: order.id,
|
|
69
|
-
quantity: 1,
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
const response = yield (0, axios_1.default)({
|
|
74
|
-
method: "post",
|
|
75
|
-
url: `${this.baseUrl}/card/v1/charges`,
|
|
76
|
-
headers: {
|
|
77
|
-
"Content-Type": "application/json",
|
|
78
|
-
"Private-Merchant-Id": this.privateMerchantId,
|
|
79
|
-
"Accept-Encoding": "gzip,deflate,compress",
|
|
80
|
-
},
|
|
81
|
-
data: body,
|
|
82
|
-
});
|
|
83
|
-
const data = response.data;
|
|
84
|
-
return data;
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
createBankPaymentToken(order, user) {
|
|
88
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
const body = {
|
|
90
|
-
amount: {
|
|
91
|
-
subtotalIva: 0,
|
|
92
|
-
subtotalIva0: order.amountFiat,
|
|
93
|
-
iva: 0,
|
|
94
|
-
},
|
|
95
|
-
callbackUrl: "https://riocrypto.com",
|
|
96
|
-
userType: user.type === user_type_1.UserType.Business ? 1 : 0,
|
|
97
|
-
documentType: "CC",
|
|
98
|
-
documentNumber: "123456789",
|
|
99
|
-
paymentDescription: `Compra de ${order.crypto} en riocrypto.com`,
|
|
100
|
-
email: user.email,
|
|
101
|
-
currency: order.fiat,
|
|
102
|
-
};
|
|
103
|
-
const response = yield (0, axios_1.default)({
|
|
104
|
-
method: "post",
|
|
105
|
-
url: `${this.baseUrl}/transfer/v1/tokens`,
|
|
106
|
-
headers: {
|
|
107
|
-
"Content-Type": "application/json",
|
|
108
|
-
"Private-Merchant-Id": this.privateMerchantId,
|
|
109
|
-
"Accept-Encoding": "gzip,deflate,compress",
|
|
110
|
-
},
|
|
111
|
-
data: body,
|
|
112
|
-
});
|
|
113
|
-
const data = response.data;
|
|
114
|
-
return data;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
createBankPayment(order, user, token) {
|
|
118
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
const body = {
|
|
120
|
-
token,
|
|
121
|
-
amount: {
|
|
122
|
-
subtotalIva: 0,
|
|
123
|
-
subtotalIva0: order.amountFiat,
|
|
124
|
-
iva: 0,
|
|
125
|
-
},
|
|
126
|
-
contactDetails: {
|
|
127
|
-
fullName: user.type === user_type_1.UserType.Business
|
|
128
|
-
? user.companyName
|
|
129
|
-
: `${user.firstName} ${user.lastName}`,
|
|
130
|
-
email: user.email,
|
|
131
|
-
documentType: "CC",
|
|
132
|
-
phoneNumber: user.phoneNumber,
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
const response = yield (0, axios_1.default)({
|
|
136
|
-
method: "post",
|
|
137
|
-
url: `${this.baseUrl}/transfer/v1/init`,
|
|
138
|
-
headers: {
|
|
139
|
-
"Content-Type": "application/json",
|
|
140
|
-
"Private-Merchant-Id": this.privateMerchantId,
|
|
141
|
-
"Accept-Encoding": "gzip,deflate,compress",
|
|
142
|
-
},
|
|
143
|
-
data: body,
|
|
144
|
-
});
|
|
145
|
-
const data = response.data;
|
|
146
|
-
return data;
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
exports.kushkiClient = new KushkiClient(process.env.KUSHKI_PRIVATE_MERCHANT_ID, process.env.KUSHKI_ENV);
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosStatic } from "axios";
|
|
2
|
-
import { Admin } from "../types/admin";
|
|
3
|
-
import { Auth } from "../types/auth";
|
|
4
|
-
import { AuthUpdate } from "../types/auth-update";
|
|
5
|
-
import { BankPayout } from "../types/bank-payout";
|
|
6
|
-
import { BusinessUser } from "../types/business-user";
|
|
7
|
-
import { BusinessUserInput } from "../types/business-user-input";
|
|
8
|
-
import { BusinessUserUpdate } from "../types/business-user-update";
|
|
9
|
-
import { CheckedAddress } from "../types/checked-address";
|
|
10
|
-
import { Country } from "../types/country";
|
|
11
|
-
import { Fiat } from "../types/fiat";
|
|
12
|
-
import { Order } from "../types/order";
|
|
13
|
-
import { OrderInput } from "../types/order-input";
|
|
14
|
-
import { Partner } from "../types/partner";
|
|
15
|
-
import { PaymentMethod } from "../types/payment-method";
|
|
16
|
-
import { PayoutMethod } from "../types/payout-method";
|
|
17
|
-
import { RioSettings } from "../types/rio-settings";
|
|
18
|
-
import { RioSettingsUpdate } from "../types/rio-settings-update";
|
|
19
|
-
import { SecurityQuestion } from "../types/security-question";
|
|
20
|
-
import { User } from "../types/user";
|
|
21
|
-
import { UserInput } from "../types/user-input";
|
|
22
|
-
import { UserUpdate } from "../types/user-update";
|
|
23
|
-
export declare class RioClient {
|
|
24
|
-
private axios;
|
|
25
|
-
constructor(axios: AxiosStatic | AxiosInstance);
|
|
26
|
-
getOrders(): Promise<Order[]>;
|
|
27
|
-
getUsers(): Promise<User[]>;
|
|
28
|
-
getBusinessUsers(): Promise<BusinessUser[]>;
|
|
29
|
-
signin(email: string, password: string): Promise<any>;
|
|
30
|
-
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
31
|
-
updateBusinessUser(update: BusinessUserUpdate, businessUserId?: string): Promise<BusinessUser>;
|
|
32
|
-
updateAdminUserPassword({ password, newPassword, }: {
|
|
33
|
-
password: string;
|
|
34
|
-
newPassword: string;
|
|
35
|
-
}): Promise<Admin>;
|
|
36
|
-
getAdminUser(): Promise<any>;
|
|
37
|
-
signoutAdmin(): Promise<void>;
|
|
38
|
-
getRioSettings(): Promise<RioSettings>;
|
|
39
|
-
createRioSettings(rioSettings: {
|
|
40
|
-
platformFee: number;
|
|
41
|
-
}): Promise<void>;
|
|
42
|
-
updateRioSettings(update: RioSettingsUpdate): Promise<void>;
|
|
43
|
-
confirmBankPayment(orderId: string): Promise<any>;
|
|
44
|
-
getUser(): Promise<User>;
|
|
45
|
-
getBusinessUser(): Promise<BusinessUser>;
|
|
46
|
-
createUser(user: UserInput): Promise<void>;
|
|
47
|
-
createBusinessUser(businessUser: BusinessUserInput): Promise<BusinessUser>;
|
|
48
|
-
createBrokerCustomer(businessUser: BusinessUserInput): Promise<BusinessUser>;
|
|
49
|
-
sendPhoneAuthCode(phoneNumber: string): Promise<void>;
|
|
50
|
-
authExists(phoneNumber: string): Promise<boolean>;
|
|
51
|
-
uploadCOI(businessUserId: string, formData: FormData): Promise<BusinessUser>;
|
|
52
|
-
uploadKYCReport(businessUserId: string, formData: FormData): Promise<BusinessUser>;
|
|
53
|
-
getSecurityQuestion(): Promise<SecurityQuestion>;
|
|
54
|
-
signout(): Promise<void>;
|
|
55
|
-
verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
56
|
-
createAuth(password: string): Promise<void>;
|
|
57
|
-
createOrder(order: OrderInput): Promise<Order>;
|
|
58
|
-
getOrder(id: string): Promise<Order>;
|
|
59
|
-
initBankPayout(oid: string, accountNumber: string): Promise<BankPayout>;
|
|
60
|
-
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
61
|
-
checkAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
62
|
-
getSupportedPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
63
|
-
getBrokerCustomers(): Promise<BusinessUser[]>;
|
|
64
|
-
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
65
|
-
getPartnerLayout(partnerId: string): Promise<Partner>;
|
|
66
|
-
createClipCardPayment(orderId: string): Promise<{
|
|
67
|
-
paymentId: string;
|
|
68
|
-
paymentRequestUrl: string;
|
|
69
|
-
}>;
|
|
70
|
-
createConektaPayment(orderId: string): Promise<{
|
|
71
|
-
checkoutRequestId: string;
|
|
72
|
-
}>;
|
|
73
|
-
createKushkiPayment(orderId: string, token: string): Promise<{
|
|
74
|
-
paymentId: string;
|
|
75
|
-
}>;
|
|
76
|
-
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
77
|
-
createSPEIPayment(orderId: string): Promise<any>;
|
|
78
|
-
createSPIDPayment(orderId: string): Promise<any>;
|
|
79
|
-
createSWIFTPayment(orderId: string): Promise<any>;
|
|
80
|
-
createInterbankPayment(orderId: string): Promise<any>;
|
|
81
|
-
updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
|
|
82
|
-
}
|