PHP Class Cartalyst\Stripe\Api\Customers

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

Public Methods

Method Description
all ( array $parameters = [] ) : array Lists all customers.
applyDiscount ( string $customerId, string $couponId ) : array Applies the given discount on the given customer.
create ( array $parameters = [] ) : array Creates a new customer.
delete ( string $customerId ) : array Deletes an existing customer.
deleteDiscount ( string $customerId ) : array Deletes an existing customer discount.
find ( string $customerId ) : array Retrieves an existing customer.
update ( string $customerId, array $parameters = [] ) : array Updates an existing customer.

Method Details

all() public method

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

applyDiscount() public method

Applies the given discount on the given customer.
public applyDiscount ( string $customerId, string $couponId ) : array
$customerId string
$couponId string
return array

create() public method

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

delete() public method

Deletes an existing customer.
public delete ( string $customerId ) : array
$customerId string
return array

deleteDiscount() public method

Deletes an existing customer discount.
public deleteDiscount ( string $customerId ) : array
$customerId string
return array

find() public method

Retrieves an existing customer.
public find ( string $customerId ) : array
$customerId string
return array

update() public method

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