Documentation ¶
Overview ¶
Package paymentsource provides the /sources APIs
Index ¶
- func Del(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
- func Get(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
- func New(params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
- func Update(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
- func Verify(id string, params *stripe.SourceVerifyParams) (*stripe.PaymentSource, error)
- type Client
- func (s Client) Del(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
- func (s Client) Get(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
- func (s Client) List(listParams *stripe.SourceListParams) *Iter
- func (s Client) New(params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
- func (s Client) Update(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
- func (s Client) Verify(id string, params *stripe.SourceVerifyParams) (*stripe.PaymentSource, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
func Del(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
Del removes a source. For more details see https://stripe.com/docs/api#delete_source.
func Get ¶
func Get(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
Get returns the details of a source. For more details see https://stripe.com/docs/api#retrieve_source.
func New ¶
func New(params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
New POSTs new sources for a customer. For more details see https://stripe.com/docs/api#create_source.
func Update ¶
func Update(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
Update updates a source's properties. For more details see https://stripe.com/docs/api#update_source.
func Verify ¶
func Verify(id string, params *stripe.SourceVerifyParams) (*stripe.PaymentSource, error)
Verify verifies a bank account For more details see https://stripe.com/docs/guides/ach-beta
Types ¶
type Client ¶
Client is used to invoke /sources APIs.
func (Client) Del ¶
func (s Client) Del(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
func (Client) Get ¶
func (s Client) Get(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
func (Client) New ¶
func (s Client) New(params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
func (Client) Update ¶
func (s Client) Update(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
func (Client) Verify ¶
func (s Client) Verify(id string, params *stripe.SourceVerifyParams) (*stripe.PaymentSource, error)
type Iter ¶
Iter is an iterator for lists of PaymentSources. The embedded Iter carries methods with it; see its documentation for details.
func List ¶
func List(params *stripe.SourceListParams) *Iter
List returns a list of sources. For more details see https://stripe.com/docs/api#list_sources.
func (*Iter) PaymentSource ¶
func (i *Iter) PaymentSource() *stripe.PaymentSource
PaymentSource returns the most recent PaymentSource visited by a call to Next.