PHP Class Recurly_Subscription, recurly-client-php

Inheritance: extends Recurly_Resource
Afficher le fichier Open project: recurly/recurly-client-php Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $href = null, $client = null )
buildUsage ( $addOnCode, $client = null )
cancel ( ) Cancel the subscription; it will remain active until it renews.
create ( )
get ( $uuid, $client = null )
postpone ( $nextRenewalDate, $bulk = false ) Postpone a subscription's renewal date.
preview ( ) Preview the creation and check for errors.
reactivate ( ) Reactivate a canceled subscription. The subscription will return back to the active, auto renewing state.
terminateAndPartialRefund ( ) Terminate the subscription immediately and issue a prorated/partial refund of the last renewal
terminateAndRefund ( ) Terminate the subscription immediately and issue a full refund of the last renewal
terminateWithoutRefund ( ) Terminate the subscription immediately without a refund
updateAtRenewal ( ) Make an update that applies when the subscription renews.
updateImmediately ( ) Make an update that takes effect immediately.
updateNotes ( $notes ) Updates the notes fields of the subscription without generating a SubscriptionChange.
usages ( $addOnCode, $params = null )

Méthodes protégées

Méthode Description
getNodeName ( )
getWriteableAttributes ( )
uri ( )
uriForSubscription ( $uuid )

Private Methods

Méthode Description
terminate ( $refundType )

Method Details

__construct() public méthode

public __construct ( $href = null, $client = null )

buildUsage() public méthode

public buildUsage ( $addOnCode, $client = null )

cancel() public méthode

Cancel the subscription; it will remain active until it renews.
public cancel ( )

create() public méthode

public create ( )

get() public static méthode

public static get ( $uuid, $client = null )

getNodeName() protected méthode

protected getNodeName ( )

getWriteableAttributes() protected méthode

protected getWriteableAttributes ( )

postpone() public méthode

Postpone a subscription's renewal date.
public postpone ( $nextRenewalDate, $bulk = false )

preview() public méthode

Note: once preview() has been called you will not be able to call create() or save() without reassiging all the attributes.
public preview ( )

reactivate() public méthode

Reactivate a canceled subscription. The subscription will return back to the active, auto renewing state.
public reactivate ( )

terminateAndPartialRefund() public méthode

Terminate the subscription immediately and issue a prorated/partial refund of the last renewal

terminateAndRefund() public méthode

Terminate the subscription immediately and issue a full refund of the last renewal
public terminateAndRefund ( )

terminateWithoutRefund() public méthode

Terminate the subscription immediately without a refund

updateAtRenewal() public méthode

Make an update that applies when the subscription renews.
public updateAtRenewal ( )

updateImmediately() public méthode

Make an update that takes effect immediately.
public updateImmediately ( )

updateNotes() public méthode

Updates the notes fields of the subscription without generating a SubscriptionChange.
public updateNotes ( $notes )

uri() protected méthode

protected uri ( )

uriForSubscription() protected static méthode

protected static uriForSubscription ( $uuid )

usages() public méthode

public usages ( $addOnCode, $params = null )