initial
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import * as plugins from './plugins.js';
|
||||
import { BillingPlanManager } from './classes.billingplanmanager.js';
|
||||
import { User } from './classes.user.js';
|
||||
|
||||
/**
|
||||
* a billing plan belongs to a user which can then attribute the billing plan to a organization
|
||||
*/
|
||||
@plugins.smartdata.Manager()
|
||||
export class BillingPlan extends plugins.smartdata.SmartDataDbDoc<
|
||||
BillingPlan,
|
||||
plugins.lointReception.data.IBillingPlan,
|
||||
BillingPlanManager
|
||||
> {
|
||||
// STATIC
|
||||
public static syncForUser(userArg: User) {
|
||||
// TODO sync this for user
|
||||
}
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public id: string;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public data: plugins.lointReception.data.IBillingPlan['data'] = {
|
||||
type: null,
|
||||
organizationId: null,
|
||||
lastProcessed: null,
|
||||
seats: null,
|
||||
status: null,
|
||||
billingEvents: [],
|
||||
communications: [],
|
||||
nextBilling: null,
|
||||
proEnabled: false,
|
||||
alternativePaymentData: null,
|
||||
paddleData: null,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user