Class: WhopSDK::Models::AdUpdateParams::LeadForm

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

Defined Under Namespace

Modules: FormType Classes: Completion, Disclaimer, Intro, PrivacyPolicy, Question

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(link_text: nil, url: nil) ⇒ Object

Your privacy policy. url is required by Meta.

Parameters:

  • link_text (String) (defaults to: nil)
  • url (String) (defaults to: nil)


# File 'lib/whop_sdk/models/ad_update_params.rb', line 312

Instance Attribute Details

#completionWhopSDK::Models::AdUpdateParams::LeadForm::Completion?

Optional completion screen shown after submission; url sets the follow-up website button.



265
# File 'lib/whop_sdk/models/ad_update_params.rb', line 265

optional :completion, -> { WhopSDK::AdUpdateParams::LeadForm::Completion }

#disclaimerWhopSDK::Models::AdUpdateParams::LeadForm::Disclaimer?

Optional custom consent disclaimer with checkboxes.



271
# File 'lib/whop_sdk/models/ad_update_params.rb', line 271

optional :disclaimer, -> { WhopSDK::AdUpdateParams::LeadForm::Disclaimer }

#form_typeSymbol, ...

more_volume (default) is quickest to submit; higher_intent adds a confirmation step.



278
# File 'lib/whop_sdk/models/ad_update_params.rb', line 278

optional :form_type, enum: -> { WhopSDK::AdUpdateParams::LeadForm::FormType }

#introWhopSDK::Models::AdUpdateParams::LeadForm::Intro?

Optional intro screen shown before the questions.



284
# File 'lib/whop_sdk/models/ad_update_params.rb', line 284

optional :intro, -> { WhopSDK::AdUpdateParams::LeadForm::Intro }

#nameString?

Internal name for the form. Auto-generated if omitted.

Parameters:

  • (String)

Returns:

  • (String, nil)


290
# File 'lib/whop_sdk/models/ad_update_params.rb', line 290

optional :name, String

#phone_verificationBoolean?

Require SMS verification of the phone number (higher_intent forms).

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


296
# File 'lib/whop_sdk/models/ad_update_params.rb', line 296

optional :phone_verification, WhopSDK::Internal::Type::Boolean

#privacy_policyWhopSDK::Models::AdUpdateParams::LeadForm::PrivacyPolicy?

Your privacy policy. url is required by Meta.



302
# File 'lib/whop_sdk/models/ad_update_params.rb', line 302

optional :privacy_policy, -> { WhopSDK::AdUpdateParams::LeadForm::PrivacyPolicy }

#questionsArray<WhopSDK::Models::AdUpdateParams::LeadForm::Question>?

The questions on the form. Standard prefill types need only a type; a custom question needs a label and a format (plus options for multiple_choice). Options carry an optional key and answer-routing logic.



310
# File 'lib/whop_sdk/models/ad_update_params.rb', line 310

optional :questions, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::AdUpdateParams::LeadForm::Question] }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/ad_update_params.rb', line 433

Instance Method Details

#to_hash{

Returns:

  • ({)


341
# File 'sig/whop_sdk/models/ad_update_params.rbs', line 341

def to_hash: -> {