Skip to content

Commit 0e5f2c4

Browse files
committed
update carbon star to contain more billing methods
1 parent 538662a commit 0e5f2c4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@carbonhost/typescript",
3-
"version": "1.1.6",
3+
"version": "1.1.7",
44
"main": "dist/index.js",
55
"module": "dist/index.mjs",
66
"types": "dist/index.d.ts",

src/carbon-star.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ export class CarbonStar {
6363
suspended: boolean;
6464

6565
createdAt: Date;
66-
lastBilled?: Date;
6766

67+
lastBilled?: Date;
6868
billingCycle: "monthly" | "hourly";
69+
billingEnabled: boolean;
70+
billingStoppedAt?: Date;
71+
billingStoppedReason?: string;
6972

7073
constructor(carbonClient: Carbon, carbonStar: CarbonStarType) {
7174
this.carbonClient = carbonClient;
@@ -111,9 +114,12 @@ export class CarbonStar {
111114
this.suspended = carbonStar.suspended;
112115

113116
this.createdAt = carbonStar.createdAt;
117+
114118
this.lastBilled = carbonStar.lastBilled;
115-
116119
this.billingCycle = carbonStar.billingCycle;
120+
this.billingEnabled = carbonStar.billingEnabled;
121+
this.billingStoppedAt = carbonStar.billingStoppedAt;
122+
this.billingStoppedReason = carbonStar.billingStoppedReason;
117123
}
118124

119125
get users() {

0 commit comments

Comments
 (0)