Sha256: c5d8919394c23621c6a5a4741b3a6d1f6bd771c83d9af7eb06c8ea0cdd8bb65d

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

# include PayPal::AdaptivePayments::Response

module PayPal::AdaptivePayments::Response
  class Details < PayPal::AdaptivePayments::Payment
    include PayPal::Common::Response

    def payment_info
      @payment_info ||= (payment_info_list && payment_info_list.payment_info) || []
    end

    def receivers
      @receivers ||= payment_info.map { |pi| pi.receiver }
    end

    def receiver
      @receiver ||= receivers.first
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paypal-payment-0.1.2 lib/paypal/adaptive_payments/response/details.rb