Class: Increase::Models::DeclinedTransaction::Source::CheckDepositRejection

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

Overview

Defined Under Namespace

Modules: Currency, Reason

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(amount: , check_deposit_id: , currency: , declined_transaction_id: , reason: , rejected_at: ) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::DeclinedTransaction::Source::CheckDepositRejection for more details.

A Check Deposit Rejection object. This field will be present in the JSON response if and only if ‘category` is equal to `check_deposit_rejection`.

Parameters:



# File 'lib/increase/models/declined_transaction.rb', line 1906

Instance Attribute Details

#amountInteger

The rejected amount in the minor unit of check’s currency. For dollars, for example, this is cents.

Returns:

  • (Integer)


1872
# File 'lib/increase/models/declined_transaction.rb', line 1872

required :amount, Integer

#check_deposit_idString

The identifier of the Check Deposit that was rejected.

Returns:

  • (String)


1878
# File 'lib/increase/models/declined_transaction.rb', line 1878

required :check_deposit_id, String

#currencySymbol, Increase::Models::DeclinedTransaction::Source::CheckDepositRejection::Currency

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



1885
# File 'lib/increase/models/declined_transaction.rb', line 1885

required :currency, enum: -> { Increase::DeclinedTransaction::Source::CheckDepositRejection::Currency }

#declined_transaction_idString

The identifier of the associated declined transaction.

Returns:

  • (String)


1891
# File 'lib/increase/models/declined_transaction.rb', line 1891

required :declined_transaction_id, String

#reasonSymbol, Increase::Models::DeclinedTransaction::Source::CheckDepositRejection::Reason

Why the check deposit was rejected.



1897
# File 'lib/increase/models/declined_transaction.rb', line 1897

required :reason, enum: -> { Increase::DeclinedTransaction::Source::CheckDepositRejection::Reason }

#rejected_atTime

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date and time at which the check deposit was rejected.

Returns:

  • (Time)


1904
# File 'lib/increase/models/declined_transaction.rb', line 1904

required :rejected_at, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/declined_transaction.rb', line 1936