Class: Increase::Models::CheckDeposit::DepositAdjustment

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

Defined Under Namespace

Modules: Reason

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(adjusted_at:, amount:, reason:, transaction_id:) ⇒ Object

Parameters:

  • adjusted_at (Time)

    The time at which the adjustment was received.

  • amount (Integer)

    The amount of the adjustment.

  • reason (Symbol, Increase::Models::CheckDeposit::DepositAdjustment::Reason)

    The reason for the adjustment.

  • transaction_id (String)

    The id of the transaction for the adjustment.



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

Instance Attribute Details

#adjusted_atTime

The time at which the adjustment was received.

Returns:

  • (Time)


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

required :adjusted_at, Time

#amountInteger

The amount of the adjustment.

Returns:

  • (Integer)


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

required :amount, Integer

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

The reason for the adjustment.



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

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

#transaction_idString

The id of the transaction for the adjustment.

Returns:

  • (String)


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

required :transaction_id, String