coupon

package
v0.0.0-...-d8ed325 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package coupon provides the /coupons APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(params *CouponParams) (*Coupon, error)

Create POSTs new coupons. For more details see https://stripe.com/docs/api#create_coupon.

func Delete

func Delete(id string) error

Delete removes a coupon. For more details see https://stripe.com/docs/api#delete_coupon.

func Get

func Get(id string, params *CouponParams) (*Coupon, error)

Get returns the details of a coupon. For more details see https://stripe.com/docs/api#retrieve_coupon.

func List

func List(params *CouponListParams) *CouponIter

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

Types

type Client

type Client struct {
	B   Backend
	Tok string
}

Client is used to invoke /coupons APIs.

func (Client) Create

func (c Client) Create(params *CouponParams) (*Coupon, error)

func (Client) Delete

func (c Client) Delete(id string) error

func (Client) Get

func (c Client) Get(id string, params *CouponParams) (*Coupon, error)

func (Client) List

func (c Client) List(params *CouponListParams) *CouponIter

Jump to

Keyboard shortcuts

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