Documentation ¶
Overview ¶
Package coupon provides the /coupons APIs
Index ¶
- Constants
- func Del(id string) (*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) (*stripe.Coupon, error)
- func (c Client) Get(id string, params *stripe.CouponParams) (*stripe.Coupon, error)
- func (c Client) List(params *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 ¶
View Source
const ( Forever stripe.CouponDuration = "forever" Once stripe.CouponDuration = "once" Repeating stripe.CouponDuration = "repeating" )
Variables ¶
This section is empty.
Functions ¶
func Del ¶
Del removes a coupon. For more details see https://stripe.com/docs/api#delete_coupon.
func Get ¶
Get returns the details of a coupon. For more details see https://stripe.com/docs/api#retrieve_coupon.
func New ¶
func New(params *stripe.CouponParams) (*stripe.Coupon, error)
New POSTs new coupons. For more details see https://stripe.com/docs/api#create_coupon.
func Update ¶
Update updates a coupon's properties. For more details see https://stripe.com/docs/api#update_coupon.
Types ¶
type Iter ¶
Iter is an iterator for lists of Coupons. The embedded Iter carries methods with it; see its documentation for details.
func List ¶
func List(params *stripe.CouponListParams) *Iter
List returns a list of coupons. For more details see https://stripe.com/docs/api#list_coupons.
Click to show internal directories.
Click to hide internal directories.