Class: Straddle::Models::PlatformCreatedV1WebhookEvent::Data

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

Overview

See Also:

  • Straddle::Models::PlatformCreatedV1WebhookEvent#data

Defined Under Namespace

Modules: Status Classes: BusinessProfile, StatusDetail

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(id:, status:, status_detail:, business_profile: nil, created_at: nil, external_id: nil, metadata: nil, updated_at: nil) ⇒ Object

Parameters:



# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 86

Instance Attribute Details

#business_profile ⇒ Straddle::Models::PlatformCreatedV1WebhookEvent::Data::BusinessProfile?



60
# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 60

optional :business_profile, -> { Straddle::PlatformCreatedV1WebhookEvent::Data::BusinessProfile }

#created_at ⇒ Time?

Timestamp when the platform was created.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


66
# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 66

optional :created_at, Time, nil?: true

#external_id ⇒ String?

Your unique identifier for the platform.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


72
# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 72

optional :external_id, String, nil?: true

#id ⇒ String

Unique identifier for the platform.

Parameters:

  • value (String)

Returns:

  • (String)


44
# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 44

required :id, String

#metadata ⇒ Hash{Symbol=>String, nil}?

Key-value metadata associated with the platform.

Parameters:

  • value (::Hash[Symbol, String?], nil)

Returns:

  • (Hash{Symbol=>String, nil}, nil)


78
# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 78

optional :metadata, Straddle::Internal::Type::HashOf[String, nil?: true], nil?: true

#status ⇒ Symbol, Straddle::Models::PlatformCreatedV1WebhookEvent::Data::Status

Current lifecycle status of the platform.

Parameters:

  • value (Straddle::Models::PlatformCreatedV1WebhookEvent::Data::status)

Returns:



50
# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 50

required :status, enum: -> { Straddle::PlatformCreatedV1WebhookEvent::Data::Status }

#status_detail ⇒ Straddle::Models::PlatformCreatedV1WebhookEvent::Data::StatusDetail

Parameters:

  • value (Straddle::PlatformCreatedV1WebhookEvent::Data::StatusDetail)

Returns:



55
# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 55

required :status_detail, -> { Straddle::PlatformCreatedV1WebhookEvent::Data::StatusDetail }

#updated_at ⇒ Time?

Timestamp when the platform was last updated.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


84
# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 84

optional :updated_at, Time, nil?: true

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/straddle/models/platform_created_v1_webhook_event.rb', line 115

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


78
# File 'sig/straddle/models/platform_created_v1_webhook_event.rbs', line 78

def to_hash: -> {