Class: Anthropic::Models::Beta::BetaUserProfileExternalUserDetails

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_user_profile_external_user_details.rb,
sig/anthropic/models/beta/beta_user_profile_external_user_details.rbs

Defined Under Namespace

Modules: AccountStatus, EntityType

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(account_status:, country:, email_hash:, entity_type:, name_hash:, onboarded_at:, reference_id:) ⇒ void

Details about the entity this profile represents, as the platform states them. Anthropic does not verify them. Every field is present, null until the platform supplies a value.

Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaUserProfileExternalUserDetails for more details.

Parameters:

  • account_status (Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetails::AccountStatus, nil) —

    The status of the entity's account on the platform: active, suspended or `bl

  • country (String, nil) —

    The country the platform associates with the entity, as an ISO 3166-1 alpha-2 co

  • email_hash (String, nil) —

    The platform-computed hash of the entity's email address. null until the platf

  • entity_type (Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetails::EntityType, nil) —

    What kind of entity the profile represents: individual, business, `non_profi

  • name_hash (String, nil) —

    The platform-computed hash of the entity's name. null until the platform suppl

  • onboarded_at (Time, nil) —

    When the entity opened its account with the platform, as stated by the platform,

  • reference_id (String, nil) —

    The platform's own reference for the entity. null until the platform supplies



# File 'lib/anthropic/models/beta/beta_user_profile_external_user_details.rb', line 60


Instance Attribute Details

#account_status ⇒ Symbol, ...

The status of the entity's account on the platform: active, suspended or blocked. null until the platform supplies one.

Parameters:

  • value (Anthropic::Models::Beta::BetaUserProfileExternalUserDetails::account_status, nil)

Returns:



12
13
14
# File 'lib/anthropic/models/beta/beta_user_profile_external_user_details.rb', line 12

required :account_status,
enum: -> { Anthropic::Beta::BetaUserProfileExternalUserDetails::AccountStatus },
nil?: true

#country ⇒ String?

The country the platform associates with the entity, as an ISO 3166-1 alpha-2 code. null until the platform supplies one.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


21
# File 'lib/anthropic/models/beta/beta_user_profile_external_user_details.rb', line 21

required :country, String, nil?: true

#email_hash ⇒ String?

The platform-computed hash of the entity's email address. null until the platform supplies one.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


28
# File 'lib/anthropic/models/beta/beta_user_profile_external_user_details.rb', line 28

required :email_hash, String, nil?: true

#entity_type ⇒ Symbol, ...

What kind of entity the profile represents: individual, business, non_profit or government. null until the platform supplies one.

Parameters:

  • value (Anthropic::Models::Beta::BetaUserProfileExternalUserDetails::entity_type, nil)

Returns:



35
36
37
# File 'lib/anthropic/models/beta/beta_user_profile_external_user_details.rb', line 35

required :entity_type,
enum: -> { Anthropic::Beta::BetaUserProfileExternalUserDetails::EntityType },
nil?: true

#name_hash ⇒ String?

The platform-computed hash of the entity's name. null until the platform supplies one.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


44
# File 'lib/anthropic/models/beta/beta_user_profile_external_user_details.rb', line 44

required :name_hash, String, nil?: true

#onboarded_at ⇒ Time?

When the entity opened its account with the platform, as stated by the platform, in RFC 3339 format (UTC). null until the platform supplies one.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


51
# File 'lib/anthropic/models/beta/beta_user_profile_external_user_details.rb', line 51

required :onboarded_at, Time, nil?: true

#reference_id ⇒ String?

The platform's own reference for the entity. null until the platform supplies one.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


58
# File 'lib/anthropic/models/beta/beta_user_profile_external_user_details.rb', line 58

required :reference_id, String, nil?: true

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/beta/beta_user_profile_external_user_details.rb', line 98


Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


42
# File 'sig/anthropic/models/beta/beta_user_profile_external_user_details.rbs', line 42

def to_hash: -> {