UNPKG

@sourceloop/ctrl-plane-subscription-service

Version:

Subscription management microservice for SaaS control plane.

56 lines 1.73 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BillingCycle = void 0; const tslib_1 = require("tslib"); const repository_1 = require("@loopback/repository"); const core_1 = require("@sourceloop/core"); let BillingCycle = class BillingCycle extends core_1.UserModifiableEntity { constructor(data) { super(data); } }; exports.BillingCycle = BillingCycle; tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', id: true, generated: true, }), tslib_1.__metadata("design:type", String) ], BillingCycle.prototype, "id", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true, name: 'cycle_name', }), tslib_1.__metadata("design:type", String) ], BillingCycle.prototype, "cycleName", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'number', required: true, }), tslib_1.__metadata("design:type", Number) ], BillingCycle.prototype, "duration", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true, name: 'duration_unit', }), tslib_1.__metadata("design:type", String) ], BillingCycle.prototype, "durationUnit", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', }), tslib_1.__metadata("design:type", String) ], BillingCycle.prototype, "description", void 0); exports.BillingCycle = BillingCycle = tslib_1.__decorate([ (0, repository_1.model)({ name: 'billing_cycles', }), tslib_1.__metadata("design:paramtypes", [Object]) ], BillingCycle); //# sourceMappingURL=billing-cycle.model.js.map