Class: Dodopayments::Models::ProductCollections::ProductCollectionGroupResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/product_collections/product_collection_group_response.rb,
sig/dodopayments/models/product_collections/product_collection_group_response.rbs

Overview

See Also:

  • Dodopayments::Resources::ProductCollections::Groups#create

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

#initializeObject



23
# File 'sig/dodopayments/models/product_collections/product_collection_group_response.rbs', line 23

def initialize: (

Instance Attribute Details

#group_idString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :group_id, String

#group_nameString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :group_name, String, nil?: true

#productsArray<Dodopayments::Models::ProductCollections::Groups::ProductCollectionProduct>

Parameters:

  • value (::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct])

Returns:



16
17
# File 'lib/dodopayments/models/product_collections/product_collection_group_response.rb', line 16

required :products,
-> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::ProductCollections::Groups::ProductCollectionProduct] }

#statusBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


22
# File 'lib/dodopayments/models/product_collections/product_collection_group_response.rb', line 22

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

Instance Method Details

#to_hash{

Returns:

  • ({)


30
# File 'sig/dodopayments/models/product_collections/product_collection_group_response.rbs', line 30

def to_hash: -> {