PayPal\Api\RefundDetail::getAmount PHP Method

getAmount() public method

Amount to be recorded as refund against invoice. If this field is not passed, the total invoice paid amount is recorded as refund.
public getAmount ( ) : PayPal\Api\Currency
return PayPal\Api\Currency
    public function getAmount()
    {
        return $this->amount;
    }

Usage Example

コード例 #1
0
ファイル: RefundDetailTest.php プロジェクト: bontiv/intrateb
 /**
  * @depends testSerializationDeserialization
  * @param RefundDetail $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getDate(), "TestSample");
     $this->assertEquals($obj->getNote(), "TestSample");
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
 }