Class: Increase::Models::CardPayment::Element::CardRefund::Interchange

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: , code: , currency: ) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::CardPayment::Element::CardRefund::Interchange for more details.

Interchange assessed as a part of this transaciton.

Parameters:



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

Instance Attribute Details

#amountString

The interchange amount given as a string containing a decimal number in major units (so e.g., “3.14” for $3.14). The amount is a positive number if it is credited to Increase (e.g., settlements) and a negative number if it is debited (e.g., refunds).

Returns:

  • (String)


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

required :amount, String

#codeString?

The card network specific interchange code.

Returns:

  • (String, nil)


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

required :code, String, nil?: true

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

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



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

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