| 91 | } |
| 92 | |
| 93 | func samplePlanTemplates() []dashboard.PlanTemplateResource { |
| 94 | return []dashboard.PlanTemplateResource{ |
| 95 | { |
| 96 | ID: "build", |
| 97 | Type: "plan_template", |
| 98 | Attributes: dashboard.PlanTemplateAttributes{ |
| 99 | Name: "Build", |
| 100 | Description: "Free forever Search & Discovery API.", |
| 101 | Type: "free", |
| 102 | Configuration: dashboard.PlanTemplateConfiguration{ |
| 103 | Plan: "build", |
| 104 | AcceptTerms: "Build terms", |
| 105 | }, |
| 106 | }, |
| 107 | }, |
| 108 | { |
| 109 | ID: "grow", |
| 110 | Type: "plan_template", |
| 111 | Attributes: dashboard.PlanTemplateAttributes{ |
| 112 | Name: "Grow", |
| 113 | Description: "Best-in-class Search & Discovery API.", |
| 114 | Type: "freeform", |
| 115 | Freeform: "$0.50 / 1,000 Requests", |
| 116 | Configuration: dashboard.PlanTemplateConfiguration{ |
| 117 | Plan: "grow", |
| 118 | AcceptTerms: "Grow terms", |
| 119 | }, |
| 120 | }, |
| 121 | }, |
| 122 | { |
| 123 | ID: "grow-plus", |
| 124 | Type: "plan_template", |
| 125 | Attributes: dashboard.PlanTemplateAttributes{ |
| 126 | Name: "Grow Plus", |
| 127 | Description: "AI-powered Search & Discovery API.", |
| 128 | Type: "freeform", |
| 129 | Freeform: "$1.75 / 1,000 Requests", |
| 130 | Configuration: dashboard.PlanTemplateConfiguration{ |
| 131 | Plan: "grow-plus", |
| 132 | AcceptTerms: "Grow Plus terms", |
| 133 | }, |
| 134 | }, |
| 135 | }, |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | type createServer struct { |
| 140 | *httptest.Server |