Documentation ¶
Index ¶
- func Del(id string, params *stripe.ProductParams) (*stripe.Product, error)
- func Get(id string, params *stripe.ProductParams) (*stripe.Product, error)
- func New(params *stripe.ProductParams) (*stripe.Product, error)
- func Update(id string, params *stripe.ProductParams) (*stripe.Product, error)
- type Client
- func (c Client) Del(id string, params *stripe.ProductParams) (*stripe.Product, error)
- func (c Client) Get(id string, params *stripe.ProductParams) (*stripe.Product, error)
- func (c Client) List(params *stripe.ProductListParams) *Iter
- func (c Client) New(params *stripe.ProductParams) (*stripe.Product, error)
- func (c Client) Update(id string, params *stripe.ProductParams) (*stripe.Product, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
Delete deletes a product For more details see https://stripe.com/docs/api#delete_product.
func Get ¶
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 ¶
Update updates a product's properties. For more details see https://stripe.com/docs/api#update_product.
Types ¶
type Client ¶
Client is used to invoke /products APIs.
func (Client) Del ¶
Delete deletes a product. For more details see https://stripe.com/docs/api#delete_product.
func (Client) New ¶
New POSTs a new product. For more details see https://stripe.com/docs/api#create_product.
func (Client) Update ¶
Update updates a product's properties. For more details see https://stripe.com/docs/api#update_product.
type 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