Class: Braintree::Transaction::DisbursementDetails

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/transaction/disbursement_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ DisbursementDetails

Returns a new instance of DisbursementDetails.



14
15
16
17
# File 'lib/braintree/transaction/disbursement_details.rb', line 14

def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
  @disbursement_date = Date.parse(disbursement_date) unless disbursement_date.nil?
end

Instance Attribute Details

#disbursement_dateObject (readonly)

Returns the value of attribute disbursement_date.



6
7
8
# File 'lib/braintree/transaction/disbursement_details.rb', line 6

def disbursement_date
  @disbursement_date
end

#settlement_amountObject (readonly)

Returns the value of attribute settlement_amount.



7
8
9
# File 'lib/braintree/transaction/disbursement_details.rb', line 7

def settlement_amount
  @settlement_amount
end

#settlement_currency_exchange_rateObject (readonly)

Returns the value of attribute settlement_currency_exchange_rate.



8
9
10
# File 'lib/braintree/transaction/disbursement_details.rb', line 8

def settlement_currency_exchange_rate
  @settlement_currency_exchange_rate
end

#settlement_currency_iso_codeObject (readonly)

Returns the value of attribute settlement_currency_iso_code.



9
10
11
# File 'lib/braintree/transaction/disbursement_details.rb', line 9

def settlement_currency_iso_code
  @settlement_currency_iso_code
end

#successObject (readonly) Also known as: success?

Returns the value of attribute success.



10
11
12
# File 'lib/braintree/transaction/disbursement_details.rb', line 10

def success
  @success
end

Instance Method Details

#funds_held?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/braintree/transaction/disbursement_details.rb', line 19

def funds_held?
  @funds_held
end

#valid?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/braintree/transaction/disbursement_details.rb', line 23

def valid?
  !disbursement_date.nil?
end