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

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#business_profile

Defined Under Namespace

Classes: Address, Industry, SupportChannels

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

Parameters:

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

    Industry category of the business.

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

    Merchant Category Code assigned to the business.

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

    Industry sector of the business.



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

Instance Attribute Details

#address ⇒ Straddle::Models::PlatformEventV1WebhookEvent::Data::BusinessProfile::Address?



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

optional :address, -> { Straddle::PlatformEventV1WebhookEvent::Data::BusinessProfile::Address }

#description ⇒ String?

Description of the business.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :description, String, nil?: true

#industry ⇒ Straddle::Models::PlatformEventV1WebhookEvent::Data::BusinessProfile::Industry?



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

optional :industry, -> { Straddle::PlatformEventV1WebhookEvent::Data::BusinessProfile::Industry }

Registered legal name of the business.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :legal_name, String, nil?: true

#name ⇒ String

Display name of the business.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

#phone ⇒ String?

Primary phone number for the business.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :phone, String, nil?: true

#support_channels ⇒ Straddle::Models::PlatformEventV1WebhookEvent::Data::BusinessProfile::SupportChannels?



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

optional :support_channels,
-> { Straddle::PlatformEventV1WebhookEvent::Data::BusinessProfile::SupportChannels }

#tax_id ⇒ String?

Tax identification number of the business.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :tax_id, String, nil?: true

#use_case ⇒ String?

Description of how the business uses Straddle.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :use_case, String, nil?: true

#website ⇒ String

URL of the business website.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :website, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {