charge

package
v0.0.0-...-d8ed325 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package charge provides the /charges APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capture

func Capture(id string, params *CaptureParams) (*Charge, error)

Capture captures a previously created charge with NoCapture set to true. For more details see https://stripe.com/docs/api#charge_capture.

func Create

func Create(params *ChargeParams) (*Charge, error)

Create POSTs new charges. For more details see https://stripe.com/docs/api#create_charge.

func Get

func Get(id string, params *ChargeParams) (*Charge, error)

Get returns the details of a charge. For more details see https://stripe.com/docs/api#retrieve_charge.

func List

func List(params *ChargeListParams) *ChargeIter

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

func RefundCharge

func RefundCharge(params *RefundParams) (*Refund, error)

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

func Update

func Update(id string, params *ChargeParams) (*Charge, error)

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

Types

type Client

type Client struct {
	B   Backend
	Tok string
}

Client is used to invoke /charges APIs.

func (Client) Capture

func (c Client) Capture(id string, params *CaptureParams) (*Charge, error)

func (Client) Create

func (c Client) Create(params *ChargeParams) (*Charge, error)

func (Client) Get

func (c Client) Get(id string, params *ChargeParams) (*Charge, error)

func (Client) List

func (c Client) List(params *ChargeListParams) *ChargeIter

func (Client) Refund

func (c Client) Refund(params *RefundParams) (*Refund, error)

func (Client) Update

func (c Client) Update(id string, params *ChargeParams) (*Charge, error)

Jump to

Keyboard shortcuts

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