Class: WhopSDK::Models::VerificationCreateResponse::RequestedInformation

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

Defined Under Namespace

Classes: RequestedFile

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

#initializeObject



207
# File 'sig/whop_sdk/models/verification_create_response.rbs', line 207

def initialize: (

Instance Attribute Details

#descriptionString?

Additional instructions for this requested item, or null.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


217
# File 'lib/whop_sdk/models/verification_create_response.rb', line 217

optional :description, String, nil?: true

#error_messageString?

Reason a previously submitted value was rejected. null if no submitted value has been rejected.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


224
# File 'lib/whop_sdk/models/verification_create_response.rb', line 224

optional :error_message, String, nil?: true

#fieldString?

Stable field key, such as ssn or business_description.

Parameters:

  • (String)

Returns:

  • (String, nil)


230
# File 'lib/whop_sdk/models/verification_create_response.rb', line 230

optional :field, String

#idString?

Requested information item ID, prefixed inrqi_. Include this ID when submitting an answer.

Parameters:

  • (String)

Returns:

  • (String, nil)


211
# File 'lib/whop_sdk/models/verification_create_response.rb', line 211

optional :id, String

#labelString?

Human-readable label for the field, such as Social Security Number.

Parameters:

  • (String)

Returns:

  • (String, nil)


236
# File 'lib/whop_sdk/models/verification_create_response.rb', line 236

optional :label, String

#optionsArray<String>?

Allowed values for a select field (e.g. account_type, business_structure) — the submitted value must be one of these; empty for other types.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


243
# File 'lib/whop_sdk/models/verification_create_response.rb', line 243

optional :options, WhopSDK::Internal::Type::ArrayOf[String]

#requested_filesArray<WhopSDK::Models::VerificationCreateResponse::RequestedInformation::RequestedFile>?

Document upload slots for this item. Present when type is files; upload one file for each required slot and include the slot's category when submitting the answer.



251
252
# File 'lib/whop_sdk/models/verification_create_response.rb', line 251

optional :requested_files,
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::VerificationCreateResponse::RequestedInformation::RequestedFile] }

#typeString?

Input type expected for this item: text, date, phone, address, files, or select.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


259
# File 'lib/whop_sdk/models/verification_create_response.rb', line 259

optional :type, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


218
# File 'sig/whop_sdk/models/verification_create_response.rbs', line 218

def to_hash: -> {