Class: Anthropic::Models::OrganizationOnHoldErrorDetails

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

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(appeal_url: nil, error_code: :organization_on_hold) ⇒ OrganizationOnHoldErrorDetails

Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. appeal_url, when present, is where the organization can appeal.

Parameters:

  • appeal_url (String, nil) (defaults to: nil)
  • error_code (Symbol, :organization_on_hold) (defaults to: :organization_on_hold)
  • appeal_url: (String, nil) (defaults to: nil)
  • error_code: (:organization_on_hold) (defaults to: :organization_on_hold)


# File 'lib/anthropic/models/organization_on_hold_error_details.rb', line 16

Instance Attribute Details

#appeal_url ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


14
# File 'lib/anthropic/models/organization_on_hold_error_details.rb', line 14

optional :appeal_url, String, nil?: true

#error_code ⇒ Symbol, :organization_on_hold

Parameters:

  • value (:organization_on_hold)

Returns:

  • (Symbol, :organization_on_hold)


9
# File 'lib/anthropic/models/organization_on_hold_error_details.rb', line 9

required :error_code, const: :organization_on_hold

Instance Method Details

#to_hash ⇒ { error_code: :organization_on_hold, appeal_url: String? }

Returns:

  • ({ error_code: :organization_on_hold, appeal_url: String? })


16
# File 'sig/anthropic/models/organization_on_hold_error_details.rbs', line 16

def to_hash: -> { error_code: :organization_on_hold, appeal_url: String? }