PHP Class Scalr_Billing

Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Свойство Type Description
$customerId
$package
$subscriptionId

Méthodes publiques

Méthode Description
__construct ( )
applyCoupon ( $code )
cancelSubscription ( )
changePackage ( $newPackage )
createSubscription ( $package, $ccNumber, $ccExpMonth, $ccExpYear, $ccCvv, $fName = "", $lName = "", $postalCode = "" )
getAvailablePackages ( )
getInfo ( )
getInvoices ( $addText = false )
getLimits ( $package )
getSCUByInstanceType ( $serverType, $platform )
init ( ) : Scalr_Billing
loadByAccount ( Scalr_Account $account ) : Scalr_Billing
reactivateSubscription ( )
reportScuUsage ( $scu, $memo )
setComponentValue ( $componentId, $value )
setPackage ( $package )
updateCreditCard ( $ccNumber, $ccCvv, $ccExpMonth, $ccExpYear, $fName, $lName, $postalCode )

Méthodes protégées

Méthode Description
getCurrentScuUsage ( )

Private Methods

Méthode Description
setLimits ( $package )

Method Details

__construct() public méthode

public __construct ( )

applyCoupon() public méthode

public applyCoupon ( $code )

cancelSubscription() public méthode

public cancelSubscription ( )

changePackage() public méthode

public changePackage ( $newPackage )

createSubscription() public méthode

public createSubscription ( $package, $ccNumber, $ccExpMonth, $ccExpYear, $ccCvv, $fName = "", $lName = "", $postalCode = "" )

getAvailablePackages() public méthode

getCurrentScuUsage() protected méthode

protected getCurrentScuUsage ( )

getInfo() public méthode

public getInfo ( )

getInvoices() public méthode

public getInvoices ( $addText = false )

getLimits() public méthode

public getLimits ( $package )

getSCUByInstanceType() public static méthode

public static getSCUByInstanceType ( $serverType, $platform )

init() public static méthode

public static init ( ) : Scalr_Billing
Résultat Scalr_Billing

loadByAccount() public méthode

public loadByAccount ( Scalr_Account $account ) : Scalr_Billing
$account Scalr_Account
Résultat Scalr_Billing

reactivateSubscription() public méthode

reportScuUsage() public méthode

public reportScuUsage ( $scu, $memo )

setComponentValue() public méthode

public setComponentValue ( $componentId, $value )

setPackage() public méthode

public setPackage ( $package )

updateCreditCard() public méthode

public updateCreditCard ( $ccNumber, $ccCvv, $ccExpMonth, $ccExpYear, $fName, $lName, $postalCode )

Property Details

$customerId public_oe property

public $customerId

$package public_oe property

public $package

$subscriptionId public_oe property

public $subscriptionId