Skip to content

Instantly share code, notes, and snippets.

@mgiacomini
Created August 8, 2019 13:54
Show Gist options
  • Save mgiacomini/c614e41ae8fb3c458c131eb9df113965 to your computer and use it in GitHub Desktop.
Save mgiacomini/c614e41ae8fb3c458c131eb9df113965 to your computer and use it in GitHub Desktop.
contract_mappings
@contract_mappings %{
external_id: %{
field: "NUMERO_CONTRATO",
type: :string
},
enterprise_name: %{
field: "NOME_EMPREENDIMENTO",
type: :string
},
enterprise_id: %{
field: "CODIGO_EMPREENDIMENTO",
type: :string
},
portfolio_id: %{
field: "CONTA_CARTEIRA",
type: :string
},
city: %{
field: "CIDADE_IMOVEL",
type: :string
},
federative_unit: %{
field: "UF_IMOVEL",
type: :string
},
pending_cents: %{
field: "TOTAL_PARCELAS_EM_ATRASO_ATUAL",
type: :money_cents
},
coobrigation: %{
field: "CONTRATO_COOBRIGACAO",
type: :string
},
status: %{
field: "STATUS_CONTRATO",
type: :string
},
outstanding_balance_cents: %{
field: "SALDO_DEVEDOR",
type: :money_cents
},
total_arrears_cents: %{
field: "TOTAL_PARCELAS_EM_ATRASO",
type: :money_cents
},
customer_name: %{
field: "NOME_PRINCIPAL",
type: :string
},
property_evaluation_value_cents: %{
field: "VALOR_AVALIACAO_IMOVEL",
type: :money_cents
},
days_in_delay: %{
field: "DIAS_EM_ATRASO",
type: :integer
},
remaining_months: %{
field: "PRAZO_REMANESCENTE_MESES",
type: :integer
},
federal_document_id: %{
field: "CPF_CNPJ",
type: :string
},
pro_rata_correction_value_cents: %{
field: "CORRECAO_PRO_RATA",
type: :money_cents
},
pro_rata_interest_value_cents: %{
field: "JUROS_PRO_RATA",
type: :money_cents
},
interest_appropriate_value_cents: %{
field: "JUROS_APROPRIAR",
type: :money_cents
},
monetary_correction_appropriate_value_cents: %{
field: "CORRECAO_MONETARIA_APROPRIAR",
type: :money_cents
},
arrears_appropriate_value_cents: %{
field: "MORA_APROPRIAR",
type: :money_cents
},
balance_of_early_plots_value_cents: %{
field: "SALDO_PARCELAS_ANTECIPADAS",
type: :money_cents
},
initial_risk: %{
field: "RISCO_INICIAL",
type: :string
},
payday: %{
field: "DIA_VENCIMENTO_MES",
type: :integer
},
installments_current_month_cents: %{
field: "PRESTACAO_MES",
type: :money_cents
},
first_installment_in_arrears: %{
field: "PRIMEIRA_PARCELA_EM_ATRASO",
type: :string
},
last_installment_paid_date: %{
field: "DATA_ULTIMA_PRESTACAO_PAGA",
type: :date
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment