PHP Class Cartalyst\Stripe\Api\Customers

Inheritance: extends Api
Afficher le fichier Open project: cartalyst/stripe

Méthodes publiques

Méthode 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 méthode

Lists all customers.
public all ( array $parameters = [] ) : array
$parameters array
Résultat array

applyDiscount() public méthode

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

create() public méthode

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

delete() public méthode

Deletes an existing customer.
public delete ( string $customerId ) : array
$customerId string
Résultat array

deleteDiscount() public méthode

Deletes an existing customer discount.
public deleteDiscount ( string $customerId ) : array
$customerId string
Résultat array

find() public méthode

Retrieves an existing customer.
public find ( string $customerId ) : array
$customerId string
Résultat array

update() public méthode

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