Class: Dodopayments::Models::ProductCollection
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::ProductCollection
- Defined in:
- lib/dodopayments/models/product_collection.rb
Overview
Instance Attribute Summary collapse
-
#brand_id ⇒ String
Brand ID for the collection.
-
#created_at ⇒ Time
Timestamp when the collection was created.
-
#description ⇒ String?
Description of the collection.
-
#groups ⇒ Array<Dodopayments::Models::ProductCollections::ProductCollectionGroupResponse>
Groups in this collection.
-
#id ⇒ String
Unique identifier for the product collection.
-
#image ⇒ String?
URL of the collection image.
-
#name ⇒ String
Name of the collection.
-
#updated_at ⇒ Time
Timestamp when the collection was last updated.
Instance Method Summary collapse
- #initialize(id:, brand_id:, created_at:, groups:, name:, updated_at:, description: nil, image: nil) ⇒ Object constructor
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:, brand_id:, created_at:, groups:, name:, updated_at:, description: nil, image: nil) ⇒ Object
|
|
# File 'lib/dodopayments/models/product_collection.rb', line 56
|
Instance Attribute Details
#brand_id ⇒ String
Brand ID for the collection
17 |
# File 'lib/dodopayments/models/product_collection.rb', line 17 required :brand_id, String |
#created_at ⇒ Time
Timestamp when the collection was created
23 |
# File 'lib/dodopayments/models/product_collection.rb', line 23 required :created_at, Time |
#description ⇒ String?
Description of the collection
48 |
# File 'lib/dodopayments/models/product_collection.rb', line 48 optional :description, String, nil?: true |
#groups ⇒ Array<Dodopayments::Models::ProductCollections::ProductCollectionGroupResponse>
Groups in this collection
29 30 |
# File 'lib/dodopayments/models/product_collection.rb', line 29 required :groups, -> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::ProductCollections::ProductCollectionGroupResponse] } |
#id ⇒ String
Unique identifier for the product collection
11 |
# File 'lib/dodopayments/models/product_collection.rb', line 11 required :id, String |
#image ⇒ String?
URL of the collection image
54 |
# File 'lib/dodopayments/models/product_collection.rb', line 54 optional :image, String, nil?: true |
#name ⇒ String
Name of the collection
36 |
# File 'lib/dodopayments/models/product_collection.rb', line 36 required :name, String |
#updated_at ⇒ Time
Timestamp when the collection was last updated
42 |
# File 'lib/dodopayments/models/product_collection.rb', line 42 required :updated_at, Time |