Class: Dodopayments::Models::ProductUpdateParams

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

Overview

Defined Under Namespace

Classes: DigitalProductDelivery

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Method Summary

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, #initialize, 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

This class inherits a constructor from Dodopayments::Internal::Type::BaseModel

Instance Attribute Details

#addonsArray<String>?

Available Addons for subscription products

Returns:

  • (Array<String>, nil)


14
# File 'lib/dodopayments/models/product_update_params.rb', line 14

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

#brand_idString?

Returns:

  • (String, nil)


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

optional :brand_id, String, nil?: true

#descriptionString?

Description of the product, optional and must be at most 1000 characters.

Returns:

  • (String, nil)


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

optional :description, String, nil?: true

#digital_product_deliveryDodopayments::Models::ProductUpdateParams::DigitalProductDelivery?

Choose how you would like you digital product delivered



31
32
33
# File 'lib/dodopayments/models/product_update_params.rb', line 31

optional :digital_product_delivery,
-> { Dodopayments::ProductUpdateParams::DigitalProductDelivery },
nil?: true

#image_idString?

Product image id after its uploaded to S3

Returns:

  • (String, nil)


39
# File 'lib/dodopayments/models/product_update_params.rb', line 39

optional :image_id, String, nil?: true

#license_key_activation_messageString?

Message sent to the customer upon license key activation.

Only applicable if ‘license_key_enabled` is `true`. This message contains instructions for activating the license key.

Returns:

  • (String, nil)


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

optional :license_key_activation_message, String, nil?: true

#license_key_activations_limitInteger?

Limit for the number of activations for the license key.

Only applicable if ‘license_key_enabled` is `true`. Represents the maximum number of times the license key can be activated.

Returns:

  • (Integer, nil)


57
# File 'lib/dodopayments/models/product_update_params.rb', line 57

optional :license_key_activations_limit, Integer, nil?: true

#license_key_durationDodopayments::Models::LicenseKeyDuration?

Duration of the license key if enabled.

Only applicable if ‘license_key_enabled` is `true`. Represents the duration in days for which the license key is valid.



66
# File 'lib/dodopayments/models/product_update_params.rb', line 66

optional :license_key_duration, -> { Dodopayments::LicenseKeyDuration }, nil?: true

#license_key_enabledBoolean?

Whether the product requires a license key.

If ‘true`, additional fields related to license key (duration, activations limit, activation message) become applicable.

Returns:

  • (Boolean, nil)


75
# File 'lib/dodopayments/models/product_update_params.rb', line 75

optional :license_key_enabled, Dodopayments::Internal::Type::Boolean, nil?: true

#metadataHash{Symbol=>String}?

Additional metadata for the product

Returns:

  • (Hash{Symbol=>String}, nil)


81
# File 'lib/dodopayments/models/product_update_params.rb', line 81

optional :metadata, Dodopayments::Internal::Type::HashOf[String], nil?: true

#nameString?

Name of the product, optional and must be at most 100 characters.

Returns:

  • (String, nil)


87
# File 'lib/dodopayments/models/product_update_params.rb', line 87

optional :name, String, nil?: true

#priceDodopayments::Models::Price::OneTimePrice, ...

Price details of the product.



93
# File 'lib/dodopayments/models/product_update_params.rb', line 93

optional :price, union: -> { Dodopayments::Price }, nil?: true

#tax_categorySymbol, ...

Tax category of the product.

Returns:



99
# File 'lib/dodopayments/models/product_update_params.rb', line 99

optional :tax_category, enum: -> { Dodopayments::TaxCategory }, nil?: true