PHP Class PayPal\Api\CustomAmount

The custom amount applied on an invoice. If you include a label, the amount cannot be empty.
Inheritance: extends PayPal\Common\PayPalModel
Show file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getAmount ( ) : PayPal\Api\Currency The custom amount value. Valid range is from -999999.99 to 999999.99.
getLabel ( ) : string The custom amount label. Maximum length is 25 characters.
setAmount ( PayPal\Api\Currency $amount ) The custom amount value. Valid range is from -999999.99 to 999999.99.
setLabel ( string $label ) The custom amount label. Maximum length is 25 characters.

Method Details

getAmount() public method

The custom amount value. Valid range is from -999999.99 to 999999.99.
public getAmount ( ) : PayPal\Api\Currency
return PayPal\Api\Currency

getLabel() public method

The custom amount label. Maximum length is 25 characters.
public getLabel ( ) : string
return string

setAmount() public method

The custom amount value. Valid range is from -999999.99 to 999999.99.
public setAmount ( PayPal\Api\Currency $amount )
$amount PayPal\Api\Currency

setLabel() public method

The custom amount label. Maximum length is 25 characters.
public setLabel ( string $label )
$label string