Documentation ¶
Overview ¶
Package card provides the /cards APIs
Index ¶
- func Del(id string, params *stripe.CardParams) (*stripe.Card, error)
- func Get(id string, params *stripe.CardParams) (*stripe.Card, error)
- func New(params *stripe.CardParams) (*stripe.Card, error)
- func Update(id string, params *stripe.CardParams) (*stripe.Card, error)
- type Client
- func (c Client) Del(id string, params *stripe.CardParams) (*stripe.Card, error)
- func (c Client) Get(id string, params *stripe.CardParams) (*stripe.Card, error)
- func (c Client) List(listParams *stripe.CardListParams) *Iter
- func (c Client) New(params *stripe.CardParams) (*stripe.Card, error)
- func (c Client) Update(id string, params *stripe.CardParams) (*stripe.Card, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
Del removes a card. For more details see https://stripe.com/docs/api#delete_card.
func Get ¶
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 ¶
Update updates a card's properties. For more details see https://stripe.com/docs/api#update_card.
Types ¶
type 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.
Click to show internal directories.
Click to hide internal directories.