Documentation ¶
Overview ¶
Package account provides API functions related to accounts.
For more details, see: https://stripe.com/docs/api/go#accounts.
Index ¶
- func Del(id string, params *stripe.AccountParams) (*stripe.Account, error)
- func Get() (*stripe.Account, error)
- func GetByID(id string, params *stripe.AccountParams) (*stripe.Account, error)
- func New(params *stripe.AccountParams) (*stripe.Account, error)
- func Reject(id string, params *stripe.AccountRejectParams) (*stripe.Account, error)
- func Update(id string, params *stripe.AccountParams) (*stripe.Account, error)
- type Client
- func (c Client) Del(id string, params *stripe.AccountParams) (*stripe.Account, error)
- func (c Client) Get() (*stripe.Account, error)
- func (c Client) GetByID(id string, params *stripe.AccountParams) (*stripe.Account, error)
- func (c Client) List(listParams *stripe.AccountListParams) *Iter
- func (c Client) New(params *stripe.AccountParams) (*stripe.Account, error)
- func (c Client) Reject(id string, params *stripe.AccountRejectParams) (*stripe.Account, error)
- func (c Client) Update(id string, params *stripe.AccountParams) (*stripe.Account, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(params *stripe.AccountParams) (*stripe.Account, error)
New creates a new account.
Types ¶
type Client ¶
Client is used to invoke APIs related to accounts.
func (Client) List ¶
func (c Client) List(listParams *stripe.AccountListParams) *Iter
List returns an iterator that iterates all accounts.
type 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) AccountList ¶
func (i *Iter) AccountList() *stripe.AccountList
AccountList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
Click to show internal directories.
Click to hide internal directories.