Class: Privy::Models::SiwsLinkRequestBody

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/siws_link_request_body.rb,
sig/privy/models/siws_link_request_body.rbs

Instance Attribute 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(message:, signature:, connector_type: nil, message_type: nil, wallet_client_type: nil) ⇒ Object

The request body for linking a SIWS ceremony.

Parameters:

  • message (String)
  • signature (String)
  • connector_type (String, nil) (defaults to: nil)
  • message_type (Symbol, Privy::Models::SiwsMessageType) (defaults to: nil)

    The type of SIWS message being signed.

  • wallet_client_type (String, nil) (defaults to: nil)


# File 'lib/privy/models/siws_link_request_body.rb', line 32

Instance Attribute Details

#connector_typeString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


19
# File 'lib/privy/models/siws_link_request_body.rb', line 19

optional :connector_type, String, api_name: :connectorType, nil?: true

#messageString

Parameters:

  • value (String)

Returns:

  • (String)


9
# File 'lib/privy/models/siws_link_request_body.rb', line 9

required :message, String

#message_typeSymbol, ...

The type of SIWS message being signed.

Returns:



25
# File 'lib/privy/models/siws_link_request_body.rb', line 25

optional :message_type, enum: -> { Privy::SiwsMessageType }

#signatureString

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/privy/models/siws_link_request_body.rb', line 14

required :signature, String

#wallet_client_typeString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


30
# File 'lib/privy/models/siws_link_request_body.rb', line 30

optional :wallet_client_type, String, api_name: :walletClientType, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


35
# File 'sig/privy/models/siws_link_request_body.rbs', line 35

def to_hash: -> {