card

package
v34.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: MIT Imports: 3 Imported by: 171

Documentation

Overview

Package card provides the /cards APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(id string, params *stripe.CardParams) (*stripe.Card, error)

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

func Get

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

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

func New

func New(params *stripe.CardParams) (*stripe.Card, error)

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

func Update

func Update(id string, params *stripe.CardParams) (*stripe.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   stripe.Backend
	Key string
}

Client is used to invoke /cards APIs.

func (Client) Del

func (c Client) Del(id string, params *stripe.CardParams) (*stripe.Card, error)

func (Client) Get

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

func (Client) List

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

func (Client) New

func (c Client) New(params *stripe.CardParams) (*stripe.Card, error)

func (Client) Update

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

type Iter

type Iter struct {
	*stripe.Iter
}

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

func List

func List(params *stripe.CardListParams) *Iter

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

func (*Iter) Card

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

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

Jump to

Keyboard shortcuts

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