Documentation ¶
Overview ¶
Package product provides the /products APIs
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(listParams *stripe.ProductListParams) *Iter
- func (c Client) New(params *stripe.ProductParams) (*stripe.Product, error)
- func (c Client) Search(params *stripe.ProductSearchParams) *SearchIter
- func (c Client) Update(id string, params *stripe.ProductParams) (*stripe.Product, error)
- type Iter
- type SearchIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client is used to invoke /products APIs.
func (Client) List ¶
func (c Client) List(listParams *stripe.ProductListParams) *Iter
List returns a list of products.
func (Client) Search ¶
func (c Client) Search(params *stripe.ProductSearchParams) *SearchIter
Search returns a search result containing products.
type Iter ¶
Iter is an iterator for products.
func (*Iter) ProductList ¶
func (i *Iter) ProductList() *stripe.ProductList
ProductList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
type SearchIter ¶
type SearchIter struct {
*stripe.SearchIter
}
SearchIter is an iterator for products.
func Search ¶
func Search(params *stripe.ProductSearchParams) *SearchIter
Search returns a search result containing products.
func (*SearchIter) Product ¶
func (i *SearchIter) Product() *stripe.Product
Product returns the product which the iterator is currently pointing to.
func (*SearchIter) ProductSearchResult ¶
func (i *SearchIter) ProductSearchResult() *stripe.ProductSearchResult
ProductSearchResult returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.