PayPal\Api\Capture::getIsFinalCapture PHP Method

getIsFinalCapture() public method

Indicates whether to release all remaining funds that the authorization holds in the funding instrument. Default is false.
public getIsFinalCapture ( ) : boolean
return boolean
    public function getIsFinalCapture()
    {
        return $this->is_final_capture;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param Capture $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getAmount(), AmountTest::getObject());
     $this->assertEquals($obj->getIsFinalCapture(), true);
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getParentPayment(), "TestSample");
     $this->assertEquals($obj->getTransactionFee(), CurrencyTest::getObject());
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }