Class: Increase::Models::CardPayment::Element::CardRefund::Cashback

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/card_payment.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::CardPayment::Element::CardRefund::Cashback for more details.

Cashback debited for this transaction, if eligible. Cashback is paid out in aggregate, monthly.

Parameters:



# File 'lib/increase/models/card_payment.rb', line 5373

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)


5365
# File 'lib/increase/models/card_payment.rb', line 5365

required :amount, String

#currencySymbol, Increase::Models::CardPayment::Element::CardRefund::Cashback::Currency

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



5371
# File 'lib/increase/models/card_payment.rb', line 5371

required :currency, enum: -> { Increase::CardPayment::Element::CardRefund::Cashback::Currency }