Class: Increase::Models::Transaction::Source::InternalSource

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/transaction.rb

Overview

See Also:

Defined Under Namespace

Modules: Currency, Reason

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:



# File 'lib/increase/models/transaction.rb', line 6627


Instance Attribute Details

#amountInteger

The amount in the minor unit of the transaction’s currency. For dollars, for example, this is cents.

Returns:

  • (Integer)


6611
# File 'lib/increase/models/transaction.rb', line 6611

required :amount, Integer

#currencySymbol, 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 }

#reasonSymbol, 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

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/transaction.rb', line 6651