Class: Increase::Models::CheckDeposit::DepositRejection

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

Overview

See Also:

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::CheckDeposit::DepositRejection for more details.

If your deposit is rejected by Increase, this will contain details as to why it was rejected.

Parameters:



# File 'lib/increase/models/check_deposit.rb', line 295

Instance Attribute Details

#amountInteger

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

Returns:

  • (Integer)


261
# File 'lib/increase/models/check_deposit.rb', line 261

required :amount, Integer

#check_deposit_idString

The identifier of the Check Deposit that was rejected.

Returns:

  • (String)


267
# File 'lib/increase/models/check_deposit.rb', line 267

required :check_deposit_id, String

#currencySymbol, Increase::Models::CheckDeposit::DepositRejection::Currency

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



274
# File 'lib/increase/models/check_deposit.rb', line 274

required :currency, enum: -> { Increase::CheckDeposit::DepositRejection::Currency }

#declined_transaction_idString

The identifier of the associated declined transaction.

Returns:

  • (String)


280
# File 'lib/increase/models/check_deposit.rb', line 280

required :declined_transaction_id, String

#reasonSymbol, Increase::Models::CheckDeposit::DepositRejection::Reason

Why the check deposit was rejected.



286
# File 'lib/increase/models/check_deposit.rb', line 286

required :reason, enum: -> { Increase::CheckDeposit::DepositRejection::Reason }

#rejected_atTime

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

Returns:

  • (Time)


293
# File 'lib/increase/models/check_deposit.rb', line 293

required :rejected_at, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/check_deposit.rb', line 324