cecon-interfaces 1.1.68 → 1.1.74
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/app/entities/app.entity.d.ts +6 -6
- package/dist/app/entities/app.entity.js +1 -1
- package/dist/app/interfaces/i-app.d.ts +6 -6
- package/dist/billing/entities/billing-payment.entity.d.ts +19 -0
- package/dist/billing/entities/billing-payment.entity.js +33 -0
- package/dist/billing/entities/billing-total.entity.d.ts +10 -0
- package/dist/billing/entities/billing-total.entity.js +25 -0
- package/dist/billing/entities/billing.entity.d.ts +14 -0
- package/dist/billing/entities/billing.entity.js +29 -0
- package/dist/billing/entities/index.d.ts +3 -0
- package/dist/billing/entities/index.js +9 -0
- package/dist/billing/enums/billing-status.enum.d.ts +6 -0
- package/dist/billing/enums/billing-status.enum.js +12 -0
- package/dist/billing/enums/index.d.ts +1 -0
- package/dist/billing/enums/index.js +5 -0
- package/dist/billing/index.d.ts +3 -0
- package/dist/billing/index.js +19 -0
- package/dist/billing/interfaces/i-billing-payment.d.ts +17 -0
- package/dist/billing/interfaces/i-billing-payment.js +2 -0
- package/dist/billing/interfaces/i-billing-total.d.ts +8 -0
- package/dist/billing/interfaces/i-billing-total.js +2 -0
- package/dist/billing/interfaces/i-billing.d.ts +14 -0
- package/dist/billing/interfaces/i-billing.js +2 -0
- package/dist/billing/interfaces/index.d.ts +3 -0
- package/dist/billing/interfaces/index.js +2 -0
- package/dist/billing-order/entities/billing-order.entity.d.ts +6 -0
- package/dist/billing-order/entities/billing-order.entity.js +39 -0
- package/dist/billing-order/entities/index.d.ts +1 -0
- package/dist/billing-order/entities/index.js +5 -0
- package/dist/billing-order/index.d.ts +2 -0
- package/dist/billing-order/index.js +18 -0
- package/dist/billing-order/interfaces/i-billing-order.d.ts +4 -0
- package/dist/billing-order/interfaces/i-billing-order.js +2 -0
- package/dist/billing-order/interfaces/index.d.ts +1 -0
- package/dist/billing-order/interfaces/index.js +2 -0
- package/dist/customer/entities/customer.entity.d.ts +2 -1
- package/dist/customer/entities/customer.entity.js +1 -0
- package/dist/customer/enums/index.d.ts +1 -0
- package/dist/customer/enums/index.js +3 -1
- package/dist/customer/enums/type.enum.d.ts +4 -0
- package/dist/customer/enums/type.enum.js +8 -0
- package/dist/customer/interfaces/i-customer.d.ts +2 -1
- package/dist/customer-member/entities/index.d.ts +1 -0
- package/dist/customer-member/entities/index.js +5 -0
- package/dist/customer-member/entities/member.entity.d.ts +5 -0
- package/dist/customer-member/entities/member.entity.js +38 -0
- package/dist/customer-member/index.d.ts +2 -0
- package/dist/customer-member/index.js +18 -0
- package/dist/customer-member/interfaces/i-member.d.ts +3 -0
- package/dist/customer-member/interfaces/i-member.js +2 -0
- package/dist/customer-member/interfaces/index.d.ts +1 -0
- package/dist/customer-member/interfaces/index.js +2 -0
- package/dist/device/entities/device.entity.d.ts +2 -2
- package/dist/device/entities/device.entity.js +1 -1
- package/dist/device/interfaces/i-device.d.ts +2 -2
- package/dist/esm2022/app/entities/app.entity.mjs +3 -3
- package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
- package/dist/esm2022/billing/entities/billing-payment.entity.mjs +29 -0
- package/dist/esm2022/billing/entities/billing-total.entity.mjs +21 -0
- package/dist/esm2022/billing/entities/billing.entity.mjs +25 -0
- package/dist/esm2022/billing/entities/index.mjs +4 -0
- package/dist/esm2022/billing/enums/billing-status.enum.mjs +10 -0
- package/dist/esm2022/billing/enums/index.mjs +2 -0
- package/dist/esm2022/billing/index.mjs +4 -0
- package/dist/esm2022/billing/interfaces/i-billing-payment.mjs +2 -0
- package/dist/esm2022/billing/interfaces/i-billing-total.mjs +2 -0
- package/dist/esm2022/billing/interfaces/i-billing.mjs +2 -0
- package/dist/esm2022/billing/interfaces/index.mjs +2 -0
- package/dist/esm2022/billing-order/entities/billing-order.entity.mjs +18 -0
- package/dist/esm2022/billing-order/entities/index.mjs +2 -0
- package/dist/esm2022/billing-order/index.mjs +3 -0
- package/dist/esm2022/billing-order/interfaces/i-billing-order.mjs +2 -0
- package/dist/esm2022/billing-order/interfaces/index.mjs +2 -0
- package/dist/esm2022/customer/entities/customer.entity.mjs +3 -2
- package/dist/esm2022/customer/enums/index.mjs +2 -1
- package/dist/esm2022/customer/enums/type.enum.mjs +6 -0
- package/dist/esm2022/customer/interfaces/i-customer.mjs +1 -1
- package/dist/esm2022/customer-member/entities/index.mjs +2 -0
- package/dist/esm2022/customer-member/entities/member.entity.mjs +17 -0
- package/dist/esm2022/customer-member/index.mjs +3 -0
- package/dist/esm2022/customer-member/interfaces/i-member.mjs +2 -0
- package/dist/esm2022/customer-member/interfaces/index.mjs +2 -0
- package/dist/esm2022/device/entities/device.entity.mjs +3 -3
- package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
- package/dist/esm2022/general/entities/origin.entity.mjs +3 -3
- package/dist/esm2022/general/entities/payment-method-option.entity.mjs +5 -5
- package/dist/esm2022/general/enums/boolean-string.enum.mjs +6 -6
- package/dist/esm2022/general/enums/index.mjs +12 -11
- package/dist/esm2022/general/enums/interval-type.enum.mjs +7 -7
- package/dist/esm2022/general/enums/lead-origin.enum.mjs +11 -11
- package/dist/esm2022/general/enums/os.enum.mjs +12 -12
- package/dist/esm2022/general/enums/payment-channel.enum.mjs +12 -12
- package/dist/esm2022/general/enums/payment-mode.enum.mjs +7 -7
- package/dist/esm2022/general/enums/payment-status.enum.mjs +14 -13
- package/dist/esm2022/general/enums/person-type.enum.mjs +6 -6
- package/dist/esm2022/general/enums/platform.enum.mjs +11 -11
- package/dist/esm2022/general/enums/providers.enum.mjs +10 -10
- package/dist/esm2022/general/enums/pubsub.enum.mjs +6 -0
- package/dist/esm2022/general/interfaces/i-origin.mjs +1 -1
- package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +1 -1
- package/dist/esm2022/index.mjs +4 -1
- package/dist/esm2022/invite/entities/invite.entity.mjs +4 -3
- package/dist/esm2022/invite/interfaces/i-invite.mjs +1 -1
- package/dist/esm2022/iugu/entities/account-last-verification-request-data.entity.mjs +6 -6
- package/dist/esm2022/iugu/interfaces/i-account-info-last-ver-req-data.mjs +1 -1
- package/dist/esm2022/lead/entities/lead.entity.mjs +3 -3
- package/dist/esm2022/lead/interfaces/i-lead.mjs +1 -1
- package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/purchases/entities/purchase.entity.mjs +3 -3
- package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
- package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +3 -3
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +1517 -1387
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/origin.entity.d.ts +2 -2
- package/dist/general/entities/origin.entity.js +1 -1
- package/dist/general/entities/payment-method-option.entity.d.ts +4 -4
- package/dist/general/entities/payment-method-option.entity.js +2 -2
- package/dist/general/enums/boolean-string.enum.d.ts +1 -1
- package/dist/general/enums/boolean-string.enum.js +6 -6
- package/dist/general/enums/index.d.ts +11 -10
- package/dist/general/enums/index.js +13 -11
- package/dist/general/enums/interval-type.enum.d.ts +1 -1
- package/dist/general/enums/interval-type.enum.js +7 -7
- package/dist/general/enums/lead-origin.enum.d.ts +1 -1
- package/dist/general/enums/lead-origin.enum.js +11 -11
- package/dist/general/enums/os.enum.d.ts +1 -1
- package/dist/general/enums/os.enum.js +12 -12
- package/dist/general/enums/payment-channel.enum.d.ts +1 -1
- package/dist/general/enums/payment-channel.enum.js +12 -12
- package/dist/general/enums/payment-mode.enum.d.ts +1 -1
- package/dist/general/enums/payment-mode.enum.js +7 -7
- package/dist/general/enums/payment-status.enum.d.ts +2 -1
- package/dist/general/enums/payment-status.enum.js +14 -13
- package/dist/general/enums/person-type.enum.d.ts +1 -1
- package/dist/general/enums/person-type.enum.js +6 -6
- package/dist/general/enums/platform.enum.d.ts +1 -1
- package/dist/general/enums/platform.enum.js +11 -11
- package/dist/general/enums/providers.enum.d.ts +1 -1
- package/dist/general/enums/providers.enum.js +10 -10
- package/dist/general/enums/pubsub.enum.d.ts +4 -0
- package/dist/general/enums/pubsub.enum.js +8 -0
- package/dist/general/interfaces/i-origin.d.ts +2 -2
- package/dist/general/interfaces/i-payment-method-option.d.ts +4 -4
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/invite/entities/invite.entity.d.ts +1 -0
- package/dist/invite/entities/invite.entity.js +3 -2
- package/dist/invite/interfaces/i-invite.d.ts +4 -3
- package/dist/iugu/entities/account-last-verification-request-data.entity.d.ts +5 -5
- package/dist/iugu/entities/account-last-verification-request-data.entity.js +3 -3
- package/dist/iugu/interfaces/i-account-info-last-ver-req-data.d.ts +5 -5
- package/dist/lead/entities/lead.entity.d.ts +2 -2
- package/dist/lead/entities/lead.entity.js +1 -1
- package/dist/lead/interfaces/i-lead.d.ts +6 -6
- package/dist/package.json +1 -1
- package/dist/plan/entities/plan.entity.d.ts +2 -2
- package/dist/plan/entities/plan.entity.js +1 -1
- package/dist/plan/interfaces/i-plan.d.ts +2 -2
- package/dist/purchases/entities/purchase.entity.d.ts +2 -2
- package/dist/purchases/entities/purchase.entity.js +1 -1
- package/dist/purchases/interfaces/i-purchase.d.ts +2 -2
- package/dist/subscription-base/entities/subscription-base.entity.d.ts +2 -2
- package/dist/subscription-base/entities/subscription-base.entity.js +1 -1
- package/dist/subscription-base/interfaces/i-subscription-base.d.ts +2 -2
- package/package.json +1 -1
@@ -177,16 +177,16 @@ class MobyoApiConfigEntity {
|
|
177
177
|
}
|
178
178
|
}
|
179
179
|
|
180
|
-
var
|
181
|
-
(function (
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
})(
|
180
|
+
var ELeadOrigin;
|
181
|
+
(function (ELeadOrigin) {
|
182
|
+
ELeadOrigin["FACEBOOK_ADS"] = "Facebook Ads";
|
183
|
+
ELeadOrigin["GOOGLE_ADS"] = "Google Ads";
|
184
|
+
ELeadOrigin["EMAIL_MARKETING"] = "Email Marketing";
|
185
|
+
ELeadOrigin["REFERRED_BY_FRIEND"] = "Indica\u00E7\u00E3o de amigo";
|
186
|
+
ELeadOrigin["ORGANIC_SEARCH"] = "Busca org\u00E2nica";
|
187
|
+
ELeadOrigin["DIRECT_VISIT"] = "Visita Direta";
|
188
|
+
ELeadOrigin["OTHERS"] = "Outros";
|
189
|
+
})(ELeadOrigin || (ELeadOrigin = {}));
|
190
190
|
|
191
191
|
class OriginEntity {
|
192
192
|
// #region Properties (6)
|
@@ -195,7 +195,7 @@ class OriginEntity {
|
|
195
195
|
date = 0;
|
196
196
|
details = '';
|
197
197
|
referrer = '';
|
198
|
-
type =
|
198
|
+
type = ELeadOrigin.OTHERS;
|
199
199
|
// #endregion Properties (6)
|
200
200
|
// #region Constructors (1)
|
201
201
|
constructor(data) {
|
@@ -243,24 +243,24 @@ class PaymentCashEntity {
|
|
243
243
|
}
|
244
244
|
}
|
245
245
|
|
246
|
-
var
|
247
|
-
(function (
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
})(
|
246
|
+
var EPaymentChannel;
|
247
|
+
(function (EPaymentChannel) {
|
248
|
+
EPaymentChannel["APP"] = "APP";
|
249
|
+
EPaymentChannel["DELIVERY"] = "DELIVERY";
|
250
|
+
EPaymentChannel["AUTOMATION"] = "AUTOMATION";
|
251
|
+
EPaymentChannel["PHONE"] = "PHONE";
|
252
|
+
EPaymentChannel["MAIL"] = "MAIL";
|
253
|
+
EPaymentChannel["KIOSK"] = "KIOSK";
|
254
|
+
EPaymentChannel["QR_CODE"] = "QR_CODE";
|
255
|
+
EPaymentChannel["WEBSITE"] = "WEBSITE";
|
256
|
+
})(EPaymentChannel || (EPaymentChannel = {}));
|
257
257
|
|
258
|
-
var
|
259
|
-
(function (
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
})(
|
258
|
+
var EPaymentMode;
|
259
|
+
(function (EPaymentMode) {
|
260
|
+
EPaymentMode["ELECTRONIC"] = "ELECTRONIC";
|
261
|
+
EPaymentMode["MANUAL"] = "MANUAL";
|
262
|
+
EPaymentMode["DIGITAL"] = "DIGITAL";
|
263
|
+
})(EPaymentMode || (EPaymentMode = {}));
|
264
264
|
|
265
265
|
var EPaymentType;
|
266
266
|
(function (EPaymentType) {
|
@@ -289,14 +289,14 @@ var EPaymentType;
|
|
289
289
|
class PaymentMethodOptionEntity {
|
290
290
|
// #region Properties (13)
|
291
291
|
active = false;
|
292
|
-
channel =
|
292
|
+
channel = EPaymentChannel.AUTOMATION;
|
293
293
|
createdAt = new Date();
|
294
294
|
fee = 0;
|
295
295
|
id = '';
|
296
296
|
index = 0;
|
297
297
|
maxAmount = 0;
|
298
298
|
minAmount = 0;
|
299
|
-
mode =
|
299
|
+
mode = EPaymentMode.MANUAL;
|
300
300
|
name = '';
|
301
301
|
token = '';
|
302
302
|
type = EPaymentType.CREDIT_CARD;
|
@@ -530,11 +530,11 @@ var EBankSlipStatus;
|
|
530
530
|
EBankSlipStatus["EXPIRED"] = "expired";
|
531
531
|
})(EBankSlipStatus || (EBankSlipStatus = {}));
|
532
532
|
|
533
|
-
var
|
534
|
-
(function (
|
535
|
-
|
536
|
-
|
537
|
-
})(
|
533
|
+
var EBooleanString;
|
534
|
+
(function (EBooleanString) {
|
535
|
+
EBooleanString["FALSE"] = "false";
|
536
|
+
EBooleanString["TRUE"] = "true";
|
537
|
+
})(EBooleanString || (EBooleanString = {}));
|
538
538
|
|
539
539
|
var EDocType;
|
540
540
|
(function (EDocType) {
|
@@ -561,64 +561,71 @@ var EFiscalDocModelCode;
|
|
561
561
|
EFiscalDocModelCode["OS"] = "67";
|
562
562
|
})(EFiscalDocModelCode || (EFiscalDocModelCode = {}));
|
563
563
|
|
564
|
-
var
|
565
|
-
(function (
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
})(
|
570
|
-
|
571
|
-
var
|
572
|
-
(function (
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
})(
|
582
|
-
|
583
|
-
var
|
584
|
-
(function (
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
564
|
+
var EIntervalType;
|
565
|
+
(function (EIntervalType) {
|
566
|
+
EIntervalType["DAYS"] = "DAYS";
|
567
|
+
EIntervalType["WEEKS"] = "WEEKS";
|
568
|
+
EIntervalType["MONTHS"] = "MONTHS";
|
569
|
+
})(EIntervalType || (EIntervalType = {}));
|
570
|
+
|
571
|
+
var EOs;
|
572
|
+
(function (EOs) {
|
573
|
+
EOs["ANDROID"] = "ANDROID";
|
574
|
+
EOs["IOS"] = "IOS";
|
575
|
+
EOs["WINDOWS_PHONE"] = "WINDOWS_PHONE";
|
576
|
+
EOs["WINDOWS"] = "WINDOWS";
|
577
|
+
EOs["LINUX"] = "LINUX";
|
578
|
+
EOs["ELECTRON"] = "ELECTRON";
|
579
|
+
EOs["OTHER"] = "OTHER";
|
580
|
+
EOs["UNKNOWN"] = "UNKNOWN";
|
581
|
+
})(EOs || (EOs = {}));
|
582
|
+
|
583
|
+
var EPaymentStatus;
|
584
|
+
(function (EPaymentStatus) {
|
585
|
+
EPaymentStatus["PENDING"] = "PENDING";
|
586
|
+
EPaymentStatus["COMPLETED"] = "COMPLETED";
|
587
|
+
EPaymentStatus["FAILED"] = "FAILED";
|
588
|
+
EPaymentStatus["CANCELED"] = "CANCELED";
|
589
|
+
EPaymentStatus["PAID"] = "PAID";
|
590
|
+
EPaymentStatus["REFUNDED"] = "REFUNDED";
|
591
|
+
EPaymentStatus["AUTHORIZED"] = "AUTHORIZED";
|
592
|
+
EPaymentStatus["DECLINED"] = "DECLINED";
|
593
|
+
EPaymentStatus["EXPIRED"] = "EXPIRED";
|
594
|
+
EPaymentStatus["DISPUTED"] = "DISPUTED";
|
595
|
+
})(EPaymentStatus || (EPaymentStatus = {}));
|
596
|
+
|
597
|
+
var ELegalEntiy;
|
598
|
+
(function (ELegalEntiy) {
|
599
|
+
ELegalEntiy["LEGAL"] = "Pessoa Jur\u00EDdica";
|
600
|
+
ELegalEntiy["INDIVIDUAL"] = "Pessoa F\u00EDsica";
|
601
|
+
})(ELegalEntiy || (ELegalEntiy = {}));
|
602
|
+
|
603
|
+
var EPlatform;
|
604
|
+
(function (EPlatform) {
|
605
|
+
EPlatform["MOBILE"] = "Mobile";
|
606
|
+
EPlatform["WEB"] = "Web";
|
607
|
+
EPlatform["DESKTOP"] = "Desktop";
|
608
|
+
EPlatform["TABLET"] = "Tablet";
|
609
|
+
EPlatform["TV"] = "Tv";
|
610
|
+
EPlatform["CHROMEBOOK"] = "Chromebook";
|
611
|
+
EPlatform["OTHER"] = "Other";
|
612
|
+
})(EPlatform || (EPlatform = {}));
|
613
|
+
|
614
|
+
var EPaymentProvider;
|
615
|
+
(function (EPaymentProvider) {
|
616
|
+
EPaymentProvider["IUGU"] = "IUGU";
|
617
|
+
EPaymentProvider["DESENFILA"] = "DESENFILA";
|
618
|
+
EPaymentProvider["MERCADO_PAGO"] = "MERCADO PAGO";
|
619
|
+
EPaymentProvider["STRIPE"] = "STRIPE";
|
620
|
+
EPaymentProvider["PAYPAL"] = "PAYPAL";
|
621
|
+
EPaymentProvider["OTHER"] = "OTHER";
|
622
|
+
})(EPaymentProvider || (EPaymentProvider = {}));
|
623
|
+
|
624
|
+
var EPubSub;
|
625
|
+
(function (EPubSub) {
|
626
|
+
EPubSub["GENERAL"] = "GENERAL";
|
627
|
+
EPubSub["NATIGO"] = "NATIGO";
|
628
|
+
})(EPubSub || (EPubSub = {}));
|
622
629
|
|
623
630
|
var ESponsorshipValues;
|
624
631
|
(function (ESponsorshipValues) {
|
@@ -691,7 +698,7 @@ class AppEntity {
|
|
691
698
|
* @example
|
692
699
|
* Mensal, Semanal, Diário
|
693
700
|
*/
|
694
|
-
intervalType =
|
701
|
+
intervalType = EIntervalType.MONTHS;
|
695
702
|
mode = EAppMode.NONE;
|
696
703
|
name = '';
|
697
704
|
/**
|
@@ -813,28 +820,22 @@ class RabbitEntity {
|
|
813
820
|
}
|
814
821
|
}
|
815
822
|
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
ECampaignStatus["CONCLUDED"] = "CONCLUDED";
|
823
|
-
})(ECampaignStatus || (ECampaignStatus = {}));
|
824
|
-
|
825
|
-
class CampaignEntity {
|
826
|
-
// #region Properties (10)
|
827
|
-
createdAt = new Date();
|
828
|
-
createdBy = '';
|
829
|
-
description = '';
|
830
|
-
endDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30);
|
823
|
+
class BillingPaymentEntity {
|
824
|
+
// #region Properties (13)
|
825
|
+
addition = 0;
|
826
|
+
cancelled = 0;
|
827
|
+
company = {};
|
828
|
+
discount = 0;
|
831
829
|
id = '';
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
830
|
+
paymentReceiptUrl = '';
|
831
|
+
paymentType = EPaymentType.NONE;
|
832
|
+
status = EPaymentStatus.PENDING;
|
833
|
+
subtotal = 0;
|
834
|
+
tax = 0;
|
835
|
+
totalAmount = 0;
|
836
|
+
transactionDate = new Date();
|
837
|
+
transactionId = '';
|
838
|
+
// #endregion Properties (13)
|
838
839
|
// #region Constructors (1)
|
839
840
|
constructor(data) {
|
840
841
|
if (data) {
|
@@ -847,13 +848,15 @@ class CampaignEntity {
|
|
847
848
|
}
|
848
849
|
}
|
849
850
|
|
850
|
-
class
|
851
|
-
// #region Properties (
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
851
|
+
class BillingTotalEntity {
|
852
|
+
// #region Properties (6)
|
853
|
+
addition = 0;
|
854
|
+
cancelled = 0;
|
855
|
+
discount = 0;
|
856
|
+
subtotal = 0;
|
857
|
+
tax = 0;
|
858
|
+
totalAmount = 0;
|
859
|
+
// #endregion Properties (6)
|
857
860
|
// #region Constructors (1)
|
858
861
|
constructor(data) {
|
859
862
|
if (data) {
|
@@ -866,12 +869,27 @@ class ClientAplicationCredentialEntity {
|
|
866
869
|
}
|
867
870
|
}
|
868
871
|
|
869
|
-
|
872
|
+
var EBillingStatus;
|
873
|
+
(function (EBillingStatus) {
|
870
874
|
// #region Properties (3)
|
871
|
-
|
872
|
-
|
873
|
-
|
875
|
+
EBillingStatus["PAID"] = "PAID";
|
876
|
+
EBillingStatus["PENDING"] = "PENDING";
|
877
|
+
EBillingStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
878
|
+
EBillingStatus["CANCELLED"] = "CANCELLED";
|
874
879
|
// #endregion Properties (3)
|
880
|
+
})(EBillingStatus || (EBillingStatus = {}));
|
881
|
+
|
882
|
+
class BillingEntity {
|
883
|
+
// #region Properties (8)
|
884
|
+
createdAt = new Date();
|
885
|
+
dueDateAt = new Date();
|
886
|
+
id = '';
|
887
|
+
orders = [];
|
888
|
+
payments = [];
|
889
|
+
status = EBillingStatus.PENDING;
|
890
|
+
total = new BillingTotalEntity();
|
891
|
+
updatedAt = new Date();
|
892
|
+
// #endregion Properties (8)
|
875
893
|
// #region Constructors (1)
|
876
894
|
constructor(data) {
|
877
895
|
if (data) {
|
@@ -884,16 +902,11 @@ class ClientAplicationEntity {
|
|
884
902
|
}
|
885
903
|
}
|
886
904
|
|
887
|
-
class
|
888
|
-
// #region Properties (
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
docType = EDocType.CPF;
|
893
|
-
email = null;
|
894
|
-
id = '';
|
895
|
-
name = '';
|
896
|
-
// #endregion Properties (7)
|
905
|
+
class OrderAdditionalFeeEntity {
|
906
|
+
// #region Properties (2)
|
907
|
+
type = '';
|
908
|
+
value = 0;
|
909
|
+
// #endregion Properties (2)
|
897
910
|
// #region Constructors (1)
|
898
911
|
constructor(data) {
|
899
912
|
if (data) {
|
@@ -906,35 +919,15 @@ class ClientEntity {
|
|
906
919
|
}
|
907
920
|
}
|
908
921
|
|
909
|
-
class
|
910
|
-
// #region Properties (
|
911
|
-
|
912
|
-
address = new AddressEntity();
|
913
|
-
bgImageUrl = null;
|
914
|
-
config = null;
|
915
|
-
containerId = '';
|
916
|
-
createdAt = new Date();
|
917
|
-
deliveryArea = [];
|
918
|
-
deliveryAreaFixed = null;
|
919
|
-
doc = '';
|
920
|
-
docType = EDocType.CNPJ;
|
921
|
-
email = '';
|
922
|
-
fullName = '';
|
922
|
+
class OrderBenefitsEntity {
|
923
|
+
// #region Properties (6)
|
924
|
+
description = '';
|
923
925
|
id = '';
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
origin = new OriginEntity();
|
930
|
-
paymentProvider = new PaymentProviderEntity();
|
931
|
-
phoneNumber = '';
|
932
|
-
phoneNumberNotification = null;
|
933
|
-
sandbox = false;
|
934
|
-
tags = [];
|
935
|
-
updatedAt = new Date();
|
936
|
-
version = '1.0.0';
|
937
|
-
// #endregion Properties (26)
|
926
|
+
sponsorshipValues = [];
|
927
|
+
target = '';
|
928
|
+
targetId = '';
|
929
|
+
value = 0;
|
930
|
+
// #endregion Properties (6)
|
938
931
|
// #region Constructors (1)
|
939
932
|
constructor(data) {
|
940
933
|
if (data) {
|
@@ -947,33 +940,14 @@ class CompanyEntity {
|
|
947
940
|
}
|
948
941
|
}
|
949
942
|
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
ECompanyKeys["DESENFILA"] = "DESENFILA";
|
957
|
-
ECompanyKeys["MOTTU"] = "MOTTU";
|
958
|
-
ECompanyKeys["ALGOLIA"] = "ALGOLIA";
|
959
|
-
})(ECompanyKeys || (ECompanyKeys = {}));
|
960
|
-
|
961
|
-
var ECompanyMessageType;
|
962
|
-
(function (ECompanyMessageType) {
|
963
|
-
ECompanyMessageType["WHATSAPP"] = "WHATSAPP";
|
964
|
-
ECompanyMessageType["INSTAGRAM"] = "INSTAGRAM";
|
965
|
-
ECompanyMessageType["SMS"] = "SMS";
|
966
|
-
})(ECompanyMessageType || (ECompanyMessageType = {}));
|
967
|
-
|
968
|
-
// index.ts
|
969
|
-
|
970
|
-
class ContainerEntity extends BaseEntity {
|
971
|
-
// #region Properties (1)
|
972
|
-
name = '';
|
973
|
-
// #endregion Properties (1)
|
943
|
+
class OrderCancellationEntity {
|
944
|
+
// #region Properties (3)
|
945
|
+
cancellationBy = '';
|
946
|
+
cancellationCode = '';
|
947
|
+
reason = '';
|
948
|
+
// #endregion Properties (3)
|
974
949
|
// #region Constructors (1)
|
975
950
|
constructor(data) {
|
976
|
-
super(data);
|
977
951
|
if (data) {
|
978
952
|
for (let key in data) {
|
979
953
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -984,43 +958,13 @@ class ContainerEntity extends BaseEntity {
|
|
984
958
|
}
|
985
959
|
}
|
986
960
|
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
var ECustomerStatus;
|
995
|
-
(function (ECustomerStatus) {
|
996
|
-
ECustomerStatus["BLOCKED"] = "BLOCKED";
|
997
|
-
ECustomerStatus["ACTIVE"] = "ACTIVE";
|
998
|
-
ECustomerStatus["WAITING_CREDIT_ANALYSIS"] = "WAITING_CREDIT_ANALYSIS";
|
999
|
-
})(ECustomerStatus || (ECustomerStatus = {}));
|
1000
|
-
|
1001
|
-
class CustomerEntity {
|
1002
|
-
// #region Properties (20)
|
1003
|
-
address = new AddressEntity();
|
1004
|
-
blockedReason = null;
|
1005
|
-
createdAt = new Date();
|
1006
|
-
deliveryArea = [];
|
1007
|
-
deliveryAreaFixed = undefined;
|
1008
|
-
doc = '';
|
1009
|
-
docType = EDocType.CPF;
|
1010
|
-
email = '';
|
1011
|
-
fullName = '';
|
1012
|
-
id = '';
|
1013
|
-
imageUrl = null;
|
1014
|
-
interval = ECustomerInterval.MONTHLY;
|
1015
|
-
limit = 0;
|
1016
|
-
name = '';
|
1017
|
-
phoneNumber = '';
|
1018
|
-
phoneNumberNotification = null;
|
1019
|
-
sandbox = false;
|
1020
|
-
status = ECustomerStatus.WAITING_CREDIT_ANALYSIS;
|
1021
|
-
tags = [];
|
1022
|
-
updatedAt = new Date();
|
1023
|
-
// #endregion Properties (20)
|
961
|
+
class OrdersCustomerPhoneEntity {
|
962
|
+
// #region Properties (4)
|
963
|
+
description = '';
|
964
|
+
localizer = '';
|
965
|
+
localizerExpiration = '';
|
966
|
+
number = '';
|
967
|
+
// #endregion Properties (4)
|
1024
968
|
// #region Constructors (1)
|
1025
969
|
constructor(data) {
|
1026
970
|
if (data) {
|
@@ -1033,23 +977,16 @@ class CustomerEntity {
|
|
1033
977
|
}
|
1034
978
|
}
|
1035
979
|
|
1036
|
-
class
|
1037
|
-
// #region Properties (
|
1038
|
-
|
1039
|
-
|
1040
|
-
containerId = '';
|
1041
|
-
createdAt = new Date();
|
1042
|
-
deviceId = '';
|
1043
|
-
os = OsEnum.UNKNOWN;
|
1044
|
-
installedApps = [];
|
1045
|
-
osVersion = '';
|
980
|
+
class OrderCustomerEntity {
|
981
|
+
// #region Properties (7)
|
982
|
+
documentNumber = '';
|
983
|
+
email = '';
|
1046
984
|
id = '';
|
1047
|
-
key = '';
|
1048
|
-
lastAccess = new Date();
|
1049
985
|
name = '';
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
986
|
+
ordersCountOnMerchant = 0;
|
987
|
+
phone = new OrdersCustomerPhoneEntity();
|
988
|
+
picture = '';
|
989
|
+
// #endregion Properties (7)
|
1053
990
|
// #region Constructors (1)
|
1054
991
|
constructor(data) {
|
1055
992
|
if (data) {
|
@@ -1062,10 +999,15 @@ class DeviceEntity {
|
|
1062
999
|
}
|
1063
1000
|
}
|
1064
1001
|
|
1065
|
-
class
|
1066
|
-
// #region Properties (
|
1067
|
-
|
1068
|
-
|
1002
|
+
class OrderItemCompositionEntity {
|
1003
|
+
// #region Properties (6)
|
1004
|
+
amount = 0;
|
1005
|
+
code = '';
|
1006
|
+
description = '';
|
1007
|
+
imageUrl = '';
|
1008
|
+
quantity = 0;
|
1009
|
+
unit = '';
|
1010
|
+
// #endregion Properties (6)
|
1069
1011
|
// #region Constructors (1)
|
1070
1012
|
constructor(data) {
|
1071
1013
|
if (data) {
|
@@ -1078,24 +1020,24 @@ class MetadataEntity {
|
|
1078
1020
|
}
|
1079
1021
|
}
|
1080
1022
|
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
class FeatureEntity {
|
1086
|
-
// #region Properties (11)
|
1087
|
-
appId = '';
|
1088
|
-
appMode = null;
|
1089
|
-
companyId = '';
|
1090
|
-
containerId = '';
|
1091
|
-
createdAt = new Date();
|
1092
|
-
deviceId = '';
|
1023
|
+
class OrderItemOptionEntity {
|
1024
|
+
// #region Properties (15)
|
1025
|
+
ean = '';
|
1026
|
+
externalCode = '';
|
1093
1027
|
id = '';
|
1094
|
-
|
1028
|
+
index = 0;
|
1095
1029
|
name = '';
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1030
|
+
options = [];
|
1031
|
+
optionsPrice = 0;
|
1032
|
+
preparationPlaceId = '';
|
1033
|
+
price = 0;
|
1034
|
+
productId = '';
|
1035
|
+
quantity = 0;
|
1036
|
+
skill = '';
|
1037
|
+
totalPrice = 0;
|
1038
|
+
unit = '';
|
1039
|
+
weight = 0;
|
1040
|
+
// #endregion Properties (15)
|
1099
1041
|
// #region Constructors (1)
|
1100
1042
|
constructor(data) {
|
1101
1043
|
if (data) {
|
@@ -1108,61 +1050,11 @@ class FeatureEntity {
|
|
1108
1050
|
}
|
1109
1051
|
}
|
1110
1052
|
|
1111
|
-
class
|
1112
|
-
// #region Properties (
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
* dias após a data de vencimento.
|
1117
|
-
*/
|
1118
|
-
bankSlipExtraDue = 1;
|
1119
|
-
/**
|
1120
|
-
* Prazo de dias para o vencimento da fatura.
|
1121
|
-
*/
|
1122
|
-
billingDays = 10;
|
1123
|
-
/**
|
1124
|
-
* Se true, garante que a data de vencimento seja apenas em dias de semana,
|
1125
|
-
* e não em sábados ou domingos.
|
1126
|
-
*/
|
1127
|
-
ensureWorkdayDueDate = true;
|
1128
|
-
/**
|
1129
|
-
* Expira uma fatura e impossibilita o seu pagamento depois 'x' dias após o vencimento.
|
1130
|
-
* Valor enviado precisa estar entre 0 e 30. Se for enviado "0", a fatura ficará
|
1131
|
-
* disponível para ser paga até às 23:59:59 do dia de vencimento.
|
1132
|
-
*/
|
1133
|
-
expiresIn = 0;
|
1134
|
-
/**
|
1135
|
-
* Habilitar ou Desabilitar multa por atraso de pagamento
|
1136
|
-
*/
|
1137
|
-
fines = true;
|
1138
|
-
/**
|
1139
|
-
* Determine a multa % a ser cobrada para pagamentos
|
1140
|
-
* efetuados após a data de vencimento
|
1141
|
-
*/
|
1142
|
-
latePaymentFine = 2;
|
1143
|
-
/**
|
1144
|
-
* Determine a multa por valor fixo a ser
|
1145
|
-
* cobrada para pagamentos efetuados após a data de vencimento
|
1146
|
-
*/
|
1147
|
-
latePaymentFineCents = 0;
|
1148
|
-
/**
|
1149
|
-
* determina se cobra ou não juros por dia de atraso.
|
1150
|
-
* 1% ao mês pro rata. Necessário passar a multa como true
|
1151
|
-
*/
|
1152
|
-
perDayInterest = true;
|
1153
|
-
/**
|
1154
|
-
* Juros a ser cobrado por dia em centavos.
|
1155
|
-
* Sobrepõem o per_day_interest_value.
|
1156
|
-
* O juros somado em 30 dias deve ser inferior a 50% do valor da fatura.
|
1157
|
-
*/
|
1158
|
-
perDayInterestCents = 0;
|
1159
|
-
/**
|
1160
|
-
* Informar o valor percentual de juros que deseja cobrar.
|
1161
|
-
* Não se aplica quando os valores diários de mora
|
1162
|
-
* calculados são menores que 1 centavo.
|
1163
|
-
*/
|
1164
|
-
perDayInterestValue = 1;
|
1165
|
-
// #endregion Properties (10)
|
1053
|
+
class OrderScaleEntity {
|
1054
|
+
// #region Properties (2)
|
1055
|
+
defaultPrice = 0;
|
1056
|
+
scales = [];
|
1057
|
+
// #endregion Properties (2)
|
1166
1058
|
// #region Constructors (1)
|
1167
1059
|
constructor(data) {
|
1168
1060
|
if (data) {
|
@@ -1175,16 +1067,29 @@ class GlobalSettingIuguEntity {
|
|
1175
1067
|
}
|
1176
1068
|
}
|
1177
1069
|
|
1178
|
-
class
|
1179
|
-
// #region Properties (
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1070
|
+
class OrderItemEntity {
|
1071
|
+
// #region Properties (20)
|
1072
|
+
composition = [];
|
1073
|
+
ean = '';
|
1074
|
+
externalCode = '';
|
1075
|
+
id = '';
|
1076
|
+
index = 0;
|
1077
|
+
name = '';
|
1078
|
+
observations = '';
|
1079
|
+
options = [];
|
1080
|
+
optionsPrice = 0;
|
1081
|
+
picture = '';
|
1082
|
+
preparationPlaceId = '';
|
1083
|
+
price = 0;
|
1084
|
+
productId = 0;
|
1085
|
+
quantity = 0;
|
1086
|
+
scalePrices = new OrderScaleEntity();
|
1087
|
+
skill = '';
|
1088
|
+
totalPrice = 0;
|
1089
|
+
unit = '';
|
1090
|
+
unitPrice = 0;
|
1091
|
+
weight = 0;
|
1092
|
+
// #endregion Properties (20)
|
1188
1093
|
// #region Constructors (1)
|
1189
1094
|
constructor(data) {
|
1190
1095
|
if (data) {
|
@@ -1197,11 +1102,54 @@ class GlobalSettingMasterEntity {
|
|
1197
1102
|
}
|
1198
1103
|
}
|
1199
1104
|
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1105
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
1106
|
+
var OrderStatusEnum;
|
1107
|
+
(function (OrderStatusEnum) {
|
1108
|
+
OrderStatusEnum["PLACED"] = "PLACED";
|
1109
|
+
OrderStatusEnum["INTEGRATED"] = "INTEGRATED";
|
1110
|
+
OrderStatusEnum["CONFIRMED"] = "CONFIRMED";
|
1111
|
+
OrderStatusEnum["PENDING"] = "PENDING";
|
1112
|
+
OrderStatusEnum["CANCELLATION_REQUESTED"] = "CANCELLATION_REQUESTED";
|
1113
|
+
OrderStatusEnum["CANCELLATION_REQUEST_FAILED"] = "CANCELLATION_REQUEST_FAILED";
|
1114
|
+
OrderStatusEnum["CANCELLED"] = "CANCELLED";
|
1115
|
+
OrderStatusEnum["GOING_TO_ORIGIN"] = "GOING_TO_ORIGIN";
|
1116
|
+
OrderStatusEnum["ARRIVED_AT_ORIGIN"] = "ARRIVED_AT_ORIGIN";
|
1117
|
+
OrderStatusEnum["ARRIVED_AT_DESTINATION"] = "ARRIVED_AT_DESTINATION";
|
1118
|
+
OrderStatusEnum["READY_TO_PICKUP"] = "READY_TO_PICKUP";
|
1119
|
+
OrderStatusEnum["COLLECTED"] = "COLLECTED";
|
1120
|
+
OrderStatusEnum["DISPATCHED"] = "DISPATCHED";
|
1121
|
+
OrderStatusEnum["DELIVERED"] = "DELIVERED";
|
1122
|
+
OrderStatusEnum["CONCLUDED"] = "CONCLUDED";
|
1123
|
+
OrderStatusEnum["PICKUP_AREA_ASSIGNED"] = "PICKUP_AREA_ASSIGNED";
|
1124
|
+
OrderStatusEnum["DELAY_NOTIFICATION"] = "DELAY_NOTIFICATION";
|
1125
|
+
OrderStatusEnum["CHANGE_PREPARATION_TIME"] = "CHANGE_PREPARATION_TIME";
|
1126
|
+
OrderStatusEnum["REQUEST_DRIVER_AVAILABILITY"] = "REQUEST_DRIVER_AVAILABILITY";
|
1127
|
+
OrderStatusEnum["REQUEST_DRIVER"] = "REQUEST_DRIVER";
|
1128
|
+
OrderStatusEnum["REQUEST_DRIVER_SUCCESS"] = "REQUEST_DRIVER_SUCCESS";
|
1129
|
+
OrderStatusEnum["REQUEST_DRIVER_FAILED"] = "REQUEST_DRIVER_FAILED";
|
1130
|
+
OrderStatusEnum["ASSIGN_DRIVER"] = "ASSIGN_DRIVER";
|
1131
|
+
OrderStatusEnum["CONSUMER_CANCELLATION_REQUESTED"] = "CONSUMER_CANCELLATION_REQUESTED";
|
1132
|
+
OrderStatusEnum["CONSUMER_CANCELLATION_ACCEPTED"] = "CONSUMER_CANCELLATION_ACCEPTED";
|
1133
|
+
OrderStatusEnum["CONSUMER_CANCELLATION_DENIED"] = "CONSUMER_CANCELLATION_DENIED";
|
1134
|
+
OrderStatusEnum["ADDED_TO_GROUP"] = "ADDED_TO_GROUP";
|
1135
|
+
OrderStatusEnum["EXECUTED_WITH_GROUP"] = "EXECUTED_WITH_GROUP";
|
1136
|
+
OrderStatusEnum["CANCELLED_WITH_GROUP"] = "CANCELLED_WITH_GROUP";
|
1137
|
+
OrderStatusEnum["COLLECTED_IN_GROUP"] = "COLLECTED_IN_GROUP";
|
1138
|
+
OrderStatusEnum["ASSIGNED_WITH_GROUP"] = "ASSIGNED_WITH_GROUP";
|
1139
|
+
OrderStatusEnum["UPDATE_REQUESTED"] = "UPDATE_REQUESTED";
|
1140
|
+
OrderStatusEnum["UPDATE_DENIED"] = "UPDATE_DENIED";
|
1141
|
+
OrderStatusEnum["UPDATED"] = "UPDATED";
|
1142
|
+
OrderStatusEnum["BOX_ASSIGNED"] = "BOX_ASSIGNED";
|
1143
|
+
})(OrderStatusEnum || (OrderStatusEnum = {}));
|
1144
|
+
|
1145
|
+
// index.ts
|
1146
|
+
|
1147
|
+
class OrderPaymentEntity {
|
1148
|
+
// #region Properties (3)
|
1149
|
+
methods = [];
|
1150
|
+
pending = 0;
|
1151
|
+
prepaid = 0;
|
1152
|
+
// #endregion Properties (3)
|
1205
1153
|
// #region Constructors (1)
|
1206
1154
|
constructor(data) {
|
1207
1155
|
if (data) {
|
@@ -1214,15 +1162,14 @@ class GlobalSettingEntity {
|
|
1214
1162
|
}
|
1215
1163
|
}
|
1216
1164
|
|
1217
|
-
class
|
1218
|
-
// #region Properties (
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
// #endregion Properties (6)
|
1165
|
+
class OrderTotalEntity {
|
1166
|
+
// #region Properties (5)
|
1167
|
+
additionalFees = 0;
|
1168
|
+
benefits = 0;
|
1169
|
+
deliveryFee = 0;
|
1170
|
+
orderAmount = 0;
|
1171
|
+
subTotal = 0;
|
1172
|
+
// #endregion Properties (5)
|
1226
1173
|
// #region Constructors (1)
|
1227
1174
|
constructor(data) {
|
1228
1175
|
if (data) {
|
@@ -1235,14 +1182,24 @@ class SubscriptionBaseItemEntity {
|
|
1235
1182
|
}
|
1236
1183
|
}
|
1237
1184
|
|
1238
|
-
class
|
1239
|
-
// #region Properties (
|
1185
|
+
class OrderEntity {
|
1186
|
+
// #region Properties (16)
|
1187
|
+
additionalFees = [];
|
1188
|
+
benefits = [];
|
1189
|
+
cancellation = new OrderCancellationEntity();
|
1190
|
+
companyId = '';
|
1191
|
+
containerId = '';
|
1240
1192
|
createdAt = new Date();
|
1241
|
-
|
1193
|
+
customer = new OrderCustomerEntity();
|
1242
1194
|
id = '';
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1195
|
+
items = [];
|
1196
|
+
payments = new OrderPaymentEntity();
|
1197
|
+
salesChannel = '';
|
1198
|
+
sandbox = false;
|
1199
|
+
status = OrderStatusEnum.PENDING;
|
1200
|
+
total = new OrderTotalEntity();
|
1201
|
+
updatedAt = new Date();
|
1202
|
+
version = '';
|
1246
1203
|
constructor(data) {
|
1247
1204
|
if (data) {
|
1248
1205
|
for (let key in data) {
|
@@ -1254,44 +1211,10 @@ class SubscriptionBaseLogEntity {
|
|
1254
1211
|
}
|
1255
1212
|
}
|
1256
1213
|
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
ESubscriptionStatus["PLACED"] = "PLACED";
|
1262
|
-
ESubscriptionStatus["EXPIRED"] = "EXPIRED";
|
1263
|
-
ESubscriptionStatus["PENDING"] = "PENDING";
|
1264
|
-
ESubscriptionStatus["TRIAL"] = "TRIAL";
|
1265
|
-
ESubscriptionStatus["FREE"] = "FREE";
|
1266
|
-
ESubscriptionStatus["SUSPENDED"] = "SUSPENDED";
|
1267
|
-
})(ESubscriptionStatus || (ESubscriptionStatus = {}));
|
1268
|
-
|
1269
|
-
class SubscriptionBaseEntity {
|
1270
|
-
// #region Properties (25)
|
1271
|
-
amount = 0;
|
1272
|
-
cancellationReason = '';
|
1273
|
-
createdAt = new Date();
|
1274
|
-
customVariables = [];
|
1275
|
-
expiresAt = new Date();
|
1276
|
-
id = '';
|
1277
|
-
interval = 0;
|
1278
|
-
intervalType = IntervalTypeEnum.MONTHS;
|
1279
|
-
invoices = [];
|
1280
|
-
items = [];
|
1281
|
-
logs = [];
|
1282
|
-
notes = '';
|
1283
|
-
payment = new PaymentEntity();
|
1284
|
-
paymentType = EPaymentType.NONE;
|
1285
|
-
phoneNumberNotification = '';
|
1286
|
-
recentInvoices = [];
|
1287
|
-
renewPaymentDate = new Date();
|
1288
|
-
renovatedAt = new Date();
|
1289
|
-
startsAt = new Date();
|
1290
|
-
status = ESubscriptionStatus.PENDING;
|
1291
|
-
suspendedTimes = 0;
|
1292
|
-
tags = [];
|
1293
|
-
updatedAt = new Date();
|
1294
|
-
// #endregion Properties (25)
|
1214
|
+
class OrderPaymentCardEntity {
|
1215
|
+
// #region Properties (1)
|
1216
|
+
brand = '';
|
1217
|
+
// #endregion Properties (1)
|
1295
1218
|
// #region Constructors (1)
|
1296
1219
|
constructor(data) {
|
1297
1220
|
if (data) {
|
@@ -1304,14 +1227,10 @@ class SubscriptionBaseEntity {
|
|
1304
1227
|
}
|
1305
1228
|
}
|
1306
1229
|
|
1307
|
-
class
|
1308
|
-
// #region Properties (
|
1309
|
-
|
1310
|
-
|
1311
|
-
mode = EAppMode.NATI_GO;
|
1312
|
-
name = '';
|
1313
|
-
version = '';
|
1314
|
-
// #endregion Properties (5)
|
1230
|
+
class OrderPaymentCashEntity {
|
1231
|
+
// #region Properties (1)
|
1232
|
+
changeFor = 0;
|
1233
|
+
// #endregion Properties (1)
|
1315
1234
|
// #region Constructors (1)
|
1316
1235
|
constructor(data) {
|
1317
1236
|
if (data) {
|
@@ -1324,22 +1243,20 @@ class InstallationAppEntity {
|
|
1324
1243
|
}
|
1325
1244
|
}
|
1326
1245
|
|
1327
|
-
class
|
1328
|
-
// #region Properties (
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
featureId = '';
|
1246
|
+
class OrderPaymentMethodEntity {
|
1247
|
+
// #region Properties (11)
|
1248
|
+
card = null;
|
1249
|
+
cash = null;
|
1250
|
+
code = '';
|
1251
|
+
currency = 'BRL';
|
1334
1252
|
id = '';
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
// #endregion Properties (13)
|
1253
|
+
method = EPaymentType.CASH;
|
1254
|
+
pix = null;
|
1255
|
+
prepaid = false;
|
1256
|
+
type = 'OFFLINE';
|
1257
|
+
value = 0;
|
1258
|
+
wallet = null;
|
1259
|
+
// #endregion Properties (11)
|
1343
1260
|
// #region Constructors (1)
|
1344
1261
|
constructor(data) {
|
1345
1262
|
if (data) {
|
@@ -1352,48 +1269,27 @@ class InstallationEntity {
|
|
1352
1269
|
}
|
1353
1270
|
}
|
1354
1271
|
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
}
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
InviteStatusEnum["PENDING"] = "PENDING";
|
1372
|
-
InviteStatusEnum["REJECTED"] = "REJECTED";
|
1373
|
-
InviteStatusEnum["EXPIRED"] = "EXPIRED";
|
1374
|
-
InviteStatusEnum["CANCELED"] = "CANCELED";
|
1375
|
-
})(InviteStatusEnum || (InviteStatusEnum = {}));
|
1272
|
+
class OrderPaymentPixEntity {
|
1273
|
+
// #region Properties (2)
|
1274
|
+
pixKey = '';
|
1275
|
+
urlQrImage = '';
|
1276
|
+
// #endregion Properties (2)
|
1277
|
+
// #region Constructors (1)
|
1278
|
+
constructor(data) {
|
1279
|
+
if (data) {
|
1280
|
+
for (let key in data) {
|
1281
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1282
|
+
this[key] = data[key];
|
1283
|
+
}
|
1284
|
+
}
|
1285
|
+
}
|
1286
|
+
}
|
1287
|
+
}
|
1376
1288
|
|
1377
|
-
class
|
1378
|
-
// #region Properties (
|
1379
|
-
companyId = '';
|
1380
|
-
companyName = '';
|
1381
|
-
containerId = '';
|
1382
|
-
createdAt = new Date();
|
1383
|
-
doc = '';
|
1384
|
-
docType = EDocType.CNPJ;
|
1385
|
-
email = '';
|
1386
|
-
expireAt = new Date(new Date().getTime() + 86400000);
|
1387
|
-
expired = false;
|
1388
|
-
id = '';
|
1389
|
-
internationalCode = '+55';
|
1289
|
+
class OrderPaymentWalletEntity {
|
1290
|
+
// #region Properties (1)
|
1390
1291
|
name = '';
|
1391
|
-
|
1392
|
-
photoUrl = '';
|
1393
|
-
status = InviteStatusEnum.PENDING;
|
1394
|
-
uid = '';
|
1395
|
-
updatedAt = new Date();
|
1396
|
-
// #endregion Properties (17)
|
1292
|
+
// #endregion Properties (1)
|
1397
1293
|
// #region Constructors (1)
|
1398
1294
|
constructor(data) {
|
1399
1295
|
if (data) {
|
@@ -1406,16 +1302,11 @@ class InviteEntity {
|
|
1406
1302
|
}
|
1407
1303
|
}
|
1408
1304
|
|
1409
|
-
class
|
1410
|
-
// #region Properties (
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
bankSlipStatus = EBankSlipStatus.PENDING;
|
1415
|
-
barcode = '';
|
1416
|
-
barcodeData = '';
|
1417
|
-
digitableLine = '';
|
1418
|
-
// #endregion Properties (7)
|
1305
|
+
class OrderScaleItemEntity {
|
1306
|
+
// #region Properties (2)
|
1307
|
+
minQuantity = 0;
|
1308
|
+
price = 0;
|
1309
|
+
// #endregion Properties (2)
|
1419
1310
|
// #region Constructors (1)
|
1420
1311
|
constructor(data) {
|
1421
1312
|
if (data) {
|
@@ -1428,17 +1319,13 @@ class InvoiceBankSlipEntity {
|
|
1428
1319
|
}
|
1429
1320
|
}
|
1430
1321
|
|
1431
|
-
class
|
1432
|
-
// #region Properties (
|
1433
|
-
|
1434
|
-
|
1435
|
-
capturedAt = '';
|
1436
|
-
last4 = '';
|
1437
|
-
tid = '';
|
1438
|
-
transaction = '';
|
1439
|
-
// #endregion Properties (6)
|
1322
|
+
class BillingOrderEntity extends OrderEntity {
|
1323
|
+
// #region Properties (1)
|
1324
|
+
billingPaymentId = '';
|
1325
|
+
// #endregion Properties (1)
|
1440
1326
|
// #region Constructors (1)
|
1441
1327
|
constructor(data) {
|
1328
|
+
super(data);
|
1442
1329
|
if (data) {
|
1443
1330
|
for (let key in data) {
|
1444
1331
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1449,12 +1336,28 @@ class InvoiceCreditCardEntity {
|
|
1449
1336
|
}
|
1450
1337
|
}
|
1451
1338
|
|
1452
|
-
|
1453
|
-
|
1339
|
+
var ECampaignStatus;
|
1340
|
+
(function (ECampaignStatus) {
|
1341
|
+
ECampaignStatus["ACTIVE"] = "ACTIVE";
|
1342
|
+
ECampaignStatus["EXPIRED"] = "EXPIRED";
|
1343
|
+
ECampaignStatus["PLACED"] = "PLACED";
|
1344
|
+
ECampaignStatus["PAUSED"] = "PAUSED";
|
1345
|
+
ECampaignStatus["CONCLUDED"] = "CONCLUDED";
|
1346
|
+
})(ECampaignStatus || (ECampaignStatus = {}));
|
1347
|
+
|
1348
|
+
class CampaignEntity {
|
1349
|
+
// #region Properties (10)
|
1350
|
+
createdAt = new Date();
|
1351
|
+
createdBy = '';
|
1454
1352
|
description = '';
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1353
|
+
endDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30);
|
1354
|
+
id = '';
|
1355
|
+
name = '';
|
1356
|
+
partnerId = [];
|
1357
|
+
startDate = new Date();
|
1358
|
+
status = ECampaignStatus.PLACED;
|
1359
|
+
updatedAt = new Date();
|
1360
|
+
// #endregion Properties (10)
|
1458
1361
|
// #region Constructors (1)
|
1459
1362
|
constructor(data) {
|
1460
1363
|
if (data) {
|
@@ -1467,12 +1370,12 @@ class InvoiceItemEntity {
|
|
1467
1370
|
}
|
1468
1371
|
}
|
1469
1372
|
|
1470
|
-
class
|
1373
|
+
class ClientAplicationCredentialEntity {
|
1471
1374
|
// #region Properties (4)
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1375
|
+
refreshToken = null;
|
1376
|
+
refreshTokenAt = null;
|
1377
|
+
secrets = null;
|
1378
|
+
token = null;
|
1476
1379
|
// #endregion Properties (4)
|
1477
1380
|
// #region Constructors (1)
|
1478
1381
|
constructor(data) {
|
@@ -1486,15 +1389,12 @@ class InvoiceLogEntity {
|
|
1486
1389
|
}
|
1487
1390
|
}
|
1488
1391
|
|
1489
|
-
class
|
1490
|
-
// #region Properties (
|
1491
|
-
|
1492
|
-
|
1493
|
-
docType = EDocType.CNPJ;
|
1494
|
-
email = '';
|
1392
|
+
class ClientAplicationEntity {
|
1393
|
+
// #region Properties (3)
|
1394
|
+
credential = new ClientAplicationCredentialEntity();
|
1395
|
+
description = null;
|
1495
1396
|
name = '';
|
1496
|
-
|
1497
|
-
// #endregion Properties (6)
|
1397
|
+
// #endregion Properties (3)
|
1498
1398
|
// #region Constructors (1)
|
1499
1399
|
constructor(data) {
|
1500
1400
|
if (data) {
|
@@ -1507,14 +1407,16 @@ class InvoicePayerEntity {
|
|
1507
1407
|
}
|
1508
1408
|
}
|
1509
1409
|
|
1510
|
-
class
|
1511
|
-
// #region Properties (
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1410
|
+
class ClientEntity {
|
1411
|
+
// #region Properties (7)
|
1412
|
+
address = null;
|
1413
|
+
aplications = [];
|
1414
|
+
doc = null;
|
1415
|
+
docType = EDocType.CPF;
|
1416
|
+
email = null;
|
1417
|
+
id = '';
|
1418
|
+
name = '';
|
1419
|
+
// #endregion Properties (7)
|
1518
1420
|
// #region Constructors (1)
|
1519
1421
|
constructor(data) {
|
1520
1422
|
if (data) {
|
@@ -1527,64 +1429,35 @@ class InvoicePixEntity {
|
|
1527
1429
|
}
|
1528
1430
|
}
|
1529
1431
|
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
EInvoiceStatus["DRAFT"] = "DRAFT";
|
1537
|
-
EInvoiceStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
1538
|
-
EInvoiceStatus["REFUNDED"] = "REFUNDED";
|
1539
|
-
EInvoiceStatus["EXPIRED"] = "EXPIRED";
|
1540
|
-
EInvoiceStatus["IN_PROTEST"] = "IN_PROTEST";
|
1541
|
-
EInvoiceStatus["CHARGEBACK"] = "CHARGEBACK";
|
1542
|
-
EInvoiceStatus["EXTERNALLY_PAID"] = "EXTERNALLY_PAID";
|
1543
|
-
})(EInvoiceStatus || (EInvoiceStatus = {}));
|
1544
|
-
|
1545
|
-
class InvoiceEntity {
|
1546
|
-
// #region Properties (44)
|
1547
|
-
addition = 0;
|
1548
|
-
bankSlip = null;
|
1549
|
-
bankSlipExtraDue = 3;
|
1550
|
-
ccEmails = [];
|
1551
|
-
companyId = '';
|
1432
|
+
class CompanyEntity {
|
1433
|
+
// #region Properties (26)
|
1434
|
+
active = false;
|
1435
|
+
address = new AddressEntity();
|
1436
|
+
bgImageUrl = null;
|
1437
|
+
config = null;
|
1552
1438
|
containerId = '';
|
1553
1439
|
createdAt = new Date();
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1440
|
+
deliveryArea = [];
|
1441
|
+
deliveryAreaFixed = null;
|
1442
|
+
doc = '';
|
1443
|
+
docType = EDocType.CNPJ;
|
1558
1444
|
email = '';
|
1559
|
-
|
1560
|
-
externalInvoiceId = '';
|
1561
|
-
externalInvoiceUrl = '';
|
1445
|
+
fullName = '';
|
1562
1446
|
id = '';
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
payer = new InvoicePayerEntity();
|
1572
|
-
paymentMethod = EPaymentType.NONE;
|
1573
|
-
paymentProvider = null;
|
1447
|
+
imageUrl = null;
|
1448
|
+
internationalCode = '+55';
|
1449
|
+
logoUrl = null;
|
1450
|
+
messagerChannels = [];
|
1451
|
+
name = '';
|
1452
|
+
origin = new OriginEntity();
|
1453
|
+
paymentProvider = new PaymentProviderEntity();
|
1454
|
+
phoneNumber = '';
|
1574
1455
|
phoneNumberNotification = null;
|
1575
|
-
|
1576
|
-
|
1577
|
-
returnUrl = '';
|
1578
|
-
status = EInvoiceStatus.PENDING;
|
1579
|
-
subscriptionId = '';
|
1580
|
-
subtotal = 0;
|
1581
|
-
totalAmount = 0;
|
1582
|
-
totalFee = 0;
|
1583
|
-
totalOverPaid = 0;
|
1584
|
-
totalPaid = 0;
|
1585
|
-
totalRefunded = 0;
|
1456
|
+
sandbox = false;
|
1457
|
+
tags = [];
|
1586
1458
|
updatedAt = new Date();
|
1587
|
-
|
1459
|
+
version = '1.0.0';
|
1460
|
+
// #endregion Properties (26)
|
1588
1461
|
// #region Constructors (1)
|
1589
1462
|
constructor(data) {
|
1590
1463
|
if (data) {
|
@@ -1597,13 +1470,33 @@ class InvoiceEntity {
|
|
1597
1470
|
}
|
1598
1471
|
}
|
1599
1472
|
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1473
|
+
// index.ts
|
1474
|
+
|
1475
|
+
var ECompanyKeys;
|
1476
|
+
(function (ECompanyKeys) {
|
1477
|
+
ECompanyKeys["GOOGLE"] = "GOOGLE";
|
1478
|
+
ECompanyKeys["LOGGI"] = "LOGGI";
|
1479
|
+
ECompanyKeys["DESENFILA"] = "DESENFILA";
|
1480
|
+
ECompanyKeys["MOTTU"] = "MOTTU";
|
1481
|
+
ECompanyKeys["ALGOLIA"] = "ALGOLIA";
|
1482
|
+
})(ECompanyKeys || (ECompanyKeys = {}));
|
1483
|
+
|
1484
|
+
var ECompanyMessageType;
|
1485
|
+
(function (ECompanyMessageType) {
|
1486
|
+
ECompanyMessageType["WHATSAPP"] = "WHATSAPP";
|
1487
|
+
ECompanyMessageType["INSTAGRAM"] = "INSTAGRAM";
|
1488
|
+
ECompanyMessageType["SMS"] = "SMS";
|
1489
|
+
})(ECompanyMessageType || (ECompanyMessageType = {}));
|
1490
|
+
|
1491
|
+
// index.ts
|
1492
|
+
|
1493
|
+
class ContainerEntity extends BaseEntity {
|
1494
|
+
// #region Properties (1)
|
1495
|
+
name = '';
|
1496
|
+
// #endregion Properties (1)
|
1605
1497
|
// #region Constructors (1)
|
1606
1498
|
constructor(data) {
|
1499
|
+
super(data);
|
1607
1500
|
if (data) {
|
1608
1501
|
for (let key in data) {
|
1609
1502
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1614,28 +1507,50 @@ class AccountInformationsEntity {
|
|
1614
1507
|
}
|
1615
1508
|
}
|
1616
1509
|
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1510
|
+
var ECustomerInterval;
|
1511
|
+
(function (ECustomerInterval) {
|
1512
|
+
ECustomerInterval["WEEKLY"] = "WEEKLY";
|
1513
|
+
ECustomerInterval["BIWEEKLY"] = "BIWEEKLY";
|
1514
|
+
ECustomerInterval["MONTHLY"] = "MONTHLY";
|
1515
|
+
})(ECustomerInterval || (ECustomerInterval = {}));
|
1516
|
+
|
1517
|
+
var ECustomerStatus;
|
1518
|
+
(function (ECustomerStatus) {
|
1519
|
+
ECustomerStatus["BLOCKED"] = "BLOCKED";
|
1520
|
+
ECustomerStatus["ACTIVE"] = "ACTIVE";
|
1521
|
+
ECustomerStatus["WAITING_CREDIT_ANALYSIS"] = "WAITING_CREDIT_ANALYSIS";
|
1522
|
+
})(ECustomerStatus || (ECustomerStatus = {}));
|
1523
|
+
|
1524
|
+
var ECustomerType;
|
1525
|
+
(function (ECustomerType) {
|
1526
|
+
ECustomerType["SINGLE"] = "SINGLE";
|
1527
|
+
ECustomerType["COMPOUND"] = "COMPOUND";
|
1528
|
+
})(ECustomerType || (ECustomerType = {}));
|
1529
|
+
|
1530
|
+
class CustomerEntity {
|
1531
|
+
// #region Properties (20)
|
1532
|
+
address = new AddressEntity();
|
1533
|
+
blockedReason = null;
|
1534
|
+
createdAt = new Date();
|
1535
|
+
deliveryArea = [];
|
1536
|
+
deliveryAreaFixed = undefined;
|
1537
|
+
doc = '';
|
1538
|
+
docType = EDocType.CPF;
|
1539
|
+
email = '';
|
1540
|
+
fullName = '';
|
1541
|
+
id = '';
|
1542
|
+
imageUrl = null;
|
1543
|
+
interval = ECustomerInterval.MONTHLY;
|
1544
|
+
limit = 0;
|
1632
1545
|
name = '';
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1546
|
+
phoneNumber = '';
|
1547
|
+
phoneNumberNotification = null;
|
1548
|
+
sandbox = false;
|
1549
|
+
status = ECustomerStatus.WAITING_CREDIT_ANALYSIS;
|
1550
|
+
tags = [];
|
1551
|
+
type = ECustomerType.SINGLE;
|
1552
|
+
updatedAt = new Date();
|
1553
|
+
// #endregion Properties (20)
|
1639
1554
|
// #region Constructors (1)
|
1640
1555
|
constructor(data) {
|
1641
1556
|
if (data) {
|
@@ -1648,22 +1563,43 @@ class LastVerificationRequestDataEntity {
|
|
1648
1563
|
}
|
1649
1564
|
}
|
1650
1565
|
|
1651
|
-
|
1566
|
+
var MemberRulesEnum;
|
1567
|
+
(function (MemberRulesEnum) {
|
1568
|
+
MemberRulesEnum["ADMIN"] = "ADMIN";
|
1569
|
+
MemberRulesEnum["USER"] = "USER";
|
1570
|
+
MemberRulesEnum["OWNER"] = "OWNER";
|
1571
|
+
MemberRulesEnum["SUPPORT"] = "SUPPORT";
|
1572
|
+
MemberRulesEnum["PARTNER"] = "PARTNER";
|
1573
|
+
MemberRulesEnum["FINANCE"] = "FINANCE";
|
1574
|
+
MemberRulesEnum["MARKETING"] = "MARKETING";
|
1575
|
+
MemberRulesEnum["SALES"] = "SALES";
|
1576
|
+
})(MemberRulesEnum || (MemberRulesEnum = {}));
|
1577
|
+
|
1578
|
+
var MemberTypeEnum;
|
1579
|
+
(function (MemberTypeEnum) {
|
1580
|
+
MemberTypeEnum["PARTNER"] = "PARTNER";
|
1581
|
+
MemberTypeEnum["ADMIN"] = "ADMIN";
|
1582
|
+
MemberTypeEnum["CLIENT"] = "CLIENT";
|
1583
|
+
})(MemberTypeEnum || (MemberTypeEnum = {}));
|
1584
|
+
|
1585
|
+
class MemberEntity extends BaseEntity {
|
1652
1586
|
// #region Properties (13)
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1587
|
+
active = true;
|
1588
|
+
companyName = '';
|
1589
|
+
containerName = '';
|
1590
|
+
email = '';
|
1591
|
+
name = '';
|
1592
|
+
partnerId = '';
|
1593
|
+
phoneNumber = '';
|
1594
|
+
photoUrl = '';
|
1595
|
+
rule = MemberRulesEnum.USER;
|
1596
|
+
tags = [];
|
1597
|
+
type = MemberTypeEnum.CLIENT;
|
1598
|
+
uid = '';
|
1599
|
+
// #endregion Properties (13)
|
1600
|
+
// #region Constructors (1)
|
1666
1601
|
constructor(data) {
|
1602
|
+
super(data);
|
1667
1603
|
if (data) {
|
1668
1604
|
for (let key in data) {
|
1669
1605
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1674,30 +1610,39 @@ class IuguChargeCreditCardEntity {
|
|
1674
1610
|
}
|
1675
1611
|
}
|
1676
1612
|
|
1677
|
-
class
|
1678
|
-
// #region Properties (
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1613
|
+
class CustomerMemberEntity extends MemberEntity {
|
1614
|
+
// #region Properties (13)
|
1615
|
+
// #endregion Properties (13)
|
1616
|
+
// #region Constructors (1)
|
1617
|
+
constructor(data) {
|
1618
|
+
super(data);
|
1619
|
+
if (data) {
|
1620
|
+
for (let key in data) {
|
1621
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1622
|
+
this[key] = data[key];
|
1623
|
+
}
|
1624
|
+
}
|
1625
|
+
}
|
1626
|
+
}
|
1627
|
+
}
|
1628
|
+
|
1629
|
+
class DeviceEntity {
|
1630
|
+
// #region Properties (14)
|
1631
|
+
active = false;
|
1632
|
+
companyId = '';
|
1633
|
+
containerId = '';
|
1683
1634
|
createdAt = new Date();
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1635
|
+
deviceId = '';
|
1636
|
+
os = EOs.UNKNOWN;
|
1637
|
+
installedApps = [];
|
1638
|
+
osVersion = '';
|
1688
1639
|
id = '';
|
1640
|
+
key = '';
|
1641
|
+
lastAccess = new Date();
|
1689
1642
|
name = '';
|
1690
|
-
|
1691
|
-
number = '';
|
1692
|
-
paymentMethods = [];
|
1693
|
-
phone = '';
|
1694
|
-
phonePrefix = '';
|
1695
|
-
proxyPaymentsFromCustomerId = '';
|
1696
|
-
state = '';
|
1697
|
-
street = '';
|
1643
|
+
tags = [];
|
1698
1644
|
updatedAt = new Date();
|
1699
|
-
|
1700
|
-
// #endregion Properties (21)
|
1645
|
+
// #endregion Properties (14)
|
1701
1646
|
// #region Constructors (1)
|
1702
1647
|
constructor(data) {
|
1703
1648
|
if (data) {
|
@@ -1710,16 +1655,10 @@ class IuguCustomerEntity {
|
|
1710
1655
|
}
|
1711
1656
|
}
|
1712
1657
|
|
1713
|
-
class
|
1714
|
-
// #region Properties (
|
1715
|
-
|
1716
|
-
|
1717
|
-
bankSlipErrorMessage = null;
|
1718
|
-
bankSlipStatus = 'pending';
|
1719
|
-
barcode = '';
|
1720
|
-
barcodeData = '';
|
1721
|
-
digitableLine = '';
|
1722
|
-
// #endregion Properties (7)
|
1658
|
+
class MetadataEntity {
|
1659
|
+
// #region Properties (1)
|
1660
|
+
natigo = new NatiGoEntity();
|
1661
|
+
// #endregion Properties (1)
|
1723
1662
|
// #region Constructors (1)
|
1724
1663
|
constructor(data) {
|
1725
1664
|
if (data) {
|
@@ -1732,123 +1671,91 @@ class IuguInvoiceBankSlipEntity {
|
|
1732
1671
|
}
|
1733
1672
|
}
|
1734
1673
|
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
canceledAt;
|
1748
|
-
canceledAtIso;
|
1749
|
-
ccEmails;
|
1750
|
-
chargebackAt;
|
1751
|
-
chargebackAtIso;
|
1752
|
-
commission = '';
|
1753
|
-
commissionCents;
|
1754
|
-
createdAt = '';
|
1755
|
-
createdAtIso = '';
|
1756
|
-
creditCardBin;
|
1757
|
-
creditCardBrand;
|
1758
|
-
creditCardCapturedAt;
|
1759
|
-
creditCardLast4;
|
1760
|
-
creditCardTid;
|
1761
|
-
creditCardTransaction = '';
|
1762
|
-
currency = '';
|
1763
|
-
customVariables = [];
|
1764
|
-
customerId;
|
1765
|
-
customerName;
|
1766
|
-
customerRef;
|
1767
|
-
discount;
|
1768
|
-
discountCents = 0;
|
1769
|
-
doublePaymentId;
|
1770
|
-
dueDate = '';
|
1771
|
-
duplicatedInvoiceId;
|
1772
|
-
earlyPaymentDiscount = false;
|
1773
|
-
earlyPaymentDiscounts = [];
|
1774
|
-
email = '';
|
1775
|
-
estimatedAdvanceFee;
|
1776
|
-
expiredAt;
|
1777
|
-
expiredAtIso;
|
1778
|
-
externalPaymentDescription;
|
1779
|
-
externalPaymentId;
|
1780
|
-
externalReference;
|
1781
|
-
financialReturnDate;
|
1782
|
-
financialReturnDates;
|
1783
|
-
finesOnOccurrenceDay = '';
|
1784
|
-
finesOnOccurrenceDayCents = 0;
|
1674
|
+
// index.ts
|
1675
|
+
|
1676
|
+
// index.ts
|
1677
|
+
|
1678
|
+
class FeatureEntity {
|
1679
|
+
// #region Properties (11)
|
1680
|
+
appId = '';
|
1681
|
+
appMode = null;
|
1682
|
+
companyId = '';
|
1683
|
+
containerId = '';
|
1684
|
+
createdAt = new Date();
|
1685
|
+
deviceId = '';
|
1785
1686
|
id = '';
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1687
|
+
installationId = '';
|
1688
|
+
name = '';
|
1689
|
+
planId = null;
|
1690
|
+
subscriptionId = '';
|
1691
|
+
// #endregion Properties (11)
|
1692
|
+
// #region Constructors (1)
|
1693
|
+
constructor(data) {
|
1694
|
+
if (data) {
|
1695
|
+
for (let key in data) {
|
1696
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1697
|
+
this[key] = data[key];
|
1698
|
+
}
|
1699
|
+
}
|
1700
|
+
}
|
1701
|
+
}
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
class GlobalSettingIuguEntity {
|
1705
|
+
// #region Properties (10)
|
1706
|
+
/**
|
1707
|
+
* Prazo máximo para pagamento do boleto após o vencimento.
|
1708
|
+
* O prazo máximo para pagamento deve ser entre "1" e "30"
|
1709
|
+
* dias após a data de vencimento.
|
1710
|
+
*/
|
1711
|
+
bankSlipExtraDue = 1;
|
1712
|
+
/**
|
1713
|
+
* Prazo de dias para o vencimento da fatura.
|
1714
|
+
*/
|
1715
|
+
billingDays = 10;
|
1716
|
+
/**
|
1717
|
+
* Se true, garante que a data de vencimento seja apenas em dias de semana,
|
1718
|
+
* e não em sábados ou domingos.
|
1719
|
+
*/
|
1720
|
+
ensureWorkdayDueDate = true;
|
1721
|
+
/**
|
1722
|
+
* Expira uma fatura e impossibilita o seu pagamento depois 'x' dias após o vencimento.
|
1723
|
+
* Valor enviado precisa estar entre 0 e 30. Se for enviado "0", a fatura ficará
|
1724
|
+
* disponível para ser paga até às 23:59:59 do dia de vencimento.
|
1725
|
+
*/
|
1726
|
+
expiresIn = 0;
|
1727
|
+
/**
|
1728
|
+
* Habilitar ou Desabilitar multa por atraso de pagamento
|
1729
|
+
*/
|
1730
|
+
fines = true;
|
1731
|
+
/**
|
1732
|
+
* Determine a multa % a ser cobrada para pagamentos
|
1733
|
+
* efetuados após a data de vencimento
|
1734
|
+
*/
|
1735
|
+
latePaymentFine = 2;
|
1736
|
+
/**
|
1737
|
+
* Determine a multa por valor fixo a ser
|
1738
|
+
* cobrada para pagamentos efetuados após a data de vencimento
|
1739
|
+
*/
|
1740
|
+
latePaymentFineCents = 0;
|
1741
|
+
/**
|
1742
|
+
* determina se cobra ou não juros por dia de atraso.
|
1743
|
+
* 1% ao mês pro rata. Necessário passar a multa como true
|
1744
|
+
*/
|
1745
|
+
perDayInterest = true;
|
1746
|
+
/**
|
1747
|
+
* Juros a ser cobrado por dia em centavos.
|
1748
|
+
* Sobrepõem o per_day_interest_value.
|
1749
|
+
* O juros somado em 30 dias deve ser inferior a 50% do valor da fatura.
|
1750
|
+
*/
|
1820
1751
|
perDayInterestCents = 0;
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
refundedCents = 0;
|
1829
|
-
remainingCapturedCents = 0;
|
1830
|
-
returnUrl = '';
|
1831
|
-
secureId = '';
|
1832
|
-
secureUrl = '';
|
1833
|
-
splitId;
|
1834
|
-
splitRules;
|
1835
|
-
status = '';
|
1836
|
-
taxCents = 0;
|
1837
|
-
taxesPaid = '';
|
1838
|
-
taxesPaidCents;
|
1839
|
-
total = '';
|
1840
|
-
totalCents = 0;
|
1841
|
-
totalOnOccurrenceDay = '';
|
1842
|
-
totalOnOccurrenceDayCents = 0;
|
1843
|
-
totalOverpaid = '';
|
1844
|
-
totalPaid = '';
|
1845
|
-
totalPaidCents = 0;
|
1846
|
-
totalRefunded = '';
|
1847
|
-
transactionNumber = 0;
|
1848
|
-
updatedAt = '';
|
1849
|
-
userId = '';
|
1850
|
-
variables = [];
|
1851
|
-
// #endregion Properties (114)
|
1752
|
+
/**
|
1753
|
+
* Informar o valor percentual de juros que deseja cobrar.
|
1754
|
+
* Não se aplica quando os valores diários de mora
|
1755
|
+
* calculados são menores que 1 centavo.
|
1756
|
+
*/
|
1757
|
+
perDayInterestValue = 1;
|
1758
|
+
// #endregion Properties (10)
|
1852
1759
|
// #region Constructors (1)
|
1853
1760
|
constructor(data) {
|
1854
1761
|
if (data) {
|
@@ -1861,306 +1768,33 @@ class IuguInvoiceEntity {
|
|
1861
1768
|
}
|
1862
1769
|
}
|
1863
1770
|
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1771
|
+
class GlobalSettingMasterEntity {
|
1772
|
+
// #region Properties (8)
|
1773
|
+
billingDays = 10;
|
1774
|
+
deleteInvoicesPlacedDays = 10;
|
1775
|
+
deleteSubscriptionsPlacedDays = 10;
|
1776
|
+
subscriptionSuspendedTimes = 3;
|
1777
|
+
subscriptionsCancelDays = 3;
|
1778
|
+
subscriptionsExpireDays = 1;
|
1779
|
+
subscriptionsSuspendDays = 1;
|
1780
|
+
// #endregion Properties (8)
|
1781
|
+
// #region Constructors (1)
|
1782
|
+
constructor(data) {
|
1783
|
+
if (data) {
|
1784
|
+
for (let key in data) {
|
1785
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1786
|
+
this[key] = data[key];
|
1787
|
+
}
|
1788
|
+
}
|
1789
|
+
}
|
1790
|
+
}
|
1791
|
+
}
|
1871
1792
|
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
IuguBankEnum["BRASIL"] = "Banco do Brasil";
|
1878
|
-
IuguBankEnum["SANTANDER"] = "Santander";
|
1879
|
-
IuguBankEnum["BANRISUL"] = "Banrisul";
|
1880
|
-
IuguBankEnum["SICRED"] = "Sicredi";
|
1881
|
-
IuguBankEnum["SICOOB"] = "Sicoob";
|
1882
|
-
IuguBankEnum["INTER"] = "Inter";
|
1883
|
-
IuguBankEnum["BRB"] = "BRB";
|
1884
|
-
IuguBankEnum["VIACRED"] = "Via Credi";
|
1885
|
-
IuguBankEnum["NEON"] = "Neon";
|
1886
|
-
IuguBankEnum["VOTORANTIN"] = "Votorantim";
|
1887
|
-
IuguBankEnum["NUBANK"] = "Nubank";
|
1888
|
-
IuguBankEnum["PAGSEGURO"] = "Pagseguro";
|
1889
|
-
IuguBankEnum["ORIGINAL"] = "Banco Original";
|
1890
|
-
IuguBankEnum["SAFRA"] = "Safra";
|
1891
|
-
IuguBankEnum["MODAL"] = "Modal";
|
1892
|
-
IuguBankEnum["BANESTES"] = "Banestes";
|
1893
|
-
IuguBankEnum["UNICRED"] = "Unicred";
|
1894
|
-
IuguBankEnum["MONEYPLUS"] = "Money Plus";
|
1895
|
-
IuguBankEnum["MERCANTIL"] = "Mercantil do Brasil";
|
1896
|
-
IuguBankEnum["JPMORGAN"] = "JP Morgan";
|
1897
|
-
IuguBankEnum["GERENCIANET"] = "Gerencianet Pagamentos do Brasil";
|
1898
|
-
IuguBankEnum["C6"] = "Banco C6";
|
1899
|
-
IuguBankEnum["BS2"] = "BS2";
|
1900
|
-
IuguBankEnum["TOPAZIO"] = "Banco Topazio";
|
1901
|
-
IuguBankEnum["UNIPRIME"] = "Uniprime";
|
1902
|
-
IuguBankEnum["STONE"] = "Stone";
|
1903
|
-
IuguBankEnum["DAYCOVAL"] = "Banco Daycoval";
|
1904
|
-
IuguBankEnum["RENDIMENTO"] = "Rendimento";
|
1905
|
-
IuguBankEnum["NORDESTE"] = "Banco do Nordeste";
|
1906
|
-
IuguBankEnum["CITIBANK"] = "Citibank";
|
1907
|
-
IuguBankEnum["PJBANK"] = "PJBank";
|
1908
|
-
IuguBankEnum["CCCNB"] = "Cooperativa Central de Credito Noroeste Brasileiro";
|
1909
|
-
IuguBankEnum["UNIPRIMENPARANA"] = "Uniprime Norte do Paran\u00E1";
|
1910
|
-
IuguBankEnum["GLOBALSCM"] = "Global SCM";
|
1911
|
-
IuguBankEnum["NEXT"] = "Next";
|
1912
|
-
IuguBankEnum["CORA"] = "Cora";
|
1913
|
-
IuguBankEnum["MERCADOPAGO"] = "Mercado Pago";
|
1914
|
-
IuguBankEnum["AMAZONIA"] = "Banco da Amazonia";
|
1915
|
-
IuguBankEnum["BNP"] = "BNP Paribas Brasil";
|
1916
|
-
IuguBankEnum["JUNO"] = "Juno";
|
1917
|
-
IuguBankEnum["CRESOL"] = "Cresol";
|
1918
|
-
IuguBankEnum["BRLTRUST"] = "BRL Trust DTVM";
|
1919
|
-
IuguBankEnum["BANESE"] = "Banco Banese";
|
1920
|
-
IuguBankEnum["BTGPACTUAL"] = "Banco BTG Pactual";
|
1921
|
-
IuguBankEnum["OMNI"] = "Banco Omni";
|
1922
|
-
IuguBankEnum["ACESSOSOLUCOES"] = "Acesso Solu\u00E7\u00F5es de Pagamento";
|
1923
|
-
IuguBankEnum["CCR"] = "CCR de S\u00E3o Miguel do Oeste";
|
1924
|
-
IuguBankEnum["POLOCRED"] = "Polocred";
|
1925
|
-
IuguBankEnum["OTIMO"] = "\u00D3timo";
|
1926
|
-
IuguBankEnum["RIBEIRAOPRETO"] = "Banco Ribeir\u00E3o Preto";
|
1927
|
-
IuguBankEnum["ASAASIP"] = "ASAAS IP";
|
1928
|
-
IuguBankEnum["PAN"] = "Banco Pan";
|
1929
|
-
IuguBankEnum["VORTX"] = "VORTX DTVM LTDA";
|
1930
|
-
IuguBankEnum["BMG"] = "Banco BMG";
|
1931
|
-
IuguBankEnum["PEFISA"] = "Pefisa";
|
1932
|
-
IuguBankEnum["J17"] = "J17 - SCD S/A";
|
1933
|
-
IuguBankEnum["CREDISAN"] = "Credisan";
|
1934
|
-
IuguBankEnum["PINBANK"] = "Pinbank";
|
1935
|
-
IuguBankEnum["XPINVESTIMENTOS"] = "XP Investimentos";
|
1936
|
-
IuguBankEnum["CREFISA"] = "Crefisa";
|
1937
|
-
IuguBankEnum["SINGULARE"] = "Singulare";
|
1938
|
-
IuguBankEnum["SUMUP"] = "SUMUP SCD S.A.";
|
1939
|
-
IuguBankEnum["ABCBRASIL"] = "Banco ABC Brasil";
|
1940
|
-
IuguBankEnum["LETSBANK"] = "BCO LETSBANK S.A.";
|
1941
|
-
IuguBankEnum["HRDIGITAL"] = "HR Digital Sociedade de Cr\u00E9dito Direto S.A";
|
1942
|
-
})(IuguBankEnum || (IuguBankEnum = {}));
|
1943
|
-
const IuguBankNumber = [
|
1944
|
-
{ code: "341", label: IuguBankEnum.ITAU },
|
1945
|
-
{ code: "237", label: IuguBankEnum.BRADESCO },
|
1946
|
-
{ code: "104", label: IuguBankEnum.CAIXA },
|
1947
|
-
{ code: "001", label: IuguBankEnum.BRASIL },
|
1948
|
-
{ code: "033", label: IuguBankEnum.SANTANDER },
|
1949
|
-
{ code: "041", label: IuguBankEnum.BANRISUL },
|
1950
|
-
{ code: "748", label: IuguBankEnum.SICRED },
|
1951
|
-
{ code: "756", label: IuguBankEnum.SICOOB },
|
1952
|
-
{ code: "077", label: IuguBankEnum.INTER },
|
1953
|
-
{ code: "070", label: IuguBankEnum.BRB },
|
1954
|
-
{ code: "085", label: IuguBankEnum.VIACRED },
|
1955
|
-
{ code: "735", label: IuguBankEnum.NEON },
|
1956
|
-
{ code: "655", label: IuguBankEnum.VOTORANTIN },
|
1957
|
-
{ code: "260", label: IuguBankEnum.NUBANK },
|
1958
|
-
{ code: "290", label: IuguBankEnum.PAGSEGURO },
|
1959
|
-
{ code: "212", label: IuguBankEnum.ORIGINAL },
|
1960
|
-
{ code: "422", label: IuguBankEnum.SAFRA },
|
1961
|
-
{ code: "746", label: IuguBankEnum.MODAL },
|
1962
|
-
{ code: "021", label: IuguBankEnum.BANESTES },
|
1963
|
-
{ code: "136", label: IuguBankEnum.UNICRED },
|
1964
|
-
{ code: "274", label: IuguBankEnum.MONEYPLUS },
|
1965
|
-
{ code: "389", label: IuguBankEnum.MERCANTIL },
|
1966
|
-
{ code: "376", label: IuguBankEnum.JPMORGAN },
|
1967
|
-
{ code: "364", label: IuguBankEnum.GERENCIANET },
|
1968
|
-
{ code: "336", label: IuguBankEnum.C6 },
|
1969
|
-
{ code: "218", label: IuguBankEnum.BS2 },
|
1970
|
-
{ code: "082", label: IuguBankEnum.TOPAZIO },
|
1971
|
-
{ code: "099", label: IuguBankEnum.UNIPRIME },
|
1972
|
-
{ code: "197", label: IuguBankEnum.STONE },
|
1973
|
-
{ code: "707", label: IuguBankEnum.DAYCOVAL },
|
1974
|
-
{ code: "633", label: IuguBankEnum.RENDIMENTO },
|
1975
|
-
{ code: "004", label: IuguBankEnum.NORDESTE },
|
1976
|
-
{ code: "745", label: IuguBankEnum.CITIBANK },
|
1977
|
-
{ code: "301", label: IuguBankEnum.PJBANK },
|
1978
|
-
{ code: "320", label: IuguBankEnum.CCCNB },
|
1979
|
-
{ code: "084", label: IuguBankEnum.UNIPRIMENPARANA },
|
1980
|
-
{ code: "384", label: IuguBankEnum.GLOBALSCM },
|
1981
|
-
{ code: "237", label: IuguBankEnum.NEXT },
|
1982
|
-
{ code: "403", label: IuguBankEnum.CORA },
|
1983
|
-
{ code: "323", label: IuguBankEnum.MERCADOPAGO },
|
1984
|
-
{ code: "003", label: IuguBankEnum.AMAZONIA },
|
1985
|
-
{ code: "752", label: IuguBankEnum.BNP },
|
1986
|
-
{ code: "383", label: IuguBankEnum.JUNO },
|
1987
|
-
{ code: "133", label: IuguBankEnum.CRESOL },
|
1988
|
-
{ code: "173", label: IuguBankEnum.BRLTRUST },
|
1989
|
-
{ code: "047", label: IuguBankEnum.BANESE },
|
1990
|
-
{ code: "208", label: IuguBankEnum.BTGPACTUAL },
|
1991
|
-
{ code: "613", label: IuguBankEnum.OMNI },
|
1992
|
-
{ code: "332", label: IuguBankEnum.ACESSOSOLUCOES },
|
1993
|
-
{ code: "281", label: IuguBankEnum.CCR },
|
1994
|
-
{ code: "093", label: IuguBankEnum.POLOCRED },
|
1995
|
-
{ code: "355", label: IuguBankEnum.OTIMO },
|
1996
|
-
{ code: "741", label: IuguBankEnum.RIBEIRAOPRETO },
|
1997
|
-
{ code: "461", label: IuguBankEnum.ASAASIP },
|
1998
|
-
{ code: "623", label: IuguBankEnum.PAN },
|
1999
|
-
{ code: "310", label: IuguBankEnum.VORTX },
|
2000
|
-
{ code: "318", label: IuguBankEnum.BMG },
|
2001
|
-
{ code: "174", label: IuguBankEnum.PEFISA },
|
2002
|
-
{ code: "085", label: IuguBankEnum.J17 },
|
2003
|
-
{ code: "222", label: IuguBankEnum.CREDISAN },
|
2004
|
-
{ code: "094", label: IuguBankEnum.PINBANK },
|
2005
|
-
{ code: "102", label: IuguBankEnum.XPINVESTIMENTOS },
|
2006
|
-
{ code: "069", label: IuguBankEnum.CREFISA },
|
2007
|
-
{ code: "300", label: IuguBankEnum.SINGULARE },
|
2008
|
-
{ code: "290", label: IuguBankEnum.SUMUP },
|
2009
|
-
{ code: "246", label: IuguBankEnum.ABCBRASIL },
|
2010
|
-
{ code: "290", label: IuguBankEnum.LETSBANK },
|
2011
|
-
{ code: "255", label: IuguBankEnum.HRDIGITAL },
|
2012
|
-
];
|
2013
|
-
const IuguBankFormatter = [
|
2014
|
-
{ name: "Banco do Brasil", agency: "9999-D", account: "99999999-D" },
|
2015
|
-
{ name: "Santander", agency: "9999", account: "99999999-D" },
|
2016
|
-
{ name: "Caixa Econômica", agency: "9999", account: "XXX99999999-D (X: Operação)" },
|
2017
|
-
{ name: "Caixa Econômica", agency: "9999", account: "XXXX999999999-D (X: Operação - Novo formato CP)" },
|
2018
|
-
{ name: "Bradesco", agency: "9999-D", account: "9999999-D" },
|
2019
|
-
{ name: "Itaú", agency: "9999", account: "99999-D" },
|
2020
|
-
{ name: "Itaú", agency: "9999", account: "999999999-D (Itaú-Iti)" },
|
2021
|
-
{ name: "Agibank", agency: "9999", account: "9999999999" },
|
2022
|
-
{ name: "Banpará", agency: "9999", account: "999999999-D" },
|
2023
|
-
{ name: "Banrisul", agency: "9999", account: "999999999-D" },
|
2024
|
-
{ name: "Sicoob", agency: "9999", account: "999999999-D" },
|
2025
|
-
{ name: "Inter", agency: "9999", account: "999999999-D" },
|
2026
|
-
{ name: "BRB", agency: "9999", account: "999999999-D" },
|
2027
|
-
{ name: "Via Credi", agency: "9999", account: "99999999999-D" },
|
2028
|
-
{ name: "Neon/Votorantim", agency: "9999", account: "9999999999-D" },
|
2029
|
-
{ name: "Nubank", agency: "9999", account: "9999999999-D" },
|
2030
|
-
{ name: "Pagseguro", agency: "9999", account: "99999999-D" },
|
2031
|
-
{ name: "Banco Original", agency: "9999", account: "9999999-D" },
|
2032
|
-
{ name: "Safra", agency: "9999", account: "99999999-D" },
|
2033
|
-
{ name: "Modal", agency: "9999", account: "999999999-D" },
|
2034
|
-
{ name: "Banestes", agency: "9999", account: "99999999-D" },
|
2035
|
-
{ name: "Unicred", agency: "9999", account: "99999999-D" },
|
2036
|
-
{ name: "Money Plus", agency: "9", account: "99999999-D" },
|
2037
|
-
{ name: "Mercantil do Brasil", agency: "9999", account: "99999999-D" },
|
2038
|
-
{ name: "JP Morgan", agency: "9999", account: "99999999999-D" },
|
2039
|
-
{ name: "Gerencianet Pagamentos do Brasil", agency: "9999", account: "99999999-D" },
|
2040
|
-
{ name: "Banco C6", agency: "9999", account: "99999999-D" },
|
2041
|
-
{ name: "BS2", agency: "9999", account: "9999999-D" },
|
2042
|
-
{ name: "Banco Topazio", agency: "9999", account: "99999-D" },
|
2043
|
-
{ name: "Uniprime", agency: "9999", account: "9999-D" },
|
2044
|
-
{ name: "Stone", agency: "9999", account: "9999999-D" },
|
2045
|
-
{ name: "Rendimento", agency: "9999-D", account: "9999999999" },
|
2046
|
-
{ name: "Banco Daycoval", agency: "9999", account: "999999-D" },
|
2047
|
-
{ name: "Banco do Nordeste", agency: "999", account: "999999-D" },
|
2048
|
-
{ name: "Citibank", agency: "9999", account: "99999999" },
|
2049
|
-
{ name: "PJBank", agency: "9999", account: "9999999999-D" },
|
2050
|
-
{ name: "Cooperativa Central de Credito Noroeste Brasileiro", agency: "9999", account: "9999999-D" },
|
2051
|
-
{ name: "Uniprime Norte do Paraná", agency: "9999", account: "999999-D" },
|
2052
|
-
{ name: "Global SCM", agency: "9999", account: "99999999999" },
|
2053
|
-
{ name: "Next", agency: "9999-D", account: "9999999-D" },
|
2054
|
-
{ name: "Cora", agency: "9999", account: "9999999-D" },
|
2055
|
-
{ name: "Mercado Pago", agency: "9999", account: "9999999999-D" },
|
2056
|
-
{ name: "Banco da Amazonia", agency: "9999", account: "999999-D" },
|
2057
|
-
{ name: "BNP Paribas Brasil", agency: "999", account: "999999-DDD" },
|
2058
|
-
{ name: "Juno", agency: "9999", account: "9999999999-D" },
|
2059
|
-
{ name: "Cresol", agency: "9999", account: "99999999-D" },
|
2060
|
-
{ name: "BRL Trust DTVM", agency: "999", account: "999999-D" },
|
2061
|
-
{ name: "Banco Banese", agency: "999", account: "99999999-D" },
|
2062
|
-
{ name: "Banco BTG Pactual", agency: "9999", account: "9999999-D" },
|
2063
|
-
{ name: "Banco Omni", agency: "9999", account: "999999-D" },
|
2064
|
-
{ name: "Acesso Soluções de pagamento", agency: "9999", account: "99999999" },
|
2065
|
-
{ name: "CCR de São Miguel do Oeste", agency: "9999", account: "99999" },
|
2066
|
-
{ name: "Polocred", agency: "9999", account: "999999-D" },
|
2067
|
-
{ name: "Ótimo", agency: "9999", account: "99999-D" },
|
2068
|
-
{ name: "Picpay", agency: "9999", account: "99999999-D" },
|
2069
|
-
{ name: "Banco Genial", agency: "9999", account: "9999-D" },
|
2070
|
-
{ name: "Banco Capital S.A", agency: "9999", account: "999999999" },
|
2071
|
-
{ name: "Sicredi", agency: "9999", account: "99999999D" },
|
2072
|
-
{ name: "Banco Ribeirão Preto", agency: "99999", account: "9999999999" },
|
2073
|
-
{ name: "ASAAS IP", agency: "9999", account: "9999999-D" },
|
2074
|
-
{ name: "Banco Pan", agency: "9999", account: "999999999-D" },
|
2075
|
-
{ name: "Neon", agency: "9999", account: "9999999999-D" },
|
2076
|
-
{ name: "VORTX DTVM LTDA", agency: "9999-D", account: "999-D" },
|
2077
|
-
{ name: "Banco BMG", agency: "9999", account: "99999999-D" },
|
2078
|
-
{ name: "Fitbank", agency: "9999", account: "999999999-9" },
|
2079
|
-
{ name: "Pefisa", agency: "9999", account: "9999999-D" },
|
2080
|
-
{ name: "J17 - SCD S/A", agency: "9999", account: "99999999999-D" },
|
2081
|
-
{ name: "Credisan", agency: "9999", account: "999999999-D" },
|
2082
|
-
{ name: "Pinbank", agency: "999", account: "99999999-D" },
|
2083
|
-
{ name: "XP Investimentos", agency: "9999", account: "999999-D" },
|
2084
|
-
{ name: "Crefisa", agency: "9999", account: "999999999-D" },
|
2085
|
-
{ name: "Singulare", agency: "9999", account: "9999999-D" },
|
2086
|
-
{ name: "SUMUP SCD S.A.", agency: "9999", account: "999999999-D" },
|
2087
|
-
{ name: "Banco ABC Brasil", agency: "9999-D", account: "9999999999" },
|
2088
|
-
{ name: "BCO LETSBANK S.A.", agency: "9999", account: "999999999-D" },
|
2089
|
-
{ name: "HR Digital Sociedade de Crédito Direto S.A", agency: "9999", account: "999999999-D" },
|
2090
|
-
];
|
2091
|
-
|
2092
|
-
var IuguInvoiceStatusEnum;
|
2093
|
-
(function (IuguInvoiceStatusEnum) {
|
2094
|
-
IuguInvoiceStatusEnum["PENDING"] = "PENDING";
|
2095
|
-
IuguInvoiceStatusEnum["PAID"] = "PAID";
|
2096
|
-
IuguInvoiceStatusEnum["CANCELED"] = "CANCELED";
|
2097
|
-
IuguInvoiceStatusEnum["IN_ANALYSIS"] = "IN_ANALYSIS";
|
2098
|
-
IuguInvoiceStatusEnum["DRAFT"] = "DRAFT";
|
2099
|
-
IuguInvoiceStatusEnum["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
2100
|
-
IuguInvoiceStatusEnum["REFUNDED"] = "REFUNDED";
|
2101
|
-
IuguInvoiceStatusEnum["EXPIRED"] = "EXPIRED";
|
2102
|
-
IuguInvoiceStatusEnum["IN_PROTEST"] = "IN_PROTEST";
|
2103
|
-
IuguInvoiceStatusEnum["CHARGEBACK"] = "CHARGEBACK";
|
2104
|
-
IuguInvoiceStatusEnum["EXTERNALLY_PAID"] = "EXTERNALLY_PAID";
|
2105
|
-
})(IuguInvoiceStatusEnum || (IuguInvoiceStatusEnum = {}));
|
2106
|
-
|
2107
|
-
class IuguAccountEntity {
|
2108
|
-
// #region Properties (54)
|
2109
|
-
autoAdvance = false;
|
2110
|
-
autoAdvanceOption = 0;
|
2111
|
-
autoAdvanceType = IuguAutoAdvanceEnum.DAILY;
|
2112
|
-
autoWithdraw = false;
|
2113
|
-
balance = '';
|
2114
|
-
balanceAvailableForWithdraw = '';
|
2115
|
-
balanceInProtest = '';
|
2116
|
-
canReceive = false;
|
2117
|
-
changePlanType = 0;
|
2118
|
-
commissionBalance = '';
|
2119
|
-
configuration = null;
|
2120
|
-
createdAt = new Date();
|
2121
|
-
creditCardVerified = false;
|
2122
|
-
customLogoSmallUrl = '';
|
2123
|
-
customLogoUrl = '';
|
2124
|
-
defaultReturnUrl = '';
|
2125
|
-
disableEmails = false;
|
2126
|
-
disabledWithdraw = false;
|
2127
|
-
earlyPaymentDiscount = false;
|
2128
|
-
earlyPaymentDiscountDays = 0;
|
2129
|
-
earlyPaymentDiscountPercent = 0;
|
2130
|
-
earlyPaymentDiscounts = [];
|
2131
|
-
fines = false;
|
2132
|
-
hasBankAddress = false;
|
2133
|
-
id = '';
|
2134
|
-
informations = [];
|
2135
|
-
isVerified = false;
|
2136
|
-
lastVerificationRequestData = new LastVerificationRequestDataEntity();
|
2137
|
-
lastVerificationRequestFeedback = '';
|
2138
|
-
lastVerificationRequestStatus = 'accepted';
|
2139
|
-
lastWithdraw = new Date();
|
2140
|
-
latePaymentFine = 0;
|
2141
|
-
marketplace = false;
|
2142
|
-
name = '';
|
2143
|
-
oldAdvancement = false;
|
2144
|
-
payableBalance = '';
|
2145
|
-
paymentEmailNotification = false;
|
2146
|
-
paymentEmailNotificationReceiver = '';
|
2147
|
-
perDayInterest = false;
|
2148
|
-
permissions = [];
|
2149
|
-
protectedBalance = '';
|
2150
|
-
receivableBalance = '';
|
2151
|
-
replyTo = '';
|
2152
|
-
splits = [];
|
2153
|
-
subscriptionsBillingDays = 0;
|
2154
|
-
subscriptionsTrialPeriod = 0;
|
2155
|
-
taxesPaidLastMonth = '';
|
2156
|
-
taxesPaidThisMonth = '';
|
2157
|
-
totalActiveSubscriptions = 0;
|
2158
|
-
totalSubscriptions = 0;
|
2159
|
-
updatedAt = new Date();
|
2160
|
-
volumeLastMonth = '';
|
2161
|
-
volumeThisMonth = '';
|
2162
|
-
webappOnTestMode = false;
|
2163
|
-
// #endregion Properties (54)
|
1793
|
+
class GlobalSettingEntity {
|
1794
|
+
// #region Properties (1)
|
1795
|
+
iugu = new GlobalSettingIuguEntity();
|
1796
|
+
billingDays = 3;
|
1797
|
+
// #endregion Properties (1)
|
2164
1798
|
// #region Constructors (1)
|
2165
1799
|
constructor(data) {
|
2166
1800
|
if (data) {
|
@@ -2173,18 +1807,15 @@ class IuguAccountEntity {
|
|
2173
1807
|
}
|
2174
1808
|
}
|
2175
1809
|
|
2176
|
-
class
|
2177
|
-
// #region Properties (
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
month = 0;
|
2186
|
-
year = 2035;
|
2187
|
-
// #endregion Properties (9)
|
1810
|
+
class SubscriptionBaseItemEntity {
|
1811
|
+
// #region Properties (6)
|
1812
|
+
description = '';
|
1813
|
+
quantity = 1;
|
1814
|
+
recurrent = true;
|
1815
|
+
totalPrice = 0;
|
1816
|
+
unitPrice = 0;
|
1817
|
+
voucherKey = null;
|
1818
|
+
// #endregion Properties (6)
|
2188
1819
|
// #region Constructors (1)
|
2189
1820
|
constructor(data) {
|
2190
1821
|
if (data) {
|
@@ -2197,14 +1828,13 @@ class IuguPaymentTokenDataEntity {
|
|
2197
1828
|
}
|
2198
1829
|
}
|
2199
1830
|
|
2200
|
-
class
|
2201
|
-
// #region Properties (
|
2202
|
-
|
2203
|
-
data = new IuguPaymentTokenDataEntity();
|
1831
|
+
class SubscriptionBaseLogEntity {
|
1832
|
+
// #region Properties (4)
|
1833
|
+
createdAt = new Date();
|
2204
1834
|
description = '';
|
2205
1835
|
id = '';
|
2206
|
-
|
2207
|
-
// #endregion Properties (
|
1836
|
+
notes = '';
|
1837
|
+
// #endregion Properties (4)
|
2208
1838
|
// #region Constructors (1)
|
2209
1839
|
constructor(data) {
|
2210
1840
|
if (data) {
|
@@ -2217,61 +1847,44 @@ class IuguPaymentTokenEntity {
|
|
2217
1847
|
}
|
2218
1848
|
}
|
2219
1849
|
|
2220
|
-
var
|
2221
|
-
(function (
|
2222
|
-
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2227
|
-
|
2228
|
-
|
2229
|
-
|
2230
|
-
|
2231
|
-
LeadStatusEnum["CLOSED"] = "Fechado";
|
2232
|
-
LeadStatusEnum["LOST"] = "Perdido";
|
2233
|
-
LeadStatusEnum["UNQUALIFIED"] = "N\u00E3o Qualificado";
|
2234
|
-
})(LeadStatusEnum || (LeadStatusEnum = {}));
|
1850
|
+
var ESubscriptionStatus;
|
1851
|
+
(function (ESubscriptionStatus) {
|
1852
|
+
ESubscriptionStatus["ACTIVE"] = "ACTIVE";
|
1853
|
+
ESubscriptionStatus["CANCELLED"] = "CANCELLED";
|
1854
|
+
ESubscriptionStatus["PLACED"] = "PLACED";
|
1855
|
+
ESubscriptionStatus["EXPIRED"] = "EXPIRED";
|
1856
|
+
ESubscriptionStatus["PENDING"] = "PENDING";
|
1857
|
+
ESubscriptionStatus["TRIAL"] = "TRIAL";
|
1858
|
+
ESubscriptionStatus["FREE"] = "FREE";
|
1859
|
+
ESubscriptionStatus["SUSPENDED"] = "SUSPENDED";
|
1860
|
+
})(ESubscriptionStatus || (ESubscriptionStatus = {}));
|
2235
1861
|
|
2236
|
-
class
|
2237
|
-
// #region Properties (
|
2238
|
-
|
2239
|
-
|
2240
|
-
/**Endereço de e-mail principal para contato. */
|
2241
|
-
alternateEmails = [];
|
2242
|
-
/**Número de telefone principal. */
|
2243
|
-
alternatePhones = [];
|
2244
|
-
/**ID do agente ou parceiro que cadastrou o lead. */
|
2245
|
-
assignedTo = '';
|
2246
|
-
/**Notas ou observações adicionais. */
|
1862
|
+
class SubscriptionBaseEntity {
|
1863
|
+
// #region Properties (25)
|
1864
|
+
amount = 0;
|
1865
|
+
cancellationReason = '';
|
2247
1866
|
createdAt = new Date();
|
2248
|
-
|
2249
|
-
|
2250
|
-
/**Identificador único do lead. */
|
2251
|
-
docType = EDocType.CNPJ;
|
2252
|
-
/**Nome completo ou razão social do lead. */
|
2253
|
-
email = '';
|
1867
|
+
customVariables = [];
|
1868
|
+
expiresAt = new Date();
|
2254
1869
|
id = '';
|
2255
|
-
|
2256
|
-
|
2257
|
-
|
2258
|
-
|
2259
|
-
|
2260
|
-
|
2261
|
-
|
2262
|
-
|
2263
|
-
|
2264
|
-
|
2265
|
-
|
2266
|
-
|
2267
|
-
|
2268
|
-
|
2269
|
-
|
2270
|
-
status = LeadStatusEnum.NEW;
|
2271
|
-
/**ID do colaborador responsável pelo lead. */
|
1870
|
+
interval = 0;
|
1871
|
+
intervalType = EIntervalType.MONTHS;
|
1872
|
+
invoices = [];
|
1873
|
+
items = [];
|
1874
|
+
logs = [];
|
1875
|
+
notes = '';
|
1876
|
+
payment = new PaymentEntity();
|
1877
|
+
paymentType = EPaymentType.NONE;
|
1878
|
+
phoneNumberNotification = '';
|
1879
|
+
recentInvoices = [];
|
1880
|
+
renewPaymentDate = new Date();
|
1881
|
+
renovatedAt = new Date();
|
1882
|
+
startsAt = new Date();
|
1883
|
+
status = ESubscriptionStatus.PENDING;
|
1884
|
+
suspendedTimes = 0;
|
2272
1885
|
tags = [];
|
2273
1886
|
updatedAt = new Date();
|
2274
|
-
// #endregion Properties (
|
1887
|
+
// #endregion Properties (25)
|
2275
1888
|
// #region Constructors (1)
|
2276
1889
|
constructor(data) {
|
2277
1890
|
if (data) {
|
@@ -2284,43 +1897,16 @@ class LeadEntity {
|
|
2284
1897
|
}
|
2285
1898
|
}
|
2286
1899
|
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
MemberRulesEnum["SUPPORT"] = "SUPPORT";
|
2293
|
-
MemberRulesEnum["PARTNER"] = "PARTNER";
|
2294
|
-
MemberRulesEnum["FINANCE"] = "FINANCE";
|
2295
|
-
MemberRulesEnum["MARKETING"] = "MARKETING";
|
2296
|
-
MemberRulesEnum["SALES"] = "SALES";
|
2297
|
-
})(MemberRulesEnum || (MemberRulesEnum = {}));
|
2298
|
-
|
2299
|
-
var MemberTypeEnum;
|
2300
|
-
(function (MemberTypeEnum) {
|
2301
|
-
MemberTypeEnum["PARTNER"] = "PARTNER";
|
2302
|
-
MemberTypeEnum["ADMIN"] = "ADMIN";
|
2303
|
-
MemberTypeEnum["CLIENT"] = "CLIENT";
|
2304
|
-
})(MemberTypeEnum || (MemberTypeEnum = {}));
|
2305
|
-
|
2306
|
-
class MemberEntity extends BaseEntity {
|
2307
|
-
// #region Properties (13)
|
2308
|
-
active = true;
|
2309
|
-
companyName = '';
|
2310
|
-
containerName = '';
|
2311
|
-
email = '';
|
1900
|
+
class InstallationAppEntity {
|
1901
|
+
// #region Properties (5)
|
1902
|
+
iconUrl = '';
|
1903
|
+
id = '';
|
1904
|
+
mode = EAppMode.NATI_GO;
|
2312
1905
|
name = '';
|
2313
|
-
|
2314
|
-
|
2315
|
-
photoUrl = '';
|
2316
|
-
rule = MemberRulesEnum.USER;
|
2317
|
-
tags = [];
|
2318
|
-
type = MemberTypeEnum.CLIENT;
|
2319
|
-
uid = '';
|
2320
|
-
// #endregion Properties (13)
|
1906
|
+
version = '';
|
1907
|
+
// #endregion Properties (5)
|
2321
1908
|
// #region Constructors (1)
|
2322
1909
|
constructor(data) {
|
2323
|
-
super(data);
|
2324
1910
|
if (data) {
|
2325
1911
|
for (let key in data) {
|
2326
1912
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -2331,52 +1917,22 @@ class MemberEntity extends BaseEntity {
|
|
2331
1917
|
}
|
2332
1918
|
}
|
2333
1919
|
|
2334
|
-
|
2335
|
-
|
2336
|
-
|
2337
|
-
|
2338
|
-
|
2339
|
-
|
2340
|
-
|
2341
|
-
|
2342
|
-
|
2343
|
-
|
2344
|
-
|
2345
|
-
|
2346
|
-
|
2347
|
-
|
2348
|
-
|
2349
|
-
|
2350
|
-
NotificationCategoryEnum["DANGER"] = "danger";
|
2351
|
-
NotificationCategoryEnum["WARN"] = "warning";
|
2352
|
-
NotificationCategoryEnum["UPDATE"] = "update";
|
2353
|
-
NotificationCategoryEnum["OTHER"] = "other";
|
2354
|
-
})(NotificationCategoryEnum || (NotificationCategoryEnum = {}));
|
2355
|
-
|
2356
|
-
var NotificationPriorityEnum;
|
2357
|
-
(function (NotificationPriorityEnum) {
|
2358
|
-
NotificationPriorityEnum["LOW"] = "low";
|
2359
|
-
NotificationPriorityEnum["MEDIUM"] = "medium";
|
2360
|
-
NotificationPriorityEnum["HIGH"] = "high";
|
2361
|
-
NotificationPriorityEnum["URGENT"] = "urgent";
|
2362
|
-
})(NotificationPriorityEnum || (NotificationPriorityEnum = {}));
|
2363
|
-
|
2364
|
-
var NotificationStatusEnum;
|
2365
|
-
(function (NotificationStatusEnum) {
|
2366
|
-
NotificationStatusEnum["DELIVERED"] = "delivered";
|
2367
|
-
NotificationStatusEnum["READ"] = "read";
|
2368
|
-
NotificationStatusEnum["FAILED"] = "failed";
|
2369
|
-
NotificationStatusEnum["PLACED"] = "placed";
|
2370
|
-
NotificationStatusEnum["SENT"] = "sent";
|
2371
|
-
})(NotificationStatusEnum || (NotificationStatusEnum = {}));
|
2372
|
-
|
2373
|
-
class NotificationActionEntity {
|
2374
|
-
// #region Properties (4)
|
2375
|
-
icon = '';
|
2376
|
-
label = '';
|
2377
|
-
type = NotificationActionTypeEnum.URL;
|
2378
|
-
value = '';
|
2379
|
-
// #endregion Properties (4)
|
1920
|
+
class InstallationEntity {
|
1921
|
+
// #region Properties (13)
|
1922
|
+
app = new InstallationAppEntity();
|
1923
|
+
createdAt = new Date();
|
1924
|
+
customConfig = null;
|
1925
|
+
expirationDate = new Date();
|
1926
|
+
featureId = '';
|
1927
|
+
id = '';
|
1928
|
+
lastCheckAt = new Date();
|
1929
|
+
status = ESubscriptionStatus.PLACED;
|
1930
|
+
subscriptionId = '';
|
1931
|
+
tags = [];
|
1932
|
+
trialEndDate = new Date();
|
1933
|
+
trialStartDate = new Date();
|
1934
|
+
updatedAt = new Date();
|
1935
|
+
// #endregion Properties (13)
|
2380
1936
|
// #region Constructors (1)
|
2381
1937
|
constructor(data) {
|
2382
1938
|
if (data) {
|
@@ -2389,22 +1945,49 @@ class NotificationActionEntity {
|
|
2389
1945
|
}
|
2390
1946
|
}
|
2391
1947
|
|
2392
|
-
|
2393
|
-
|
2394
|
-
|
2395
|
-
|
1948
|
+
var EInstallationStatus;
|
1949
|
+
(function (EInstallationStatus) {
|
1950
|
+
EInstallationStatus["INSTALLED"] = "INSTALLED";
|
1951
|
+
EInstallationStatus["ACTIVE"] = "ACTIVE";
|
1952
|
+
EInstallationStatus["CANCELLED"] = "CANCELLED";
|
1953
|
+
EInstallationStatus["PLACED"] = "PLACED";
|
1954
|
+
EInstallationStatus["EXPIRED"] = "EXPIRED";
|
1955
|
+
EInstallationStatus["PENDING"] = "PENDING";
|
1956
|
+
EInstallationStatus["TRIAL"] = "TRIAL";
|
1957
|
+
EInstallationStatus["FREE"] = "FREE";
|
1958
|
+
EInstallationStatus["SUSPENDED"] = "SUSPENDED";
|
1959
|
+
})(EInstallationStatus || (EInstallationStatus = {}));
|
1960
|
+
|
1961
|
+
var InviteStatusEnum;
|
1962
|
+
(function (InviteStatusEnum) {
|
1963
|
+
InviteStatusEnum["ACCEPTED"] = "ACCEPTED";
|
1964
|
+
InviteStatusEnum["PENDING"] = "PENDING";
|
1965
|
+
InviteStatusEnum["REJECTED"] = "REJECTED";
|
1966
|
+
InviteStatusEnum["EXPIRED"] = "EXPIRED";
|
1967
|
+
InviteStatusEnum["CANCELED"] = "CANCELED";
|
1968
|
+
})(InviteStatusEnum || (InviteStatusEnum = {}));
|
1969
|
+
|
1970
|
+
class InviteEntity {
|
1971
|
+
// #region Properties (18)
|
1972
|
+
companyId = '';
|
1973
|
+
companyName = '';
|
1974
|
+
containerId = '';
|
2396
1975
|
createdAt = new Date();
|
2397
|
-
|
2398
|
-
|
2399
|
-
|
1976
|
+
customerId = '';
|
1977
|
+
doc = '';
|
1978
|
+
docType = EDocType.CNPJ;
|
1979
|
+
email = '';
|
1980
|
+
expireAt = new Date(new Date().getTime() + 86400000);
|
1981
|
+
expired = false;
|
2400
1982
|
id = '';
|
2401
|
-
|
2402
|
-
|
2403
|
-
|
2404
|
-
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
1983
|
+
internationalCode = '+55';
|
1984
|
+
name = '';
|
1985
|
+
phoneNumber = '';
|
1986
|
+
photoUrl = '';
|
1987
|
+
status = InviteStatusEnum.PENDING;
|
1988
|
+
uid = '';
|
1989
|
+
updatedAt = new Date();
|
1990
|
+
// #endregion Properties (18)
|
2408
1991
|
// #region Constructors (1)
|
2409
1992
|
constructor(data) {
|
2410
1993
|
if (data) {
|
@@ -2417,11 +2000,16 @@ class NotificationEntity {
|
|
2417
2000
|
}
|
2418
2001
|
}
|
2419
2002
|
|
2420
|
-
class
|
2421
|
-
// #region Properties (
|
2422
|
-
|
2423
|
-
|
2424
|
-
|
2003
|
+
class InvoiceBankSlipEntity {
|
2004
|
+
// #region Properties (7)
|
2005
|
+
bankSlipBank = 0;
|
2006
|
+
bankSlipErrorCode = '';
|
2007
|
+
bankSlipErrorMessage = '';
|
2008
|
+
bankSlipStatus = EBankSlipStatus.PENDING;
|
2009
|
+
barcode = '';
|
2010
|
+
barcodeData = '';
|
2011
|
+
digitableLine = '';
|
2012
|
+
// #endregion Properties (7)
|
2425
2013
|
// #region Constructors (1)
|
2426
2014
|
constructor(data) {
|
2427
2015
|
if (data) {
|
@@ -2434,14 +2022,14 @@ class OrderAdditionalFeeEntity {
|
|
2434
2022
|
}
|
2435
2023
|
}
|
2436
2024
|
|
2437
|
-
class
|
2025
|
+
class InvoiceCreditCardEntity {
|
2438
2026
|
// #region Properties (6)
|
2439
|
-
|
2440
|
-
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2027
|
+
bin = '';
|
2028
|
+
brand = '';
|
2029
|
+
capturedAt = '';
|
2030
|
+
last4 = '';
|
2031
|
+
tid = '';
|
2032
|
+
transaction = '';
|
2445
2033
|
// #endregion Properties (6)
|
2446
2034
|
// #region Constructors (1)
|
2447
2035
|
constructor(data) {
|
@@ -2455,11 +2043,11 @@ class OrderBenefitsEntity {
|
|
2455
2043
|
}
|
2456
2044
|
}
|
2457
2045
|
|
2458
|
-
class
|
2046
|
+
class InvoiceItemEntity {
|
2459
2047
|
// #region Properties (3)
|
2460
|
-
|
2461
|
-
|
2462
|
-
|
2048
|
+
description = '';
|
2049
|
+
quantity = 1;
|
2050
|
+
unitPrice = 0;
|
2463
2051
|
// #endregion Properties (3)
|
2464
2052
|
// #region Constructors (1)
|
2465
2053
|
constructor(data) {
|
@@ -2473,12 +2061,12 @@ class OrderCancellationEntity {
|
|
2473
2061
|
}
|
2474
2062
|
}
|
2475
2063
|
|
2476
|
-
class
|
2064
|
+
class InvoiceLogEntity {
|
2477
2065
|
// #region Properties (4)
|
2066
|
+
createdAt = '';
|
2478
2067
|
description = '';
|
2479
|
-
|
2480
|
-
|
2481
|
-
number = '';
|
2068
|
+
id = '';
|
2069
|
+
notes = '';
|
2482
2070
|
// #endregion Properties (4)
|
2483
2071
|
// #region Constructors (1)
|
2484
2072
|
constructor(data) {
|
@@ -2492,16 +2080,15 @@ class OrdersCustomerPhoneEntity {
|
|
2492
2080
|
}
|
2493
2081
|
}
|
2494
2082
|
|
2495
|
-
class
|
2496
|
-
// #region Properties (
|
2497
|
-
|
2083
|
+
class InvoicePayerEntity {
|
2084
|
+
// #region Properties (6)
|
2085
|
+
address = new AddressEntity();
|
2086
|
+
doc = '';
|
2087
|
+
docType = EDocType.CNPJ;
|
2498
2088
|
email = '';
|
2499
|
-
id = '';
|
2500
2089
|
name = '';
|
2501
|
-
|
2502
|
-
|
2503
|
-
picture = '';
|
2504
|
-
// #endregion Properties (7)
|
2090
|
+
phoneNumber = null;
|
2091
|
+
// #endregion Properties (6)
|
2505
2092
|
// #region Constructors (1)
|
2506
2093
|
constructor(data) {
|
2507
2094
|
if (data) {
|
@@ -2514,15 +2101,14 @@ class OrderCustomerEntity {
|
|
2514
2101
|
}
|
2515
2102
|
}
|
2516
2103
|
|
2517
|
-
class
|
2518
|
-
// #region Properties (
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2523
|
-
|
2524
|
-
|
2525
|
-
// #endregion Properties (6)
|
2104
|
+
class InvoicePixEntity {
|
2105
|
+
// #region Properties (5)
|
2106
|
+
expiresAt = new Date();
|
2107
|
+
qrCode = '';
|
2108
|
+
qrCodeImage = '';
|
2109
|
+
qrCodeText = '';
|
2110
|
+
status = '';
|
2111
|
+
// #endregion Properties (5)
|
2526
2112
|
// #region Constructors (1)
|
2527
2113
|
constructor(data) {
|
2528
2114
|
if (data) {
|
@@ -2535,24 +2121,64 @@ class OrderItemCompositionEntity {
|
|
2535
2121
|
}
|
2536
2122
|
}
|
2537
2123
|
|
2538
|
-
|
2539
|
-
|
2540
|
-
|
2541
|
-
|
2124
|
+
var EInvoiceStatus;
|
2125
|
+
(function (EInvoiceStatus) {
|
2126
|
+
EInvoiceStatus["PENDING"] = "PENDING";
|
2127
|
+
EInvoiceStatus["PAID"] = "PAID";
|
2128
|
+
EInvoiceStatus["CANCELED"] = "CANCELED";
|
2129
|
+
EInvoiceStatus["IN_ANALYSIS"] = "IN_ANALYSIS";
|
2130
|
+
EInvoiceStatus["DRAFT"] = "DRAFT";
|
2131
|
+
EInvoiceStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
2132
|
+
EInvoiceStatus["REFUNDED"] = "REFUNDED";
|
2133
|
+
EInvoiceStatus["EXPIRED"] = "EXPIRED";
|
2134
|
+
EInvoiceStatus["IN_PROTEST"] = "IN_PROTEST";
|
2135
|
+
EInvoiceStatus["CHARGEBACK"] = "CHARGEBACK";
|
2136
|
+
EInvoiceStatus["EXTERNALLY_PAID"] = "EXTERNALLY_PAID";
|
2137
|
+
})(EInvoiceStatus || (EInvoiceStatus = {}));
|
2138
|
+
|
2139
|
+
class InvoiceEntity {
|
2140
|
+
// #region Properties (44)
|
2141
|
+
addition = 0;
|
2142
|
+
bankSlip = null;
|
2143
|
+
bankSlipExtraDue = 3;
|
2144
|
+
ccEmails = [];
|
2145
|
+
companyId = '';
|
2146
|
+
containerId = '';
|
2147
|
+
createdAt = new Date();
|
2148
|
+
creditCard = null;
|
2149
|
+
currency = 'BRL';
|
2150
|
+
discount = 0;
|
2151
|
+
dueDateAt = new Date(Date.now() + 3 * 24 * 60 * 60 * 1000);
|
2152
|
+
email = '';
|
2153
|
+
ensureDueOnWorkday = true;
|
2154
|
+
externalInvoiceId = '';
|
2155
|
+
externalInvoiceUrl = '';
|
2542
2156
|
id = '';
|
2543
|
-
|
2544
|
-
|
2545
|
-
|
2546
|
-
|
2547
|
-
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
-
|
2554
|
-
|
2555
|
-
|
2157
|
+
items = [];
|
2158
|
+
log = [];
|
2159
|
+
notes = '';
|
2160
|
+
notificationUrl = '';
|
2161
|
+
orderId = '';
|
2162
|
+
paidAt = null;
|
2163
|
+
partnerId = '';
|
2164
|
+
password = null;
|
2165
|
+
payer = new InvoicePayerEntity();
|
2166
|
+
paymentMethod = EPaymentType.NONE;
|
2167
|
+
paymentProvider = null;
|
2168
|
+
phoneNumberNotification = null;
|
2169
|
+
pix = null;
|
2170
|
+
returnExpiredUrl = '';
|
2171
|
+
returnUrl = '';
|
2172
|
+
status = EInvoiceStatus.PENDING;
|
2173
|
+
subscriptionId = '';
|
2174
|
+
subtotal = 0;
|
2175
|
+
totalAmount = 0;
|
2176
|
+
totalFee = 0;
|
2177
|
+
totalOverPaid = 0;
|
2178
|
+
totalPaid = 0;
|
2179
|
+
totalRefunded = 0;
|
2180
|
+
updatedAt = new Date();
|
2181
|
+
// #endregion Properties (44)
|
2556
2182
|
// #region Constructors (1)
|
2557
2183
|
constructor(data) {
|
2558
2184
|
if (data) {
|
@@ -2565,10 +2191,10 @@ class OrderItemOptionEntity {
|
|
2565
2191
|
}
|
2566
2192
|
}
|
2567
2193
|
|
2568
|
-
class
|
2194
|
+
class AccountInformationsEntity {
|
2569
2195
|
// #region Properties (2)
|
2570
|
-
|
2571
|
-
|
2196
|
+
key = '';
|
2197
|
+
value = '';
|
2572
2198
|
// #endregion Properties (2)
|
2573
2199
|
// #region Constructors (1)
|
2574
2200
|
constructor(data) {
|
@@ -2582,29 +2208,28 @@ class OrderScaleEntity {
|
|
2582
2208
|
}
|
2583
2209
|
}
|
2584
2210
|
|
2585
|
-
class
|
2586
|
-
// #region Properties (
|
2587
|
-
|
2588
|
-
|
2589
|
-
|
2590
|
-
|
2591
|
-
|
2211
|
+
class LastVerificationRequestDataEntity {
|
2212
|
+
// #region Properties (19)
|
2213
|
+
accountType = '';
|
2214
|
+
address = '';
|
2215
|
+
automaticTransfer = EBooleanString.FALSE;
|
2216
|
+
bank = '';
|
2217
|
+
bankAg = '';
|
2218
|
+
bankCc = '';
|
2219
|
+
businessType = '';
|
2220
|
+
cep = '';
|
2221
|
+
city = '';
|
2222
|
+
cpf = '';
|
2223
|
+
documentActivity = '';
|
2224
|
+
documentCpf = '';
|
2225
|
+
documentId = '';
|
2592
2226
|
name = '';
|
2593
|
-
|
2594
|
-
|
2595
|
-
|
2596
|
-
|
2597
|
-
|
2598
|
-
|
2599
|
-
productId = 0;
|
2600
|
-
quantity = 0;
|
2601
|
-
scalePrices = new OrderScaleEntity();
|
2602
|
-
skill = '';
|
2603
|
-
totalPrice = 0;
|
2604
|
-
unit = '';
|
2605
|
-
unitPrice = 0;
|
2606
|
-
weight = 0;
|
2607
|
-
// #endregion Properties (20)
|
2227
|
+
personType = ELegalEntiy.LEGAL;
|
2228
|
+
physicalProducts = EBooleanString.FALSE;
|
2229
|
+
priceRange = '';
|
2230
|
+
state = '';
|
2231
|
+
telephone = '';
|
2232
|
+
// #endregion Properties (19)
|
2608
2233
|
// #region Constructors (1)
|
2609
2234
|
constructor(data) {
|
2610
2235
|
if (data) {
|
@@ -2617,54 +2242,56 @@ class OrderItemEntity {
|
|
2617
2242
|
}
|
2618
2243
|
}
|
2619
2244
|
|
2620
|
-
|
2621
|
-
|
2622
|
-
|
2623
|
-
|
2624
|
-
|
2625
|
-
|
2626
|
-
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2636
|
-
|
2637
|
-
|
2638
|
-
|
2639
|
-
|
2640
|
-
|
2641
|
-
|
2642
|
-
|
2643
|
-
|
2644
|
-
|
2645
|
-
OrderStatusEnum["ASSIGN_DRIVER"] = "ASSIGN_DRIVER";
|
2646
|
-
OrderStatusEnum["CONSUMER_CANCELLATION_REQUESTED"] = "CONSUMER_CANCELLATION_REQUESTED";
|
2647
|
-
OrderStatusEnum["CONSUMER_CANCELLATION_ACCEPTED"] = "CONSUMER_CANCELLATION_ACCEPTED";
|
2648
|
-
OrderStatusEnum["CONSUMER_CANCELLATION_DENIED"] = "CONSUMER_CANCELLATION_DENIED";
|
2649
|
-
OrderStatusEnum["ADDED_TO_GROUP"] = "ADDED_TO_GROUP";
|
2650
|
-
OrderStatusEnum["EXECUTED_WITH_GROUP"] = "EXECUTED_WITH_GROUP";
|
2651
|
-
OrderStatusEnum["CANCELLED_WITH_GROUP"] = "CANCELLED_WITH_GROUP";
|
2652
|
-
OrderStatusEnum["COLLECTED_IN_GROUP"] = "COLLECTED_IN_GROUP";
|
2653
|
-
OrderStatusEnum["ASSIGNED_WITH_GROUP"] = "ASSIGNED_WITH_GROUP";
|
2654
|
-
OrderStatusEnum["UPDATE_REQUESTED"] = "UPDATE_REQUESTED";
|
2655
|
-
OrderStatusEnum["UPDATE_DENIED"] = "UPDATE_DENIED";
|
2656
|
-
OrderStatusEnum["UPDATED"] = "UPDATED";
|
2657
|
-
OrderStatusEnum["BOX_ASSIGNED"] = "BOX_ASSIGNED";
|
2658
|
-
})(OrderStatusEnum || (OrderStatusEnum = {}));
|
2659
|
-
|
2660
|
-
// index.ts
|
2245
|
+
class IuguChargeCreditCardEntity {
|
2246
|
+
// #region Properties (13)
|
2247
|
+
LR = '00';
|
2248
|
+
bin = '';
|
2249
|
+
brand = '';
|
2250
|
+
errors = {};
|
2251
|
+
identification = null;
|
2252
|
+
invoiceId = '';
|
2253
|
+
last4 = '';
|
2254
|
+
message = '';
|
2255
|
+
pdf = '';
|
2256
|
+
reversible = false;
|
2257
|
+
success = false;
|
2258
|
+
token = '';
|
2259
|
+
url = '';
|
2260
|
+
constructor(data) {
|
2261
|
+
if (data) {
|
2262
|
+
for (let key in data) {
|
2263
|
+
if (data.hasOwnProperty(key) && key in this) {
|
2264
|
+
this[key] = data[key];
|
2265
|
+
}
|
2266
|
+
}
|
2267
|
+
}
|
2268
|
+
}
|
2269
|
+
}
|
2661
2270
|
|
2662
|
-
class
|
2663
|
-
// #region Properties (
|
2664
|
-
|
2665
|
-
|
2666
|
-
|
2667
|
-
|
2271
|
+
class IuguCustomerEntity {
|
2272
|
+
// #region Properties (21)
|
2273
|
+
ccEmails = '';
|
2274
|
+
city = '';
|
2275
|
+
complement = '';
|
2276
|
+
cpfCnpj = '';
|
2277
|
+
createdAt = new Date();
|
2278
|
+
customVariables = [];
|
2279
|
+
defaultPaymentMethodId = '';
|
2280
|
+
district = '';
|
2281
|
+
email = '';
|
2282
|
+
id = '';
|
2283
|
+
name = '';
|
2284
|
+
notes = '';
|
2285
|
+
number = '';
|
2286
|
+
paymentMethods = [];
|
2287
|
+
phone = '';
|
2288
|
+
phonePrefix = '';
|
2289
|
+
proxyPaymentsFromCustomerId = '';
|
2290
|
+
state = '';
|
2291
|
+
street = '';
|
2292
|
+
updatedAt = new Date();
|
2293
|
+
zipCode = '';
|
2294
|
+
// #endregion Properties (21)
|
2668
2295
|
// #region Constructors (1)
|
2669
2296
|
constructor(data) {
|
2670
2297
|
if (data) {
|
@@ -2677,14 +2304,16 @@ class OrderPaymentEntity {
|
|
2677
2304
|
}
|
2678
2305
|
}
|
2679
2306
|
|
2680
|
-
class
|
2681
|
-
// #region Properties (
|
2682
|
-
|
2683
|
-
|
2684
|
-
|
2685
|
-
|
2686
|
-
|
2687
|
-
|
2307
|
+
class IuguInvoiceBankSlipEntity {
|
2308
|
+
// #region Properties (7)
|
2309
|
+
bankSlipBank = 0;
|
2310
|
+
bankSlipErrorCode = '00';
|
2311
|
+
bankSlipErrorMessage = null;
|
2312
|
+
bankSlipStatus = 'pending';
|
2313
|
+
barcode = '';
|
2314
|
+
barcodeData = '';
|
2315
|
+
digitableLine = '';
|
2316
|
+
// #endregion Properties (7)
|
2688
2317
|
// #region Constructors (1)
|
2689
2318
|
constructor(data) {
|
2690
2319
|
if (data) {
|
@@ -2697,24 +2326,436 @@ class OrderTotalEntity {
|
|
2697
2326
|
}
|
2698
2327
|
}
|
2699
2328
|
|
2700
|
-
class
|
2701
|
-
// #region Properties (
|
2702
|
-
|
2703
|
-
|
2704
|
-
|
2705
|
-
|
2706
|
-
|
2329
|
+
class IuguInvoiceEntity {
|
2330
|
+
// #region Properties (114)
|
2331
|
+
accountId = '';
|
2332
|
+
accountName = '';
|
2333
|
+
advanceFee;
|
2334
|
+
advanceFeeCents;
|
2335
|
+
authorizedAt;
|
2336
|
+
authorizedAtIso;
|
2337
|
+
bankAccountBranch = '';
|
2338
|
+
bankAccountNumber = '';
|
2339
|
+
bankSlip = null;
|
2340
|
+
bankSlipExtraDue = 0;
|
2341
|
+
canceledAt;
|
2342
|
+
canceledAtIso;
|
2343
|
+
ccEmails;
|
2344
|
+
chargebackAt;
|
2345
|
+
chargebackAtIso;
|
2346
|
+
commission = '';
|
2347
|
+
commissionCents;
|
2348
|
+
createdAt = '';
|
2349
|
+
createdAtIso = '';
|
2350
|
+
creditCardBin;
|
2351
|
+
creditCardBrand;
|
2352
|
+
creditCardCapturedAt;
|
2353
|
+
creditCardLast4;
|
2354
|
+
creditCardTid;
|
2355
|
+
creditCardTransaction = '';
|
2356
|
+
currency = '';
|
2357
|
+
customVariables = [];
|
2358
|
+
customerId;
|
2359
|
+
customerName;
|
2360
|
+
customerRef;
|
2361
|
+
discount;
|
2362
|
+
discountCents = 0;
|
2363
|
+
doublePaymentId;
|
2364
|
+
dueDate = '';
|
2365
|
+
duplicatedInvoiceId;
|
2366
|
+
earlyPaymentDiscount = false;
|
2367
|
+
earlyPaymentDiscounts = [];
|
2368
|
+
email = '';
|
2369
|
+
estimatedAdvanceFee;
|
2370
|
+
expiredAt;
|
2371
|
+
expiredAtIso;
|
2372
|
+
externalPaymentDescription;
|
2373
|
+
externalPaymentId;
|
2374
|
+
externalReference;
|
2375
|
+
financialReturnDate;
|
2376
|
+
financialReturnDates;
|
2377
|
+
finesOnOccurrenceDay = '';
|
2378
|
+
finesOnOccurrenceDayCents = 0;
|
2379
|
+
id = '';
|
2380
|
+
ignoreCanceledEmail = false;
|
2381
|
+
ignoreDueEmail = false;
|
2382
|
+
installments;
|
2383
|
+
interest;
|
2384
|
+
items = [];
|
2385
|
+
itemsTotalCents = 0;
|
2386
|
+
latePaymentFine;
|
2387
|
+
latePaymentFineCents = 0;
|
2388
|
+
logs = [];
|
2389
|
+
maxInstallmentsValue;
|
2390
|
+
notificationUrl = '';
|
2391
|
+
occurrenceDate;
|
2392
|
+
orderId;
|
2393
|
+
originalPaymentId;
|
2394
|
+
overpaidCents;
|
2395
|
+
paid = '';
|
2396
|
+
paidAt;
|
2397
|
+
paidCents;
|
2398
|
+
payableWith = '';
|
2399
|
+
payerAddressCity = '';
|
2400
|
+
payerAddressComplement;
|
2401
|
+
payerAddressCountry = '';
|
2402
|
+
payerAddressDistrict = '';
|
2403
|
+
payerAddressNumber = '';
|
2404
|
+
payerAddressState = '';
|
2405
|
+
payerAddressStreet = '';
|
2406
|
+
payerAddressZipCode = '';
|
2407
|
+
payerCpfCnpj = '';
|
2408
|
+
payerEmail;
|
2409
|
+
payerName = '';
|
2410
|
+
payerPhone = '';
|
2411
|
+
payerPhonePrefix = '';
|
2412
|
+
paymentMethod;
|
2413
|
+
perDayInterest = false;
|
2414
|
+
perDayInterestCents = 0;
|
2415
|
+
perDayInterestValue;
|
2416
|
+
pix = {};
|
2417
|
+
protestedAt;
|
2418
|
+
protestedAtIso;
|
2419
|
+
refundable;
|
2420
|
+
refundedAt;
|
2421
|
+
refundedAtIso;
|
2422
|
+
refundedCents = 0;
|
2423
|
+
remainingCapturedCents = 0;
|
2424
|
+
returnUrl = '';
|
2425
|
+
secureId = '';
|
2426
|
+
secureUrl = '';
|
2427
|
+
splitId;
|
2428
|
+
splitRules;
|
2429
|
+
status = '';
|
2430
|
+
taxCents = 0;
|
2431
|
+
taxesPaid = '';
|
2432
|
+
taxesPaidCents;
|
2433
|
+
total = '';
|
2434
|
+
totalCents = 0;
|
2435
|
+
totalOnOccurrenceDay = '';
|
2436
|
+
totalOnOccurrenceDayCents = 0;
|
2437
|
+
totalOverpaid = '';
|
2438
|
+
totalPaid = '';
|
2439
|
+
totalPaidCents = 0;
|
2440
|
+
totalRefunded = '';
|
2441
|
+
transactionNumber = 0;
|
2442
|
+
updatedAt = '';
|
2443
|
+
userId = '';
|
2444
|
+
variables = [];
|
2445
|
+
// #endregion Properties (114)
|
2446
|
+
// #region Constructors (1)
|
2447
|
+
constructor(data) {
|
2448
|
+
if (data) {
|
2449
|
+
for (let key in data) {
|
2450
|
+
if (data.hasOwnProperty(key) && key in this) {
|
2451
|
+
this[key] = data[key];
|
2452
|
+
}
|
2453
|
+
}
|
2454
|
+
}
|
2455
|
+
}
|
2456
|
+
}
|
2457
|
+
|
2458
|
+
var IuguAutoAdvanceEnum;
|
2459
|
+
(function (IuguAutoAdvanceEnum) {
|
2460
|
+
IuguAutoAdvanceEnum["DAYS_AFTER_PAYMENT"] = "days_after_payment";
|
2461
|
+
IuguAutoAdvanceEnum["DAILY"] = "daily";
|
2462
|
+
IuguAutoAdvanceEnum["WEEKLY"] = "weekly";
|
2463
|
+
IuguAutoAdvanceEnum["MONTHLY"] = "monthly";
|
2464
|
+
})(IuguAutoAdvanceEnum || (IuguAutoAdvanceEnum = {}));
|
2465
|
+
|
2466
|
+
var IuguBankEnum;
|
2467
|
+
(function (IuguBankEnum) {
|
2468
|
+
IuguBankEnum["ITAU"] = "Ita\u00FA";
|
2469
|
+
IuguBankEnum["BRADESCO"] = "Bradesco";
|
2470
|
+
IuguBankEnum["CAIXA"] = "Caixa Econ\u00F4mica";
|
2471
|
+
IuguBankEnum["BRASIL"] = "Banco do Brasil";
|
2472
|
+
IuguBankEnum["SANTANDER"] = "Santander";
|
2473
|
+
IuguBankEnum["BANRISUL"] = "Banrisul";
|
2474
|
+
IuguBankEnum["SICRED"] = "Sicredi";
|
2475
|
+
IuguBankEnum["SICOOB"] = "Sicoob";
|
2476
|
+
IuguBankEnum["INTER"] = "Inter";
|
2477
|
+
IuguBankEnum["BRB"] = "BRB";
|
2478
|
+
IuguBankEnum["VIACRED"] = "Via Credi";
|
2479
|
+
IuguBankEnum["NEON"] = "Neon";
|
2480
|
+
IuguBankEnum["VOTORANTIN"] = "Votorantim";
|
2481
|
+
IuguBankEnum["NUBANK"] = "Nubank";
|
2482
|
+
IuguBankEnum["PAGSEGURO"] = "Pagseguro";
|
2483
|
+
IuguBankEnum["ORIGINAL"] = "Banco Original";
|
2484
|
+
IuguBankEnum["SAFRA"] = "Safra";
|
2485
|
+
IuguBankEnum["MODAL"] = "Modal";
|
2486
|
+
IuguBankEnum["BANESTES"] = "Banestes";
|
2487
|
+
IuguBankEnum["UNICRED"] = "Unicred";
|
2488
|
+
IuguBankEnum["MONEYPLUS"] = "Money Plus";
|
2489
|
+
IuguBankEnum["MERCANTIL"] = "Mercantil do Brasil";
|
2490
|
+
IuguBankEnum["JPMORGAN"] = "JP Morgan";
|
2491
|
+
IuguBankEnum["GERENCIANET"] = "Gerencianet Pagamentos do Brasil";
|
2492
|
+
IuguBankEnum["C6"] = "Banco C6";
|
2493
|
+
IuguBankEnum["BS2"] = "BS2";
|
2494
|
+
IuguBankEnum["TOPAZIO"] = "Banco Topazio";
|
2495
|
+
IuguBankEnum["UNIPRIME"] = "Uniprime";
|
2496
|
+
IuguBankEnum["STONE"] = "Stone";
|
2497
|
+
IuguBankEnum["DAYCOVAL"] = "Banco Daycoval";
|
2498
|
+
IuguBankEnum["RENDIMENTO"] = "Rendimento";
|
2499
|
+
IuguBankEnum["NORDESTE"] = "Banco do Nordeste";
|
2500
|
+
IuguBankEnum["CITIBANK"] = "Citibank";
|
2501
|
+
IuguBankEnum["PJBANK"] = "PJBank";
|
2502
|
+
IuguBankEnum["CCCNB"] = "Cooperativa Central de Credito Noroeste Brasileiro";
|
2503
|
+
IuguBankEnum["UNIPRIMENPARANA"] = "Uniprime Norte do Paran\u00E1";
|
2504
|
+
IuguBankEnum["GLOBALSCM"] = "Global SCM";
|
2505
|
+
IuguBankEnum["NEXT"] = "Next";
|
2506
|
+
IuguBankEnum["CORA"] = "Cora";
|
2507
|
+
IuguBankEnum["MERCADOPAGO"] = "Mercado Pago";
|
2508
|
+
IuguBankEnum["AMAZONIA"] = "Banco da Amazonia";
|
2509
|
+
IuguBankEnum["BNP"] = "BNP Paribas Brasil";
|
2510
|
+
IuguBankEnum["JUNO"] = "Juno";
|
2511
|
+
IuguBankEnum["CRESOL"] = "Cresol";
|
2512
|
+
IuguBankEnum["BRLTRUST"] = "BRL Trust DTVM";
|
2513
|
+
IuguBankEnum["BANESE"] = "Banco Banese";
|
2514
|
+
IuguBankEnum["BTGPACTUAL"] = "Banco BTG Pactual";
|
2515
|
+
IuguBankEnum["OMNI"] = "Banco Omni";
|
2516
|
+
IuguBankEnum["ACESSOSOLUCOES"] = "Acesso Solu\u00E7\u00F5es de Pagamento";
|
2517
|
+
IuguBankEnum["CCR"] = "CCR de S\u00E3o Miguel do Oeste";
|
2518
|
+
IuguBankEnum["POLOCRED"] = "Polocred";
|
2519
|
+
IuguBankEnum["OTIMO"] = "\u00D3timo";
|
2520
|
+
IuguBankEnum["RIBEIRAOPRETO"] = "Banco Ribeir\u00E3o Preto";
|
2521
|
+
IuguBankEnum["ASAASIP"] = "ASAAS IP";
|
2522
|
+
IuguBankEnum["PAN"] = "Banco Pan";
|
2523
|
+
IuguBankEnum["VORTX"] = "VORTX DTVM LTDA";
|
2524
|
+
IuguBankEnum["BMG"] = "Banco BMG";
|
2525
|
+
IuguBankEnum["PEFISA"] = "Pefisa";
|
2526
|
+
IuguBankEnum["J17"] = "J17 - SCD S/A";
|
2527
|
+
IuguBankEnum["CREDISAN"] = "Credisan";
|
2528
|
+
IuguBankEnum["PINBANK"] = "Pinbank";
|
2529
|
+
IuguBankEnum["XPINVESTIMENTOS"] = "XP Investimentos";
|
2530
|
+
IuguBankEnum["CREFISA"] = "Crefisa";
|
2531
|
+
IuguBankEnum["SINGULARE"] = "Singulare";
|
2532
|
+
IuguBankEnum["SUMUP"] = "SUMUP SCD S.A.";
|
2533
|
+
IuguBankEnum["ABCBRASIL"] = "Banco ABC Brasil";
|
2534
|
+
IuguBankEnum["LETSBANK"] = "BCO LETSBANK S.A.";
|
2535
|
+
IuguBankEnum["HRDIGITAL"] = "HR Digital Sociedade de Cr\u00E9dito Direto S.A";
|
2536
|
+
})(IuguBankEnum || (IuguBankEnum = {}));
|
2537
|
+
const IuguBankNumber = [
|
2538
|
+
{ code: "341", label: IuguBankEnum.ITAU },
|
2539
|
+
{ code: "237", label: IuguBankEnum.BRADESCO },
|
2540
|
+
{ code: "104", label: IuguBankEnum.CAIXA },
|
2541
|
+
{ code: "001", label: IuguBankEnum.BRASIL },
|
2542
|
+
{ code: "033", label: IuguBankEnum.SANTANDER },
|
2543
|
+
{ code: "041", label: IuguBankEnum.BANRISUL },
|
2544
|
+
{ code: "748", label: IuguBankEnum.SICRED },
|
2545
|
+
{ code: "756", label: IuguBankEnum.SICOOB },
|
2546
|
+
{ code: "077", label: IuguBankEnum.INTER },
|
2547
|
+
{ code: "070", label: IuguBankEnum.BRB },
|
2548
|
+
{ code: "085", label: IuguBankEnum.VIACRED },
|
2549
|
+
{ code: "735", label: IuguBankEnum.NEON },
|
2550
|
+
{ code: "655", label: IuguBankEnum.VOTORANTIN },
|
2551
|
+
{ code: "260", label: IuguBankEnum.NUBANK },
|
2552
|
+
{ code: "290", label: IuguBankEnum.PAGSEGURO },
|
2553
|
+
{ code: "212", label: IuguBankEnum.ORIGINAL },
|
2554
|
+
{ code: "422", label: IuguBankEnum.SAFRA },
|
2555
|
+
{ code: "746", label: IuguBankEnum.MODAL },
|
2556
|
+
{ code: "021", label: IuguBankEnum.BANESTES },
|
2557
|
+
{ code: "136", label: IuguBankEnum.UNICRED },
|
2558
|
+
{ code: "274", label: IuguBankEnum.MONEYPLUS },
|
2559
|
+
{ code: "389", label: IuguBankEnum.MERCANTIL },
|
2560
|
+
{ code: "376", label: IuguBankEnum.JPMORGAN },
|
2561
|
+
{ code: "364", label: IuguBankEnum.GERENCIANET },
|
2562
|
+
{ code: "336", label: IuguBankEnum.C6 },
|
2563
|
+
{ code: "218", label: IuguBankEnum.BS2 },
|
2564
|
+
{ code: "082", label: IuguBankEnum.TOPAZIO },
|
2565
|
+
{ code: "099", label: IuguBankEnum.UNIPRIME },
|
2566
|
+
{ code: "197", label: IuguBankEnum.STONE },
|
2567
|
+
{ code: "707", label: IuguBankEnum.DAYCOVAL },
|
2568
|
+
{ code: "633", label: IuguBankEnum.RENDIMENTO },
|
2569
|
+
{ code: "004", label: IuguBankEnum.NORDESTE },
|
2570
|
+
{ code: "745", label: IuguBankEnum.CITIBANK },
|
2571
|
+
{ code: "301", label: IuguBankEnum.PJBANK },
|
2572
|
+
{ code: "320", label: IuguBankEnum.CCCNB },
|
2573
|
+
{ code: "084", label: IuguBankEnum.UNIPRIMENPARANA },
|
2574
|
+
{ code: "384", label: IuguBankEnum.GLOBALSCM },
|
2575
|
+
{ code: "237", label: IuguBankEnum.NEXT },
|
2576
|
+
{ code: "403", label: IuguBankEnum.CORA },
|
2577
|
+
{ code: "323", label: IuguBankEnum.MERCADOPAGO },
|
2578
|
+
{ code: "003", label: IuguBankEnum.AMAZONIA },
|
2579
|
+
{ code: "752", label: IuguBankEnum.BNP },
|
2580
|
+
{ code: "383", label: IuguBankEnum.JUNO },
|
2581
|
+
{ code: "133", label: IuguBankEnum.CRESOL },
|
2582
|
+
{ code: "173", label: IuguBankEnum.BRLTRUST },
|
2583
|
+
{ code: "047", label: IuguBankEnum.BANESE },
|
2584
|
+
{ code: "208", label: IuguBankEnum.BTGPACTUAL },
|
2585
|
+
{ code: "613", label: IuguBankEnum.OMNI },
|
2586
|
+
{ code: "332", label: IuguBankEnum.ACESSOSOLUCOES },
|
2587
|
+
{ code: "281", label: IuguBankEnum.CCR },
|
2588
|
+
{ code: "093", label: IuguBankEnum.POLOCRED },
|
2589
|
+
{ code: "355", label: IuguBankEnum.OTIMO },
|
2590
|
+
{ code: "741", label: IuguBankEnum.RIBEIRAOPRETO },
|
2591
|
+
{ code: "461", label: IuguBankEnum.ASAASIP },
|
2592
|
+
{ code: "623", label: IuguBankEnum.PAN },
|
2593
|
+
{ code: "310", label: IuguBankEnum.VORTX },
|
2594
|
+
{ code: "318", label: IuguBankEnum.BMG },
|
2595
|
+
{ code: "174", label: IuguBankEnum.PEFISA },
|
2596
|
+
{ code: "085", label: IuguBankEnum.J17 },
|
2597
|
+
{ code: "222", label: IuguBankEnum.CREDISAN },
|
2598
|
+
{ code: "094", label: IuguBankEnum.PINBANK },
|
2599
|
+
{ code: "102", label: IuguBankEnum.XPINVESTIMENTOS },
|
2600
|
+
{ code: "069", label: IuguBankEnum.CREFISA },
|
2601
|
+
{ code: "300", label: IuguBankEnum.SINGULARE },
|
2602
|
+
{ code: "290", label: IuguBankEnum.SUMUP },
|
2603
|
+
{ code: "246", label: IuguBankEnum.ABCBRASIL },
|
2604
|
+
{ code: "290", label: IuguBankEnum.LETSBANK },
|
2605
|
+
{ code: "255", label: IuguBankEnum.HRDIGITAL },
|
2606
|
+
];
|
2607
|
+
const IuguBankFormatter = [
|
2608
|
+
{ name: "Banco do Brasil", agency: "9999-D", account: "99999999-D" },
|
2609
|
+
{ name: "Santander", agency: "9999", account: "99999999-D" },
|
2610
|
+
{ name: "Caixa Econômica", agency: "9999", account: "XXX99999999-D (X: Operação)" },
|
2611
|
+
{ name: "Caixa Econômica", agency: "9999", account: "XXXX999999999-D (X: Operação - Novo formato CP)" },
|
2612
|
+
{ name: "Bradesco", agency: "9999-D", account: "9999999-D" },
|
2613
|
+
{ name: "Itaú", agency: "9999", account: "99999-D" },
|
2614
|
+
{ name: "Itaú", agency: "9999", account: "999999999-D (Itaú-Iti)" },
|
2615
|
+
{ name: "Agibank", agency: "9999", account: "9999999999" },
|
2616
|
+
{ name: "Banpará", agency: "9999", account: "999999999-D" },
|
2617
|
+
{ name: "Banrisul", agency: "9999", account: "999999999-D" },
|
2618
|
+
{ name: "Sicoob", agency: "9999", account: "999999999-D" },
|
2619
|
+
{ name: "Inter", agency: "9999", account: "999999999-D" },
|
2620
|
+
{ name: "BRB", agency: "9999", account: "999999999-D" },
|
2621
|
+
{ name: "Via Credi", agency: "9999", account: "99999999999-D" },
|
2622
|
+
{ name: "Neon/Votorantim", agency: "9999", account: "9999999999-D" },
|
2623
|
+
{ name: "Nubank", agency: "9999", account: "9999999999-D" },
|
2624
|
+
{ name: "Pagseguro", agency: "9999", account: "99999999-D" },
|
2625
|
+
{ name: "Banco Original", agency: "9999", account: "9999999-D" },
|
2626
|
+
{ name: "Safra", agency: "9999", account: "99999999-D" },
|
2627
|
+
{ name: "Modal", agency: "9999", account: "999999999-D" },
|
2628
|
+
{ name: "Banestes", agency: "9999", account: "99999999-D" },
|
2629
|
+
{ name: "Unicred", agency: "9999", account: "99999999-D" },
|
2630
|
+
{ name: "Money Plus", agency: "9", account: "99999999-D" },
|
2631
|
+
{ name: "Mercantil do Brasil", agency: "9999", account: "99999999-D" },
|
2632
|
+
{ name: "JP Morgan", agency: "9999", account: "99999999999-D" },
|
2633
|
+
{ name: "Gerencianet Pagamentos do Brasil", agency: "9999", account: "99999999-D" },
|
2634
|
+
{ name: "Banco C6", agency: "9999", account: "99999999-D" },
|
2635
|
+
{ name: "BS2", agency: "9999", account: "9999999-D" },
|
2636
|
+
{ name: "Banco Topazio", agency: "9999", account: "99999-D" },
|
2637
|
+
{ name: "Uniprime", agency: "9999", account: "9999-D" },
|
2638
|
+
{ name: "Stone", agency: "9999", account: "9999999-D" },
|
2639
|
+
{ name: "Rendimento", agency: "9999-D", account: "9999999999" },
|
2640
|
+
{ name: "Banco Daycoval", agency: "9999", account: "999999-D" },
|
2641
|
+
{ name: "Banco do Nordeste", agency: "999", account: "999999-D" },
|
2642
|
+
{ name: "Citibank", agency: "9999", account: "99999999" },
|
2643
|
+
{ name: "PJBank", agency: "9999", account: "9999999999-D" },
|
2644
|
+
{ name: "Cooperativa Central de Credito Noroeste Brasileiro", agency: "9999", account: "9999999-D" },
|
2645
|
+
{ name: "Uniprime Norte do Paraná", agency: "9999", account: "999999-D" },
|
2646
|
+
{ name: "Global SCM", agency: "9999", account: "99999999999" },
|
2647
|
+
{ name: "Next", agency: "9999-D", account: "9999999-D" },
|
2648
|
+
{ name: "Cora", agency: "9999", account: "9999999-D" },
|
2649
|
+
{ name: "Mercado Pago", agency: "9999", account: "9999999999-D" },
|
2650
|
+
{ name: "Banco da Amazonia", agency: "9999", account: "999999-D" },
|
2651
|
+
{ name: "BNP Paribas Brasil", agency: "999", account: "999999-DDD" },
|
2652
|
+
{ name: "Juno", agency: "9999", account: "9999999999-D" },
|
2653
|
+
{ name: "Cresol", agency: "9999", account: "99999999-D" },
|
2654
|
+
{ name: "BRL Trust DTVM", agency: "999", account: "999999-D" },
|
2655
|
+
{ name: "Banco Banese", agency: "999", account: "99999999-D" },
|
2656
|
+
{ name: "Banco BTG Pactual", agency: "9999", account: "9999999-D" },
|
2657
|
+
{ name: "Banco Omni", agency: "9999", account: "999999-D" },
|
2658
|
+
{ name: "Acesso Soluções de pagamento", agency: "9999", account: "99999999" },
|
2659
|
+
{ name: "CCR de São Miguel do Oeste", agency: "9999", account: "99999" },
|
2660
|
+
{ name: "Polocred", agency: "9999", account: "999999-D" },
|
2661
|
+
{ name: "Ótimo", agency: "9999", account: "99999-D" },
|
2662
|
+
{ name: "Picpay", agency: "9999", account: "99999999-D" },
|
2663
|
+
{ name: "Banco Genial", agency: "9999", account: "9999-D" },
|
2664
|
+
{ name: "Banco Capital S.A", agency: "9999", account: "999999999" },
|
2665
|
+
{ name: "Sicredi", agency: "9999", account: "99999999D" },
|
2666
|
+
{ name: "Banco Ribeirão Preto", agency: "99999", account: "9999999999" },
|
2667
|
+
{ name: "ASAAS IP", agency: "9999", account: "9999999-D" },
|
2668
|
+
{ name: "Banco Pan", agency: "9999", account: "999999999-D" },
|
2669
|
+
{ name: "Neon", agency: "9999", account: "9999999999-D" },
|
2670
|
+
{ name: "VORTX DTVM LTDA", agency: "9999-D", account: "999-D" },
|
2671
|
+
{ name: "Banco BMG", agency: "9999", account: "99999999-D" },
|
2672
|
+
{ name: "Fitbank", agency: "9999", account: "999999999-9" },
|
2673
|
+
{ name: "Pefisa", agency: "9999", account: "9999999-D" },
|
2674
|
+
{ name: "J17 - SCD S/A", agency: "9999", account: "99999999999-D" },
|
2675
|
+
{ name: "Credisan", agency: "9999", account: "999999999-D" },
|
2676
|
+
{ name: "Pinbank", agency: "999", account: "99999999-D" },
|
2677
|
+
{ name: "XP Investimentos", agency: "9999", account: "999999-D" },
|
2678
|
+
{ name: "Crefisa", agency: "9999", account: "999999999-D" },
|
2679
|
+
{ name: "Singulare", agency: "9999", account: "9999999-D" },
|
2680
|
+
{ name: "SUMUP SCD S.A.", agency: "9999", account: "999999999-D" },
|
2681
|
+
{ name: "Banco ABC Brasil", agency: "9999-D", account: "9999999999" },
|
2682
|
+
{ name: "BCO LETSBANK S.A.", agency: "9999", account: "999999999-D" },
|
2683
|
+
{ name: "HR Digital Sociedade de Crédito Direto S.A", agency: "9999", account: "999999999-D" },
|
2684
|
+
];
|
2685
|
+
|
2686
|
+
var IuguInvoiceStatusEnum;
|
2687
|
+
(function (IuguInvoiceStatusEnum) {
|
2688
|
+
IuguInvoiceStatusEnum["PENDING"] = "PENDING";
|
2689
|
+
IuguInvoiceStatusEnum["PAID"] = "PAID";
|
2690
|
+
IuguInvoiceStatusEnum["CANCELED"] = "CANCELED";
|
2691
|
+
IuguInvoiceStatusEnum["IN_ANALYSIS"] = "IN_ANALYSIS";
|
2692
|
+
IuguInvoiceStatusEnum["DRAFT"] = "DRAFT";
|
2693
|
+
IuguInvoiceStatusEnum["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
2694
|
+
IuguInvoiceStatusEnum["REFUNDED"] = "REFUNDED";
|
2695
|
+
IuguInvoiceStatusEnum["EXPIRED"] = "EXPIRED";
|
2696
|
+
IuguInvoiceStatusEnum["IN_PROTEST"] = "IN_PROTEST";
|
2697
|
+
IuguInvoiceStatusEnum["CHARGEBACK"] = "CHARGEBACK";
|
2698
|
+
IuguInvoiceStatusEnum["EXTERNALLY_PAID"] = "EXTERNALLY_PAID";
|
2699
|
+
})(IuguInvoiceStatusEnum || (IuguInvoiceStatusEnum = {}));
|
2700
|
+
|
2701
|
+
class IuguAccountEntity {
|
2702
|
+
// #region Properties (54)
|
2703
|
+
autoAdvance = false;
|
2704
|
+
autoAdvanceOption = 0;
|
2705
|
+
autoAdvanceType = IuguAutoAdvanceEnum.DAILY;
|
2706
|
+
autoWithdraw = false;
|
2707
|
+
balance = '';
|
2708
|
+
balanceAvailableForWithdraw = '';
|
2709
|
+
balanceInProtest = '';
|
2710
|
+
canReceive = false;
|
2711
|
+
changePlanType = 0;
|
2712
|
+
commissionBalance = '';
|
2713
|
+
configuration = null;
|
2707
2714
|
createdAt = new Date();
|
2708
|
-
|
2715
|
+
creditCardVerified = false;
|
2716
|
+
customLogoSmallUrl = '';
|
2717
|
+
customLogoUrl = '';
|
2718
|
+
defaultReturnUrl = '';
|
2719
|
+
disableEmails = false;
|
2720
|
+
disabledWithdraw = false;
|
2721
|
+
earlyPaymentDiscount = false;
|
2722
|
+
earlyPaymentDiscountDays = 0;
|
2723
|
+
earlyPaymentDiscountPercent = 0;
|
2724
|
+
earlyPaymentDiscounts = [];
|
2725
|
+
fines = false;
|
2726
|
+
hasBankAddress = false;
|
2709
2727
|
id = '';
|
2710
|
-
|
2711
|
-
|
2712
|
-
|
2713
|
-
|
2714
|
-
|
2715
|
-
|
2728
|
+
informations = [];
|
2729
|
+
isVerified = false;
|
2730
|
+
lastVerificationRequestData = new LastVerificationRequestDataEntity();
|
2731
|
+
lastVerificationRequestFeedback = '';
|
2732
|
+
lastVerificationRequestStatus = 'accepted';
|
2733
|
+
lastWithdraw = new Date();
|
2734
|
+
latePaymentFine = 0;
|
2735
|
+
marketplace = false;
|
2736
|
+
name = '';
|
2737
|
+
oldAdvancement = false;
|
2738
|
+
payableBalance = '';
|
2739
|
+
paymentEmailNotification = false;
|
2740
|
+
paymentEmailNotificationReceiver = '';
|
2741
|
+
perDayInterest = false;
|
2742
|
+
permissions = [];
|
2743
|
+
protectedBalance = '';
|
2744
|
+
receivableBalance = '';
|
2745
|
+
replyTo = '';
|
2746
|
+
splits = [];
|
2747
|
+
subscriptionsBillingDays = 0;
|
2748
|
+
subscriptionsTrialPeriod = 0;
|
2749
|
+
taxesPaidLastMonth = '';
|
2750
|
+
taxesPaidThisMonth = '';
|
2751
|
+
totalActiveSubscriptions = 0;
|
2752
|
+
totalSubscriptions = 0;
|
2716
2753
|
updatedAt = new Date();
|
2717
|
-
|
2754
|
+
volumeLastMonth = '';
|
2755
|
+
volumeThisMonth = '';
|
2756
|
+
webappOnTestMode = false;
|
2757
|
+
// #endregion Properties (54)
|
2758
|
+
// #region Constructors (1)
|
2718
2759
|
constructor(data) {
|
2719
2760
|
if (data) {
|
2720
2761
|
for (let key in data) {
|
@@ -2726,10 +2767,18 @@ class OrderEntity {
|
|
2726
2767
|
}
|
2727
2768
|
}
|
2728
2769
|
|
2729
|
-
class
|
2730
|
-
// #region Properties (
|
2770
|
+
class IuguPaymentTokenDataEntity {
|
2771
|
+
// #region Properties (9)
|
2772
|
+
bin = '';
|
2731
2773
|
brand = '';
|
2732
|
-
|
2774
|
+
displayNumber = '';
|
2775
|
+
firstDigits = '';
|
2776
|
+
holderName = '';
|
2777
|
+
lastDigits = '';
|
2778
|
+
maskedNumber = '';
|
2779
|
+
month = 0;
|
2780
|
+
year = 2035;
|
2781
|
+
// #endregion Properties (9)
|
2733
2782
|
// #region Constructors (1)
|
2734
2783
|
constructor(data) {
|
2735
2784
|
if (data) {
|
@@ -2742,10 +2791,14 @@ class OrderPaymentCardEntity {
|
|
2742
2791
|
}
|
2743
2792
|
}
|
2744
2793
|
|
2745
|
-
class
|
2746
|
-
// #region Properties (
|
2747
|
-
|
2748
|
-
|
2794
|
+
class IuguPaymentTokenEntity {
|
2795
|
+
// #region Properties (5)
|
2796
|
+
customerId = '';
|
2797
|
+
data = new IuguPaymentTokenDataEntity();
|
2798
|
+
description = '';
|
2799
|
+
id = '';
|
2800
|
+
itemType = '';
|
2801
|
+
// #endregion Properties (5)
|
2749
2802
|
// #region Constructors (1)
|
2750
2803
|
constructor(data) {
|
2751
2804
|
if (data) {
|
@@ -2758,20 +2811,61 @@ class OrderPaymentCashEntity {
|
|
2758
2811
|
}
|
2759
2812
|
}
|
2760
2813
|
|
2761
|
-
|
2762
|
-
|
2763
|
-
|
2764
|
-
|
2765
|
-
|
2766
|
-
|
2814
|
+
var LeadStatusEnum;
|
2815
|
+
(function (LeadStatusEnum) {
|
2816
|
+
LeadStatusEnum["NEW"] = "Novo";
|
2817
|
+
LeadStatusEnum["CONTACTED"] = "Contactado";
|
2818
|
+
LeadStatusEnum["IN_PROGRESS"] = "Em Progresso";
|
2819
|
+
LeadStatusEnum["PAUSED"] = "Pausado";
|
2820
|
+
LeadStatusEnum["CONVERTED"] = "Convertido";
|
2821
|
+
LeadStatusEnum["NOT_INTERESTED"] = "N\u00E3o Interessado";
|
2822
|
+
LeadStatusEnum["NURTURING"] = "Nutrindo";
|
2823
|
+
LeadStatusEnum["RECYCLED"] = "Reciclado";
|
2824
|
+
LeadStatusEnum["DISQUALIFIED"] = "Desqualificado";
|
2825
|
+
LeadStatusEnum["CLOSED"] = "Fechado";
|
2826
|
+
LeadStatusEnum["LOST"] = "Perdido";
|
2827
|
+
LeadStatusEnum["UNQUALIFIED"] = "N\u00E3o Qualificado";
|
2828
|
+
})(LeadStatusEnum || (LeadStatusEnum = {}));
|
2829
|
+
|
2830
|
+
class LeadEntity {
|
2831
|
+
// #region Properties (20)
|
2832
|
+
/**Lista de produtos ou serviços de interesse. */
|
2833
|
+
activity = [];
|
2834
|
+
/**Endereço de e-mail principal para contato. */
|
2835
|
+
alternateEmails = [];
|
2836
|
+
/**Número de telefone principal. */
|
2837
|
+
alternatePhones = [];
|
2838
|
+
/**ID do agente ou parceiro que cadastrou o lead. */
|
2839
|
+
assignedTo = '';
|
2840
|
+
/**Notas ou observações adicionais. */
|
2841
|
+
createdAt = new Date();
|
2842
|
+
/**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */
|
2843
|
+
doc = '';
|
2844
|
+
/**Identificador único do lead. */
|
2845
|
+
docType = EDocType.CNPJ;
|
2846
|
+
/**Nome completo ou razão social do lead. */
|
2847
|
+
email = '';
|
2767
2848
|
id = '';
|
2768
|
-
|
2769
|
-
|
2770
|
-
|
2771
|
-
|
2772
|
-
|
2773
|
-
|
2774
|
-
|
2849
|
+
/**Fonte de origem do lead. */
|
2850
|
+
interestedIn = [];
|
2851
|
+
/**Data e hora de criação. */
|
2852
|
+
lastContacted = new Date();
|
2853
|
+
/**Número do documento conforme o tipo. */
|
2854
|
+
name = '';
|
2855
|
+
note = '';
|
2856
|
+
origin = ELeadOrigin.OTHERS;
|
2857
|
+
/**Status atual. */
|
2858
|
+
partnerId = '';
|
2859
|
+
/**Outros endereços de e-mail, se disponíveis. */
|
2860
|
+
phoneNumber = '';
|
2861
|
+
/**Outros números de telefone, se disponíveis. */
|
2862
|
+
sandbox = false;
|
2863
|
+
/**Data e hora do último contato. */
|
2864
|
+
status = LeadStatusEnum.NEW;
|
2865
|
+
/**ID do colaborador responsável pelo lead. */
|
2866
|
+
tags = [];
|
2867
|
+
updatedAt = new Date();
|
2868
|
+
// #endregion Properties (20)
|
2775
2869
|
// #region Constructors (1)
|
2776
2870
|
constructor(data) {
|
2777
2871
|
if (data) {
|
@@ -2784,27 +2878,52 @@ class OrderPaymentMethodEntity {
|
|
2784
2878
|
}
|
2785
2879
|
}
|
2786
2880
|
|
2787
|
-
|
2788
|
-
|
2789
|
-
|
2790
|
-
|
2791
|
-
|
2792
|
-
|
2793
|
-
constructor(data) {
|
2794
|
-
if (data) {
|
2795
|
-
for (let key in data) {
|
2796
|
-
if (data.hasOwnProperty(key) && key in this) {
|
2797
|
-
this[key] = data[key];
|
2798
|
-
}
|
2799
|
-
}
|
2800
|
-
}
|
2801
|
-
}
|
2802
|
-
}
|
2881
|
+
var NotificationActionTypeEnum;
|
2882
|
+
(function (NotificationActionTypeEnum) {
|
2883
|
+
NotificationActionTypeEnum["URL"] = "url";
|
2884
|
+
NotificationActionTypeEnum["FUNCTION"] = "function";
|
2885
|
+
NotificationActionTypeEnum["CUSTOM"] = "custom";
|
2886
|
+
})(NotificationActionTypeEnum || (NotificationActionTypeEnum = {}));
|
2803
2887
|
|
2804
|
-
|
2805
|
-
|
2806
|
-
|
2807
|
-
|
2888
|
+
var NotificationCategoryEnum;
|
2889
|
+
(function (NotificationCategoryEnum) {
|
2890
|
+
NotificationCategoryEnum["INVITE"] = "invite";
|
2891
|
+
NotificationCategoryEnum["DEVICE"] = "device";
|
2892
|
+
NotificationCategoryEnum["LEAD"] = "lead";
|
2893
|
+
NotificationCategoryEnum["TASK"] = "task";
|
2894
|
+
NotificationCategoryEnum["MEETING"] = "meeting";
|
2895
|
+
NotificationCategoryEnum["ALERT"] = "alert";
|
2896
|
+
NotificationCategoryEnum["INFO"] = "info";
|
2897
|
+
NotificationCategoryEnum["DANGER"] = "danger";
|
2898
|
+
NotificationCategoryEnum["WARN"] = "warning";
|
2899
|
+
NotificationCategoryEnum["UPDATE"] = "update";
|
2900
|
+
NotificationCategoryEnum["OTHER"] = "other";
|
2901
|
+
})(NotificationCategoryEnum || (NotificationCategoryEnum = {}));
|
2902
|
+
|
2903
|
+
var NotificationPriorityEnum;
|
2904
|
+
(function (NotificationPriorityEnum) {
|
2905
|
+
NotificationPriorityEnum["LOW"] = "low";
|
2906
|
+
NotificationPriorityEnum["MEDIUM"] = "medium";
|
2907
|
+
NotificationPriorityEnum["HIGH"] = "high";
|
2908
|
+
NotificationPriorityEnum["URGENT"] = "urgent";
|
2909
|
+
})(NotificationPriorityEnum || (NotificationPriorityEnum = {}));
|
2910
|
+
|
2911
|
+
var NotificationStatusEnum;
|
2912
|
+
(function (NotificationStatusEnum) {
|
2913
|
+
NotificationStatusEnum["DELIVERED"] = "delivered";
|
2914
|
+
NotificationStatusEnum["READ"] = "read";
|
2915
|
+
NotificationStatusEnum["FAILED"] = "failed";
|
2916
|
+
NotificationStatusEnum["PLACED"] = "placed";
|
2917
|
+
NotificationStatusEnum["SENT"] = "sent";
|
2918
|
+
})(NotificationStatusEnum || (NotificationStatusEnum = {}));
|
2919
|
+
|
2920
|
+
class NotificationActionEntity {
|
2921
|
+
// #region Properties (4)
|
2922
|
+
icon = '';
|
2923
|
+
label = '';
|
2924
|
+
type = NotificationActionTypeEnum.URL;
|
2925
|
+
value = '';
|
2926
|
+
// #endregion Properties (4)
|
2808
2927
|
// #region Constructors (1)
|
2809
2928
|
constructor(data) {
|
2810
2929
|
if (data) {
|
@@ -2817,11 +2936,22 @@ class OrderPaymentWalletEntity {
|
|
2817
2936
|
}
|
2818
2937
|
}
|
2819
2938
|
|
2820
|
-
class
|
2821
|
-
// #region Properties (
|
2822
|
-
|
2823
|
-
|
2824
|
-
|
2939
|
+
class NotificationEntity {
|
2940
|
+
// #region Properties (13)
|
2941
|
+
action = new NotificationActionEntity();
|
2942
|
+
category = NotificationCategoryEnum.ALERT;
|
2943
|
+
createdAt = new Date();
|
2944
|
+
data = '';
|
2945
|
+
description = '';
|
2946
|
+
expirationTime = 3600;
|
2947
|
+
id = '';
|
2948
|
+
imageUrl = '';
|
2949
|
+
priority = NotificationPriorityEnum.HIGH;
|
2950
|
+
sound = true;
|
2951
|
+
status = NotificationStatusEnum.DELIVERED;
|
2952
|
+
title = '';
|
2953
|
+
topicName = '';
|
2954
|
+
// #endregion Properties (13)
|
2825
2955
|
// #region Constructors (1)
|
2826
2956
|
constructor(data) {
|
2827
2957
|
if (data) {
|
@@ -2913,7 +3043,7 @@ class PlanEntity {
|
|
2913
3043
|
index = 0;
|
2914
3044
|
identifier = EPlanIdentifier.NATIGO;
|
2915
3045
|
interval = 12;
|
2916
|
-
intervalType =
|
3046
|
+
intervalType = EIntervalType.MONTHS;
|
2917
3047
|
name = '';
|
2918
3048
|
price = 0;
|
2919
3049
|
updatedAt = new Date();
|
@@ -2978,7 +3108,7 @@ class PurchaseEntity extends OrderEntity {
|
|
2978
3108
|
additionalNotes = '';
|
2979
3109
|
appInfo = new AppInfoEntity();
|
2980
3110
|
deviceUid = '';
|
2981
|
-
providerName =
|
3111
|
+
providerName = EPaymentProvider.IUGU;
|
2982
3112
|
// #endregion Properties (4)
|
2983
3113
|
// #region Constructors (1)
|
2984
3114
|
constructor(data) {
|
@@ -3306,5 +3436,5 @@ class VoucherEntity {
|
|
3306
3436
|
* Generated bundle index. Do not edit.
|
3307
3437
|
*/
|
3308
3438
|
|
3309
|
-
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity,
|
3439
|
+
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BillingEntity, BillingOrderEntity, BillingPaymentEntity, BillingTotalEntity, CampaignEntity, CarouselImageEntity, ClientAplicationCredentialEntity, ClientAplicationEntity, ClientEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, CustomerEntity, CustomerMemberEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, EAppCategory, EAppHeaderType, EAppMode, EAppType, EBankSlipStatus, EBillingStatus, EBooleanString, ECampaignStatus, ECompanyKeys, ECompanyMessageType, ECustomerInterval, ECustomerStatus, ECustomerType, EDiscountType, EDocType, EFiscalDocModelCode, EInstallationStatus, EIntervalType, EInvoiceStatus, ELeadOrigin, ELegalEntiy, EOs, EPaymentChannel, EPaymentMode, EPaymentProvider, EPaymentStatus, EPaymentType, EPlanFeatureType, EPlanIdentifier, EPlatform, EPubSub, EPubSubTopicType, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, FeatureEntity, GlobalSettingEntity, GlobalSettingIuguEntity, GlobalSettingMasterEntity, InstallationEntity, InviteEntity, InviteStatusEnum, InvoiceBankSlipEntity, InvoiceCreditCardEntity, InvoiceEntity, InvoiceItemEntity, InvoiceLogEntity, InvoicePayerEntity, InvoicePixEntity, IuguAccountEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguChargeCreditCardEntity, IuguCustomerEntity, IuguInvoiceBankSlipEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LastVerificationRequestDataEntity, LeadEntity, LeadStatusEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, PartnerEntity, PaymentCardEntity, PaymentCashEntity, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentTokenDataEntity, PaymentTokenEntity, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, PubsubSubscriptionChangeStatusEntity, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionBaseEntity, SubscriptionBaseItemEntity, SubscriptionBaseLogEntity, SubscriptionCompanyCompanyEntity, SubscriptionCompanyEntity, SubscriptionCustomerCustomerEntity, SubscriptionCustomerEntity, TokenEntity, VoucherEntity };
|
3310
3440
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|