Sha256: d399972eb05cabaa5dc4f8b011b7ffc27f391d3934f4d565cf21adfa73b52053

Contents?: true

Size: 564 Bytes

Versions: 7

Compression:

Stored size: 564 Bytes

Contents

module FastshopCatalog
  class ParticipantService < FastshopCatalog::BaseService

    def initialize
      @service = 'FastServices.WsParticipante/Participante.svc/service'
      @interface = 'IParticipante'
      @soap_method = :cadastrar_participante
      @return_key = 'Token'
      super
    end

    def insert(participant)
      payload = participant.to_json.to_s
      AUX_LOG.debug('Participant as json: ' + payload)
      service_invoker_with_encryption('entrada', 'contrato' => participant.contract_code, 
      'entrada' => payload)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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