reversal

package
v18.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package reversal provides the /transfers/reversals APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.ReversalParams) (*stripe.Reversal, error)

Get returns the details of a transfer reversal.

func New

func New(params *stripe.ReversalParams) (*stripe.Reversal, error)

New POSTs a new transfer reversal.

func Update

func Update(id string, params *stripe.ReversalParams) (*stripe.Reversal, error)

Update updates a transfer reversal's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /transfers/reversals APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.ReversalParams) (*stripe.Reversal, error)

func (Client) List

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

func (Client) New

func (c Client) New(params *stripe.ReversalParams) (*stripe.Reversal, error)

func (Client) Update

func (c Client) Update(id string, params *stripe.ReversalParams) (*stripe.Reversal, error)

type Iter

type Iter struct {
	*stripe.Iter
}

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

func List

func List(params *stripe.ReversalListParams) *Iter

List returns a list of transfer reversals.

func (*Iter) Reversal

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

Refund returns the most recent Reversals visited by a call to Next.

Jump to

Keyboard shortcuts

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