cecon-interfaces 1.1.17 → 1.1.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) 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/general/entities/index.mjs +7 -1
  7. package/dist/esm2022/general/entities/payment-card.entity.mjs +18 -0
  8. package/dist/esm2022/general/entities/payment-cash.entity.mjs +16 -0
  9. package/dist/esm2022/general/entities/payment-method-option.entity.mjs +31 -0
  10. package/dist/esm2022/general/entities/payment-method.entity.mjs +14 -18
  11. package/dist/esm2022/general/entities/payment-pix.entity.mjs +17 -0
  12. package/dist/esm2022/general/entities/payment-wallet.entity.mjs +16 -0
  13. package/dist/esm2022/general/entities/payment.entity.mjs +25 -0
  14. package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
  15. package/dist/esm2022/general/interfaces/i-payment-card.mjs +2 -0
  16. package/dist/esm2022/general/interfaces/i-payment-cash.mjs +2 -0
  17. package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +2 -0
  18. package/dist/esm2022/general/interfaces/i-payment-method.mjs +1 -1
  19. package/dist/esm2022/general/interfaces/i-payment-pix.mjs +2 -0
  20. package/dist/esm2022/general/interfaces/i-payment-wallet.mjs +2 -0
  21. package/dist/esm2022/general/interfaces/i-payment.mjs +2 -0
  22. package/dist/esm2022/general/interfaces/index.mjs +1 -1
  23. package/dist/esm2022/partner/entities/partner.entity.mjs +1 -2
  24. package/dist/esm2022/partner/interfaces/i-partner.mjs +1 -1
  25. package/dist/esm2022/subscription/entities/subscription.entity.mjs +6 -4
  26. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  27. package/dist/fesm2022/cecon-interfaces.mjs +124 -6
  28. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  29. package/dist/general/entities/index.d.ts +6 -0
  30. package/dist/general/entities/index.js +13 -1
  31. package/dist/general/entities/payment-card.entity.d.ts +7 -0
  32. package/dist/general/entities/payment-card.entity.js +22 -0
  33. package/dist/general/entities/payment-cash.entity.d.ts +5 -0
  34. package/dist/general/entities/payment-cash.entity.js +20 -0
  35. package/dist/general/entities/payment-method-option.entity.d.ts +20 -0
  36. package/dist/general/entities/payment-method-option.entity.js +35 -0
  37. package/dist/general/entities/payment-method.entity.d.ts +17 -16
  38. package/dist/general/entities/payment-method.entity.js +13 -17
  39. package/dist/general/entities/payment-pix.entity.d.ts +6 -0
  40. package/dist/general/entities/payment-pix.entity.js +21 -0
  41. package/dist/general/entities/payment-wallet.entity.d.ts +5 -0
  42. package/dist/general/entities/payment-wallet.entity.js +20 -0
  43. package/dist/general/entities/payment.entity.d.ts +8 -0
  44. package/dist/general/entities/payment.entity.js +29 -0
  45. package/dist/general/enums/payment-type.enum.d.ts +2 -1
  46. package/dist/general/enums/payment-type.enum.js +1 -0
  47. package/dist/general/interfaces/i-payment-card.d.ts +5 -0
  48. package/dist/general/interfaces/i-payment-card.js +2 -0
  49. package/dist/general/interfaces/i-payment-cash.d.ts +3 -0
  50. package/dist/general/interfaces/i-payment-cash.js +2 -0
  51. package/dist/general/interfaces/i-payment-method-option.d.ts +18 -0
  52. package/dist/general/interfaces/i-payment-method-option.js +2 -0
  53. package/dist/general/interfaces/i-payment-method.d.ts +15 -15
  54. package/dist/general/interfaces/i-payment-pix.d.ts +4 -0
  55. package/dist/general/interfaces/i-payment-pix.js +2 -0
  56. package/dist/general/interfaces/i-payment-wallet.d.ts +3 -0
  57. package/dist/general/interfaces/i-payment-wallet.js +2 -0
  58. package/dist/general/interfaces/i-payment.d.ts +6 -0
  59. package/dist/general/interfaces/i-payment.js +2 -0
  60. package/dist/general/interfaces/index.d.ts +6 -0
  61. package/dist/package.json +1 -1
  62. package/dist/partner/entities/partner.entity.d.ts +1 -2
  63. package/dist/partner/entities/partner.entity.js +0 -1
  64. package/dist/partner/interfaces/i-partner.d.ts +1 -2
  65. package/dist/subscription/entities/subscription.entity.d.ts +3 -1
  66. package/dist/subscription/entities/subscription.entity.js +4 -2
  67. package/dist/subscription/interfaces/i-subscription.d.ts +3 -0
  68. 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 = [];
@@ -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,9 +2727,10 @@ var SubscriptionStatusEnum;
2611
2727
  })(SubscriptionStatusEnum || (SubscriptionStatusEnum = {}));
2612
2728
 
2613
2729
  class SubscriptionEntity {
2614
- // #region Properties (25)
2730
+ // #region Properties (27)
2615
2731
  amount = 0;
2616
2732
  appId = '';
2733
+ appName = '';
2617
2734
  cancellationReason = '';
2618
2735
  company = new SubscriptionCompanyEntity();
2619
2736
  createdAt = new Date();
@@ -2637,7 +2754,8 @@ class SubscriptionEntity {
2637
2754
  status = SubscriptionStatusEnum.PENDING;
2638
2755
  tags = [];
2639
2756
  updatedAt = new Date();
2640
- // #endregion Properties (25)
2757
+ payment = new PaymentEntity();
2758
+ // #endregion Properties (27)
2641
2759
  // #region Constructors (1)
2642
2760
  constructor(data) {
2643
2761
  if (data) {
@@ -2741,5 +2859,5 @@ class VoucherEntity {
2741
2859
  * Generated bundle index. Do not edit.
2742
2860
  */
2743
2861
 
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 };
2862
+ 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
2863
  //# sourceMappingURL=cecon-interfaces.mjs.map