Class: Dodopayments::Models::Product
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Product
- Defined in:
- lib/dodopayments/models/product.rb
Overview
Defined Under Namespace
Classes: DigitalProductDelivery
Instance Attribute Summary collapse
-
#addons ⇒ Array<String>?
Available Addons for subscription products.
- #brand_id ⇒ String
-
#business_id ⇒ String
Unique identifier for the business to which the product belongs.
-
#created_at ⇒ Time
Timestamp when the product was created.
-
#description ⇒ String?
Description of the product, optional.
- #digital_product_delivery ⇒ Dodopayments::Models::Product::DigitalProductDelivery?
-
#image ⇒ String?
URL of the product image, optional.
-
#is_recurring ⇒ Boolean
Indicates if the product is recurring (e.g., subscriptions).
-
#license_key_activation_message ⇒ String?
Message sent upon license key activation, if applicable.
-
#license_key_activations_limit ⇒ Integer?
Limit on the number of activations for the license key, if enabled.
-
#license_key_duration ⇒ Dodopayments::Models::LicenseKeyDuration?
Duration of the license key validity, if enabled.
-
#license_key_enabled ⇒ Boolean
Indicates whether the product requires a license key.
-
#metadata ⇒ Hash{Symbol=>String}
Additional custom data associated with the product.
-
#name ⇒ String?
Name of the product, optional.
-
#price ⇒ Dodopayments::Models::Price::OneTimePrice, ...
Pricing information for the product.
-
#product_id ⇒ String
Unique identifier for the product.
-
#tax_category ⇒ Symbol, Dodopayments::Models::TaxCategory
Tax category associated with the product.
-
#updated_at ⇒ Time
Timestamp when the product was last updated.
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(brand_id: , business_id: , created_at: , is_recurring: , license_key_enabled: , metadata: , price: , product_id: , tax_category: , updated_at: , addons: nil, description: nil, digital_product_delivery: nil, image: nil, license_key_activation_message: nil, license_key_activations_limit: nil, license_key_duration: nil, name: nil) ⇒ Object
|
|
# File 'lib/dodopayments/models/product.rb', line 113
|
Instance Attribute Details
#addons ⇒ Array<String>?
Available Addons for subscription products
70 |
# File 'lib/dodopayments/models/product.rb', line 70 optional :addons, Dodopayments::Internal::Type::ArrayOf[String], nil?: true |
#brand_id ⇒ String
10 |
# File 'lib/dodopayments/models/product.rb', line 10 required :brand_id, String |
#business_id ⇒ String
Unique identifier for the business to which the product belongs.
16 |
# File 'lib/dodopayments/models/product.rb', line 16 required :business_id, String |
#created_at ⇒ Time
Timestamp when the product was created.
22 |
# File 'lib/dodopayments/models/product.rb', line 22 required :created_at, Time |
#description ⇒ String?
Description of the product, optional.
76 |
# File 'lib/dodopayments/models/product.rb', line 76 optional :description, String, nil?: true |
#digital_product_delivery ⇒ Dodopayments::Models::Product::DigitalProductDelivery?
81 |
# File 'lib/dodopayments/models/product.rb', line 81 optional :digital_product_delivery, -> { Dodopayments::Product::DigitalProductDelivery }, nil?: true |
#image ⇒ String?
URL of the product image, optional.
87 |
# File 'lib/dodopayments/models/product.rb', line 87 optional :image, String, nil?: true |
#is_recurring ⇒ Boolean
Indicates if the product is recurring (e.g., subscriptions).
28 |
# File 'lib/dodopayments/models/product.rb', line 28 required :is_recurring, Dodopayments::Internal::Type::Boolean |
#license_key_activation_message ⇒ String?
Message sent upon license key activation, if applicable.
93 |
# File 'lib/dodopayments/models/product.rb', line 93 optional :license_key_activation_message, String, nil?: true |
#license_key_activations_limit ⇒ Integer?
Limit on the number of activations for the license key, if enabled.
99 |
# File 'lib/dodopayments/models/product.rb', line 99 optional :license_key_activations_limit, Integer, nil?: true |
#license_key_duration ⇒ Dodopayments::Models::LicenseKeyDuration?
Duration of the license key validity, if enabled.
105 |
# File 'lib/dodopayments/models/product.rb', line 105 optional :license_key_duration, -> { Dodopayments::LicenseKeyDuration }, nil?: true |
#license_key_enabled ⇒ Boolean
Indicates whether the product requires a license key.
34 |
# File 'lib/dodopayments/models/product.rb', line 34 required :license_key_enabled, Dodopayments::Internal::Type::Boolean |
#metadata ⇒ Hash{Symbol=>String}
Additional custom data associated with the product
40 |
# File 'lib/dodopayments/models/product.rb', line 40 required :metadata, Dodopayments::Internal::Type::HashOf[String] |
#name ⇒ String?
Name of the product, optional.
111 |
# File 'lib/dodopayments/models/product.rb', line 111 optional :name, String, nil?: true |
#price ⇒ Dodopayments::Models::Price::OneTimePrice, ...
Pricing information for the product.
46 |
# File 'lib/dodopayments/models/product.rb', line 46 required :price, union: -> { Dodopayments::Price } |
#product_id ⇒ String
Unique identifier for the product.
52 |
# File 'lib/dodopayments/models/product.rb', line 52 required :product_id, String |
#tax_category ⇒ Symbol, Dodopayments::Models::TaxCategory
Tax category associated with the product.
58 |
# File 'lib/dodopayments/models/product.rb', line 58 required :tax_category, enum: -> { Dodopayments::TaxCategory } |
#updated_at ⇒ Time
Timestamp when the product was last updated.
64 |
# File 'lib/dodopayments/models/product.rb', line 64 required :updated_at, Time |