card

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: 4 Imported by: 0

Documentation

Overview

package card provides the /cards APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(params *CardParams) (*Card, error)

Create POSTs new cards either for a customer or recipient. For more details see https://stripe.com/docs/api#create_card.

func Delete

func Delete(id string, params *CardParams) error

Delete remotes a card. For more details see https://stripe.com/docs/api#delete_card.

func Get

func Get(id string, params *CardParams) (*Card, error)

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

func List

func List(params *CardListParams) *CardIter

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

func Update

func Update(id string, params *CardParams) (*Card, error)

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

Types

type Client

type Client struct {
	B   Backend
	Tok string
}

Client is used to invoke /cards APIs.

func (Client) Create

func (c Client) Create(params *CardParams) (*Card, error)

func (Client) Delete

func (c Client) Delete(id string, params *CardParams) error

func (Client) Get

func (c Client) Get(id string, params *CardParams) (*Card, error)

func (Client) List

func (c Client) List(params *CardListParams) *CardIter

func (Client) Update

func (c Client) Update(id string, params *CardParams) (*Card, error)

Jump to

Keyboard shortcuts

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