Sha256: 5aaa371d5a9deed8fd3cdf23df05098389c9188247d92f394c219aa40493cbe0

Contents?: true

Size: 560 Bytes

Versions: 6

Compression:

Stored size: 560 Bytes

Contents

module FastshopCatalog
  class OrderPlacementService < FastshopCatalog::BaseService

    def initialize
      @service = 'FastServices.WsColocacaoPedido/ColocacaoPedido.svc/service'
      @interface = 'IColocacaoPedido'
      @soap_method = :incluir_pedido
      @return_key = 'NumeroPedidoFast'
      super
    end

    def place_order(order)
      payload = order.to_json.to_s
      AUX_LOG.debug('Order as json: ' + payload)
      service_invoker_with_encryption('entrada', 'contrato' => order.contract_code, 
      'entrada' => payload)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fastshop_catalog-0.0.6 lib/fastshop_catalog/order_placement_service.rb
fastshop_catalog-0.0.5 lib/fastshop_catalog/order_placement_service.rb
fastshop_catalog-0.0.4 lib/fastshop_catalog/order_placement_service.rb
fastshop_catalog-0.0.3 lib/fastshop_catalog/order_placement_service.rb
fastshop_catalog-0.0.2 lib/fastshop_catalog/order_placement_service.rb
fastshop_catalog-0.0.1 lib/fastshop_catalog/order_placement_service.rb