Class: TerminalShop::Models::ProfileAPI::User

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/terminal_shop/models/profile.rb

Overview

See Also:

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(id: , email: , fingerprint: , name: , stripe_customer_id: ) ⇒ Object

Some parameter documentations has been truncated, see TerminalShop::Models::ProfileAPI::User for more details.

A Terminal shop user. (We have users, btw.)

Parameters:

  • id (String) (defaults to: )

    Unique object identifier.

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

    Email address of the user.

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

    The user’s fingerprint, derived from their public SSH key.

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

    Name of the user.

  • stripe_customer_id (String) (defaults to: )

    Stripe customer ID of the user.



# File 'lib/terminal_shop/models/profile.rb', line 49


Instance Attribute Details

#emailString?

Email address of the user.

Returns:

  • (String, nil)


29
# File 'lib/terminal_shop/models/profile.rb', line 29

required :email, String, nil?: true

#fingerprintString?

The user’s fingerprint, derived from their public SSH key.

Returns:

  • (String, nil)


35
# File 'lib/terminal_shop/models/profile.rb', line 35

required :fingerprint, String, nil?: true

#idString

Unique object identifier. The format and length of IDs may change over time.

Returns:

  • (String)


23
# File 'lib/terminal_shop/models/profile.rb', line 23

required :id, String

#nameString?

Name of the user.

Returns:

  • (String, nil)


41
# File 'lib/terminal_shop/models/profile.rb', line 41

required :name, String, nil?: true

#stripe_customer_idString

Stripe customer ID of the user.

Returns:

  • (String)


47
# File 'lib/terminal_shop/models/profile.rb', line 47

required :stripe_customer_id, String, api_name: :stripeCustomerID