Documentation ¶
Overview ¶
Package source provides the /sources APIs
Index ¶
- func Detach(id string, params *stripe.SourceDetachParams) (*stripe.Source, error)
- func Get(id string, params *stripe.SourceParams) (*stripe.Source, error)
- func New(params *stripe.SourceParams) (*stripe.Source, error)
- func Update(id string, params *stripe.SourceParams) (*stripe.Source, error)
- type Client
- func (c Client) Detach(id string, params *stripe.SourceDetachParams) (*stripe.Source, error)
- func (c Client) Get(id string, params *stripe.SourceParams) (*stripe.Source, error)
- func (c Client) New(params *stripe.SourceParams) (*stripe.Source, error)
- func (c Client) Update(id string, params *stripe.SourceParams) (*stripe.Source, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.
func New ¶
func New(params *stripe.SourceParams) (*stripe.Source, error)
Creates a new source object.
func Update ¶
Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://stripe.com/docs/sources) for more detail.
Types ¶
type Client ¶
Client is used to invoke /sources APIs.
func (Client) Get ¶
Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.
func (Client) Update ¶
Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://stripe.com/docs/sources) for more detail.