dub 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/lib/open_api_sdk/customers.rb +0 -237
  3. data/lib/open_api_sdk/models/operations/banpartner_requestbody.rb +41 -0
  4. data/lib/open_api_sdk/models/operations/banpartner_requestbody.rbi +17 -0
  5. data/lib/open_api_sdk/models/operations/banpartner_responsebody.rb +33 -0
  6. data/lib/open_api_sdk/models/operations/banpartner_responsebody.rbi +13 -0
  7. data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +32 -4
  8. data/lib/open_api_sdk/models/operations/createpartner_responsebody.rbi +14 -0
  9. data/lib/open_api_sdk/models/operations/listcommissions_partner.rb +6 -2
  10. data/lib/open_api_sdk/models/operations/listcommissions_partner.rbi +2 -0
  11. data/lib/open_api_sdk/models/operations/listcommissions_request.rb +6 -2
  12. data/lib/open_api_sdk/models/operations/listcommissions_request.rbi +2 -0
  13. data/lib/open_api_sdk/models/operations/listevents_request.rb +6 -2
  14. data/lib/open_api_sdk/models/operations/listevents_request.rbi +2 -0
  15. data/lib/open_api_sdk/models/operations/listpartners_queryparam_sortby.rb +7 -0
  16. data/lib/open_api_sdk/models/operations/listpartners_responsebody.rb +32 -4
  17. data/lib/open_api_sdk/models/operations/listpartners_responsebody.rbi +14 -0
  18. data/lib/open_api_sdk/models/operations/queryparam_groupby.rb +2 -0
  19. data/lib/open_api_sdk/models/operations/reason.rb +26 -0
  20. data/lib/open_api_sdk/models/operations/reason.rbi +11 -0
  21. data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +6 -2
  22. data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rbi +2 -0
  23. data/lib/open_api_sdk/models/operations/retrievelinks_request.rb +2 -2
  24. data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb +10 -10
  25. data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rbi +4 -4
  26. data/lib/open_api_sdk/models/operations/updatecommission_partner.rb +6 -2
  27. data/lib/open_api_sdk/models/operations/updatecommission_partner.rbi +2 -0
  28. data/lib/open_api_sdk/models/operations.rb +3 -6
  29. data/lib/open_api_sdk/models/shared/analyticstopurls.rb +1 -1
  30. data/lib/open_api_sdk/models/shared/applicationformdata.rb +37 -0
  31. data/lib/open_api_sdk/models/shared/applicationformdata.rbi +15 -0
  32. data/lib/open_api_sdk/models/shared/leadcreatedevent_link.rb +14 -10
  33. data/lib/open_api_sdk/models/shared/leadcreatedevent_link.rbi +6 -4
  34. data/lib/open_api_sdk/models/shared/leadevent_link.rb +14 -10
  35. data/lib/open_api_sdk/models/shared/leadevent_link.rbi +6 -4
  36. data/lib/open_api_sdk/models/shared/link.rb +14 -10
  37. data/lib/open_api_sdk/models/shared/link.rbi +6 -4
  38. data/lib/open_api_sdk/models/shared/linkclickedevent_link.rb +14 -10
  39. data/lib/open_api_sdk/models/shared/linkclickedevent_link.rbi +6 -4
  40. data/lib/open_api_sdk/models/shared/linkschema.rb +6 -2
  41. data/lib/open_api_sdk/models/shared/linkschema.rbi +2 -0
  42. data/lib/open_api_sdk/models/shared/linkwebhookevent_link.rb +14 -10
  43. data/lib/open_api_sdk/models/shared/linkwebhookevent_link.rbi +6 -4
  44. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent.rb +45 -0
  45. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent.rbi +19 -0
  46. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_data.rb +45 -0
  47. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_data.rbi +19 -0
  48. data/lib/open_api_sdk/models/{operations/createcustomer_type.rb → shared/partnerapplicationsubmittedevent_event.rb} +3 -4
  49. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_event.rbi +11 -0
  50. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_partner.rb +89 -0
  51. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_partner.rbi +41 -0
  52. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_status.rb +28 -0
  53. data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_status.rbi +11 -0
  54. data/lib/open_api_sdk/models/shared/partnerenrolledevent_data.rb +32 -4
  55. data/lib/open_api_sdk/models/shared/partnerenrolledevent_data.rbi +14 -0
  56. data/lib/open_api_sdk/models/shared/salecreatedevent_link.rb +14 -10
  57. data/lib/open_api_sdk/models/shared/salecreatedevent_link.rbi +6 -4
  58. data/lib/open_api_sdk/models/shared/saleevent_link.rb +14 -10
  59. data/lib/open_api_sdk/models/shared/saleevent_link.rbi +6 -4
  60. data/lib/open_api_sdk/models/shared/workspaceschema.rb +6 -2
  61. data/lib/open_api_sdk/models/shared/workspaceschema.rbi +2 -0
  62. data/lib/open_api_sdk/models/shared.rb +6 -0
  63. data/lib/open_api_sdk/partners.rb +235 -0
  64. data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
  65. metadata +20 -14
  66. data/lib/open_api_sdk/models/operations/createcustomer_discount.rb +0 -61
  67. data/lib/open_api_sdk/models/operations/createcustomer_discount.rbi +0 -27
  68. data/lib/open_api_sdk/models/operations/createcustomer_link.rb +0 -53
  69. data/lib/open_api_sdk/models/operations/createcustomer_link.rbi +0 -23
  70. data/lib/open_api_sdk/models/operations/createcustomer_partner.rb +0 -45
  71. data/lib/open_api_sdk/models/operations/createcustomer_partner.rbi +0 -19
  72. data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +0 -49
  73. data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rbi +0 -21
  74. data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +0 -81
  75. data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rbi +0 -37
  76. data/lib/open_api_sdk/models/operations/createcustomer_type.rbi +0 -11
@@ -39,6 +39,8 @@ module OpenApiSDK
39
39
  field :stripe_connect_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('stripeConnectId'), required: true } }
40
40
  # The date when the partner enabled payouts.
41
41
  field :payouts_enabled_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutsEnabledAt'), required: true } }
42
+ # The date when the partner received the trusted badge in the partner network.
43
+ field :trusted_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trustedAt'), required: true } }
42
44
  # The partner's unique ID within your database. Can be useful for associating the partner with a user in your database and retrieving/update their data in the future.
43
45
  field :tenant_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId'), required: true } }
44
46
  # The partner's referral links in this program.
@@ -71,10 +73,22 @@ module OpenApiSDK
71
73
  field :total_conversions, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('totalConversions') } }
72
74
  # The total number of sales generated by the partner's links (includes recurring sales)
73
75
  field :total_sales, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('totalSales') } }
74
- # The total amount of sales (in cents) generated by the partner's links
76
+ # Total revenue generated by the partner's links
75
77
  field :total_sale_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('totalSaleAmount') } }
76
- # The total net revenue generated by the partner
78
+ # Net revenue after commissions (`Total Revenue - Total Commissions`)
77
79
  field :net_revenue, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('netRevenue') } }
80
+ # Earnings Per Click (EPC) (`Total Revenue ÷ Total Clicks`)
81
+ field :earnings_per_click, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('earningsPerClick') } }
82
+ # Average lifetime value for each paying customer (`Total Revenue ÷ Total Conversions`)
83
+ field :average_lifetime_value, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('averageLifetimeValue') } }
84
+ # Percentage of clicks that become leads (`Total Leads ÷ Total Clicks`)
85
+ field :click_to_lead_rate, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clickToLeadRate') } }
86
+ # Percentage of clicks that convert to paying customers (`Total Conversions ÷ Total Clicks`)
87
+ field :click_to_conversion_rate, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clickToConversionRate') } }
88
+ # Percentage of leads that convert to paying customers (`Total Conversions ÷ Total Leads`)
89
+ field :lead_to_conversion_rate, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leadToConversionRate') } }
90
+ # Return On Ad Spend (ROAS) (`Total Revenue ÷ Total Commissions`)
91
+ field :return_on_ad_spend, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('returnOnAdSpend') } }
78
92
  # The partner's website URL (including the https protocol).
79
93
  field :website, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('website') } }
80
94
  # The partner's YouTube channel username (e.g. `johndoe`).
@@ -88,8 +102,8 @@ module OpenApiSDK
88
102
  # The partner's TikTok username (e.g. `johndoe`).
89
103
  field :tiktok, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tiktok') } }
90
104
 
91
- sig { params(id: ::String, name: ::String, program_id: ::String, partner_id: ::String, created_at: ::String, status: Models::Operations::ListPartnersStatus, company_name: T.nilable(::String), email: T.nilable(::String), image: T.nilable(::String), country: T.nilable(::String), paypal_email: T.nilable(::String), stripe_connect_id: T.nilable(::String), payouts_enabled_at: T.nilable(::String), tenant_id: T.nilable(::String), links: T.nilable(T::Array[Models::Operations::ListPartnersLink]), description: T.nilable(::String), group_id: T.nilable(::String), total_commissions: T.nilable(::Float), click_reward_id: T.nilable(::String), lead_reward_id: T.nilable(::String), sale_reward_id: T.nilable(::String), discount_id: T.nilable(::String), application_id: T.nilable(::String), banned_at: T.nilable(::String), banned_reason: T.nilable(Models::Operations::ListPartnersBannedReason), total_clicks: T.nilable(::Float), total_leads: T.nilable(::Float), total_conversions: T.nilable(::Float), total_sales: T.nilable(::Float), total_sale_amount: T.nilable(::Float), net_revenue: T.nilable(::Float), website: T.nilable(::String), youtube: T.nilable(::String), twitter: T.nilable(::String), linkedin: T.nilable(::String), instagram: T.nilable(::String), tiktok: T.nilable(::String)).void }
92
- def initialize(id:, name:, program_id:, partner_id:, created_at:, status:, company_name: nil, email: nil, image: nil, country: nil, paypal_email: nil, stripe_connect_id: nil, payouts_enabled_at: nil, tenant_id: nil, links: nil, description: nil, group_id: nil, total_commissions: 0.0, click_reward_id: nil, lead_reward_id: nil, sale_reward_id: nil, discount_id: nil, application_id: nil, banned_at: nil, banned_reason: nil, total_clicks: 0.0, total_leads: 0.0, total_conversions: 0.0, total_sales: 0.0, total_sale_amount: 0.0, net_revenue: 0.0, website: nil, youtube: nil, twitter: nil, linkedin: nil, instagram: nil, tiktok: nil)
105
+ sig { params(id: ::String, name: ::String, program_id: ::String, partner_id: ::String, created_at: ::String, status: Models::Operations::ListPartnersStatus, company_name: T.nilable(::String), email: T.nilable(::String), image: T.nilable(::String), country: T.nilable(::String), paypal_email: T.nilable(::String), stripe_connect_id: T.nilable(::String), payouts_enabled_at: T.nilable(::String), trusted_at: T.nilable(::String), tenant_id: T.nilable(::String), links: T.nilable(T::Array[Models::Operations::ListPartnersLink]), description: T.nilable(::String), group_id: T.nilable(::String), total_commissions: T.nilable(::Float), click_reward_id: T.nilable(::String), lead_reward_id: T.nilable(::String), sale_reward_id: T.nilable(::String), discount_id: T.nilable(::String), application_id: T.nilable(::String), banned_at: T.nilable(::String), banned_reason: T.nilable(Models::Operations::ListPartnersBannedReason), total_clicks: T.nilable(::Float), total_leads: T.nilable(::Float), total_conversions: T.nilable(::Float), total_sales: T.nilable(::Float), total_sale_amount: T.nilable(::Float), net_revenue: T.nilable(::Float), earnings_per_click: T.nilable(::Float), average_lifetime_value: T.nilable(::Float), click_to_lead_rate: T.nilable(::Float), click_to_conversion_rate: T.nilable(::Float), lead_to_conversion_rate: T.nilable(::Float), return_on_ad_spend: T.nilable(::Float), website: T.nilable(::String), youtube: T.nilable(::String), twitter: T.nilable(::String), linkedin: T.nilable(::String), instagram: T.nilable(::String), tiktok: T.nilable(::String)).void }
106
+ def initialize(id:, name:, program_id:, partner_id:, created_at:, status:, company_name: nil, email: nil, image: nil, country: nil, paypal_email: nil, stripe_connect_id: nil, payouts_enabled_at: nil, trusted_at: nil, tenant_id: nil, links: nil, description: nil, group_id: nil, total_commissions: 0.0, click_reward_id: nil, lead_reward_id: nil, sale_reward_id: nil, discount_id: nil, application_id: nil, banned_at: nil, banned_reason: nil, total_clicks: 0.0, total_leads: 0.0, total_conversions: 0.0, total_sales: 0.0, total_sale_amount: 0.0, net_revenue: 0.0, earnings_per_click: nil, average_lifetime_value: nil, click_to_lead_rate: nil, click_to_conversion_rate: nil, lead_to_conversion_rate: nil, return_on_ad_spend: nil, website: nil, youtube: nil, twitter: nil, linkedin: nil, instagram: nil, tiktok: nil)
93
107
  @id = id
94
108
  @name = name
95
109
  @program_id = program_id
@@ -103,6 +117,7 @@ module OpenApiSDK
103
117
  @paypal_email = paypal_email
104
118
  @stripe_connect_id = stripe_connect_id
105
119
  @payouts_enabled_at = payouts_enabled_at
120
+ @trusted_at = trusted_at
106
121
  @tenant_id = tenant_id
107
122
  @links = links
108
123
  @description = description
@@ -121,6 +136,12 @@ module OpenApiSDK
121
136
  @total_sales = total_sales
122
137
  @total_sale_amount = total_sale_amount
123
138
  @net_revenue = net_revenue
139
+ @earnings_per_click = earnings_per_click
140
+ @average_lifetime_value = average_lifetime_value
141
+ @click_to_lead_rate = click_to_lead_rate
142
+ @click_to_conversion_rate = click_to_conversion_rate
143
+ @lead_to_conversion_rate = lead_to_conversion_rate
144
+ @return_on_ad_spend = return_on_ad_spend
124
145
  @website = website
125
146
  @youtube = youtube
126
147
  @twitter = twitter
@@ -145,6 +166,7 @@ module OpenApiSDK
145
166
  return false unless @paypal_email == other.paypal_email
146
167
  return false unless @stripe_connect_id == other.stripe_connect_id
147
168
  return false unless @payouts_enabled_at == other.payouts_enabled_at
169
+ return false unless @trusted_at == other.trusted_at
148
170
  return false unless @tenant_id == other.tenant_id
149
171
  return false unless @links == other.links
150
172
  return false unless @description == other.description
@@ -163,6 +185,12 @@ module OpenApiSDK
163
185
  return false unless @total_sales == other.total_sales
164
186
  return false unless @total_sale_amount == other.total_sale_amount
165
187
  return false unless @net_revenue == other.net_revenue
188
+ return false unless @earnings_per_click == other.earnings_per_click
189
+ return false unless @average_lifetime_value == other.average_lifetime_value
190
+ return false unless @click_to_lead_rate == other.click_to_lead_rate
191
+ return false unless @click_to_conversion_rate == other.click_to_conversion_rate
192
+ return false unless @lead_to_conversion_rate == other.lead_to_conversion_rate
193
+ return false unless @return_on_ad_spend == other.return_on_ad_spend
166
194
  return false unless @website == other.website
167
195
  return false unless @youtube == other.youtube
168
196
  return false unless @twitter == other.twitter
@@ -34,6 +34,8 @@ class OpenApiSDK::Models::Operations::ListPartnersResponseBody
34
34
  def stripe_connect_id=(str_); end
35
35
  def payouts_enabled_at(); end
36
36
  def payouts_enabled_at=(str_); end
37
+ def trusted_at(); end
38
+ def trusted_at=(str_); end
37
39
  def tenant_id(); end
38
40
  def tenant_id=(str_); end
39
41
  def links(); end
@@ -70,6 +72,18 @@ class OpenApiSDK::Models::Operations::ListPartnersResponseBody
70
72
  def total_sale_amount=(str_); end
71
73
  def net_revenue(); end
72
74
  def net_revenue=(str_); end
75
+ def earnings_per_click(); end
76
+ def earnings_per_click=(str_); end
77
+ def average_lifetime_value(); end
78
+ def average_lifetime_value=(str_); end
79
+ def click_to_lead_rate(); end
80
+ def click_to_lead_rate=(str_); end
81
+ def click_to_conversion_rate(); end
82
+ def click_to_conversion_rate=(str_); end
83
+ def lead_to_conversion_rate(); end
84
+ def lead_to_conversion_rate=(str_); end
85
+ def return_on_ad_spend(); end
86
+ def return_on_ad_spend=(str_); end
73
87
  def website(); end
74
88
  def website=(str_); end
75
89
  def youtube(); end
@@ -31,7 +31,9 @@ module OpenApiSDK
31
31
  TOP_DOMAINS = new('top_domains')
32
32
  TOP_LINKS = new('top_links')
33
33
  TOP_URLS = new('top_urls')
34
+ TOP_BASE_URLS = new('top_base_urls')
34
35
  TOP_PARTNERS = new('top_partners')
36
+ TOP_GROUPS = new('top_groups')
35
37
  UTM_SOURCES = new('utm_sources')
36
38
  UTM_MEDIUMS = new('utm_mediums')
37
39
  UTM_CAMPAIGNS = new('utm_campaigns')
@@ -0,0 +1,26 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Models
9
+ module Operations
10
+
11
+
12
+ class Reason < T::Enum
13
+
14
+
15
+ enums do
16
+ TOS_VIOLATION = new('tos_violation')
17
+ INAPPROPRIATE_CONTENT = new('inappropriate_content')
18
+ FAKE_TRAFFIC = new('fake_traffic')
19
+ FRAUD = new('fraud')
20
+ SPAM = new('spam')
21
+ BRAND_ABUSE = new('brand_abuse')
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,11 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class OpenApiSDK::Models::Operations::Reason
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class OpenApiSDK::Models::Operations::Reason
11
+ end
@@ -61,6 +61,8 @@ module OpenApiSDK
61
61
  field :tag_ids, Crystalline::Nilable.new(Crystalline::Union.new(::String, Crystalline::Array.new(::String))), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': true } }
62
62
  # The folder ID to retrieve analytics for. If not provided, return analytics for unsorted links.
63
63
  field :folder_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'folderId', 'style': 'form', 'explode': true } }
64
+ # The group ID to retrieve analytics for.
65
+ field :group_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'groupId', 'style': 'form', 'explode': true } }
64
66
  # Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.
65
67
  field :root, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'root', 'style': 'form', 'explode': true } }
66
68
  # Filter sales by type: 'new' for first-time purchases, 'recurring' for repeat purchases. If undefined, returns both.
@@ -90,8 +92,8 @@ module OpenApiSDK
90
92
  # The ref of the short link.
91
93
  field :ref, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'ref', 'style': 'form', 'explode': true } }
92
94
 
93
- sig { params(domain: T.nilable(::String), key: T.nilable(::String), link_id: T.nilable(::String), external_id: T.nilable(::String), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), customer_id: T.nilable(::String), interval: T.nilable(Models::Operations::Interval), start: T.nilable(::String), end_: T.nilable(::String), country: T.nilable(::String), city: T.nilable(::String), region: T.nilable(::String), continent: T.nilable(Models::Shared::ContinentCode), device: T.nilable(::String), browser: T.nilable(::String), os: T.nilable(::String), trigger: T.nilable(Models::Operations::Trigger), referer: T.nilable(::String), referer_url: T.nilable(::String), url: T.nilable(::String), tag_ids: T.nilable(T.any(::String, T::Array[::String])), folder_id: T.nilable(::String), root: T.nilable(T::Boolean), sale_type: T.nilable(Models::Operations::SaleType), query: T.nilable(::String), tag_id: T.nilable(::String), qr: T.nilable(T::Boolean), event: T.nilable(Models::Operations::Event), group_by: T.nilable(Models::Operations::QueryParamGroupBy), timezone: T.nilable(::String), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), ref: T.nilable(::String)).void }
94
- def initialize(domain: nil, key: nil, link_id: nil, external_id: nil, tenant_id: nil, program_id: nil, partner_id: nil, customer_id: nil, interval: nil, start: nil, end_: nil, country: nil, city: nil, region: nil, continent: nil, device: nil, browser: nil, os: nil, trigger: nil, referer: nil, referer_url: nil, url: nil, tag_ids: nil, folder_id: nil, root: nil, sale_type: nil, query: nil, tag_id: nil, qr: nil, event: Models::Operations::Event::CLICKS, group_by: Models::Operations::QueryParamGroupBy::COUNT, timezone: 'UTC', utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, ref: nil)
95
+ sig { params(domain: T.nilable(::String), key: T.nilable(::String), link_id: T.nilable(::String), external_id: T.nilable(::String), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), customer_id: T.nilable(::String), interval: T.nilable(Models::Operations::Interval), start: T.nilable(::String), end_: T.nilable(::String), country: T.nilable(::String), city: T.nilable(::String), region: T.nilable(::String), continent: T.nilable(Models::Shared::ContinentCode), device: T.nilable(::String), browser: T.nilable(::String), os: T.nilable(::String), trigger: T.nilable(Models::Operations::Trigger), referer: T.nilable(::String), referer_url: T.nilable(::String), url: T.nilable(::String), tag_ids: T.nilable(T.any(::String, T::Array[::String])), folder_id: T.nilable(::String), group_id: T.nilable(::String), root: T.nilable(T::Boolean), sale_type: T.nilable(Models::Operations::SaleType), query: T.nilable(::String), tag_id: T.nilable(::String), qr: T.nilable(T::Boolean), event: T.nilable(Models::Operations::Event), group_by: T.nilable(Models::Operations::QueryParamGroupBy), timezone: T.nilable(::String), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), ref: T.nilable(::String)).void }
96
+ def initialize(domain: nil, key: nil, link_id: nil, external_id: nil, tenant_id: nil, program_id: nil, partner_id: nil, customer_id: nil, interval: nil, start: nil, end_: nil, country: nil, city: nil, region: nil, continent: nil, device: nil, browser: nil, os: nil, trigger: nil, referer: nil, referer_url: nil, url: nil, tag_ids: nil, folder_id: nil, group_id: nil, root: nil, sale_type: nil, query: nil, tag_id: nil, qr: nil, event: Models::Operations::Event::CLICKS, group_by: Models::Operations::QueryParamGroupBy::COUNT, timezone: 'UTC', utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, ref: nil)
95
97
  @domain = domain
96
98
  @key = key
97
99
  @link_id = link_id
@@ -116,6 +118,7 @@ module OpenApiSDK
116
118
  @url = url
117
119
  @tag_ids = tag_ids
118
120
  @folder_id = folder_id
121
+ @group_id = group_id
119
122
  @root = root
120
123
  @sale_type = sale_type
121
124
  @query = query
@@ -159,6 +162,7 @@ module OpenApiSDK
159
162
  return false unless @url == other.url
160
163
  return false unless @tag_ids == other.tag_ids
161
164
  return false unless @folder_id == other.folder_id
165
+ return false unless @group_id == other.group_id
162
166
  return false unless @root == other.root
163
167
  return false unless @sale_type == other.sale_type
164
168
  return false unless @query == other.query
@@ -56,6 +56,8 @@ class OpenApiSDK::Models::Operations::RetrieveAnalyticsRequest
56
56
  def tag_ids=(str_); end
57
57
  def folder_id(); end
58
58
  def folder_id=(str_); end
59
+ def group_id(); end
60
+ def group_id=(str_); end
59
61
  def root(); end
60
62
  def root=(str_); end
61
63
  def sale_type(); end
@@ -13,9 +13,9 @@ module OpenApiSDK
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
-
16
+ # The ID of the partner to create a link for. Will take precedence over `tenantId` if provided.
17
17
  field :partner_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'partnerId', 'style': 'form', 'explode': true } }
18
-
18
+ # The ID of the partner in your system. If both `partnerId` and `tenantId` are not provided, an error will be thrown.
19
19
  field :tenant_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
20
20
 
21
21
  sig { params(partner_id: T.nilable(::String), tenant_id: T.nilable(::String)).void }
@@ -13,10 +13,6 @@ module OpenApiSDK
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
- # The ID of the partner to retrieve analytics for.
17
- field :partner_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'partnerId', 'style': 'form', 'explode': true } }
18
- # The ID of the tenant that created the link inside your system.
19
- field :tenant_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
20
16
  # The interval to retrieve analytics for. If undefined, defaults to 24h.
21
17
  field :interval, Crystalline::Nilable.new(Models::Operations::RetrievePartnerAnalyticsQueryParamInterval), { 'query_param': { 'field_name': 'interval', 'style': 'form', 'explode': true } }
22
18
  # The start date and time when to retrieve analytics from. If set, takes precedence over `interval`.
@@ -25,19 +21,23 @@ module OpenApiSDK
25
21
  field :end_, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'end', 'style': 'form', 'explode': true } }
26
22
  # Search the events by a custom metadata value. Only available for lead and sale events.
27
23
  field :query, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'query', 'style': 'form', 'explode': true } }
24
+ # The ID of the partner to create a link for. Will take precedence over `tenantId` if provided.
25
+ field :partner_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'partnerId', 'style': 'form', 'explode': true } }
26
+ # The ID of the partner in your system. If both `partnerId` and `tenantId` are not provided, an error will be thrown.
27
+ field :tenant_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
28
28
  # The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC.
29
29
  field :timezone, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'timezone', 'style': 'form', 'explode': true } }
30
30
  # The parameter to group the analytics data points by. Defaults to `count` if undefined.
31
31
  field :group_by, Crystalline::Nilable.new(Models::Operations::RetrievePartnerAnalyticsQueryParamGroupBy), { 'query_param': { 'field_name': 'groupBy', 'style': 'form', 'explode': true } }
32
32
 
33
- sig { params(partner_id: T.nilable(::String), tenant_id: T.nilable(::String), interval: T.nilable(Models::Operations::RetrievePartnerAnalyticsQueryParamInterval), start: T.nilable(::String), end_: T.nilable(::String), query: T.nilable(::String), timezone: T.nilable(::String), group_by: T.nilable(Models::Operations::RetrievePartnerAnalyticsQueryParamGroupBy)).void }
34
- def initialize(partner_id: nil, tenant_id: nil, interval: nil, start: nil, end_: nil, query: nil, timezone: 'UTC', group_by: Models::Operations::RetrievePartnerAnalyticsQueryParamGroupBy::COUNT)
35
- @partner_id = partner_id
36
- @tenant_id = tenant_id
33
+ sig { params(interval: T.nilable(Models::Operations::RetrievePartnerAnalyticsQueryParamInterval), start: T.nilable(::String), end_: T.nilable(::String), query: T.nilable(::String), partner_id: T.nilable(::String), tenant_id: T.nilable(::String), timezone: T.nilable(::String), group_by: T.nilable(Models::Operations::RetrievePartnerAnalyticsQueryParamGroupBy)).void }
34
+ def initialize(interval: nil, start: nil, end_: nil, query: nil, partner_id: nil, tenant_id: nil, timezone: 'UTC', group_by: Models::Operations::RetrievePartnerAnalyticsQueryParamGroupBy::COUNT)
37
35
  @interval = interval
38
36
  @start = start
39
37
  @end_ = end_
40
38
  @query = query
39
+ @partner_id = partner_id
40
+ @tenant_id = tenant_id
41
41
  @timezone = timezone
42
42
  @group_by = group_by
43
43
  end
@@ -45,12 +45,12 @@ module OpenApiSDK
45
45
  sig { params(other: T.untyped).returns(T::Boolean) }
46
46
  def ==(other)
47
47
  return false unless other.is_a? self.class
48
- return false unless @partner_id == other.partner_id
49
- return false unless @tenant_id == other.tenant_id
50
48
  return false unless @interval == other.interval
51
49
  return false unless @start == other.start
52
50
  return false unless @end_ == other.end_
53
51
  return false unless @query == other.query
52
+ return false unless @partner_id == other.partner_id
53
+ return false unless @tenant_id == other.tenant_id
54
54
  return false unless @timezone == other.timezone
55
55
  return false unless @group_by == other.group_by
56
56
  true
@@ -8,10 +8,6 @@ end
8
8
 
9
9
 
10
10
  class OpenApiSDK::Models::Operations::RetrievePartnerAnalyticsRequest
11
- def partner_id(); end
12
- def partner_id=(str_); end
13
- def tenant_id(); end
14
- def tenant_id=(str_); end
15
11
  def interval(); end
16
12
  def interval=(str_); end
17
13
  def start(); end
@@ -20,6 +16,10 @@ class OpenApiSDK::Models::Operations::RetrievePartnerAnalyticsRequest
20
16
  def end_=(str_); end
21
17
  def query(); end
22
18
  def query=(str_); end
19
+ def partner_id(); end
20
+ def partner_id=(str_); end
21
+ def tenant_id(); end
22
+ def tenant_id=(str_); end
23
23
  def timezone(); end
24
24
  def timezone=(str_); end
25
25
  def group_by(); end
@@ -25,15 +25,18 @@ module OpenApiSDK
25
25
  field :payouts_enabled_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutsEnabledAt'), required: true } }
26
26
  # The partner's country (required for tax purposes).
27
27
  field :country, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country'), required: true } }
28
+ # The partner's group ID on Dub.
29
+ field :group_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('groupId') } }
28
30
 
29
- sig { params(id: ::String, name: ::String, email: T.nilable(::String), image: T.nilable(::String), payouts_enabled_at: T.nilable(::String), country: T.nilable(::String)).void }
30
- def initialize(id:, name:, email: nil, image: nil, payouts_enabled_at: nil, country: nil)
31
+ sig { params(id: ::String, name: ::String, email: T.nilable(::String), image: T.nilable(::String), payouts_enabled_at: T.nilable(::String), country: T.nilable(::String), group_id: T.nilable(::String)).void }
32
+ def initialize(id:, name:, email: nil, image: nil, payouts_enabled_at: nil, country: nil, group_id: nil)
31
33
  @id = id
32
34
  @name = name
33
35
  @email = email
34
36
  @image = image
35
37
  @payouts_enabled_at = payouts_enabled_at
36
38
  @country = country
39
+ @group_id = group_id
37
40
  end
38
41
 
39
42
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -45,6 +48,7 @@ module OpenApiSDK
45
48
  return false unless @image == other.image
46
49
  return false unless @payouts_enabled_at == other.payouts_enabled_at
47
50
  return false unless @country == other.country
51
+ return false unless @group_id == other.group_id
48
52
  true
49
53
  end
50
54
  end
@@ -20,4 +20,6 @@ class OpenApiSDK::Models::Operations::UpdateCommissionPartner
20
20
  def payouts_enabled_at=(str_); end
21
21
  def country(); end
22
22
  def country=(str_); end
23
+ def group_id(); end
24
+ def group_id=(str_); end
23
25
  end
@@ -12,6 +12,8 @@ module OpenApiSDK
12
12
  autoload :Four, 'open_api_sdk/models/operations/four.rb'
13
13
  autoload :Link, 'open_api_sdk/models/operations/link.rb'
14
14
  autoload :AccessLevel, 'open_api_sdk/models/operations/accesslevel.rb'
15
+ autoload :BanPartnerRequestBody, 'open_api_sdk/models/operations/banpartner_requestbody.rb'
16
+ autoload :BanPartnerResponseBody, 'open_api_sdk/models/operations/banpartner_responsebody.rb'
15
17
  autoload :BannedReason, 'open_api_sdk/models/operations/bannedreason.rb'
16
18
  autoload :BulkCreateLinksTagIds, 'open_api_sdk/models/operations/bulkcreatelinks_tagids.rb'
17
19
  autoload :BulkCreateLinksTagNames, 'open_api_sdk/models/operations/bulkcreatelinks_tagnames.rb'
@@ -26,12 +28,6 @@ module OpenApiSDK
26
28
  autoload :CheckDomainStatusResponseBody, 'open_api_sdk/models/operations/checkdomainstatus_responsebody.rb'
27
29
  autoload :Click, 'open_api_sdk/models/operations/click.rb'
28
30
  autoload :Color, 'open_api_sdk/models/operations/color.rb'
29
- autoload :CreateCustomerLink, 'open_api_sdk/models/operations/createcustomer_link.rb'
30
- autoload :CreateCustomerDiscount, 'open_api_sdk/models/operations/createcustomer_discount.rb'
31
- autoload :CreateCustomerPartner, 'open_api_sdk/models/operations/createcustomer_partner.rb'
32
- autoload :CreateCustomerRequestBody, 'open_api_sdk/models/operations/createcustomer_requestbody.rb'
33
- autoload :CreateCustomerResponseBody, 'open_api_sdk/models/operations/createcustomer_responsebody.rb'
34
- autoload :CreateCustomerType, 'open_api_sdk/models/operations/createcustomer_type.rb'
35
31
  autoload :CreateDomainRequestBody, 'open_api_sdk/models/operations/createdomain_requestbody.rb'
36
32
  autoload :CreateFolderRequestBody, 'open_api_sdk/models/operations/createfolder_requestbody.rb'
37
33
  autoload :CreateLinkRequestBody, 'open_api_sdk/models/operations/createlink_requestbody.rb'
@@ -135,6 +131,7 @@ module OpenApiSDK
135
131
  autoload :QueryParamTagIds, 'open_api_sdk/models/operations/queryparam_tagids.rb'
136
132
  autoload :QueryParamTagNames, 'open_api_sdk/models/operations/queryparam_tagnames.rb'
137
133
  autoload :QueryParamTrigger, 'open_api_sdk/models/operations/queryparam_trigger.rb'
134
+ autoload :Reason, 'open_api_sdk/models/operations/reason.rb'
138
135
  autoload :RegisterDomainRequestBody, 'open_api_sdk/models/operations/registerdomain_requestbody.rb'
139
136
  autoload :RegisterDomainResponseBody, 'open_api_sdk/models/operations/registerdomain_responsebody.rb'
140
137
  autoload :RequestBody, 'open_api_sdk/models/operations/requestbody.rb'
@@ -13,7 +13,7 @@ module OpenApiSDK
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
- # The destination URL
16
+ # The full destination URL (including query parameters)
17
17
  field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url'), required: true } }
18
18
  # The number of clicks from this URL
19
19
  field :clicks, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clicks') } }
@@ -0,0 +1,37 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Models
9
+ module Shared
10
+
11
+
12
+ class ApplicationFormData
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :label, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('label'), required: true } }
18
+
19
+ field :value, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('value'), required: true } }
20
+
21
+ sig { params(label: ::String, value: T.nilable(::String)).void }
22
+ def initialize(label:, value: nil)
23
+ @label = label
24
+ @value = value
25
+ end
26
+
27
+ sig { params(other: T.untyped).returns(T::Boolean) }
28
+ def ==(other)
29
+ return false unless other.is_a? self.class
30
+ return false unless @label == other.label
31
+ return false unless @value == other.value
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,15 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class OpenApiSDK::Models::Shared::ApplicationFormData
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class OpenApiSDK::Models::Shared::ApplicationFormData
11
+ def label(); end
12
+ def label=(str_); end
13
+ def value(); end
14
+ def value=(str_); end
15
+ end
@@ -28,6 +28,8 @@ module OpenApiSDK
28
28
 
29
29
  field :expires_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiresAt'), required: true } }
30
30
 
31
+ field :disabled_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('disabledAt'), required: true } }
32
+
31
33
  field :proxy, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy'), required: true } }
32
34
 
33
35
  field :rewrite, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite'), required: true } }
@@ -41,6 +43,10 @@ module OpenApiSDK
41
43
  field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink'), required: true } }
42
44
  # The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
43
45
  field :qr_code, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qrCode'), required: true } }
46
+
47
+ field :test_started_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testStartedAt'), required: true } }
48
+
49
+ field :test_completed_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testCompletedAt'), required: true } }
44
50
  # The workspace ID of the short link.
45
51
  field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspaceId'), required: true } }
46
52
 
@@ -96,10 +102,6 @@ module OpenApiSDK
96
102
  # The UTM content of the short link.
97
103
  field :utm_content, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_content'), required: true } }
98
104
 
99
- field :test_started_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testStartedAt'), required: true } }
100
-
101
- field :test_completed_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testCompletedAt'), required: true } }
102
-
103
105
  field :user_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('userId'), required: true } }
104
106
  # Deprecated: Use `tags` instead. The unique ID of the tag assigned to the short link.
105
107
  #
@@ -118,8 +120,8 @@ module OpenApiSDK
118
120
  # The total dollar value of sales (in cents) generated by the short link.
119
121
  field :sale_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
120
122
 
121
- sig { params(id: ::String, domain: ::String, key: ::String, url: ::String, track_conversion: T::Boolean, archived: T::Boolean, expires_at: ::String, proxy: T::Boolean, rewrite: T::Boolean, do_index: T::Boolean, public_stats: T::Boolean, webhook_ids: T::Array[::String], short_link: ::String, qr_code: ::String, workspace_id: ::String, last_clicked: ::String, created_at: ::String, updated_at: ::String, project_id: ::String, external_id: T.nilable(::String), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), expired_url: T.nilable(::String), password: T.nilable(::String), title: T.nilable(::String), description: T.nilable(::String), image: T.nilable(::String), video: T.nilable(::String), ios: T.nilable(::String), android: T.nilable(::String), geo: T.nilable(T::Hash[Symbol, ::String]), tags: T.nilable(T::Array[Models::Shared::LinkTagSchema]), folder_id: T.nilable(::String), comments: T.nilable(::String), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), test_started_at: T.nilable(::String), test_completed_at: T.nilable(::String), user_id: T.nilable(::String), tag_id: T.nilable(::String), test_variants: T.nilable(T::Array[Models::Shared::LeadCreatedEventTestVariants]), clicks: T.nilable(::Float), leads: T.nilable(::Float), conversions: T.nilable(::Float), sales: T.nilable(::Float), sale_amount: T.nilable(::Float)).void }
122
- def initialize(id:, domain:, key:, url:, track_conversion:, archived:, expires_at:, proxy:, rewrite:, do_index:, public_stats:, webhook_ids:, short_link:, qr_code:, workspace_id:, last_clicked:, created_at:, updated_at:, project_id:, external_id: nil, tenant_id: nil, program_id: nil, partner_id: nil, expired_url: nil, password: nil, title: nil, description: nil, image: nil, video: nil, ios: nil, android: nil, geo: nil, tags: nil, folder_id: nil, comments: nil, utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, test_started_at: nil, test_completed_at: nil, user_id: nil, tag_id: nil, test_variants: nil, clicks: 0.0, leads: 0.0, conversions: 0.0, sales: 0.0, sale_amount: 0.0)
123
+ sig { params(id: ::String, domain: ::String, key: ::String, url: ::String, track_conversion: T::Boolean, archived: T::Boolean, expires_at: ::String, disabled_at: ::String, proxy: T::Boolean, rewrite: T::Boolean, do_index: T::Boolean, public_stats: T::Boolean, webhook_ids: T::Array[::String], short_link: ::String, qr_code: ::String, test_started_at: ::String, test_completed_at: ::String, workspace_id: ::String, last_clicked: ::String, created_at: ::String, updated_at: ::String, project_id: ::String, external_id: T.nilable(::String), tenant_id: T.nilable(::String), program_id: T.nilable(::String), partner_id: T.nilable(::String), expired_url: T.nilable(::String), password: T.nilable(::String), title: T.nilable(::String), description: T.nilable(::String), image: T.nilable(::String), video: T.nilable(::String), ios: T.nilable(::String), android: T.nilable(::String), geo: T.nilable(T::Hash[Symbol, ::String]), tags: T.nilable(T::Array[Models::Shared::LinkTagSchema]), folder_id: T.nilable(::String), comments: T.nilable(::String), utm_source: T.nilable(::String), utm_medium: T.nilable(::String), utm_campaign: T.nilable(::String), utm_term: T.nilable(::String), utm_content: T.nilable(::String), user_id: T.nilable(::String), tag_id: T.nilable(::String), test_variants: T.nilable(T::Array[Models::Shared::LeadCreatedEventTestVariants]), clicks: T.nilable(::Float), leads: T.nilable(::Float), conversions: T.nilable(::Float), sales: T.nilable(::Float), sale_amount: T.nilable(::Float)).void }
124
+ def initialize(id:, domain:, key:, url:, track_conversion:, archived:, expires_at:, disabled_at:, proxy:, rewrite:, do_index:, public_stats:, webhook_ids:, short_link:, qr_code:, test_started_at:, test_completed_at:, workspace_id:, last_clicked:, created_at:, updated_at:, project_id:, external_id: nil, tenant_id: nil, program_id: nil, partner_id: nil, expired_url: nil, password: nil, title: nil, description: nil, image: nil, video: nil, ios: nil, android: nil, geo: nil, tags: nil, folder_id: nil, comments: nil, utm_source: nil, utm_medium: nil, utm_campaign: nil, utm_term: nil, utm_content: nil, user_id: nil, tag_id: nil, test_variants: nil, clicks: 0.0, leads: 0.0, conversions: 0.0, sales: 0.0, sale_amount: 0.0)
123
125
  @id = id
124
126
  @domain = domain
125
127
  @key = key
@@ -127,6 +129,7 @@ module OpenApiSDK
127
129
  @track_conversion = track_conversion
128
130
  @archived = archived
129
131
  @expires_at = expires_at
132
+ @disabled_at = disabled_at
130
133
  @proxy = proxy
131
134
  @rewrite = rewrite
132
135
  @do_index = do_index
@@ -134,6 +137,8 @@ module OpenApiSDK
134
137
  @webhook_ids = webhook_ids
135
138
  @short_link = short_link
136
139
  @qr_code = qr_code
140
+ @test_started_at = test_started_at
141
+ @test_completed_at = test_completed_at
137
142
  @workspace_id = workspace_id
138
143
  @last_clicked = last_clicked
139
144
  @created_at = created_at
@@ -160,8 +165,6 @@ module OpenApiSDK
160
165
  @utm_campaign = utm_campaign
161
166
  @utm_term = utm_term
162
167
  @utm_content = utm_content
163
- @test_started_at = test_started_at
164
- @test_completed_at = test_completed_at
165
168
  @user_id = user_id
166
169
  @tag_id = tag_id
167
170
  @test_variants = test_variants
@@ -182,6 +185,7 @@ module OpenApiSDK
182
185
  return false unless @track_conversion == other.track_conversion
183
186
  return false unless @archived == other.archived
184
187
  return false unless @expires_at == other.expires_at
188
+ return false unless @disabled_at == other.disabled_at
185
189
  return false unless @proxy == other.proxy
186
190
  return false unless @rewrite == other.rewrite
187
191
  return false unless @do_index == other.do_index
@@ -189,6 +193,8 @@ module OpenApiSDK
189
193
  return false unless @webhook_ids == other.webhook_ids
190
194
  return false unless @short_link == other.short_link
191
195
  return false unless @qr_code == other.qr_code
196
+ return false unless @test_started_at == other.test_started_at
197
+ return false unless @test_completed_at == other.test_completed_at
192
198
  return false unless @workspace_id == other.workspace_id
193
199
  return false unless @last_clicked == other.last_clicked
194
200
  return false unless @created_at == other.created_at
@@ -215,8 +221,6 @@ module OpenApiSDK
215
221
  return false unless @utm_campaign == other.utm_campaign
216
222
  return false unless @utm_term == other.utm_term
217
223
  return false unless @utm_content == other.utm_content
218
- return false unless @test_started_at == other.test_started_at
219
- return false unless @test_completed_at == other.test_completed_at
220
224
  return false unless @user_id == other.user_id
221
225
  return false unless @tag_id == other.tag_id
222
226
  return false unless @test_variants == other.test_variants
@@ -22,6 +22,8 @@ class OpenApiSDK::Models::Shared::LeadCreatedEventLink
22
22
  def archived=(str_); end
23
23
  def expires_at(); end
24
24
  def expires_at=(str_); end
25
+ def disabled_at(); end
26
+ def disabled_at=(str_); end
25
27
  def proxy(); end
26
28
  def proxy=(str_); end
27
29
  def rewrite(); end
@@ -36,6 +38,10 @@ class OpenApiSDK::Models::Shared::LeadCreatedEventLink
36
38
  def short_link=(str_); end
37
39
  def qr_code(); end
38
40
  def qr_code=(str_); end
41
+ def test_started_at(); end
42
+ def test_started_at=(str_); end
43
+ def test_completed_at(); end
44
+ def test_completed_at=(str_); end
39
45
  def workspace_id(); end
40
46
  def workspace_id=(str_); end
41
47
  def last_clicked(); end
@@ -88,10 +94,6 @@ class OpenApiSDK::Models::Shared::LeadCreatedEventLink
88
94
  def utm_term=(str_); end
89
95
  def utm_content(); end
90
96
  def utm_content=(str_); end
91
- def test_started_at(); end
92
- def test_started_at=(str_); end
93
- def test_completed_at(); end
94
- def test_completed_at=(str_); end
95
97
  def user_id(); end
96
98
  def user_id=(str_); end
97
99
  def tag_id(); end