cecon-interfaces 1.1.26 → 1.1.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/dist/app/entities/rabbit.entity.d.ts +5 -2
  2. package/dist/app/entities/rabbit.entity.js +7 -4
  3. package/dist/app/interfaces/i-rabbit.d.ts +15 -0
  4. package/dist/esm2022/app/entities/rabbit.entity.mjs +8 -5
  5. package/dist/esm2022/app/interfaces/i-rabbit.mjs +1 -1
  6. package/dist/esm2022/general/enums/bank-slip-status.enum.mjs +9 -0
  7. package/dist/esm2022/general/enums/index.mjs +2 -1
  8. package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
  9. package/dist/esm2022/invoice/entities/index.mjs +6 -2
  10. package/dist/esm2022/invoice/entities/invoice-bank-slip.entity.mjs +23 -0
  11. package/dist/esm2022/invoice/entities/invoice-credit-card.entity.mjs +21 -0
  12. package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +3 -8
  13. package/dist/esm2022/invoice/entities/invoice-log.entity.mjs +19 -0
  14. package/dist/esm2022/invoice/entities/invoice-payer.entity.mjs +22 -0
  15. package/dist/esm2022/invoice/entities/invoice-pix.entity.mjs +19 -0
  16. package/dist/esm2022/invoice/entities/invoice.entity.mjs +36 -11
  17. package/dist/esm2022/invoice/enums/index.mjs +2 -2
  18. package/dist/esm2022/invoice/enums/invoices-status.enum.mjs +15 -15
  19. package/dist/esm2022/invoice/interfaces/i-invoice-bank-slip.mjs +2 -0
  20. package/dist/esm2022/invoice/interfaces/i-invoice-credit-card.mjs +2 -0
  21. package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +1 -1
  22. package/dist/esm2022/invoice/interfaces/i-invoice-log.mjs +2 -0
  23. package/dist/esm2022/invoice/interfaces/i-invoice-payer.mjs +2 -0
  24. package/dist/esm2022/invoice/interfaces/i-invoice-pix.mjs +2 -0
  25. package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
  26. package/dist/esm2022/invoice/interfaces/index.mjs +1 -1
  27. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  28. package/dist/fesm2022/cecon-interfaces.mjs +154 -51
  29. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  30. package/dist/general/enums/bank-slip-status.enum.d.ts +7 -0
  31. package/dist/general/enums/bank-slip-status.enum.js +11 -0
  32. package/dist/general/enums/index.d.ts +1 -0
  33. package/dist/general/enums/index.js +3 -1
  34. package/dist/general/enums/payment-type.enum.d.ts +2 -1
  35. package/dist/general/enums/payment-type.enum.js +1 -0
  36. package/dist/invoice/entities/index.d.ts +5 -1
  37. package/dist/invoice/entities/index.js +11 -3
  38. package/dist/invoice/entities/invoice-bank-slip.entity.d.ts +11 -0
  39. package/dist/invoice/entities/invoice-bank-slip.entity.js +27 -0
  40. package/dist/invoice/entities/invoice-credit-card.entity.d.ts +10 -0
  41. package/dist/invoice/entities/invoice-credit-card.entity.js +25 -0
  42. package/dist/invoice/entities/invoice-item.entity.d.ts +0 -5
  43. package/dist/invoice/entities/invoice-item.entity.js +2 -7
  44. package/dist/invoice/entities/invoice-log.entity.d.ts +8 -0
  45. package/dist/invoice/entities/invoice-log.entity.js +23 -0
  46. package/dist/invoice/entities/invoice-payer.entity.d.ts +11 -0
  47. package/dist/invoice/entities/invoice-payer.entity.js +26 -0
  48. package/dist/invoice/entities/invoice-pix.entity.d.ts +8 -0
  49. package/dist/invoice/entities/invoice-pix.entity.js +23 -0
  50. package/dist/invoice/entities/invoice.entity.d.ts +36 -8
  51. package/dist/invoice/entities/invoice.entity.js +34 -9
  52. package/dist/invoice/enums/index.d.ts +1 -1
  53. package/dist/invoice/enums/index.js +2 -2
  54. package/dist/invoice/enums/invoices-status.enum.d.ts +1 -1
  55. package/dist/invoice/enums/invoices-status.enum.js +15 -15
  56. package/dist/invoice/interfaces/i-invoice-bank-slip.d.ts +10 -0
  57. package/dist/invoice/interfaces/i-invoice-credit-card.d.ts +8 -0
  58. package/dist/invoice/interfaces/i-invoice-credit-card.js +2 -0
  59. package/dist/invoice/interfaces/i-invoice-item.d.ts +0 -5
  60. package/dist/invoice/interfaces/i-invoice-log.d.ts +6 -0
  61. package/dist/invoice/interfaces/i-invoice-log.js +2 -0
  62. package/dist/invoice/interfaces/i-invoice-payer.d.ts +9 -0
  63. package/dist/invoice/interfaces/i-invoice-payer.js +2 -0
  64. package/dist/invoice/interfaces/i-invoice-pix.d.ts +6 -0
  65. package/dist/invoice/interfaces/i-invoice-pix.js +2 -0
  66. package/dist/invoice/interfaces/i-invoice.d.ts +38 -10
  67. package/dist/invoice/interfaces/index.d.ts +5 -1
  68. package/dist/package.json +1 -1
  69. package/dist/subscription/interfaces/i-subscription.d.ts +1 -1
  70. package/package.json +1 -1
  71. package/dist/esm2022/invoice/entities/invoice-payment-method.entity.mjs +0 -31
  72. package/dist/esm2022/invoice/interfaces/i-invoice-payment-method.mjs +0 -2
  73. package/dist/invoice/entities/invoice-payment-method.entity.d.ts +0 -20
  74. package/dist/invoice/entities/invoice-payment-method.entity.js +0 -35
  75. package/dist/invoice/interfaces/i-invoice-payment-method.d.ts +0 -18
  76. /package/dist/invoice/interfaces/{i-invoice-payment-method.js → i-invoice-bank-slip.js} +0 -0
@@ -283,6 +283,7 @@ var PaymentTypeEnum;
283
283
  PaymentTypeEnum["VOUCHER"] = "VOUCHER";
284
284
  PaymentTypeEnum["BILLING"] = "BILLING";
285
285
  PaymentTypeEnum["BANK_SLIP"] = "BANK_SLIP";
286
+ PaymentTypeEnum["NONE"] = "NONE";
286
287
  })(PaymentTypeEnum || (PaymentTypeEnum = {}));
287
288
 
288
289
  class PaymentMethodOptionEntity {
@@ -520,6 +521,15 @@ class SponsorshipValueEntity {
520
521
  }
521
522
  }
522
523
 
524
+ var EBankSlipStatus;
525
+ (function (EBankSlipStatus) {
526
+ EBankSlipStatus["REGISTERED"] = "registered";
527
+ EBankSlipStatus["PAID"] = "paid";
528
+ EBankSlipStatus["PENDING"] = "pending";
529
+ EBankSlipStatus["CANCELED"] = "canceled";
530
+ EBankSlipStatus["EXPIRED"] = "expired";
531
+ })(EBankSlipStatus || (EBankSlipStatus = {}));
532
+
523
533
  var BooleanStringEnum;
524
534
  (function (BooleanStringEnum) {
525
535
  BooleanStringEnum["FALSE"] = "false";
@@ -766,18 +776,20 @@ class NatiGoEntity {
766
776
  }
767
777
 
768
778
  class RabbitEntity {
769
- // #region Properties (18)
779
+ // #region Properties (22)
770
780
  address = new AddressEntity();
771
781
  api = 'http://localhost:8089';
772
782
  cityCode = '';
773
- ufCode = null;
774
- enviroment = 'production';
775
783
  doc = '';
784
+ emitirL = true;
785
+ enviroment = 'production';
776
786
  ie = '';
777
787
  ignoreCpfCnpj = false;
778
788
  model = EFiscalDocModelCode.NFCE;
779
789
  name = '';
790
+ nfNumber = 1;
780
791
  onlyCash = false;
792
+ controlPix = true;
781
793
  pdvId = null;
782
794
  percentage = 50;
783
795
  regime = 1;
@@ -785,9 +797,10 @@ class RabbitEntity {
785
797
  signature = '';
786
798
  syncAt = null;
787
799
  type = EAppMode.RABBIT;
800
+ ufCode = null;
788
801
  updatedAt = new Date();
789
802
  version = '1.0.0';
790
- // #endregion Properties (18)
803
+ // #endregion Properties (22)
791
804
  // #region Constructors (1)
792
805
  constructor(data) {
793
806
  if (data) {
@@ -1100,17 +1113,55 @@ class InviteEntity {
1100
1113
  }
1101
1114
  }
1102
1115
 
1116
+ class InvoiceBankSlipEntity {
1117
+ // #region Properties (7)
1118
+ bankSlipBank = 0;
1119
+ bankSlipErrorCode = '';
1120
+ bankSlipErrorMessage = '';
1121
+ bankSlipStatus = EBankSlipStatus.PENDING;
1122
+ barcode = '';
1123
+ barcodeData = '';
1124
+ digitableLine = '';
1125
+ // #endregion Properties (7)
1126
+ // #region Constructors (1)
1127
+ constructor(data) {
1128
+ if (data) {
1129
+ for (let key in data) {
1130
+ if (data.hasOwnProperty(key) && key in this) {
1131
+ this[key] = data[key];
1132
+ }
1133
+ }
1134
+ }
1135
+ }
1136
+ }
1137
+
1138
+ class InvoiceCreditCardEntity {
1139
+ // #region Properties (6)
1140
+ bin = '';
1141
+ brand = '';
1142
+ capturedAt = '';
1143
+ last4 = '';
1144
+ tid = '';
1145
+ transaction = '';
1146
+ // #endregion Properties (6)
1147
+ // #region Constructors (1)
1148
+ constructor(data) {
1149
+ if (data) {
1150
+ for (let key in data) {
1151
+ if (data.hasOwnProperty(key) && key in this) {
1152
+ this[key] = data[key];
1153
+ }
1154
+ }
1155
+ }
1156
+ }
1157
+ }
1158
+
1103
1159
  class InvoiceItemEntity {
1104
- // #region Properties (8)
1105
- addition = 0;
1160
+ // #region Properties (3)
1106
1161
  description = '';
1107
- discount = 0;
1108
- id = '';
1109
1162
  quantity = 1;
1110
- sku = '';
1111
- totalPrice = 0;
1112
1163
  unitPrice = 0;
1113
- // #endregion Properties (8)
1164
+ // #endregion Properties (3)
1114
1165
  // #region Constructors (1)
1115
1166
  constructor(data) {
1116
1167
  if (data) {
@@ -1123,24 +1174,53 @@ class InvoiceItemEntity {
1123
1174
  }
1124
1175
  }
1125
1176
 
1126
- class InvoicePaymentMethodEntity {
1127
- // #region Properties (15)
1128
- amount = 0;
1129
- brand = '';
1130
- createdAt = new Date();
1131
- currency = '';
1132
- expMonth = 0;
1133
- expYear = 0;
1177
+ class InvoiceLogEntity {
1178
+ // #region Properties (4)
1179
+ createdAt = '';
1180
+ description = '';
1134
1181
  id = '';
1135
- last4 = '';
1182
+ notes = '';
1183
+ // #endregion Properties (4)
1184
+ // #region Constructors (1)
1185
+ constructor(data) {
1186
+ if (data) {
1187
+ for (let key in data) {
1188
+ if (data.hasOwnProperty(key) && key in this) {
1189
+ this[key] = data[key];
1190
+ }
1191
+ }
1192
+ }
1193
+ }
1194
+ }
1195
+
1196
+ class InvoicePayerEntity {
1197
+ // #region Properties (6)
1198
+ address = new AddressEntity();
1199
+ doc = '';
1200
+ docType = DocTypeEnum.CNPJ;
1201
+ email = '';
1136
1202
  name = '';
1137
- pixQrCode = '';
1138
- pixUrl = '';
1139
- status = PaymentStatusEnum.PENDING;
1140
- transactionId = '';
1141
- type = PaymentTypeEnum.CREDIT_CARD;
1142
- updatedAt = new Date();
1143
- // #endregion Properties (15)
1203
+ phoneNumber = null;
1204
+ // #endregion Properties (6)
1205
+ // #region Constructors (1)
1206
+ constructor(data) {
1207
+ if (data) {
1208
+ for (let key in data) {
1209
+ if (data.hasOwnProperty(key) && key in this) {
1210
+ this[key] = data[key];
1211
+ }
1212
+ }
1213
+ }
1214
+ }
1215
+ }
1216
+
1217
+ class InvoicePixEntity {
1218
+ // #region Properties (4)
1219
+ qrCode = '';
1220
+ qrCodeImage = '';
1221
+ qrCodeText = '';
1222
+ status = '';
1223
+ // #endregion Properties (4)
1144
1224
  // #region Constructors (1)
1145
1225
  constructor(data) {
1146
1226
  if (data) {
@@ -1153,45 +1233,68 @@ class InvoicePaymentMethodEntity {
1153
1233
  }
1154
1234
  }
1155
1235
 
1156
- var InvoiceStatusEnum;
1157
- (function (InvoiceStatusEnum) {
1158
- InvoiceStatusEnum["PENDING"] = "PENDING";
1159
- InvoiceStatusEnum["PAID"] = "PAID";
1160
- InvoiceStatusEnum["CANCELED"] = "CANCELED";
1161
- InvoiceStatusEnum["IN_ANALYSIS"] = "IN_ANALYSIS";
1162
- InvoiceStatusEnum["DRAFT"] = "DRAFT";
1163
- InvoiceStatusEnum["PARTIALLY_PAID"] = "PARTIALLY_PAID";
1164
- InvoiceStatusEnum["REFUNDED"] = "REFUNDED";
1165
- InvoiceStatusEnum["EXPIRED"] = "EXPIRED";
1166
- InvoiceStatusEnum["IN_PROTEST"] = "IN_PROTEST";
1167
- InvoiceStatusEnum["CHARGEBACK"] = "CHARGEBACK";
1168
- InvoiceStatusEnum["EXTERNALLY_PAID"] = "EXTERNALLY_PAID";
1169
- })(InvoiceStatusEnum || (InvoiceStatusEnum = {}));
1236
+ var EInvoiceStatus;
1237
+ (function (EInvoiceStatus) {
1238
+ EInvoiceStatus["PENDING"] = "PENDING";
1239
+ EInvoiceStatus["PAID"] = "PAID";
1240
+ EInvoiceStatus["CANCELED"] = "CANCELED";
1241
+ EInvoiceStatus["IN_ANALYSIS"] = "IN_ANALYSIS";
1242
+ EInvoiceStatus["DRAFT"] = "DRAFT";
1243
+ EInvoiceStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
1244
+ EInvoiceStatus["REFUNDED"] = "REFUNDED";
1245
+ EInvoiceStatus["EXPIRED"] = "EXPIRED";
1246
+ EInvoiceStatus["IN_PROTEST"] = "IN_PROTEST";
1247
+ EInvoiceStatus["CHARGEBACK"] = "CHARGEBACK";
1248
+ EInvoiceStatus["EXTERNALLY_PAID"] = "EXTERNALLY_PAID";
1249
+ })(EInvoiceStatus || (EInvoiceStatus = {}));
1170
1250
 
1171
1251
  class InvoiceEntity {
1172
- // #region Properties (21)
1252
+ // #region Properties (44)
1173
1253
  addition = 0;
1254
+ bankSlip = null;
1255
+ bankSlipExtraDue = 3;
1256
+ ccEmails = [];
1174
1257
  companyId = '';
1175
1258
  containerId = '';
1176
1259
  createdAt = new Date();
1260
+ creditCard = null;
1261
+ currency = 'BRL';
1177
1262
  discount = 0;
1178
1263
  dueDateAt = new Date(Date.now() + 3 * 24 * 60 * 60 * 1000);
1264
+ email = '';
1179
1265
  ensureDueOnWorkday = true;
1180
- expiresIn = 5;
1266
+ expiresIn = 3;
1267
+ externalInvoiceId = '';
1268
+ externalInvoiceUrl = '';
1269
+ fineForlatePayment = 0;
1181
1270
  id = '';
1182
1271
  items = [];
1272
+ log = [];
1183
1273
  notes = '';
1274
+ notificationUrl = '';
1275
+ orderId = '';
1184
1276
  paidAt = new Date();
1185
- paymentMethod = [];
1186
- providerInvoiceNumber = '';
1187
- providerInvoiceUrl = '';
1188
- status = InvoiceStatusEnum.PENDING;
1277
+ partnerId = '';
1278
+ password = null;
1279
+ payer = new InvoicePayerEntity();
1280
+ paymentMethod = PaymentTypeEnum.NONE;
1281
+ paymentProvider = null;
1282
+ phoneNumberNotification = null;
1283
+ pix = null;
1284
+ returnExpiredUrl = '';
1285
+ returnUrl = '';
1286
+ secureId = '';
1287
+ secureUrl = '';
1288
+ status = EInvoiceStatus.PENDING;
1189
1289
  subscriptionId = '';
1190
1290
  subtotal = 0;
1191
- taxes = 0;
1192
- total = 0;
1291
+ totalAmount = 0;
1292
+ totalFee = 0;
1293
+ totalOverPaid = 0;
1294
+ totalPaid = 0;
1295
+ totalRefunded = 0;
1193
1296
  updatedAt = new Date();
1194
- // #endregion Properties (21)
1297
+ // #endregion Properties (44)
1195
1298
  // #region Constructors (1)
1196
1299
  constructor(data) {
1197
1300
  if (data) {
@@ -2859,5 +2962,5 @@ class VoucherEntity {
2859
2962
  * Generated bundle index. Do not edit.
2860
2963
  */
2861
2964
 
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, 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 };
2965
+ export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, EAppCategory, EAppHeaderType, EAppMode, EAppType, EBankSlipStatus, ECampaignStatus, ECompanyKeys, ECompanyMessageType, EDiscountType, EFiscalDocModelCode, EInstallationStatus, EInvoiceStatus, EPlanFeatureType, EPlanIdentifier, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceBankSlipEntity, InvoiceCreditCardEntity, InvoiceEntity, InvoiceItemEntity, InvoiceLogEntity, InvoicePayerEntity, InvoicePixEntity, 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 };
2863
2966
  //# sourceMappingURL=cecon-interfaces.mjs.map