Documentation ¶
Overview ¶
Package bankaccount provides the /bank_accounts APIs
Index ¶
- Constants
- func Del(id string, params *stripe.BankAccountParams) error
- func Get(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)
- func New(params *stripe.BankAccountParams) (*stripe.BankAccount, error)
- func Update(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)
- type Client
- func (c Client) Del(id string, params *stripe.BankAccountParams) error
- func (c Client) Get(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)
- func (c Client) List(params *stripe.BankAccountListParams) *Iter
- func (c Client) New(params *stripe.BankAccountParams) (*stripe.BankAccount, error)
- func (c Client) Update(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)
- type Iter
Constants ¶
View Source
const ( NewAccount stripe.BankAccountStatus = "new" VerifiedAccount stripe.BankAccountStatus = "verified" ValidatedAccount stripe.BankAccountStatus = "validated" ErroredAccount stripe.BankAccountStatus = "errored" )
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)
Get returns the details of a bank account.
func New ¶
func New(params *stripe.BankAccountParams) (*stripe.BankAccount, error)
New POSTs a new bank account.
func Update ¶
func Update(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)
Update updates a bank account.
Types ¶
type Client ¶
Client is used to invoke /bank_accounts APIs.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)
func (Client) New ¶
func (c Client) New(params *stripe.BankAccountParams) (*stripe.BankAccount, error)
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)
type Iter ¶
Iter is an iterator for lists of BankAccount. The embedded Iter carries methods with it; see its documentation for details.
func List ¶
func List(params *stripe.BankAccountListParams) *Iter
List returns a list of bank accounts.
func (*Iter) BankAccount ¶
func (i *Iter) BankAccount() *stripe.BankAccount
BankAccount returns the most recent BankAccount visited by a call to Next.
Click to show internal directories.
Click to hide internal directories.