Documentation
¶
Overview ¶
package sub provides the /subscriptions APIs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶
Cancel removes a subscription. For more details see https://stripe.com/docs/api#cancel_subscription.
func Create ¶
func Create(params *SubParams) (*Sub, error)
Create POSTS a new subscription for a customer. For more details see https://stripe.com/docs/api#create_subscription.
func Get ¶
Get returns the details of a subscription. For more details see https://stripe.com/docs/api#retrieve_subscription.
func List ¶
func List(params *SubListParams) *SubIter
List returns a list of subscriptions. For more details see https://stripe.com/docs/api#list_subscriptions.
func Update ¶
Update updates a subscription's properties. For more details see https://stripe.com/docs/api#update_subscription.
Types ¶
Click to show internal directories.
Click to hide internal directories.