topup

package
v60.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

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

Cancel cancels a topup.

func Get

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

Get returns the details of a topup.

func New

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

New creates a new topup.

func Update

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

Update updates a topup's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /topups APIs.

func (Client) Cancel

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

Cancel cancels a topup.

func (Client) Get

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

Get returns the details of a topup.

func (Client) List

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

List returns a list of topups.

func (Client) New

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

New creates a new topup.

func (Client) Update

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

Update updates a topup's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for topups.

func List

func List(params *stripe.TopupListParams) *Iter

List returns a list of topups.

func (*Iter) Topup

func (i *Iter) Topup() *stripe.Topup

Topup returns the topup item 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