Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"standardwebhooks": ">= 1.0"
}
},
"originGitCommit": "a75ed8a2c4e4c890672ac35738d549022c8eb8fc",
"originGitCommit": "5e4b7064e04d687363cf69ed2044c705570ebbb7",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.3.0",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions lib/whop_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,18 @@
require_relative "whop_sdk/ad_groups/types/update_ad_groups_request_placements"
require_relative "whop_sdk/ad_groups/types/update_ad_groups_request_status"
require_relative "whop_sdk/ad_groups/types/duplicate_ad_groups_response"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_api_version"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_bid_type"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_budget_type"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_conversion_location"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_delivery_status"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_message_apps_item"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_optimization_goal"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_platform"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_status"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_type"
require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload"
require_relative "whop_sdk/ad_pixels/types/list_ad_pixels_request_order"
require_relative "whop_sdk/ad_pixels/types/list_ad_pixels_request_direction"
require_relative "whop_sdk/ad_pixels/types/list_ad_pixels_response_page_info"
Expand Down
25 changes: 25 additions & 0 deletions lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
class PostAdGroupUpdatedPayload < Internal::Types::Model
field :account_id, -> { String }, optional: true, nullable: false

field :api_version, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadAPIVersion }, optional: false, nullable: false

field :api_version_date, -> { String }, optional: false, nullable: true

field :data, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadData }, optional: false, nullable: false

field :id, -> { String }, optional: false, nullable: false

field :previous_attributes, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false

field :timestamp, -> { String }, optional: false, nullable: false

field :type, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadType }, optional: false, nullable: false
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadAPIVersion
extend Whop_sdk::Internal::Types::Enum

V1 = "v1"
end
end
end
end
77 changes: 77 additions & 0 deletions lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
class PostAdGroupUpdatedPayloadData < Internal::Types::Model
field :ad_campaign, -> { Whop_sdk::Types::AdEntityReference }, optional: false, nullable: false

field :audiences, -> { Whop_sdk::Types::AdGroupAudiences }, optional: false, nullable: false

field :bid_type, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataBidType }, optional: false, nullable: true

field :budget_amount, -> { Integer }, optional: false, nullable: true

field :budget_amount_local, -> { Integer }, optional: false, nullable: true

field :budget_currency, -> { String }, optional: false, nullable: false

field :budget_type, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataBudgetType }, optional: false, nullable: true

field :conversion_event, -> { Whop_sdk::Types::ConversionEvent }, optional: false, nullable: true

field :conversion_location, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataConversionLocation }, optional: true, nullable: false

field :created_at, -> { String }, optional: false, nullable: false

field :delivery_schedule, -> { Whop_sdk::Types::AdGroupDeliverySchedule }, optional: false, nullable: true

field :delivery_status, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataDeliveryStatus }, optional: false, nullable: false

field :demographics, -> { Whop_sdk::Types::AdGroupDemographics }, optional: false, nullable: false

field :desired_cost_per_result, -> { Integer }, optional: false, nullable: true

field :detailed_targeting, -> { Whop_sdk::Types::AdGroupDetailedTargeting }, optional: false, nullable: false

field :devices, -> { Whop_sdk::Types::AdGroupDevices }, optional: false, nullable: false

field :dynamic_creative, -> { Internal::Types::Boolean }, optional: true, nullable: false

field :ends_at, -> { String }, optional: false, nullable: true

field :frequency_cap, -> { Whop_sdk::Types::AdGroupFrequencyCap }, optional: false, nullable: true

field :id, -> { String }, optional: false, nullable: false

field :issues, -> { Internal::Types::Array[Whop_sdk::Types::AdPlatformIssue] }, optional: false, nullable: false

field :keywords, -> { Internal::Types::Array[Whop_sdk::Types::AdGroupKeyword] }, optional: true, nullable: false

field :languages, -> { Internal::Types::Array[String] }, optional: false, nullable: false

field :learning_progress, -> { Whop_sdk::Types::AdGroupLearningProgress }, optional: false, nullable: true

field :message_apps, -> { Internal::Types::Array[Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataMessageAppsItem] }, optional: true, nullable: false

field :minimum_daily_spend, -> { Integer }, optional: true, nullable: false

field :optimization_goal, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataOptimizationGoal }, optional: false, nullable: true

field :placements, -> { Internal::Types::Array[Whop_sdk::Types::AdGroupPlacement] }, optional: false, nullable: false

field :platform, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataPlatform }, optional: false, nullable: false

field :regions, -> { Whop_sdk::Types::AdGroupRegions }, optional: false, nullable: false

field :starts_at, -> { String }, optional: false, nullable: true

field :status, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataStatus }, optional: false, nullable: false

field :title, -> { String }, optional: false, nullable: true

field :updated_at, -> { String }, optional: false, nullable: false
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadDataBidType
extend Whop_sdk::Internal::Types::Enum

MINIMUM_COST = "minimum_cost"
AVERAGE_TARGET = "average_target"
MAXIMUM_TARGET = "maximum_target"
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadDataBudgetType
extend Whop_sdk::Internal::Types::Enum

DAILY = "daily"
LIFETIME = "lifetime"
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadDataConversionLocation
extend Whop_sdk::Internal::Types::Enum

WEBSITE = "website"
PROFILE = "profile"
INSTAGRAM_AND_FACEBOOK = "instagram_and_facebook"
INSTAGRAM_PROFILE = "instagram_profile"
MESSAGING = "messaging"
ON_AD = "on_ad"
INSTANT_FORMS = "instant_forms"
INSTANT_FORMS_AND_MESSENGER = "instant_forms_and_messenger"
WEBSITE_AND_INSTANT_FORMS = "website_and_instant_forms"
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadDataDeliveryStatus
extend Whop_sdk::Internal::Types::Enum

IN_APPEAL = "in_appeal"
ALL_ADS_REJECTED = "all_ads_rejected"
REJECTED = "rejected"
DRAFT = "draft"
NO_ADS = "no_ads"
CAMPAIGN_PAUSED = "campaign_paused"
PAUSED = "paused"
PROCESSING = "processing"
ISSUES = "issues"
SCHEDULED = "scheduled"
COMPLETED = "completed"
ADS_OFF = "ads_off"
LEARNING_LIMITED = "learning_limited"
LEARNING = "learning"
ACTIVE = "active"
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadDataMessageAppsItem
extend Whop_sdk::Internal::Types::Enum

MESSENGER = "messenger"
INSTAGRAM = "instagram"
WHATSAPP = "whatsapp"
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadDataOptimizationGoal
extend Whop_sdk::Internal::Types::Enum

CONVERSIONS = "conversions"
LINK_CLICKS = "link_clicks"
LANDING_PAGE_VIEWS = "landing_page_views"
REACH = "reach"
IMPRESSIONS = "impressions"
ENGAGEMENT = "engagement"
CONVERSATIONS = "conversations"
VIDEO_VIEWS = "video_views"
TWO_SECOND_VIEWS = "two_second_views"
PAGE_LIKES = "page_likes"
SOCIAL_PROFILE = "social_profile"
AD_RECALL_LIFT = "ad_recall_lift"
EVENT_RESPONSES = "event_responses"
REMINDERS_SET = "reminders_set"
LEAD_GENERATION = "lead_generation"
QUALITY_LEAD = "quality_lead"
VALUE = "value"
PROFILE_AND_PAGE_ENGAGEMENT = "profile_and_page_engagement"
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadDataPlatform
extend Whop_sdk::Internal::Types::Enum

META = "meta"
TIKTOK = "tiktok"
GOOGLE = "google"
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadDataStatus
extend Whop_sdk::Internal::Types::Enum

ACTIVE = "active"
PAUSED = "paused"
REJECTED = "rejected"
DUPLICATING = "duplicating"
end
end
end
end
13 changes: 13 additions & 0 deletions lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_type.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

module Whop_sdk
module AdGroups
module Types
module PostAdGroupUpdatedPayloadType
extend Whop_sdk::Internal::Types::Enum

AD_GROUP_UPDATED = "ad_group.updated"
end
end
end
end
1 change: 1 addition & 0 deletions lib/whop_sdk/types/permission_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ module PermissionAction
WEBHOOK_RECEIVE_CHAT = "webhook_receive:chat"
WEBHOOK_RECEIVE_ENTRIES = "webhook_receive:entries"
WEBHOOK_RECEIVE_AD_CAMPAIGNS = "webhook_receive:ad_campaigns"
WEBHOOK_RECEIVE_AD_GROUPS = "webhook_receive:ad_groups"
WEBHOOK_RECEIVE_ADS = "webhook_receive:ads"
WEBHOOK_RECEIVE_PRODUCTS = "webhook_receive:products"
WEBHOOK_RECEIVE_PLANS = "webhook_receive:plans"
Expand Down
1 change: 1 addition & 0 deletions lib/whop_sdk/types/webhook_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ module WebhookEvent
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
AD_GROUP_UPDATED = "ad_group.updated"
AD_UPDATED = "ad.updated"
CHAT_MESSAGE_CREATED = "chat.message.created"
CHAT_REACTION_CREATED = "chat.reaction.created"
Expand Down
1 change: 1 addition & 0 deletions lib/whop_sdk/types/webhook_events_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ module WebhookEventsItem
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
AD_GROUP_UPDATED = "ad_group.updated"
AD_UPDATED = "ad.updated"
CHAT_MESSAGE_CREATED = "chat.message.created"
CHAT_REACTION_CREATED = "chat.reaction.created"
Expand Down
1 change: 1 addition & 0 deletions lib/whop_sdk/types/webhook_list_item_events_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ module WebhookListItemEventsItem
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
AD_GROUP_UPDATED = "ad_group.updated"
AD_UPDATED = "ad.updated"
CHAT_MESSAGE_CREATED = "chat.message.created"
CHAT_REACTION_CREATED = "chat.reaction.created"
Expand Down
1 change: 1 addition & 0 deletions lib/whop_sdk/types/webhook_testable_events_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ module WebhookTestableEventsItem
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
AD_GROUP_UPDATED = "ad_group.updated"
AD_UPDATED = "ad.updated"
CHAT_MESSAGE_CREATED = "chat.message.created"
CHAT_REACTION_CREATED = "chat.reaction.created"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ module CreateWebhooksRequestEventsItem
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
AD_GROUP_UPDATED = "ad_group.updated"
AD_UPDATED = "ad.updated"
CHAT_MESSAGE_CREATED = "chat.message.created"
CHAT_REACTION_CREATED = "chat.reaction.created"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ module UpdateWebhooksRequestEventsItem
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
AD_GROUP_UPDATED = "ad_group.updated"
AD_UPDATED = "ad.updated"
CHAT_MESSAGE_CREATED = "chat.message.created"
CHAT_REACTION_CREATED = "chat.reaction.created"
Expand Down
Loading