Class: WhopSDK::Models::CheckoutConfigurationCreateParams::Plan
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CheckoutConfigurationCreateParams::Plan
- Defined in:
- lib/whop_sdk/models/checkout_configuration_create_params.rb,
sig/whop_sdk/models/checkout_configuration_create_params.rbs
Defined Under Namespace
Classes: PaymentMethodConfiguration
Instance Attribute Summary collapse
-
#billing_period ⇒ Integer?
Recurring billing interval in days, such as 30 for monthly or 365 for annual.
-
#company_id ⇒ String?
Account ID for the inline plan, prefixed
biz_. -
#currency ⇒ String?
Three-letter ISO currency code for the plan's prices.
-
#description ⇒ String?
Customer-visible plan description.
-
#expiration_days ⇒ Integer?
Access duration in days for expiration-based plans.
-
#force_create_new_plan ⇒ Boolean?
Whether to create a new plan instead of reusing a matching one.
-
#initial_price ⇒ Float?
Initial purchase price in the plan currency.
-
#metadata ⇒ Object?
Custom key-value metadata stored on the plan.
-
#override_tax_type ⇒ String?
Tax classification override for this plan.
-
#payment_method_configuration ⇒ WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration?
Payment method overrides for the inline plan.
-
#plan_type ⇒ String?
Billing model for the plan:
renewal(recurring) orone_time(single payment). -
#product_id ⇒ String?
Product ID the inline plan should belong to, prefixed
prod_. -
#release_method ⇒ String?
Sales method for the plan, such as
buy_noworwaitlist. -
#renewal_price ⇒ Float?
Recurring price charged each billing period.
-
#stock ⇒ Integer?
Units available for purchase.
-
#title ⇒ String?
Plan display name shown to customers.
-
#trial_period_days ⇒ Integer?
Free trial days before the first renewal charge.
-
#unlimited_stock ⇒ Boolean?
Whether the plan has unlimited stock.
-
#visibility ⇒ String?
Whether the plan is visible to customers or hidden from public view.
Instance Method Summary collapse
-
#initialize(billing_period: nil, company_id: nil, currency: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, initial_price: nil, metadata: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, product_id: nil, release_method: nil, renewal_price: nil, stock: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil) ⇒ 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(billing_period: nil, company_id: nil, currency: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, initial_price: nil, metadata: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, product_id: nil, release_method: nil, renewal_price: nil, stock: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::CheckoutConfigurationCreateParams::Plan for more details.
Plan attributes used to create or find a plan for this checkout configuration.
Mutually exclusive with plan_id.
|
|
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 262
|
Instance Attribute Details
#billing_period ⇒ Integer?
Recurring billing interval in days, such as 30 for monthly or 365 for annual.
148 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 148 optional :billing_period, Integer, nil?: true |
#company_id ⇒ String?
Account ID for the inline plan, prefixed biz_. Defaults to the account
resolved from the request.
155 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 155 optional :company_id, String, nil?: true |
#currency ⇒ String?
Three-letter ISO currency code for the plan's prices.
161 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 161 optional :currency, String, nil?: true |
#description ⇒ String?
Customer-visible plan description.
167 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 167 optional :description, String, nil?: true |
#expiration_days ⇒ Integer?
Access duration in days for expiration-based plans.
173 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 173 optional :expiration_days, Integer, nil?: true |
#force_create_new_plan ⇒ Boolean?
Whether to create a new plan instead of reusing a matching one.
179 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 179 optional :force_create_new_plan, WhopSDK::Internal::Type::Boolean, nil?: true |
#initial_price ⇒ Float?
Initial purchase price in the plan currency.
185 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 185 optional :initial_price, Float, nil?: true |
#metadata ⇒ Object?
Custom key-value metadata stored on the plan.
191 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 191 optional :metadata, WhopSDK::Internal::Type::Unknown, nil?: true |
#override_tax_type ⇒ String?
Tax classification override for this plan.
197 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 197 optional :override_tax_type, String, nil?: true |
#payment_method_configuration ⇒ WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration?
Payment method overrides for the inline plan. null uses platform defaults.
203 204 205 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 203 optional :payment_method_configuration, -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration }, nil?: true |
#plan_type ⇒ String?
Billing model for the plan: renewal (recurring) or one_time (single
payment).
212 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 212 optional :plan_type, String, nil?: true |
#product_id ⇒ String?
Product ID the inline plan should belong to, prefixed prod_.
218 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 218 optional :product_id, String, nil?: true |
#release_method ⇒ String?
Sales method for the plan, such as buy_now or waitlist.
224 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 224 optional :release_method, String, nil?: true |
#renewal_price ⇒ Float?
Recurring price charged each billing period.
230 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 230 optional :renewal_price, Float, nil?: true |
#stock ⇒ Integer?
Units available for purchase.
236 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 236 optional :stock, Integer, nil?: true |
#title ⇒ String?
Plan display name shown to customers.
242 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 242 optional :title, String, nil?: true |
#trial_period_days ⇒ Integer?
Free trial days before the first renewal charge.
248 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 248 optional :trial_period_days, Integer, nil?: true |
#unlimited_stock ⇒ Boolean?
Whether the plan has unlimited stock.
254 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 254 optional :unlimited_stock, WhopSDK::Internal::Type::Boolean, nil?: true |
#visibility ⇒ String?
Whether the plan is visible to customers or hidden from public view.
260 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 260 optional :visibility, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
204 |
# File 'sig/whop_sdk/models/checkout_configuration_create_params.rbs', line 204
def to_hash: -> {
|