Class: WhopSDK::Models::RefundCreatedWebhookEvent::Data::Payment::User

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

Overview

See Also:

  • WhopSDK::Models::RefundCreatedWebhookEvent::Data::Payment#user

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

#initialize(id:, email:, name:, username:) ⇒ Object

Some parameter documentations has been truncated, see WhopSDK::Models::RefundCreatedWebhookEvent::Data::Payment::User for more details.

The user that made this payment.

Parameters:

  • id (String)

    The unique identifier for the user.

  • email (String, nil)

    The user's email address. Requires the member:email:read permission to access. N

  • name (String, nil)

    The user's display name shown on their public profile.

  • username (String)

    The user's unique username shown on their public profile.



# File 'lib/whop_sdk/models/refund_created_webhook_event.rb', line 473

Instance Attribute Details

#emailString?

The user's email address. Requires the member:email:read permission to access. Null if not authorized.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


459
# File 'lib/whop_sdk/models/refund_created_webhook_event.rb', line 459

required :email, String, nil?: true

#idString

The unique identifier for the user.

Parameters:

  • value (String)

Returns:

  • (String)


452
# File 'lib/whop_sdk/models/refund_created_webhook_event.rb', line 452

required :id, String

#nameString?

The user's display name shown on their public profile.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


465
# File 'lib/whop_sdk/models/refund_created_webhook_event.rb', line 465

required :name, String, nil?: true

#usernameString

The user's unique username shown on their public profile.

Parameters:

  • value (String)

Returns:

  • (String)


471
# File 'lib/whop_sdk/models/refund_created_webhook_event.rb', line 471

required :username, String

Instance Method Details

#to_hash{

Returns:

  • ({)


300
# File 'sig/whop_sdk/models/refund_created_webhook_event.rbs', line 300

def to_hash: -> {