topup

package
v30.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.TopupParams) (*stripe.Topup, error)

Get returns the details of a topup. For more details see https://stripe.com/docs/api#retrieve_topup.

func New

func New(params *stripe.TopupParams) (*stripe.Topup, error)

New POSTs new topups. For more details see https://stripe.com/docs/api#create_topup.

func Update

func Update(id string, params *stripe.TopupParams) (*stripe.Topup, error)

Update updates a topup's properties. For more details see https://stripe.com/docs/api#update_topup.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /topups APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.TopupParams) (*stripe.Topup, error)

func (Client) List

func (c Client) List(params *stripe.TopupListParams) *Iter

func (Client) New

func (c Client) New(params *stripe.TopupParams) (*stripe.Topup, error)

func (Client) Update

func (c Client) Update(id string, params *stripe.TopupParams) (*stripe.Topup, error)

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of Topups. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.TopupListParams) *Iter

List returns a list of topups. For more details see https://stripe.com/docs/api#list_topups.

Jump to

Keyboard shortcuts

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