Class: MethodRuby::Models::AccountCreateResponse::Data::AccountLiabilityResource::Liability

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

Overview

See Also:

  • MethodRuby::Models::AccountCreateResponse::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_create_response.rb', line 5403

Instance Attribute Details

#fingerprint ⇒ String?

Unique fingerprint for de-duplication.

Parameters:

Returns:



5361
# File 'lib/method_ruby/models/account_create_response.rb', line 5361

required :fingerprint, String, nil?: true

#mask ⇒ String?

Last 4 digits of the account number.

Parameters:

Returns:



5367
# File 'lib/method_ruby/models/account_create_response.rb', line 5367

required :mask, String, nil?: true

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

The merchant ID associated with this liability.

Parameters:

Returns:



5373
5374
# File 'lib/method_ruby/models/account_create_response.rb', line 5373

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

#name ⇒ String?

Display name of the liability account.

Parameters:

Returns:



5380
# File 'lib/method_ruby/models/account_create_response.rb', line 5380

required :name, String, nil?: true

#ownership ⇒ Symbol, ...

Ownership type of the account.

Parameters:

Returns:



5386
5387
5388
# File 'lib/method_ruby/models/account_create_response.rb', line 5386

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

#sub_type ⇒ String?

More specific classification of the liability type.

Parameters:

Returns:



5394
# File 'lib/method_ruby/models/account_create_response.rb', line 5394

required :sub_type, String, nil?: true

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

The type of liability.

Parameters:

Returns:



5400
5401
# File 'lib/method_ruby/models/account_create_response.rb', line 5400

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

Class Method Details

.values ⇒ Array<Symbol>

Returns:



# File 'lib/method_ruby/models/account_create_response.rb', line 5560

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

Returns:



# File 'lib/method_ruby/models/account_create_response.rb', line 5565

Instance Method Details

#to_hash ⇒ {

Returns:



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

def to_hash: -> {