Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions admin/billing/biller.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ const (
TeamPlanType
ManagedPlanType
EnterprisePlanType
FreePlanType
ProPlanType
)

type Plan struct {
Expand Down
8 changes: 8 additions & 0 deletions admin/billing/orb.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ func getPlanType(externalID string) PlanType {
return TeamPlanType
case "managed":
return ManagedPlanType
case "free_plan":
return FreePlanType
case "pro_plan":
return ProPlanType
default:
return EnterprisePlanType
}
Expand All @@ -664,6 +668,10 @@ func getPlanDisplayName(externalID string) string {
return "Team"
case "managed":
return "Managed"
case "free_plan":
return "Free Plan"
case "pro_plan":
return "Pro Plan"
default:
return "Enterprise"
}
Expand Down
4 changes: 4 additions & 0 deletions admin/server/billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,10 @@ func planTypeToDTO(t billing.PlanType) adminv1.BillingPlanType {
return adminv1.BillingPlanType_BILLING_PLAN_TYPE_MANAGED
case billing.EnterprisePlanType:
return adminv1.BillingPlanType_BILLING_PLAN_TYPE_ENTERPRISE
case billing.FreePlanType:
return adminv1.BillingPlanType_BILLING_PLAN_TYPE_FREE
case billing.ProPlanType:
return adminv1.BillingPlanType_BILLING_PLAN_TYPE_PRO
default:
return adminv1.BillingPlanType_BILLING_PLAN_TYPE_UNSPECIFIED
}
Expand Down
Loading
Loading