Class: Increase::Models::Transaction::Source::InternalSource
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::Transaction::Source::InternalSource
- Defined in:
- lib/increase/models/transaction.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#amount ⇒ Integer
The amount in the minor unit of the transaction’s currency.
-
#currency ⇒ Symbol, Increase::Models::Transaction::Source::InternalSource::Currency
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the transaction currency.
-
#reason ⇒ Symbol, Increase::Models::Transaction::Source::InternalSource::Reason
An Internal Source is a transaction between you and Increase.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(amount: , currency: , reason: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see InternalSource for more details.
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(amount: , currency: , reason: ) ⇒ Object
Some parameter documentations has been truncated, see Increase::Models::Transaction::Source::InternalSource for more details.
An Internal Source object. This field will be present in the JSON response if and only if ‘category` is equal to `internal_source`. A transaction between the user and Increase. See the `reason` attribute for more information.
|
|
# File 'lib/increase/models/transaction.rb', line 6627
|
Instance Attribute Details
#amount ⇒ Integer
The amount in the minor unit of the transaction’s currency. For dollars, for example, this is cents.
6611 |
# File 'lib/increase/models/transaction.rb', line 6611 required :amount, Integer |
#currency ⇒ Symbol, Increase::Models::Transaction::Source::InternalSource::Currency
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the transaction currency.
6618 |
# File 'lib/increase/models/transaction.rb', line 6618 required :currency, enum: -> { Increase::Transaction::Source::InternalSource::Currency } |
#reason ⇒ Symbol, Increase::Models::Transaction::Source::InternalSource::Reason
An Internal Source is a transaction between you and Increase. This describes the reason for the transaction.
6625 |
# File 'lib/increase/models/transaction.rb', line 6625 required :reason, enum: -> { Increase::Transaction::Source::InternalSource::Reason } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/increase/models/transaction.rb', line 6651
|