Class: WhopSDK::Models::NotificationCreateParams::Body::SendNotificationV2InputWithCompanyID

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/notification_create_params.rb,
sig/whop_sdk/models/notification_create_params.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

#initializeObject



56
# File 'sig/whop_sdk/models/notification_create_params.rbs', line 56

def initialize: (

Instance Attribute Details

#company_idString

The unique identifier of the company to target. Only team members of this company will receive the notification. Clicking the notification opens your dashboard app view.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :company_id, String

#contentString

The main body text of the notification displayed to the user.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :content, String

#icon_user_idString?

The unique identifier of a user whose profile picture will be used as the notification icon. Defaults to the experience or company avatar when not provided.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


58
# File 'lib/whop_sdk/models/notification_create_params.rb', line 58

optional :icon_user_id, String, nil?: true

#rest_pathString?

A path segment appended to the generated deep link that opens your app. Use [restPath] in your app path configuration to read this parameter. For example, '/settings/billing'.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


66
# File 'lib/whop_sdk/models/notification_create_params.rb', line 66

optional :rest_path, String, nil?: true

#subtitleString?

An optional secondary line of text displayed below the title in the notification.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


73
# File 'lib/whop_sdk/models/notification_create_params.rb', line 73

optional :subtitle, String, nil?: true

#titleString

The headline text of the notification, displayed prominently to the user.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :title, String

#user_idsArray<String>?

An optional list of user IDs to narrow the audience. When provided, only these users receive the notification, provided they are in the targeted experience or company.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


81
# File 'lib/whop_sdk/models/notification_create_params.rb', line 81

optional :user_ids, WhopSDK::Internal::Type::ArrayOf[String], nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


66
# File 'sig/whop_sdk/models/notification_create_params.rbs', line 66

def to_hash: -> {