source

package
v62.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 3 Imported by: 0

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 a customer.

func Get

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

Get returns the details of a source.

func New

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

New creates a new source.

func Update

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

Update updates a source's properties.

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)

Detach detaches the source from a customer.

func (Client) Get

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

Get returns the details of a source.

func (Client) New

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

New creates a new source.

func (Client) Update

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

Update updates a source's properties.

Jump to

Keyboard shortcuts

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