Class: Increase::Models::CardPayment::Element::CardAuthorizationExpiration

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

Overview

Defined Under Namespace

Modules: Currency, Network, Type

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(id: , card_authorization_id: , currency: , expired_amount: , network: , type: ) ⇒ Object

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

A Card Authorization Expiration object. This field will be present in the JSON response if and only if ‘category` is equal to `card_authorization_expiration`. Card Authorization Expirations are cancellations of authorizations that were never settled by the acquirer.

Parameters:



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

Instance Attribute Details

#card_authorization_idString

The identifier for the Card Authorization this reverses.

Returns:

  • (String)


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

required :card_authorization_id, String

#currencySymbol, Increase::Models::CardPayment::Element::CardAuthorizationExpiration::Currency

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the reversal’s currency.



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

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

#expired_amountInteger

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

Returns:

  • (Integer)


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

required :expired_amount, Integer

#idString

The Card Authorization Expiration identifier.

Returns:

  • (String)


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

required :id, String

#networkSymbol, Increase::Models::CardPayment::Element::CardAuthorizationExpiration::Network

The card network used to process this card authorization.



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

required :network, enum: -> { Increase::CardPayment::Element::CardAuthorizationExpiration::Network }

#typeSymbol, Increase::Models::CardPayment::Element::CardAuthorizationExpiration::Type

A constant representing the object’s type. For this resource it will always be ‘card_authorization_expiration`.



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

required :type, enum: -> { Increase::CardPayment::Element::CardAuthorizationExpiration::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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