Class: Courier::Models::Users::TokenUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/courier/models/users/token_update_params.rb,
sig/courier/models/users/token_update_params.rbs

Overview

See Also:

  • Courier::Resources::Users::Tokens#update

Defined Under Namespace

Classes: Patch

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 ⇒ TokenUpdateParams

Returns a new instance of TokenUpdateParams.

Parameters:

  • user_id: (String)
  • token: (String)
  • patch: (::Array[Courier::Users::TokenUpdateParams::Patch])
  • request_options: (Courier::request_opts)


22
23
24
25
26
27
# File 'sig/courier/models/users/token_update_params.rbs', line 22

def initialize: (
  user_id: String,
  token: String,
  patch: ::Array[Courier::Users::TokenUpdateParams::Patch],
  ?request_options: Courier::request_opts
) -> void

Instance Attribute Details

#patch ⇒ Array<Courier::Models::Users::TokenUpdateParams::Patch>

Parameters:

  • value (::Array[Courier::Users::TokenUpdateParams::Patch])

Returns:



24
# File 'lib/courier/models/users/token_update_params.rb', line 24

required :patch, -> { Courier::Internal::Type::ArrayOf[Courier::Users::TokenUpdateParams::Patch] }

#token ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


19
# File 'lib/courier/models/users/token_update_params.rb', line 19

required :token, String

#user_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/courier/models/users/token_update_params.rb', line 14

required :user_id, String

Instance Method Details

#to_hash ⇒ { user_id: String, token: String, patch: ::Array[Courier::Users::TokenUpdateParams::Patch], request_options: Courier::RequestOptions }

Returns:

  • ({ user_id: String, token: String, patch: ::Array[Courier::Users::TokenUpdateParams::Patch], request_options: Courier::RequestOptions })


29
30
31
32
33
34
# File 'sig/courier/models/users/token_update_params.rbs', line 29

def to_hash: -> {
  user_id: String,
  token: String,
  patch: ::Array[Courier::Users::TokenUpdateParams::Patch],
  request_options: Courier::RequestOptions
}