Class: Straddle::Models::AccountIndustry

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

Instance Attribute 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(category: nil, mcc: nil, sector: nil) ⇒ Object

Some parameter documentations has been truncated, see Straddle::Models::AccountIndustry for more details.

Parameters:

  • category (String, nil) (defaults to: nil) —

    Industry category. Required when mcc is omitted.

  • mcc (String, nil) (defaults to: nil) —

    Merchant category code (MCC) that best describes the business. If omitted, provi

  • sector (String, nil) (defaults to: nil) —

    Business sector. Required when mcc is omitted.



# File 'lib/straddle/models/account_industry.rb', line 25


Instance Attribute Details

#category ⇒ String?

Industry category. Required when mcc is omitted.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


10
# File 'lib/straddle/models/account_industry.rb', line 10

optional :category, String, nil?: true

#mcc ⇒ String?

Merchant category code (MCC) that best describes the business. If omitted, provide both sector and category.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


17
# File 'lib/straddle/models/account_industry.rb', line 17

optional :mcc, String, nil?: true

#sector ⇒ String?

Business sector. Required when mcc is omitted.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


23
# File 'lib/straddle/models/account_industry.rb', line 23

optional :sector, String, nil?: true

Instance Method Details

#to_hash ⇒ { category: String?, mcc: String?, sector: String? }

Returns:

  • ({ category: String?, mcc: String?, sector: String? })


18
# File 'sig/straddle/models/account_industry.rbs', line 18

def to_hash: -> { category: String?, mcc: String?, sector: String? }