/*private static Proposals GenerateProposal(CrmBELinhasPropostaOPV opportunityInfo)
         * {
         *      return new Proposals()
         *          {
         *              ProposalNumber = TypeParser.String(opportunityInfo.get_NumProposta()),
         *              Description = opportunityInfo.get_Descricao(),
         *              PaymentMethod = opportunityInfo.get_ModoPagamento(),
         *              PaymentCondition = opportunityInfo.get_CondPagamento(),
         *              Cost = opportunityInfo.get_Custo(),
         *              Value = opportunityInfo.get_Valor(),
         *              DiscountValue = opportunityInfo.get_ValorDesconto(),
         *              Rentability = opportunityInfo.get_Rentabilidade(),
         *              Margin = opportunityInfo.get_Margem()
         *          };
         * }*/

        private static void SetFields(CrmBELinhaPropostaOPV proposalLineInfo, ProposalsLine jsonObject)
        {
            proposalLineInfo.set_IdOportunidade(jsonObject.idOportunidade);
            proposalLineInfo.set_NumProposta(jsonObject.ProposalNumber);
            proposalLineInfo.set_Linha(jsonObject.Line);
            proposalLineInfo.set_Artigo(jsonObject.Article);
            proposalLineInfo.set_Descricao(jsonObject.Description);
            proposalLineInfo.set_Quantidade(jsonObject.Quantity);
            proposalLineInfo.set_Unidade(jsonObject.Unit);
            proposalLineInfo.set_FactorConv(jsonObject.FactorConv);
            proposalLineInfo.set_PrecoCusto(jsonObject.CostPrice);
            proposalLineInfo.set_PrecoVenda(jsonObject.SellsPrice);
            proposalLineInfo.set_Desconto1(jsonObject.Discount1);
            proposalLineInfo.set_Desconto2(jsonObject.Discount2);
            proposalLineInfo.set_Desconto3(jsonObject.Discount3);
            proposalLineInfo.set_Desconto(jsonObject.Discount);
            proposalLineInfo.set_ValorDesconto(jsonObject.DiscountValue);
            proposalLineInfo.set_Rentabilidade(jsonObject.Rentability);
            proposalLineInfo.set_Margem(jsonObject.Margin);
            proposalLineInfo.set_Observacoes(jsonObject.Observations);
        }