subcription status
This commit is contained in:
parent
d05530584c
commit
95e38db3a2
7
dist/Admin/Subscription.d.ts
vendored
7
dist/Admin/Subscription.d.ts
vendored
@ -3,7 +3,8 @@ import Office from "./Office";
|
|||||||
import Seat from "./Seat";
|
import Seat from "./Seat";
|
||||||
export default class Subscription extends Resource {
|
export default class Subscription extends Resource {
|
||||||
uid?: string;
|
uid?: string;
|
||||||
priceId: string;
|
stripe_subscription_id?: string;
|
||||||
|
status: EStatus | string;
|
||||||
type: EType | string;
|
type: EType | string;
|
||||||
start_date: Date;
|
start_date: Date;
|
||||||
end_date: Date;
|
end_date: Date;
|
||||||
@ -15,3 +16,7 @@ export declare enum EType {
|
|||||||
Standard = "STANDARD",
|
Standard = "STANDARD",
|
||||||
Unlimited = "UNLIMITED"
|
Unlimited = "UNLIMITED"
|
||||||
}
|
}
|
||||||
|
export declare enum EStatus {
|
||||||
|
Active = "ACTIVE",
|
||||||
|
Inactive = "INACTIVE"
|
||||||
|
}
|
||||||
|
17
dist/Admin/Subscription.js
vendored
17
dist/Admin/Subscription.js
vendored
@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.EType = void 0;
|
exports.EStatus = exports.EType = void 0;
|
||||||
const Resource_1 = __importDefault(require("../Resource"));
|
const Resource_1 = __importDefault(require("../Resource"));
|
||||||
const class_transformer_1 = require("class-transformer");
|
const class_transformer_1 = require("class-transformer");
|
||||||
const Office_1 = __importDefault(require("./Office"));
|
const Office_1 = __importDefault(require("./Office"));
|
||||||
@ -26,12 +26,12 @@ __decorate([
|
|||||||
], Subscription.prototype, "uid", void 0);
|
], Subscription.prototype, "uid", void 0);
|
||||||
__decorate([
|
__decorate([
|
||||||
(0, class_transformer_1.Expose)(),
|
(0, class_transformer_1.Expose)(),
|
||||||
(0, class_validator_1.IsNotEmpty)({
|
|
||||||
groups: ["createSubscription"],
|
|
||||||
message: "priceId is required",
|
|
||||||
}),
|
|
||||||
__metadata("design:type", String)
|
__metadata("design:type", String)
|
||||||
], Subscription.prototype, "priceId", void 0);
|
], Subscription.prototype, "stripe_subscription_id", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Expose)(),
|
||||||
|
__metadata("design:type", String)
|
||||||
|
], Subscription.prototype, "status", void 0);
|
||||||
__decorate([
|
__decorate([
|
||||||
(0, class_transformer_1.Expose)(),
|
(0, class_transformer_1.Expose)(),
|
||||||
(0, class_validator_1.IsNotEmpty)({
|
(0, class_validator_1.IsNotEmpty)({
|
||||||
@ -80,3 +80,8 @@ var EType;
|
|||||||
EType["Standard"] = "STANDARD";
|
EType["Standard"] = "STANDARD";
|
||||||
EType["Unlimited"] = "UNLIMITED";
|
EType["Unlimited"] = "UNLIMITED";
|
||||||
})(EType = exports.EType || (exports.EType = {}));
|
})(EType = exports.EType || (exports.EType = {}));
|
||||||
|
var EStatus;
|
||||||
|
(function (EStatus) {
|
||||||
|
EStatus["Active"] = "ACTIVE";
|
||||||
|
EStatus["Inactive"] = "INACTIVE";
|
||||||
|
})(EStatus = exports.EStatus || (exports.EStatus = {}));
|
||||||
|
@ -9,11 +9,10 @@ export default class Subscription extends Resource {
|
|||||||
public uid?: string;
|
public uid?: string;
|
||||||
|
|
||||||
@Expose()
|
@Expose()
|
||||||
@IsNotEmpty({
|
public stripe_subscription_id?: string;
|
||||||
groups: ["createSubscription"],
|
|
||||||
message: "priceId is required",
|
@Expose()
|
||||||
})
|
public status!: EStatus | string;
|
||||||
public priceId!: string;
|
|
||||||
|
|
||||||
@Expose()
|
@Expose()
|
||||||
@IsNotEmpty({
|
@IsNotEmpty({
|
||||||
@ -56,3 +55,8 @@ export enum EType {
|
|||||||
Standard = "STANDARD",
|
Standard = "STANDARD",
|
||||||
Unlimited = "UNLIMITED",
|
Unlimited = "UNLIMITED",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum EStatus {
|
||||||
|
Active = "ACTIVE",
|
||||||
|
Inactive = "INACTIVE",
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user