Class: TerminalShop::Models::ProductAPI
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- TerminalShop::Models::ProductAPI
- Defined in:
- lib/terminal_shop/models/product.rb
Defined Under Namespace
Modules: Subscription Classes: Tags
Instance Attribute Summary collapse
-
#description ⇒ String
Description of the product.
-
#id ⇒ String
Unique object identifier.
-
#name ⇒ String
Name of the product.
-
#order ⇒ Integer?
Order of the product used when displaying a sorted list of products.
-
#subscription ⇒ Symbol, ...
Whether the product must be or can be subscribed to.
-
#tags ⇒ TerminalShop::Models::ProductAPI::Tags?
Tags for the product.
-
#time_hidden ⇒ String?
Timestamp when the product was hidden from public view.
-
#variants ⇒ Array<TerminalShop::Models::ProductVariant>
List of variants of the product.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: , description: , name: , variants: , order: nil, subscription: nil, tags: nil, time_hidden: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ProductAPI for more details.
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: , description: , name: , variants: , order: nil, subscription: nil, tags: nil, time_hidden: nil) ⇒ Object
Some parameter documentations has been truncated, see TerminalShop::Models::ProductAPI for more details.
Product sold in the Terminal shop.
|
|
# File 'lib/terminal_shop/models/product.rb', line 54
|
Instance Attribute Details
#description ⇒ String
Description of the product.
16 |
# File 'lib/terminal_shop/models/product.rb', line 16 required :description, String |
#id ⇒ String
Unique object identifier. The format and length of IDs may change over time.
10 |
# File 'lib/terminal_shop/models/product.rb', line 10 required :id, String |
#name ⇒ String
Name of the product.
22 |
# File 'lib/terminal_shop/models/product.rb', line 22 required :name, String |
#order ⇒ Integer?
Order of the product used when displaying a sorted list of products.
34 |
# File 'lib/terminal_shop/models/product.rb', line 34 optional :order, Integer |
#subscription ⇒ Symbol, ...
Whether the product must be or can be subscribed to.
40 |
# File 'lib/terminal_shop/models/product.rb', line 40 optional :subscription, enum: -> { TerminalShop::ProductAPI::Subscription } |
#tags ⇒ TerminalShop::Models::ProductAPI::Tags?
Tags for the product.
46 |
# File 'lib/terminal_shop/models/product.rb', line 46 optional :tags, -> { TerminalShop::ProductAPI::Tags } |
#time_hidden ⇒ String?
Timestamp when the product was hidden from public view.
52 |
# File 'lib/terminal_shop/models/product.rb', line 52 optional :time_hidden, String, api_name: :timeHidden |
#variants ⇒ Array<TerminalShop::Models::ProductVariant>
List of variants of the product.
28 |
# File 'lib/terminal_shop/models/product.rb', line 28 required :variants, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::ProductVariant] } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/terminal_shop/models/product.rb', line 85
|