account

package
v6.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package account provides the /account APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del added in v6.8.0

func Del(id string) error

Del deletes an account

func Get

func Get() (*stripe.Account, error)

Get returns the details of an account.

func GetByID

func GetByID(id string, params *stripe.AccountParams) (*stripe.Account, error)

GetByID returns the details of your account.

func New

func New(params *stripe.AccountParams) (*stripe.Account, error)

New creates a new account.

func Update

func Update(id string, params *stripe.AccountParams) (*stripe.Account, error)

Update updates the details of an account.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /account APIs.

func (Client) Del added in v6.8.0

func (c Client) Del(id string) error

func (Client) Get

func (c Client) Get() (*stripe.Account, error)

func (Client) GetByID

func (c Client) GetByID(id string, params *stripe.AccountParams) (*stripe.Account, error)

func (Client) List

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

func (Client) New

func (c Client) New(params *stripe.AccountParams) (*stripe.Account, error)

func (Client) Update

func (c Client) Update(id string, params *stripe.AccountParams) (*stripe.Account, error)

type Iter

type Iter struct {
	*stripe.Iter
}

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

func List

func List(params *stripe.AccountListParams) *Iter

List lists your accounts.

func (*Iter) Account

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

Account returns the most recent Account visited by a call to Next.

Jump to

Keyboard shortcuts

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