PayPal\Api\PayerInfo::getTaxIdType PHP Method

getTaxIdType() public method

Payer’s tax ID type. Allowed values: BR_CPF or BR_CNPJ. Only supported when the payment_method is set to paypal.
public getTaxIdType ( ) : string
return string
    public function getTaxIdType()
    {
        return $this->tax_id_type;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param PayerInfo $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getEmail(), "TestSample");
     $this->assertEquals($obj->getExternalRememberMeId(), "TestSample");
     $this->assertEquals($obj->getBuyerAccountNumber(), "TestSample");
     $this->assertEquals($obj->getFirstName(), "TestSample");
     $this->assertEquals($obj->getLastName(), "TestSample");
     $this->assertEquals($obj->getPayerId(), "TestSample");
     $this->assertEquals($obj->getPhone(), "TestSample");
     $this->assertEquals($obj->getPhoneType(), "TestSample");
     $this->assertEquals($obj->getBirthDate(), "TestSample");
     $this->assertEquals($obj->getTaxId(), "TestSample");
     $this->assertEquals($obj->getTaxIdType(), "TestSample");
     $this->assertEquals($obj->getBillingAddress(), AddressTest::getObject());
     $this->assertEquals($obj->getShippingAddress(), ShippingAddressTest::getObject());
 }