Class: Amocrm::Models::UnsortedLeadCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata

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

Overview

See Also:

  • Amocrm::Models::UnsortedLeadCreateFormsParams::Body::Embedded::Lead::Embedded#metadata

Defined Under Namespace

Modules: Category, FormID

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(category: nil, form_id: nil, form_name: nil, form_page: nil, form_sent_at: nil, form_type: nil, ip: nil, referer: nil, visitor_uid: nil) ⇒ Object

Parameters:

  • category (Symbol, Amocrm::Models::UnsortedLeadCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::Category) (defaults to: nil) —

    Unsorted category

  • form_id (String, Integer) (defaults to: nil) —

    Form id in your system (string or numeric)

  • form_name (String) (defaults to: nil) —

    Form name (shown in amoCRM)

  • form_page (String) (defaults to: nil) —

    Page URL where form lives

  • form_sent_at (Integer) (defaults to: nil) —

    Unix timestamp (seconds) when the form was submitted

  • form_type (Integer) (defaults to: nil) —

    Form type code from amoCRM, use only if you know it

  • ip (String) (defaults to: nil) —

    IP address of the submitter

  • referer (String) (defaults to: nil) —

    Referrer URL

  • visitor_uid (String) (defaults to: nil) —

    Visitor uid from tracking, if you have it



# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 669

Instance Attribute Details

#category ⇒ Symbol, ...

Unsorted category



617
618
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 617

optional :category,
enum: -> { Amocrm::UnsortedLeadCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::Category }

#form_id ⇒ String, ...

Form id in your system (string or numeric)

Returns:

  • (String, Integer, nil)


624
625
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 624

optional :form_id,
union: -> { Amocrm::UnsortedLeadCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::FormID }

#form_name ⇒ String?

Form name (shown in amoCRM)

Parameters:

  • (String)

Returns:

  • (String, nil)


631
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 631

optional :form_name, String

#form_page ⇒ String?

Page URL where form lives

Parameters:

  • (String)

Returns:

  • (String, nil)


637
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 637

optional :form_page, String

#form_sent_at ⇒ Integer?

Unix timestamp (seconds) when the form was submitted

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


643
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 643

optional :form_sent_at, Integer

#form_type ⇒ Integer?

Form type code from amoCRM, use only if you know it

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


649
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 649

optional :form_type, Integer

#ip ⇒ String?

IP address of the submitter

Parameters:

  • (String)

Returns:

  • (String, nil)


655
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 655

optional :ip, String

#referer ⇒ String?

Referrer URL

Parameters:

  • (String)

Returns:

  • (String, nil)


661
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 661

optional :referer, String

#visitor_uid ⇒ String?

Visitor uid from tracking, if you have it

Parameters:

  • (String)

Returns:

  • (String, nil)


667
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 667

optional :visitor_uid, String

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 699

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


723
# File 'sig/amocrm/models/unsorted_lead_create_forms_params.rbs', line 723

def to_hash: -> {