cecon-interfaces 1.0.20 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. package/dist/esm2022/iugu/entities/account-informations.entity.mjs +17 -0
  2. package/dist/esm2022/iugu/entities/account-last-verification-request-data.entity.mjs +36 -0
  3. package/dist/esm2022/iugu/entities/customer.entity.mjs +36 -0
  4. package/dist/esm2022/iugu/entities/index.mjs +5 -1
  5. package/dist/esm2022/iugu/entities/iugu-account.entity.mjs +71 -0
  6. package/dist/esm2022/iugu/interfaces/i-account-info-last-ver-req-data.mjs +1 -1
  7. package/dist/esm2022/iugu/interfaces/i-account.mjs +1 -1
  8. package/dist/esm2022/iugu/interfaces/index.mjs +1 -1
  9. package/dist/fesm2022/cecon-interfaces.mjs +182 -20
  10. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  11. package/dist/iugu/entities/account-informations.entity.d.ts +6 -0
  12. package/dist/iugu/entities/account-informations.entity.js +21 -0
  13. package/dist/iugu/entities/account-last-verification-request-data.entity.d.ts +25 -0
  14. package/dist/iugu/entities/account-last-verification-request-data.entity.js +40 -0
  15. package/dist/iugu/entities/customer.entity.d.ts +26 -0
  16. package/dist/iugu/entities/customer.entity.js +40 -0
  17. package/dist/iugu/entities/index.d.ts +4 -0
  18. package/dist/iugu/entities/index.js +9 -1
  19. package/dist/iugu/entities/iugu-account.entity.d.ts +61 -0
  20. package/dist/iugu/entities/iugu-account.entity.js +75 -0
  21. package/dist/iugu/interfaces/i-account-info-last-ver-req-data.d.ts +1 -1
  22. package/dist/iugu/interfaces/i-account.d.ts +5 -5
  23. package/dist/iugu/interfaces/index.d.ts +1 -1
  24. package/dist/package.json +1 -1
  25. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { BooleanStringEnum } from '../../general/enums';
2
+ import { LegalEntiyEnum } from '../../general/enums/person-type.enum';
3
+ import { IIuguAccountLastVerificationRequestData } from '../interfaces';
4
+ export declare class LastVerificationRequestDataEntity implements IIuguAccountLastVerificationRequestData {
5
+ accountType: string;
6
+ address: string;
7
+ automaticTransfer: BooleanStringEnum;
8
+ bank: string;
9
+ bankAg: string;
10
+ bankCc: string;
11
+ businessType: string;
12
+ cep: string;
13
+ city: string;
14
+ cpf: string;
15
+ documentActivity: string;
16
+ documentCpf: string;
17
+ documentId: string;
18
+ name: string;
19
+ personType: LegalEntiyEnum;
20
+ physicalProducts: BooleanStringEnum;
21
+ priceRange: string;
22
+ state: string;
23
+ telephone: string;
24
+ constructor(data?: Partial<LastVerificationRequestDataEntity>);
25
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LastVerificationRequestDataEntity = void 0;
4
+ var enums_1 = require("../../general/enums");
5
+ var person_type_enum_1 = require("../../general/enums/person-type.enum");
6
+ var LastVerificationRequestDataEntity = /** @class */ (function () {
7
+ // #endregion Properties (19)
8
+ // #region Constructors (1)
9
+ function LastVerificationRequestDataEntity(data) {
10
+ // #region Properties (19)
11
+ this.accountType = '';
12
+ this.address = '';
13
+ this.automaticTransfer = enums_1.BooleanStringEnum.False;
14
+ this.bank = '';
15
+ this.bankAg = '';
16
+ this.bankCc = '';
17
+ this.businessType = '';
18
+ this.cep = '';
19
+ this.city = '';
20
+ this.cpf = '';
21
+ this.documentActivity = '';
22
+ this.documentCpf = '';
23
+ this.documentId = '';
24
+ this.name = '';
25
+ this.personType = person_type_enum_1.LegalEntiyEnum.Individual;
26
+ this.physicalProducts = enums_1.BooleanStringEnum.False;
27
+ this.priceRange = '';
28
+ this.state = '';
29
+ this.telephone = '';
30
+ if (data) {
31
+ for (var key in data) {
32
+ if (data.hasOwnProperty(key) && key in this) {
33
+ this[key] = data[key];
34
+ }
35
+ }
36
+ }
37
+ }
38
+ return LastVerificationRequestDataEntity;
39
+ }());
40
+ exports.LastVerificationRequestDataEntity = LastVerificationRequestDataEntity;
@@ -0,0 +1,26 @@
1
+ import { IIuguCustomer } from '../interfaces';
2
+ import { IuguPaymentTokenEntity } from './payment-token.entity';
3
+ export declare class IIuguCustomerEntity implements IIuguCustomer {
4
+ ccEmails: string;
5
+ city: string;
6
+ complement: string;
7
+ cpfCnpj: string;
8
+ createdAt: Date;
9
+ customVariables: Array<any>;
10
+ defaultPaymentMethodId: string;
11
+ district: string;
12
+ email: string;
13
+ id: string;
14
+ name: string;
15
+ notes: string;
16
+ number: string;
17
+ paymentMethods: IuguPaymentTokenEntity[];
18
+ phone: string;
19
+ phonePrefix: string;
20
+ proxyPaymentsFromCustomerId: string;
21
+ state: string;
22
+ street: string;
23
+ updatedAt: Date;
24
+ zipCode: string;
25
+ constructor(data?: Partial<IIuguCustomerEntity>);
26
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IIuguCustomerEntity = void 0;
4
+ var IIuguCustomerEntity = /** @class */ (function () {
5
+ // #endregion Properties (21)
6
+ // #region Constructors (1)
7
+ function IIuguCustomerEntity(data) {
8
+ // #region Properties (21)
9
+ this.ccEmails = '';
10
+ this.city = '';
11
+ this.complement = '';
12
+ this.cpfCnpj = '';
13
+ this.createdAt = new Date();
14
+ this.customVariables = [];
15
+ this.defaultPaymentMethodId = '';
16
+ this.district = '';
17
+ this.email = '';
18
+ this.id = '';
19
+ this.name = '';
20
+ this.notes = '';
21
+ this.number = '';
22
+ this.paymentMethods = [];
23
+ this.phone = '';
24
+ this.phonePrefix = '';
25
+ this.proxyPaymentsFromCustomerId = '';
26
+ this.state = '';
27
+ this.street = '';
28
+ this.updatedAt = new Date();
29
+ this.zipCode = '';
30
+ if (data) {
31
+ for (var key in data) {
32
+ if (data.hasOwnProperty(key) && key in this) {
33
+ this[key] = data[key];
34
+ }
35
+ }
36
+ }
37
+ }
38
+ return IIuguCustomerEntity;
39
+ }());
40
+ exports.IIuguCustomerEntity = IIuguCustomerEntity;
@@ -1,2 +1,6 @@
1
+ export { AccountInformationsEntity } from './account-informations.entity';
2
+ export { LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity } from './account-last-verification-request-data.entity';
3
+ export { IIuguCustomerEntity } from './customer.entity';
4
+ export { IuguAccountEntity } from './iugu-account.entity';
1
5
  export { IuguPaymentTokenDataEntity } from './payment-token-data.entity';
2
6
  export { IuguPaymentTokenEntity } from './payment-token.entity';
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = void 0;
3
+ exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = exports.IuguAccountEntity = exports.IIuguCustomerEntity = exports.IuguAccountLastVerificationRequestDataEntity = exports.AccountInformationsEntity = void 0;
4
+ var account_informations_entity_1 = require("./account-informations.entity");
5
+ Object.defineProperty(exports, "AccountInformationsEntity", { enumerable: true, get: function () { return account_informations_entity_1.AccountInformationsEntity; } });
6
+ var account_last_verification_request_data_entity_1 = require("./account-last-verification-request-data.entity");
7
+ Object.defineProperty(exports, "IuguAccountLastVerificationRequestDataEntity", { enumerable: true, get: function () { return account_last_verification_request_data_entity_1.LastVerificationRequestDataEntity; } });
8
+ var customer_entity_1 = require("./customer.entity");
9
+ Object.defineProperty(exports, "IIuguCustomerEntity", { enumerable: true, get: function () { return customer_entity_1.IIuguCustomerEntity; } });
10
+ var iugu_account_entity_1 = require("./iugu-account.entity");
11
+ Object.defineProperty(exports, "IuguAccountEntity", { enumerable: true, get: function () { return iugu_account_entity_1.IuguAccountEntity; } });
4
12
  var payment_token_data_entity_1 = require("./payment-token-data.entity");
5
13
  Object.defineProperty(exports, "IuguPaymentTokenDataEntity", { enumerable: true, get: function () { return payment_token_data_entity_1.IuguPaymentTokenDataEntity; } });
6
14
  var payment_token_entity_1 = require("./payment-token.entity");
@@ -0,0 +1,61 @@
1
+ import { IuguAutoAdvanceEnum } from '../enums';
2
+ import { IIuguAccount, IIuguAccountConfiguration, IIuguConfigEarlyPaymentDiscount, IIuguMarketplaceSplit } from '../interfaces';
3
+ import { AccountInformationsEntity } from './account-informations.entity';
4
+ import { LastVerificationRequestDataEntity } from './account-last-verification-request-data.entity';
5
+ export declare class IuguAccountEntity implements IIuguAccount {
6
+ autoAdvance: boolean;
7
+ autoAdvanceOption: number;
8
+ autoAdvanceType: IuguAutoAdvanceEnum;
9
+ autoWithdraw: boolean;
10
+ balance: string;
11
+ balanceAvailableForWithdraw: string;
12
+ balanceInProtest: string;
13
+ canReceive?: boolean;
14
+ changePlanType: number;
15
+ commissionBalance: string;
16
+ configuration: IIuguAccountConfiguration | null;
17
+ createdAt: Date;
18
+ creditCardVerified: boolean;
19
+ customLogoSmallUrl: string;
20
+ customLogoUrl: string;
21
+ defaultReturnUrl: string;
22
+ disableEmails: boolean;
23
+ disabledWithdraw: boolean;
24
+ earlyPaymentDiscount: boolean;
25
+ earlyPaymentDiscountDays: number;
26
+ earlyPaymentDiscountPercent: number;
27
+ earlyPaymentDiscounts: IIuguConfigEarlyPaymentDiscount[];
28
+ fines: boolean;
29
+ hasBankAddress?: boolean;
30
+ id: string;
31
+ informations: AccountInformationsEntity[];
32
+ isVerified?: boolean;
33
+ lastVerificationRequestData: LastVerificationRequestDataEntity;
34
+ lastVerificationRequestFeedback: string;
35
+ lastVerificationRequestStatus: 'accepted' | string;
36
+ lastWithdraw: Date;
37
+ latePaymentFine: number;
38
+ marketplace: boolean;
39
+ name: string;
40
+ oldAdvancement: boolean;
41
+ payableBalance: string;
42
+ paymentEmailNotification: boolean;
43
+ paymentEmailNotificationReceiver: string;
44
+ perDayInterest: boolean;
45
+ permissions: string[];
46
+ protectedBalance: string;
47
+ receivableBalance: string;
48
+ replyTo: string;
49
+ splits: IIuguMarketplaceSplit[];
50
+ subscriptionsBillingDays: number;
51
+ subscriptionsTrialPeriod: number;
52
+ taxesPaidLastMonth: string;
53
+ taxesPaidThisMonth: string;
54
+ totalActiveSubscriptions: number;
55
+ totalSubscriptions: number;
56
+ updatedAt: Date;
57
+ volumeLastMonth: string;
58
+ volumeThisMonth: string;
59
+ webappOnTestMode: boolean;
60
+ constructor(data?: Partial<IuguAccountEntity>);
61
+ }
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IuguAccountEntity = void 0;
4
+ var enums_1 = require("../enums");
5
+ var account_last_verification_request_data_entity_1 = require("./account-last-verification-request-data.entity");
6
+ var IuguAccountEntity = /** @class */ (function () {
7
+ // #endregion Properties (54)
8
+ // #region Constructors (1)
9
+ function IuguAccountEntity(data) {
10
+ // #region Properties (54)
11
+ this.autoAdvance = false;
12
+ this.autoAdvanceOption = 0;
13
+ this.autoAdvanceType = enums_1.IuguAutoAdvanceEnum.Daily;
14
+ this.autoWithdraw = false;
15
+ this.balance = '';
16
+ this.balanceAvailableForWithdraw = '';
17
+ this.balanceInProtest = '';
18
+ this.canReceive = false;
19
+ this.changePlanType = 0;
20
+ this.commissionBalance = '';
21
+ this.configuration = null;
22
+ this.createdAt = new Date();
23
+ this.creditCardVerified = false;
24
+ this.customLogoSmallUrl = '';
25
+ this.customLogoUrl = '';
26
+ this.defaultReturnUrl = '';
27
+ this.disableEmails = false;
28
+ this.disabledWithdraw = false;
29
+ this.earlyPaymentDiscount = false;
30
+ this.earlyPaymentDiscountDays = 0;
31
+ this.earlyPaymentDiscountPercent = 0;
32
+ this.earlyPaymentDiscounts = [];
33
+ this.fines = false;
34
+ this.hasBankAddress = false;
35
+ this.id = '';
36
+ this.informations = [];
37
+ this.isVerified = false;
38
+ this.lastVerificationRequestData = new account_last_verification_request_data_entity_1.LastVerificationRequestDataEntity();
39
+ this.lastVerificationRequestFeedback = '';
40
+ this.lastVerificationRequestStatus = 'accepted';
41
+ this.lastWithdraw = new Date();
42
+ this.latePaymentFine = 0;
43
+ this.marketplace = false;
44
+ this.name = '';
45
+ this.oldAdvancement = false;
46
+ this.payableBalance = '';
47
+ this.paymentEmailNotification = false;
48
+ this.paymentEmailNotificationReceiver = '';
49
+ this.perDayInterest = false;
50
+ this.permissions = [];
51
+ this.protectedBalance = '';
52
+ this.receivableBalance = '';
53
+ this.replyTo = '';
54
+ this.splits = [];
55
+ this.subscriptionsBillingDays = 0;
56
+ this.subscriptionsTrialPeriod = 0;
57
+ this.taxesPaidLastMonth = '';
58
+ this.taxesPaidThisMonth = '';
59
+ this.totalActiveSubscriptions = 0;
60
+ this.totalSubscriptions = 0;
61
+ this.updatedAt = new Date();
62
+ this.volumeLastMonth = '';
63
+ this.volumeThisMonth = '';
64
+ this.webappOnTestMode = false;
65
+ if (data) {
66
+ for (var key in data) {
67
+ if (data.hasOwnProperty(key) && key in this) {
68
+ this[key] = data[key];
69
+ }
70
+ }
71
+ }
72
+ }
73
+ return IuguAccountEntity;
74
+ }());
75
+ exports.IuguAccountEntity = IuguAccountEntity;
@@ -1,6 +1,6 @@
1
1
  import { BooleanStringEnum } from '../../general/enums';
2
2
  import { LegalEntiyEnum } from '../../general/enums/person-type.enum';
3
- export interface IIuguAccountLastVerificationRequestData {
3
+ export interface IIuguLastVerificationRequestData {
4
4
  accountType: string;
5
5
  address: string;
6
6
  automaticTransfer: BooleanStringEnum;
@@ -1,6 +1,6 @@
1
1
  import { IuguAutoAdvanceEnum } from '../enums/iugu-auto-advance.enum';
2
2
  import { IIuguAccountConfiguration } from './i-account-configuration';
3
- import { IIuguAccountLastVerificationRequestData } from './i-account-info-last-ver-req-data';
3
+ import { IIuguLastVerificationRequestData } from './i-account-info-last-ver-req-data';
4
4
  import { IIuguInformations } from './i-account-informations';
5
5
  import { IIuguMarketplaceSplit } from './i-account-marketplace-split';
6
6
  import { IIuguConfigEarlyPaymentDiscount } from './i-config-early-payment-discounts';
@@ -32,11 +32,11 @@ export interface IIuguAccount {
32
32
  canReceive?: boolean;
33
33
  changePlanType: number;
34
34
  commissionBalance: string;
35
- configuration: IIuguAccountConfiguration;
35
+ configuration: IIuguAccountConfiguration | null;
36
36
  createdAt: Date;
37
37
  creditCardVerified: boolean;
38
- customLogoSmallUrl: null;
39
- customLogoUrl: null;
38
+ customLogoSmallUrl: string;
39
+ customLogoUrl: string;
40
40
  defaultReturnUrl: string;
41
41
  disableEmails: boolean;
42
42
  disabledWithdraw: boolean;
@@ -49,7 +49,7 @@ export interface IIuguAccount {
49
49
  id: string;
50
50
  informations: IIuguInformations[];
51
51
  isVerified?: boolean;
52
- lastVerificationRequestData: IIuguAccountLastVerificationRequestData;
52
+ lastVerificationRequestData: IIuguLastVerificationRequestData;
53
53
  lastVerificationRequestFeedback: string;
54
54
  lastVerificationRequestStatus: 'accepted' | string;
55
55
  lastWithdraw: Date;
@@ -3,7 +3,7 @@ export { IIuguAccountConfiguration } from './i-account-configuration';
3
3
  export { IIuguAccountConfigurationBankSlip } from './i-account-configuration-bank-slip';
4
4
  export { IIuguAccountConfigurationCreaditCard } from './i-account-configuration-creadit-card';
5
5
  export { IIuguAccountConfigurationPix } from './i-account-configuration-pix';
6
- export { IIuguAccountLastVerificationRequestData } from './i-account-info-last-ver-req-data';
6
+ export { IIuguLastVerificationRequestData as IIuguAccountLastVerificationRequestData } from './i-account-info-last-ver-req-data';
7
7
  export { IIuguInformations } from './i-account-informations';
8
8
  export { IIuguMarketplaceSplit } from './i-account-marketplace-split';
9
9
  export { IIuguChangePlanSimulation } from './i-change-plan-simulation';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {},
6
6
  "peerDependencies": {},