Documentation ¶
Overview ¶
Package sub provides the /subscriptions APIs
Index ¶
- func Del(id string, params *stripe.SubItemParams) (*stripe.SubItem, error)
- func Get(id string, params *stripe.SubItemParams) (*stripe.SubItem, error)
- func New(params *stripe.SubItemParams) (*stripe.SubItem, error)
- func Update(id string, params *stripe.SubItemParams) (*stripe.SubItem, error)
- type Client
- func (c Client) Del(id string, params *stripe.SubItemParams) (*stripe.SubItem, error)
- func (c Client) Get(id string, params *stripe.SubItemParams) (*stripe.SubItem, error)
- func (c Client) List(params *stripe.SubListParams) *Iter
- func (c Client) New(params *stripe.SubItemParams) (*stripe.SubItem, error)
- func (c Client) Update(id string, params *stripe.SubItemParams) (*stripe.SubItem, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
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 ¶
func New(params *stripe.SubItemParams) (*stripe.SubItem, error)
New POSTS a new subscription for a customer. For more details see https://stripe.com/docs/api#create_subscription_item.
func Update ¶
Update updates a subscription's properties. For more details see https://stripe.com/docs/api#update_subscription.
Types ¶
type Iter ¶
Iter is an iterator for lists of Subs. The embedded Iter carries methods with it; see its documentation for details.
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.