Method |
Description |
|
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. |
|