Untitled

 avatar
unknown
php
10 months ago
3.9 kB
4
Indexable
public function __construct($boleto) {
        $this->CONVENIO_COD             = $boleto->CONVENIO_COD_BANCO;
        $this->CONVENIO_COD_CONVENIO    = $boleto->CONVENIO_COD_CONVENIO;
        $this->PAGADOR_TP_DOC           = $boleto->TX_PAGA_COD_TIPO_PESSOA;
        $this->PAGADOR_NUM_DOC          = $boleto->TX_PAGA_NR_CAD_PES_FIS_JUR;
        $this->PAGADOR_NOME             = $boleto->TX_PAGA_NOME_PESSOA;
        $this->PAGADOR_ENDER            = $boleto->TX_END_NO_LOGRADOURO;
        $this->PAGADOR_BAIRRO           = $boleto->TX_END_NO_BAIRRO;
        $this->PAGADOR_CIDADE           = $boleto->TX_END_NO_CIDADE;
        $this->PAGADOR_UF               = $boleto->TX_END_UF;
        $this->PAGADOR_CEP              = $boleto->TX_END_CEP;
        $this->TITULO_NOSSO_NUMERO      = $boleto->TX_IND_NOSSO_NUMERO;
        $this->TITULO_SEU_NUMERO        = $boleto->TX_SEU_NUMERO;
        $this->TITULO_DT_VENCTO         = $boleto->TX_IND_DT_VENCIMENTO;
        $this->TITULO_DT_EMISSAO        = $boleto->TX_DBOL_DT_EMISSAO;
        $this->TITULO_ESPECIE           = $boleto->TX_DBOL_COD_ESPECIE;
        $this->TITULO_VL_NOMINAL        = $boleto->TX_IND_VL_TITULO;
        $this->TITULO_PC_MULTA          = $boleto->TX_MUL_VL_PERC_MULTA;
        $this->TITULO_QT_DIAS_MULTA     = $boleto->TX_MUL_DIAS_PERC_MULT;
        $this->TITULO_PC_JURO           = $boleto->TX_JUR_VL_PERC_JUROS;
        $this->TITULO_TP_DESC           = $boleto->TX_DES_COD_TIPO_DESC;
        $this->TITULO_VL_DESC           = $boleto->TX_DES_VL_DESC;
        $this->TITULO_DT_LIMI_DESC      = $boleto->TX_DES_DT_DESC;
        $this->TITULO_VL_DESC2          = $boleto->TX_DES_VL_DESC2;
        $this->TITULO_DT_LIMI_DESC2     = $boleto->TX_DES_DT_DESC2;
        $this->TITULO_VL_DESC3          = $boleto->TX_DES_VL_DESC3;
        $this->TITULO_DT_LIMI_DESC3     = $boleto->TX_DES_DT_DESC3;
        $this->TITULO_VL_ABATIMENTO     = $boleto->TX_DBOL_VL_ABATIMENTO;
        $this->TITULO_TP_PROTESTO       = $boleto->TX_PRO_PROTESTO;
        $this->TITULO_QT_DIAS_PROTESTO  = $boleto->TX_PRO_QTDE_DIAS_PROT;
        $this->TITULO_QT_DIAS_BAIXA     = $boleto->NR_QTDE_DIAS_BAIXA_BOLETO;
        $this->TITULO_TP_PAGAMENTO      = $boleto->TX_DIV_CD_TIPO_AUTOR;
        $this->TITULO_QT_PARCIAIS       = $boleto->QTDE_DIV_PAGTOS;
        $this->TITULO_TP_VALOR          = 1;
        $this->TITULO_VL_PERC_MINIMO    = $boleto->TX_DIV_PERC_MINIMO;
        $this->TITULO_VL_PERC_MAXIMO    = $boleto->TX_DIV_PERC_MAXIMO;
        $this->TITULO_TP_DOC_AVALISTA   = $boleto->TX_SACA_COD_TIPO_PESSOA;
        $this->TITULO_NUM_DOC_AVALISTA  = $boleto->TX_SACA_NR_CAD_PES_JURIDICA;
        $this->TITULO_NOME_AVALISTA     = $boleto->TX_SACA_NOME_PESSOA;
        $this->TITULO_COD_PARTILHA1     = $boleto->COD_PARTILHA1;
        $this->TITULO_VL_PARTILHA1      = $boleto->VL_PARTILHA1;
        $this->TITULO_COD_PARTILHA2     = $boleto->COD_PARTILHA2;
        $this->TITULO_VL_PARTILHA2      = $boleto->VL_PARTILHA2;
        $this->TITULO_COD_PARTILHA3     = $boleto->COD_PARTILHA3;
        $this->TITULO_VL_PARTILHA3      = $boleto->VL_PARTILHA3;
        $this->TITULO_COD_PARTILHA4     = $boleto->COD_PARTILHA4;
        $this->TITULO_VL_PARTILHA4      = $boleto->VL_PARTILHA4;
        $this->TITULO_TIPO_CHAVE_DICT   = $boleto->TP_CHAVE_DICT_PIX;
        $this->TITULO_COD_CHAVE_DICT    = $boleto->TX_CODIGO_CHAVE_DICT_PIX;
        $this->TITULO_TXID_PIX          = $boleto->TX_COD_IDENT_DO_QR_CODE_TXID;
        $this->TITULO_CTRL_PARTICIPANTE = $boleto->TX_SEU_NUMERO;
        $this->MENSAGEM                 = $boleto->TX_MENSAGEM_OPCIONAL;

        $this->NSU                      = $boleto->TX_NSU_IDENTIF_UNICA;
        $this->DT_NSU                   = $boleto->DT_NSU_IDENTIF_UNICA;
        $this->ESTACAO                  = $boleto->TX_CODIGO_ESTACAO_PIX;
        $this->AMBIENTE                 = $boleto->TX_ETAPA_PROCESSO_BOLETO;
    }
Editor is loading...
Leave a Comment