Class: MethodRuby::Models::AccountRetrieveResponse::Data::AccountLiabilityResource::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::AccountLiabilityResource#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:

  • Unique fingerprint for de-duplication.

  • Last 4 digits of the account number.

  • The merchant ID associated with this liability.

  • Display name of the liability account.

  • Ownership type of the account.

  • More specific classification of the liability type.

  • The type of liability.



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

Instance Attribute Details

#fingerprint ⇒ String?

Unique fingerprint for de-duplication.

Parameters:

Returns:



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

required :fingerprint, String, nil?: true

#mask ⇒ String?

Last 4 digits of the account number.

Parameters:

Returns:



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

required :mask, String, nil?: true

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

The merchant ID associated with this liability.

Parameters:

Returns:



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

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

#name ⇒ String?

Display name of the liability account.

Parameters:

Returns:



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

required :name, String, nil?: true

#ownership ⇒ Symbol, ...

Ownership type of the account.

Parameters:

Returns:



5389
5390
5391
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 5389

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

#sub_type ⇒ String?

More specific classification of the liability type.

Parameters:

Returns:



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

required :sub_type, String, nil?: true

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

The type of liability.

Parameters:

Returns:



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

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

Class Method Details

.values ⇒ Array<Symbol>

Returns:



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

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

Returns:



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

Instance Method Details

#to_hash ⇒ {

Returns:



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

def to_hash: -> {