refund

package
v72.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 3 Imported by: 6

Documentation

Overview

Package refund provides the /refunds APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.RefundParams) (*stripe.Refund, error)

Get returns the details of a refund.

func New

func New(params *stripe.RefundParams) (*stripe.Refund, error)

New creates a refund.

func Update

func Update(id string, params *stripe.RefundParams) (*stripe.Refund, error)

Update updates a refund's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /refunds APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.RefundParams) (*stripe.Refund, error)

Get returns the details of a refund.

func (Client) List

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

List returns a list of refunds.

func (Client) New

func (c Client) New(params *stripe.RefundParams) (*stripe.Refund, error)

New creates a refund.

func (Client) Update

func (c Client) Update(id string, params *stripe.RefundParams) (*stripe.Refund, error)

Update updates a refund's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for refunds.

func List

func List(params *stripe.RefundListParams) *Iter

List returns a list of refunds.

func (*Iter) Refund

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

Refund returns the refund which the iterator is currently pointing to.

func (*Iter) RefundList

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

RefundList 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