Class: Trycourier::Models::Users::UserToken

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/users/user_token.rb

Direct Known Subclasses

TokenAddSingleParams, TokenRetrieveResponse

Defined Under Namespace

Modules: ExpiryDate, ProviderKey Classes: Device, Tracking

Instance Attribute Summary collapse

Class Method 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

#initialize(ad_id: nil, app_id: nil, device_id: nil, manufacturer: nil, model: nil, platform: nil) ⇒ Object

Information about the device the token came from.



# File 'lib/trycourier/models/users/user_token.rb', line 43


Instance Attribute Details

#deviceTrycourier::Models::Users::UserToken::Device?

Information about the device the token came from.



22
# File 'lib/trycourier/models/users/user_token.rb', line 22

optional :device, -> { Trycourier::Users::UserToken::Device }, nil?: true

#expiry_dateString, ...

ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.



29
# File 'lib/trycourier/models/users/user_token.rb', line 29

optional :expiry_date, union: -> { Trycourier::Users::UserToken::ExpiryDate }, nil?: true

#propertiesObject?

Properties about the token.



35
# File 'lib/trycourier/models/users/user_token.rb', line 35

optional :properties, Trycourier::Internal::Type::Unknown

#provider_keySymbol, Trycourier::Models::Users::UserToken::ProviderKey



16
# File 'lib/trycourier/models/users/user_token.rb', line 16

required :provider_key, enum: -> { Trycourier::Users::UserToken::ProviderKey }

#tokenString

Full body of the token. Must match token in URL path parameter.



11
# File 'lib/trycourier/models/users/user_token.rb', line 11

required :token, String

#trackingTrycourier::Models::Users::UserToken::Tracking?

Tracking information about the device the token came from.



41
# File 'lib/trycourier/models/users/user_token.rb', line 41

optional :tracking, -> { Trycourier::Users::UserToken::Tracking }, nil?: true

Class Method Details

.valuesArray<Symbol>



# File 'lib/trycourier/models/users/user_token.rb', line 68


.variantsArray(String, Boolean)



# File 'lib/trycourier/models/users/user_token.rb', line 137