Class: WhopSDK::Models::RefundCreatedWebhookEvent::Data::Payment::Member

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#member

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

#initializeMember

Returns a new instance of Member.

Parameters:

  • id: (String)
  • phone: (String, nil)


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

def initialize: (id: String, phone: String?) -> void

Instance Attribute Details

#idString

The unique identifier for the company member.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#phoneString?

The phone number for the member, if available.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :phone, String, nil?: true

Instance Method Details

#to_hash{ id: String, phone: String? }

Returns:

  • ({ id: String, phone: String? })


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

def to_hash: -> { id: String, phone: String? }