payout

package
v32.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package payout provides the /payouts APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

func Cancel(id string, params *stripe.PayoutParams) (*stripe.Payout, error)

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

func Get

func Get(id string, params *stripe.PayoutParams) (*stripe.Payout, error)

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

func New

func New(params *stripe.PayoutParams) (*stripe.Payout, error)

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

func Update

func Update(id string, params *stripe.PayoutParams) (*stripe.Payout, error)

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

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /payouts APIs.

func (Client) Cancel

func (c Client) Cancel(id string, params *stripe.PayoutParams) (*stripe.Payout, error)

func (Client) Get

func (c Client) Get(id string, params *stripe.PayoutParams) (*stripe.Payout, error)

func (Client) List

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

func (Client) New

func (c Client) New(params *stripe.PayoutParams) (*stripe.Payout, error)

func (Client) Update

func (c Client) Update(id string, params *stripe.PayoutParams) (*stripe.Payout, error)

type Iter

type Iter struct {
	*stripe.Iter
}

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

func List

func List(params *stripe.PayoutListParams) *Iter

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

func (*Iter) Payout

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

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

Jump to

Keyboard shortcuts

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