source

package
v34.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 3 Imported by: 100

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detach

func Detach(id string, params *stripe.SourceObjectDetachParams) (*stripe.Source, error)

Detach detaches the source from its customer object.

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) Detach

func (c Client) Detach(id string, params *stripe.SourceObjectDetachParams) (*stripe.Source, error)

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