cecon-interfaces 1.1.22 → 1.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +3 -3
- package/dist/esm2022/subscription/enums/index.mjs +2 -2
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/voucher/entities/voucher.entity.mjs +4 -3
- package/dist/esm2022/voucher/interfaces/i-voucher.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +4 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/subscription/entities/subscription.entity.d.ts +2 -2
- package/dist/subscription/entities/subscription.entity.js +1 -1
- package/dist/subscription/enums/index.d.ts +1 -1
- package/dist/subscription/enums/index.js +2 -2
- package/dist/subscription/interfaces/i-subscription.d.ts +3 -3
- package/dist/voucher/entities/voucher.entity.d.ts +1 -0
- package/dist/voucher/entities/voucher.entity.js +3 -2
- package/dist/voucher/interfaces/i-voucher.d.ts +1 -0
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IntervalTypeEnum, PaymentEntity } from '../../general';
|
2
|
-
import {
|
2
|
+
import { ESubscriptionStatus } from '../enums';
|
3
3
|
import { SubscriptionCompanyEntity } from './subscription-company.entity';
|
4
4
|
export class SubscriptionEntity {
|
5
5
|
// #region Properties (27)
|
@@ -26,7 +26,7 @@ export class SubscriptionEntity {
|
|
26
26
|
renewPaymentDate = new Date();
|
27
27
|
renovatedAt = new Date();
|
28
28
|
startsAt = new Date();
|
29
|
-
status =
|
29
|
+
status = ESubscriptionStatus.PENDING;
|
30
30
|
tags = [];
|
31
31
|
updatedAt = new Date();
|
32
32
|
payment = new PaymentEntity();
|
@@ -42,4 +42,4 @@ export class SubscriptionEntity {
|
|
42
42
|
}
|
43
43
|
}
|
44
44
|
}
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlI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cyAoMjcpXG5cbiAgLy8gI3JlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG5cbiAgY29uc3RydWN0b3IoZGF0YT86IFBhcnRpYWw8U3Vic2NyaXB0aW9uRW50aXR5Pikge1xuICAgIGlmIChkYXRhKSB7XG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { ESubscriptionStatus
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export { ESubscriptionStatus } from './subscription-status.enum';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uL2VudW1zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRVN1YnNjcmlwdGlvblN0YXR1cyB9IGZyb20gJy4vc3Vic2NyaXB0aW9uLXN0YXR1cy5lbnVtJztcbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24uanMiLCJzb3V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VmFyaWFibGVbXTtcbiAgY3ljbGVkQXQ6IERhdGU7XG4gIGV4cGlyZXNBdDogRGF0ZTtcbiAgZmVhdHVyZXM6IElGZWF0dXJlW107XG4gIGlkOiBzdHJpbmc7XG4gIGludGVydmFsOiBudW1iZXI7XG4gIHBheW1lbnQ6IElQYXltZW50O1xuICBpbnRlcnZhbFR5cGU6IEludGVydmFsVHlwZUVudW07XG4gIGludm9pY2VzOiBJSW52b2ljZVtdO1xuICBpdGVtczogSVN1YnNjcmlwdGlvbkl0ZW1bXTtcbiAgbG9nczogSVN1YnNjcmlwdGlvbkxvZ1tdO1xuICBub3Rlczogc3RyaW5nO1xuICBwYXJ0bmVySWQ6IHN0cmluZyB8IG51bGw7XG4gIHBsYW5JZDogc3RyaW5nO1xuICBwbGFuTmFtZTogc3RyaW5nO1xuICByZW5ld1BheW1lbnREYXRlOiBEYXRlO1xuICByZW5vdmF0ZWRBdDogRGF0ZTtcbiAgc3RhcnRzQXQ6IERhdGU7XG4gIHN0YXR1czogRVN1YnNjcmlwdGlvblN0YXR1cztcbiAgdGFnczogc3RyaW5nW107XG4gIHVwZGF0ZWRBdDogRGF0ZTtcblxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDI1KVxufVxuIl19
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EDiscountType } from '../../general';
|
2
2
|
import { EVoucherStatus } from '../enums';
|
3
3
|
export class VoucherEntity {
|
4
|
-
// #region Properties (
|
4
|
+
// #region Properties (19)
|
5
5
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
6
6
|
allowsKeyChange = false;
|
7
7
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
@@ -33,11 +33,12 @@ export class VoucherEntity {
|
|
33
33
|
sponsorship = [];
|
34
34
|
// status do cupom
|
35
35
|
status = EVoucherStatus.PLACED;
|
36
|
+
tags = [];
|
36
37
|
// data da última atualização do cupom
|
37
38
|
updatedAt = new Date();
|
38
39
|
// contador de quantas vezes o cupom foi usado
|
39
40
|
usedCount = 0;
|
40
|
-
// #endregion Properties (
|
41
|
+
// #endregion Properties (19)
|
41
42
|
// #region Constructors (1)
|
42
43
|
constructor(data) {
|
43
44
|
if (data) {
|
@@ -49,4 +50,4 @@ export class VoucherEntity {
|
|
49
50
|
}
|
50
51
|
}
|
51
52
|
}
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm91Y2hlci5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdm91Y2hlci9lbnRpdGllcy92b3VjaGVyLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUEwQixNQUFNLGVBQWUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sVUFBVSxDQUFDO0FBRzFDLE1BQU0sT0FBTyxhQUFhO0lBQ3hCLDBCQUEwQjtJQUUxQiwrREFBK0Q7SUFDeEQsZUFBZSxHQUFZLEtBQUssQ0FBQztJQUN4QywwRUFBMEU7SUFDbkUsTUFBTSxHQUFXLENBQUMsQ0FBQztJQUMxQixzREFBc0Q7SUFDdEQsVUFBVSxHQUFtQixJQUFJLENBQUM7SUFDbEMsOENBQThDO0lBQzlDLFNBQVMsR0FBbUIsSUFBSSxDQUFDO0lBQ2pDLGdFQUFnRTtJQUNoRSxXQUFXLEdBQW1CLElBQUksQ0FBQztJQUNuQywyQkFBMkI7SUFDcEIsU0FBUyxHQUFTLElBQUksSUFBSSxFQUFFLENBQUM7SUFDcEMsOEJBQThCO0lBQzlCLFdBQVcsR0FBbUIsSUFBSSxDQUFDO0lBQ25DLDhDQUE4QztJQUN2QyxZQUFZLEdBQWtCLGFBQWEsQ0FBQyxZQUFZLENBQUM7SUFDaEUsNEJBQTRCO0lBQ3JCL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dXM7XHJcbiAgLy8gZGF0YSBkYSDDumx0aW1hIGF0dWFsaXphw6fDo28gZG8gY3Vwb21cclxuICB1cGRhdGVkQXQ6IERhdGU7XHJcbiAgLy8gY29udGFkb3IgZGUgcXVhbnRhcyB2ZXplcyBvIGN1cG9tIGZvaSB1c2Fkb1xyXG4gIHVzZWRDb3VudDogbnVtYmVyO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDE4KVxyXG4gIC8vIGRhdGEgZGEgw7psdGltYSBhdHVhbGl6YcOnw6NvIGRhIGNhbXBhbmhhXHJcbn1cclxuIl19
|
@@ -2804,7 +2804,7 @@ var EVoucherStatus;
|
|
2804
2804
|
})(EVoucherStatus || (EVoucherStatus = {}));
|
2805
2805
|
|
2806
2806
|
class VoucherEntity {
|
2807
|
-
// #region Properties (
|
2807
|
+
// #region Properties (19)
|
2808
2808
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
2809
2809
|
allowsKeyChange = false;
|
2810
2810
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
@@ -2836,11 +2836,12 @@ class VoucherEntity {
|
|
2836
2836
|
sponsorship = [];
|
2837
2837
|
// status do cupom
|
2838
2838
|
status = EVoucherStatus.PLACED;
|
2839
|
+
tags = [];
|
2839
2840
|
// data da última atualização do cupom
|
2840
2841
|
updatedAt = new Date();
|
2841
2842
|
// contador de quantas vezes o cupom foi usado
|
2842
2843
|
usedCount = 0;
|
2843
|
-
// #endregion Properties (
|
2844
|
+
// #endregion Properties (19)
|
2844
2845
|
// #region Constructors (1)
|
2845
2846
|
constructor(data) {
|
2846
2847
|
if (data) {
|
@@ -2857,5 +2858,5 @@ class VoucherEntity {
|
|
2857
2858
|
* Generated bundle index. Do not edit.
|
2858
2859
|
*/
|
2859
2860
|
|
2860
|
-
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, EAppCategory, EAppHeaderType, EAppMode, EAppType, ECampaignStatus, ECompanyKeys, ECompanyMessageType, EDiscountType, EFiscalDocModelCode, EInstallationStatus, EPlanFeatureType, EPlanIdentifier, ESponsorshipValues, EVoucherStatus, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, 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, PaymentCardEntity, PaymentCashEntity, PaymentChannelEnum, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentModeEnum, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity,
|
2861
|
+
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, EAppCategory, EAppHeaderType, EAppMode, EAppType, ECampaignStatus, ECompanyKeys, ECompanyMessageType, EDiscountType, EFiscalDocModelCode, EInstallationStatus, EPlanFeatureType, EPlanIdentifier, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, 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, PaymentCardEntity, PaymentCashEntity, PaymentChannelEnum, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentModeEnum, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity, TokenEntity, VoucherEntity };
|
2861
2862
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|