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

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

Overview

See Also:

Defined Under Namespace

Modules: Category Classes: ACHDecline, CardDecline, CheckDecline, CheckDepositRejection, InboundFednowTransferDecline, InboundRealTimePaymentsTransferDecline, Other, WireDecline

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

#initializeObject

If the category of this Transaction source is equal to ‘other`, this field will contain an empty object, otherwise it will contain null.



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


Instance Attribute Details

#ach_declineIncrease::Models::DeclinedTransaction::Source::ACHDecline?

An ACH Decline object. This field will be present in the JSON response if and only if ‘category` is equal to `ach_decline`.



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

required :ach_decline, -> { Increase::DeclinedTransaction::Source::ACHDecline }, nil?: true

#card_declineIncrease::Models::DeclinedTransaction::Source::CardDecline?

A Card Decline object. This field will be present in the JSON response if and only if ‘category` is equal to `card_decline`.



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

required :card_decline, -> { Increase::DeclinedTransaction::Source::CardDecline }, nil?: true

#categorySymbol, Increase::Models::DeclinedTransaction::Source::Category

The type of the resource. We may add additional possible values for this enum over time; your application should be able to handle such additions gracefully.



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

required :category, enum: -> { Increase::DeclinedTransaction::Source::Category }

#check_declineIncrease::Models::DeclinedTransaction::Source::CheckDecline?

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



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

required :check_decline, -> { Increase::DeclinedTransaction::Source::CheckDecline }, nil?: true

#check_deposit_rejectionIncrease::Models::DeclinedTransaction::Source::CheckDepositRejection?

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`.



174
175
176
# File 'lib/increase/models/declined_transaction.rb', line 174

required :check_deposit_rejection,
-> { Increase::DeclinedTransaction::Source::CheckDepositRejection },
nil?: true

#inbound_fednow_transfer_declineIncrease::Models::DeclinedTransaction::Source::InboundFednowTransferDecline?

An Inbound FedNow Transfer Decline object. This field will be present in the JSON response if and only if ‘category` is equal to `inbound_fednow_transfer_decline`.



184
185
186
# File 'lib/increase/models/declined_transaction.rb', line 184

required :inbound_fednow_transfer_decline,
-> { Increase::DeclinedTransaction::Source::InboundFednowTransferDecline },
nil?: true

#inbound_real_time_payments_transfer_declineIncrease::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline?

An Inbound Real-Time Payments Transfer Decline object. This field will be present in the JSON response if and only if ‘category` is equal to `inbound_real_time_payments_transfer_decline`.



194
195
196
# File 'lib/increase/models/declined_transaction.rb', line 194

required :inbound_real_time_payments_transfer_decline,
-> { Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline },
nil?: true

#otherIncrease::Models::DeclinedTransaction::Source::Other?

If the category of this Transaction source is equal to ‘other`, this field will contain an empty object, otherwise it will contain null.



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

required :other, -> { Increase::DeclinedTransaction::Source::Other }, nil?: true

#wire_declineIncrease::Models::DeclinedTransaction::Source::WireDecline?

A Wire Decline object. This field will be present in the JSON response if and only if ‘category` is equal to `wire_decline`.



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

required :wire_decline, -> { Increase::DeclinedTransaction::Source::WireDecline }, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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