Sha256: 7cc861e6d81199f06406217fa5338a347683ddb761b4a09b5dc6ac7c8045c624

Contents?: true

Size: 1014 Bytes

Versions: 2

Compression:

Stored size: 1014 Bytes

Contents

module Cieloz
  module Builder
    def portador source, opts={}
      RequisicaoTransacao::DadosPortador.map source, opts
    end

    def pedido source, opts={}
      RequisicaoTransacao::DadosPedido.map source, opts
    end

    def debito source, opts={}
      RequisicaoTransacao::FormaPagamento.map_debito source, opts
    end

    def credito source, opts={}
      RequisicaoTransacao::FormaPagamento.map_credito source, opts
    end

    def parcelado source, opts={}
      RequisicaoTransacao::FormaPagamento.map_parcelado source, opts
    end

    def avs source, opts={}
      RequisicaoTransacao::DadosAvs.map source, opts
    end

    def transacao source, opts={}
      RequisicaoTransacao.map source, opts
    end

    def consulta source, opts={}
      RequisicaoConsulta.map source, opts
    end

    def captura source, opts={}
      RequisicaoCaptura.map source, opts
    end

    def cancelamento source, opts={}
      RequisicaoCancelamento.map source, opts
    end
  end

  extend Builder
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cieloz-0.0.21 lib/cieloz/builder.rb
cieloz-0.0.20 lib/cieloz/builder.rb