@cuenca-mx/cuenca-js 1.2.2 → 2.0.0-dev1
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/CHANGELOG.md +19 -0
- package/build/data-2b32d8f3.mjs +634 -0
- package/build/data-70e6af8d.cjs +680 -0
- package/build/dts/client/client.d.ts +86 -0
- package/build/dts/client/index.d.ts +1 -0
- package/build/dts/errors.d.ts +25 -0
- package/build/dts/helpers/case.d.ts +5 -0
- package/build/dts/helpers/data.d.ts +3 -0
- package/build/dts/helpers/env.d.ts +7 -0
- package/build/dts/index.d.ts +55 -0
- package/build/dts/jwt.d.ts +8 -0
- package/build/dts/models/account.d.ts +12 -0
- package/build/dts/models/alert.d.ts +32 -0
- package/build/dts/models/apiKey.d.ts +13 -0
- package/build/dts/models/arpc.d.ts +10 -0
- package/build/dts/models/balanceEntry.d.ts +15 -0
- package/build/dts/models/baseUser.d.ts +23 -0
- package/build/dts/models/billPayment.d.ts +10 -0
- package/build/dts/models/bridgeAccount.d.ts +27 -0
- package/build/dts/models/bridgeBankAccount.d.ts +16 -0
- package/build/dts/models/bridgeClabe.d.ts +12 -0
- package/build/dts/models/bridgeTransaction.d.ts +32 -0
- package/build/dts/models/card.d.ts +19 -0
- package/build/dts/models/cardActivation.d.ts +12 -0
- package/build/dts/models/cardTransaction.d.ts +15 -0
- package/build/dts/models/cardValidation.d.ts +19 -0
- package/build/dts/models/commission.d.ts +9 -0
- package/build/dts/models/deposit.d.ts +11 -0
- package/build/dts/models/file.d.ts +10 -0
- package/build/dts/models/fraudFundsTransfer.d.ts +9 -0
- package/build/dts/models/index.d.ts +41 -0
- package/build/dts/models/kycValidations.d.ts +22 -0
- package/build/dts/models/legalPerson.d.ts +10 -0
- package/build/dts/models/loginToken.d.ts +7 -0
- package/build/dts/models/operator.d.ts +17 -0
- package/build/dts/models/operatorLogin.d.ts +7 -0
- package/build/dts/models/partner.d.ts +25 -0
- package/build/dts/models/postalCode.d.ts +14 -0
- package/build/dts/models/saving.d.ts +11 -0
- package/build/dts/models/serviceProvider.d.ts +10 -0
- package/build/dts/models/session.d.ts +14 -0
- package/build/dts/models/statement.d.ts +10 -0
- package/build/dts/models/transaction.d.ts +7 -0
- package/build/dts/models/transactionalProfile.d.ts +14 -0
- package/build/dts/models/transfer.d.ts +15 -0
- package/build/dts/models/user.d.ts +42 -0
- package/build/dts/models/userCredential.d.ts +10 -0
- package/build/dts/models/userLogin.d.ts +9 -0
- package/build/dts/models/userReport.d.ts +48 -0
- package/build/dts/models/userTosAgreement.d.ts +13 -0
- package/build/dts/models/verification.d.ts +12 -0
- package/build/dts/models/wallet.d.ts +8 -0
- package/build/dts/models/walletTransaction.d.ts +10 -0
- package/build/dts/models/whatsAppTransfer.d.ts +16 -0
- package/build/dts/requests/addressUpdateRequest.d.ts +17 -0
- package/build/dts/requests/alertRequest.d.ts +31 -0
- package/build/dts/requests/apiKeyRequest.d.ts +9 -0
- package/build/dts/requests/arpcRequest.d.ts +16 -0
- package/build/dts/requests/base.d.ts +2 -0
- package/build/dts/requests/cardActivationRequest.d.ts +11 -0
- package/build/dts/requests/cardRequest.d.ts +18 -0
- package/build/dts/requests/cardValidationRequest.d.ts +15 -0
- package/build/dts/requests/fileUploadRequest.d.ts +12 -0
- package/build/dts/requests/fraudFundsTransferRequest.d.ts +13 -0
- package/build/dts/requests/index.d.ts +28 -0
- package/build/dts/requests/kycValidationsRequest.d.ts +10 -0
- package/build/dts/requests/legalPersonRequest.d.ts +33 -0
- package/build/dts/requests/operatorLoginRequest.d.ts +9 -0
- package/build/dts/requests/operatorRequest.d.ts +24 -0
- package/build/dts/requests/partnerUserRequest.d.ts +100 -0
- package/build/dts/requests/reportGenerateRequest.d.ts +8 -0
- package/build/dts/requests/savingRequest.d.ts +11 -0
- package/build/dts/requests/sessionRequest.d.ts +12 -0
- package/build/dts/requests/tosUpdateRequest.d.ts +11 -0
- package/build/dts/requests/transferRequest.d.ts +12 -0
- package/build/dts/requests/transferUpdateRequest.d.ts +8 -0
- package/build/dts/requests/userCredentialRequest.d.ts +15 -0
- package/build/dts/requests/userLoginRequest.d.ts +8 -0
- package/build/dts/requests/userReportCreateRequest.d.ts +9 -0
- package/build/dts/requests/userReportUpdateRequest.d.ts +28 -0
- package/build/dts/requests/userRequest.d.ts +39 -0
- package/build/dts/requests/verificationRequest.d.ts +17 -0
- package/build/dts/requests/walletTransactionRequest.d.ts +9 -0
- package/build/dts/resources/accounts.d.ts +33 -0
- package/build/dts/resources/alerts.d.ts +54 -0
- package/build/dts/resources/apiKeys.d.ts +63 -0
- package/build/dts/resources/arpc.d.ts +18 -0
- package/build/dts/resources/balanceEntries.d.ts +37 -0
- package/build/dts/resources/base.d.ts +135 -0
- package/build/dts/resources/billPayments.d.ts +34 -0
- package/build/dts/resources/bridgeAccounts.d.ts +49 -0
- package/build/dts/resources/bridgeBankAccounts.d.ts +33 -0
- package/build/dts/resources/bridgeClabes.d.ts +27 -0
- package/build/dts/resources/bridgeTransactions.d.ts +36 -0
- package/build/dts/resources/cardActivations.d.ts +19 -0
- package/build/dts/resources/cardTransactions.d.ts +34 -0
- package/build/dts/resources/cardValidations.d.ts +19 -0
- package/build/dts/resources/cards.d.ts +63 -0
- package/build/dts/resources/commissions.d.ts +34 -0
- package/build/dts/resources/deposits.d.ts +34 -0
- package/build/dts/resources/files.d.ts +30 -0
- package/build/dts/resources/fraudFundsTransfers.d.ts +18 -0
- package/build/dts/resources/index.d.ts +39 -0
- package/build/dts/resources/kycValidations.d.ts +53 -0
- package/build/dts/resources/legalPersons.d.ts +54 -0
- package/build/dts/resources/loginTokens.d.ts +17 -0
- package/build/dts/resources/operatorLogins.d.ts +19 -0
- package/build/dts/resources/operators.d.ts +54 -0
- package/build/dts/resources/partners.d.ts +54 -0
- package/build/dts/resources/postalCodes.d.ts +24 -0
- package/build/dts/resources/reports.d.ts +8 -0
- package/build/dts/resources/savings.d.ts +62 -0
- package/build/dts/resources/serviceProviders.d.ts +32 -0
- package/build/dts/resources/sessions.d.ts +43 -0
- package/build/dts/resources/statements.d.ts +44 -0
- package/build/dts/resources/transfers.d.ts +64 -0
- package/build/dts/resources/userCredentials.d.ts +30 -0
- package/build/dts/resources/userLogins.d.ts +28 -0
- package/build/dts/resources/userReports.d.ts +54 -0
- package/build/dts/resources/users.d.ts +56 -0
- package/build/dts/resources/usersTosAgreements.d.ts +16 -0
- package/build/dts/resources/verifications.d.ts +31 -0
- package/build/dts/resources/walletTransactions.d.ts +48 -0
- package/build/dts/resources/whatsAppTransfers.d.ts +34 -0
- package/build/dts/types/enums.d.ts +590 -0
- package/build/dts/types/identities/address.d.ts +25 -0
- package/build/dts/types/identities/alertLog.d.ts +11 -0
- package/build/dts/types/identities/audit.d.ts +10 -0
- package/build/dts/types/identities/businessDetails.d.ts +9 -0
- package/build/dts/types/identities/externalAccount.d.ts +8 -0
- package/build/dts/types/identities/index.d.ts +17 -0
- package/build/dts/types/identities/kycFile.d.ts +14 -0
- package/build/dts/types/identities/legalRepresentatives.d.ts +12 -0
- package/build/dts/types/identities/license.d.ts +10 -0
- package/build/dts/types/identities/moralOperation.d.ts +8 -0
- package/build/dts/types/identities/physicalPerson.d.ts +12 -0
- package/build/dts/types/identities/shareholderMoral.d.ts +12 -0
- package/build/dts/types/identities/shareholderPhysical.d.ts +9 -0
- package/build/dts/types/identities/tosAgreements.d.ts +10 -0
- package/build/dts/types/identities/transactionalProfileServices.d.ts +10 -0
- package/build/dts/types/identities/verificationError.d.ts +10 -0
- package/build/dts/types/identities/vulnerableActivity.d.ts +10 -0
- package/build/dts/types/index.d.ts +3 -0
- package/build/dts/types/queries/accountQuery.d.ts +4 -0
- package/build/dts/types/queries/alertQuery.d.ts +12 -0
- package/build/dts/types/queries/apiKeyQuery.d.ts +4 -0
- package/build/dts/types/queries/balanceEntryQuery.d.ts +5 -0
- package/build/dts/types/queries/billPaymentQuery.d.ts +4 -0
- package/build/dts/types/queries/bridgeAccountQuery.d.ts +4 -0
- package/build/dts/types/queries/bridgeBankAccountQuery.d.ts +4 -0
- package/build/dts/types/queries/bridgeQuery.d.ts +7 -0
- package/build/dts/types/queries/bridgeTransactionQuery.d.ts +6 -0
- package/build/dts/types/queries/cardTransactionQuery.d.ts +4 -0
- package/build/dts/types/queries/cardsQuery.d.ts +4 -0
- package/build/dts/types/queries/depositQuery.d.ts +5 -0
- package/build/dts/types/queries/index.d.ts +27 -0
- package/build/dts/types/queries/operatorQuery.d.ts +4 -0
- package/build/dts/types/queries/partnerQuery.d.ts +4 -0
- package/build/dts/types/queries/postalCodeQuery.d.ts +4 -0
- package/build/dts/types/queries/queryParams.d.ts +15 -0
- package/build/dts/types/queries/statementQuery.d.ts +6 -0
- package/build/dts/types/queries/transactionQuery.d.ts +4 -0
- package/build/dts/types/queries/transferQuery.d.ts +7 -0
- package/build/dts/types/queries/userQuery.d.ts +11 -0
- package/build/dts/types/queries/userReportQuery.d.ts +4 -0
- package/build/dts/types/queries/walletQuery.d.ts +4 -0
- package/build/dts/types/queries/walletTransactionQuery.d.ts +4 -0
- package/build/errors/index.cjs +10 -0
- package/build/errors/index.mjs +10 -1
- package/build/index.cjs +1373 -2885
- package/build/index.mjs +1375 -2886
- package/build/jwt/index.cjs +11 -8
- package/build/jwt/index.mjs +11 -8
- package/build/requests/index.cjs +9 -22
- package/build/requests/index.mjs +2 -26
- package/build/types/index.cjs +20 -56
- package/build/types/index.mjs +9 -34
- package/build/umd/cuenca.umd.js +1 -1
- package/build/vulnerableActivity-17f0ce66.mjs +278 -0
- package/build/vulnerableActivity-3cb7b0ed.cjs +299 -0
- package/build/walletTransactionRequest-7f10c2a2.mjs +496 -0
- package/build/walletTransactionRequest-dd13c569.cjs +529 -0
- package/errors/index.d.ts +1 -0
- package/jwt/index.d.ts +1 -0
- package/package.json +26 -8
- package/requests/index.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/build/data-1fd00e5c.mjs +0 -1199
- package/build/data-72c37b60.cjs +0 -1240
- package/build/vulnerableActivity-7cc1734f.cjs +0 -867
- package/build/vulnerableActivity-bd344332.mjs +0 -831
- package/build/walletTransactionRequest-05d5305a.mjs +0 -1512
- package/build/walletTransactionRequest-c6a5c64d.cjs +0 -1539
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export class Client {
|
|
2
|
+
constructor({ apiKey, apiSecret, language, phase, }?: {
|
|
3
|
+
apiKey: any;
|
|
4
|
+
apiSecret: any;
|
|
5
|
+
language?: string | undefined;
|
|
6
|
+
phase?: "sandbox" | undefined;
|
|
7
|
+
});
|
|
8
|
+
phase: "sandbox";
|
|
9
|
+
basicAuth: {
|
|
10
|
+
apiKey: any;
|
|
11
|
+
apiSecret: any;
|
|
12
|
+
};
|
|
13
|
+
jwtToken: Jwt | null;
|
|
14
|
+
_defaultHeaders: {
|
|
15
|
+
'Accept-Language': string;
|
|
16
|
+
};
|
|
17
|
+
_sessionHeaders: {};
|
|
18
|
+
_timeout: number;
|
|
19
|
+
_session: {
|
|
20
|
+
request: (config: any) => Promise<{
|
|
21
|
+
data: any;
|
|
22
|
+
status: any;
|
|
23
|
+
headers: any;
|
|
24
|
+
}>;
|
|
25
|
+
};
|
|
26
|
+
get session(): {
|
|
27
|
+
request: (config: any) => Promise<{
|
|
28
|
+
data: any;
|
|
29
|
+
status: any;
|
|
30
|
+
headers: any;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
get origin(): string;
|
|
34
|
+
get authHeader(): string;
|
|
35
|
+
addHeadersToRequest(obj: any): {
|
|
36
|
+
eject: () => void;
|
|
37
|
+
};
|
|
38
|
+
deleteRequestHeader(header: any): {
|
|
39
|
+
eject: () => void;
|
|
40
|
+
};
|
|
41
|
+
configure({ apiKey, apiSecret, loginToken, phase, sessionId, useJwt, }: {
|
|
42
|
+
apiKey: any;
|
|
43
|
+
apiSecret: any;
|
|
44
|
+
loginToken: any;
|
|
45
|
+
phase: any;
|
|
46
|
+
sessionId: any;
|
|
47
|
+
useJwt?: boolean | undefined;
|
|
48
|
+
}): Promise<void>;
|
|
49
|
+
get({ endpoint, format, params, headers, responseType }: {
|
|
50
|
+
endpoint: any;
|
|
51
|
+
format: any;
|
|
52
|
+
params: any;
|
|
53
|
+
headers: any;
|
|
54
|
+
responseType: any;
|
|
55
|
+
}): Promise<any>;
|
|
56
|
+
post({ endpoint, data, multipart, headers, responseType }: {
|
|
57
|
+
endpoint: any;
|
|
58
|
+
data: any;
|
|
59
|
+
multipart: any;
|
|
60
|
+
headers: any;
|
|
61
|
+
responseType: any;
|
|
62
|
+
}): Promise<any>;
|
|
63
|
+
patch({ endpoint, data, headers }: {
|
|
64
|
+
endpoint: any;
|
|
65
|
+
data: any;
|
|
66
|
+
headers: any;
|
|
67
|
+
}): Promise<any>;
|
|
68
|
+
delete({ endpoint, data, headers }: {
|
|
69
|
+
endpoint: any;
|
|
70
|
+
data: any;
|
|
71
|
+
headers: any;
|
|
72
|
+
}): Promise<any>;
|
|
73
|
+
request({ endpoint, data, format, method, multipart, params, headers: extraHeaders, responseType, timeout, signal, }: {
|
|
74
|
+
endpoint: any;
|
|
75
|
+
data?: null | undefined;
|
|
76
|
+
format?: "application/json" | undefined;
|
|
77
|
+
method?: string | undefined;
|
|
78
|
+
multipart?: boolean | undefined;
|
|
79
|
+
params?: null | undefined;
|
|
80
|
+
headers?: null | undefined;
|
|
81
|
+
responseType: any;
|
|
82
|
+
timeout: any;
|
|
83
|
+
signal: any;
|
|
84
|
+
}): Promise<any>;
|
|
85
|
+
}
|
|
86
|
+
import { Jwt } from "..";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export class CuencaException extends Error {
|
|
2
|
+
constructor(msg: any);
|
|
3
|
+
}
|
|
4
|
+
export class CuencaResponseException extends CuencaException {
|
|
5
|
+
constructor(data: any, status: any);
|
|
6
|
+
data: any;
|
|
7
|
+
status: any;
|
|
8
|
+
}
|
|
9
|
+
export class NoResultFound extends CuencaException {
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
export class MultipleResultsFound extends CuencaException {
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
15
|
+
export class MalformedJwtToken extends CuencaException {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
export class InvalidPassword extends CuencaException {
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
21
|
+
export class ValidationError extends Error {
|
|
22
|
+
constructor(msg: any);
|
|
23
|
+
}
|
|
24
|
+
export class PaginationError extends CuencaException {
|
|
25
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type WireObject = Record<string, unknown>;
|
|
2
|
+
export declare function camelize(value: WireObject): WireObject;
|
|
3
|
+
export declare function camelize(value: unknown): unknown;
|
|
4
|
+
export declare function snakeize(value: WireObject): WireObject;
|
|
5
|
+
export declare function snakeize(value: unknown): unknown;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Client } from './client';
|
|
2
|
+
import { AccountResource, AlertResource, ApiKeyResource, ArpcResource, BalanceEntryResource, BillPaymentResource, BridgeAccountResource, BridgeBankAccountResource, BridgeClabeResource, BridgeTransactionResource, CardActivationResource, CardResource, CardTransactionResource, CardValidationResource, CommissionResource, DepositResource, FileResource, FraudFundsTransferResource, KYCValidationsResource, LegalPersonResource, LoginTokenResource, OperatorLoginResource, OperatorResource, PartnerResource, PostalCodeResource, ReportResource, SavingResource, ServiceProviderResource, SessionResource, StatementResource, TransferResource, UserCredentialResource, UserLoginResource, UserReportResource, UserResource, UsersTosAgreementsResource, VerificationResource, WalletTransactionsResource, WhatsAppTransferResource } from './resources';
|
|
3
|
+
interface CuencaOptions {
|
|
4
|
+
apiKey?: string;
|
|
5
|
+
apiSecret?: string;
|
|
6
|
+
language?: string;
|
|
7
|
+
phase?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class Cuenca {
|
|
10
|
+
client: Client;
|
|
11
|
+
accounts: AccountResource;
|
|
12
|
+
alerts: AlertResource;
|
|
13
|
+
apiKeys: ApiKeyResource;
|
|
14
|
+
arpc: ArpcResource;
|
|
15
|
+
balanceEntries: BalanceEntryResource;
|
|
16
|
+
billPayments: BillPaymentResource;
|
|
17
|
+
bridgeAccounts: BridgeAccountResource;
|
|
18
|
+
bridgeBankAccounts: BridgeBankAccountResource;
|
|
19
|
+
bridgeClabes: BridgeClabeResource;
|
|
20
|
+
bridgeKycValidations: KYCValidationsResource;
|
|
21
|
+
bridgeSessions: SessionResource;
|
|
22
|
+
bridgeTransactions: BridgeTransactionResource;
|
|
23
|
+
cardActivations: CardActivationResource;
|
|
24
|
+
cards: CardResource;
|
|
25
|
+
cardTransactions: CardTransactionResource;
|
|
26
|
+
cardValidations: CardValidationResource;
|
|
27
|
+
commissions: CommissionResource;
|
|
28
|
+
deposits: DepositResource;
|
|
29
|
+
files: FileResource;
|
|
30
|
+
fraudFundsTransfers: FraudFundsTransferResource;
|
|
31
|
+
kycValidations: KYCValidationsResource;
|
|
32
|
+
legalPersons: LegalPersonResource;
|
|
33
|
+
loginTokens: LoginTokenResource;
|
|
34
|
+
operatorLogins: OperatorLoginResource;
|
|
35
|
+
operators: OperatorResource;
|
|
36
|
+
partners: PartnerResource;
|
|
37
|
+
postalCodes: PostalCodeResource;
|
|
38
|
+
reports: ReportResource;
|
|
39
|
+
savings: SavingResource;
|
|
40
|
+
serviceProviders: ServiceProviderResource;
|
|
41
|
+
sessions: SessionResource;
|
|
42
|
+
statements: StatementResource;
|
|
43
|
+
transfers: TransferResource;
|
|
44
|
+
userCredentials: UserCredentialResource;
|
|
45
|
+
userLogins: UserLoginResource;
|
|
46
|
+
users: UserResource;
|
|
47
|
+
userReports: UserReportResource;
|
|
48
|
+
usersTosAgreements: UsersTosAgreementsResource;
|
|
49
|
+
verifications: VerificationResource;
|
|
50
|
+
walletTransactions: WalletTransactionsResource;
|
|
51
|
+
whatsAppTransfers: WhatsAppTransferResource;
|
|
52
|
+
constructor({ apiKey, apiSecret, language, phase, }?: CuencaOptions);
|
|
53
|
+
withClient(client: Client): void;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface Account {
|
|
3
|
+
accountNumber?: string;
|
|
4
|
+
createdAt?: Date | null;
|
|
5
|
+
id?: string;
|
|
6
|
+
institutionName?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
userId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Account: {
|
|
11
|
+
fromObject: (obj: WireObject) => Account;
|
|
12
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
import { AlertLog } from '../types';
|
|
3
|
+
export interface Alert {
|
|
4
|
+
accountNumber?: string;
|
|
5
|
+
actualPeriodCount?: number;
|
|
6
|
+
actualPeriodSum?: number;
|
|
7
|
+
agent?: string;
|
|
8
|
+
aggregationType?: string;
|
|
9
|
+
changeLog?: AlertLog[];
|
|
10
|
+
comments?: string;
|
|
11
|
+
committeeMeetingDate?: Date | null;
|
|
12
|
+
createdAt?: Date | null;
|
|
13
|
+
questionnaireId?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
hasQuestionnaire?: boolean;
|
|
16
|
+
id?: string;
|
|
17
|
+
institutionName?: string;
|
|
18
|
+
level?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
period?: string;
|
|
21
|
+
periodNumber?: number;
|
|
22
|
+
status?: string;
|
|
23
|
+
sourceType?: string;
|
|
24
|
+
transactionDate?: Date | null;
|
|
25
|
+
type?: string;
|
|
26
|
+
typeOfFilter?: string;
|
|
27
|
+
userId?: string;
|
|
28
|
+
updatedAt?: Date | null;
|
|
29
|
+
}
|
|
30
|
+
export declare const Alert: {
|
|
31
|
+
fromObject: (obj: WireObject) => Alert;
|
|
32
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface ApiKey {
|
|
3
|
+
createdAt?: Date | null;
|
|
4
|
+
deactivatedAt?: Date | null;
|
|
5
|
+
id?: string;
|
|
6
|
+
secret?: string;
|
|
7
|
+
userId?: string;
|
|
8
|
+
updatedAt?: Date | null;
|
|
9
|
+
}
|
|
10
|
+
export declare const ApiKey: {
|
|
11
|
+
fromObject: (obj: WireObject) => ApiKey;
|
|
12
|
+
isActive: (apiKey: ApiKey) => boolean;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface BalanceEntry {
|
|
3
|
+
amount?: number;
|
|
4
|
+
createdAt?: Date | null;
|
|
5
|
+
descriptor?: string;
|
|
6
|
+
entryType?: string;
|
|
7
|
+
fundingInstrumentUri?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
relatedTransactionUri?: string;
|
|
11
|
+
rollingBalance?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const BalanceEntry: {
|
|
14
|
+
fromObject: (obj: WireObject) => BalanceEntry;
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
import { Address } from '../types';
|
|
3
|
+
export interface BaseUser {
|
|
4
|
+
address?: Address;
|
|
5
|
+
clabe?: string;
|
|
6
|
+
emailAddress?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
level?: number;
|
|
9
|
+
meta?: WireObject;
|
|
10
|
+
nationality?: string;
|
|
11
|
+
platformId?: string;
|
|
12
|
+
phoneNumber?: string;
|
|
13
|
+
requiredLevel?: number;
|
|
14
|
+
rfc?: string;
|
|
15
|
+
status?: string;
|
|
16
|
+
createdAt?: Date | null;
|
|
17
|
+
updatedAt?: Date | null;
|
|
18
|
+
userType?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const BaseUser: {
|
|
21
|
+
fromObject: (obj: WireObject) => BaseUser;
|
|
22
|
+
};
|
|
23
|
+
export default BaseUser;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
import { Transaction } from './transaction';
|
|
3
|
+
export interface BillPayment extends Transaction {
|
|
4
|
+
accountNumber?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
providerUri?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const BillPayment: {
|
|
9
|
+
fromObject: (obj: WireObject) => BillPayment;
|
|
10
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
import { Address, KYCFile, TOSAgreements } from '../types';
|
|
3
|
+
export interface BridgeAccount {
|
|
4
|
+
id?: string;
|
|
5
|
+
createdAt?: Date | null;
|
|
6
|
+
updatedAt?: Date | null;
|
|
7
|
+
names?: string;
|
|
8
|
+
firstSurname?: string;
|
|
9
|
+
secondSurname?: string;
|
|
10
|
+
dateOfBirth?: string;
|
|
11
|
+
countryOfBirth?: string;
|
|
12
|
+
rfc?: string;
|
|
13
|
+
curp?: string;
|
|
14
|
+
userId?: string;
|
|
15
|
+
gender?: string;
|
|
16
|
+
phoneNumber?: string;
|
|
17
|
+
emailAddress?: string;
|
|
18
|
+
clientClabe?: string;
|
|
19
|
+
govtId?: KYCFile;
|
|
20
|
+
proofOfAddress?: KYCFile;
|
|
21
|
+
status?: string;
|
|
22
|
+
termsOfService?: TOSAgreements;
|
|
23
|
+
address?: Address;
|
|
24
|
+
}
|
|
25
|
+
export declare const BridgeAccount: {
|
|
26
|
+
fromObject: (obj: WireObject) => BridgeAccount;
|
|
27
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface BridgeBankAccount {
|
|
3
|
+
clabe?: string;
|
|
4
|
+
createdAt?: Date | null;
|
|
5
|
+
curp?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
firstName?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
names?: string;
|
|
10
|
+
rfc?: string;
|
|
11
|
+
secondSurname?: string;
|
|
12
|
+
status?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const BridgeBankAccount: {
|
|
15
|
+
fromObject: (obj: WireObject) => BridgeBankAccount;
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface BridgeClabe {
|
|
3
|
+
account?: string | undefined;
|
|
4
|
+
clabe?: string | undefined;
|
|
5
|
+
currency?: string | undefined;
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
network?: string | undefined;
|
|
8
|
+
platformId?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const BridgeClabe: {
|
|
11
|
+
fromObject: (obj: WireObject) => BridgeClabe;
|
|
12
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface BridgeTransaction {
|
|
3
|
+
id?: string;
|
|
4
|
+
createdAt?: Date | null;
|
|
5
|
+
platformId?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
status?: string;
|
|
8
|
+
accountUri?: string;
|
|
9
|
+
quoteUri?: string;
|
|
10
|
+
currency?: string;
|
|
11
|
+
network?: string;
|
|
12
|
+
sourceWallet?: string;
|
|
13
|
+
destinationWallet?: string;
|
|
14
|
+
bankAccountUri?: string;
|
|
15
|
+
cuencaId?: string;
|
|
16
|
+
cuentaOrdenante?: string;
|
|
17
|
+
cuentaBeneficiario?: string;
|
|
18
|
+
nombreOrdenante?: string;
|
|
19
|
+
claveRastreo?: string;
|
|
20
|
+
rfcCurpOrdenante?: string;
|
|
21
|
+
concepto?: string;
|
|
22
|
+
referenciaNumerica?: number;
|
|
23
|
+
signature?: string;
|
|
24
|
+
trackingLink?: string;
|
|
25
|
+
fromCurrency?: string;
|
|
26
|
+
toCurrency?: string;
|
|
27
|
+
fromAmount?: number;
|
|
28
|
+
toAmount?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare const BridgeTransaction: {
|
|
31
|
+
fromObject: (obj: WireObject) => BridgeTransaction;
|
|
32
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface Card {
|
|
3
|
+
createdAt?: Date | null;
|
|
4
|
+
cvv2?: string;
|
|
5
|
+
expMonth?: number;
|
|
6
|
+
expYear?: number;
|
|
7
|
+
fundingType?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
issuer?: string;
|
|
10
|
+
number?: string;
|
|
11
|
+
pin?: string;
|
|
12
|
+
status?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
updatedAt?: Date | null;
|
|
15
|
+
userId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Card: {
|
|
18
|
+
fromObject: (obj: WireObject) => Card;
|
|
19
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface CardActivation {
|
|
3
|
+
cardUri?: string;
|
|
4
|
+
createdAt?: Date | null;
|
|
5
|
+
id?: string;
|
|
6
|
+
ipAddress?: string;
|
|
7
|
+
success?: boolean;
|
|
8
|
+
userId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const CardActivation: {
|
|
11
|
+
fromObject: (obj: WireObject) => CardActivation;
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
import { Transaction } from './transaction';
|
|
3
|
+
export interface CardTransaction extends Transaction {
|
|
4
|
+
cardErrorType?: string;
|
|
5
|
+
cardLastFour?: string;
|
|
6
|
+
cardType?: string;
|
|
7
|
+
cardUri?: string;
|
|
8
|
+
metadata?: WireObject;
|
|
9
|
+
network?: string;
|
|
10
|
+
relatedCardTransactionsUris?: unknown[];
|
|
11
|
+
type?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const CardTransaction: {
|
|
14
|
+
fromObject: (obj: WireObject) => CardTransaction;
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface CardValidation {
|
|
3
|
+
cardStatus?: string;
|
|
4
|
+
cardType?: string;
|
|
5
|
+
cardUri?: string;
|
|
6
|
+
createdAt?: Date | null;
|
|
7
|
+
isExpired?: boolean;
|
|
8
|
+
isPinAttemptsExceeded?: boolean;
|
|
9
|
+
isValidCvv?: boolean;
|
|
10
|
+
isValidCvv2?: boolean;
|
|
11
|
+
isValidExpDate?: boolean;
|
|
12
|
+
isValidIcvv?: boolean;
|
|
13
|
+
isValidPinBlock?: boolean;
|
|
14
|
+
userId?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const CardValidation: {
|
|
17
|
+
fromObject: (obj: WireObject) => CardValidation;
|
|
18
|
+
isActive: (validation: CardValidation) => boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
import { Transaction } from './transaction';
|
|
3
|
+
export interface Commission extends Transaction {
|
|
4
|
+
relatedTransactionUri?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Commission: {
|
|
8
|
+
fromObject: (obj: WireObject) => Commission;
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
import { Transaction } from './transaction';
|
|
3
|
+
export interface Deposit extends Transaction {
|
|
4
|
+
id?: string;
|
|
5
|
+
network?: string;
|
|
6
|
+
sourceUri?: string;
|
|
7
|
+
trackingKey?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Deposit: {
|
|
10
|
+
fromObject: (obj: WireObject) => Deposit;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface FraudFundsTransfer {
|
|
3
|
+
transactionId?: string | null;
|
|
4
|
+
amount?: number | null;
|
|
5
|
+
claveRastreo?: string | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const FraudFundsTransfer: {
|
|
8
|
+
fromObject: (obj: WireObject) => FraudFundsTransfer;
|
|
9
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { Account } from './account';
|
|
2
|
+
export { Alert } from './alert';
|
|
3
|
+
export { ApiKey } from './apiKey';
|
|
4
|
+
export { Arpc } from './arpc';
|
|
5
|
+
export { BalanceEntry } from './balanceEntry';
|
|
6
|
+
export { BillPayment } from './billPayment';
|
|
7
|
+
export { BridgeAccount } from './bridgeAccount';
|
|
8
|
+
export { BridgeBankAccount } from './bridgeBankAccount';
|
|
9
|
+
export { BridgeClabe } from './bridgeClabe';
|
|
10
|
+
export { BridgeTransaction } from './bridgeTransaction';
|
|
11
|
+
export { Card } from './card';
|
|
12
|
+
export { CardActivation } from './cardActivation';
|
|
13
|
+
export { CardTransaction } from './cardTransaction';
|
|
14
|
+
export { CardValidation } from './cardValidation';
|
|
15
|
+
export { Commission } from './commission';
|
|
16
|
+
export { Deposit } from './deposit';
|
|
17
|
+
export { File } from './file';
|
|
18
|
+
export { FraudFundsTransfer } from './fraudFundsTransfer';
|
|
19
|
+
export { KYCValidations } from './kycValidations';
|
|
20
|
+
export { LegalPerson } from './legalPerson';
|
|
21
|
+
export { LoginToken } from './loginToken';
|
|
22
|
+
export { Operator } from './operator';
|
|
23
|
+
export { OperatorLogin } from './operatorLogin';
|
|
24
|
+
export { Partner } from './partner';
|
|
25
|
+
export { PostalCode } from './postalCode';
|
|
26
|
+
export { Saving } from './saving';
|
|
27
|
+
export { ServiceProvider } from './serviceProvider';
|
|
28
|
+
export { Session } from './session';
|
|
29
|
+
export { Statement } from './statement';
|
|
30
|
+
export type { Transaction } from './transaction';
|
|
31
|
+
export { TransactionalProfile } from './transactionalProfile';
|
|
32
|
+
export { Transfer } from './transfer';
|
|
33
|
+
export { User } from './user';
|
|
34
|
+
export { UserCredential } from './userCredential';
|
|
35
|
+
export { UserLogin } from './userLogin';
|
|
36
|
+
export { UserReport } from './userReport';
|
|
37
|
+
export { UserTosAgreement } from './userTosAgreement';
|
|
38
|
+
export { Verification } from './verification';
|
|
39
|
+
export type { Wallet } from './wallet';
|
|
40
|
+
export { WalletTransaction } from './walletTransaction';
|
|
41
|
+
export { WhatsAppTransfer } from './whatsAppTransfer';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
export interface KYCValidations {
|
|
3
|
+
id?: string;
|
|
4
|
+
createdAt?: Date | null;
|
|
5
|
+
updatedAt?: Date | null;
|
|
6
|
+
deactivatedAt?: Date | null;
|
|
7
|
+
platformId?: string;
|
|
8
|
+
filesUri?: unknown[];
|
|
9
|
+
userId?: string;
|
|
10
|
+
verificationId?: string;
|
|
11
|
+
identityId?: string;
|
|
12
|
+
govtIdStatus?: string;
|
|
13
|
+
proofOfAddressStatus?: string;
|
|
14
|
+
proofOfLifeStatus?: string;
|
|
15
|
+
sourceType?: string;
|
|
16
|
+
flowId?: string;
|
|
17
|
+
status?: string;
|
|
18
|
+
providerUrl?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const KYCValidations: {
|
|
21
|
+
fromObject: (obj: WireObject) => KYCValidations;
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
import { LegalRepresentatives } from '../types';
|
|
3
|
+
import { BaseUser } from './baseUser';
|
|
4
|
+
export interface LegalPerson extends BaseUser {
|
|
5
|
+
legalName?: string;
|
|
6
|
+
legalRepresentatives?: LegalRepresentatives[];
|
|
7
|
+
}
|
|
8
|
+
export declare const LegalPerson: {
|
|
9
|
+
fromObject: (obj: WireObject) => LegalPerson;
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WireObject } from '../helpers/case';
|
|
2
|
+
import { OperatorRole, OperatorStatus } from '../types';
|
|
3
|
+
export interface Operator {
|
|
4
|
+
id?: string;
|
|
5
|
+
createdAt?: Date | null;
|
|
6
|
+
updatedAt?: Date | null;
|
|
7
|
+
platformId?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
phone?: string;
|
|
11
|
+
companyUserId?: string;
|
|
12
|
+
role?: OperatorRole;
|
|
13
|
+
status?: OperatorStatus;
|
|
14
|
+
}
|
|
15
|
+
export declare const Operator: {
|
|
16
|
+
fromObject: (obj: WireObject) => Operator;
|
|
17
|
+
};
|