refund

package
v4.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package refund provides the /refunds APIs

Index

Constants

View Source
const (
	RefundFraudulent          stripe.RefundReason = "fraudulent"
	RefundDuplicate           stripe.RefundReason = "duplicate"
	RefundRequestedByCustomer stripe.RefundReason = "requested_by_customer"
)

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. For more details see https://stripe.com/docs/api#retrieve_refund.

func New

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

New refunds a charge previously created. For more details see https://stripe.com/docs/api#refund_charge.

func Update

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

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

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)

func (Client) List

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

func (Client) New

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

func (Client) Update

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

type Iter

type Iter struct {
	*stripe.Iter
}

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

func List

func List(params *stripe.RefundListParams) *Iter

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

func (*Iter) Refund

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

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

Jump to

Keyboard shortcuts

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