cecon-interfaces 1.0.75 → 1.0.77
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 +8 -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 +210 -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 +5 -6
- package/dist/installation/entities/installation.entity.js +7 -8
- package/dist/installation/interfaces/i-installation.d.ts +5 -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,50 @@ 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 (16)
|
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
|
-
|
737
|
+
lastCheckAt = new Date();
|
699
738
|
mode = AppModeEnum.NATI_GO;
|
700
|
-
appName = '';
|
701
|
-
orderId = '';
|
702
|
-
renewPaymentDate = new Date();
|
703
739
|
subscriptionId = '';
|
740
|
+
suspended = false;
|
704
741
|
tags = [];
|
705
742
|
updatedAt = new Date();
|
706
743
|
version = '';
|
707
|
-
// #endregion Properties (
|
744
|
+
// #endregion Properties (16)
|
708
745
|
// #region Constructors (1)
|
709
746
|
constructor(data) {
|
710
747
|
if (data) {
|
@@ -758,6 +795,104 @@ class InviteEntity {
|
|
758
795
|
}
|
759
796
|
}
|
760
797
|
|
798
|
+
class InvoiceItemEntity {
|
799
|
+
// #region Properties (8)
|
800
|
+
description = '';
|
801
|
+
discounts = 0;
|
802
|
+
id = '';
|
803
|
+
quantity = 1;
|
804
|
+
sku = '';
|
805
|
+
taxes = 0;
|
806
|
+
totalPrice = 0;
|
807
|
+
unitPrice = 0;
|
808
|
+
// #endregion Properties (8)
|
809
|
+
// #region Constructors (1)
|
810
|
+
constructor(data) {
|
811
|
+
if (data) {
|
812
|
+
for (let key in data) {
|
813
|
+
if (data.hasOwnProperty(key) && key in this) {
|
814
|
+
this[key] = data[key];
|
815
|
+
}
|
816
|
+
}
|
817
|
+
}
|
818
|
+
}
|
819
|
+
}
|
820
|
+
|
821
|
+
class InvoicePaymentMethodEntity {
|
822
|
+
// #region Properties (15)
|
823
|
+
amount = 0;
|
824
|
+
brand = '';
|
825
|
+
createdAt = new Date();
|
826
|
+
currency = '';
|
827
|
+
expMonth = 0;
|
828
|
+
expYear = 0;
|
829
|
+
id = '';
|
830
|
+
last4 = '';
|
831
|
+
name = '';
|
832
|
+
pixQrCode = '';
|
833
|
+
pixUrl = '';
|
834
|
+
status = PaymentStatusEnum.PENDING;
|
835
|
+
transactionId = '';
|
836
|
+
type = PaymentTypeEnum.CREDIT_CARD;
|
837
|
+
updatedAt = new Date();
|
838
|
+
// #endregion Properties (15)
|
839
|
+
// #region Constructors (1)
|
840
|
+
constructor(data) {
|
841
|
+
if (data) {
|
842
|
+
for (let key in data) {
|
843
|
+
if (data.hasOwnProperty(key) && key in this) {
|
844
|
+
this[key] = data[key];
|
845
|
+
}
|
846
|
+
}
|
847
|
+
}
|
848
|
+
}
|
849
|
+
}
|
850
|
+
|
851
|
+
var InvoiceStatusEnum;
|
852
|
+
(function (InvoiceStatusEnum) {
|
853
|
+
InvoiceStatusEnum["ACTIVE"] = "ACTIVE";
|
854
|
+
InvoiceStatusEnum["CANCELLED"] = "CANCELLED";
|
855
|
+
InvoiceStatusEnum["EXPIRED"] = "EXPIRED";
|
856
|
+
InvoiceStatusEnum["PENDING"] = "PENDING";
|
857
|
+
InvoiceStatusEnum["PENDING_PAYMENT"] = "PENDING_PAYMENT";
|
858
|
+
InvoiceStatusEnum["PENDING_RENEWAL"] = "PENDING_RENEWAL";
|
859
|
+
InvoiceStatusEnum["TRIAL"] = "TRIAL";
|
860
|
+
InvoiceStatusEnum["FREE"] = "FREE";
|
861
|
+
InvoiceStatusEnum["FREE_TRIAL"] = "FREE_TRIAL";
|
862
|
+
InvoiceStatusEnum["FREE_TRIAL_EXPIRED"] = "FREE_TRIAL_EXPIRED";
|
863
|
+
})(InvoiceStatusEnum || (InvoiceStatusEnum = {}));
|
864
|
+
|
865
|
+
class InvoiceEntity {
|
866
|
+
// #region Properties (16)
|
867
|
+
companyId = '';
|
868
|
+
containerId = '';
|
869
|
+
createdAt = new Date();
|
870
|
+
discounts = 0;
|
871
|
+
dueDateAt = new Date();
|
872
|
+
id = '';
|
873
|
+
invoiceNumber = '';
|
874
|
+
items = [];
|
875
|
+
notes = '';
|
876
|
+
paidDateAt = new Date();
|
877
|
+
paymentMethod = [];
|
878
|
+
status = InvoiceStatusEnum.PENDING;
|
879
|
+
subtotal = 0;
|
880
|
+
taxes = 0;
|
881
|
+
total = 0;
|
882
|
+
updatedAt = new Date();
|
883
|
+
// #endregion Properties (16)
|
884
|
+
// #region Constructors (1)
|
885
|
+
constructor(data) {
|
886
|
+
if (data) {
|
887
|
+
for (let key in data) {
|
888
|
+
if (data.hasOwnProperty(key) && key in this) {
|
889
|
+
this[key] = data[key];
|
890
|
+
}
|
891
|
+
}
|
892
|
+
}
|
893
|
+
}
|
894
|
+
}
|
895
|
+
|
761
896
|
class AccountInformationsEntity {
|
762
897
|
// #region Properties (2)
|
763
898
|
key = '';
|
@@ -1909,6 +2044,72 @@ class PurchaseEntity extends OrderEntity {
|
|
1909
2044
|
}
|
1910
2045
|
}
|
1911
2046
|
|
2047
|
+
class SubscriptionInvoiceHistoryEntity {
|
2048
|
+
// #region Properties (6)
|
2049
|
+
amount = 0;
|
2050
|
+
createdAt = new Date();
|
2051
|
+
dueDate = new Date();
|
2052
|
+
invoiceId = '';
|
2053
|
+
paidDate = new Date();
|
2054
|
+
status = OrderStatusEnum.PENDING;
|
2055
|
+
// #endregion Properties (6)
|
2056
|
+
// #region Constructors (1)
|
2057
|
+
constructor(data) {
|
2058
|
+
if (data) {
|
2059
|
+
for (let key in data) {
|
2060
|
+
if (data.hasOwnProperty(key) && key in this) {
|
2061
|
+
this[key] = data[key];
|
2062
|
+
}
|
2063
|
+
}
|
2064
|
+
}
|
2065
|
+
}
|
2066
|
+
}
|
2067
|
+
|
2068
|
+
var SubscriptionStatusEnum;
|
2069
|
+
(function (SubscriptionStatusEnum) {
|
2070
|
+
SubscriptionStatusEnum["ACTIVE"] = "ACTIVE";
|
2071
|
+
SubscriptionStatusEnum["CANCELLED"] = "CANCELLED";
|
2072
|
+
SubscriptionStatusEnum["EXPIRED"] = "EXPIRED";
|
2073
|
+
SubscriptionStatusEnum["PENDING"] = "PENDING";
|
2074
|
+
SubscriptionStatusEnum["PENDING_PAYMENT"] = "PENDING_PAYMENT";
|
2075
|
+
SubscriptionStatusEnum["PENDING_RENEWAL"] = "PENDING_RENEWAL";
|
2076
|
+
SubscriptionStatusEnum["TRIAL"] = "TRIAL";
|
2077
|
+
SubscriptionStatusEnum["FREE"] = "FREE";
|
2078
|
+
SubscriptionStatusEnum["FREE_TRIAL"] = "FREE_TRIAL";
|
2079
|
+
SubscriptionStatusEnum["FREE_TRIAL_EXPIRED"] = "FREE_TRIAL_EXPIRED";
|
2080
|
+
SubscriptionStatusEnum["SUSPENDED"] = "SUSPENDED";
|
2081
|
+
})(SubscriptionStatusEnum || (SubscriptionStatusEnum = {}));
|
2082
|
+
|
2083
|
+
class SubscriptionEntity {
|
2084
|
+
// #region Properties (15)
|
2085
|
+
cancellationReason = '';
|
2086
|
+
createdAt = new Date();
|
2087
|
+
customerId = '';
|
2088
|
+
endDate = new Date();
|
2089
|
+
id = '';
|
2090
|
+
interval = 0;
|
2091
|
+
intervalType = IntervalTypeEnum.MONTHS;
|
2092
|
+
invoiceHistory = [];
|
2093
|
+
notes = '';
|
2094
|
+
planId = '';
|
2095
|
+
renewPaymentDate = new Date();
|
2096
|
+
startDate = new Date();
|
2097
|
+
status = SubscriptionStatusEnum.PENDING;
|
2098
|
+
trialEndDate = new Date();
|
2099
|
+
updatedAt = new Date();
|
2100
|
+
// #endregion Properties (15)
|
2101
|
+
// #region Constructors (1)
|
2102
|
+
constructor(data) {
|
2103
|
+
if (data) {
|
2104
|
+
for (let key in data) {
|
2105
|
+
if (data.hasOwnProperty(key) && key in this) {
|
2106
|
+
this[key] = data[key];
|
2107
|
+
}
|
2108
|
+
}
|
2109
|
+
}
|
2110
|
+
}
|
2111
|
+
}
|
2112
|
+
|
1912
2113
|
class TokenEntity {
|
1913
2114
|
// #region Properties (18)
|
1914
2115
|
active = true;
|
@@ -1940,5 +2141,5 @@ class TokenEntity {
|
|
1940
2141
|
* Generated bundle index. Do not edit.
|
1941
2142
|
*/
|
1942
2143
|
|
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 };
|
2144
|
+
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
2145
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|