Skip to content

Commit 376f02a

Browse files
nipunn1313Convex, Inc.
authored andcommitted
Add plan_id to the PlanId::parse (#42305)
GitOrigin-RevId: d57d21549f8dcb359c8af8aa74c35329db9735d3
1 parent a7b04d0 commit 376f02a

File tree

1 file changed

+4
-2
lines changed
  • crates/big_brain_private_api_types/src

1 file changed

+4
-2
lines changed

crates/big_brain_private_api_types/src/types.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub enum PlanId {
3434
ConvexBase,
3535
ConvexStarterPlus,
3636
ConvexProfessional,
37+
ConvexBusiness,
3738
}
3839

3940
impl Display for PlanId {
@@ -56,7 +57,7 @@ impl PlanId {
5657
pub fn is_in_orb(&self) -> bool {
5758
match self {
5859
PlanId::ConvexBase => false,
59-
PlanId::ConvexStarterPlus | PlanId::ConvexProfessional => true,
60+
PlanId::ConvexStarterPlus | PlanId::ConvexProfessional | PlanId::ConvexBusiness => true,
6061
}
6162
}
6263

@@ -72,7 +73,7 @@ impl PlanId {
7273
pub fn gets_pro_resources(&self) -> bool {
7374
match self {
7475
PlanId::ConvexBase | PlanId::ConvexStarterPlus => false,
75-
PlanId::ConvexProfessional => true,
76+
PlanId::ConvexProfessional | PlanId::ConvexBusiness => true,
7677
}
7778
}
7879
}
@@ -87,6 +88,7 @@ mod tests {
8788
(PlanId::ConvexBase, "CONVEX_BASE"),
8889
(PlanId::ConvexStarterPlus, "CONVEX_STARTER_PLUS"),
8990
(PlanId::ConvexProfessional, "CONVEX_PROFESSIONAL"),
91+
(PlanId::ConvexBusiness, "CONVEX_BUSINESS"),
9092
];
9193
for (plan, expected) in plans {
9294
assert_eq!(plan.to_string(), expected);

0 commit comments

Comments
 (0)