Sha256: fc6a4ba4a142fcaffc0e45e6caa17fc670497473c821441d6a8ec481e4c174f9

Contents?: true

Size: 691 Bytes

Versions: 5

Compression:

Stored size: 691 Bytes

Contents

module RockRMS
  module Response
    class RecurringDonation < Base
      MAP = {
        id: 'Id',
        foreign_key: 'ForeignKey',
        next_payment_date: 'NextPaymentDate',
        payment_details: 'FinancialPaymentDetail',
        person_id: 'AuthorizedPersonAliasId',
        transaction_details: 'ScheduledTransactionDetails',
        transaction_code: 'TransactionCode'
      }.freeze

      def format_single(data)
        result = to_h(MAP, data)
        result[:transaction_details] = RecurringDonationDetails.format(result[:transaction_details])
        result[:payment_details]     = PaymentMethod.format(result[:payment_details])
        result
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rock_rms-3.6.0 lib/rock_rms/response/recurring_donation.rb
rock_rms-3.5.0 lib/rock_rms/response/recurring_donation.rb
rock_rms-3.4.1 lib/rock_rms/response/recurring_donation.rb
rock_rms-3.4.0 lib/rock_rms/response/recurring_donation.rb
rock_rms-3.2.0 lib/rock_rms/response/recurring_donation.rb