PHP Class Cartalyst\Stripe\Api\Orders

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

Public Methods

Method Description
all ( array $parameters = [] ) : array Returns a list of all the orders.
create ( array $parameters = [] ) : array Creates a new order.
find ( string $orderId ) : array Retrieves an existing order.
pay ( string $orderId, array $parameters = [] ) : array Pays the given order.
returnItems ( string $orderId, array $items = [] ) : array Returns the given order.
update ( string $orderId, array $parameters = [] ) : array Updates an existing order.

Method Details

all() public method

Returns a list of all the orders.
public all ( array $parameters = [] ) : array
$parameters array
return array

create() public method

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

find() public method

Retrieves an existing order.
public find ( string $orderId ) : array
$orderId string
return array

pay() public method

Pays the given order.
public pay ( string $orderId, array $parameters = [] ) : array
$orderId string
$parameters array
return array

returnItems() public method

Returns the given order.
public returnItems ( string $orderId, array $items = [] ) : array
$orderId string
$items array
return array

update() public method

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