@cuenca-mx/cuenca-js 1.2.2 → 2.0.0-dev0

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.
Files changed (183) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/build/data-91da6d58.mjs +625 -0
  3. package/build/data-ca00ac2d.cjs +669 -0
  4. package/build/dts/client/client.d.ts +86 -0
  5. package/build/dts/client/index.d.ts +1 -0
  6. package/build/dts/errors.d.ts +25 -0
  7. package/build/dts/helpers/case.d.ts +5 -0
  8. package/build/dts/helpers/data.d.ts +3 -0
  9. package/build/dts/helpers/env.d.ts +7 -0
  10. package/build/dts/index.d.ts +52 -0
  11. package/build/dts/jwt.d.ts +8 -0
  12. package/build/dts/models/account.d.ts +12 -0
  13. package/build/dts/models/alert.d.ts +32 -0
  14. package/build/dts/models/apiKey.d.ts +13 -0
  15. package/build/dts/models/arpc.d.ts +10 -0
  16. package/build/dts/models/balanceEntry.d.ts +15 -0
  17. package/build/dts/models/baseUser.d.ts +23 -0
  18. package/build/dts/models/billPayment.d.ts +10 -0
  19. package/build/dts/models/bridgeAccount.d.ts +27 -0
  20. package/build/dts/models/bridgeBankAccount.d.ts +16 -0
  21. package/build/dts/models/bridgeClabe.d.ts +12 -0
  22. package/build/dts/models/bridgeTransaction.d.ts +32 -0
  23. package/build/dts/models/card.d.ts +19 -0
  24. package/build/dts/models/cardActivation.d.ts +12 -0
  25. package/build/dts/models/cardTransaction.d.ts +15 -0
  26. package/build/dts/models/cardValidation.d.ts +19 -0
  27. package/build/dts/models/commission.d.ts +9 -0
  28. package/build/dts/models/deposit.d.ts +11 -0
  29. package/build/dts/models/file.d.ts +10 -0
  30. package/build/dts/models/fraudFundsTransfer.d.ts +9 -0
  31. package/build/dts/models/index.d.ts +38 -0
  32. package/build/dts/models/kycValidations.d.ts +22 -0
  33. package/build/dts/models/loginToken.d.ts +7 -0
  34. package/build/dts/models/partner.d.ts +25 -0
  35. package/build/dts/models/postalCode.d.ts +14 -0
  36. package/build/dts/models/saving.d.ts +11 -0
  37. package/build/dts/models/serviceProvider.d.ts +10 -0
  38. package/build/dts/models/session.d.ts +14 -0
  39. package/build/dts/models/statement.d.ts +10 -0
  40. package/build/dts/models/transaction.d.ts +7 -0
  41. package/build/dts/models/transactionalProfile.d.ts +14 -0
  42. package/build/dts/models/transfer.d.ts +15 -0
  43. package/build/dts/models/user.d.ts +42 -0
  44. package/build/dts/models/userCredential.d.ts +10 -0
  45. package/build/dts/models/userLogin.d.ts +9 -0
  46. package/build/dts/models/userReport.d.ts +48 -0
  47. package/build/dts/models/userTosAgreement.d.ts +13 -0
  48. package/build/dts/models/verification.d.ts +12 -0
  49. package/build/dts/models/wallet.d.ts +8 -0
  50. package/build/dts/models/walletTransaction.d.ts +10 -0
  51. package/build/dts/models/whatsAppTransfer.d.ts +16 -0
  52. package/build/dts/requests/addressUpdateRequest.d.ts +17 -0
  53. package/build/dts/requests/alertRequest.d.ts +31 -0
  54. package/build/dts/requests/apiKeyRequest.d.ts +9 -0
  55. package/build/dts/requests/arpcRequest.d.ts +16 -0
  56. package/build/dts/requests/base.d.ts +2 -0
  57. package/build/dts/requests/cardActivationRequest.d.ts +11 -0
  58. package/build/dts/requests/cardRequest.d.ts +18 -0
  59. package/build/dts/requests/cardValidationRequest.d.ts +15 -0
  60. package/build/dts/requests/fileUploadRequest.d.ts +12 -0
  61. package/build/dts/requests/fraudFundsTransferRequest.d.ts +13 -0
  62. package/build/dts/requests/index.d.ts +24 -0
  63. package/build/dts/requests/kycValidationsRequest.d.ts +10 -0
  64. package/build/dts/requests/partnerUserRequest.d.ts +100 -0
  65. package/build/dts/requests/reportGenerateRequest.d.ts +8 -0
  66. package/build/dts/requests/savingRequest.d.ts +11 -0
  67. package/build/dts/requests/sessionRequest.d.ts +12 -0
  68. package/build/dts/requests/tosUpdateRequest.d.ts +11 -0
  69. package/build/dts/requests/transferRequest.d.ts +12 -0
  70. package/build/dts/requests/transferUpdateRequest.d.ts +8 -0
  71. package/build/dts/requests/userCredentialRequest.d.ts +15 -0
  72. package/build/dts/requests/userLoginRequest.d.ts +8 -0
  73. package/build/dts/requests/userReportCreateRequest.d.ts +9 -0
  74. package/build/dts/requests/userReportUpdateRequest.d.ts +28 -0
  75. package/build/dts/requests/userRequest.d.ts +39 -0
  76. package/build/dts/requests/verificationRequest.d.ts +17 -0
  77. package/build/dts/requests/walletTransactionRequest.d.ts +9 -0
  78. package/build/dts/resources/accounts.d.ts +33 -0
  79. package/build/dts/resources/alerts.d.ts +54 -0
  80. package/build/dts/resources/apiKeys.d.ts +63 -0
  81. package/build/dts/resources/arpc.d.ts +18 -0
  82. package/build/dts/resources/balanceEntries.d.ts +37 -0
  83. package/build/dts/resources/base.d.ts +135 -0
  84. package/build/dts/resources/billPayments.d.ts +34 -0
  85. package/build/dts/resources/bridgeAccounts.d.ts +49 -0
  86. package/build/dts/resources/bridgeBankAccounts.d.ts +33 -0
  87. package/build/dts/resources/bridgeClabes.d.ts +27 -0
  88. package/build/dts/resources/bridgeTransactions.d.ts +36 -0
  89. package/build/dts/resources/cardActivations.d.ts +19 -0
  90. package/build/dts/resources/cardTransactions.d.ts +34 -0
  91. package/build/dts/resources/cardValidations.d.ts +19 -0
  92. package/build/dts/resources/cards.d.ts +63 -0
  93. package/build/dts/resources/commissions.d.ts +34 -0
  94. package/build/dts/resources/deposits.d.ts +34 -0
  95. package/build/dts/resources/files.d.ts +30 -0
  96. package/build/dts/resources/fraudFundsTransfers.d.ts +18 -0
  97. package/build/dts/resources/index.d.ts +36 -0
  98. package/build/dts/resources/kycValidations.d.ts +53 -0
  99. package/build/dts/resources/loginTokens.d.ts +17 -0
  100. package/build/dts/resources/partners.d.ts +54 -0
  101. package/build/dts/resources/postalCodes.d.ts +24 -0
  102. package/build/dts/resources/reports.d.ts +8 -0
  103. package/build/dts/resources/savings.d.ts +62 -0
  104. package/build/dts/resources/serviceProviders.d.ts +32 -0
  105. package/build/dts/resources/sessions.d.ts +43 -0
  106. package/build/dts/resources/statements.d.ts +44 -0
  107. package/build/dts/resources/transfers.d.ts +64 -0
  108. package/build/dts/resources/userCredentials.d.ts +30 -0
  109. package/build/dts/resources/userLogins.d.ts +28 -0
  110. package/build/dts/resources/userReports.d.ts +54 -0
  111. package/build/dts/resources/users.d.ts +56 -0
  112. package/build/dts/resources/usersTosAgreements.d.ts +16 -0
  113. package/build/dts/resources/verifications.d.ts +31 -0
  114. package/build/dts/resources/walletTransactions.d.ts +48 -0
  115. package/build/dts/resources/whatsAppTransfers.d.ts +34 -0
  116. package/build/dts/types/enums.d.ts +579 -0
  117. package/build/dts/types/identities/address.d.ts +25 -0
  118. package/build/dts/types/identities/alertLog.d.ts +11 -0
  119. package/build/dts/types/identities/audit.d.ts +10 -0
  120. package/build/dts/types/identities/businessDetails.d.ts +9 -0
  121. package/build/dts/types/identities/externalAccount.d.ts +8 -0
  122. package/build/dts/types/identities/index.d.ts +17 -0
  123. package/build/dts/types/identities/kycFile.d.ts +14 -0
  124. package/build/dts/types/identities/legalRepresentatives.d.ts +12 -0
  125. package/build/dts/types/identities/license.d.ts +10 -0
  126. package/build/dts/types/identities/moralOperation.d.ts +8 -0
  127. package/build/dts/types/identities/physicalPerson.d.ts +12 -0
  128. package/build/dts/types/identities/shareholderMoral.d.ts +12 -0
  129. package/build/dts/types/identities/shareholderPhysical.d.ts +9 -0
  130. package/build/dts/types/identities/tosAgreements.d.ts +10 -0
  131. package/build/dts/types/identities/transactionalProfileServices.d.ts +10 -0
  132. package/build/dts/types/identities/verificationError.d.ts +10 -0
  133. package/build/dts/types/identities/vulnerableActivity.d.ts +10 -0
  134. package/build/dts/types/index.d.ts +3 -0
  135. package/build/dts/types/queries/accountQuery.d.ts +4 -0
  136. package/build/dts/types/queries/alertQuery.d.ts +12 -0
  137. package/build/dts/types/queries/apiKeyQuery.d.ts +4 -0
  138. package/build/dts/types/queries/balanceEntryQuery.d.ts +5 -0
  139. package/build/dts/types/queries/billPaymentQuery.d.ts +4 -0
  140. package/build/dts/types/queries/bridgeAccountQuery.d.ts +4 -0
  141. package/build/dts/types/queries/bridgeBankAccountQuery.d.ts +4 -0
  142. package/build/dts/types/queries/bridgeQuery.d.ts +7 -0
  143. package/build/dts/types/queries/bridgeTransactionQuery.d.ts +6 -0
  144. package/build/dts/types/queries/cardTransactionQuery.d.ts +4 -0
  145. package/build/dts/types/queries/cardsQuery.d.ts +4 -0
  146. package/build/dts/types/queries/depositQuery.d.ts +5 -0
  147. package/build/dts/types/queries/index.d.ts +26 -0
  148. package/build/dts/types/queries/partnerQuery.d.ts +4 -0
  149. package/build/dts/types/queries/postalCodeQuery.d.ts +4 -0
  150. package/build/dts/types/queries/queryParams.d.ts +15 -0
  151. package/build/dts/types/queries/statementQuery.d.ts +6 -0
  152. package/build/dts/types/queries/transactionQuery.d.ts +4 -0
  153. package/build/dts/types/queries/transferQuery.d.ts +7 -0
  154. package/build/dts/types/queries/userQuery.d.ts +11 -0
  155. package/build/dts/types/queries/userReportQuery.d.ts +4 -0
  156. package/build/dts/types/queries/walletQuery.d.ts +4 -0
  157. package/build/dts/types/queries/walletTransactionQuery.d.ts +4 -0
  158. package/build/errors/index.cjs +10 -0
  159. package/build/errors/index.mjs +10 -1
  160. package/build/index.cjs +1305 -2894
  161. package/build/index.mjs +1307 -2895
  162. package/build/jwt/index.cjs +11 -8
  163. package/build/jwt/index.mjs +11 -8
  164. package/build/requests/index.cjs +4 -22
  165. package/build/requests/index.mjs +2 -26
  166. package/build/types/index.cjs +18 -56
  167. package/build/types/index.mjs +9 -34
  168. package/build/umd/cuenca.umd.js +1 -1
  169. package/build/vulnerableActivity-61dc2846.mjs +278 -0
  170. package/build/vulnerableActivity-d5aed4a7.cjs +299 -0
  171. package/build/walletTransactionRequest-aab46c5e.cjs +461 -0
  172. package/build/walletTransactionRequest-dc11fc69.mjs +433 -0
  173. package/errors/index.d.ts +1 -0
  174. package/jwt/index.d.ts +1 -0
  175. package/package.json +26 -8
  176. package/requests/index.d.ts +1 -0
  177. package/types/index.d.ts +1 -0
  178. package/build/data-1fd00e5c.mjs +0 -1199
  179. package/build/data-72c37b60.cjs +0 -1240
  180. package/build/vulnerableActivity-7cc1734f.cjs +0 -867
  181. package/build/vulnerableActivity-bd344332.mjs +0 -831
  182. package/build/walletTransactionRequest-05d5305a.mjs +0 -1512
  183. 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,3 @@
1
+ export function dateToUTC(date: any): Date | null;
2
+ export function coerceDates(obj: any, fields: any): any;
3
+ export function coerceDatesWithDefaults(obj: any, fields: any): any;
@@ -0,0 +1,7 @@
1
+ export namespace runtimeEnv {
2
+ export { isBrowser };
3
+ export { isNode };
4
+ }
5
+ declare const isBrowser: boolean;
6
+ declare const isNode: boolean;
7
+ export {};
@@ -0,0 +1,52 @@
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, LoginTokenResource, 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
+ loginTokens: LoginTokenResource;
33
+ partners: PartnerResource;
34
+ postalCodes: PostalCodeResource;
35
+ reports: ReportResource;
36
+ savings: SavingResource;
37
+ serviceProviders: ServiceProviderResource;
38
+ sessions: SessionResource;
39
+ statements: StatementResource;
40
+ transfers: TransferResource;
41
+ userCredentials: UserCredentialResource;
42
+ userLogins: UserLoginResource;
43
+ users: UserResource;
44
+ userReports: UserReportResource;
45
+ usersTosAgreements: UsersTosAgreementsResource;
46
+ verifications: VerificationResource;
47
+ walletTransactions: WalletTransactionsResource;
48
+ whatsAppTransfers: WhatsAppTransferResource;
49
+ constructor({ apiKey, apiSecret, language, phase, }?: CuencaOptions);
50
+ withClient(client: Client): void;
51
+ }
52
+ export {};
@@ -0,0 +1,8 @@
1
+ export class Jwt {
2
+ static getExpirationDate: (token: any) => Date;
3
+ static create: (client: any) => Promise<Jwt>;
4
+ constructor(expiresAt: any, token: any);
5
+ expiresAt: any;
6
+ token: any;
7
+ get isExpired(): boolean;
8
+ }
@@ -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,10 @@
1
+ import { WireObject } from '../helpers/case';
2
+ export interface Arpc {
3
+ arpc?: string;
4
+ createdAt?: Date | null;
5
+ cardUri?: string;
6
+ isValidArqc?: boolean;
7
+ }
8
+ export declare const Arpc: {
9
+ fromObject: (obj: WireObject) => Arpc;
10
+ };
@@ -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,10 @@
1
+ import { WireObject } from '../helpers/case';
2
+ export interface File {
3
+ extension?: string;
4
+ type?: string;
5
+ url?: string;
6
+ userId?: string;
7
+ }
8
+ export declare const File: {
9
+ fromObject: (obj: WireObject) => File;
10
+ };
@@ -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,38 @@
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 { LoginToken } from './loginToken';
21
+ export { Partner } from './partner';
22
+ export { PostalCode } from './postalCode';
23
+ export { Saving } from './saving';
24
+ export { ServiceProvider } from './serviceProvider';
25
+ export { Session } from './session';
26
+ export { Statement } from './statement';
27
+ export type { Transaction } from './transaction';
28
+ export { TransactionalProfile } from './transactionalProfile';
29
+ export { Transfer } from './transfer';
30
+ export { User } from './user';
31
+ export { UserCredential } from './userCredential';
32
+ export { UserLogin } from './userLogin';
33
+ export { UserReport } from './userReport';
34
+ export { UserTosAgreement } from './userTosAgreement';
35
+ export { Verification } from './verification';
36
+ export type { Wallet } from './wallet';
37
+ export { WalletTransaction } from './walletTransaction';
38
+ 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,7 @@
1
+ import { WireObject } from '../helpers/case';
2
+ export interface LoginToken {
3
+ id?: string | undefined;
4
+ }
5
+ export declare const LoginToken: {
6
+ fromObject: (obj: WireObject) => LoginToken;
7
+ };
@@ -0,0 +1,25 @@
1
+ import { WireObject } from '../helpers/case';
2
+ import { Audit, BusinessDetails, ExternalAccount, LegalRepresentatives, License, ShareholderMoral, VulnerableActivity } from '../types';
3
+ import { BaseUser } from './baseUser';
4
+ import { TransactionalProfile } from './transactionalProfile';
5
+ export interface Partner extends BaseUser {
6
+ audit?: Audit;
7
+ businessModel?: WireObject;
8
+ businessName?: string;
9
+ businessDetails?: BusinessDetails;
10
+ documentationUrl?: string;
11
+ incorporationDate?: Date | null;
12
+ externalAccount?: ExternalAccount;
13
+ folio?: string;
14
+ legalName?: string;
15
+ license?: License;
16
+ shareholders?: ShareholderMoral[];
17
+ legalRepresentatives?: LegalRepresentatives[];
18
+ transactionalProfile?: TransactionalProfile;
19
+ userId?: string;
20
+ vulnerableActivity?: VulnerableActivity;
21
+ webSite?: string;
22
+ }
23
+ export declare const Partner: {
24
+ fromObject: (obj: WireObject) => Partner;
25
+ };
@@ -0,0 +1,14 @@
1
+ import { WireObject } from '../helpers/case';
2
+ export interface PostalCode {
3
+ id?: string;
4
+ postalCode?: string;
5
+ colonia?: string;
6
+ city?: string;
7
+ state?: string;
8
+ country?: string;
9
+ createdAt?: Date | null;
10
+ updatedAt?: Date | null;
11
+ }
12
+ export declare const PostalCode: {
13
+ fromObject: (obj: WireObject) => PostalCode;
14
+ };
@@ -0,0 +1,11 @@
1
+ import { WireObject } from '../helpers/case';
2
+ import { Wallet } from './wallet';
3
+ export interface Saving extends Wallet {
4
+ category?: string;
5
+ goalAmount?: number;
6
+ goalDate?: Date | null;
7
+ name?: string;
8
+ }
9
+ export declare const Saving: {
10
+ fromObject: (obj: WireObject) => Saving;
11
+ };
@@ -0,0 +1,10 @@
1
+ import { WireObject } from '../helpers/case';
2
+ export interface ServiceProvider {
3
+ categories?: string[];
4
+ id?: string;
5
+ name?: string;
6
+ providerKey?: string;
7
+ }
8
+ export declare const ServiceProvider: {
9
+ fromObject: (obj: WireObject) => ServiceProvider;
10
+ };