UNPKG

@sourceloop/ctrl-plane-subscription-service

Version:

Subscription management microservice for SaaS control plane.

56 lines 1.92 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BillingCustomer = void 0; const tslib_1 = require("tslib"); const repository_1 = require("@loopback/repository"); const core_1 = require("@sourceloop/core"); const invoice_model_1 = require("./invoice.model"); let BillingCustomer = class BillingCustomer extends core_1.UserModifiableEntity { constructor(data) { super(data); } }; exports.BillingCustomer = BillingCustomer; tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', id: true, generated: true, }), tslib_1.__metadata("design:type", String) ], BillingCustomer.prototype, "id", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', name: 'tenant_id', required: true, }), tslib_1.__metadata("design:type", String) ], BillingCustomer.prototype, "tenantId", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', name: 'customer_id', required: true, }), tslib_1.__metadata("design:type", String) ], BillingCustomer.prototype, "customerId", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', name: 'payment_source_id', }), tslib_1.__metadata("design:type", String) ], BillingCustomer.prototype, "paymentSourceId", void 0); tslib_1.__decorate([ (0, repository_1.hasMany)(() => invoice_model_1.Invoice, { keyTo: 'billingCustomerId' }), tslib_1.__metadata("design:type", Array) ], BillingCustomer.prototype, "invoices", void 0); exports.BillingCustomer = BillingCustomer = tslib_1.__decorate([ (0, repository_1.model)({ name: 'billing_customer', description: 'contacts belonging to a tenant', }), tslib_1.__metadata("design:paramtypes", [Object]) ], BillingCustomer); //# sourceMappingURL=billing-customer.model.js.map