PayPal\Api\BankAccount::getMerchantId PHP Method

getMerchantId() public method

A unique identifier of the merchant for which this bank account has been stored for. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant.
public getMerchantId ( ) : string
return string
    public function getMerchantId()
    {
        return $this->merchant_id;
    }

Usage Example

Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param BankAccount $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getAccountNumber(), "TestSample");
     $this->assertEquals($obj->getAccountNumberType(), "TestSample");
     $this->assertEquals($obj->getRoutingNumber(), "TestSample");
     $this->assertEquals($obj->getAccountType(), "TestSample");
     $this->assertEquals($obj->getAccountName(), "TestSample");
     $this->assertEquals($obj->getCheckType(), "TestSample");
     $this->assertEquals($obj->getAuthType(), "TestSample");
     $this->assertEquals($obj->getAuthCaptureTimestamp(), "TestSample");
     $this->assertEquals($obj->getBankName(), "TestSample");
     $this->assertEquals($obj->getCountryCode(), "TestSample");
     $this->assertEquals($obj->getFirstName(), "TestSample");
     $this->assertEquals($obj->getLastName(), "TestSample");
     $this->assertEquals($obj->getBirthDate(), "TestSample");
     $this->assertEquals($obj->getBillingAddress(), AddressTest::getObject());
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getConfirmationStatus(), "TestSample");
     $this->assertEquals($obj->getPayerId(), "TestSample");
     $this->assertEquals($obj->getExternalCustomerId(), "TestSample");
     $this->assertEquals($obj->getMerchantId(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getValidUntil(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }