Class: WhopSDK::Models::PlanUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::PlanUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/whop_sdk/models/plan_update_params.rb
Overview
Defined Under Namespace
Modules: ThreeDSLevel Classes: CheckoutStyling, CustomField, Image, PaymentMethodConfiguration
Instance Attribute Summary collapse
-
#adaptive_pricing_enabled ⇒ Boolean?
Whether this plan accepts local currency payments via adaptive pricing.
-
#billing_period ⇒ Integer?
The number of days between recurring charges.
-
#checkout_styling ⇒ WhopSDK::Models::PlanUpdateParams::CheckoutStyling?
Checkout styling overrides for this plan.
-
#currency ⇒ Symbol, ...
The available currencies on the platform.
-
#custom_fields ⇒ Array<WhopSDK::Models::PlanUpdateParams::CustomField>?
An array of custom field definitions to collect from customers at checkout.
-
#description ⇒ String?
A text description of the plan displayed to customers on the product page.
-
#expiration_days ⇒ Integer?
The number of days until the membership expires and access is revoked.
- #id ⇒ String
-
#image ⇒ WhopSDK::Models::PlanUpdateParams::Image?
An image displayed on the product page to represent this plan.
-
#initial_price ⇒ Float?
The amount charged on the first purchase.
-
#internal_notes ⇒ String?
Private notes visible only to the business owner.
-
#legacy_payment_method_controls ⇒ Boolean?
Whether this plan uses legacy payment method controls.
-
#metadata ⇒ Hash{Symbol=>Object}?
Custom key-value pairs to store on the plan.
-
#offer_cancel_discount ⇒ Boolean?
Whether to offer a retention discount when a customer attempts to cancel.
-
#override_tax_type ⇒ Symbol, ...
Whether or not the tax is included in a plan’s price (or if it hasn’t been set up).
-
#payment_method_configuration ⇒ WhopSDK::Models::PlanUpdateParams::PaymentMethodConfiguration?
Explicit payment method configuration for the plan.
-
#renewal_price ⇒ Float?
The amount charged each billing period for recurring plans.
-
#stock ⇒ Integer?
The maximum number of units available for purchase.
-
#strike_through_initial_price ⇒ Float?
A comparison price displayed with a strikethrough for the initial price.
-
#strike_through_renewal_price ⇒ Float?
A comparison price displayed with a strikethrough for the renewal price.
-
#three_ds_level ⇒ Symbol, ...
The 3D Secure behavior for a plan.
-
#title ⇒ String?
The display name of the plan shown to customers on the product page.
-
#trial_period_days ⇒ Integer?
The number of free trial days before the first charge on a recurring plan.
-
#unlimited_stock ⇒ Boolean?
Whether the plan has unlimited stock.
-
#visibility ⇒ Symbol, ...
Visibility of a resource.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(disabled:, enabled:, include_platform_defaults: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see PaymentMethodConfiguration for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(disabled:, enabled:, include_platform_defaults: nil) ⇒ Object
Some parameter documentations has been truncated, see PaymentMethodConfiguration for more details.
Explicit payment method configuration for the plan. Sending null removes any custom configuration.
|
|
# File 'lib/whop_sdk/models/plan_update_params.rb', line 257
|
Instance Attribute Details
#adaptive_pricing_enabled ⇒ Boolean?
Whether this plan accepts local currency payments via adaptive pricing.
19 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 19 optional :adaptive_pricing_enabled, WhopSDK::Internal::Type::Boolean, nil?: true |
#billing_period ⇒ Integer?
The number of days between recurring charges. For example, 30 for monthly or 365 for yearly.
26 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 26 optional :billing_period, Integer, nil?: true |
#checkout_styling ⇒ WhopSDK::Models::PlanUpdateParams::CheckoutStyling?
Checkout styling overrides for this plan. Pass null to remove all overrides and inherit from the company default.
33 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 33 optional :checkout_styling, -> { WhopSDK::PlanUpdateParams::CheckoutStyling }, nil?: true |
#currency ⇒ Symbol, ...
The available currencies on the platform
39 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 39 optional :currency, enum: -> { WhopSDK::Currency }, nil?: true |
#custom_fields ⇒ Array<WhopSDK::Models::PlanUpdateParams::CustomField>?
An array of custom field definitions to collect from customers at checkout.
45 46 47 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 45 optional :custom_fields, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::PlanUpdateParams::CustomField] }, nil?: true |
#description ⇒ String?
A text description of the plan displayed to customers on the product page.
53 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 53 optional :description, String, nil?: true |
#expiration_days ⇒ Integer?
The number of days until the membership expires and access is revoked. For example, 365 for one-year access.
60 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 60 optional :expiration_days, Integer, nil?: true |
#id ⇒ String
13 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 13 required :id, String |
#image ⇒ WhopSDK::Models::PlanUpdateParams::Image?
An image displayed on the product page to represent this plan.
66 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 66 optional :image, -> { WhopSDK::PlanUpdateParams::Image }, nil?: true |
#initial_price ⇒ Float?
The amount charged on the first purchase. Provided in the plan’s currency (e.g., 10.43 for $10.43).
73 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 73 optional :initial_price, Float, nil?: true |
#internal_notes ⇒ String?
Private notes visible only to the business owner. Not shown to customers.
79 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 79 optional :internal_notes, String, nil?: true |
#legacy_payment_method_controls ⇒ Boolean?
Whether this plan uses legacy payment method controls.
85 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 85 optional :legacy_payment_method_controls, WhopSDK::Internal::Type::Boolean, nil?: true |
#metadata ⇒ Hash{Symbol=>Object}?
Custom key-value pairs to store on the plan. Included in webhook payloads for payment and membership events. Max 50 keys, 500 chars per key, 5000 chars per value.
93 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 93 optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true |
#offer_cancel_discount ⇒ Boolean?
Whether to offer a retention discount when a customer attempts to cancel.
99 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 99 optional :offer_cancel_discount, WhopSDK::Internal::Type::Boolean, nil?: true |
#override_tax_type ⇒ Symbol, ...
Whether or not the tax is included in a plan’s price (or if it hasn’t been set up)
106 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 106 optional :override_tax_type, enum: -> { WhopSDK::TaxType }, nil?: true |
#payment_method_configuration ⇒ WhopSDK::Models::PlanUpdateParams::PaymentMethodConfiguration?
Explicit payment method configuration for the plan. Sending null removes any custom configuration.
113 114 115 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 113 optional :payment_method_configuration, -> { WhopSDK::PlanUpdateParams::PaymentMethodConfiguration }, nil?: true |
#renewal_price ⇒ Float?
The amount charged each billing period for recurring plans. Provided in the plan’s currency (e.g., 10.43 for $10.43).
122 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 122 optional :renewal_price, Float, nil?: true |
#stock ⇒ Integer?
The maximum number of units available for purchase. Ignored when unlimited_stock is true.
129 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 129 optional :stock, Integer, nil?: true |
#strike_through_initial_price ⇒ Float?
A comparison price displayed with a strikethrough for the initial price. Provided in the plan’s currency (e.g., 19.99 for $19.99).
136 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 136 optional :strike_through_initial_price, Float, nil?: true |
#strike_through_renewal_price ⇒ Float?
A comparison price displayed with a strikethrough for the renewal price. Provided in the plan’s currency (e.g., 19.99 for $19.99).
143 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 143 optional :strike_through_renewal_price, Float, nil?: true |
#three_ds_level ⇒ Symbol, ...
The 3D Secure behavior for a plan.
149 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 149 optional :three_ds_level, enum: -> { WhopSDK::PlanUpdateParams::ThreeDSLevel }, nil?: true |
#title ⇒ String?
The display name of the plan shown to customers on the product page.
155 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 155 optional :title, String, nil?: true |
#trial_period_days ⇒ Integer?
The number of free trial days before the first charge on a recurring plan.
161 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 161 optional :trial_period_days, Integer, nil?: true |
#unlimited_stock ⇒ Boolean?
Whether the plan has unlimited stock. When true, the stock field is ignored.
167 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 167 optional :unlimited_stock, WhopSDK::Internal::Type::Boolean, nil?: true |
#visibility ⇒ Symbol, ...
Visibility of a resource
173 |
# File 'lib/whop_sdk/models/plan_update_params.rb', line 173 optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true |