dub 0.2.2.pre.alpha.73 → 0.2.2.pre.alpha.75

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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/open_api_sdk/analytics.rb +2 -1
  3. data/lib/open_api_sdk/customers.rb +10 -5
  4. data/lib/open_api_sdk/domains.rb +8 -4
  5. data/lib/open_api_sdk/dub.rb +22 -23
  6. data/lib/open_api_sdk/embed_tokens.rb +9 -8
  7. data/lib/open_api_sdk/events.rb +2 -1
  8. data/lib/open_api_sdk/folders.rb +8 -4
  9. data/lib/open_api_sdk/links.rb +20 -10
  10. data/lib/open_api_sdk/metatags.rb +2 -1
  11. data/lib/open_api_sdk/models/operations/createpartner_requestbody.rb +5 -5
  12. data/lib/open_api_sdk/models/operations/createpartnerlink_linkprops.rb +2 -5
  13. data/lib/open_api_sdk/models/operations/createreferralsembedtoken_country.rb +266 -0
  14. data/lib/open_api_sdk/models/operations/createreferralsembedtoken_linkprops.rb +99 -0
  15. data/lib/open_api_sdk/models/operations/{createembedtoken_requestbody.rb → createreferralsembedtoken_requestbody.rb} +6 -3
  16. data/lib/open_api_sdk/models/operations/{createembedtoken_response.rb → createreferralsembedtoken_response.rb} +3 -3
  17. data/lib/open_api_sdk/models/operations/{createembedtoken_responsebody.rb → createreferralsembedtoken_responsebody.rb} +1 -1
  18. data/lib/open_api_sdk/models/operations/getcustomers_partner.rb +33 -0
  19. data/lib/open_api_sdk/models/operations/interval.rb +0 -1
  20. data/lib/open_api_sdk/models/operations/linkprops.rb +2 -5
  21. data/lib/open_api_sdk/models/operations/partner.rb +20 -8
  22. data/lib/open_api_sdk/models/operations/responsebody.rb +2 -2
  23. data/lib/open_api_sdk/models/operations/retrievepartneranalytics_queryparam_interval.rb +0 -1
  24. data/lib/open_api_sdk/models/operations/updatepartnersale_requestbody.rb +30 -0
  25. data/lib/open_api_sdk/models/operations/updatepartnersale_response.rb +60 -0
  26. data/lib/open_api_sdk/models/operations/updatepartnersale_responsebody.rb +42 -0
  27. data/lib/open_api_sdk/models/operations/updatepartnersale_status.rb +22 -0
  28. data/lib/open_api_sdk/models/operations/upsertpartnerlink_linkprops.rb +2 -5
  29. data/lib/open_api_sdk/models/operations.rb +11 -4
  30. data/lib/open_api_sdk/partners.rb +95 -4
  31. data/lib/open_api_sdk/qr_codes.rb +2 -1
  32. data/lib/open_api_sdk/sdkconfiguration.rb +12 -7
  33. data/lib/open_api_sdk/tags.rb +8 -4
  34. data/lib/open_api_sdk/track.rb +4 -2
  35. data/lib/open_api_sdk/workspaces.rb +4 -2
  36. metadata +12 -5
@@ -0,0 +1,266 @@
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 Operations
9
+
10
+ # CreateReferralsEmbedTokenCountry - Country where the partner is based.
11
+ class CreateReferralsEmbedTokenCountry < T::Enum
12
+ enums do
13
+ AF = new('AF')
14
+ AL = new('AL')
15
+ DZ = new('DZ')
16
+ AS = new('AS')
17
+ AD = new('AD')
18
+ AO = new('AO')
19
+ AI = new('AI')
20
+ AQ = new('AQ')
21
+ AG = new('AG')
22
+ AR = new('AR')
23
+ AM = new('AM')
24
+ AW = new('AW')
25
+ AU = new('AU')
26
+ AT = new('AT')
27
+ AZ = new('AZ')
28
+ BS = new('BS')
29
+ BH = new('BH')
30
+ BD = new('BD')
31
+ BB = new('BB')
32
+ BY = new('BY')
33
+ BE = new('BE')
34
+ BZ = new('BZ')
35
+ BJ = new('BJ')
36
+ BM = new('BM')
37
+ BT = new('BT')
38
+ BO = new('BO')
39
+ BA = new('BA')
40
+ BW = new('BW')
41
+ BV = new('BV')
42
+ BR = new('BR')
43
+ IO = new('IO')
44
+ BN = new('BN')
45
+ BG = new('BG')
46
+ BF = new('BF')
47
+ BI = new('BI')
48
+ KH = new('KH')
49
+ CM = new('CM')
50
+ CA = new('CA')
51
+ CV = new('CV')
52
+ KY = new('KY')
53
+ CF = new('CF')
54
+ TD = new('TD')
55
+ CL = new('CL')
56
+ CN = new('CN')
57
+ CX = new('CX')
58
+ CC = new('CC')
59
+ CO = new('CO')
60
+ KM = new('KM')
61
+ CG = new('CG')
62
+ CD = new('CD')
63
+ CK = new('CK')
64
+ CR = new('CR')
65
+ CI = new('CI')
66
+ HR = new('HR')
67
+ CU = new('CU')
68
+ CY = new('CY')
69
+ CZ = new('CZ')
70
+ DK = new('DK')
71
+ DJ = new('DJ')
72
+ DM = new('DM')
73
+ DO = new('DO')
74
+ EC = new('EC')
75
+ EG = new('EG')
76
+ SV = new('SV')
77
+ GQ = new('GQ')
78
+ ER = new('ER')
79
+ EE = new('EE')
80
+ ET = new('ET')
81
+ FK = new('FK')
82
+ FO = new('FO')
83
+ FJ = new('FJ')
84
+ FI = new('FI')
85
+ FR = new('FR')
86
+ GF = new('GF')
87
+ PF = new('PF')
88
+ TF = new('TF')
89
+ GA = new('GA')
90
+ GM = new('GM')
91
+ GE = new('GE')
92
+ DE = new('DE')
93
+ GH = new('GH')
94
+ GI = new('GI')
95
+ GR = new('GR')
96
+ GL = new('GL')
97
+ GD = new('GD')
98
+ GP = new('GP')
99
+ GU = new('GU')
100
+ GT = new('GT')
101
+ GN = new('GN')
102
+ GW = new('GW')
103
+ GY = new('GY')
104
+ HT = new('HT')
105
+ HM = new('HM')
106
+ VA = new('VA')
107
+ HN = new('HN')
108
+ HK = new('HK')
109
+ HU = new('HU')
110
+ IS = new('IS')
111
+ IN = new('IN')
112
+ ID = new('ID')
113
+ IR = new('IR')
114
+ IQ = new('IQ')
115
+ IE = new('IE')
116
+ IL = new('IL')
117
+ IT = new('IT')
118
+ JM = new('JM')
119
+ JP = new('JP')
120
+ JO = new('JO')
121
+ KZ = new('KZ')
122
+ KE = new('KE')
123
+ KI = new('KI')
124
+ KP = new('KP')
125
+ KR = new('KR')
126
+ KW = new('KW')
127
+ KG = new('KG')
128
+ LA = new('LA')
129
+ LV = new('LV')
130
+ LB = new('LB')
131
+ LS = new('LS')
132
+ LR = new('LR')
133
+ LY = new('LY')
134
+ LI = new('LI')
135
+ LT = new('LT')
136
+ LU = new('LU')
137
+ MO = new('MO')
138
+ MG = new('MG')
139
+ MW = new('MW')
140
+ MY = new('MY')
141
+ MV = new('MV')
142
+ ML = new('ML')
143
+ MT = new('MT')
144
+ MH = new('MH')
145
+ MQ = new('MQ')
146
+ MR = new('MR')
147
+ MU = new('MU')
148
+ YT = new('YT')
149
+ MX = new('MX')
150
+ FM = new('FM')
151
+ MD = new('MD')
152
+ MC = new('MC')
153
+ MN = new('MN')
154
+ MS = new('MS')
155
+ MA = new('MA')
156
+ MZ = new('MZ')
157
+ MM = new('MM')
158
+ NA = new('NA')
159
+ NR = new('NR')
160
+ NP = new('NP')
161
+ NL = new('NL')
162
+ NC = new('NC')
163
+ NZ = new('NZ')
164
+ NI = new('NI')
165
+ NE = new('NE')
166
+ NG = new('NG')
167
+ NU = new('NU')
168
+ NF = new('NF')
169
+ MK = new('MK')
170
+ MP = new('MP')
171
+ NO = new('NO')
172
+ OM = new('OM')
173
+ PK = new('PK')
174
+ PW = new('PW')
175
+ PS = new('PS')
176
+ PA = new('PA')
177
+ PG = new('PG')
178
+ PY = new('PY')
179
+ PE = new('PE')
180
+ PH = new('PH')
181
+ PN = new('PN')
182
+ PL = new('PL')
183
+ PT = new('PT')
184
+ PR = new('PR')
185
+ QA = new('QA')
186
+ RE = new('RE')
187
+ RO = new('RO')
188
+ RU = new('RU')
189
+ RW = new('RW')
190
+ SH = new('SH')
191
+ KN = new('KN')
192
+ LC = new('LC')
193
+ PM = new('PM')
194
+ VC = new('VC')
195
+ WS = new('WS')
196
+ SM = new('SM')
197
+ ST = new('ST')
198
+ SA = new('SA')
199
+ SN = new('SN')
200
+ SC = new('SC')
201
+ SL = new('SL')
202
+ SG = new('SG')
203
+ SK = new('SK')
204
+ SI = new('SI')
205
+ SB = new('SB')
206
+ SO = new('SO')
207
+ ZA = new('ZA')
208
+ GS = new('GS')
209
+ ES = new('ES')
210
+ LK = new('LK')
211
+ SD = new('SD')
212
+ SR = new('SR')
213
+ SJ = new('SJ')
214
+ SZ = new('SZ')
215
+ SE = new('SE')
216
+ CH = new('CH')
217
+ SY = new('SY')
218
+ TW = new('TW')
219
+ TJ = new('TJ')
220
+ TZ = new('TZ')
221
+ TH = new('TH')
222
+ TL = new('TL')
223
+ TG = new('TG')
224
+ TK = new('TK')
225
+ TO = new('TO')
226
+ TT = new('TT')
227
+ TN = new('TN')
228
+ TR = new('TR')
229
+ TM = new('TM')
230
+ TC = new('TC')
231
+ TV = new('TV')
232
+ UG = new('UG')
233
+ UA = new('UA')
234
+ AE = new('AE')
235
+ GB = new('GB')
236
+ US = new('US')
237
+ UM = new('UM')
238
+ UY = new('UY')
239
+ UZ = new('UZ')
240
+ VU = new('VU')
241
+ VE = new('VE')
242
+ VN = new('VN')
243
+ VG = new('VG')
244
+ VI = new('VI')
245
+ WF = new('WF')
246
+ EH = new('EH')
247
+ YE = new('YE')
248
+ ZM = new('ZM')
249
+ ZW = new('ZW')
250
+ AX = new('AX')
251
+ BQ = new('BQ')
252
+ CW = new('CW')
253
+ GG = new('GG')
254
+ IM = new('IM')
255
+ JE = new('JE')
256
+ ME = new('ME')
257
+ BL = new('BL')
258
+ MF = new('MF')
259
+ RS = new('RS')
260
+ SX = new('SX')
261
+ SS = new('SS')
262
+ XK = new('XK')
263
+ end
264
+ end
265
+ end
266
+ end
@@ -0,0 +1,99 @@
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 Operations
9
+
10
+ # Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
11
+ class CreateReferralsEmbedTokenLinkProps < ::Crystalline::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The Android destination URL for the short link for Android device targeting.
15
+ field :android, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('android') } }
16
+ # Whether the short link is archived. Defaults to `false` if not provided.
17
+ field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
18
+ # The comments for the short link.
19
+ field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
20
+ # The custom link preview description (og:description). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
21
+ field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
22
+ # Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
23
+ field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
24
+ # The URL to redirect to when the short link has expired.
25
+ field :expired_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
26
+ # The date and time when the short link will expire at.
27
+ field :expires_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiresAt') } }
28
+ # The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace.
29
+ field :external_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
30
+ # The unique ID existing folder to assign the short link to.
31
+ field :folder_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('folderId') } }
32
+ # The custom link preview image (og:image). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
33
+ field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
34
+ # The iOS destination URL for the short link for iOS device targeting.
35
+ field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
36
+ # The password required to access the destination URL of the short link.
37
+ field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
38
+ # The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided.
39
+ field :prefix, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('prefix') } }
40
+ # Whether the short link uses Custom Social Media Cards feature. Defaults to `false` if not provided.
41
+ field :proxy, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy') } }
42
+ # The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
43
+ field :ref, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ref') } }
44
+ # Whether the short link uses link cloaking. Defaults to `false` if not provided.
45
+ field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
46
+ # The unique IDs of the tags assigned to the short link.
47
+ field :tag_ids, T.nilable(::Object), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagIds') } }
48
+ # The unique name of the tags assigned to the short link (case insensitive).
49
+ field :tag_names, T.nilable(::Object), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagNames') } }
50
+ # The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
51
+ field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
52
+ # The custom link preview title (og:title). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
53
+ field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
54
+ # The UTM campaign of the short link. If set, this will populate or override the UTM campaign in the destination URL.
55
+ field :utm_campaign, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_campaign') } }
56
+ # The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.
57
+ field :utm_content, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_content') } }
58
+ # The UTM medium of the short link. If set, this will populate or override the UTM medium in the destination URL.
59
+ field :utm_medium, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_medium') } }
60
+ # The UTM source of the short link. If set, this will populate or override the UTM source in the destination URL.
61
+ field :utm_source, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_source') } }
62
+ # The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL.
63
+ field :utm_term, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_term') } }
64
+ # The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
65
+ field :video, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('video') } }
66
+
67
+
68
+ sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), folder_id: T.nilable(::String), image: T.nilable(::String), ios: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), proxy: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String)).void }
69
+ def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, external_id: nil, folder_id: nil, image: nil, ios: nil, password: nil, prefix: nil, proxy: nil, ref: nil, rewrite: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil)
70
+ @android = android
71
+ @archived = archived
72
+ @comments = comments
73
+ @description = description
74
+ @do_index = do_index
75
+ @expired_url = expired_url
76
+ @expires_at = expires_at
77
+ @external_id = external_id
78
+ @folder_id = folder_id
79
+ @image = image
80
+ @ios = ios
81
+ @password = password
82
+ @prefix = prefix
83
+ @proxy = proxy
84
+ @ref = ref
85
+ @rewrite = rewrite
86
+ @tag_ids = tag_ids
87
+ @tag_names = tag_names
88
+ @tenant_id = tenant_id
89
+ @title = title
90
+ @utm_campaign = utm_campaign
91
+ @utm_content = utm_content
92
+ @utm_medium = utm_medium
93
+ @utm_source = utm_source
94
+ @utm_term = utm_term
95
+ @video = video
96
+ end
97
+ end
98
+ end
99
+ end
@@ -8,20 +8,23 @@ module OpenApiSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class CreateEmbedTokenRequestBody < ::Crystalline::FieldAugmented
11
+ class CreateReferralsEmbedTokenRequestBody < ::Crystalline::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
 
15
15
  field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
16
16
 
17
+ field :partner, T.nilable(::OpenApiSDK::Operations::Partner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
18
+
17
19
  field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } }
18
20
 
19
21
  field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
20
22
 
21
23
 
22
- sig { params(program_id: ::String, partner_id: T.nilable(::String), tenant_id: T.nilable(::String)).void }
23
- def initialize(program_id: nil, partner_id: nil, tenant_id: nil)
24
+ sig { params(program_id: ::String, partner: T.nilable(::OpenApiSDK::Operations::Partner), partner_id: T.nilable(::String), tenant_id: T.nilable(::String)).void }
25
+ def initialize(program_id: nil, partner: nil, partner_id: nil, tenant_id: nil)
24
26
  @program_id = program_id
27
+ @partner = partner
25
28
  @partner_id = partner_id
26
29
  @tenant_id = tenant_id
27
30
  end
@@ -8,7 +8,7 @@ module OpenApiSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class CreateEmbedTokenResponse < ::Crystalline::FieldAugmented
11
+ class CreateReferralsEmbedTokenResponse < ::Crystalline::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # HTTP response content type for this operation
@@ -30,7 +30,7 @@ module OpenApiSDK
30
30
  # The server cannot find the requested resource.
31
31
  field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
32
32
  # The created public embed token.
33
- field :object, T.nilable(::OpenApiSDK::Operations::CreateEmbedTokenResponseBody)
33
+ field :object, T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenResponseBody)
34
34
  # The user has sent too many requests in a given amount of time ("rate limiting")
35
35
  field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
36
36
  # Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
@@ -39,7 +39,7 @@ module OpenApiSDK
39
39
  field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
40
40
 
41
41
 
42
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), object: T.nilable(::OpenApiSDK::Operations::CreateEmbedTokenResponseBody), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void }
42
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), object: T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenResponseBody), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void }
43
43
  def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, object: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil)
44
44
  @content_type = content_type
45
45
  @raw_response = raw_response
@@ -8,7 +8,7 @@ module OpenApiSDK
8
8
  module Operations
9
9
 
10
10
  # The created public embed token.
11
- class CreateEmbedTokenResponseBody < ::Crystalline::FieldAugmented
11
+ class CreateReferralsEmbedTokenResponseBody < ::Crystalline::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
 
@@ -0,0 +1,33 @@
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 Operations
9
+
10
+
11
+ class GetCustomersPartner < ::Crystalline::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
16
+
17
+ field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
18
+
19
+ field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
20
+
21
+ field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
22
+
23
+
24
+ sig { params(email: ::String, id: ::String, name: ::String, image: T.nilable(::String)).void }
25
+ def initialize(email: nil, id: nil, name: nil, image: nil)
26
+ @email = email
27
+ @id = id
28
+ @name = name
29
+ @image = image
30
+ end
31
+ end
32
+ end
33
+ end
@@ -19,7 +19,6 @@ module OpenApiSDK
19
19
  QTD = new('qtd')
20
20
  YTD = new('ytd')
21
21
  ALL = new('all')
22
- ALL_UNFILTERED = new('all_unfiltered')
23
22
  end
24
23
  end
25
24
  end
@@ -33,8 +33,6 @@ module OpenApiSDK
33
33
  field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
34
34
  # The iOS destination URL for the short link for iOS device targeting.
35
35
  field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
36
- # The ID of the partner the short link is associated with.
37
- field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } }
38
36
  # The password required to access the destination URL of the short link.
39
37
  field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
40
38
  # The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided.
@@ -67,8 +65,8 @@ module OpenApiSDK
67
65
  field :video, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('video') } }
68
66
 
69
67
 
70
- sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), folder_id: T.nilable(::String), image: T.nilable(::String), ios: T.nilable(::String), partner_id: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), proxy: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String)).void }
71
- def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, external_id: nil, folder_id: nil, image: nil, ios: nil, partner_id: nil, password: nil, prefix: nil, proxy: nil, ref: nil, rewrite: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil)
68
+ sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), folder_id: T.nilable(::String), image: T.nilable(::String), ios: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), proxy: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String)).void }
69
+ def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, external_id: nil, folder_id: nil, image: nil, ios: nil, password: nil, prefix: nil, proxy: nil, ref: nil, rewrite: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil)
72
70
  @android = android
73
71
  @archived = archived
74
72
  @comments = comments
@@ -80,7 +78,6 @@ module OpenApiSDK
80
78
  @folder_id = folder_id
81
79
  @image = image
82
80
  @ios = ios
83
- @partner_id = partner_id
84
81
  @password = password
85
82
  @prefix = prefix
86
83
  @proxy = proxy
@@ -11,22 +11,34 @@ module OpenApiSDK
11
11
  class Partner < ::Crystalline::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
-
14
+ # Email for the partner in your system. Partners will be able to claim their profile by signing up to Dub Partners with this email.
15
15
  field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
16
-
17
- field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
18
-
16
+ # Full legal name of the partner.
19
17
  field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
20
-
18
+ # Country where the partner is based.
19
+ field :country, T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenCountry), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::CreateReferralsEmbedTokenCountry, true) } }
20
+ # A brief description of the partner and their background.
21
+ field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
22
+ # Avatar image for the partner – if not provided, a default avatar will be used.
21
23
  field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
24
+ # Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
25
+ field :link_props, T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenLinkProps), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkProps') } }
26
+ # The ID of the partner in your system.
27
+ field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
28
+ # A unique username for the partner in your system (max 100 characters). This will be used to create a short link for the partner using your program's default domain. If not provided, Dub will try to generate a username from the partner's name or email.
29
+ field :username, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('username') } }
22
30
 
23
31
 
24
- sig { params(email: ::String, id: ::String, name: ::String, image: T.nilable(::String)).void }
25
- def initialize(email: nil, id: nil, name: nil, image: nil)
32
+ sig { params(email: ::String, name: ::String, country: T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenCountry), description: T.nilable(::String), image: T.nilable(::String), link_props: T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenLinkProps), tenant_id: T.nilable(::String), username: T.nilable(::String)).void }
33
+ def initialize(email: nil, name: nil, country: nil, description: nil, image: nil, link_props: nil, tenant_id: nil, username: nil)
26
34
  @email = email
27
- @id = id
28
35
  @name = name
36
+ @country = country
37
+ @description = description
29
38
  @image = image
39
+ @link_props = link_props
40
+ @tenant_id = tenant_id
41
+ @username = username
30
42
  end
31
43
  end
32
44
  end
@@ -30,10 +30,10 @@ module OpenApiSDK
30
30
 
31
31
  field :link, T.nilable(::OpenApiSDK::Operations::Link), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
32
32
 
33
- field :partner, T.nilable(::OpenApiSDK::Operations::Partner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
33
+ field :partner, T.nilable(::OpenApiSDK::Operations::GetCustomersPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
34
34
 
35
35
 
36
- sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::Discount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::Link), partner: T.nilable(::OpenApiSDK::Operations::Partner)).void }
36
+ sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::Discount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::Link), partner: T.nilable(::OpenApiSDK::Operations::GetCustomersPartner)).void }
37
37
  def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil)
38
38
  @created_at = created_at
39
39
  @external_id = external_id
@@ -19,7 +19,6 @@ module OpenApiSDK
19
19
  QTD = new('qtd')
20
20
  YTD = new('ytd')
21
21
  ALL = new('all')
22
- ALL_UNFILTERED = new('all_unfiltered')
23
22
  end
24
23
  end
25
24
  end
@@ -0,0 +1,30 @@
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 Operations
9
+
10
+
11
+ class UpdatePartnerSaleRequestBody < ::Crystalline::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The new amount for the sale.
15
+ field :amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } }
16
+
17
+ field :invoice_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('invoiceId') } }
18
+
19
+ field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
20
+
21
+
22
+ sig { params(amount: ::Float, invoice_id: ::String, program_id: ::String).void }
23
+ def initialize(amount: nil, invoice_id: nil, program_id: nil)
24
+ @amount = amount
25
+ @invoice_id = invoice_id
26
+ @program_id = program_id
27
+ end
28
+ end
29
+ end
30
+ end