PHP 클래스 Cartalyst\Stripe\Api\Subscriptions

상속: extends Api
파일 보기 프로젝트 열기: cartalyst/stripe

공개 메소드들

메소드 설명
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