source

package
v21.5.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2017 License: MIT Imports: 3 Imported by: 100

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.SourceObjectParams) (*stripe.Source, 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.SourceObjectParams) (*stripe.Source, error)

New POSTs a new source. For more details see https://stripe.com/docs/api#create_source.

func Update

func Update(id string, params *stripe.SourceObjectParams) (*stripe.Source, error)

Update updates a source's properties. For more details see https://stripe.com/docs/api#update_source.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /sources APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.SourceObjectParams) (*stripe.Source, error)

Get returns the details of a source For more details see https://stripe.com/docs/api#retrieve_source.

func (Client) New

func (c Client) New(params *stripe.SourceObjectParams) (*stripe.Source, error)

New POSTs a new source. For more details see https://stripe.com/docs/api#create_source.

func (Client) Update

func (c Client) Update(id string, params *stripe.SourceObjectParams) (*stripe.Source, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL