bankaccount

package
v78.7.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package bankaccount provides the bankaccount related APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Delete a specified external account for a given account.

func Get

Get returns the details of a bank account.

func New

New creates a new bank account

func Update

func Update(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)

Updates the metadata, account holder name, account holder type of a bank account belonging to a connected account and optionally sets it as the default for its currency. Other bank account details are not editable by design.

You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection).

You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke bankaccount related APIs.

func (Client) Del

func (c Client) Del(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)

Delete a specified external account for a given account.

func (Client) Get

func (c Client) Get(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)

Get returns the details of a bank account.

func (Client) List

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

func (Client) New

New creates a new bank account

func (Client) Update

func (c Client) Update(id string, params *stripe.BankAccountParams) (*stripe.BankAccount, error)

Updates the metadata, account holder name, account holder type of a bank account belonging to a connected account and optionally sets it as the default for its currency. Other bank account details are not editable by design.

You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection).

You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for bank accounts.

func List

func List(params *stripe.BankAccountListParams) *Iter

func (*Iter) BankAccount

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

BankAccount returns the bank account which the iterator is currently pointing to.

func (*Iter) BankAccountList

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

BankAccountList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.

Jump to

Keyboard shortcuts

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