account

package
v18.13.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2016 License: MIT Imports: 2 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

func Del(id string) (*stripe.Account, 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 Reject

func Reject(id string, params *stripe.AccountRejectParams) (*stripe.Account, error)

Reject rejects an 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

func (c Client) Del(id string) (*stripe.Account, 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) Reject

func (c Client) Reject(id string, params *stripe.AccountRejectParams) (*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