Class: Dodopayments::Models::ProductCollectionUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/dodopayments/models/product_collection_update_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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: nil, description: nil, group_order: nil, image_id: nil, name: nil, request_options: {}) ⇒ Object

Parameters:

  • id (String)
  • brand_id (String, nil) (defaults to: nil)

    Optional brand_id update

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

    Optional description update - pass null to remove, omit to keep unchanged

  • group_order (Array<String>, nil) (defaults to: nil)

    Optional new order for groups (array of group UUIDs in desired order)

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

    Optional image update - pass null to remove, omit to keep unchanged

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

    Optional new name for the collection

  • request_options (Dodopayments::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/dodopayments/models/product_collection_update_params.rb', line 45

Instance Attribute Details

#brand_idString?

Optional brand_id update

Returns:

  • (String, nil)


19
# File 'lib/dodopayments/models/product_collection_update_params.rb', line 19

optional :brand_id, String, nil?: true

#descriptionString?

Optional description update - pass null to remove, omit to keep unchanged

Returns:

  • (String, nil)


25
# File 'lib/dodopayments/models/product_collection_update_params.rb', line 25

optional :description, String, nil?: true

#group_orderArray<String>?

Optional new order for groups (array of group UUIDs in desired order)

Returns:

  • (Array<String>, nil)


31
# File 'lib/dodopayments/models/product_collection_update_params.rb', line 31

optional :group_order, Dodopayments::Internal::Type::ArrayOf[String], nil?: true

#idString

Returns:

  • (String)


13
# File 'lib/dodopayments/models/product_collection_update_params.rb', line 13

required :id, String

#image_idString?

Optional image update - pass null to remove, omit to keep unchanged

Returns:

  • (String, nil)


37
# File 'lib/dodopayments/models/product_collection_update_params.rb', line 37

optional :image_id, String, nil?: true

#nameString?

Optional new name for the collection

Returns:

  • (String, nil)


43
# File 'lib/dodopayments/models/product_collection_update_params.rb', line 43

optional :name, String, nil?: true