Class: MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/method_ruby/models/account_retrieve_response.rb,
sig/method_ruby/models/account_retrieve_response.rbs

Overview

See Also:

  • MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource#liability

Defined Under Namespace

Modules: MchID, Ownership, Type

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(fingerprint:, mask:, mch_id:, name:, ownership:, sub_type:, type:) ⇒ Object

Liability account details. Present when type is liability.

Parameters:



# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12562

Instance Attribute Details

#fingerprint ⇒ String?

Unique fingerprint for de-duplication.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


12520
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12520

required :fingerprint, String, nil?: true

#mask ⇒ String?

Last 4 digits of the account number.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


12526
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12526

required :mask, String, nil?: true

#mch_id ⇒ String, MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability::MchID::Merchant

The merchant ID associated with this liability.

Parameters:

  • value (MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability::mch_id)

Returns:



12532
12533
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12532

required :mch_id,
union: -> { MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability::MchID }

#name ⇒ String?

Display name of the liability account.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


12539
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12539

required :name, String, nil?: true

#ownership ⇒ Symbol, ...

Ownership type of the account.

Parameters:

  • value (MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability::ownership, nil)

Returns:



12545
12546
12547
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12545

required :ownership,
enum: -> { MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability::Ownership },
nil?: true

#sub_type ⇒ String?

More specific classification of the liability type.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


12553
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12553

required :sub_type, String, nil?: true

#type ⇒ Symbol, MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability::Type

The type of liability.

Parameters:

  • value (MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability::type_)

Returns:



12559
12560
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12559

required :type,
enum: -> { MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability::Type }

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12719

.variants ⇒ Array(String, MethodRuby::Models::AccountRetrieveResponse::Data::AccountDebitCardResource::Liability::MchID::Merchant)



# File 'lib/method_ruby/models/account_retrieve_response.rb', line 12724

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


9775
# File 'sig/method_ruby/models/account_retrieve_response.rbs', line 9775

def to_hash: -> {