Sha256: ca3ac5250a6905854e8eb10ede99265d6e569b8c3a409eb88f1701a417055a11

Contents?: true

Size: 719 Bytes

Versions: 10

Compression:

Stored size: 719 Bytes

Contents

module RockRMS
  module Response
    class RecurringDonation < Base
      MAP = {
        id: 'Id',
        active: 'IsActive',
        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]     = PaymentDetail.format(result[:payment_details])
        result
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rock_rms-4.5.0 lib/rock_rms/response/recurring_donation.rb
rock_rms-4.4.0 lib/rock_rms/response/recurring_donation.rb
rock_rms-4.3.0 lib/rock_rms/response/recurring_donation.rb
rock_rms-4.2.3 lib/rock_rms/response/recurring_donation.rb
rock_rms-4.2.2 lib/rock_rms/response/recurring_donation.rb
rock_rms-4.2.1 lib/rock_rms/response/recurring_donation.rb
rock_rms-4.2.0 lib/rock_rms/response/recurring_donation.rb
rock_rms-4.1.1 lib/rock_rms/response/recurring_donation.rb
rock_rms-4.1.0 lib/rock_rms/response/recurring_donation.rb
rock_rms-4.0.0 lib/rock_rms/response/recurring_donation.rb