product

package
v13.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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 deletes a product For more details see https://stripe.com/docs/api#delete_product.

func Get

func Get(id string) (*stripe.Product, error)

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

func New

func New(params *stripe.ProductParams) (*stripe.Product, error)

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

func Update

func Update(id string, params *stripe.ProductParams) (*stripe.Product, error)

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

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /products APIs.

func (Client) Delete

func (c Client) Delete(id string) error

Delete deletes a product. For more details see https://stripe.com/docs/api#delete_product.

func (Client) Get

func (c Client) Get(id string) (*stripe.Product, error)

func (Client) List

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

func (Client) New

func (c Client) New(params *stripe.ProductParams) (*stripe.Product, error)

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

func (Client) Update

func (c Client) Update(id string, params *stripe.ProductParams) (*stripe.Product, error)

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

type Iter

type Iter struct {
	*stripe.Iter
}

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

func List

func List(params *stripe.ProductListParams) *Iter

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

func (*Iter) Product

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

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

Jump to

Keyboard shortcuts

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