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

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/increase/models/declined_transaction.rb

Defined Under Namespace

Classes: ACHDecline, CardDecline, CheckDecline, CheckDepositRejection, InboundRealTimePaymentsTransferDecline, WireDecline

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #inspect, #to_h, #to_s

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.



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

required :ach_decline, -> { Increase::Models::DeclinedTransaction::Source::ACHDecline }

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



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

required :card_decline, -> { Increase::Models::DeclinedTransaction::Source::CardDecline }

#categorySymbol

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.

Returns:

  • (Symbol)


70
71
72
73
74
75
76
77
78
79
# File 'lib/increase/models/declined_transaction.rb', line 70

required :category,
Increase::Enum.new(
  :ach_decline,
  :card_decline,
  :check_decline,
  :inbound_real_time_payments_transfer_decline,
  :wire_decline,
  :check_deposit_rejection,
  :other
)

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



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

required :check_decline, -> { Increase::Models::DeclinedTransaction::Source::CheckDecline }

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



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

required :check_deposit_rejection,
-> { Increase::Models::DeclinedTransaction::Source::CheckDepositRejection }

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



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

required :inbound_real_time_payments_transfer_decline,
-> { Increase::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline }

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



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

required :wire_decline, -> { Increase::Models::DeclinedTransaction::Source::WireDecline }