Class: Sentdm::Models::ProfileCreateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/profile_create_response.rb

Overview

Defined Under Namespace

Classes: Data, Error, Meta

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(code: nil, details: nil, doc_url: nil, message: nil) ⇒ Object

Error information

Parameters:

  • code (String) (defaults to: nil)

    Machine-readable error code (e.g., “RESOURCE_001”)

  • details (Hash{Symbol=>Array<String>}, nil) (defaults to: nil)

    Additional validation error details (field-level errors)

  • doc_url (String, nil) (defaults to: nil)

    URL to documentation about this error

  • message (String) (defaults to: nil)

    Human-readable error message



# File 'lib/sentdm/models/profile_create_response.rb', line 31

Instance Attribute Details

#dataSentdm::Models::ProfileCreateResponse::Data?

Detailed profile response for v3 API



11
# File 'lib/sentdm/models/profile_create_response.rb', line 11

optional :data, -> { Sentdm::Models::ProfileCreateResponse::Data }, nil?: true

#errorSentdm::Models::ProfileCreateResponse::Error?

Error information



17
# File 'lib/sentdm/models/profile_create_response.rb', line 17

optional :error, -> { Sentdm::Models::ProfileCreateResponse::Error }, nil?: true

#metaSentdm::Models::ProfileCreateResponse::Meta?

Request and response metadata



23
# File 'lib/sentdm/models/profile_create_response.rb', line 23

optional :meta, -> { Sentdm::Models::ProfileCreateResponse::Meta }

#successBoolean?

Indicates whether the request was successful

Returns:

  • (Boolean, nil)


29
# File 'lib/sentdm/models/profile_create_response.rb', line 29

optional :success, Sentdm::Internal::Type::Boolean

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/sentdm/models/profile_create_response.rb', line 706