src/Resource/Account.php
public function setIdentityDocument($number, $issuer, $issueDate, $type = 'RG')
    {
        $this->data->person->identityDocument = new stdClass();
        $this->data->person->identityDocument->type = $type;
        $this->data->person->identityDocument->number = $number;
        $this->data->person->identityDocument->issuer = $issuer;
        $this->data->person->identityDocument->issueDate = $issueDate;

        return $this;
    }
public function setIdentityDocument($number, $issuer, $issueDate, $type = 'RG')
    {
        $this->data->person->identityDocument = new stdClass();
        $this->data->person->identityDocument->type = $type;
        $this->data->person->identityDocument->number = $number;
        $this->data->person->identityDocument->issuer = $issuer;
        $this->data->person->identityDocument->issueDate = $issueDate;

        return $this;
    }
public function setIdentityDocument ( $ number , $ issuer , $ issueDate , $ type = 'RG' ) { $ this -> data -> person -> identityDocument = new stdClass ( ) ; $ this -> data -> person -> identityDocument -> type = $ type ; $ this -> data -> person -> identityDocument -> number = $ number ; $ this -> data -> person -> identityDocument -> issuer = $ issuer ; $ this -> data -> person -> identityDocument -> issueDate = $ issueDate ; return $ this ; }
Set identity document from account.

@param string $number Número do documento.
@param string $issuer Emissor do documento.
@param $issueDate
@param string $type Tipo do documento. Valores possíveis: RG.

@return Account
Set identity document from account .