Class: WhopSDK::Models::RefundRetrieveResponse::Payment::Plan

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

Overview

See Also:

  • WhopSDK::Models::RefundRetrieveResponse::Payment#plan

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

#initializePlan

Returns a new instance of Plan.

Parameters:

  • id: (String)
  • metadata: (::Hash[Symbol, top], nil)


223
# File 'sig/whop_sdk/models/refund_retrieve_response.rbs', line 223

def initialize: (id: String, metadata: ::Hash[Symbol, top]?) -> void

Instance Attribute Details

#idString

The unique identifier for the plan.

Parameters:

  • value (String)

Returns:

  • (String)


338
# File 'lib/whop_sdk/models/refund_retrieve_response.rb', line 338

required :id, String

#metadataHash{Symbol=>Object}?

Custom key-value pairs stored on the plan. Included in webhook payloads for payment and membership events. Max 50 keys, 100 chars per key, 500 chars per string value.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:

  • (Hash{Symbol=>Object}, nil)


346
# File 'lib/whop_sdk/models/refund_retrieve_response.rb', line 346

required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true

Instance Method Details

#to_hash{ id: String, metadata: ::Hash[Symbol, top]? }

Returns:

  • ({ id: String, metadata: ::Hash[Symbol, top]? })


225
# File 'sig/whop_sdk/models/refund_retrieve_response.rbs', line 225

def to_hash: -> { id: String, metadata: ::Hash[Symbol, top]? }