payout

package
v67.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 3 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.

func Get

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

Get returns the details of a payout.

func New

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

New creates a new payout.

func Update

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

Update updates a payout's properties.

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)

Cancel cancels a pending payout.

func (Client) Get

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

Get returns the details of a payout.

func (Client) List

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

List returns a list of payouts.

func (Client) New

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

New creates a new payout.

func (Client) Update

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

Update updates a payout's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for payouts.

func List

func List(params *stripe.PayoutListParams) *Iter

List returns a list of payouts.

func (*Iter) Payout

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

Payout returns the payout 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