sku

package
v11.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(id string) error

Delete destroys a SKU. For more details see https://stripe.com/docs/api#delete_sku.

func Get

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

Get returns the details of an sku For more details see https://stripe.com/docs/api#retrieve_sku.

func New

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

New POSTs a new SKU. For more details see https://stripe.com/docs/api#create_sku.

func Update

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

Update updates a SKU's properties. For more details see https://stripe.com/docs/api#update_sku.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /skus APIs.

func (Client) Delete

func (c Client) Delete(id string) error

Delete destroys a SKU. For more details see https://stripe.com/docs/api#delete_sku.

func (Client) Get

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

func (Client) List

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

func (Client) New

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

New POSTs a new SKU. For more details see https://stripe.com/docs/api#create_sku.

func (Client) Update

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

Update updates a SKU's properties. For more details see https://stripe.com/docs/api#update_sku.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of SKUs. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.SKUListParams) *Iter

List returns a list of skus. For more details see https://stripe.com/docs/api#list_skus

func (*Iter) SKU

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

SKU returns the most recent SKU visited by a call to Next.

Jump to

Keyboard shortcuts

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