Documentation ¶
Overview ¶
Package plan provides the /plans APIs
Index ¶
- func Del(id string, params *stripe.PlanParams) (*stripe.Plan, 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, params *stripe.PlanParams) (*stripe.Plan, error)
- func (c Client) Get(id string, params *stripe.PlanParams) (*stripe.Plan, error)
- func (c Client) List(listParams *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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
Deleting plans means new subscribers can't be added. Existing subscribers aren't affected.
func New ¶
func New(params *stripe.PlanParams) (*stripe.Plan, error)
You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/docs/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
Types ¶
type Client ¶
Client is used to invoke /plans APIs.
func (Client) Del ¶
Deleting plans means new subscribers can't be added. Existing subscribers aren't affected.
func (Client) List ¶
func (c Client) List(listParams *stripe.PlanListParams) *Iter
Returns a list of your plans.
func (Client) New ¶
You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/docs/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.