cecon-interfaces 1.1.17 → 1.1.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/company/entities/company.entity.d.ts +0 -2
- package/dist/company/entities/company.entity.js +0 -1
- package/dist/company/interfaces/i-company.d.ts +4 -5
- package/dist/esm2022/company/entities/company.entity.mjs +1 -2
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/general/entities/index.mjs +7 -1
- package/dist/esm2022/general/entities/payment-card.entity.mjs +18 -0
- package/dist/esm2022/general/entities/payment-cash.entity.mjs +16 -0
- package/dist/esm2022/general/entities/payment-method-option.entity.mjs +31 -0
- package/dist/esm2022/general/entities/payment-method.entity.mjs +14 -18
- package/dist/esm2022/general/entities/payment-pix.entity.mjs +17 -0
- package/dist/esm2022/general/entities/payment-wallet.entity.mjs +16 -0
- package/dist/esm2022/general/entities/payment.entity.mjs +25 -0
- package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
- package/dist/esm2022/general/interfaces/i-payment-card.mjs +2 -0
- package/dist/esm2022/general/interfaces/i-payment-cash.mjs +2 -0
- package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +2 -0
- package/dist/esm2022/general/interfaces/i-payment-method.mjs +1 -1
- package/dist/esm2022/general/interfaces/i-payment-pix.mjs +2 -0
- package/dist/esm2022/general/interfaces/i-payment-wallet.mjs +2 -0
- package/dist/esm2022/general/interfaces/i-payment.mjs +2 -0
- package/dist/esm2022/general/interfaces/index.mjs +1 -1
- package/dist/esm2022/partner/entities/partner.entity.mjs +1 -2
- package/dist/esm2022/partner/interfaces/i-partner.mjs +1 -1
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +5 -4
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +123 -6
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/index.d.ts +6 -0
- package/dist/general/entities/index.js +13 -1
- package/dist/general/entities/payment-card.entity.d.ts +7 -0
- package/dist/general/entities/payment-card.entity.js +22 -0
- package/dist/general/entities/payment-cash.entity.d.ts +5 -0
- package/dist/general/entities/payment-cash.entity.js +20 -0
- package/dist/general/entities/payment-method-option.entity.d.ts +20 -0
- package/dist/general/entities/payment-method-option.entity.js +35 -0
- package/dist/general/entities/payment-method.entity.d.ts +17 -16
- package/dist/general/entities/payment-method.entity.js +13 -17
- package/dist/general/entities/payment-pix.entity.d.ts +6 -0
- package/dist/general/entities/payment-pix.entity.js +21 -0
- package/dist/general/entities/payment-wallet.entity.d.ts +5 -0
- package/dist/general/entities/payment-wallet.entity.js +20 -0
- package/dist/general/entities/payment.entity.d.ts +8 -0
- package/dist/general/entities/payment.entity.js +29 -0
- package/dist/general/enums/payment-type.enum.d.ts +2 -1
- package/dist/general/enums/payment-type.enum.js +1 -0
- package/dist/general/interfaces/i-payment-card.d.ts +5 -0
- package/dist/general/interfaces/i-payment-card.js +2 -0
- package/dist/general/interfaces/i-payment-cash.d.ts +3 -0
- package/dist/general/interfaces/i-payment-cash.js +2 -0
- package/dist/general/interfaces/i-payment-method-option.d.ts +18 -0
- package/dist/general/interfaces/i-payment-method-option.js +2 -0
- package/dist/general/interfaces/i-payment-method.d.ts +15 -15
- package/dist/general/interfaces/i-payment-pix.d.ts +4 -0
- package/dist/general/interfaces/i-payment-pix.js +2 -0
- package/dist/general/interfaces/i-payment-wallet.d.ts +3 -0
- package/dist/general/interfaces/i-payment-wallet.js +2 -0
- package/dist/general/interfaces/i-payment.d.ts +6 -0
- package/dist/general/interfaces/i-payment.js +2 -0
- package/dist/general/interfaces/index.d.ts +6 -0
- package/dist/package.json +1 -1
- package/dist/partner/entities/partner.entity.d.ts +1 -2
- package/dist/partner/entities/partner.entity.js +0 -1
- package/dist/partner/interfaces/i-partner.d.ts +1 -2
- package/dist/subscription/entities/subscription.entity.d.ts +2 -1
- package/dist/subscription/entities/subscription.entity.js +3 -2
- package/dist/subscription/interfaces/i-subscription.d.ts +2 -0
- package/package.json +1 -1
@@ -209,6 +209,40 @@ class OriginEntity {
|
|
209
209
|
}
|
210
210
|
}
|
211
211
|
|
212
|
+
class PaymentCardEntity {
|
213
|
+
// #region Properties (3)
|
214
|
+
brand = '';
|
215
|
+
maskedNumber = '';
|
216
|
+
tokenId = '';
|
217
|
+
// #endregion Properties (3)
|
218
|
+
// #region Constructors (1)
|
219
|
+
constructor(data) {
|
220
|
+
if (data) {
|
221
|
+
for (let key in data) {
|
222
|
+
if (data.hasOwnProperty(key) && key in this) {
|
223
|
+
this[key] = data[key];
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
class PaymentCashEntity {
|
231
|
+
// #region Properties (1)
|
232
|
+
changeFor = 0;
|
233
|
+
// #endregion Properties (1)
|
234
|
+
// #region Constructors (1)
|
235
|
+
constructor(data) {
|
236
|
+
if (data) {
|
237
|
+
for (let key in data) {
|
238
|
+
if (data.hasOwnProperty(key) && key in this) {
|
239
|
+
this[key] = data[key];
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
212
246
|
var PaymentChannelEnum;
|
213
247
|
(function (PaymentChannelEnum) {
|
214
248
|
PaymentChannelEnum["APP"] = "APP";
|
@@ -248,9 +282,10 @@ var PaymentTypeEnum;
|
|
248
282
|
PaymentTypeEnum["GIFT_CARD"] = "GIFT_CARD";
|
249
283
|
PaymentTypeEnum["VOUCHER"] = "VOUCHER";
|
250
284
|
PaymentTypeEnum["BILLING"] = "BILLING";
|
285
|
+
PaymentTypeEnum["BANK_SLIP"] = "BANK_SLIP";
|
251
286
|
})(PaymentTypeEnum || (PaymentTypeEnum = {}));
|
252
287
|
|
253
|
-
class
|
288
|
+
class PaymentMethodOptionEntity {
|
254
289
|
// #region Properties (13)
|
255
290
|
active = false;
|
256
291
|
channel = PaymentChannelEnum.AUTOMATION;
|
@@ -278,6 +313,49 @@ class PaymentMethodEntity {
|
|
278
313
|
}
|
279
314
|
}
|
280
315
|
|
316
|
+
class PaymentMethodEntity {
|
317
|
+
// #region Properties (11)
|
318
|
+
card = null;
|
319
|
+
cash = null;
|
320
|
+
code = '';
|
321
|
+
currency = 'BRL';
|
322
|
+
id = '';
|
323
|
+
method = PaymentTypeEnum.CASH;
|
324
|
+
pix = null;
|
325
|
+
prepaid = false;
|
326
|
+
type = 'OFFLINE';
|
327
|
+
value = 0;
|
328
|
+
wallet = null;
|
329
|
+
// #endregion Properties (11)
|
330
|
+
// #region Constructors (1)
|
331
|
+
constructor(data) {
|
332
|
+
if (data) {
|
333
|
+
for (let key in data) {
|
334
|
+
if (data.hasOwnProperty(key) && key in this) {
|
335
|
+
this[key] = data[key];
|
336
|
+
}
|
337
|
+
}
|
338
|
+
}
|
339
|
+
}
|
340
|
+
}
|
341
|
+
|
342
|
+
class PaymentPixEntity {
|
343
|
+
// #region Properties (2)
|
344
|
+
pixKey = '';
|
345
|
+
urlQrImage = '';
|
346
|
+
// #endregion Properties (2)
|
347
|
+
// #region Constructors (1)
|
348
|
+
constructor(data) {
|
349
|
+
if (data) {
|
350
|
+
for (let key in data) {
|
351
|
+
if (data.hasOwnProperty(key) && key in this) {
|
352
|
+
this[key] = data[key];
|
353
|
+
}
|
354
|
+
}
|
355
|
+
}
|
356
|
+
}
|
357
|
+
}
|
358
|
+
|
281
359
|
class PaymentProviderAgentEntity {
|
282
360
|
// #region Properties (2)
|
283
361
|
accountId = '';
|
@@ -366,6 +444,46 @@ class PaymentTokenEntity {
|
|
366
444
|
}
|
367
445
|
}
|
368
446
|
|
447
|
+
class PaymentWalletEntity {
|
448
|
+
// #region Properties (1)
|
449
|
+
name = '';
|
450
|
+
// #endregion Properties (1)
|
451
|
+
// #region Constructors (1)
|
452
|
+
constructor(data) {
|
453
|
+
if (data) {
|
454
|
+
for (let key in data) {
|
455
|
+
if (data.hasOwnProperty(key) && key in this) {
|
456
|
+
this[key] = data[key];
|
457
|
+
}
|
458
|
+
}
|
459
|
+
}
|
460
|
+
}
|
461
|
+
}
|
462
|
+
|
463
|
+
class PaymentEntity {
|
464
|
+
// #region Properties (3)
|
465
|
+
methods = [];
|
466
|
+
pending = 0;
|
467
|
+
prepaid = 0;
|
468
|
+
// #endregion Properties (3)
|
469
|
+
// #region Constructors (1)
|
470
|
+
constructor(data) {
|
471
|
+
if (data) {
|
472
|
+
for (let key in data) {
|
473
|
+
if (data.hasOwnProperty(key) && key in this) {
|
474
|
+
this[key] = data[key];
|
475
|
+
}
|
476
|
+
}
|
477
|
+
if (data.methods) {
|
478
|
+
this.methods = data.methods.map((method) => new PaymentMethodEntity(method));
|
479
|
+
}
|
480
|
+
else {
|
481
|
+
this.methods = [];
|
482
|
+
}
|
483
|
+
}
|
484
|
+
}
|
485
|
+
}
|
486
|
+
|
369
487
|
class RatingEntity {
|
370
488
|
// #region Properties (4)
|
371
489
|
comment = '';
|
@@ -738,7 +856,6 @@ class CompanyEntity {
|
|
738
856
|
name = '';
|
739
857
|
origin = new OriginEntity();
|
740
858
|
paymentProvider = new PaymentProviderEntity();
|
741
|
-
paymentsMethods = [];
|
742
859
|
phoneNumber = '';
|
743
860
|
sandbox = false;
|
744
861
|
tags = [];
|
@@ -2278,7 +2395,6 @@ class PartnerEntity {
|
|
2278
2395
|
logoUrl = '';
|
2279
2396
|
name = '';
|
2280
2397
|
paymentProvider = new PaymentProviderEntity();
|
2281
|
-
paymentsMethods = [];
|
2282
2398
|
phoneNumber = '';
|
2283
2399
|
sandbox = false;
|
2284
2400
|
tags = [];
|
@@ -2611,7 +2727,7 @@ var SubscriptionStatusEnum;
|
|
2611
2727
|
})(SubscriptionStatusEnum || (SubscriptionStatusEnum = {}));
|
2612
2728
|
|
2613
2729
|
class SubscriptionEntity {
|
2614
|
-
// #region Properties (
|
2730
|
+
// #region Properties (27)
|
2615
2731
|
amount = 0;
|
2616
2732
|
appId = '';
|
2617
2733
|
cancellationReason = '';
|
@@ -2637,7 +2753,8 @@ class SubscriptionEntity {
|
|
2637
2753
|
status = SubscriptionStatusEnum.PENDING;
|
2638
2754
|
tags = [];
|
2639
2755
|
updatedAt = new Date();
|
2640
|
-
|
2756
|
+
payment = new PaymentEntity();
|
2757
|
+
// #endregion Properties (27)
|
2641
2758
|
// #region Constructors (1)
|
2642
2759
|
constructor(data) {
|
2643
2760
|
if (data) {
|
@@ -2741,5 +2858,5 @@ class VoucherEntity {
|
|
2741
2858
|
* Generated bundle index. Do not edit.
|
2742
2859
|
*/
|
2743
2860
|
|
2744
|
-
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, PaymentChannelEnum, PaymentMethodEntity, PaymentModeEnum, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity, SubscriptionStatusEnum, TokenEntity, VoucherEntity };
|
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, 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, SubscriptionStatusEnum, TokenEntity, VoucherEntity };
|
2745
2862
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|