Class: Stripe::FinancialConnections::Transaction
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::FinancialConnections::Transaction
- Extended by:
- APIOperations::List
- Defined in:
- lib/stripe/resources/financial_connections/transaction.rb
Overview
A Transaction represents a real transaction that affects a Financial Connections Account balance.
Defined Under Namespace
Classes: StatusTransitions
Constant Summary collapse
- OBJECT_NAME =
"financial_connections.transaction"
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
The ID of the Financial Connections Account this transaction belongs to.
-
#amount ⇒ Object
readonly
The amount of this transaction, in cents (or local equivalent).
-
#currency ⇒ Object
readonly
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#description ⇒ Object
readonly
The description of this transaction.
-
#id ⇒ Object
readonly
Unique identifier for the object.
-
#livemode ⇒ Object
readonly
Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.
-
#object ⇒ Object
readonly
String representing the object’s type.
-
#status ⇒ Object
readonly
The status of the transaction.
-
#status_transitions ⇒ Object
readonly
Attribute for field status_transitions.
-
#transacted_at ⇒ Object
readonly
Time at which the transaction was transacted.
-
#transaction_refresh ⇒ Object
readonly
The token of the transaction refresh that last updated or created this transaction.
-
#updated ⇒ Object
readonly
Time at which the object was last updated.
Attributes inherited from APIResource
Attributes inherited from StripeObject
Class Method Summary collapse
- .field_remappings ⇒ Object
- .inner_class_types ⇒ Object
-
.list(params = {}, opts = {}) ⇒ Object
Returns a list of Financial Connections Transaction objects.
- .object_name ⇒ Object
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, custom_method, #refresh, #request_stripe_object, resource_url, #resource_url, retrieve, save_nested_resource
Methods included from APIOperations::Request
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
#account ⇒ Object (readonly)
The ID of the Financial Connections Account this transaction belongs to.
30 31 32 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 30 def account @account end |
#amount ⇒ Object (readonly)
The amount of this transaction, in cents (or local equivalent).
32 33 34 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 32 def amount @amount end |
#currency ⇒ Object (readonly)
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
34 35 36 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 34 def currency @currency end |
#description ⇒ Object (readonly)
The description of this transaction.
36 37 38 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 36 def description @description end |
#id ⇒ Object (readonly)
Unique identifier for the object.
38 39 40 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 38 def id @id end |
#livemode ⇒ Object (readonly)
Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.
40 41 42 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 40 def livemode @livemode end |
#object ⇒ Object (readonly)
String representing the object’s type. Objects of the same type share the same value.
42 43 44 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 42 def object @object end |
#status ⇒ Object (readonly)
The status of the transaction.
44 45 46 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 44 def status @status end |
#status_transitions ⇒ Object (readonly)
Attribute for field status_transitions
46 47 48 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 46 def status_transitions @status_transitions end |
#transacted_at ⇒ Object (readonly)
Time at which the transaction was transacted. Measured in seconds since the Unix epoch.
48 49 50 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 48 def transacted_at @transacted_at end |
#transaction_refresh ⇒ Object (readonly)
The token of the transaction refresh that last updated or created this transaction.
50 51 52 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 50 def transaction_refresh @transaction_refresh end |
#updated ⇒ Object (readonly)
Time at which the object was last updated. Measured in seconds since the Unix epoch.
52 53 54 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 52 def updated @updated end |
Class Method Details
.field_remappings ⇒ Object
68 69 70 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 68 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
64 65 66 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 64 def self.inner_class_types @inner_class_types = { status_transitions: StatusTransitions } end |
.list(params = {}, opts = {}) ⇒ Object
Returns a list of Financial Connections Transaction objects.
55 56 57 58 59 60 61 62 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 55 def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/financial_connections/transactions", params: params, opts: opts ) end |
.object_name ⇒ Object
11 12 13 |
# File 'lib/stripe/resources/financial_connections/transaction.rb', line 11 def self.object_name "financial_connections.transaction" end |