cecon-interfaces 1.1.16 → 1.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/dist/company/entities/company.entity.d.ts +0 -2
  2. package/dist/company/entities/company.entity.js +0 -1
  3. package/dist/company/interfaces/i-company.d.ts +4 -5
  4. package/dist/esm2022/company/entities/company.entity.mjs +1 -2
  5. package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
  6. package/dist/esm2022/feature/entities/feature.entity.mjs +4 -3
  7. package/dist/esm2022/feature/interfaces/i-feature.mjs +1 -1
  8. package/dist/esm2022/general/entities/index.mjs +7 -1
  9. package/dist/esm2022/general/entities/payment-card.entity.mjs +18 -0
  10. package/dist/esm2022/general/entities/payment-cash.entity.mjs +16 -0
  11. package/dist/esm2022/general/entities/payment-method-option.entity.mjs +31 -0
  12. package/dist/esm2022/general/entities/payment-method.entity.mjs +14 -18
  13. package/dist/esm2022/general/entities/payment-pix.entity.mjs +17 -0
  14. package/dist/esm2022/general/entities/payment-wallet.entity.mjs +16 -0
  15. package/dist/esm2022/general/entities/payment.entity.mjs +25 -0
  16. package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
  17. package/dist/esm2022/general/interfaces/i-payment-card.mjs +2 -0
  18. package/dist/esm2022/general/interfaces/i-payment-cash.mjs +2 -0
  19. package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +2 -0
  20. package/dist/esm2022/general/interfaces/i-payment-method.mjs +1 -1
  21. package/dist/esm2022/general/interfaces/i-payment-pix.mjs +2 -0
  22. package/dist/esm2022/general/interfaces/i-payment-wallet.mjs +2 -0
  23. package/dist/esm2022/general/interfaces/i-payment.mjs +2 -0
  24. package/dist/esm2022/general/interfaces/index.mjs +1 -1
  25. package/dist/esm2022/partner/entities/partner.entity.mjs +1 -2
  26. package/dist/esm2022/partner/interfaces/i-partner.mjs +1 -1
  27. package/dist/esm2022/subscription/entities/subscription.entity.mjs +8 -5
  28. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  29. package/dist/feature/entities/feature.entity.d.ts +1 -0
  30. package/dist/feature/entities/feature.entity.js +3 -2
  31. package/dist/feature/interfaces/i-feature.d.ts +1 -0
  32. package/dist/fesm2022/cecon-interfaces.mjs +129 -9
  33. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  34. package/dist/general/entities/index.d.ts +6 -0
  35. package/dist/general/entities/index.js +13 -1
  36. package/dist/general/entities/payment-card.entity.d.ts +7 -0
  37. package/dist/general/entities/payment-card.entity.js +22 -0
  38. package/dist/general/entities/payment-cash.entity.d.ts +5 -0
  39. package/dist/general/entities/payment-cash.entity.js +20 -0
  40. package/dist/general/entities/payment-method-option.entity.d.ts +20 -0
  41. package/dist/general/entities/payment-method-option.entity.js +35 -0
  42. package/dist/general/entities/payment-method.entity.d.ts +17 -16
  43. package/dist/general/entities/payment-method.entity.js +13 -17
  44. package/dist/general/entities/payment-pix.entity.d.ts +6 -0
  45. package/dist/general/entities/payment-pix.entity.js +21 -0
  46. package/dist/general/entities/payment-wallet.entity.d.ts +5 -0
  47. package/dist/general/entities/payment-wallet.entity.js +20 -0
  48. package/dist/general/entities/payment.entity.d.ts +8 -0
  49. package/dist/general/entities/payment.entity.js +29 -0
  50. package/dist/general/enums/payment-type.enum.d.ts +2 -1
  51. package/dist/general/enums/payment-type.enum.js +1 -0
  52. package/dist/general/interfaces/i-payment-card.d.ts +5 -0
  53. package/dist/general/interfaces/i-payment-card.js +2 -0
  54. package/dist/general/interfaces/i-payment-cash.d.ts +3 -0
  55. package/dist/general/interfaces/i-payment-cash.js +2 -0
  56. package/dist/general/interfaces/i-payment-method-option.d.ts +18 -0
  57. package/dist/general/interfaces/i-payment-method-option.js +2 -0
  58. package/dist/general/interfaces/i-payment-method.d.ts +15 -15
  59. package/dist/general/interfaces/i-payment-pix.d.ts +4 -0
  60. package/dist/general/interfaces/i-payment-pix.js +2 -0
  61. package/dist/general/interfaces/i-payment-wallet.d.ts +3 -0
  62. package/dist/general/interfaces/i-payment-wallet.js +2 -0
  63. package/dist/general/interfaces/i-payment.d.ts +6 -0
  64. package/dist/general/interfaces/i-payment.js +2 -0
  65. package/dist/general/interfaces/index.d.ts +6 -0
  66. package/dist/package.json +1 -1
  67. package/dist/partner/entities/partner.entity.d.ts +1 -2
  68. package/dist/partner/entities/partner.entity.js +0 -1
  69. package/dist/partner/interfaces/i-partner.d.ts +1 -2
  70. package/dist/subscription/entities/subscription.entity.d.ts +6 -2
  71. package/dist/subscription/entities/subscription.entity.js +6 -3
  72. package/dist/subscription/interfaces/i-subscription.d.ts +7 -2
  73. 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 PaymentMethodEntity {
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 = [];
@@ -844,7 +961,7 @@ class MetadataEntity {
844
961
  // index.ts
845
962
 
846
963
  class FeatureEntity {
847
- // #region Properties (10)
964
+ // #region Properties (11)
848
965
  appId = '';
849
966
  appMode = null;
850
967
  companyId = '';
@@ -853,9 +970,10 @@ class FeatureEntity {
853
970
  deviceId = '';
854
971
  id = '';
855
972
  installationId = '';
973
+ name = '';
856
974
  planId = null;
857
975
  subscriptionId = '';
858
- // #endregion Properties (10)
976
+ // #endregion Properties (11)
859
977
  // #region Constructors (1)
860
978
  constructor(data) {
861
979
  if (data) {
@@ -2277,7 +2395,6 @@ class PartnerEntity {
2277
2395
  logoUrl = '';
2278
2396
  name = '';
2279
2397
  paymentProvider = new PaymentProviderEntity();
2280
- paymentsMethods = [];
2281
2398
  phoneNumber = '';
2282
2399
  sandbox = false;
2283
2400
  tags = [];
@@ -2610,18 +2727,20 @@ var SubscriptionStatusEnum;
2610
2727
  })(SubscriptionStatusEnum || (SubscriptionStatusEnum = {}));
2611
2728
 
2612
2729
  class SubscriptionEntity {
2613
- // #region Properties (25)
2614
- cancellationReason = '';
2730
+ // #region Properties (27)
2615
2731
  amount = 0;
2616
2732
  appId = '';
2733
+ cancellationReason = '';
2617
2734
  company = new SubscriptionCompanyEntity();
2618
2735
  createdAt = new Date();
2619
2736
  customVariables = [];
2737
+ cycledAt = new Date();
2620
2738
  expiresAt = new Date();
2621
2739
  features = [];
2622
2740
  id = '';
2623
2741
  interval = 0;
2624
2742
  intervalType = IntervalTypeEnum.MONTHS;
2743
+ invoices = [];
2625
2744
  items = [];
2626
2745
  logs = [];
2627
2746
  notes = '';
@@ -2634,7 +2753,8 @@ class SubscriptionEntity {
2634
2753
  status = SubscriptionStatusEnum.PENDING;
2635
2754
  tags = [];
2636
2755
  updatedAt = new Date();
2637
- // #endregion Properties (25)
2756
+ payment = new PaymentEntity();
2757
+ // #endregion Properties (27)
2638
2758
  // #region Constructors (1)
2639
2759
  constructor(data) {
2640
2760
  if (data) {
@@ -2738,5 +2858,5 @@ class VoucherEntity {
2738
2858
  * Generated bundle index. Do not edit.
2739
2859
  */
2740
2860
 
2741
- 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 };
2742
2862
  //# sourceMappingURL=cecon-interfaces.mjs.map