Documentation ¶
Overview ¶
Package setupintent provides API functions related to setup intents.
For more details, see: https://stripe.com/docs/api/go#setup_intents.
Index ¶
- func Cancel(id string, params *stripe.SetupIntentCancelParams) (*stripe.SetupIntent, error)
- func Confirm(id string, params *stripe.SetupIntentConfirmParams) (*stripe.SetupIntent, error)
- func Get(id string, params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
- func New(params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
- func Update(id string, params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
- type Client
- func (c Client) Cancel(id string, params *stripe.SetupIntentCancelParams) (*stripe.SetupIntent, error)
- func (c Client) Confirm(id string, params *stripe.SetupIntentConfirmParams) (*stripe.SetupIntent, error)
- func (c Client) Get(id string, params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
- func (c Client) List(listParams *stripe.SetupIntentListParams) *Iter
- func (c Client) New(params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
- func (c Client) Update(id string, params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶
func Cancel(id string, params *stripe.SetupIntentCancelParams) (*stripe.SetupIntent, error)
Cancel cancels a setup intent.
func Confirm ¶
func Confirm(id string, params *stripe.SetupIntentConfirmParams) (*stripe.SetupIntent, error)
Confirm confirms a setup intent.
func Get ¶
func Get(id string, params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
Get retrieves a setup intent.
func New ¶
func New(params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
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 ¶
Client is used to invoke APIs related to setup intents.
func (Client) Cancel ¶
func (c Client) Cancel(id string, params *stripe.SetupIntentCancelParams) (*stripe.SetupIntent, error)
Cancel cancels a setup intent.
func (Client) Confirm ¶
func (c Client) Confirm(id string, params *stripe.SetupIntentConfirmParams) (*stripe.SetupIntent, error)
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 ¶
func (c Client) New(params *stripe.SetupIntentParams) (*stripe.SetupIntent, error)
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 ¶
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.