transfer

package
v0.0.0-...-d8ed325 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package transfer provides the /transfers APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

func Cancel(id string, params *TransferParams) (*Transfer, error)

Cancel cancels a pending transfer. For more details see https://stripe.com/docs/api#cancel_transfer.

func Create

func Create(params *TransferParams) (*Transfer, error)

Create POSTs a new transfer. For more details see https://stripe.com/docs/api#create_transfer.

func Get

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

Get returns the details of a transfer. For more details see https://stripe.com/docs/api#retrieve_transfer.

func List

func List(params *TransferListParams) *TransferIter

List returns a list of transfers. For more details see https://stripe.com/docs/api#list_transfers.

func Update

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

Update updates a transfer's properties. For more details see https://stripe.com/docs/api#update_transfer.

Types

type Client

type Client struct {
	B   Backend
	Tok string
}

Client is used to invoke /transfers APIs.

func (Client) Cancel

func (c Client) Cancel(id string, params *TransferParams) (*Transfer, error)

func (Client) Create

func (c Client) Create(params *TransferParams) (*Transfer, error)

func (Client) Get

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

func (Client) List

func (c Client) List(params *TransferListParams) *TransferIter

func (Client) Update

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

Jump to

Keyboard shortcuts

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