Class: Dodopayments::Models::ProductCollectionListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/product_collection_list_response.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:, created_at:, name:, products_count:, updated_at:, description: nil, image: nil) ⇒ Object

Parameters:

  • id (String)

    Collection ID

  • created_at (Time)

    Timestamp when created

  • name (String)

    Collection name

  • products_count (Integer)

    Number of products in the collection

  • updated_at (Time)

    Timestamp when last updated

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

    Collection description

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

    Collection image URL



# File 'lib/dodopayments/models/product_collection_list_response.rb', line 49

Instance Attribute Details

#created_atTime

Timestamp when created

Returns:

  • (Time)


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

required :created_at, Time

#descriptionString?

Collection description

Returns:

  • (String, nil)


41
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 41

optional :description, String, nil?: true

#idString

Collection ID

Returns:

  • (String)


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

required :id, String

#imageString?

Collection image URL

Returns:

  • (String, nil)


47
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 47

optional :image, String, nil?: true

#nameString

Collection name

Returns:

  • (String)


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

required :name, String

#products_countInteger

Number of products in the collection

Returns:

  • (Integer)


29
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 29

required :products_count, Integer

#updated_atTime

Timestamp when last updated

Returns:

  • (Time)


35
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 35

required :updated_at, Time