Class: Dodopayments::Models::LicenseKeyUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/dodopayments/models/license_key_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(activations_limit: nil, disabled: nil, expires_at: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Dodopayments::Models::LicenseKeyUpdateParams for more details.

Parameters:

  • activations_limit (Integer, nil) (defaults to: nil)

    The updated activation limit for the license key.

  • disabled (Boolean, nil) (defaults to: nil)

    Indicates whether the license key should be disabled.

  • expires_at (Time, nil) (defaults to: nil)

    The updated expiration timestamp for the license key in UTC.

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


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

Instance Attribute Details

#activations_limitInteger?

The updated activation limit for the license key. Use ‘null` to remove the limit, or omit this field to leave it unchanged.

Returns:

  • (Integer, nil)


15
# File 'lib/dodopayments/models/license_key_update_params.rb', line 15

optional :activations_limit, Integer, nil?: true

#disabledBoolean?

Indicates whether the license key should be disabled. A value of ‘true` disables the key, while `false` enables it. Omit this field to leave it unchanged.

Returns:

  • (Boolean, nil)


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

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

#expires_atTime?

The updated expiration timestamp for the license key in UTC. Use ‘null` to remove the expiration date, or omit this field to leave it unchanged.

Returns:

  • (Time, nil)


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

optional :expires_at, Time, nil?: true