Class: Dodopayments::Models::ProductCollections::Groups::ProductCollectionProduct

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/product_collections/groups/product_collection_product.rb

Instance Attribute Summary collapse

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(id:, addons_count:, files_count:, has_credit_entitlements:, is_recurring:, license_key_enabled:, meters_count:, product_id:, status:, currency: nil, description: nil, name: nil, price: nil, price_detail: nil, tax_category: nil, tax_inclusive: nil) ⇒ Object

Some parameter documentations has been truncated, see Dodopayments::Models::ProductCollections::Groups::ProductCollectionProduct for more details.

Parameters:



# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 92

Instance Attribute Details

#addons_countInteger

Returns:

  • (Integer)


16
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 16

required :addons_count, Integer

#currencySymbol, ...

Returns:



57
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 57

optional :currency, enum: -> { Dodopayments::Currency }, nil?: true

#descriptionString?

Returns:

  • (String, nil)


62
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 62

optional :description, String, nil?: true

#files_countInteger

Returns:

  • (Integer)


21
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 21

required :files_count, Integer

#has_credit_entitlementsBoolean

Whether this product has any credit entitlements attached

Returns:

  • (Boolean)


27
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 27

required :has_credit_entitlements, Dodopayments::Internal::Type::Boolean

#idString

Returns:

  • (String)


11
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 11

required :id, String

#is_recurringBoolean

Returns:

  • (Boolean)


32
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 32

required :is_recurring, Dodopayments::Internal::Type::Boolean

#license_key_enabledBoolean

Returns:

  • (Boolean)


37
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 37

required :license_key_enabled, Dodopayments::Internal::Type::Boolean

#meters_countInteger

Returns:

  • (Integer)


42
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 42

required :meters_count, Integer

#nameString?

Returns:

  • (String, nil)


67
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 67

optional :name, String, nil?: true

#priceInteger?

Returns:

  • (Integer, nil)


72
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 72

optional :price, Integer, nil?: true

#price_detailDodopayments::Models::Price::OneTimePrice, ...

One-time price details.



78
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 78

optional :price_detail, union: -> { Dodopayments::Price }, nil?: true

#product_idString

Returns:

  • (String)


47
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 47

required :product_id, String

#statusBoolean

Returns:

  • (Boolean)


52
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 52

required :status, Dodopayments::Internal::Type::Boolean

#tax_categorySymbol, ...

Represents the different categories of taxation applicable to various products and services.

Returns:



85
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 85

optional :tax_category, enum: -> { Dodopayments::TaxCategory }, nil?: true

#tax_inclusiveBoolean?

Returns:

  • (Boolean, nil)


90
# File 'lib/dodopayments/models/product_collections/groups/product_collection_product.rb', line 90

optional :tax_inclusive, Dodopayments::Internal::Type::Boolean, nil?: true