Sha256: 6b9b2cda1a554d31e3a3fe6adfd8296ed063daf1d81b5b1326b662c63d8a4771

Contents?: true

Size: 519 Bytes

Versions: 7

Compression:

Stored size: 519 Bytes

Contents

class Valvat
  class Lookup
    class RequestWithId < Request
      def initialize(vat, requester_vat)
        @vat = vat
        @requester_vat = requester_vat
      end

      private

      def body
        super.merge(
          :requester_country_code => @requester_vat.vat_country_code,
          :requester_vat_number => @requester_vat.to_s_wo_country
        )
      end

      def action
        :check_vat_approx
      end

      def response_key
        :check_vat_approx_response
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
valvat-0.6.6 lib/valvat/lookup/request_with_id.rb
valvat-0.6.5 lib/valvat/lookup/request_with_id.rb
valvat-0.6.4 lib/valvat/lookup/request_with_id.rb
valvat-0.6.3 lib/valvat/lookup/request_with_id.rb
valvat-0.6.2 lib/valvat/lookup/request_with_id.rb
valvat-0.6.1 lib/valvat/lookup/request_with_id.rb
valvat-0.6.0 lib/valvat/lookup/request_with_id.rb