Class: WhopSDK::Models::ConversionCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/whop_sdk/models/conversion_create_params.rb

Overview

Defined Under Namespace

Modules: ActionSource, EventName Classes: Context, User

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(ad_campaign_id: nil, ad_id: nil, ad_set_id: nil, fbclid: nil, fbp: nil, ga: nil, gclid: nil, ig_sid: nil, ip_address: nil, ttclid: nil, ttp: nil, user_agent: nil, utm_campaign: nil, utm_content: nil, utm_id: nil, utm_medium: nil, utm_source: nil, utm_term: nil) ⇒ Object

Tracking and attribution context.

Parameters:

  • ad_campaign_id (String, nil) (defaults to: nil)

    Ad campaign ID.

  • ad_id (String, nil) (defaults to: nil)

    Ad ID.

  • ad_set_id (String, nil) (defaults to: nil)

    Ad set ID.

  • fbclid (String, nil) (defaults to: nil)

    Facebook click ID.

  • fbp (String, nil) (defaults to: nil)

    Facebook browser pixel ID.

  • ga (String, nil) (defaults to: nil)

    Google Analytics client ID.

  • gclid (String, nil) (defaults to: nil)

    Google click ID.

  • ig_sid (String, nil) (defaults to: nil)

    Instagram session ID.

  • ip_address (String, nil) (defaults to: nil)

    IP address.

  • ttclid (String, nil) (defaults to: nil)

    TikTok click ID.

  • ttp (String, nil) (defaults to: nil)

    TikTok pixel ID.

  • user_agent (String, nil) (defaults to: nil)

    Browser user agent string.

  • utm_campaign (String, nil) (defaults to: nil)

    UTM campaign parameter.

  • utm_content (String, nil) (defaults to: nil)

    UTM content parameter.

  • utm_id (String, nil) (defaults to: nil)

    UTM ID parameter.

  • utm_medium (String, nil) (defaults to: nil)

    UTM medium parameter.

  • utm_source (String, nil) (defaults to: nil)

    UTM source parameter.

  • utm_term (String, nil) (defaults to: nil)

    UTM term parameter.



# File 'lib/whop_sdk/models/conversion_create_params.rb', line 94

Instance Attribute Details

#action_sourceSymbol, ...

The channel where an event originated



26
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 26

optional :action_source, enum: -> { WhopSDK::ConversionCreateParams::ActionSource }, nil?: true

#company_idString

The company to associate with this event.

Returns:

  • (String)


14
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 14

required :company_id, String

#contextWhopSDK::Models::ConversionCreateParams::Context?

Tracking and attribution context.



32
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 32

optional :context, -> { WhopSDK::ConversionCreateParams::Context }, nil?: true

#currencySymbol, ...

The available currencies on the platform

Returns:



38
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 38

optional :currency, enum: -> { WhopSDK::Currency }, nil?: true

#custom_nameString?

Custom event name when event_name is ‘custom’.

Returns:

  • (String, nil)


44
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 44

optional :custom_name, String, nil?: true

#event_idString?

Client-provided identifier for deduplication. Generated if omitted.

Returns:

  • (String, nil)


50
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 50

optional :event_id, String, nil?: true

#event_nameSymbol, WhopSDK::Models::ConversionCreateParams::EventName

The type of event.



20
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 20

required :event_name, enum: -> { WhopSDK::ConversionCreateParams::EventName }

#event_timeTime?

When the event occurred. Defaults to now.

Returns:

  • (Time, nil)


56
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 56

optional :event_time, Time, nil?: true

#plan_idString?

The plan associated with the event.

Returns:

  • (String, nil)


62
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 62

optional :plan_id, String, nil?: true

#product_idString?

The product associated with the event.

Returns:

  • (String, nil)


68
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 68

optional :product_id, String, nil?: true

#referrer_urlString?

The referring URL.

Returns:

  • (String, nil)


74
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 74

optional :referrer_url, String, nil?: true

#urlString?

The URL where the event occurred.

Returns:

  • (String, nil)


80
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 80

optional :url, String, nil?: true

#userWhopSDK::Models::ConversionCreateParams::User?

User identity and profile data.



86
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 86

optional :user, -> { WhopSDK::ConversionCreateParams::User }, nil?: true

#valueFloat?

Monetary value associated with the event.

Returns:

  • (Float, nil)


92
# File 'lib/whop_sdk/models/conversion_create_params.rb', line 92

optional :value, Float, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/conversion_create_params.rb', line 136