capability

package
v61.27.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package capability provides the /accounts/capabilities APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.CapabilityParams) (*stripe.Capability, error)

Get returns the details of a account capability.

func Update

func Update(id string, params *stripe.CapabilityParams) (*stripe.Capability, error)

Update updates a account capability's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /accounts/capabilities APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.CapabilityParams) (*stripe.Capability, error)

Get returns the details of a account capability.

func (Client) List

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

List returns a list of account capabilities.

func (Client) Update

func (c Client) Update(id string, params *stripe.CapabilityParams) (*stripe.Capability, error)

Update updates a account capability's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for account capabilities.

func List

func List(params *stripe.CapabilityListParams) *Iter

List returns a list of account capabilities.

func (*Iter) Capability

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

Capability returns the account capability 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