PHP Class PayPal\Api\Cost

Inheritance: extends PayPal\Common\PPModel
Afficher le fichier Open project: paypal/rest-api-sdk-php Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getPercent() public méthode

Cost in percent. Range of 0 to 100.
public getPercent ( ) : string
Résultat string

setAmount() public méthode

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 méthode

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