Documentation ¶
Overview ¶
package plan provides the /plans APIs
Index ¶
- Constants
- func Del(id string) error
- func Get(id string, params *stripe.PlanParams) (*stripe.Plan, error)
- func New(params *stripe.PlanParams) (*stripe.Plan, error)
- func Update(id string, params *stripe.PlanParams) (*stripe.Plan, error)
- type Client
- func (c Client) Del(id string) error
- func (c Client) Get(id string, params *stripe.PlanParams) (*stripe.Plan, error)
- func (c Client) List(params *stripe.PlanListParams) *Iter
- func (c Client) New(params *stripe.PlanParams) (*stripe.Plan, error)
- func (c Client) Update(id string, params *stripe.PlanParams) (*stripe.Plan, error)
- type Iter
Constants ¶
View Source
const ( Day stripe.PlanInternval = "day" Week stripe.PlanInternval = "week" Month stripe.PlanInternval = "month" Year stripe.PlanInternval = "year" )
Variables ¶
This section is empty.
Functions ¶
func Del ¶
Del removes a plan. For more details see https://stripe.com/docs/api#delete_plan.
func Get ¶
Get returns the details of a plan. For more details see https://stripe.com/docs/api#retrieve_plan.
func New ¶
func New(params *stripe.PlanParams) (*stripe.Plan, error)
New POSTs a new plan. For more details see https://stripe.com/docs/api#create_plan.
func Update ¶
Update updates a plan's properties. For more details see https://stripe.com/docs/api#update_plan.
Types ¶
type Iter ¶
Plan iter is a iterator for list responses.
func List ¶
func List(params *stripe.PlanListParams) *Iter
List returns a list of plans. For more details see https://stripe.com/docs/api#list_plans.
Click to show internal directories.
Click to hide internal directories.