sku

package
v35.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(id string, params *stripe.SKUParams) (*stripe.SKU, error)

Del removes a SKU.

func Get

func Get(id string, params *stripe.SKUParams) (*stripe.SKU, error)

Get returns the details of a SKU.

func New

func New(params *stripe.SKUParams) (*stripe.SKU, error)

New creates a new SKU.

func Update

func Update(id string, params *stripe.SKUParams) (*stripe.SKU, error)

Update updates a SKU's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /skus APIs.

func (Client) Del

func (c Client) Del(id string, params *stripe.SKUParams) (*stripe.SKU, error)

Del removes a SKU.

func (Client) Get

func (c Client) Get(id string, params *stripe.SKUParams) (*stripe.SKU, error)

Get returns the details of a SKU.

func (Client) List

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

List returns a list of SKUs.

func (Client) New

func (c Client) New(params *stripe.SKUParams) (*stripe.SKU, error)

New creates a new SKU.

func (Client) Update

func (c Client) Update(id string, params *stripe.SKUParams) (*stripe.SKU, error)

Update updates a SKU's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for SKUs.

func List

func List(params *stripe.SKUListParams) *Iter

List returns a list of SKUs.

func (*Iter) SKU

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

SKU returns the SKU 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