Documentation ¶
Overview ¶
package card provides the /cards APIs
Index ¶
- func Create(params *CardParams) (*Card, error)
- func Delete(id string, params *CardParams) error
- func Get(id string, params *CardParams) (*Card, error)
- func List(params *CardListParams) *CardIter
- func Update(id string, params *CardParams) (*Card, error)
- type Client
- func (c Client) Create(params *CardParams) (*Card, error)
- func (c Client) Delete(id string, params *CardParams) error
- func (c Client) Get(id string, params *CardParams) (*Card, error)
- func (c Client) List(params *CardListParams) *CardIter
- func (c Client) Update(id string, params *CardParams) (*Card, error)
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 ¶
Delete remotes 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 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 ¶
Update updates a card's properties. For more details see https://stripe.com/docs/api#update_card.
Types ¶
Click to show internal directories.
Click to hide internal directories.