Class: Increase::Models::Transaction
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::Transaction
- Defined in:
- lib/increase/models/transaction.rb
Overview
Defined Under Namespace
Modules: Currency, RouteType, Type Classes: Source
Instance Attribute Summary collapse
-
#account_id ⇒ String
The identifier for the Account the Transaction belongs to.
-
#amount ⇒ Integer
The Transaction amount in the minor unit of its currency.
-
#created_at ⇒ Time
The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date on which the Transaction occurred.
-
#currency ⇒ Symbol, Increase::Models::Transaction::Currency
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the Transaction’s currency.
-
#description ⇒ String
An informational message describing this transaction.
-
#id ⇒ String
The Transaction identifier.
-
#route_id ⇒ String?
The identifier for the route this Transaction came through.
-
#route_type ⇒ Symbol, ...
The type of the route this Transaction came through.
-
#source ⇒ Increase::Models::Transaction::Source
This is an object giving more details on the network-level event that caused the Transaction.
-
#type ⇒ Symbol, Increase::Models::Transaction::Type
A constant representing the object’s type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_number: , amount: , message_to_recipient: , routing_number: , transfer_id: ) ⇒ Object
constructor
A Wire Transfer Intention object.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(account_number: , amount: , message_to_recipient: , routing_number: , transfer_id: ) ⇒ Object
A Wire Transfer Intention object. This field will be present in the JSON response if and only if ‘category` is equal to `wire_transfer_intention`. A Wire Transfer initiated via Increase and sent to a different bank.
|
|
# File 'lib/increase/models/transaction.rb', line 78
|
Instance Attribute Details
#account_id ⇒ String
The identifier for the Account the Transaction belongs to.
17 |
# File 'lib/increase/models/transaction.rb', line 17 required :account_id, String |
#amount ⇒ Integer
The Transaction amount in the minor unit of its currency. For dollars, for example, this is cents.
24 |
# File 'lib/increase/models/transaction.rb', line 24 required :amount, Integer |
#created_at ⇒ Time
The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date on which the Transaction occurred.
31 |
# File 'lib/increase/models/transaction.rb', line 31 required :created_at, Time |
#currency ⇒ Symbol, Increase::Models::Transaction::Currency
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the Transaction’s currency. This will match the currency on the Transaction’s Account.
39 |
# File 'lib/increase/models/transaction.rb', line 39 required :currency, enum: -> { Increase::Transaction::Currency } |
#description ⇒ String
An informational message describing this transaction. Use the fields in ‘source` to get more detailed information. This field appears as the line-item on the statement.
47 |
# File 'lib/increase/models/transaction.rb', line 47 required :description, String |
#id ⇒ String
The Transaction identifier.
11 |
# File 'lib/increase/models/transaction.rb', line 11 required :id, String |
#route_id ⇒ String?
The identifier for the route this Transaction came through. Routes are things like cards and ACH details.
54 |
# File 'lib/increase/models/transaction.rb', line 54 required :route_id, String, nil?: true |
#route_type ⇒ Symbol, ...
The type of the route this Transaction came through.
60 |
# File 'lib/increase/models/transaction.rb', line 60 required :route_type, enum: -> { Increase::Transaction::RouteType }, nil?: true |
#source ⇒ Increase::Models::Transaction::Source
This is an object giving more details on the network-level event that caused the Transaction. Note that for backwards compatibility reasons, additional undocumented keys may appear in this object. These should be treated as deprecated and will be removed in the future.
69 |
# File 'lib/increase/models/transaction.rb', line 69 required :source, -> { Increase::Transaction::Source } |
#type ⇒ Symbol, Increase::Models::Transaction::Type
A constant representing the object’s type. For this resource it will always be ‘transaction`.
76 |
# File 'lib/increase/models/transaction.rb', line 76 required :type, enum: -> { Increase::Transaction::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/increase/models/transaction.rb', line 117
|