transfer

package
v61.5.0+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package transfer provides the /transfers APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.TransferParams) (*stripe.Transfer, error)

Get returns the details of a transfer.

func New

func New(params *stripe.TransferParams) (*stripe.Transfer, error)

New creates a new transfer.

func Update

func Update(id string, params *stripe.TransferParams) (*stripe.Transfer, error)

Update updates a transfer's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /transfers APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.TransferParams) (*stripe.Transfer, error)

Get returns the details of a transfer.

func (Client) List

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

List returns a list of transfers.

func (Client) New

func (c Client) New(params *stripe.TransferParams) (*stripe.Transfer, error)

New creates a new transfer.

func (Client) Update

func (c Client) Update(id string, params *stripe.TransferParams) (*stripe.Transfer, error)

Update updates a transfer's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for transfers.

func List

func List(params *stripe.TransferListParams) *Iter

List returns a list of transfers.

func (*Iter) Transfer

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

Transfer returns the transfer 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