Documentation ¶
Overview ¶
Package coupon provides the /coupons APIs
Index ¶
- func Del(id string, params *stripe.CouponParams) (*stripe.Coupon, error)
- func Get(id string, params *stripe.CouponParams) (*stripe.Coupon, error)
- func New(params *stripe.CouponParams) (*stripe.Coupon, error)
- func Update(id string, params *stripe.CouponParams) (*stripe.Coupon, error)
- type Client
- func (c Client) Del(id string, params *stripe.CouponParams) (*stripe.Coupon, error)
- func (c Client) Get(id string, params *stripe.CouponParams) (*stripe.Coupon, error)
- func (c Client) List(listParams *stripe.CouponListParams) *Iter
- func (c Client) New(params *stripe.CouponParams) (*stripe.Coupon, error)
- func (c Client) Update(id string, params *stripe.CouponParams) (*stripe.Coupon, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client is used to invoke /coupons APIs.
func (Client) List ¶
func (c Client) List(listParams *stripe.CouponListParams) *Iter
List returns a list of coupons.
type Iter ¶
Iter is an iterator for coupons.
func (*Iter) CouponList ¶
func (i *Iter) CouponList() *stripe.CouponList
CouponList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
Click to show internal directories.
Click to hide internal directories.