cecon-interfaces 1.0.85 → 1.0.89
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/general/entities/custom-variable.entity.mjs +17 -0
- package/dist/esm2022/general/entities/index.mjs +2 -1
- package/dist/esm2022/general/interfaces/i-custom-variable.mjs +3 -0
- package/dist/esm2022/general/interfaces/index.mjs +1 -1
- package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +3 -3
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +12 -7
- package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +1 -1
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
- package/dist/esm2022/iugu/entities/index.mjs +2 -1
- package/dist/esm2022/iugu/entities/invoice.entity.mjs +129 -0
- package/dist/esm2022/iugu/interfaces/i-invoice.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/index.mjs +1 -1
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/subscription/entities/index.mjs +3 -2
- package/dist/esm2022/subscription/entities/subscription-item.entity.mjs +20 -0
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +6 -3
- package/dist/esm2022/subscription/interfaces/i-subscription-item.mjs +2 -0
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/subscription/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +185 -11
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/custom-variable.entity.d.ts +5 -0
- package/dist/general/entities/custom-variable.entity.js +21 -0
- package/dist/general/entities/index.d.ts +1 -0
- package/dist/general/entities/index.js +3 -1
- package/dist/general/interfaces/i-custom-variable.d.ts +4 -0
- package/dist/general/interfaces/i-custom-variable.js +3 -0
- package/dist/general/interfaces/index.d.ts +1 -0
- package/dist/invoice/entities/invoice-item.entity.d.ts +2 -2
- package/dist/invoice/entities/invoice-item.entity.js +2 -2
- package/dist/invoice/entities/invoice.entity.d.ts +8 -3
- package/dist/invoice/entities/invoice.entity.js +11 -6
- package/dist/invoice/interfaces/i-invoice-item.d.ts +2 -2
- package/dist/invoice/interfaces/i-invoice.d.ts +11 -6
- package/dist/iugu/entities/index.d.ts +1 -0
- package/dist/iugu/entities/index.js +3 -1
- package/dist/iugu/entities/invoice.entity.d.ts +118 -0
- package/dist/iugu/entities/invoice.entity.js +82 -0
- package/dist/iugu/interfaces/i-invoice.d.ts +116 -0
- package/dist/iugu/interfaces/i-invoice.js +2 -0
- package/dist/iugu/interfaces/index.d.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/plan/interfaces/i-plan.d.ts +5 -5
- package/dist/subscription/entities/index.d.ts +2 -1
- package/dist/subscription/entities/index.js +4 -2
- package/dist/subscription/entities/subscription-item.entity.d.ts +9 -0
- package/dist/subscription/entities/subscription-item.entity.js +24 -0
- package/dist/subscription/entities/subscription.entity.d.ts +5 -1
- package/dist/subscription/entities/subscription.entity.js +5 -2
- package/dist/subscription/interfaces/i-subscription-item.d.ts +7 -0
- package/dist/subscription/interfaces/i-subscription-item.js +2 -0
- package/dist/subscription/interfaces/i-subscription.d.ts +5 -1
- package/dist/subscription/interfaces/index.d.ts +2 -1
- package/package.json +1 -1
@@ -78,6 +78,23 @@ class CarouselImageEntity {
|
|
78
78
|
}
|
79
79
|
}
|
80
80
|
|
81
|
+
class CustomVariableEntity {
|
82
|
+
// #region Properties (2)
|
83
|
+
name = "";
|
84
|
+
value = "";
|
85
|
+
// #endregion Properties (2)
|
86
|
+
// #region Constructors (1)
|
87
|
+
constructor(data) {
|
88
|
+
if (data) {
|
89
|
+
for (let key in data) {
|
90
|
+
if (data.hasOwnProperty(key) && key in this) {
|
91
|
+
this[key] = data[key];
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
81
98
|
class DeliveryAreaEntity {
|
82
99
|
// #region Properties (8)
|
83
100
|
deliveryFee = 0;
|
@@ -835,12 +852,12 @@ class InviteEntity {
|
|
835
852
|
|
836
853
|
class InvoiceItemEntity {
|
837
854
|
// #region Properties (8)
|
855
|
+
addition = 0;
|
838
856
|
description = '';
|
839
|
-
|
857
|
+
discount = 0;
|
840
858
|
id = '';
|
841
859
|
quantity = 1;
|
842
860
|
sku = '';
|
843
|
-
taxes = 0;
|
844
861
|
totalPrice = 0;
|
845
862
|
unitPrice = 0;
|
846
863
|
// #endregion Properties (8)
|
@@ -901,24 +918,29 @@ var InvoiceStatusEnum;
|
|
901
918
|
})(InvoiceStatusEnum || (InvoiceStatusEnum = {}));
|
902
919
|
|
903
920
|
class InvoiceEntity {
|
904
|
-
// #region Properties (
|
921
|
+
// #region Properties (21)
|
922
|
+
addition = 0;
|
905
923
|
companyId = '';
|
906
924
|
containerId = '';
|
907
925
|
createdAt = new Date();
|
908
|
-
|
909
|
-
dueDateAt = new Date();
|
926
|
+
discount = 0;
|
927
|
+
dueDateAt = new Date(Date.now() + 3 * 24 * 60 * 60 * 1000);
|
928
|
+
ensureDueOnWorkday = true;
|
929
|
+
expiresIn = 5;
|
910
930
|
id = '';
|
911
|
-
invoiceNumber = '';
|
912
931
|
items = [];
|
913
932
|
notes = '';
|
914
|
-
|
933
|
+
paidAt = new Date();
|
915
934
|
paymentMethod = [];
|
935
|
+
providerInvoiceNumber = '';
|
936
|
+
providerInvoiceUrl = '';
|
916
937
|
status = InvoiceStatusEnum.PENDING;
|
938
|
+
subscriptionId = '';
|
917
939
|
subtotal = 0;
|
918
940
|
taxes = 0;
|
919
941
|
total = 0;
|
920
942
|
updatedAt = new Date();
|
921
|
-
// #endregion Properties (
|
943
|
+
// #endregion Properties (21)
|
922
944
|
// #region Constructors (1)
|
923
945
|
constructor(data) {
|
924
946
|
if (data) {
|
@@ -1018,6 +1040,135 @@ class IuguCustomerEntity {
|
|
1018
1040
|
}
|
1019
1041
|
}
|
1020
1042
|
|
1043
|
+
class IuguInvoiceEntity {
|
1044
|
+
// #region Properties (114)
|
1045
|
+
accountId = "";
|
1046
|
+
accountName = "";
|
1047
|
+
advanceFee;
|
1048
|
+
advanceFeeCents;
|
1049
|
+
authorizedAt;
|
1050
|
+
authorizedAtIso;
|
1051
|
+
bankAccountBranch = "";
|
1052
|
+
bankAccountNumber = "";
|
1053
|
+
bankSlip = {};
|
1054
|
+
bankSlipExtraDue = 0;
|
1055
|
+
canceledAt;
|
1056
|
+
canceledAtIso;
|
1057
|
+
ccEmails;
|
1058
|
+
chargebackAt;
|
1059
|
+
chargebackAtIso;
|
1060
|
+
commission = "";
|
1061
|
+
commissionCents;
|
1062
|
+
createdAt = "";
|
1063
|
+
createdAtIso = "";
|
1064
|
+
creditCardBin;
|
1065
|
+
creditCardBrand;
|
1066
|
+
creditCardCapturedAt;
|
1067
|
+
creditCardLast4;
|
1068
|
+
creditCardTid;
|
1069
|
+
creditCardTransaction = "";
|
1070
|
+
currency = "";
|
1071
|
+
customVariables = [];
|
1072
|
+
customerId;
|
1073
|
+
customerName;
|
1074
|
+
customerRef;
|
1075
|
+
discount;
|
1076
|
+
discountCents = 0;
|
1077
|
+
doublePaymentId;
|
1078
|
+
dueDate = "";
|
1079
|
+
duplicatedInvoiceId;
|
1080
|
+
earlyPaymentDiscount = false;
|
1081
|
+
earlyPaymentDiscounts = [];
|
1082
|
+
email = "";
|
1083
|
+
estimatedAdvanceFee;
|
1084
|
+
expiredAt;
|
1085
|
+
expiredAtIso;
|
1086
|
+
externalPaymentDescription;
|
1087
|
+
externalPaymentId;
|
1088
|
+
externalReference;
|
1089
|
+
financialReturnDate;
|
1090
|
+
financialReturnDates;
|
1091
|
+
finesOnOccurrenceDay = "";
|
1092
|
+
finesOnOccurrenceDayCents = 0;
|
1093
|
+
id = "";
|
1094
|
+
ignoreCanceledEmail = false;
|
1095
|
+
ignoreDueEmail = false;
|
1096
|
+
installments;
|
1097
|
+
interest;
|
1098
|
+
items = [];
|
1099
|
+
itemsTotalCents = 0;
|
1100
|
+
latePaymentFine;
|
1101
|
+
latePaymentFineCents = 0;
|
1102
|
+
logs = [];
|
1103
|
+
maxInstallmentsValue;
|
1104
|
+
notificationUrl = "";
|
1105
|
+
occurrenceDate;
|
1106
|
+
orderId;
|
1107
|
+
originalPaymentId;
|
1108
|
+
overpaidCents;
|
1109
|
+
paid = "";
|
1110
|
+
paidAt;
|
1111
|
+
paidCents;
|
1112
|
+
payableWith = "";
|
1113
|
+
payerAddressCity = "";
|
1114
|
+
payerAddressComplement;
|
1115
|
+
payerAddressCountry = "";
|
1116
|
+
payerAddressDistrict = "";
|
1117
|
+
payerAddressNumber = "";
|
1118
|
+
payerAddressState = "";
|
1119
|
+
payerAddressStreet = "";
|
1120
|
+
payerAddressZipCode = "";
|
1121
|
+
payerCpfCnpj = "";
|
1122
|
+
payerEmail;
|
1123
|
+
payerName = "";
|
1124
|
+
payerPhone = "";
|
1125
|
+
payerPhonePrefix = "";
|
1126
|
+
paymentMethod;
|
1127
|
+
perDayInterest = false;
|
1128
|
+
perDayInterestCents = 0;
|
1129
|
+
perDayInterestValue;
|
1130
|
+
pix = {};
|
1131
|
+
protestedAt;
|
1132
|
+
protestedAtIso;
|
1133
|
+
refundable;
|
1134
|
+
refundedAt;
|
1135
|
+
refundedAtIso;
|
1136
|
+
refundedCents = 0;
|
1137
|
+
remainingCapturedCents = 0;
|
1138
|
+
returnUrl = "";
|
1139
|
+
secureId = "";
|
1140
|
+
secureUrl = "";
|
1141
|
+
splitId;
|
1142
|
+
splitRules;
|
1143
|
+
status = "";
|
1144
|
+
taxCents = 0;
|
1145
|
+
taxesPaid = "";
|
1146
|
+
taxesPaidCents;
|
1147
|
+
total = "";
|
1148
|
+
totalCents = 0;
|
1149
|
+
totalOnOccurrenceDay = "";
|
1150
|
+
totalOnOccurrenceDayCents = 0;
|
1151
|
+
totalOverpaid = "";
|
1152
|
+
totalPaid = "";
|
1153
|
+
totalPaidCents = 0;
|
1154
|
+
totalRefunded = "";
|
1155
|
+
transactionNumber = 0;
|
1156
|
+
updatedAt = "";
|
1157
|
+
userId = "";
|
1158
|
+
variables = [];
|
1159
|
+
// #endregion Properties (114)
|
1160
|
+
// #region Constructors (1)
|
1161
|
+
constructor(data) {
|
1162
|
+
if (data) {
|
1163
|
+
for (let key in data) {
|
1164
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1165
|
+
this[key] = data[key];
|
1166
|
+
}
|
1167
|
+
}
|
1168
|
+
}
|
1169
|
+
}
|
1170
|
+
}
|
1171
|
+
|
1021
1172
|
var IuguAutoAdvanceEnum;
|
1022
1173
|
(function (IuguAutoAdvanceEnum) {
|
1023
1174
|
IuguAutoAdvanceEnum["DAYS_AFTER_PAYMENT"] = "days_after_payment";
|
@@ -2089,6 +2240,26 @@ class PurchaseEntity extends OrderEntity {
|
|
2089
2240
|
}
|
2090
2241
|
}
|
2091
2242
|
|
2243
|
+
class SubscriptionItemEntity {
|
2244
|
+
// #region Properties (5)
|
2245
|
+
description = "";
|
2246
|
+
quantity = 1;
|
2247
|
+
recurrent = true;
|
2248
|
+
totalPrice = 0;
|
2249
|
+
unitPrice = 0;
|
2250
|
+
// #endregion Properties (5)
|
2251
|
+
// #region Constructors (1)
|
2252
|
+
constructor(data) {
|
2253
|
+
if (data) {
|
2254
|
+
for (let key in data) {
|
2255
|
+
if (data.hasOwnProperty(key) && key in this) {
|
2256
|
+
this[key] = data[key];
|
2257
|
+
}
|
2258
|
+
}
|
2259
|
+
}
|
2260
|
+
}
|
2261
|
+
}
|
2262
|
+
|
2092
2263
|
class SubscriptionLogEntity {
|
2093
2264
|
// #region Properties (4)
|
2094
2265
|
createdAt = new Date();
|
@@ -2124,16 +2295,19 @@ var SubscriptionStatusEnum;
|
|
2124
2295
|
})(SubscriptionStatusEnum || (SubscriptionStatusEnum = {}));
|
2125
2296
|
|
2126
2297
|
class SubscriptionEntity {
|
2127
|
-
// #region Properties (
|
2298
|
+
// #region Properties (22)
|
2128
2299
|
cancellationReason = "";
|
2129
2300
|
companyId = "";
|
2301
|
+
companyName = "";
|
2130
2302
|
containerId = "";
|
2131
2303
|
createdAt = new Date();
|
2304
|
+
customVariable = [];
|
2132
2305
|
expiresAt = new Date();
|
2133
2306
|
features = [];
|
2134
2307
|
id = "";
|
2135
2308
|
interval = 0;
|
2136
2309
|
intervalType = IntervalTypeEnum.MONTHS;
|
2310
|
+
items = [];
|
2137
2311
|
logs = [];
|
2138
2312
|
notes = "";
|
2139
2313
|
partnerId = "";
|
@@ -2144,7 +2318,7 @@ class SubscriptionEntity {
|
|
2144
2318
|
startsAt = new Date();
|
2145
2319
|
status = SubscriptionStatusEnum.PENDING;
|
2146
2320
|
updatedAt = new Date();
|
2147
|
-
// #endregion Properties (
|
2321
|
+
// #endregion Properties (22)
|
2148
2322
|
// #region Constructors (1)
|
2149
2323
|
constructor(data) {
|
2150
2324
|
if (data) {
|
@@ -2188,5 +2362,5 @@ class TokenEntity {
|
|
2188
2362
|
* Generated bundle index. Do not edit.
|
2189
2363
|
*/
|
2190
2364
|
|
2191
|
-
export { AccountInformationsEntity, AddressEntity, AppCategoryEnum, AppEntity, AppHeaderTypeEnum, AppInfoEntity, AppModeEnum, AppTypeEnum, BaseEntity, BooleanStringEnum, CarouselImageEntity, CompanyEntity, CompanyKeysEnum, CompanyMessageTypeEnum, ContainerEntity, CoordsEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, 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, PlanIdentifierEnum, PlatfomrEnum, PurchaseEntity, RatingEntity, SponsorshipValuesEntity, SubscriptionEntity, SubscriptionLogEntity
|
2365
|
+
export { AccountInformationsEntity, AddressEntity, AppCategoryEnum, AppEntity, AppHeaderTypeEnum, AppInfoEntity, AppModeEnum, AppTypeEnum, BaseEntity, BooleanStringEnum, CarouselImageEntity, CompanyEntity, CompanyKeysEnum, CompanyMessageTypeEnum, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, IuguInvoiceEntity, 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, PlanIdentifierEnum, PlatfomrEnum, PurchaseEntity, RatingEntity, SponsorshipValuesEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity, SubscriptionStatusEnum, TokenEntity };
|
2192
2366
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|