Sha256: d63d5b67cbbf64d77943a17a6ff9f3ccc6d501018d3473a08de2a1107732ca79

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

module FastshopCatalog
  class ParticipantService < FastshopCatalog::BaseService

    def initialize
      @service = :participante
      @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

1 entries across 1 versions & 1 rubygems

Version Path
fastshop_catalog-0.0.8 lib/fastshop_catalog/participant_service.rb