Class: Stripe::FinancialConnections::Account::Balance

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/financial_connections/account.rb

Defined Under Namespace

Classes: Cash, Credit

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#as_ofObject (readonly)

The time that the external institution calculated this balance. Measured in seconds since the Unix epoch.



86
87
88
# File 'lib/stripe/resources/financial_connections/account.rb', line 86

def as_of
  @as_of
end

#cashObject (readonly)

Attribute for field cash



88
89
90
# File 'lib/stripe/resources/financial_connections/account.rb', line 88

def cash
  @cash
end

#creditObject (readonly)

Attribute for field credit



90
91
92
# File 'lib/stripe/resources/financial_connections/account.rb', line 90

def credit
  @credit
end

#currentObject (readonly)

The balances owed to (or by) the account holder, before subtracting any outbound pending transactions or adding any inbound pending transactions.

Each key is a three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.

Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.



96
97
98
# File 'lib/stripe/resources/financial_connections/account.rb', line 96

def current
  @current
end

#typeObject (readonly)

The ‘type` of the balance. An additional hash is included on the balance with a name matching this value.



98
99
100
# File 'lib/stripe/resources/financial_connections/account.rb', line 98

def type
  @type
end

Class Method Details

.field_remappingsObject



104
105
106
# File 'lib/stripe/resources/financial_connections/account.rb', line 104

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



100
101
102
# File 'lib/stripe/resources/financial_connections/account.rb', line 100

def self.inner_class_types
  @inner_class_types = { cash: Cash, credit: Credit }
end