Documentation ¶
Overview ¶
Package sub provides the /subscriptions APIs
Index ¶
- Constants
- func Cancel(id string, params *stripe.SubParams) error
- func Get(id string, params *stripe.SubParams) (*stripe.Sub, error)
- func New(params *stripe.SubParams) (*stripe.Sub, error)
- func Update(id string, params *stripe.SubParams) (*stripe.Sub, error)
- type Client
- func (c Client) Cancel(id string, params *stripe.SubParams) error
- func (c Client) Get(id string, params *stripe.SubParams) (*stripe.Sub, error)
- func (c Client) List(params *stripe.SubListParams) *Iter
- func (c Client) New(params *stripe.SubParams) (*stripe.Sub, error)
- func (c Client) Update(id string, params *stripe.SubParams) (*stripe.Sub, error)
- type Iter
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶
Cancel removes a subscription. For more details see https://stripe.com/docs/api#cancel_subscription.
func Get ¶
Get returns the details of a subscription. For more details see https://stripe.com/docs/api#retrieve_subscription.
func New ¶
New POSTS a new subscription for a customer. For more details see https://stripe.com/docs/api#create_subscription.
Types ¶
type Iter ¶
Iter is a iterator for list responses.
func List ¶
func List(params *stripe.SubListParams) *Iter
List returns a list of subscriptions. For more details see https://stripe.com/docs/api#list_subscriptions.
Click to show internal directories.
Click to hide internal directories.