Module: Courier::Models::Users::TokenAddSingleParams::ExpiryDate

Extended by:
Internal::Type::Union
Defined in:
lib/courier/models/users/token_add_single_params.rb,
sig/courier/models/users/token_add_single_params.rbs

Overview

When the token expires. Accepts a date, or the boolean false to disable expiration entirely. ISO 8601 is recommended (for example 2026-10-25T00:00:00.000Z). A value that cannot be parsed as a date is rejected; it is not treated as "no expiration" and does not fall back to the default. true is not a supported value. Omit the field to use the default, which expires a token that has not been re-registered for 60 days.

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#self?.variants ⇒ ::Array[Courier::Models::Users::TokenAddSingleParams::expiry_date]

Returns:

  • (::Array[Courier::Models::Users::TokenAddSingleParams::expiry_date])


118
# File 'sig/courier/models/users/token_add_single_params.rbs', line 118

def self?.variants: -> ::Array[Courier::Models::Users::TokenAddSingleParams::expiry_date]