Sha256: ce5ff19b605ede9725c5e1332aa575e36a481e38b63c0064306a3ad83dc4a2fe

Contents?: true

Size: 574 Bytes

Versions: 3

Compression:

Stored size: 574 Bytes

Contents

module WirecardSepa
  module Recurring
    class FirstRequest
      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 requested_amount
          account_holder_first_name account_holder_last_name bank_account_iban
          bank_account_bic mandate_id mandate_signed_date creditor_id )
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wirecard_sepa-0.0.3 lib/wirecard_sepa/recurring/first_request.rb
wirecard_sepa-0.0.2 lib/wirecard_sepa/recurring/first_request.rb
wirecard_sepa-0.0.1 lib/wirecard_sepa/recurring/first_request.rb