PHP Class Recurly_Coupon, recurly-client-php

Inheritance: extends Recurly_Resource
Show file Open project: recurly/recurly-client-php Class Usage Examples

Protected Properties

Property Type Description
$_redeemUrl

Public Methods

Method Description
__construct ( $href = null, $client = null )
create ( )
createUpdateXML ( ) only uses the updateable attributes
delete ( )
deleteCoupon ( $couponCode, $client = null )
generate ( $number )
get ( $couponCode, $client = null )
redeemCoupon ( $accountCode, $currency, $subscriptionUUID = null )
restore ( )
update ( )

Protected Methods

Method Description
getNodeName ( )
getUpdatableAttributes ( )
getWriteableAttributes ( )
uri ( )
uriForCoupon ( $couponCode )

Method Details

__construct() public method

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

create() public method

public create ( )

createUpdateXML() public method

only uses the updateable attributes
public createUpdateXML ( )

delete() public method

public delete ( )

deleteCoupon() public static method

public static deleteCoupon ( $couponCode, $client = null )

generate() public method

public generate ( $number )

get() public static method

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

getNodeName() protected method

protected getNodeName ( )

getUpdatableAttributes() protected method

protected getUpdatableAttributes ( )

getWriteableAttributes() protected method

protected getWriteableAttributes ( )

redeemCoupon() public method

public redeemCoupon ( $accountCode, $currency, $subscriptionUUID = null )

restore() public method

public restore ( )

update() public method

public update ( )

uri() protected method

protected uri ( )

uriForCoupon() protected static method

protected static uriForCoupon ( $couponCode )

Property Details

$_redeemUrl protected property

protected $_redeemUrl