Class: WhopSDK::Models::CheckoutConfigurationListResponse::Plan
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CheckoutConfigurationListResponse::Plan
- Defined in:
- lib/whop_sdk/models/checkout_configuration_list_response.rb,
sig/whop_sdk/models/checkout_configuration_list_response.rbs
Overview
Instance Attribute Summary collapse
-
#adaptive_pricing_enabled ⇒ Boolean
Whether this plan accepts local currency payments via adaptive pricing.
-
#billing_period ⇒ Integer?
Recurring billing interval in days, such as 30 for monthly or 365 for annual.
-
#currency ⇒ String
Three-letter ISO currency code for the plan's prices.
-
#expiration_days ⇒ Integer?
Access duration in days for expiration-based plans.
-
#id ⇒ String
Plan ID, prefixed
plan_. -
#initial_price ⇒ Float
Initial purchase price in the plan currency.
-
#plan_type ⇒ String
Billing model for the plan:
renewal(recurring) orone_time(single payment). -
#release_method ⇒ String
Sales method for the plan, such as
buy_noworwaitlist. -
#renewal_price ⇒ Float
Recurring price charged each billing period.
-
#three_ds_level ⇒ String?
3D Secure behavior for this plan, or
nullto use the account default. -
#trial_period_days ⇒ Integer?
Free trial days before the first renewal charge.
-
#visibility ⇒ String
Whether the plan is visible to customers or hidden from public view.
Instance Method Summary collapse
-
#initialize(id:, adaptive_pricing_enabled:, billing_period:, currency:, expiration_days:, initial_price:, plan_type:, release_method:, renewal_price:, three_ds_level:, trial_period_days:, visibility:) ⇒ Object
constructor
Some parameter documentations has been truncated, see Plan for more details.
- #to_hash ⇒ {
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:, adaptive_pricing_enabled:, billing_period:, currency:, expiration_days:, initial_price:, plan_type:, release_method:, renewal_price:, three_ds_level:, trial_period_days:, visibility:) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::CheckoutConfigurationListResponse::Plan for more details.
Plan used for payment checkout. null in setup mode.
|
|
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 243
|
Instance Attribute Details
#adaptive_pricing_enabled ⇒ Boolean
Whether this plan accepts local currency payments via adaptive pricing.
179 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 179 required :adaptive_pricing_enabled, WhopSDK::Internal::Type::Boolean |
#billing_period ⇒ Integer?
Recurring billing interval in days, such as 30 for monthly or 365 for annual.
null for one-time plans.
186 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 186 required :billing_period, Integer, nil?: true |
#currency ⇒ String
Three-letter ISO currency code for the plan's prices.
192 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 192 required :currency, String |
#expiration_days ⇒ Integer?
Access duration in days for expiration-based plans.
198 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 198 required :expiration_days, Integer, nil?: true |
#id ⇒ String
Plan ID, prefixed plan_.
173 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 173 required :id, String |
#initial_price ⇒ Float
Initial purchase price in the plan currency.
204 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 204 required :initial_price, Float |
#plan_type ⇒ String
Billing model for the plan: renewal (recurring) or one_time (single
payment).
211 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 211 required :plan_type, String |
#release_method ⇒ String
Sales method for the plan, such as buy_now or waitlist.
217 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 217 required :release_method, String |
#renewal_price ⇒ Float
Recurring price charged each billing period.
223 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 223 required :renewal_price, Float |
#three_ds_level ⇒ String?
3D Secure behavior for this plan, or null to use the account default.
229 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 229 required :three_ds_level, String, nil?: true |
#trial_period_days ⇒ Integer?
Free trial days before the first renewal charge.
235 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 235 required :trial_period_days, Integer, nil?: true |
#visibility ⇒ String
Whether the plan is visible to customers or hidden from public view.
241 |
# File 'lib/whop_sdk/models/checkout_configuration_list_response.rb', line 241 required :visibility, String |
Instance Method Details
#to_hash ⇒ {
179 |
# File 'sig/whop_sdk/models/checkout_configuration_list_response.rbs', line 179
def to_hash: -> {
|