Class: ModerationAPI::Models::AuthorCreateParams::Metadata

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moderation_api/models/author_create_params.rb

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(email_verified: nil, identity_verified: nil, is_paying_customer: nil, phone_verified: nil) ⇒ Object

Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process.

Parameters:

  • email_verified (Boolean, nil) (defaults to: nil)

    Whether the author’s email is verified

  • identity_verified (Boolean, nil) (defaults to: nil)

    Whether the author’s identity is verified

  • is_paying_customer (Boolean, nil) (defaults to: nil)

    Whether the author is a paying customer

  • phone_verified (Boolean, nil) (defaults to: nil)

    Whether the author’s phone number is verified



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/moderation_api/models/author_create_params.rb', line 96

class Metadata < ModerationAPI::Internal::Type::BaseModel
  # @!attribute email_verified
  #   Whether the author's email is verified
  #
  #   @return [Boolean, nil]
  optional :email_verified, ModerationAPI::Internal::Type::Boolean, nil?: true

  # @!attribute identity_verified
  #   Whether the author's identity is verified
  #
  #   @return [Boolean, nil]
  optional :identity_verified, ModerationAPI::Internal::Type::Boolean, nil?: true

  # @!attribute is_paying_customer
  #   Whether the author is a paying customer
  #
  #   @return [Boolean, nil]
  optional :is_paying_customer, ModerationAPI::Internal::Type::Boolean, nil?: true

  # @!attribute phone_verified
  #   Whether the author's phone number is verified
  #
  #   @return [Boolean, nil]
  optional :phone_verified, ModerationAPI::Internal::Type::Boolean, nil?: true

  # @!method initialize(email_verified: nil, identity_verified: nil, is_paying_customer: nil, phone_verified: nil)
  #   Additional metadata provided by your system. We recommend including any relevant
  #   information that may assist in the moderation process.
  #
  #   @param email_verified [Boolean, nil] Whether the author's email is verified
  #
  #   @param identity_verified [Boolean, nil] Whether the author's identity is verified
  #
  #   @param is_paying_customer [Boolean, nil] Whether the author is a paying customer
  #
  #   @param phone_verified [Boolean, nil] Whether the author's phone number is verified
end

Instance Attribute Details

#email_verifiedBoolean?

Whether the author’s email is verified

Returns:

  • (Boolean, nil)


101
# File 'lib/moderation_api/models/author_create_params.rb', line 101

optional :email_verified, ModerationAPI::Internal::Type::Boolean, nil?: true

#identity_verifiedBoolean?

Whether the author’s identity is verified

Returns:

  • (Boolean, nil)


107
# File 'lib/moderation_api/models/author_create_params.rb', line 107

optional :identity_verified, ModerationAPI::Internal::Type::Boolean, nil?: true

#is_paying_customerBoolean?

Whether the author is a paying customer

Returns:

  • (Boolean, nil)


113
# File 'lib/moderation_api/models/author_create_params.rb', line 113

optional :is_paying_customer, ModerationAPI::Internal::Type::Boolean, nil?: true

#phone_verifiedBoolean?

Whether the author’s phone number is verified

Returns:

  • (Boolean, nil)


119
# File 'lib/moderation_api/models/author_create_params.rb', line 119

optional :phone_verified, ModerationAPI::Internal::Type::Boolean, nil?: true