transfer

package
v14.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package transfer provides the /transfers APIs

Index

Constants

View Source
const (
	Pending  stripe.TransferStatus = "pending"
	Transit  stripe.TransferStatus = "in_transit"
	Failed   stripe.TransferStatus = "failed"
	Canceled stripe.TransferStatus = "canceled"

	Card          stripe.TransferType = "card"
	Bank          stripe.TransferType = "bank_account"
	StripeAccount stripe.TransferType = "stripe_account"

	SourceAlipay  stripe.TransferSourceType = "alipay_account"
	SourceBank    stripe.TransferSourceType = "bank_account"
	SourceBitcoin stripe.TransferSourceType = "bitcoin_receiver"
	SourceCard    stripe.TransferSourceType = "card"

	InsufficientFunds    stripe.TransferFailCode = "insufficient_funds"
	AccountClosed        stripe.TransferFailCode = "account_closed"
	NoAccount            stripe.TransferFailCode = "no_account"
	InvalidAccountNumber stripe.TransferFailCode = "invalid_account_number"
	DebitNotAuth         stripe.TransferFailCode = "debit_not_authorized"
	BankOwnerChanged     stripe.TransferFailCode = "bank_ownership_changed"
	AccountFrozen        stripe.TransferFailCode = "account_frozen"
	CouldNotProcess      stripe.TransferFailCode = "could_not_process"
	BankAccountRestrict  stripe.TransferFailCode = "bank_account_restricted"
	InvalidCurrency      stripe.TransferFailCode = "invalid_currency"
)

Variables

This section is empty.

Functions

func Cancel

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

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

func Get

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

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

func New

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

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

func Update

func Update(id string, params *stripe.TransferParams) (*stripe.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   stripe.Backend
	Key string
}

Client is used to invoke /transfers APIs.

func (Client) Cancel

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

func (Client) Get

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

func (Client) List

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

func (Client) New

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

func (Client) Update

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

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of Transfers. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.TransferListParams) *Iter

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

func (*Iter) Transfer

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

Transfer returns the most recent Transfer visited by a call to Next.

Jump to

Keyboard shortcuts

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