Documentation ¶
Overview ¶
Package transfer provides the /transfers APIs
Index ¶
- func Get(id string, params *stripe.TransferParams) (*stripe.Transfer, error)
- func New(params *stripe.TransferParams) (*stripe.Transfer, error)
- func Update(id string, params *stripe.TransferParams) (*stripe.Transfer, error)
- type Client
- func (c Client) Get(id string, params *stripe.TransferParams) (*stripe.Transfer, error)
- func (c Client) List(listParams *stripe.TransferListParams) *Iter
- func (c Client) New(params *stripe.TransferParams) (*stripe.Transfer, error)
- func (c Client) Update(id string, params *stripe.TransferParams) (*stripe.Transfer, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Retrieves the details of an existing transfer. Supply the unique transfer ID from either a transfer creation request or the transfer list, and Stripe will return the corresponding transfer information.
func New ¶
func New(params *stripe.TransferParams) (*stripe.Transfer, error)
To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://stripe.com/docs/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
Types ¶
type Client ¶
Client is used to invoke /transfers APIs.
func (Client) Get ¶
Retrieves the details of an existing transfer. Supply the unique transfer ID from either a transfer creation request or the transfer list, and Stripe will return the corresponding transfer information.
func (Client) List ¶
func (c Client) List(listParams *stripe.TransferListParams) *Iter
Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first.
func (Client) New ¶
To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://stripe.com/docs/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
type Iter ¶
Iter is an iterator for transfers.
func List ¶
func List(params *stripe.TransferListParams) *Iter
Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first.
func (*Iter) TransferList ¶
func (i *Iter) TransferList() *stripe.TransferList
TransferList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.