cecon-interfaces 1.0.74 → 1.0.76
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/feature/entities/feature.entity.mjs +25 -0
- package/dist/esm2022/feature/entities/index.mjs +2 -0
- package/dist/esm2022/feature/index.mjs +3 -0
- package/dist/esm2022/feature/interfaces/i-feature.mjs +2 -0
- package/dist/esm2022/feature/interfaces/index.mjs +2 -0
- package/dist/esm2022/general/enums/index.mjs +2 -1
- package/dist/esm2022/general/enums/payment-status.enum.mjs +13 -0
- package/dist/esm2022/index.mjs +4 -1
- package/dist/esm2022/installation/entities/installation.entity.mjs +7 -9
- package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
- package/dist/esm2022/invoice/entities/index.mjs +4 -0
- package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +23 -0
- package/dist/esm2022/invoice/entities/invoice-payment-method.entity.mjs +31 -0
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +32 -0
- package/dist/esm2022/invoice/enums/index.mjs +2 -0
- package/dist/esm2022/invoice/enums/invoices-status.enum.mjs +14 -0
- package/dist/esm2022/invoice/index.mjs +4 -0
- package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +2 -0
- package/dist/esm2022/invoice/interfaces/i-invoice-payment-method.mjs +2 -0
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +2 -0
- package/dist/esm2022/invoice/interfaces/index.mjs +2 -0
- package/dist/esm2022/subscription/entities/index.mjs +3 -0
- package/dist/esm2022/subscription/entities/subscription-invoice-history.entity.mjs +22 -0
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +32 -0
- package/dist/esm2022/subscription/enums/index.mjs +2 -0
- package/dist/esm2022/subscription/enums/subscription-status.enum.mjs +15 -0
- package/dist/esm2022/subscription/index.mjs +4 -0
- package/dist/esm2022/subscription/interfaces/i-subscription-invoice-history.mjs +2 -0
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +2 -0
- package/dist/esm2022/subscription/interfaces/index.mjs +2 -0
- package/dist/feature/entities/feature.entity.d.ts +15 -0
- package/dist/feature/entities/feature.entity.js +29 -0
- package/dist/feature/entities/index.d.ts +1 -0
- package/dist/feature/entities/index.js +5 -0
- package/dist/feature/index.d.ts +2 -0
- package/dist/feature/index.js +18 -0
- package/dist/feature/interfaces/i-feature.d.ts +13 -0
- package/dist/feature/interfaces/i-feature.js +2 -0
- package/dist/feature/interfaces/index.d.ts +1 -0
- package/dist/feature/interfaces/index.js +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +209 -9
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/enums/index.d.ts +1 -0
- package/dist/general/enums/index.js +3 -1
- package/dist/general/enums/payment-status.enum.d.ts +11 -0
- package/dist/general/enums/payment-status.enum.js +15 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/installation/entities/installation.entity.d.ts +4 -6
- package/dist/installation/entities/installation.entity.js +6 -8
- package/dist/installation/interfaces/i-installation.d.ts +4 -6
- package/dist/invoice/entities/index.d.ts +3 -0
- package/dist/invoice/entities/index.js +9 -0
- package/dist/invoice/entities/invoice-item.entity.d.ts +12 -0
- package/dist/invoice/entities/invoice-item.entity.js +27 -0
- package/dist/invoice/entities/invoice-payment-method.entity.d.ts +20 -0
- package/dist/invoice/entities/invoice-payment-method.entity.js +35 -0
- package/dist/invoice/entities/invoice.entity.d.ts +23 -0
- package/dist/invoice/entities/invoice.entity.js +36 -0
- package/dist/invoice/enums/index.d.ts +1 -0
- package/dist/invoice/enums/index.js +5 -0
- package/dist/invoice/enums/invoices-status.enum.d.ts +12 -0
- package/dist/invoice/enums/invoices-status.enum.js +16 -0
- package/dist/invoice/index.d.ts +3 -0
- package/dist/invoice/index.js +19 -0
- package/dist/invoice/interfaces/i-invoice-item.d.ts +10 -0
- package/dist/invoice/interfaces/i-invoice-item.js +2 -0
- package/dist/invoice/interfaces/i-invoice-payment-method.d.ts +18 -0
- package/dist/invoice/interfaces/i-invoice-payment-method.js +2 -0
- package/dist/invoice/interfaces/i-invoice.d.ts +21 -0
- package/dist/invoice/interfaces/i-invoice.js +2 -0
- package/dist/invoice/interfaces/index.d.ts +3 -0
- package/dist/invoice/interfaces/index.js +2 -0
- package/dist/package.json +1 -1
- package/dist/subscription/entities/index.d.ts +2 -0
- package/dist/subscription/entities/index.js +7 -0
- package/dist/subscription/entities/subscription-invoice-history.entity.d.ts +11 -0
- package/dist/subscription/entities/subscription-invoice-history.entity.js +26 -0
- package/dist/subscription/entities/subscription.entity.d.ts +22 -0
- package/dist/subscription/entities/subscription.entity.js +36 -0
- package/dist/subscription/enums/index.d.ts +1 -0
- package/dist/subscription/enums/index.js +5 -0
- package/dist/subscription/enums/subscription-status.enum.d.ts +13 -0
- package/dist/subscription/enums/subscription-status.enum.js +17 -0
- package/dist/subscription/index.d.ts +3 -0
- package/dist/subscription/index.js +19 -0
- package/dist/subscription/interfaces/i-subscription-invoice-history.d.ts +9 -0
- package/dist/subscription/interfaces/i-subscription-invoice-history.js +2 -0
- package/dist/subscription/interfaces/i-subscription.d.ts +20 -0
- package/dist/subscription/interfaces/i-subscription.js +2 -0
- package/dist/subscription/interfaces/index.d.ts +2 -0
- package/dist/subscription/interfaces/index.js +2 -0
- package/package.json +1 -1
@@ -398,6 +398,19 @@ var OsEnum;
|
|
398
398
|
OsEnum["UNKNOWN"] = "UNKNOWN";
|
399
399
|
})(OsEnum || (OsEnum = {}));
|
400
400
|
|
401
|
+
var PaymentStatusEnum;
|
402
|
+
(function (PaymentStatusEnum) {
|
403
|
+
PaymentStatusEnum["PENDING"] = "PENDING";
|
404
|
+
PaymentStatusEnum["COMPLETED"] = "COMPLETED";
|
405
|
+
PaymentStatusEnum["FAILED"] = "FAILED";
|
406
|
+
PaymentStatusEnum["CANCELED"] = "CANCELED";
|
407
|
+
PaymentStatusEnum["REFUNDED"] = "REFUNDED";
|
408
|
+
PaymentStatusEnum["AUTHORIZED"] = "AUTHORIZED";
|
409
|
+
PaymentStatusEnum["DECLINED"] = "DECLINED";
|
410
|
+
PaymentStatusEnum["EXPIRED"] = "EXPIRED";
|
411
|
+
PaymentStatusEnum["DISPUTED"] = "DISPUTED";
|
412
|
+
})(PaymentStatusEnum || (PaymentStatusEnum = {}));
|
413
|
+
|
401
414
|
var LegalEntiyEnum;
|
402
415
|
(function (LegalEntiyEnum) {
|
403
416
|
LegalEntiyEnum["LEGAL"] = "Pessoa Jur\u00EDdica";
|
@@ -685,26 +698,49 @@ class MetadataEntity {
|
|
685
698
|
|
686
699
|
// index.ts
|
687
700
|
|
701
|
+
class FeatureEntity {
|
702
|
+
// #region Properties (10)
|
703
|
+
appId = '';
|
704
|
+
appMode = null;
|
705
|
+
companyId = '';
|
706
|
+
containerId = '';
|
707
|
+
createdAt = new Date();
|
708
|
+
deviceId = '';
|
709
|
+
id = '';
|
710
|
+
installationId = '';
|
711
|
+
planId = '';
|
712
|
+
subscriptionId = '';
|
713
|
+
// #endregion Properties (10)
|
714
|
+
// #region Constructors (1)
|
715
|
+
constructor(data) {
|
716
|
+
if (data) {
|
717
|
+
for (let key in data) {
|
718
|
+
if (data.hasOwnProperty(key) && key in this) {
|
719
|
+
this[key] = data[key];
|
720
|
+
}
|
721
|
+
}
|
722
|
+
}
|
723
|
+
}
|
724
|
+
}
|
725
|
+
|
688
726
|
class InstallationEntity {
|
689
|
-
// #region Properties (
|
690
|
-
activationDate = new Date();
|
727
|
+
// #region Properties (15)
|
691
728
|
active = false;
|
729
|
+
appIconUrl = '';
|
692
730
|
appId = '';
|
731
|
+
appName = '';
|
693
732
|
createdAt = new Date();
|
694
733
|
customConfig = null;
|
695
734
|
expirationDate = new Date();
|
696
|
-
|
735
|
+
featureId = '';
|
697
736
|
id = '';
|
698
|
-
isPaid = false;
|
699
737
|
mode = AppModeEnum.NATI_GO;
|
700
|
-
name = '';
|
701
|
-
orderId = '';
|
702
|
-
renewPaymentDate = new Date();
|
703
738
|
subscriptionId = '';
|
739
|
+
suspended = false;
|
704
740
|
tags = [];
|
705
741
|
updatedAt = new Date();
|
706
742
|
version = '';
|
707
|
-
// #endregion Properties (
|
743
|
+
// #endregion Properties (15)
|
708
744
|
// #region Constructors (1)
|
709
745
|
constructor(data) {
|
710
746
|
if (data) {
|
@@ -758,6 +794,104 @@ class InviteEntity {
|
|
758
794
|
}
|
759
795
|
}
|
760
796
|
|
797
|
+
class InvoiceItemEntity {
|
798
|
+
// #region Properties (8)
|
799
|
+
description = '';
|
800
|
+
discounts = 0;
|
801
|
+
id = '';
|
802
|
+
quantity = 1;
|
803
|
+
sku = '';
|
804
|
+
taxes = 0;
|
805
|
+
totalPrice = 0;
|
806
|
+
unitPrice = 0;
|
807
|
+
// #endregion Properties (8)
|
808
|
+
// #region Constructors (1)
|
809
|
+
constructor(data) {
|
810
|
+
if (data) {
|
811
|
+
for (let key in data) {
|
812
|
+
if (data.hasOwnProperty(key) && key in this) {
|
813
|
+
this[key] = data[key];
|
814
|
+
}
|
815
|
+
}
|
816
|
+
}
|
817
|
+
}
|
818
|
+
}
|
819
|
+
|
820
|
+
class InvoicePaymentMethodEntity {
|
821
|
+
// #region Properties (15)
|
822
|
+
amount = 0;
|
823
|
+
brand = '';
|
824
|
+
createdAt = new Date();
|
825
|
+
currency = '';
|
826
|
+
expMonth = 0;
|
827
|
+
expYear = 0;
|
828
|
+
id = '';
|
829
|
+
last4 = '';
|
830
|
+
name = '';
|
831
|
+
pixQrCode = '';
|
832
|
+
pixUrl = '';
|
833
|
+
status = PaymentStatusEnum.PENDING;
|
834
|
+
transactionId = '';
|
835
|
+
type = PaymentTypeEnum.CREDIT_CARD;
|
836
|
+
updatedAt = new Date();
|
837
|
+
// #endregion Properties (15)
|
838
|
+
// #region Constructors (1)
|
839
|
+
constructor(data) {
|
840
|
+
if (data) {
|
841
|
+
for (let key in data) {
|
842
|
+
if (data.hasOwnProperty(key) && key in this) {
|
843
|
+
this[key] = data[key];
|
844
|
+
}
|
845
|
+
}
|
846
|
+
}
|
847
|
+
}
|
848
|
+
}
|
849
|
+
|
850
|
+
var InvoiceStatusEnum;
|
851
|
+
(function (InvoiceStatusEnum) {
|
852
|
+
InvoiceStatusEnum["ACTIVE"] = "ACTIVE";
|
853
|
+
InvoiceStatusEnum["CANCELLED"] = "CANCELLED";
|
854
|
+
InvoiceStatusEnum["EXPIRED"] = "EXPIRED";
|
855
|
+
InvoiceStatusEnum["PENDING"] = "PENDING";
|
856
|
+
InvoiceStatusEnum["PENDING_PAYMENT"] = "PENDING_PAYMENT";
|
857
|
+
InvoiceStatusEnum["PENDING_RENEWAL"] = "PENDING_RENEWAL";
|
858
|
+
InvoiceStatusEnum["TRIAL"] = "TRIAL";
|
859
|
+
InvoiceStatusEnum["FREE"] = "FREE";
|
860
|
+
InvoiceStatusEnum["FREE_TRIAL"] = "FREE_TRIAL";
|
861
|
+
InvoiceStatusEnum["FREE_TRIAL_EXPIRED"] = "FREE_TRIAL_EXPIRED";
|
862
|
+
})(InvoiceStatusEnum || (InvoiceStatusEnum = {}));
|
863
|
+
|
864
|
+
class InvoiceEntity {
|
865
|
+
// #region Properties (16)
|
866
|
+
companyId = '';
|
867
|
+
containerId = '';
|
868
|
+
createdAt = new Date();
|
869
|
+
discounts = 0;
|
870
|
+
dueDateAt = new Date();
|
871
|
+
id = '';
|
872
|
+
invoiceNumber = '';
|
873
|
+
items = [];
|
874
|
+
notes = '';
|
875
|
+
paidDateAt = new Date();
|
876
|
+
paymentMethod = [];
|
877
|
+
status = InvoiceStatusEnum.PENDING;
|
878
|
+
subtotal = 0;
|
879
|
+
taxes = 0;
|
880
|
+
total = 0;
|
881
|
+
updatedAt = new Date();
|
882
|
+
// #endregion Properties (16)
|
883
|
+
// #region Constructors (1)
|
884
|
+
constructor(data) {
|
885
|
+
if (data) {
|
886
|
+
for (let key in data) {
|
887
|
+
if (data.hasOwnProperty(key) && key in this) {
|
888
|
+
this[key] = data[key];
|
889
|
+
}
|
890
|
+
}
|
891
|
+
}
|
892
|
+
}
|
893
|
+
}
|
894
|
+
|
761
895
|
class AccountInformationsEntity {
|
762
896
|
// #region Properties (2)
|
763
897
|
key = '';
|
@@ -1909,6 +2043,72 @@ class PurchaseEntity extends OrderEntity {
|
|
1909
2043
|
}
|
1910
2044
|
}
|
1911
2045
|
|
2046
|
+
class SubscriptionInvoiceHistoryEntity {
|
2047
|
+
// #region Properties (6)
|
2048
|
+
amount = 0;
|
2049
|
+
createdAt = new Date();
|
2050
|
+
dueDate = new Date();
|
2051
|
+
invoiceId = '';
|
2052
|
+
paidDate = new Date();
|
2053
|
+
status = OrderStatusEnum.PENDING;
|
2054
|
+
// #endregion Properties (6)
|
2055
|
+
// #region Constructors (1)
|
2056
|
+
constructor(data) {
|
2057
|
+
if (data) {
|
2058
|
+
for (let key in data) {
|
2059
|
+
if (data.hasOwnProperty(key) && key in this) {
|
2060
|
+
this[key] = data[key];
|
2061
|
+
}
|
2062
|
+
}
|
2063
|
+
}
|
2064
|
+
}
|
2065
|
+
}
|
2066
|
+
|
2067
|
+
var SubscriptionStatusEnum;
|
2068
|
+
(function (SubscriptionStatusEnum) {
|
2069
|
+
SubscriptionStatusEnum["ACTIVE"] = "ACTIVE";
|
2070
|
+
SubscriptionStatusEnum["CANCELLED"] = "CANCELLED";
|
2071
|
+
SubscriptionStatusEnum["EXPIRED"] = "EXPIRED";
|
2072
|
+
SubscriptionStatusEnum["PENDING"] = "PENDING";
|
2073
|
+
SubscriptionStatusEnum["PENDING_PAYMENT"] = "PENDING_PAYMENT";
|
2074
|
+
SubscriptionStatusEnum["PENDING_RENEWAL"] = "PENDING_RENEWAL";
|
2075
|
+
SubscriptionStatusEnum["TRIAL"] = "TRIAL";
|
2076
|
+
SubscriptionStatusEnum["FREE"] = "FREE";
|
2077
|
+
SubscriptionStatusEnum["FREE_TRIAL"] = "FREE_TRIAL";
|
2078
|
+
SubscriptionStatusEnum["FREE_TRIAL_EXPIRED"] = "FREE_TRIAL_EXPIRED";
|
2079
|
+
SubscriptionStatusEnum["SUSPENDED"] = "SUSPENDED";
|
2080
|
+
})(SubscriptionStatusEnum || (SubscriptionStatusEnum = {}));
|
2081
|
+
|
2082
|
+
class SubscriptionEntity {
|
2083
|
+
// #region Properties (15)
|
2084
|
+
cancellationReason = '';
|
2085
|
+
createdAt = new Date();
|
2086
|
+
customerId = '';
|
2087
|
+
endDate = new Date();
|
2088
|
+
id = '';
|
2089
|
+
interval = 0;
|
2090
|
+
intervalType = IntervalTypeEnum.MONTHS;
|
2091
|
+
invoiceHistory = [];
|
2092
|
+
notes = '';
|
2093
|
+
planId = '';
|
2094
|
+
renewPaymentDate = new Date();
|
2095
|
+
startDate = new Date();
|
2096
|
+
status = SubscriptionStatusEnum.PENDING;
|
2097
|
+
trialEndDate = new Date();
|
2098
|
+
updatedAt = new Date();
|
2099
|
+
// #endregion Properties (15)
|
2100
|
+
// #region Constructors (1)
|
2101
|
+
constructor(data) {
|
2102
|
+
if (data) {
|
2103
|
+
for (let key in data) {
|
2104
|
+
if (data.hasOwnProperty(key) && key in this) {
|
2105
|
+
this[key] = data[key];
|
2106
|
+
}
|
2107
|
+
}
|
2108
|
+
}
|
2109
|
+
}
|
2110
|
+
}
|
2111
|
+
|
1912
2112
|
class TokenEntity {
|
1913
2113
|
// #region Properties (18)
|
1914
2114
|
active = true;
|
@@ -1940,5 +2140,5 @@ class TokenEntity {
|
|
1940
2140
|
* Generated bundle index. Do not edit.
|
1941
2141
|
*/
|
1942
2142
|
|
1943
|
-
export { AccountInformationsEntity, AddressEntity, AppCategoryEnum, AppEntity, AppHeaderTypeEnum, AppInfoEntity, AppModeEnum, BaseEntity, BooleanStringEnum, CarouselImageEntity, CompanyEntity, CompanyKeysEnum, CompanyMessageTypeEnum, ContainerEntity, CoordsEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LeadEntity, LeadOriginEnum, LeadStatusEnum, LegalEntiyEnum, 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, OsEnum, PartnerEntity, PaymentChannelEnum, PaymentMethodEntity, PaymentModeEnum, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PlanEntity, PlanFeatureEntity, PlanIdentifierEnum, PlatfomrEnum, PurchaseEntity, RatingEntity, SponsorshipValuesEntity, TokenEntity };
|
2143
|
+
export { AccountInformationsEntity, AddressEntity, AppCategoryEnum, AppEntity, AppHeaderTypeEnum, AppInfoEntity, AppModeEnum, BaseEntity, BooleanStringEnum, CarouselImageEntity, CompanyEntity, CompanyKeysEnum, CompanyMessageTypeEnum, ContainerEntity, CoordsEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LeadEntity, LeadOriginEnum, LeadStatusEnum, LegalEntiyEnum, 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, OsEnum, PartnerEntity, PaymentChannelEnum, PaymentMethodEntity, PaymentModeEnum, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PlanEntity, PlanFeatureEntity, PlanIdentifierEnum, PlatfomrEnum, PurchaseEntity, RatingEntity, SponsorshipValuesEntity, SubscriptionEntity, SubscriptionInvoiceHistoryEntity, SubscriptionStatusEnum, TokenEntity };
|
1944
2144
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|