source

package
v76.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package source provides the /sources APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detach

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

Detach is the method for the `DELETE /v1/customers/{customer}/sources/{id}` API.

func Get

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

Get returns the details of a source.

func New

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

New creates a new source.

func Update

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

Detach is the method for the `DELETE /v1/customers/{customer}/sources/{id}` API.

func (Client) Get

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

Get returns the details of a source.

func (Client) New

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

New creates a new source.

func (Client) Update

func (c Client) Update(id string, params *stripe.SourceParams) (*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