setupintent

package
v72.201.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package setupintent provides the /setup_intents APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

Cancel is the method for the `POST /v1/setup_intents/{intent}/cancel` API.

func Confirm

Confirm is the method for the `POST /v1/setup_intents/{intent}/confirm` API.

func Get

Get returns the details of a setup intent.

func New

New creates a new setup intent.

func Update

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

Update updates a setup intent's properties.

func VerifyMicrodeposits

func VerifyMicrodeposits(id string, params *stripe.SetupIntentVerifyMicrodepositsParams) (*stripe.SetupIntent, error)

VerifyMicrodeposits is the method for the `POST /v1/setup_intents/{intent}/verify_microdeposits` API.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /setup_intents APIs.

func (Client) Cancel

Cancel is the method for the `POST /v1/setup_intents/{intent}/cancel` API.

func (Client) Confirm

Confirm is the method for the `POST /v1/setup_intents/{intent}/confirm` API.

func (Client) Get

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

Get returns the details of 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 new setup intent.

func (Client) Update

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

Update updates a setup intent's properties.

func (Client) VerifyMicrodeposits

func (c Client) VerifyMicrodeposits(id string, params *stripe.SetupIntentVerifyMicrodepositsParams) (*stripe.SetupIntent, error)

VerifyMicrodeposits is the method for the `POST /v1/setup_intents/{intent}/verify_microdeposits` API.

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.

func (*Iter) SetupIntentList

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

SetupIntentList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.

Jump to

Keyboard shortcuts

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