Class: Dodopayments::Models::ProductCollection

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/product_collection.rb

Overview

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:, brand_id:, created_at:, groups:, name:, updated_at:, description: nil, image: nil) ⇒ Object

Parameters:

  • id (String)

    Unique identifier for the product collection

  • brand_id (String)

    Brand ID for the collection

  • created_at (Time)

    Timestamp when the collection was created

  • groups (Array<Dodopayments::Models::ProductCollections::ProductCollectionGroupResponse>)

    Groups in this collection

  • name (String)

    Name of the collection

  • updated_at (Time)

    Timestamp when the collection was last updated

  • description (String, nil) (defaults to: nil)

    Description of the collection

  • image (String, nil) (defaults to: nil)

    URL of the collection image



# File 'lib/dodopayments/models/product_collection.rb', line 56

Instance Attribute Details

#brand_idString

Brand ID for the collection

Returns:

  • (String)


17
# File 'lib/dodopayments/models/product_collection.rb', line 17

required :brand_id, String

#created_atTime

Timestamp when the collection was created

Returns:

  • (Time)


23
# File 'lib/dodopayments/models/product_collection.rb', line 23

required :created_at, Time

#descriptionString?

Description of the collection

Returns:

  • (String, nil)


48
# File 'lib/dodopayments/models/product_collection.rb', line 48

optional :description, String, nil?: true

#groupsArray<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] }

#idString

Unique identifier for the product collection

Returns:

  • (String)


11
# File 'lib/dodopayments/models/product_collection.rb', line 11

required :id, String

#imageString?

URL of the collection image

Returns:

  • (String, nil)


54
# File 'lib/dodopayments/models/product_collection.rb', line 54

optional :image, String, nil?: true

#nameString

Name of the collection

Returns:

  • (String)


36
# File 'lib/dodopayments/models/product_collection.rb', line 36

required :name, String

#updated_atTime

Timestamp when the collection was last updated

Returns:

  • (Time)


42
# File 'lib/dodopayments/models/product_collection.rb', line 42

required :updated_at, Time