Class: WhopSDK::Models::Workforce::WorkforceBountyListItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::Workforce::WorkforceBountyListItem
- Defined in:
- lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb,
sig/whop_sdk/models/workforce/workforce_bounty_list_item.rbs
Overview
Defined Under Namespace
Modules: BusinessGoalType, ScheduledFrequency, Status Classes: FundingAccount, Poster
Instance Attribute Summary collapse
-
#accepted_submissions_count ⇒ Integer
Submissions accepted so far.
-
#accepted_submissions_limit ⇒ Integer
Number of submissions that can be accepted (winner slots).
- #allowed_country_codes ⇒ Array<String>
-
#budget_amount ⇒ Float
Total gross budget committed to the bounty:
gross_reward_amounttimesaccepted_submissions_limit. -
#business_goal_type ⇒ Symbol, ...
What the poster wants the work to achieve.
-
#created_at ⇒ String
When the bounty was created, as an ISO 8601 timestamp.
-
#currency ⇒ String
Currency for all amounts on the bounty, as a lowercase ISO 4217 code.
-
#experience_id ⇒ String?
Experience the bounty is hosted in, prefixed
exp_. -
#funding_account ⇒ WhopSDK::Models::Workforce::WorkforceBountyListItem::FundingAccount?
The account whose balance funds the bounty pool, or
nullwhen a user funds it personally. -
#gross_paid_out_amount ⇒ Float
Gross amount paid out from the bounty pool across accepted submissions — worker payouts, platform fees, and affiliate shares together.
-
#gross_reward_amount ⇒ Float
Gross bounty-pool amount allocated per accepted submission, in whole currency units.
-
#id ⇒ String
Bounty ID, prefixed
bnty_. -
#poster ⇒ WhopSDK::Models::Workforce::WorkforceBountyListItem::Poster
The user who posted the bounty.
-
#scheduled_frequency ⇒ Symbol, ...
How often the schedule creates a new bounty.
-
#scheduled_publish_at ⇒ String?
When a scheduled bounty will publish, as an ISO 8601 timestamp.
-
#spots_remaining ⇒ Integer
Unfilled winner capacity:
accepted_submissions_limitminusaccepted_submissions_count, clamped to zero. -
#status ⇒ Symbol, WhopSDK::Models::Workforce::WorkforceBountyListItem::Status
Lifecycle state.
-
#submissions_closed_at ⇒ String?
When new submissions were explicitly stopped, as an ISO 8601 timestamp.
-
#title ⇒ String
Short name of the task shown to workers.
-
#unresolved_submissions_count ⇒ Integer
Submissions still awaiting an outcome: in progress or pending review.
-
#updated_at ⇒ String
When the bounty was last updated, as an ISO 8601 timestamp.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(url:) ⇒ Object
constructor
Some parameter documentations has been truncated, see Poster::ProfilePicture for more details.
- #to_hash ⇒ {
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(url:) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::Workforce::WorkforceBountyListItem::Poster::ProfilePicture for more details.
Avatar wrapper; its url is always present, using a generated placeholder when
the user set no picture.
|
|
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 158
|
Instance Attribute Details
#accepted_submissions_count ⇒ Integer
Submissions accepted so far.
18 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 18 required :accepted_submissions_count, Integer |
#accepted_submissions_limit ⇒ Integer
Number of submissions that can be accepted (winner slots).
24 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 24 required :accepted_submissions_limit, Integer |
#allowed_country_codes ⇒ Array<String>
29 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 29 required :allowed_country_codes, WhopSDK::Internal::Type::ArrayOf[String] |
#budget_amount ⇒ Float
Total gross budget committed to the bounty: gross_reward_amount times
accepted_submissions_limit.
36 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 36 required :budget_amount, Float |
#business_goal_type ⇒ Symbol, ...
What the poster wants the work to achieve.
42 43 44 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 42 required :business_goal_type, enum: -> { WhopSDK::Workforce::WorkforceBountyListItem::BusinessGoalType }, nil?: true |
#created_at ⇒ String
When the bounty was created, as an ISO 8601 timestamp.
50 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 50 required :created_at, String |
#currency ⇒ String
Currency for all amounts on the bounty, as a lowercase ISO 4217 code.
56 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 56 required :currency, String |
#experience_id ⇒ String?
Experience the bounty is hosted in, prefixed exp_. Null for platform-wide
bounties; may belong to a different account than the funder.
63 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 63 required :experience_id, String, nil?: true |
#funding_account ⇒ WhopSDK::Models::Workforce::WorkforceBountyListItem::FundingAccount?
The account whose balance funds the bounty pool, or null when a user funds it
personally. May differ from the account hosting experience_id.
70 71 72 73 74 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 70 required :funding_account, -> { WhopSDK::Workforce::WorkforceBountyListItem::FundingAccount }, nil?: true |
#gross_paid_out_amount ⇒ Float
Gross amount paid out from the bounty pool across accepted submissions — worker payouts, platform fees, and affiliate shares together. Tips and reviewer rewards are excluded.
82 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 82 required :gross_paid_out_amount, Float |
#gross_reward_amount ⇒ Float
Gross bounty-pool amount allocated per accepted submission, in whole currency units.
89 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 89 required :gross_reward_amount, Float |
#id ⇒ String
Bounty ID, prefixed bnty_.
12 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 12 required :id, String |
#poster ⇒ WhopSDK::Models::Workforce::WorkforceBountyListItem::Poster
The user who posted the bounty.
95 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 95 required :poster, -> { WhopSDK::Workforce::WorkforceBountyListItem::Poster } |
#scheduled_frequency ⇒ Symbol, ...
How often the schedule creates a new bounty. Each occurrence is a separate bounty; the original is not republished.
102 103 104 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 102 required :scheduled_frequency, enum: -> { WhopSDK::Workforce::WorkforceBountyListItem::ScheduledFrequency }, nil?: true |
#scheduled_publish_at ⇒ String?
When a scheduled bounty will publish, as an ISO 8601 timestamp. Null once published, for bounties that were never scheduled, and for terminally failed drafts parked for manual rescheduling.
112 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 112 required :scheduled_publish_at, String, nil?: true |
#spots_remaining ⇒ Integer
Unfilled winner capacity: accepted_submissions_limit minus
accepted_submissions_count, clamped to zero. Not a signal that the bounty
currently accepts new claims.
120 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 120 required :spots_remaining, Integer |
#status ⇒ Symbol, WhopSDK::Models::Workforce::WorkforceBountyListItem::Status
Lifecycle state. scheduled bounties are unpublished drafts, visible to their
poster and the account's authorized managers; open bounties accept new
submissions; closed bounties are live but no longer accept new submissions;
completed bounties paid out every winner slot; canceled bounties ended
before filling their slots.
130 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 130 required :status, enum: -> { WhopSDK::Workforce::WorkforceBountyListItem::Status } |
#submissions_closed_at ⇒ String?
When new submissions were explicitly stopped, as an ISO 8601 timestamp. Null when submissions were never explicitly stopped — including closed or completed bounties that simply filled every winner slot.
138 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 138 required :submissions_closed_at, String, nil?: true |
#title ⇒ String
Short name of the task shown to workers.
144 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 144 required :title, String |
#unresolved_submissions_count ⇒ Integer
Submissions still awaiting an outcome: in progress or pending review.
150 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 150 required :unresolved_submissions_count, Integer |
#updated_at ⇒ String
When the bounty was last updated, as an ISO 8601 timestamp.
156 |
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 156 required :updated_at, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb', line 217
|
Instance Method Details
#to_hash ⇒ {
98 |
# File 'sig/whop_sdk/models/workforce/workforce_bounty_list_item.rbs', line 98
def to_hash: -> {
|