Class: MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::Liability

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

Overview

See Also:

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 1808

Instance Attribute Details

#fingerprintString?

Unique fingerprint for de-duplication.

Returns:

  • (String, nil)


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

required :fingerprint, String, nil?: true

#maskString?

Last 4 digits of the account number.

Returns:

  • (String, nil)


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

required :mask, String, nil?: true

#mch_idString, MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::Liability::MchID::Merchant

The merchant ID associated with this liability.



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

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

#nameString?

Display name of the liability account.

Returns:

  • (String, nil)


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

required :name, String, nil?: true

#ownershipSymbol, ...

Ownership type of the account.



1791
1792
1793
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 1791

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

#sub_typeString?

More specific classification of the liability type.

Returns:

  • (String, nil)


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

required :sub_type, String, nil?: true

#typeSymbol, MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::Liability::Type

The type of liability.



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

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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

.variantsArray(String, MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::Liability::MchID::Merchant)



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