Sha256: 9778686888595c7869169bf3a193a761d793806fca1d1cc2f7f54d2cd3f92359

Contents?: true

Size: 595 Bytes

Versions: 25

Compression:

Stored size: 595 Bytes

Contents

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

      attr_reader :disbursement_date
      attr_reader :settlement_amount
      attr_reader :settlement_currency_exchange_rate
      attr_reader :settlement_currency_iso_code
      attr_reader :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

25 entries across 25 versions & 1 rubygems

Version Path
braintree-2.104.1 lib/braintree/transaction/disbursement_details.rb
braintree-2.104.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.103.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.102.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.101.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.100.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.99.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.98.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.97.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.96.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.95.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.94.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.93.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.92.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.91.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.90.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.89.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.88.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.87.0 lib/braintree/transaction/disbursement_details.rb
braintree-2.86.0 lib/braintree/transaction/disbursement_details.rb