Sha256: d4ccbb8855e6db37920c91f82a692067a70501cd035501bb7cd14a80a96df948

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 Bytes

Contents

module RockRMS
  module Response
    class PaymentDetail < Base
      MAP = {
        exp_month: 'ExpirationMonth',
        exp_year: 'ExpirationYear',
        payment_type_id: 'CurrencyTypeValueId',
        masked_number: 'AccountNumberMasked'
      }.freeze

      def format_single(data)
        to_h(MAP, data)
      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/payment_detail.rb
rock_rms-9.13.0 lib/rock_rms/response/payment_detail.rb
rock_rms-9.12.0 lib/rock_rms/response/payment_detail.rb
rock_rms-9.11.0 lib/rock_rms/response/payment_detail.rb
rock_rms-9.10.0 lib/rock_rms/response/payment_detail.rb