setupintent

package
v61.18.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 3 Imported by: 45

Documentation

Overview

Package setupintent provides API functions related to setup intents.

For more details, see: https://stripe.com/docs/api/go#setup_intents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

Cancel cancels a setup intent.

func Confirm

Confirm confirms a setup intent.

func Get

Get retrieves a setup intent.

func New

New creates a setup intent.

func Update

func Update(id string, params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)

Update updates a setup intent.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke APIs related to setup intents.

func (Client) Cancel

Cancel cancels a setup intent.

func (Client) Confirm

Confirm confirms a setup intent.

func (Client) Get

func (c Client) Get(id string, params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)

Get retrieves a setup intent.

func (Client) List

func (c Client) List(listParams *stripe.SetupIntentListParams) *Iter

List returns a list of setup intents.

func (Client) New

New creates a setup intent.

func (Client) Update

func (c Client) Update(id string, params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)

Update updates a setup intent.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for setup intents.

func List

func List(params *stripe.SetupIntentListParams) *Iter

List returns a list of setup intents.

func (*Iter) SetupIntent

func (i *Iter) SetupIntent() *stripe.SetupIntent

SetupIntent returns the setup intent which the iterator is currently pointing to.

Jump to

Keyboard shortcuts

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