Class: WhopSDK::Models::SetupIntentListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/setup_intent_list_response.rb

Overview

Defined Under Namespace

Classes: CheckoutConfiguration, Company, Member, PaymentMethod

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

The user for this member, if any.

Parameters:

  • id (String) (defaults to: )

    The internal ID of the user account.

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

    The digital mailing address of the user.

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

    The user’s full name.

  • username (String) (defaults to: )

    The whop username.



# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 63

Instance Attribute Details

#checkout_configurationWhopSDK::Models::SetupIntentListResponse::CheckoutConfiguration?

The checkout configuration associated with the setup intent



17
18
19
# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 17

required :checkout_configuration,
-> { WhopSDK::Models::SetupIntentListResponse::CheckoutConfiguration },
nil?: true

#companyWhopSDK::Models::SetupIntentListResponse::Company?

The company of the setup intent



25
# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 25

required :company, -> { WhopSDK::Models::SetupIntentListResponse::Company }, nil?: true

#created_atTime

The datetime the payment was created

Returns:

  • (Time)


31
# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 31

required :created_at, Time

#error_messageString?

The error message, if any.

Returns:

  • (String, nil)


37
# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 37

required :error_message, String, nil?: true

#idString

The setup intent ID

Returns:

  • (String)


11
# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 11

required :id, String

#memberWhopSDK::Models::SetupIntentListResponse::Member?

The member connected to the setup intent



43
# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 43

required :member, -> { WhopSDK::Models::SetupIntentListResponse::Member }, nil?: true

#metadataHash{Symbol=>Object}?

The metadata associated with the setup intent

Returns:

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


49
# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 49

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

#payment_methodWhopSDK::Models::SetupIntentListResponse::PaymentMethod?

The payment method created during the setup, if available.



55
# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 55

required :payment_method, -> { WhopSDK::Models::SetupIntentListResponse::PaymentMethod }, nil?: true

#statusSymbol, WhopSDK::Models::SetupIntentStatus

The status of the setup intent



61
# File 'lib/whop_sdk/models/setup_intent_list_response.rb', line 61

required :status, enum: -> { WhopSDK::SetupIntentStatus }