dub 0.2.2.pre.alpha.113 → 0.2.2.pre.alpha.117
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.
- checksums.yaml +4 -4
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +8 -5
- data/lib/open_api_sdk/models/operations/createpartner_status.rb +1 -0
- data/lib/open_api_sdk/models/operations/listcommissions_type.rb +1 -0
- data/lib/open_api_sdk/models/operations/listevents_request.rb +3 -3
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +3 -3
- data/lib/open_api_sdk/models/operations/type.rb +1 -0
- data/lib/open_api_sdk/models/operations/updatecommission_type.rb +1 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f204556141cf064f2048f7807f9897d33acbaaa90eea5c4bd6c0b3dda5113985
|
4
|
+
data.tar.gz: 366cccfddef46cba72b5ce8977d85ed718af3918607c77af82980994ffd66b5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb833e09015500094407561461b330c78d2a74ece3362389a2e71cef9b6cef256cc397f500dfeaab0da707002c29848e20b7967b108a25e366ea015182c01c8e
|
7
|
+
data.tar.gz: f3a0ca1b2ed5d6beed328de51cc66c445bc3523de27c4fee4f23ecf6e287fb869cec90e5293d0d88d9d6dac1ef89ac6077c0740735a31832fb77afd13bb50c81
|
@@ -37,6 +37,8 @@ module OpenApiSDK
|
|
37
37
|
field :links, T::Array[::OpenApiSDK::Operations::CreatePartnerLink], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('links') } }
|
38
38
|
# The partner's full legal name.
|
39
39
|
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
40
|
+
# The total net revenue generated by the partner.
|
41
|
+
field :net_revenue, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('netRevenue') } }
|
40
42
|
# The date when the partner enabled payouts.
|
41
43
|
field :payouts_enabled_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutsEnabledAt') } }
|
42
44
|
# The partner's PayPal email (for receiving payouts via PayPal).
|
@@ -55,20 +57,20 @@ module OpenApiSDK
|
|
55
57
|
field :tenant_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
|
56
58
|
# The partner's TikTok username (e.g. `johndoe`).
|
57
59
|
field :tiktok, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tiktok') } }
|
60
|
+
# The total commissions paid to the partner for their referrals.
|
61
|
+
field :total_commissions, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('totalCommissions') } }
|
58
62
|
# The partner's Twitter username (e.g. `johndoe`).
|
59
63
|
field :twitter, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('twitter') } }
|
60
64
|
# The partner's website URL (including the https protocol).
|
61
65
|
field :website, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('website') } }
|
62
66
|
# The partner's YouTube channel username (e.g. `johndoe`).
|
63
67
|
field :youtube, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('youtube') } }
|
64
|
-
# If the partner submitted an application to join the program, this is the ID of the application.
|
65
|
-
field :application_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('applicationId') } }
|
66
68
|
# A brief description of the partner and their background.
|
67
69
|
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
68
70
|
|
69
71
|
|
70
|
-
sig { params(clicks: ::Float, country: ::String, created_at: ::String, earnings: ::Float, email: ::String, id: ::String, image: ::String, instagram: ::String, leads: ::Float, linkedin: ::String, links: T::Array[::OpenApiSDK::Operations::CreatePartnerLink], name: ::String, payouts_enabled_at: ::String, paypal_email: ::String, program_id: ::String, sale_amount: ::Float, sales: ::Float, status: ::OpenApiSDK::Operations::CreatePartnerStatus, stripe_connect_id: ::String, tenant_id: ::String, tiktok: ::String,
|
71
|
-
def initialize(clicks: nil, country: nil, created_at: nil, earnings: nil, email: nil, id: nil, image: nil, instagram: nil, leads: nil, linkedin: nil, links: nil, name: nil, payouts_enabled_at: nil, paypal_email: nil, program_id: nil, sale_amount: nil, sales: nil, status: nil, stripe_connect_id: nil, tenant_id: nil, tiktok: nil,
|
72
|
+
sig { params(clicks: ::Float, country: ::String, created_at: ::String, earnings: ::Float, email: ::String, id: ::String, image: ::String, instagram: ::String, leads: ::Float, linkedin: ::String, links: T::Array[::OpenApiSDK::Operations::CreatePartnerLink], name: ::String, net_revenue: ::Float, payouts_enabled_at: ::String, paypal_email: ::String, program_id: ::String, sale_amount: ::Float, sales: ::Float, status: ::OpenApiSDK::Operations::CreatePartnerStatus, stripe_connect_id: ::String, tenant_id: ::String, tiktok: ::String, total_commissions: ::Float, twitter: ::String, website: ::String, youtube: ::String, description: T.nilable(::String)).void }
|
73
|
+
def initialize(clicks: nil, country: nil, created_at: nil, earnings: nil, email: nil, id: nil, image: nil, instagram: nil, leads: nil, linkedin: nil, links: nil, name: nil, net_revenue: nil, payouts_enabled_at: nil, paypal_email: nil, program_id: nil, sale_amount: nil, sales: nil, status: nil, stripe_connect_id: nil, tenant_id: nil, tiktok: nil, total_commissions: nil, twitter: nil, website: nil, youtube: nil, description: nil)
|
72
74
|
@clicks = clicks
|
73
75
|
@country = country
|
74
76
|
@created_at = created_at
|
@@ -81,6 +83,7 @@ module OpenApiSDK
|
|
81
83
|
@linkedin = linkedin
|
82
84
|
@links = links
|
83
85
|
@name = name
|
86
|
+
@net_revenue = net_revenue
|
84
87
|
@payouts_enabled_at = payouts_enabled_at
|
85
88
|
@paypal_email = paypal_email
|
86
89
|
@program_id = program_id
|
@@ -90,10 +93,10 @@ module OpenApiSDK
|
|
90
93
|
@stripe_connect_id = stripe_connect_id
|
91
94
|
@tenant_id = tenant_id
|
92
95
|
@tiktok = tiktok
|
96
|
+
@total_commissions = total_commissions
|
93
97
|
@twitter = twitter
|
94
98
|
@website = website
|
95
99
|
@youtube = youtube
|
96
|
-
@application_id = application_id
|
97
100
|
@description = description
|
98
101
|
end
|
99
102
|
end
|
@@ -29,17 +29,17 @@ module OpenApiSDK
|
|
29
29
|
field :end_, T.nilable(::String), { 'query_param': { 'field_name': 'end', 'style': 'form', 'explode': true } }
|
30
30
|
# The type of event to retrieve analytics for. Defaults to 'clicks'.
|
31
31
|
field :event, T.nilable(::OpenApiSDK::Operations::QueryParamEvent), { 'query_param': { 'field_name': 'event', 'style': 'form', 'explode': true } }
|
32
|
-
#
|
32
|
+
# The ID of the link in the your database. Must be prefixed with 'ext_' when passed as a query parameter.
|
33
33
|
field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } }
|
34
34
|
# The folder ID to retrieve analytics for. If not provided, return analytics for unsorted links.
|
35
35
|
field :folder_id, T.nilable(::String), { 'query_param': { 'field_name': 'folderId', 'style': 'form', 'explode': true } }
|
36
36
|
# The interval to retrieve analytics for. If undefined, defaults to 24h.
|
37
37
|
field :interval, T.nilable(::OpenApiSDK::Operations::QueryParamInterval), { 'query_param': { 'field_name': 'interval', 'style': 'form', 'explode': true } }
|
38
|
-
# The short link
|
38
|
+
# The slug of the short link to retrieve analytics for. Must be used along with the corresponding `domain` of the short link to fetch analytics for a specific short link.
|
39
39
|
field :key, T.nilable(::String), { 'query_param': { 'field_name': 'key', 'style': 'form', 'explode': true } }
|
40
40
|
|
41
41
|
field :limit, T.nilable(::Float), { 'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': true } }
|
42
|
-
# The unique ID of the short link on Dub.
|
42
|
+
# The unique ID of the short link on Dub to retrieve analytics for.
|
43
43
|
field :link_id, T.nilable(::String), { 'query_param': { 'field_name': 'linkId', 'style': 'form', 'explode': true } }
|
44
44
|
# DEPRECATED. Use `sortOrder` instead.
|
45
45
|
field :order, T.nilable(::OpenApiSDK::Operations::Order), { 'query_param': { 'field_name': 'order', 'style': 'form', 'explode': true } }
|
@@ -29,7 +29,7 @@ module OpenApiSDK
|
|
29
29
|
field :end_, T.nilable(::String), { 'query_param': { 'field_name': 'end', 'style': 'form', 'explode': true } }
|
30
30
|
# The type of event to retrieve analytics for. Defaults to `clicks`.
|
31
31
|
field :event, T.nilable(::OpenApiSDK::Operations::Event), { 'query_param': { 'field_name': 'event', 'style': 'form', 'explode': true } }
|
32
|
-
#
|
32
|
+
# The ID of the link in the your database. Must be prefixed with 'ext_' when passed as a query parameter.
|
33
33
|
field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } }
|
34
34
|
# The folder ID to retrieve analytics for. If not provided, return analytics for unsorted links.
|
35
35
|
field :folder_id, T.nilable(::String), { 'query_param': { 'field_name': 'folderId', 'style': 'form', 'explode': true } }
|
@@ -37,9 +37,9 @@ module OpenApiSDK
|
|
37
37
|
field :group_by, T.nilable(::OpenApiSDK::Operations::GroupBy), { 'query_param': { 'field_name': 'groupBy', 'style': 'form', 'explode': true } }
|
38
38
|
# The interval to retrieve analytics for. If undefined, defaults to 24h.
|
39
39
|
field :interval, T.nilable(::OpenApiSDK::Operations::Interval), { 'query_param': { 'field_name': 'interval', 'style': 'form', 'explode': true } }
|
40
|
-
# The short link
|
40
|
+
# The slug of the short link to retrieve analytics for. Must be used along with the corresponding `domain` of the short link to fetch analytics for a specific short link.
|
41
41
|
field :key, T.nilable(::String), { 'query_param': { 'field_name': 'key', 'style': 'form', 'explode': true } }
|
42
|
-
# The unique ID of the short link on Dub.
|
42
|
+
# The unique ID of the short link on Dub to retrieve analytics for.
|
43
43
|
field :link_id, T.nilable(::String), { 'query_param': { 'field_name': 'linkId', 'style': 'form', 'explode': true } }
|
44
44
|
# The OS to retrieve analytics for.
|
45
45
|
field :os, T.nilable(::String), { 'query_param': { 'field_name': 'os', 'style': 'form', 'explode': true } }
|
@@ -61,9 +61,9 @@ module OpenApiSDK
|
|
61
61
|
end
|
62
62
|
@language = 'ruby'
|
63
63
|
@openapi_doc_version = '0.0.1'
|
64
|
-
@sdk_version = '0.2.2-alpha.
|
64
|
+
@sdk_version = '0.2.2-alpha.117'
|
65
65
|
@gen_version = '2.563.0'
|
66
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.
|
66
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.117 2.563.0 0.0.1 dub'
|
67
67
|
end
|
68
68
|
|
69
69
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.2.pre.alpha.
|
4
|
+
version: 0.2.2.pre.alpha.117
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|