Class: Courier::Models::ProfileCreateParams

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

Overview

See Also:

  • Courier::Resources::Profiles#create

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(user_id:, profile:, idempotency_key: nil, x_idempotency_expiration: nil, request_options: {}) ⇒ Object

Parameters:

  • user_id (String)
  • profile (Hash{Symbol=>Object})
  • idempotency_key (String) (defaults to: nil)
  • x_idempotency_expiration (String) (defaults to: nil)
  • request_options (Courier::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/courier/models/profile_create_params.rb', line 30

Instance Attribute Details

#idempotency_keyString?

Parameters:

  • (String)

Returns:

  • (String, nil)


23
# File 'lib/courier/models/profile_create_params.rb', line 23

optional :idempotency_key, String

#profileHash{Symbol=>Object}

Parameters:

  • value (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object})


18
# File 'lib/courier/models/profile_create_params.rb', line 18

required :profile, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown]

#user_idString

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/courier/models/profile_create_params.rb', line 13

required :user_id, String

#x_idempotency_expirationString?

Parameters:

  • (String)

Returns:

  • (String, nil)


28
# File 'lib/courier/models/profile_create_params.rb', line 28

optional :x_idempotency_expiration, String

Instance Method Details

#to_hash{

Returns:

  • ({)


36
# File 'sig/courier/models/profile_create_params.rbs', line 36

def to_hash: -> {