Documentation ¶
Overview ¶
Package card provides the /cards APIs
Index ¶
- Constants
- func Del(id string, params *stripe.CardParams) 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) error
- func (c Client) Get(id string, params *stripe.CardParams) (*stripe.Card, error)
- func (c Client) List(params *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 ¶
View Source
const ( BrandUnknown stripe.CardBrand = "Unknown" Visa stripe.CardBrand = "Visa" Amex stripe.CardBrand = "American Express" MasterCard stripe.CardBrand = "MasterCard" Discover stripe.CardBrand = "Discover" JCB stripe.CardBrand = "JCB" DinersClub stripe.CardBrand = "Diners Club" Pass stripe.Verification = "pass" Fail stripe.Verification = "fail" Unchecked stripe.Verification = "unchecked" Credit stripe.CardFunding = "credit" Debit stripe.CardFunding = "debit" Prepaid stripe.CardFunding = "prepaid" FundingUnknown stripe.CardFunding = "unknown" )
Variables ¶
This section is empty.
Functions ¶
func Del ¶
func Del(id string, params *stripe.CardParams) error
Del 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 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 a iterator for list responses.
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.