Class: Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts::Dental
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts::Dental
- Defined in:
- lib/increase/models/transaction.rb,
sig/increase/models/transaction.rbs
Overview
Instance Attribute Summary collapse
-
#amount ⇒ Integer
The amount in minor units of the
currencyfield. -
#currency ⇒ String
The ISO 4217 code for the additional amount's currency.
Instance Method Summary collapse
-
#initialize ⇒ Dental
constructor
A new instance of Dental.
- #to_hash ⇒ { amount: Integer, currency: String }
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 ⇒ Dental
Returns a new instance of Dental.
1336 |
# File 'sig/increase/models/transaction.rbs', line 1336
def initialize: (amount: Integer, currency: String) -> void
|
Instance Attribute Details
#amount ⇒ Integer
The amount in minor units of the currency field. The amount is positive if it
is added to the amount (such as an ATM surcharge fee) and negative if it is
subtracted from the amount (such as a discount).
1887 |
# File 'lib/increase/models/transaction.rb', line 1887 required :amount, Integer |
#currency ⇒ String
The ISO 4217 code for the additional amount's currency.
1894 |
# File 'lib/increase/models/transaction.rb', line 1894 required :currency, String |
Instance Method Details
#to_hash ⇒ { amount: Integer, currency: String }
1338 |
# File 'sig/increase/models/transaction.rbs', line 1338
def to_hash: -> { amount: Integer, currency: String }
|