Class: Straddle::Models::PlatformEventV1WebhookEvent::Data::BusinessProfile::Industry

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

Overview

See Also:

  • Straddle::Models::PlatformEventV1WebhookEvent::Data::BusinessProfile#industry

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 ⇒ Object



296
# File 'sig/straddle/models/platform_event_v1_webhook_event.rbs', line 296

def initialize: (

Instance Attribute Details

#category ⇒ String?

Industry category of the business.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


326
# File 'lib/straddle/models/platform_event_v1_webhook_event.rb', line 326

optional :category, String, nil?: true

#mcc ⇒ String?

Merchant Category Code assigned to the business.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


332
# File 'lib/straddle/models/platform_event_v1_webhook_event.rb', line 332

optional :mcc, String, nil?: true

#sector ⇒ String?

Industry sector of the business.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


338
# File 'lib/straddle/models/platform_event_v1_webhook_event.rb', line 338

optional :sector, String, nil?: true

Instance Method Details

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

Returns:

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


302
# File 'sig/straddle/models/platform_event_v1_webhook_event.rbs', line 302

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