Sha256: 753d96a3f34ac8bfa868cb247ce732a21c37ba3d9ddc2360342dfeb7d4fe31cd

Contents?: true

Size: 527 Bytes

Versions: 22

Compression:

Stored size: 527 Bytes

Contents

module Braintree
  class Transaction
    class DisbursementDetails # :nodoc:
      include BaseModule

      attr_reader :disbursement_date, :settlement_amount, :settlement_currency_iso_code, :settlement_currency_exchange_rate, :success

      alias_method :success?, :success

      def initialize(attributes)
        set_instance_variables_from_hash attributes unless attributes.nil?
      end

      def funds_held?
        @funds_held
      end

      def valid?
        !disbursement_date.nil?
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
braintree-2.80.1 lib/braintree/transaction/disbursement_details.rb
braintree-2.80.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.79.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.78.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.77.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.76.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.75.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.74.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.73.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.72.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.71.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.70.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.69.1 lib/braintree/transaction/disbursement_details.rb
braintree-2.69.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.68.2 lib/braintree/transaction/disbursement_details.rb
braintree-2.68.1 lib/braintree/transaction/disbursement_details.rb
braintree-2.68.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.67.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.66.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.65.0 lib/braintree/transaction/disbursement_details.rb