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.
func Get ¶
func Get(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
Get returns the details of a source.
func New ¶
func New(params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
New creates a new source for a customer.
func Update ¶
func Update(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
Update updates a source's properties.
func Verify ¶
func Verify(id string, params *stripe.SourceVerifyParams) (*stripe.PaymentSource, error)
Verify verifies a source which is used for bank accounts.
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)
Del removes a source.
func (Client) Get ¶
func (s Client) Get(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
Get returns the details of a source.
func (Client) List ¶
func (s Client) List(listParams *stripe.SourceListParams) *Iter
List returns a list of sources.
func (Client) New ¶
func (s Client) New(params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
New creates a new source for a customer.
func (Client) Update ¶
func (s Client) Update(id string, params *stripe.CustomerSourceParams) (*stripe.PaymentSource, error)
Update updates a source's properties.
func (Client) Verify ¶
func (s Client) Verify(id string, params *stripe.SourceVerifyParams) (*stripe.PaymentSource, error)
Verify verifies a source which is used for bank accounts.
type Iter ¶
Iter is an iterator for sources.
func (*Iter) PaymentSource ¶
func (i *Iter) PaymentSource() *stripe.PaymentSource
PaymentSource returns the source which the iterator is currently pointing to.
func (*Iter) SourceList ¶
func (i *Iter) SourceList() *stripe.SourceList
SourceList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.