Exemplo n.º 1
0
 protected function setFieldsFromJsonObj($jsonObj)
 {
     if (isset($jsonObj->codice)) {
         $this->setCodice($jsonObj->codice);
     }
     if (isset($jsonObj->committente)) {
         $this->setCommittente($jsonObj->committente);
     }
     if (isset($jsonObj->dataRegEsenzione) && !empty($jsonObj->dataRegEsenzione)) {
         $this->setDataRegEsenzione($jsonObj->dataRegEsenzione);
     }
     if (isset($jsonObj->numeroRegEsenzione)) {
         $this->setNumeroRegEsenzione($jsonObj->numeroRegEsenzione);
     }
     if (isset($jsonObj->dataScadenzaEsenzione) && !empty($jsonObj->dataScadenzaEsenzione)) {
         $this->setDataScadenzaEsenzione($jsonObj->dataScadenzaEsenzione);
     }
     if (isset($jsonObj->numeroEsenzione)) {
         $this->setNumeroEsenzione($jsonObj->numeroEsenzione);
     }
     if (isset($jsonObj->dataEsenzione) && !empty($jsonObj->dataEsenzione)) {
         $this->setDataEsenzione($jsonObj->dataEsenzione);
     }
     if (isset($jsonObj->personaDaContattare)) {
         $this->setPersonaDaContattare($jsonObj->personaDaContattare);
     }
     if (isset($jsonObj->email)) {
         $this->setEmail($jsonObj->email);
     }
     if (isset($jsonObj->contoCorrente)) {
         $this->setContoCorrente($jsonObj->contoCorrente);
     }
     if (isset($jsonObj->codicePaese)) {
         $this->setCodicePaese($jsonObj->codicePaese);
     }
     if (isset($jsonObj->iban)) {
         $this->setIban($jsonObj->iban);
     }
     if (isset($jsonObj->swift)) {
         $this->setSwift($jsonObj->swift);
     }
     if (isset($jsonObj->note)) {
         $this->setNote($jsonObj->note);
     }
     if (isset($jsonObj->soggetto)) {
         $this->setSoggetto(Soggetto::fromJson($jsonObj->soggetto, $this->_xapiClient));
     }
     if (isset($jsonObj->tipoSoggetto)) {
         $this->setTipoSoggetto(TipoSoggetto::fromJson($jsonObj->tipoSoggetto, $this->_xapiClient));
     }
     if (isset($jsonObj->sedeDocumento)) {
         $this->setSedeDocumento(Sede::fromJson($jsonObj->sedeDocumento, $this->_xapiClient));
     }
     if (isset($jsonObj->sedeMerce)) {
         $this->setSedeMerce(Sede::fromJson($jsonObj->sedeMerce, $this->_xapiClient));
     }
     if (isset($jsonObj->sedeRiba)) {
         $this->setSedeRiba(Sede::fromJson($jsonObj->sedeRiba, $this->_xapiClient));
     }
     if (isset($jsonObj->esenzioneIva)) {
         $this->setEsenzioneIva(Iva::fromJson($jsonObj->esenzioneIva, $this->_xapiClient));
     }
     if (isset($jsonObj->agente)) {
         $this->setAgente(Agente::fromJson($jsonObj->agente, $this->_xapiClient));
     }
     if (isset($jsonObj->listino)) {
         $this->setListino(Listino::fromJson($jsonObj->listino, $this->_xapiClient));
     }
     if (isset($jsonObj->modalitaPagamento)) {
         $this->setModalitaPagamento(ModalitaPagamento::fromJson($jsonObj->modalitaPagamento, $this->_xapiClient));
     }
     if (isset($jsonObj->deposito)) {
         $this->setDeposito(Deposito::fromJson($jsonObj->deposito, $this->_xapiClient));
     }
     if (isset($jsonObj->banca)) {
         $this->setBanca(Banca::fromJson($jsonObj->banca, $this->_xapiClient));
     }
 }
Exemplo n.º 2
0
 protected function setFieldsFromJsonObj($jsonObj)
 {
     if (isset($jsonObj->nome)) {
         $this->setNome($jsonObj->nome);
     }
     if (isset($jsonObj->descrizione)) {
         $this->setCodiceNumeratore($jsonObj->codiceNumeratore);
     }
     if (isset($jsonObj->moltiplicatore)) {
         $this->setMoltiplicatore($jsonObj->moltiplicatore);
     }
     if (isset($jsonObj->causaleContabile)) {
         $this->setCausaleContabile(CausaleContabile::fromJson($jsonObj->causaleContabile, $this->_xapiClient));
     }
     if (isset($jsonObj->causaleMagazzino)) {
         $this->setCausaleMagazzino(CausaleMagazzino::fromJson($jsonObj->causaleMagazzino, $this->_xapiClient));
     }
     if (isset($jsonObj->causaleMagazzino2)) {
         $this->setCausaleMagazzino2(CausaleMagazzino::fromJson($jsonObj->causaleMagazzino2, $this->_xapiClient));
     }
     if (isset($jsonObj->tipoSoggetto)) {
         $this->setTipoSoggetto(TipoSoggetto::fromJson($jsonObj->tipoSoggetto, $this->_xapiClient));
     }
 }