PayPal\Api\Tax::getAmount PHP Method

getAmount() public method

The tax as a monetary amount. Cannot be specified in a request.
public getAmount ( ) : PayPal\Api\Currency
return PayPal\Api\Currency
    public function getAmount()
    {
        return $this->amount;
    }

Usage Example

示例#1
0
 /**
  * @depends testSerializationDeserialization
  * @param Tax $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getPercent(), "12.34");
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
 }