bling-erp-api-with-rate-limit
Version:
Pacote de integração com a API do Bling ERP
23 lines • 791 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Entity = void 0;
const convert_date_to_string_1 = __importDefault(require("../../helpers/functions/convert-date-to-string"));
class Entity {
constructor(repository) {
this.repository = repository;
}
prepareStringOrDateParam(param, includeTime = false) {
if (param === undefined) {
return undefined;
}
if (typeof param === 'string') {
return param;
}
return (0, convert_date_to_string_1.default)(param, includeTime);
}
}
exports.Entity = Entity;
//# sourceMappingURL=entity.js.map