Class: Increase::Models::Transaction::Source::CardSettlement::Cashback

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

Overview

See Also:

Defined Under Namespace

Modules: Currency

Instance Attribute 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: ) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::Transaction::Source::CardSettlement::Cashback for more details.

Cashback earned on this transaction, if eligible. Cashback is paid out in aggregate, monthly.

Parameters:



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


Instance Attribute Details

#amountString

The cashback amount given as a string containing a decimal number. The amount is a positive number if it will be credited to you (e.g., settlements) and a negative number if it will be debited (e.g., refunds).

Returns:

  • (String)


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

required :amount, String

#currencySymbol, Increase::Models::Transaction::Source::CardSettlement::Cashback::Currency

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the cashback.



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

required :currency, enum: -> { Increase::Transaction::Source::CardSettlement::Cashback::Currency }