account

package
v61.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package account provides API functions related to accounts.

For more details, see: https://stripe.com/docs/api/go#accounts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

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

Del deletes an account.

func Get

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

Get retrieves the authenticating account.

func GetByID

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

GetByID retrieves an 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 an account.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke APIs related to accounts.

func (Client) Del

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

Del deletes an account.

func (Client) Get

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

Get retrieves the authenticating account.

func (Client) GetByID

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

GetByID retrieves an account.

func (Client) List

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

List returns an iterator that iterates all accounts.

func (Client) New

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

New creates a new account.

func (Client) Reject

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

Reject rejects an account.

func (Client) Update

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

Update updates an account.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for accounts.

func List

func List(params *stripe.AccountListParams) *Iter

List returns an iterator that iterates all accounts.

func (*Iter) Account

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

Account returns the account 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