PHP Class Scalr_Billing

Exibir arquivo Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$customerId
$package
$subscriptionId

Public Methods

Method 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 )

Protected Methods

Method Description
getCurrentScuUsage ( )

Private Methods

Method Description
setLimits ( $package )

Method Details

__construct() public method

public __construct ( )

applyCoupon() public method

public applyCoupon ( $code )

cancelSubscription() public method

public cancelSubscription ( )

changePackage() public method

public changePackage ( $newPackage )

createSubscription() public method

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

getAvailablePackages() public method

getCurrentScuUsage() protected method

protected getCurrentScuUsage ( )

getInfo() public method

public getInfo ( )

getInvoices() public method

public getInvoices ( $addText = false )

getLimits() public method

public getLimits ( $package )

getSCUByInstanceType() public static method

public static getSCUByInstanceType ( $serverType, $platform )

init() public static method

public static init ( ) : Scalr_Billing
return Scalr_Billing

loadByAccount() public method

public loadByAccount ( Scalr_Account $account ) : Scalr_Billing
$account Scalr_Account
return Scalr_Billing

reactivateSubscription() public method

reportScuUsage() public method

public reportScuUsage ( $scu, $memo )

setComponentValue() public method

public setComponentValue ( $componentId, $value )

setPackage() public method

public setPackage ( $package )

updateCreditCard() public method

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