payout

package
v72.122.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 3 Imported by: 1

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 is the method for the `POST /v1/payouts/{payout}/cancel` API.

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 Reverse added in v72.15.0

func Reverse(id string, params *stripe.PayoutReverseParams) (*stripe.Payout, error)

Reverse is the method for the `POST /v1/payouts/{payout}/reverse` API.

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 is the method for the `POST /v1/payouts/{payout}/cancel` API.

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) Reverse added in v72.15.0

func (c Client) Reverse(id string, params *stripe.PayoutReverseParams) (*stripe.Payout, error)

Reverse is the method for the `POST /v1/payouts/{payout}/reverse` API.

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.

func (*Iter) PayoutList

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

PayoutList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.

Jump to

Keyboard shortcuts

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