PHP Class Cartalyst\Stripe\Api\Coupons

Inheritance: extends Api
Show file Open project: cartalyst/stripe

Public Methods

Method Description
all ( array $parameters = [] ) : array Lists all coupons.
create ( array $parameters = [] ) : array Creates a new coupon.
delete ( string $couponId ) : array Deletes an existing coupon.
find ( string $couponId ) : array Retrieves an existing coupon.
update ( string $couponId, array $parameters = [] ) : array Updates an existing coupon.

Method Details

all() public method

Lists all coupons.
public all ( array $parameters = [] ) : array
$parameters array
return array

create() public method

Creates a new coupon.
public create ( array $parameters = [] ) : array
$parameters array
return array

delete() public method

Deletes an existing coupon.
public delete ( string $couponId ) : array
$couponId string
return array

find() public method

Retrieves an existing coupon.
public find ( string $couponId ) : array
$couponId string
return array

update() public method

Updates an existing coupon.
public update ( string $couponId, array $parameters = [] ) : array
$couponId string
$parameters array
return array