PayPal\Api\Refund::getInvoiceNumber PHP Method

getInvoiceNumber() public method

Your own invoice or tracking ID number. Character length and limitations: 127 single-byte alphanumeric characters.
public getInvoiceNumber ( ) : string
return string
    public function getInvoiceNumber()
    {
        return $this->invoice_number;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param Refund $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getAmount(), AmountTest::getObject());
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getReason(), "TestSample");
     $this->assertEquals($obj->getInvoiceNumber(), "TestSample");
     $this->assertEquals($obj->getSaleId(), "TestSample");
     $this->assertEquals($obj->getCaptureId(), "TestSample");
     $this->assertEquals($obj->getParentPayment(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getReasonCode(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }