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, InboundRealTimePaymentsTransferDecline, 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, 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(ach_decline: , card_decline: , category: , check_decline: , check_deposit_rejection: , inbound_real_time_payments_transfer_decline: , other: , wire_decline: ) ⇒ Object

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

This is an object giving more details on the network-level event that caused the Declined Transaction. For example, for a card transaction this lists the merchant’s industry and location. Note that for backwards compatibility reasons, additional undocumented keys may appear in this object. These should be treated as deprecated and will be removed in the future.

Parameters:



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

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



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

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



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

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.



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

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



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

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



189
190
191
# File 'lib/increase/models/declined_transaction.rb', line 189

required :check_deposit_rejection,
-> { Increase::DeclinedTransaction::Source::CheckDepositRejection },
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`.



199
200
201
# File 'lib/increase/models/declined_transaction.rb', line 199

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

#otherObject?

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

Returns:

  • (Object, nil)


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

required :other, Increase::Internal::Type::Unknown, 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`.



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

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 421