Sha256: 848a1da6101e4e093739e45f2da4293660e5135d148cdbdacc9000c0a90f11e5

Contents?: true

Size: 596 Bytes

Versions: 5

Compression:

Stored size: 596 Bytes

Contents

module RockRMS
  module Response
    class SavedPaymentMethod < Base
      MAP = {
        gateway_id: 'FinancialGatewayId',
        gateway_person_id: 'GatewayPersonIdentifier',
        is_default: 'IsDefault',
        name: 'Name',
        payment_details: 'FinancialPaymentDetail',
        payment_detail_id: 'FinancialPaymentDetailId',
        reference_number: 'ReferenceNumber'
      }.freeze

      def format_single(data)
        response = to_h(MAP, data)
        response[:payment_details] = PaymentDetail.format(response[:payment_details])
        response
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rock_rms-9.14.0 lib/rock_rms/response/saved_payment_method.rb
rock_rms-9.13.0 lib/rock_rms/response/saved_payment_method.rb
rock_rms-9.12.0 lib/rock_rms/response/saved_payment_method.rb
rock_rms-9.11.0 lib/rock_rms/response/saved_payment_method.rb
rock_rms-9.10.0 lib/rock_rms/response/saved_payment_method.rb