@ns8/ns8-billing-core
Advanced tools
Comparing version 1.0.54 to 1.0.56
@@ -1,5 +0,4 @@ | ||
export declare class Customer { | ||
constructor(partial?: Partial<Customer>); | ||
id?: string; | ||
export interface Customer { | ||
id: string; | ||
email: string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class Customer { | ||
constructor(partial) { | ||
Object.assign(this, partial || {}); | ||
} | ||
} | ||
exports.Customer = Customer; | ||
//# sourceMappingURL=Customer.js.map |
export * from './Customer'; | ||
export * from './Subscription'; | ||
export * from './Billing'; | ||
export * from './BillingCreate'; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./Customer")); | ||
__export(require("./Subscription")); | ||
//# sourceMappingURL=index.js.map |
@@ -1,8 +0,5 @@ | ||
export declare class Subscription { | ||
constructor(partial?: Partial<Subscription>); | ||
id?: string; | ||
customerId: string; | ||
trialEnd?: number; | ||
export interface Subscription { | ||
id: string; | ||
paidUntil: number; | ||
planIds: string[]; | ||
isValid: () => boolean; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class Subscription { | ||
constructor(partial) { | ||
this.isValid = () => this.customerId && this.planIds && this.planIds.length > 0; | ||
Object.assign(this, partial || {}); | ||
} | ||
} | ||
exports.Subscription = Subscription; | ||
//# sourceMappingURL=Subscription.js.map |
{ | ||
"name": "@ns8/ns8-billing-core", | ||
"version": "1.0.54", | ||
"version": "1.0.56", | ||
"description": "Billing core interfaces", | ||
@@ -5,0 +5,0 @@ "author": "NS8", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17
2609