Class: Stripe::Treasury::TransactionEntry

Inherits:
APIResource show all
Extended by:
APIOperations::List
Defined in:
lib/stripe/resources/treasury/transaction_entry.rb

Overview

TransactionEntries represent individual units of money movements within a single [Transaction](stripe.com/docs/api#transactions).

Defined Under Namespace

Classes: BalanceImpact, FlowDetails

Constant Summary collapse

OBJECT_NAME =
"treasury.transaction_entry"

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from APIResource

#save_with_parent

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods included from APIOperations::List

list

Methods inherited from APIResource

class_name, custom_method, #refresh, #request_stripe_object, #resource_url, retrieve, save_nested_resource

Methods included from APIOperations::Request

included

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

#balance_impactObject (readonly)

Change to a FinancialAccount’s balance



75
76
77
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 75

def balance_impact
  @balance_impact
end

#createdObject (readonly)

Time at which the object was created. Measured in seconds since the Unix epoch.



77
78
79
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 77

def created
  @created
end

#currencyObject (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).



79
80
81
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 79

def currency
  @currency
end

#effective_atObject (readonly)

When the TransactionEntry will impact the FinancialAccount’s balance.



81
82
83
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 81

def effective_at
  @effective_at
end

#financial_accountObject (readonly)

The FinancialAccount associated with this object.



83
84
85
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 83

def 
  @financial_account
end

#flowObject (readonly)

Token of the flow associated with the TransactionEntry.



85
86
87
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 85

def flow
  @flow
end

#flow_detailsObject (readonly)

Details of the flow associated with the TransactionEntry.



87
88
89
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 87

def flow_details
  @flow_details
end

#flow_typeObject (readonly)

Type of the flow associated with the TransactionEntry.



89
90
91
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 89

def flow_type
  @flow_type
end

#idObject (readonly)

Unique identifier for the object.



91
92
93
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 91

def id
  @id
end

#livemodeObject (readonly)

Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.



93
94
95
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 93

def livemode
  @livemode
end

#objectObject (readonly)

String representing the object’s type. Objects of the same type share the same value.



95
96
97
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 95

def object
  @object
end

#transactionObject (readonly)

The Transaction associated with this object.



97
98
99
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 97

def transaction
  @transaction
end

#typeObject (readonly)

The specific money movement that generated the TransactionEntry.



99
100
101
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 99

def type
  @type
end

Class Method Details

.field_remappingsObject



119
120
121
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 119

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



115
116
117
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 115

def self.inner_class_types
  @inner_class_types = { balance_impact: BalanceImpact, flow_details: FlowDetails }
end

.list(params = {}, opts = {}) ⇒ Object

Retrieves a list of TransactionEntry objects.



102
103
104
105
106
107
108
109
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 102

def self.list(params = {}, opts = {})
  request_stripe_object(
    method: :get,
    path: "/v1/treasury/transaction_entries",
    params: params,
    opts: opts
  )
end

.object_nameObject



11
12
13
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 11

def self.object_name
  "treasury.transaction_entry"
end

.resource_urlObject



111
112
113
# File 'lib/stripe/resources/treasury/transaction_entry.rb', line 111

def self.resource_url
  "/v1/treasury/transaction_entries"
end