PayPal\Api\Payer::getAccountType PHP Method

getAccountType() public method

Type of account relationship payer has with PayPal.
Deprecation: Not publicly available
public getAccountType ( ) : string
return string
    public function getAccountType()
    {
        return $this->account_type;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param Payer $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getPaymentMethod(), "TestSample");
     $this->assertEquals($obj->getStatus(), "TestSample");
     $this->assertEquals($obj->getAccountType(), "TestSample");
     $this->assertEquals($obj->getAccountAge(), "TestSample");
     $this->assertEquals($obj->getFundingInstruments(), FundingInstrumentTest::getObject());
     $this->assertEquals($obj->getFundingOptionId(), "TestSample");
     $this->assertEquals($obj->getFundingOption(), FundingOptionTest::getObject());
     $this->assertEquals($obj->getRelatedFundingOption(), FundingOptionTest::getObject());
     $this->assertEquals($obj->getPayerInfo(), PayerInfoTest::getObject());
 }