Example #1
0
 public IntegracaoPagamentoService(bool isProduction, GatewayPagamento gatewayPagamento)
 {
     if (gatewayPagamento == GatewayPagamento.IUGU)
     {
         _integracaoPagamento = new IUGUService(isProduction);
     }
 }
Example #2
0
 public FluxoBU
 (
     IRepository <PedidoVendaEN> repositoryPedidoVenda,
     IRepository <PedidoVendaItemEN> repositoryPedidoVendaItem,
     IRepository <ContasReceberEN> repositoryContasReceber,
     IRepository <EmpresaEN> repositoryEmpresa,
     MovimentoEstoqueBU movimentoEstoqueBU,
     ContasReceberBU contasReceberBU,
     FluxoCaixaBU fluxoCaixaBU,
     IIntegracaoPagamento integracaoIUGU,
     IUnitOfWork unitOfWork
 )
 {
     _repositoryPedidoVenda     = repositoryPedidoVenda;
     _repositoryPedidoVendaItem = repositoryPedidoVendaItem;
     _repositoryContasReceber   = repositoryContasReceber;
     _repositoryEmpresa         = repositoryEmpresa;
     _movimentoEstoqueBU        = movimentoEstoqueBU;
     _contasReceberBU           = contasReceberBU;
     _fluxoCaixaBU   = fluxoCaixaBU;
     _integracaoIUGU = integracaoIUGU;
     _unitOfWork     = unitOfWork;
 }