Sha256: 471da8da3b5429cf4789afb1087757a959f9b5ad9cd946786e288dd2ae200b89

Contents?: true

Size: 434 Bytes

Versions: 5

Compression:

Stored size: 434 Bytes

Contents

module WirecardSepa
  module Recurring
    class RecurringRequest
      attr_reader :params

      def initialize(params = {})
        Utils::ParamsValidator.validate!(params, expected_params)
        @params = params
      end

      def to_xml
        Utils::Template.new(self).to_xml
      end

      private

      def expected_params
        %i( merchant_account_id request_id parent_transaction_id )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wirecard_sepa-0.0.5 lib/wirecard_sepa/recurring/recurring_request.rb
wirecard_sepa-0.0.4 lib/wirecard_sepa/recurring/recurring_request.rb
wirecard_sepa-0.0.3 lib/wirecard_sepa/recurring/recurring_request.rb
wirecard_sepa-0.0.2 lib/wirecard_sepa/recurring/recurring_request.rb
wirecard_sepa-0.0.1 lib/wirecard_sepa/recurring/recurring_request.rb