PHP Класс Cartalyst\Stripe\Api\Subscriptions

Наследование: extends Api
Показать файл Открыть проект

Открытые методы

Метод Описание
all ( string $customerId, array $parameters = [] ) : array Lists all subscriptions from the given customer.
applyDiscount ( string $customerId, string $subscriptionId, string $couponId ) : array Applies the given discount on the given subscription.
cancel ( string $customerId, string $subscriptionId, boolean $atPeriodEnd = false ) : array Cancels an existing subscription from the given customer.
create ( string $customerId, array $parameters = [] ) : array Creates a new subscription on the given customer.
deleteDiscount ( string $customerId, string $subscriptionId ) : array Deletes an existing subscription discount.
find ( string $customerId, string $subscriptionId ) : array Retrieves an existing subscription from the given customer.
reactivate ( string $customerId, string $subscriptionId, array $attributes = [] ) : array Reactivates an existing canceled subscription from the given customer.
update ( string $customerId, string $subscriptionId, array $parameters = [] ) : array Updates an existing subscription from the given customer.

Описание методов

all() публичный метод

Lists all subscriptions from the given customer.
public all ( string $customerId, array $parameters = [] ) : array
$customerId string
$parameters array
Результат array

applyDiscount() публичный метод

Applies the given discount on the given subscription.
public applyDiscount ( string $customerId, string $subscriptionId, string $couponId ) : array
$customerId string
$subscriptionId string
$couponId string
Результат array

cancel() публичный метод

Cancels an existing subscription from the given customer.
public cancel ( string $customerId, string $subscriptionId, boolean $atPeriodEnd = false ) : array
$customerId string
$subscriptionId string
$atPeriodEnd boolean
Результат array

create() публичный метод

Creates a new subscription on the given customer.
public create ( string $customerId, array $parameters = [] ) : array
$customerId string
$parameters array
Результат array

deleteDiscount() публичный метод

Deletes an existing subscription discount.
public deleteDiscount ( string $customerId, string $subscriptionId ) : array
$customerId string
$subscriptionId string
Результат array

find() публичный метод

Retrieves an existing subscription from the given customer.
public find ( string $customerId, string $subscriptionId ) : array
$customerId string
$subscriptionId string
Результат array

reactivate() публичный метод

Reactivates an existing canceled subscription from the given customer.
public reactivate ( string $customerId, string $subscriptionId, array $attributes = [] ) : array
$customerId string
$subscriptionId string
$attributes array
Результат array

update() публичный метод

Updates an existing subscription from the given customer.
public update ( string $customerId, string $subscriptionId, array $parameters = [] ) : array
$customerId string
$subscriptionId string
$parameters array
Результат array