PHP Class Recurly_GiftCard, recurly-client-php

Inheritance: extends Recurly_Resource
Datei anzeigen Open project: recurly/recurly-client-php Class Usage Examples

Public Methods

Method Description
create ( )
get ( $giftCardId, $client = null ) Get a gift card by the id
preview ( ) Preview the creation and check for errors.
redeem ( $accountCode ) Redeem a gift card given an account code

Protected Methods

Method Description
getNodeName ( )
getWriteableAttributes ( )
uri ( )
uriForGiftCard ( $giftCardIdentifier )

Method Details

create() public method

public create ( )

get() public static method

Get a gift card by the id
public static get ( $giftCardId, $client = null )

getNodeName() protected method

protected getNodeName ( )

getWriteableAttributes() protected method

protected getWriteableAttributes ( )

preview() public method

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

redeem() public method

Redeem a gift card given an account code
public redeem ( $accountCode )

uri() protected method

protected uri ( )

uriForGiftCard() protected static method

protected static uriForGiftCard ( $giftCardIdentifier )