sub

package
v66.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2019 License: MIT Imports: 3 Imported by: 0

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.

func Get

Get returns the details of a subscription.

func New

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

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /subscriptions APIs.

func (Client) Cancel

Cancel removes a subscription.

func (Client) Get

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

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

type Iter struct {
	*stripe.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL