PHP Class Recurly_GiftCard, 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
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

Méthodes protégées

Méthode Description
getNodeName ( )
getWriteableAttributes ( )
uri ( )
uriForGiftCard ( $giftCardIdentifier )

Method Details

create() public méthode

public create ( )

get() public static méthode

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

getNodeName() protected méthode

protected getNodeName ( )

getWriteableAttributes() protected méthode

protected getWriteableAttributes ( )

preview() public méthode

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

redeem() public méthode

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

uri() protected méthode

protected uri ( )

uriForGiftCard() protected static méthode

protected static uriForGiftCard ( $giftCardIdentifier )