PHP Class PayPal\Api\Tax

Tax information.
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 tax as a monetary amount. Cannot be specified in a request.
getId ( ) : string The resource ID.
getName ( ) : string The tax name. Maximum length is 20 characters.
getPercent ( ) : string The rate of the specified tax. Valid range is from 0.001 to 99.999.
setAmount ( PayPal\Api\Currency $amount ) The tax as a monetary amount. Cannot be specified in a request.
setId ( string $id ) The resource ID.
setName ( string $name ) The tax name. Maximum length is 20 characters.
setPercent ( string | double $percent ) The rate of the specified tax. Valid range is from 0.001 to 99.999.

Method Details

getAmount() public method

The tax as a monetary amount. Cannot be specified in a request.
public getAmount ( ) : PayPal\Api\Currency
return PayPal\Api\Currency

getId() public method

The resource ID.
public getId ( ) : string
return string

getName() public method

The tax name. Maximum length is 20 characters.
public getName ( ) : string
return string

getPercent() public method

The rate of the specified tax. Valid range is from 0.001 to 99.999.
public getPercent ( ) : string
return string

setAmount() public method

The tax as a monetary amount. Cannot be specified in a request.
public setAmount ( PayPal\Api\Currency $amount )
$amount PayPal\Api\Currency

setId() public method

The resource ID.
public setId ( string $id )
$id string

setName() public method

The tax name. Maximum length is 20 characters.
public setName ( string $name )
$name string

setPercent() public method

The rate of the specified tax. Valid range is from 0.001 to 99.999.
public setPercent ( string | double $percent )
$percent string | double