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

Inherits:
Internal::Type::BaseModel 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: Attribute, Balance, CardBrand, ConsentStatus, LatestVerificationSession, PaymentInstrument, Payoff, Sensitive, Status, Type, Update Classes: ACH, Clearing, DebitCard, Error, Liability

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(token: nil) ⇒ Object

Network token details. Present when type is network_token.

Parameters:

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

    The network token value.



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

Instance Attribute Details

#ach ⇒ MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::ACH?

ACH account details. Present when type is ach.



3711
3712
3713
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3711

optional :ach,
-> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::ACH },
nil?: true

#attribute ⇒ String, ...

The latest attribute ID. This field is expandable. When expanded, returns the full AccountAttribute object.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::attribute, nil)

Returns:



3720
3721
3722
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3720

optional :attribute,
union: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Attribute },
nil?: true

#available_subscriptions ⇒ Array<String>

Subscriptions available to be enrolled for this account.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


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

required :available_subscriptions, MethodRuby::Internal::Type::ArrayOf[String]

#balance ⇒ String, ...

The latest balance ID. This field is expandable. When expanded, returns the full AccountBalance object.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::balance, nil)

Returns:



3729
3730
3731
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3729

optional :balance,
union: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Balance },
nil?: true

#card_brand ⇒ String, ...

The latest card brand ID. This field is expandable. When expanded, returns the full AccountCardBrand object.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::card_brand, nil)

Returns:



3738
3739
3740
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3738

optional :card_brand,
union: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::CardBrand },
nil?: true

#clearing ⇒ MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Clearing?

Clearing account details. Present when type is clearing.



3746
3747
3748
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3746

optional :clearing,
-> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Clearing },
nil?: true

Current consent status for data access on this account.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::consent_status)

Returns:



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

required :consent_status,
enum: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::ConsentStatus }

#created_at ⇒ Time

Timestamp when the account was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#debit_card ⇒ MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::DebitCard?

Debit card account details. Present when type is debit_card.



3754
3755
3756
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3754

optional :debit_card,
-> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::DebitCard },
nil?: true

#error ⇒ MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Error?

Error details when an account is disabled.



3762
3763
3764
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3762

optional :error,
-> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Error },
nil?: true

#holder_id ⇒ String

The entity ID that owns this account.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :holder_id, String

#id ⇒ String

Unique identifier for the account.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#latest_verification_session ⇒ String, ...

The latest verification session ID. This field is expandable. When expanded, returns the full AccountVerificationSession object.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::latest_verification_session, nil)

Returns:



3771
3772
3773
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3771

optional :latest_verification_session,
union: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::LatestVerificationSession },
nil?: true

#liability ⇒ MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Liability?

Liability account details. Present when type is liability.



3779
3780
3781
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3779

optional :liability,
-> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Liability },
nil?: true

#metadata ⇒ Hash{Symbol=>Object}?

Arbitrary key-value metadata attached to the resource.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:

  • (Hash{Symbol=>Object}, nil)


3787
3788
3789
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3787

optional :metadata,
MethodRuby::Internal::Type::HashOf[MethodRuby::Internal::Type::Unknown],
nil?: true

#payment_instrument ⇒ String, ...

The latest payment instrument ID. This field is expandable. When expanded, returns the full AccountPaymentInstrument object.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::payment_instrument, nil)

Returns:



3796
3797
3798
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3796

optional :payment_instrument,
union: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::PaymentInstrument },
nil?: true

#payoff ⇒ String, ...

The latest payoff ID. This field is expandable. When expanded, returns the full AccountPayoff object.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::payoff, nil)

Returns:



3805
3806
3807
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3805

optional :payoff,
union: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Payoff },
nil?: true

#products ⇒ Array<String>

Products currently active for this account.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


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

required :products, MethodRuby::Internal::Type::ArrayOf[String]

#restricted_products ⇒ Array<String>

Products restricted from this account.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


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

required :restricted_products, MethodRuby::Internal::Type::ArrayOf[String]

#restricted_subscriptions ⇒ Array<String>

Subscriptions restricted from this account.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


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

required :restricted_subscriptions, MethodRuby::Internal::Type::ArrayOf[String]

#sensitive ⇒ String, ...

The latest sensitive ID. This field is expandable. When expanded, returns the full AccountSensitive object.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::sensitive, nil)

Returns:



3814
3815
3816
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3814

optional :sensitive,
union: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Sensitive },
nil?: true

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

Current status of the account.

Parameters:

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

Returns:



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

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

#subscriptions ⇒ Array<String>

Subscriptions currently active for this account.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


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

required :subscriptions, MethodRuby::Internal::Type::ArrayOf[String]

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

Parameters:

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

Returns:



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

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

#update ⇒ String, ...

The latest update ID. This field is expandable. When expanded, returns the full AccountUpdate object.

Parameters:

  • value (MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::update, nil)

Returns:



3823
3824
3825
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 3823

optional :update,
union: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Update },
nil?: true

#updated_at ⇒ Time

Timestamp when the account was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :updated_at, Time

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


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

.variants ⇒ Array(String, MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountLiabilityResource::Sensitive::AccountSensitive)



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

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {