cecon-interfaces
Version:
Interfaces de Projetos Cecon
1,826 lines (1,722 loc) • 301 kB
JavaScript
var ENineNineCurrency;
(function (ENineNineCurrency) {
ENineNineCurrency["BRL"] = "R$";
})(ENineNineCurrency || (ENineNineCurrency = {}));
var ENineNinePackageType;
(function (ENineNinePackageType) {
ENineNinePackageType["GROCERIES"] = "groceries";
ENineNinePackageType["FOOD"] = "food";
ENineNinePackageType["DOCUMENTS"] = "documents";
ENineNinePackageType["APPAREL"] = "apparel";
ENineNinePackageType["MEDICATION"] = "medication";
ENineNinePackageType["ELECTRONICS"] = "Electronics";
ENineNinePackageType["OTHER"] = "other";
})(ENineNinePackageType || (ENineNinePackageType = {}));
var ENineNinePackageWeight;
(function (ENineNinePackageWeight) {
ENineNinePackageWeight["UP_TO_1KG"] = "1kg";
ENineNinePackageWeight["UP_TO_5KG"] = "5kg";
ENineNinePackageWeight["UP_TO_10KG"] = "10kg";
})(ENineNinePackageWeight || (ENineNinePackageWeight = {}));
var ENineNineVehicleType;
(function (ENineNineVehicleType) {
ENineNineVehicleType["CAR"] = "entrega_car";
ENineNineVehicleType["MOTOCICLE"] = "entrega_moto";
})(ENineNineVehicleType || (ENineNineVehicleType = {}));
class CoordsEntity {
// #region Properties (2)
latitude = 0;
longitude = 0;
// #endregion Properties (2)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class AddressEntity {
// #region Properties (15)
city = '';
complement = '';
coords = new CoordsEntity();
country = '';
deliveryArea = null;
formattedAddress = '';
id = '';
isDefault = false;
name = '';
neighborhood = '';
postalCode = '';
reference = '';
state = '';
streetName = '';
streetNumber = '';
mobyoDeliveryFee = null;
mobyoDeliveryFeeOnline = null;
// #endregion Properties (15)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
// src/models/base.entity.ts
class BaseEntity {
// #region Properties (6)
active = true;
companyId = '';
containerId = '';
createdAt = new Date();
id = '';
updatedAt = new Date();
// #endregion Properties (6)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class CarouselImageEntity {
// #region Properties (3)
caption = '';
id = '';
url = '';
// #endregion Properties (3)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class CustomVariableEntity {
// #region Properties (2)
name = "";
value = "";
// #endregion Properties (2)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class DeliveryAreaEntity {
// #region Properties (8)
deliveryFee = 0;
id = '';
latlngs = [];
maxTime = 0;
minTime = 0;
minimumOrderValue = 0;
name = '';
sequence = 0;
// #endregion Properties (8)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class DeliveryAreaFixedEntity {
// #region Properties (5)
active = false;
deliveryFee = 0;
maxTime = 0;
minTime = 0;
minimumOrderValue = 0;
// #endregion Properties (5)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
// src/models/base.entity.ts
class DesenfilaInfoEntity {
// #region Properties (6)
merchantId = '';
containerId = '';
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
var EFcmSkill;
(function (EFcmSkill) {
EFcmSkill["PREVIEW_NATI_V1_ITEMS"] = "PREVIEW_NATI_V1_ITEMS";
EFcmSkill["REQUEST_NATI_V1_ITEMS"] = "REQUEST_NATI_V1_ITEMS";
EFcmSkill["RECEIVED_NATI_V1_ITEMS"] = "RECEIVED_NATI_V1_ITEMS";
EFcmSkill["BLOCK_TAB"] = "BLOCK_TAB";
EFcmSkill["UNBLOCK_TAB"] = "UNBLOCK_TAB";
EFcmSkill["RECEIVED_DESENFILA_PAYMENT"] = "RECEIVED_DESENFILA_PAYMENT";
EFcmSkill["ITEMS_TO_TAB"] = "ITEMS_TO_TAB";
})(EFcmSkill || (EFcmSkill = {}));
var EAmountMode;
(function (EAmountMode) {
EAmountMode["FIXED"] = "fixed";
EAmountMode["PERCENTAGE"] = "percentage";
})(EAmountMode || (EAmountMode = {}));
var EBankSlipStatus;
(function (EBankSlipStatus) {
EBankSlipStatus["REGISTERED"] = "registered";
EBankSlipStatus["PAID"] = "paid";
EBankSlipStatus["PENDING"] = "pending";
EBankSlipStatus["CANCELED"] = "canceled";
EBankSlipStatus["EXPIRED"] = "expired";
})(EBankSlipStatus || (EBankSlipStatus = {}));
var EBooleanString;
(function (EBooleanString) {
EBooleanString["FALSE"] = "false";
EBooleanString["TRUE"] = "true";
})(EBooleanString || (EBooleanString = {}));
var ECollectionsTypes;
(function (ECollectionsTypes) {
ECollectionsTypes["App"] = "app";
ECollectionsTypes["Billing"] = "billing";
ECollectionsTypes["BillingOrder"] = "billing-order";
ECollectionsTypes["Clients"] = "clients";
ECollectionsTypes["Company"] = "company";
ECollectionsTypes["Container"] = "container";
ECollectionsTypes["Customer"] = "customer";
ECollectionsTypes["CustomerMember"] = "customer-member";
ECollectionsTypes["DesenfilaMerchant"] = "desenfila-merchant";
ECollectionsTypes["DesenfilaOrder"] = "desenfila-order";
ECollectionsTypes["DeveloperApps"] = "developer-apps";
ECollectionsTypes["DeveloperMembers"] = "developer-members";
ECollectionsTypes["Developers"] = "developers";
ECollectionsTypes["Device"] = "device";
ECollectionsTypes["Evolution"] = "evolution";
ECollectionsTypes["Feature"] = "feature";
ECollectionsTypes["Installation"] = "installation";
ECollectionsTypes["Invite"] = "invite";
ECollectionsTypes["Invoice"] = "invoice";
ECollectionsTypes["Lead"] = "lead";
ECollectionsTypes["Master"] = "master";
ECollectionsTypes["Member"] = "member";
ECollectionsTypes["MemberAccess"] = "member-access";
ECollectionsTypes["Mobyo"] = "mobyo";
ECollectionsTypes["Order"] = "order";
ECollectionsTypes["Partner"] = "partner";
ECollectionsTypes["Plan"] = "plan";
ECollectionsTypes["ProductCompany"] = "product-company";
ECollectionsTypes["ProductContainer"] = "product-container";
ECollectionsTypes["ProductGlobal"] = "product-global";
ECollectionsTypes["Purchases"] = "purchases";
ECollectionsTypes["RequestedItems"] = "requested-items";
ECollectionsTypes["Resume"] = "resume";
ECollectionsTypes["SubscriptionBase"] = "subscription-base";
ECollectionsTypes["SubscriptionCompany"] = "subscription-company";
ECollectionsTypes["SubscriptionCustomer"] = "subscription-customer";
ECollectionsTypes["Token"] = "token";
ECollectionsTypes["Transaction"] = "transaction";
ECollectionsTypes["TransferRequest"] = "transfer-request";
ECollectionsTypes["Users"] = "users";
ECollectionsTypes["Voucher"] = "voucher";
ECollectionsTypes["WaServer"] = "wa-server";
})(ECollectionsTypes || (ECollectionsTypes = {}));
var ECycle;
(function (ECycle) {
ECycle["DAY"] = "DAY";
ECycle["WEEK"] = "WEEK";
ECycle["MONTH"] = "MONTH";
ECycle["BIWEEK"] = "BIWEEK";
ECycle["NONE"] = "NONE";
})(ECycle || (ECycle = {}));
var EDocType;
(function (EDocType) {
EDocType["CPF"] = "CPF";
EDocType["CNPJ"] = "CNPJ";
})(EDocType || (EDocType = {}));
var EDiscountType;
(function (EDiscountType) {
EDiscountType["PERCENT"] = "PERCENT";
EDiscountType["FIXED_AMOUNT"] = "FIXED";
})(EDiscountType || (EDiscountType = {}));
var EFiscalDocModelCode;
(function (EFiscalDocModelCode) {
EFiscalDocModelCode["NFE"] = "55";
EFiscalDocModelCode["CTE"] = "57";
EFiscalDocModelCode["SAT"] = "59";
EFiscalDocModelCode["ECF"] = "60";
EFiscalDocModelCode["NFCOM"] = "62";
EFiscalDocModelCode["BPE"] = "63";
EFiscalDocModelCode["NFCE"] = "65";
EFiscalDocModelCode["NF3E"] = "66";
EFiscalDocModelCode["OS"] = "67";
})(EFiscalDocModelCode || (EFiscalDocModelCode = {}));
var EFrom;
(function (EFrom) {
EFrom["NATI"] = "NATI";
EFrom["AUTOMATION"] = "AUTOMATION";
EFrom["NATIPAY"] = "NATIPAY";
EFrom["PAYIO"] = "PAYIO";
EFrom["DESENFILA"] = "DESENFILA";
EFrom["NATIST"] = "NATIST";
EFrom["MOBYO"] = "MOBYO";
EFrom["DEFAULT"] = "DEFAULT";
})(EFrom || (EFrom = {}));
var EGender;
(function (EGender) {
EGender["MALE"] = "MALE";
EGender["FEMALE"] = "FEMALE";
EGender["OTHER"] = "OTHER";
EGender["NOT_INFORMED"] = "NOT_INFORMED";
EGender["NOT_APPLICABLE"] = "NOT_APPLICABLE";
})(EGender || (EGender = {}));
var EIntDocType;
(function (EIntDocType) {
// América do Sul
EIntDocType["CPF"] = "CPF";
EIntDocType["CNPJ"] = "CNPJ";
EIntDocType["CUIL"] = "CUIL";
EIntDocType["CUIT"] = "CUIT";
EIntDocType["RUT_CL"] = "RUT_CL";
EIntDocType["NIT_CO"] = "NIT_CO";
EIntDocType["RUC_EC"] = "RUC_EC";
EIntDocType["RUC_PE"] = "RUC_PE";
EIntDocType["RUT_UY"] = "RUT_UY";
EIntDocType["RUC_PY"] = "RUC_PY";
EIntDocType["RIF_VE"] = "RIF_VE";
EIntDocType["NIT_BO"] = "NIT_BO";
// América do Norte
EIntDocType["SSN"] = "SSN";
EIntDocType["EIN"] = "EIN";
EIntDocType["RFC"] = "RFC";
// Europa
EIntDocType["STEUER_ID"] = "STEUER_ID";
EIntDocType["UST_IDNR"] = "UST_IDNR";
EIntDocType["SIREN"] = "SIREN";
EIntDocType["SIRET"] = "SIRET";
EIntDocType["NIF_ES"] = "NIF_ES";
EIntDocType["CIF_ES"] = "CIF_ES";
EIntDocType["CODICE_FISCALE"] = "CODICE_FISCALE";
EIntDocType["P_IVA"] = "P_IVA";
EIntDocType["NINO"] = "NINO";
EIntDocType["VAT_UK"] = "VAT_UK";
EIntDocType["BSN"] = "BSN";
EIntDocType["KVK"] = "KVK";
EIntDocType["AHV"] = "AHV";
EIntDocType["UID_CH"] = "UID_CH";
EIntDocType["NIF_PT"] = "NIF_PT";
// África
EIntDocType["ID_ZA"] = "ID_ZA";
// Rússia
EIntDocType["INN_PERSON"] = "INN_PERSON";
EIntDocType["INN_COMPANY"] = "INN_COMPANY";
})(EIntDocType || (EIntDocType = {}));
var EIntervalType;
(function (EIntervalType) {
EIntervalType["DAYS"] = "DAYS";
EIntervalType["WEEKS"] = "WEEKS";
EIntervalType["MONTHS"] = "MONTHS";
})(EIntervalType || (EIntervalType = {}));
var EJwtStatus;
(function (EJwtStatus) {
EJwtStatus["ACTIVE"] = "ACTIVE";
EJwtStatus["INACTIVE"] = "INACTIVE";
EJwtStatus["EXPIRED"] = "EXPIRED";
})(EJwtStatus || (EJwtStatus = {}));
var ELeadOrigin;
(function (ELeadOrigin) {
ELeadOrigin["FACEBOOK_ADS"] = "Facebook Ads";
ELeadOrigin["GOOGLE_ADS"] = "Google Ads";
ELeadOrigin["EMAIL_MARKETING"] = "Email Marketing";
ELeadOrigin["REFERRED_BY_FRIEND"] = "Indica\u00E7\u00E3o de amigo";
ELeadOrigin["ORGANIC_SEARCH"] = "Busca org\u00E2nica";
ELeadOrigin["DIRECT_VISIT"] = "Visita Direta";
ELeadOrigin["OTHERS"] = "Outros";
})(ELeadOrigin || (ELeadOrigin = {}));
var EOperator;
(function (EOperator) {
EOperator["NOT_EQUAL"] = "!=";
EOperator["LESS_THAN"] = "<";
EOperator["LESS_THAN_OR_EQUAL"] = "<=";
EOperator["EQUAL"] = "==";
EOperator["GREATER_THAN"] = ">";
EOperator["GREATER_THAN_OR_EQUAL"] = ">=";
EOperator["ARRAY_CONTAINS"] = "array-contains";
EOperator["ARRAY_CONTAINS_ANY"] = "array-contains-any";
EOperator["IN"] = "in";
EOperator["NOT_IN"] = "not-in";
})(EOperator || (EOperator = {}));
var EOs;
(function (EOs) {
EOs["ANDROID"] = "ANDROID";
EOs["IOS"] = "IOS";
EOs["WINDOWS_PHONE"] = "WINDOWS_PHONE";
EOs["WINDOWS"] = "WINDOWS";
EOs["LINUX"] = "LINUX";
EOs["ELECTRON"] = "ELECTRON";
EOs["OTHER"] = "OTHER";
EOs["UNKNOWN"] = "UNKNOWN";
})(EOs || (EOs = {}));
var EPaymentChannel;
(function (EPaymentChannel) {
EPaymentChannel["APP"] = "APP";
EPaymentChannel["DELIVERY"] = "DELIVERY";
EPaymentChannel["AUTOMATION"] = "AUTOMATION";
EPaymentChannel["PHONE"] = "PHONE";
EPaymentChannel["MAIL"] = "MAIL";
EPaymentChannel["KIOSK"] = "KIOSK";
EPaymentChannel["QR_CODE"] = "QR_CODE";
EPaymentChannel["WEBSITE"] = "WEBSITE";
})(EPaymentChannel || (EPaymentChannel = {}));
var EPaymentMode;
(function (EPaymentMode) {
EPaymentMode["ELECTRONIC"] = "ELECTRONIC";
EPaymentMode["MANUAL"] = "MANUAL";
EPaymentMode["DIGITAL"] = "DIGITAL";
})(EPaymentMode || (EPaymentMode = {}));
var EPaymentStatus;
(function (EPaymentStatus) {
EPaymentStatus["PENDING"] = "PENDING";
EPaymentStatus["COMPLETED"] = "COMPLETED";
EPaymentStatus["FAILED"] = "FAILED";
EPaymentStatus["CANCELED"] = "CANCELED";
EPaymentStatus["PAID"] = "PAID";
EPaymentStatus["REFUNDED"] = "REFUNDED";
EPaymentStatus["AUTHORIZED"] = "AUTHORIZED";
EPaymentStatus["DECLINED"] = "DECLINED";
EPaymentStatus["EXPIRED"] = "EXPIRED";
EPaymentStatus["DISPUTED"] = "DISPUTED";
})(EPaymentStatus || (EPaymentStatus = {}));
var EPaymentType$1;
(function (EPaymentType) {
EPaymentType["CREDIT_CARD"] = "CREDIT_CARD";
EPaymentType["DEBIT_CARD"] = "DEBIT_CARD";
EPaymentType["CASH"] = "CASH";
EPaymentType["PIX"] = "PIX";
EPaymentType["BITCOIN"] = "BITCOIN";
EPaymentType["MOBILE_PAYMENT"] = "MOBILE_PAYMENT";
EPaymentType["CHECK"] = "CHECK";
EPaymentType["CRYPTOCURRENCY"] = "CRYPTOCURRENCY";
EPaymentType["ELECTRONIC_BANKING"] = "ELECTRONIC_BANKING";
EPaymentType["MONEY_ORDER"] = "MONEY_ORDER";
EPaymentType["PREPAID_CARD"] = "PREPAID_CARD";
EPaymentType["E_WALLET"] = "E_WALLET";
EPaymentType["DIRECT_DEBIT"] = "DIRECT_DEBIT";
EPaymentType["PAYPAL"] = "PAYPAL";
EPaymentType["CHECKOUT_PRO"] = "CHECKOUT_PRO";
EPaymentType["WIRE_TRANSFER"] = "WIRE_TRANSFER";
EPaymentType["GIFT_CARD"] = "GIFT_CARD";
EPaymentType["VOUCHER"] = "VOUCHER";
EPaymentType["BILLING"] = "BILLING";
EPaymentType["BANK_SLIP"] = "BANK_SLIP";
EPaymentType["NONE"] = "NONE";
})(EPaymentType$1 || (EPaymentType$1 = {}));
var ELegalEntiy;
(function (ELegalEntiy) {
ELegalEntiy["LEGAL"] = "Pessoa Jur\u00EDdica";
ELegalEntiy["INDIVIDUAL"] = "Pessoa F\u00EDsica";
})(ELegalEntiy || (ELegalEntiy = {}));
var EPixKeyType;
(function (EPixKeyType) {
EPixKeyType["PHONE"] = "PHONE";
EPixKeyType["EMAIL"] = "EMAIL";
EPixKeyType["CPF"] = "CPF";
EPixKeyType["CNPJ"] = "CNPJ";
EPixKeyType["RANDOM_KEY"] = "RANDOM_KEY";
})(EPixKeyType || (EPixKeyType = {}));
var EPlatform;
(function (EPlatform) {
EPlatform["MOBILE"] = "Mobile";
EPlatform["WEB"] = "Web";
EPlatform["DESKTOP"] = "Desktop";
EPlatform["TABLET"] = "Tablet";
EPlatform["TV"] = "Tv";
EPlatform["CHROMEBOOK"] = "Chromebook";
EPlatform["OTHER"] = "Other";
})(EPlatform || (EPlatform = {}));
var EPaymentProvider;
(function (EPaymentProvider) {
EPaymentProvider["IUGU"] = "IUGU";
EPaymentProvider["DESENFILA"] = "DESENFILA";
EPaymentProvider["MERCADO_PAGO"] = "MERCADO PAGO";
EPaymentProvider["STRIPE"] = "STRIPE";
EPaymentProvider["PAYPAL"] = "PAYPAL";
EPaymentProvider["OTHER"] = "OTHER";
})(EPaymentProvider || (EPaymentProvider = {}));
var EPubSub;
(function (EPubSub) {
EPubSub["GENERAL"] = "GENERAL";
EPubSub["NATIGO"] = "NATIGO";
})(EPubSub || (EPubSub = {}));
var ERole;
(function (ERole) {
ERole["ADMIN"] = "ADMIN";
ERole["USER"] = "USER";
ERole["OWNER"] = "OWNER";
ERole["SUPPORT"] = "SUPPORT";
ERole["PARTNER"] = "PARTNER";
ERole["FINANCE"] = "FINANCE";
ERole["MARKETING"] = "MARKETING";
ERole["SALES"] = "SALES";
ERole["MENAGER"] = "MENAGER";
ERole["DEVELOPER"] = "DEVELOPER";
ERole["GUEST"] = "GUEST";
})(ERole || (ERole = {}));
var ESponsorshipValues;
(function (ESponsorshipValues) {
ESponsorshipValues["MERCHANT"] = "MERCHANT";
ESponsorshipValues["PARTNER"] = "PARTNER";
ESponsorshipValues["PROVIDER"] = "PROVIDER";
ESponsorshipValues["UNKNOWN"] = "UNKNOWN";
})(ESponsorshipValues || (ESponsorshipValues = {}));
var ESubsStatus;
(function (ESubsStatus) {
ESubsStatus["ACTIVE"] = "ACTIVE";
ESubsStatus["CANCELLED"] = "CANCELLED";
ESubsStatus["PLACED"] = "PLACED";
ESubsStatus["EXPIRED"] = "EXPIRED";
ESubsStatus["PENDING"] = "PENDING";
ESubsStatus["TRIAL"] = "TRIAL";
ESubsStatus["FREE"] = "FREE";
ESubsStatus["SUSPENDED"] = "SUSPENDED";
})(ESubsStatus || (ESubsStatus = {}));
class FirebaseQueryEntity {
// #region Properties (3)
field = '';
operator = EOperator.EQUAL;
value = null;
// #endregion Properties (3)
// #region Constructors (1)
constructor(field, operator, value) {
this.field = field;
this.operator = operator;
this.value = value;
}
}
// src/models/base.entity.ts
class InfoEntity {
// #region Properties (6)
companyId = '';
containerId = '';
containerName = '';
companyName = '';
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class MessagerChannelEntity {
// #region Properties (3)
channelId = '';
id = '';
type = '';
// #endregion Properties (3)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class MobyoApiConfigEntity {
// #region Properties (6)
hasIntegration = false;
hasPrint = false;
integrationUrl = '';
printCols = 40;
printInterface = '';
printType = '';
// #endregion Properties (6)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
// src/models/base.entity.ts
class MobyoInfoEntity {
// #region Properties (6)
companyId = '';
containerId = '';
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class OriginEntity {
// #region Properties (6)
campaign = '';
contactPoint = '';
date = 0;
details = '';
referrer = '';
type = ELeadOrigin.OTHERS;
// #endregion Properties (6)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentCardEntity {
// #region Properties (3)
brand = '';
maskedNumber = '';
tokenId = '';
// #endregion Properties (3)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentCashEntity {
// #region Properties (1)
changeFor = 0;
// #endregion Properties (1)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentMethodOptionEntity {
// #region Properties (13)
active = false;
channel = EPaymentChannel.AUTOMATION;
createdAt = new Date();
fee = 0;
id = '';
index = 0;
maxAmount = 0;
minAmount = 0;
mode = EPaymentMode.MANUAL;
name = '';
token = '';
type = EPaymentType$1.CREDIT_CARD;
updatedAt = new Date();
// #endregion Properties (13)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentMethodEntity {
// #region Properties (11)
card = null;
cash = null;
payAt = undefined;
code = '';
currency = 'BRL';
id = '';
method = EPaymentType$1.CASH;
pix = null;
prepaid = false;
type = 'OFFLINE';
value = 0;
wallet = null;
// #endregion Properties (11)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentPixEntity {
// #region Properties (2)
pixKey = '';
urlQrImage = '';
// #endregion Properties (2)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentProviderAgentEntity {
// #region Properties (2)
accountId = '';
partnerId = '';
name = '';
// #endregion Properties (2)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentProviderEntity {
// #region Properties (13)
accountId = '';
active = false;
agent = new PaymentProviderAgentEntity();
customerId = '';
liveApiToken = '';
name = '';
paymentTokens = [];
subscriptionId = '';
subscriptions = '';
testApiToken = '';
userApiToken = '';
verified = false;
verifiedAt = 0;
// #endregion Properties (13)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentTokenDataEntity {
// #region Properties (7)
bin = '';
brand = '';
displayNumber = '';
firstDigits = '';
maskedNumber = '';
month = 0;
year = 0;
// #endregion Properties (7)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentTokenEntity {
// #region Properties (5)
customerId = '';
data = new PaymentTokenDataEntity();
description = '';
id = '';
itemType = '';
// #endregion Properties (5)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentWalletEntity {
// #region Properties (1)
name = '';
// #endregion Properties (1)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class PaymentEntity {
// #region Properties (3)
methods = [];
pending = 0;
prepaid = 0;
// #endregion Properties (3)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
if (data.methods) {
this.methods = data.methods.map((method) => new PaymentMethodEntity(method));
}
else {
this.methods = [];
}
}
}
}
// src/models/base.entity.ts
class PixKeyEntity {
description = '';
isDefault = false;
key = '';
type = EPixKeyType.CPF;
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class QueryEntity {
// #region Properties (12)
apikey = null;
companyId = null;
containerId = null;
dateField = null;
endDate = undefined;
filterBy = undefined;
lastDocId = null;
limit = '100';
query = undefined;
sandbox = '';
startDate = undefined;
status = undefined;
// #endregion Properties (12)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class RatingEntity {
// #region Properties (4)
comment = '';
createdAt = new Date();
rating = 5;
userId = '';
// #endregion Properties (4)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class SponsorshipValueEntity {
// #region Properties (2)
name = '';
value = 0;
// #endregion Properties (2)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
// index.ts
var EAppType;
(function (EAppType) {
EAppType["FREE"] = "FREE";
EAppType["PAID"] = "PAID";
EAppType["SUBSCRIPTION"] = "SUBSCRIPTION";
EAppType["TRIAL"] = "TRIAL";
})(EAppType || (EAppType = {}));
var EAppHeaderType;
(function (EAppHeaderType) {
EAppHeaderType["VIDEO"] = "VIDEO";
EAppHeaderType["IMAGE"] = "IMAGE";
})(EAppHeaderType || (EAppHeaderType = {}));
var EAppMode;
(function (EAppMode) {
EAppMode["APP"] = "APP";
EAppMode["CHECKOUT"] = "CHECKOUT";
EAppMode["SCREEN"] = "SCREEN";
EAppMode["NATI_GO"] = "NATIGO";
EAppMode["SAT_MANAGER"] = "SAT-MANAGER";
EAppMode["NATI_PDV"] = "NATI-PDV";
EAppMode["NATI_PHP"] = "NATI_PHP";
EAppMode["NATI_WHATSAPP"] = "NATI_WA";
EAppMode["NATI_TYPE_BOT"] = "NATI_TYPE_BOT";
EAppMode["NATI_ST"] = "NATI_ST";
EAppMode["RABBIT"] = "RABBIT";
EAppMode["FISCAL_MANAGER"] = "FISCAL-MANAGER";
EAppMode["NATI_SIGN"] = "NATI-SIGN";
EAppMode["DESENFILA"] = "DESENFILA";
EAppMode["NATIPAY"] = "NATIPAY";
EAppMode["NATIV2"] = "NATIV2";
EAppMode["NATIADMIN"] = "NATIADMIN";
EAppMode["MOBYO"] = "MOBYO";
EAppMode["MOBYO_TAB"] = "MOBYO_TAB";
EAppMode["MOBYO_DELIVERY"] = "MOBYO_DELIVERY";
EAppMode["MOBYO_TOP"] = "MOBYO_TOP";
EAppMode["NATI_CHEF"] = "NATI_CHEF";
EAppMode["NONE"] = "NONE";
})(EAppMode || (EAppMode = {}));
class AppEntity {
// #region Properties (33)
active = false;
activeInstalls = 0;
/**
* Indica se permite adicionar a assinatura
*/
allowAddSubscription = false;
allowDefaultDevice = false;
carousel = [];
categories = [];
createdBy = '';
description = '';
downloadUrl = '';
features = [];
headerImage = '';
headerType = EAppHeaderType.IMAGE;
headerVideo = '';
iconUrl = '';
id = '';
instanceNumberAllowed = 1;
/**
* Intervalo de tempo para o preço
* @example
* 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
* Para intervalType = MONTHS
* 1 = 1 mês (mensal)
*
*/
interval = 0;
/**
* Tipo de intervalo para o preço
* @example
* Mensal, Semanal, Diário
*/
intervalType = EIntervalType.MONTHS;
isUnique = false;
mode = EAppMode.NONE;
name = '';
/**
* Indica se o app é gratuito ou não
*/
os = [];
platforms = [];
price = 0;
production = false;
ratings = [];
secrets = '';
tags = [];
totalInstalls = 0;
trialTime = 0;
type = EAppType.FREE;
versionCode = 1;
versionName = '';
// #endregion Properties (33)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class DesenfilaConfigMercadoPagoEntity {
// #region Properties (4)
active = false;
automationFee = 0;
fee = 0;
mobyoFee = 0;
// #endregion Properties (4)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class DesenfilaConfigEntity {
// #region Properties (3)
active = true;
id = '';
mercadoPago = new DesenfilaConfigMercadoPagoEntity();
// #endregion Properties (3)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class DesenfilaFeeEntity {
// #region Properties (2)
type = EFrom.DEFAULT;
value = 0.0099;
// #endregion Properties (2)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class DesenfilaTokenEntity {
// #region Properties (2)
id = '';
prefix = '';
masterConfig = false;
// #endregion Properties (2)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class DesenfilaEntity {
balance = 0;
blockedBalance = 0;
config = null;
containerId = '';
doc = '';
docType = 'CPF';
fees = [];
goLive = false;
merchantId = '';
pixKey = '';
pixKeyType = EPixKeyType.RANDOM_KEY;
provider = 'NATIPAY';
token = null;
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class EvolutionChatWootEntity {
// #region Properties (7)
accountId = '';
enabled = false;
nameInbox = '';
signMsg = false;
token = '';
url = '';
webhookUrl = '';
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class EvolutionDatabaseQueueEntity {
// #region Properties (11)
active = true;
baseUrl = '';
createdAt = Date.now();
id = '';
instanceName = '';
globalApikey = '';
log = [];
sendAt = 1713547959155;
notified = false;
notifiedAt = 0;
phoneNumber = '';
text = '';
updatedAt = Date.now();
// #endregion Properties (11)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class EvolutionHashEntity {
// #region Properties (1)
apikey = '';
// #endregion Properties (1)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class EvolutionInstanceEntity {
// #region Properties (10)
apikey = '';
chatwoot = null;
instanceId = '';
instanceName = '';
owner = '';
profileName = '';
profilePictureUrl = '';
profileStatus = '';
serverUrl = '';
status = '';
// #endregion Properties (10)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class EvolutionQrcodeEntity {
// #region Properties (4)
base64 = null;
code = null;
count = 0;
pairingCode = null;
// #endregion Properties (4)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class EvolutionEntity {
// #region Properties (6)
chatwoot = null;
events = [];
hash = new EvolutionHashEntity();
instance = new EvolutionInstanceEntity();
qrcode = new EvolutionQrcodeEntity();
webhook = '';
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class EvolutionMessageKeyResponseEntity {
// #region Properties (3)
fromMe = false;
id = '';
remoteJid = '';
}
class EvolutionMessageResponseEntity {
// #region Properties (4)
key = null;
message = null;
messageTimestamp = null;
status = null;
}
class EvolutionTypeBotEntity {
// #region Properties (2)
instanceName = '';
typebot = new typeBot();
// #endregion Properties (2)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class typeBot {
enabled = true;
url = '';
typebot = '';
expire = 20;
keywordFinish = '#SAIR';
delayMessage = 1000;
unknownMessage = 'Mensagem não reconhecida';
listeningFromMe = false;
}
var EEvolutionEvent;
(function (EEvolutionEvent) {
EEvolutionEvent["APPLICATION_STARTUP"] = "APPLICATION_STARTUP";
EEvolutionEvent["QRCODE_UPDATED"] = "QRCODE_UPDATED";
EEvolutionEvent["MESSAGES_SET"] = "MESSAGES_SET";
EEvolutionEvent["MESSAGES_UPSERT"] = "MESSAGES_UPSERT";
EEvolutionEvent["MESSAGES_UPDATE"] = "MESSAGES_UPDATE";
EEvolutionEvent["MESSAGES_DELETE"] = "MESSAGES_DELETE";
EEvolutionEvent["SEND_MESSAGE"] = "SEND_MESSAGE";
EEvolutionEvent["CONTACTS_SET"] = "CONTACTS_SET";
EEvolutionEvent["CONTACTS_UPSERT"] = "CONTACTS_UPSERT";
EEvolutionEvent["CONTACTS_UPDATE"] = "CONTACTS_UPDATE";
EEvolutionEvent["CALL"] = "CALL";
EEvolutionEvent["PRESENCE_UPDATE"] = "PRESENCE_UPDATE";
EEvolutionEvent["CHATS_SET"] = "CHATS_SET";
EEvolutionEvent["CHATS_UPSERT"] = "CHATS_UPSERT";
EEvolutionEvent["CHATS_UPDATE"] = "CHATS_UPDATE";
EEvolutionEvent["CHATS_DELETE"] = "CHATS_DELETE";
EEvolutionEvent["GROUPS_UPSERT"] = "GROUPS_UPSERT";
EEvolutionEvent["GROUP_UPDATE"] = "GROUP_UPDATE";
EEvolutionEvent["GROUP_PARTICIPANTS_UPDATE"] = "GROUP_PARTICIPANTS_UPDATE";
EEvolutionEvent["CONNECTION_UPDATE"] = "CONNECTION_UPDATE";
EEvolutionEvent["NEW_JWT_TOKE"] = "NEW_JWT_TOKE";
})(EEvolutionEvent || (EEvolutionEvent = {}));
var EEvolutionInstanceType;
(function (EEvolutionInstanceType) {
EEvolutionInstanceType["WEBHOOK"] = "WEBHOOK";
EEvolutionInstanceType["CHATWOOT"] = "CHATWOOT";
EEvolutionInstanceType["TYPE_BOOT"] = "TYPE_BOOT";
EEvolutionInstanceType["BASIC"] = "BASIC";
EEvolutionInstanceType["WEBSOCKET"] = "WEBSOCKET";
EEvolutionInstanceType["RABBIT_MQ"] = "RABBIT_MQ";
})(EEvolutionInstanceType || (EEvolutionInstanceType = {}));
var EEvolutionIntegrationType;
(function (EEvolutionIntegrationType) {
EEvolutionIntegrationType["whatsAppBaileys"] = "WHATSAPP-BAILEYS";
EEvolutionIntegrationType["whatsAppWeb"] = "WHATSAPP-WEB";
})(EEvolutionIntegrationType || (EEvolutionIntegrationType = {}));
class EvolutionWebhookEntity {
// #region Properties (5)
enabled = true;
events = [
EEvolutionEvent.QRCODE_UPDATED,
EEvolutionEvent.MESSAGES_UPSERT,
EEvolutionEvent.MESSAGES_UPDATE,
EEvolutionEvent.MESSAGES_DELETE,
EEvolutionEvent.SEND_MESSAGE,
EEvolutionEvent.CONNECTION_UPDATE,
EEvolutionEvent.CALL,
];
url = '';
webhookBase64 = false;
webhookByEvents = false;
// #endregion Properties (5)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
// #region Interfaces (3)
// #endregion Interfaces (3)
// #region Classes (1)
class NatiWaEntity {
// #region Properties (10)
chatwoot = null;
id = '';
instanceName = '';
number = '';
qrcode = false;
token = '';
type = EEvolutionInstanceType.WEBHOOK;
typebot = null;
waServerId = '';
webhook = null;
// #endregion Properties (10)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
// #endregion Classes (1)
var EAppCategory;
(function (EAppCategory) {
EAppCategory["UTILITIES"] = "UTILIDADES";
EAppCategory["OTHERS"] = "OUTROS";
EAppCategory["POINTOFSALES"] = "PDV";
EAppCategory["SALES"] = "VENDAS";
EAppCategory["STOCK"] = "ESTOQUE";
EAppCategory["FINANCIAL"] = "FINANCEIRO";
EAppCategory["REPORTS"] = "RELAT\u00D3RIOS";
EAppCategory["SETTINGS"] = "CONFIGURA\u00C7\u00D5ES";
EAppCategory["PRODUCTS"] = "PRODUTOS";
EAppCategory["CUSTOMERS"] = "CLIENTES";
EAppCategory["SUPPLIERS"] = "FORNECEDORES";
EAppCategory["EMPLOYEES"] = "FUNCION\u00C1RIOS";
EAppCategory["ORDERS"] = "PEDIDOS";
EAppCategory["SALESORDERS"] = "PEDIDOS DE VENDA";
EAppCategory["PURCHASEORDERS"] = "PEDIDOS DE COMPRA";
EAppCategory["SALESINVOICES"] = "NOTAS FISCAIS DE VENDA";
EAppCategory["PURCHASEINVOICES"] = "NOTAS FISCAIS DE COMPRA";
EAppCategory["SALESBUDGETS"] = "OR\u00C7AMENTOS DE VENDA";
EAppCategory["PURCHASEBUDGETS"] = "OR\u00C7AMENTOS DE COMPRA";
EAppCategory["PRINTS"] = "IMPRESS\u00D5ES";
EAppCategory["SALESPRINTS"] = "IMPRESS\u00D5ES DE VENDA";
EAppCategory["PURCHASEPRINTS"] = "IMPRESS\u00D5ES DE COMPRA";
EAppCategory["KDS"] = "KDS";
EAppCategory["MARKETING"] = "MARKETING";
EAppCategory["ECOMMERCE"] = "E-COMMERCE";
EAppCategory["ECOMMERCEORDERS"] = "PEDIDOS DE E-COMMERCE";
EAppCategory["DELIVERY"] = "ENTREGA";
EAppCategory["TRACKING"] = "RASTREAMENTO";
})(EAppCategory || (EAppCategory = {}));
class NatiGoEntity {
// #region Properties (8)
documentVerificationAllowed = false;
isForAdultsOnly = false;
openLockRequired = true;
syncAt = new Date();
type = EAppMode.NATI_GO;
updatedAt = new Date();
url = 'localhost:8080';
version = '1.0.0';
// #endregion Properties (8)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class RabbitEntity {
// #region Properties (22)
address = new AddressEntity();
api = 'http://localhost:8089';
cityCode = '';
doc = '';
emitirL = true;
enviroment = 'production';
ie = '';
ignoreCpfCnpj = false;
model = EFiscalDocModelCode.NFCE;
name = '';
nfNumber = 1;
onlyCash = false;
controlPix = true;
pdvId = null;
percentage = 50;
regime = 1;
serialNumber = '';
signature = '';
syncAt = 0;
type = EAppMode.RABBIT;
ufCode = null;
updatedAt = new Date();
version = '1.0.0';
// #endregion Properties (22)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class BillingPaymentEntity {
// #region Properties (13)
addition = 0;
cancelled = 0;
company = {};
discount = 0;
id = '';
paymentReceiptUrl = '';
paymentType = EPaymentType$1.NONE;
status = EPaymentStatus.PENDING;
subtotal = 0;
tax = 0;
totalAmount = 0;
transactionDate = new Date();
transactionId = '';
// #endregion Properties (13)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class BillingTotalEntity {
// #region Properties (6)
addition = 0;
cancelled = 0;
discount = 0;
subtotal = 0;
tax = 0;
totalAmount = 0;
// #endregion Properties (6)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
var EBillingStatus;
(function (EBillingStatus) {
// #region Properties (3)
EBillingStatus["PAID"] = "PAID";
EBillingStatus["PENDING"] = "PENDING";
EBillingStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
EBillingStatus["CANCELLED"] = "CANCELLED";
// #endregion Properties (3)
})(EBillingStatus || (EBillingStatus = {}));
class BillingEntity {
// #region Properties (12)
company = null;
createdAt = new Date();
dueDateAt = new Date();
id = '';
orders = [];
payments = [];
status = EBillingStatus.PENDING;
total = new BillingTotalEntity();
updatedAt = new Date();
// #endregion Properties (12)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class OrderAdditionalFeeEntity {
// #region Properties (2)
type = '';
value = 0;
// #endregion Properties (2)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
var EVoucherStatus;
(function (EVoucherStatus) {
EVoucherStatus["ACTIVE"] = "ACTIVE";
EVoucherStatus["PLACED"] = "PLACED";
EVoucherStatus["PAUSED"] = "PAUSED";
EVoucherStatus["CONCLUDED"] = "CONCLUDED";
})(EVoucherStatus || (EVoucherStatus = {}));
var EVoucherRuleType;
(function (EVoucherRuleType) {
EVoucherRuleType["FIRST_BUY"] = "FIRST_BUY";
EVoucherRuleType["BIRTHDAY"] = "BIRTHDAY";
EVoucherRuleType["ONE_BY_USER"] = "ONE_BY_USER";
EVoucherRuleType["ONE_BY_DAY"] = "ONE_BY_DAY";
EVoucherRuleType["IN_PAYMENT_ID"] = "IN_PAYMENT_ID";
EVoucherRuleType["MIN_VALUE"] = "MIN_VALUE";
EVoucherRuleType["SHIFT_START_AT"] = "SHIFT_START_AT";
EVoucherRuleType["SHIFT_END_AT"] = "SHIFT_END_AT";
EVoucherRuleType["START_AT"] = "START_AT";
EVoucherRuleType["END_AT"] = "END_AT";
})(EVoucherRuleType || (EVoucherRuleType = {}));
var EVoucherTargetTypes;
(function (EVoucherTargetTypes) {
EVoucherTargetTypes["CART"] = "CART";
EVoucherTargetTypes["DELIVERY_FEE"] = "DELIVERY_FEE";
EVoucherTargetTypes["ITEMS"] = "ITEMS";
EVoucherTargetTypes["CATEGORY"] = "CATEGORY";
})(EVoucherTargetTypes || (EVoucherTargetTypes = {}));
class CampaignRuleEntity {
// #region Properties (10)
type = EVoucherRuleType.MIN_VALUE;
value = 0;
description = '';
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class VoucherSponsorshipEntity {
// #region Properties (10)
name = 'MERCHANT';
value = 0;
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class VoucherEntity {
// #region Properties (10)
info = new MobyoInfoEntity();
concludedAt = null;
createdAt = new Date();
id = '';
isPublic = false;
key = '';
name = '';
activatedAt = null;
rules = [];
type = EDiscountType.PERCENT;
amount = 0;
sponsorship = [];
status = EVoucherStatus.PLACED;
targetsId = [];
targetType = EVoucherTargetTypes.CART;
updatedAt = new Date();
limit = 0;
isExclusive = false;
usedCount = 0;
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class VoucherCustomerEntity {
customerId = '';
cords = new CoordsEntity();
address = new AddressEntity();
phoneNumber = '';
meta = ''; // JSON meta
id = '';
itensCount = 0;
total = new OrderTotalEntity();
averageAmount = 0; // total.subTotal / itensCount
createdAt = new Date();
updatedAt = new Date();
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class OrderBenefitsEntity {
// #region Properties (6)
description = '';
id = '';
referenceId = '';
sponsorshipValues = [];
value = 0;
target = EVoucherTargetTypes.CART;
// #endregion Properties (6)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class OrderCancellationEntity {
// #region Properties (3)
cancellationBy = '';
cancellationCode = '';
reason = '';
// #endregion Properties (3)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class OrdersCustomerPhoneEntity {
// #region Properties (4)
description = '';
localizer = '';
localizerExpiration = '';
number = '';
// #endregion Properties (4)
// #region Constructors (1)
constructor(data) {
if (data) {
for (let key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
}
class OrderCustomerEntity {
// #region Properties (7)
documentNumber = '';
email = '';
id = '';
name = '';
ordersCountOnMerchant = 0;
phone = new OrdersCustome