Class: MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/method_ruby/models/accounts/consent_withdraw_response.rb,
sig/method_ruby/models/accounts/consent_withdraw_response.rbs

Defined Under Namespace

Modules: Status, Type Classes: Card, InboundAchwirePayment, NetworkToken

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(account_number: nil, routing_number: nil) ⇒ Object

ACH/wire payment details. Present when type is inbound_achwire_payment.

Parameters:

  • account_number (String) (defaults to: nil) —

    The account number.

  • routing_number (String) (defaults to: nil) —

    The routing number.



# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5709

Instance Attribute Details

#account_id ⇒ String

The account this payment instrument belongs to.

Parameters:

  • value (String)

Returns:

  • (String)


5646
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5646

required :account_id, String

#card ⇒ MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Card?

Card details. Present when type is card.



5678
5679
5680
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5678

optional :card,
-> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Card },
nil?: true

#chargeable ⇒ Boolean?

Whether this payment instrument is currently chargeable.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


5686
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5686

optional :chargeable, MethodRuby::Internal::Type::Boolean

#created_at ⇒ Time

Timestamp when the payment instrument was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


5652
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5652

required :created_at, Time

#error ⇒ MethodRuby::Models::ResourceError?

Parameters:

Returns:



5691
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5691

optional :error, -> { MethodRuby::ResourceError }, nil?: true

#id ⇒ String

Unique identifier for the payment instrument.

Parameters:

  • value (String)

Returns:

  • (String)


5640
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5640

required :id, String

#inbound_achwire_payment ⇒ MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::InboundAchwirePayment?

ACH/wire payment details. Present when type is inbound_achwire_payment.



5697
5698
5699
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5697

optional :inbound_achwire_payment,
-> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::InboundAchwirePayment },
nil?: true

#network_token ⇒ MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::NetworkToken?

Network token details. Present when type is network_token.



5705
5706
5707
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5705

optional :network_token,
-> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::NetworkToken },
nil?: true

#status ⇒ Symbol, MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Status

Current status of the payment instrument.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::status)

Returns:



5658
5659
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5658

required :status,
enum: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Status }

#type ⇒ Symbol, MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Type

The type of payment instrument.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::type_)

Returns:



5665
5666
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5665

required :type,
enum: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Type }

#updated_at ⇒ Time

Timestamp when the payment instrument was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


5672
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5672

required :updated_at, Time

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 5744

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


4475
# File 'sig/method_ruby/models/accounts/consent_withdraw_response.rbs', line 4475

def to_hash: -> {