PHP Class PayPal\Api\Cost

Inheritance: extends PayPal\Common\PPModel
Mostra file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getAmount ( ) : PayPal\Api\Currency The cost, as an amount. Valid range is from 0 to 1,000,000.
getPercent ( ) : string Cost in percent. Range of 0 to 100.
setAmount ( PayPal\Api\Currency $amount ) The cost, as an amount. Valid range is from 0 to 1,000,000.
setPercent ( string $percent ) Cost in percent. Range of 0 to 100.

Method Details

getAmount() public method

The cost, as an amount. Valid range is from 0 to 1,000,000.
public getAmount ( ) : PayPal\Api\Currency
return PayPal\Api\Currency

getPercent() public method

Cost in percent. Range of 0 to 100.
public getPercent ( ) : string
return string

setAmount() public method

The cost, as an amount. Valid range is from 0 to 1,000,000.
public setAmount ( PayPal\Api\Currency $amount )
$amount PayPal\Api\Currency

setPercent() public method

Cost in percent. Range of 0 to 100.
public setPercent ( string $percent )
$percent string