Class: WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::CustomField
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::CustomField
- Defined in:
- lib/whop_sdk/models/checkout_configuration_create_params.rb
Instance Attribute Summary collapse
-
#field_type ⇒ Symbol, :text
The type of the custom field.
-
#id ⇒ String?
The ID of the custom field (if being updated).
-
#name ⇒ String
The name of the custom field.
-
#order ⇒ Integer?
The order of the field.
-
#placeholder ⇒ String?
The placeholder value of the field.
-
#required ⇒ Boolean?
Whether or not the field is required.
Instance Method Summary collapse
-
#initialize(company_id: , billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, plan_type: nil, product_id: nil, release_method: nil, renewal_price: nil, title: nil, trial_period_days: nil, visibility: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see WhopSDK::Models::CheckoutConfigurationCreateParams::Plan for more details.
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(company_id: , billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, plan_type: nil, product_id: nil, release_method: nil, renewal_price: nil, title: nil, trial_period_days: nil, visibility: nil) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::CheckoutConfigurationCreateParams::Plan for more details.
Pass this object to create a new plan for this checkout configuration
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 210 class CustomField < WhopSDK::Internal::Type::BaseModel # @!attribute field_type # The type of the custom field. # # @return [Symbol, :text] required :field_type, const: :text # @!attribute name # The name of the custom field. # # @return [String] required :name, String # @!attribute id # The ID of the custom field (if being updated) # # @return [String, nil] optional :id, String, nil?: true # @!attribute order # The order of the field. # # @return [Integer, nil] optional :order, Integer, nil?: true # @!attribute placeholder # The placeholder value of the field. # # @return [String, nil] optional :placeholder, String, nil?: true # @!attribute required # Whether or not the field is required. # # @return [Boolean, nil] optional :required, WhopSDK::Internal::Type::Boolean, nil?: true # @!method initialize(name:, id: nil, order: nil, placeholder: nil, required: nil, field_type: :text) # @param name [String] The name of the custom field. # # @param id [String, nil] The ID of the custom field (if being updated) # # @param order [Integer, nil] The order of the field. # # @param placeholder [String, nil] The placeholder value of the field. # # @param required [Boolean, nil] Whether or not the field is required. # # @param field_type [Symbol, :text] The type of the custom field. end |
Instance Attribute Details
#field_type ⇒ Symbol, :text
The type of the custom field.
215 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 215 required :field_type, const: :text |
#id ⇒ String?
The ID of the custom field (if being updated)
227 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 227 optional :id, String, nil?: true |
#name ⇒ String
The name of the custom field.
221 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 221 required :name, String |
#order ⇒ Integer?
The order of the field.
233 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 233 optional :order, Integer, nil?: true |
#placeholder ⇒ String?
The placeholder value of the field.
239 |
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 239 optional :placeholder, String, nil?: true |