Class: WhopSDK::Models::ReviewListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/review_list_response.rb

Overview

Defined Under Namespace

Classes: Attachment, User

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:, content_type:, filename:, url:) ⇒ Object

Some parameter documentations has been truncated, see Attachment for more details.

Represents an image attachment

Parameters:

  • id (String)

    Represents a unique identifier that is Base64 obfuscated. It is often used to re

  • content_type (String, nil)

    The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).

  • filename (String, nil)

    The original filename of the uploaded attachment, including its file extension.

  • url (String, nil)

    A pre-optimized URL for rendering this attachment on the client. This should be



# File 'lib/whop_sdk/models/review_list_response.rb', line 144

Instance Attribute Details

#attachmentsArray<WhopSDK::Models::ReviewListResponse::Attachment>

A list of files and media attached to the review.



17
18
# File 'lib/whop_sdk/models/review_list_response.rb', line 17

required :attachments,
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::ReviewListResponse::Attachment] }

#created_atTime

The datetime the review was created.

Returns:

  • (Time)


24
# File 'lib/whop_sdk/models/review_list_response.rb', line 24

required :created_at, Time

#descriptionString?

The body text of the review containing the user’s detailed feedback. Returns an empty string if no description was provided.

Returns:

  • (String, nil)


31
# File 'lib/whop_sdk/models/review_list_response.rb', line 31

required :description, String, nil?: true

#idString

The unique identifier for the review.

Returns:

  • (String)


11
# File 'lib/whop_sdk/models/review_list_response.rb', line 11

required :id, String

#joined_atTime?

The timestamp of when the reviewer first joined the product. Null if unknown.

Returns:

  • (Time, nil)


37
# File 'lib/whop_sdk/models/review_list_response.rb', line 37

required :joined_at, Time, nil?: true

Whether the reviewer paid for the product. Null if the payment status is unknown.

Returns:

  • (Boolean, nil)


44
# File 'lib/whop_sdk/models/review_list_response.rb', line 44

required :paid_for_product, WhopSDK::Internal::Type::Boolean, nil?: true

#published_atTime?

The timestamp of when the review was published. Null if the review has not been published yet.

Returns:

  • (Time, nil)


51
# File 'lib/whop_sdk/models/review_list_response.rb', line 51

required :published_at, Time, nil?: true

#starsInteger

The star rating given by the reviewer, from 1 to 5.

Returns:

  • (Integer)


57
# File 'lib/whop_sdk/models/review_list_response.rb', line 57

required :stars, Integer

#statusSymbol, WhopSDK::Models::ReviewStatus

The current moderation status of the review.

Returns:



63
# File 'lib/whop_sdk/models/review_list_response.rb', line 63

required :status, enum: -> { WhopSDK::ReviewStatus }

#titleString?

A short summary title for the review. Null if the reviewer did not provide one.

Returns:

  • (String, nil)


69
# File 'lib/whop_sdk/models/review_list_response.rb', line 69

required :title, String, nil?: true

#updated_atTime

The datetime the review was last updated.

Returns:

  • (Time)


75
# File 'lib/whop_sdk/models/review_list_response.rb', line 75

required :updated_at, Time

#userWhopSDK::Models::ReviewListResponse::User

The user account of the person who wrote this review.



81
# File 'lib/whop_sdk/models/review_list_response.rb', line 81

required :user, -> { WhopSDK::Models::ReviewListResponse::User }