Documentation ¶
Overview ¶
Package sub provides the /subscriptions APIs
Index ¶
- func Cancel(id string, params *stripe.SubscriptionCancelParams) (*stripe.Subscription, error)
- func Get(id string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
- func New(params *stripe.SubscriptionParams) (*stripe.Subscription, error)
- func Update(id string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
- type Client
- func (c Client) Cancel(id string, params *stripe.SubscriptionCancelParams) (*stripe.Subscription, error)
- func (c Client) Get(id string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
- func (c Client) List(listParams *stripe.SubscriptionListParams) *Iter
- func (c Client) New(params *stripe.SubscriptionParams) (*stripe.Subscription, error)
- func (c Client) Update(id string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶
func Cancel(id string, params *stripe.SubscriptionCancelParams) (*stripe.Subscription, error)
Cancel removes a subscription.
func Get ¶
func Get(id string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
Get returns the details of a subscription.
func New ¶
func New(params *stripe.SubscriptionParams) (*stripe.Subscription, error)
New creates a new subscription.
func Update ¶
func Update(id string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
Update updates a subscription's properties.
Types ¶
type Client ¶
Client is used to invoke /subscriptions APIs.
func (Client) Cancel ¶
func (c Client) Cancel(id string, params *stripe.SubscriptionCancelParams) (*stripe.Subscription, error)
Cancel removes a subscription.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
Get returns the details of a subscription.
func (Client) List ¶
func (c Client) List(listParams *stripe.SubscriptionListParams) *Iter
List returns a list of subscriptions.
func (Client) New ¶
func (c Client) New(params *stripe.SubscriptionParams) (*stripe.Subscription, error)
New creates a new subscription.
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.SubscriptionParams) (*stripe.Subscription, error)
Update updates a subscription's properties.
type Iter ¶
Iter is an iterator for subscriptions.
func List ¶
func List(params *stripe.SubscriptionListParams) *Iter
List returns a list of subscriptions.
func (*Iter) Subscription ¶
func (i *Iter) Subscription() *stripe.Subscription
Subscription returns the subscription which the iterator is currently pointing to.
Click to show internal directories.
Click to hide internal directories.