IsFree reports whether the plan is the free-tier plan (no payment method required).
()
| 223 | |
| 224 | // IsFree reports whether the plan is the free-tier plan (no payment method required). |
| 225 | func (p Plan) IsFree() bool { |
| 226 | return p.Type == PlanTypeFree |
| 227 | } |
| 228 | |
| 229 | // toPlan flattens a JSON:API plan template resource into a Plan. |
| 230 | func (r *PlanTemplateResource) toPlan() Plan { |
no outgoing calls
no test coverage detected