dub 0.12.8 → 0.12.9
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/analytics.rb +4 -4
- data/lib/open_api_sdk/bounties.rb +12 -12
- data/lib/open_api_sdk/commissions.rb +16 -16
- data/lib/open_api_sdk/customers.rb +16 -16
- data/lib/open_api_sdk/domains.rb +24 -24
- data/lib/open_api_sdk/embed_tokens.rb +4 -4
- data/lib/open_api_sdk/events.rb +4 -4
- data/lib/open_api_sdk/folders.rb +16 -16
- data/lib/open_api_sdk/links.rb +40 -40
- data/lib/open_api_sdk/models/operations/accesslevel.rb +1 -1
- data/lib/open_api_sdk/models/operations/checkdomainstatus_responsebody.rb +12 -6
- data/lib/open_api_sdk/models/operations/checkdomainstatus_responsebody.rbi +4 -2
- data/lib/open_api_sdk/models/operations/createfolder_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/createpartner_defaultpayoutmethod.rb +1 -0
- data/lib/open_api_sdk/models/operations/defaultpayoutmethod.rb +1 -0
- data/lib/open_api_sdk/models/operations/listevents_responsebody_click.rb +6 -2
- data/lib/open_api_sdk/models/operations/listevents_responsebody_click.rbi +2 -0
- data/lib/open_api_sdk/models/operations/listevents_responsebody_events_click.rb +6 -2
- data/lib/open_api_sdk/models/operations/listevents_responsebody_events_click.rbi +2 -0
- data/lib/open_api_sdk/models/operations/listpayouts_defaultpayoutmethod.rb +1 -0
- data/lib/open_api_sdk/models/operations/listpayouts_request.rb +6 -2
- data/lib/open_api_sdk/models/operations/listpayouts_request.rbi +2 -0
- data/lib/open_api_sdk/models/operations/method.rb +1 -0
- data/lib/open_api_sdk/models/operations/prices.rb +36 -0
- data/lib/open_api_sdk/models/operations/prices.rbi +15 -0
- data/lib/open_api_sdk/models/operations/responsebody_click.rb +6 -2
- data/lib/open_api_sdk/models/operations/responsebody_click.rbi +2 -0
- data/lib/open_api_sdk/models/operations.rb +1 -0
- data/lib/open_api_sdk/models/shared/accesslevel.rb +1 -1
- data/lib/open_api_sdk/models/shared/click.rb +6 -2
- data/lib/open_api_sdk/models/shared/click.rbi +2 -0
- data/lib/open_api_sdk/models/shared/defaultpayoutmethod.rb +1 -0
- data/lib/open_api_sdk/models/shared/folderschema.rb +2 -2
- data/lib/open_api_sdk/models/shared/leadcreatedevent_click.rb +6 -2
- data/lib/open_api_sdk/models/shared/leadcreatedevent_click.rbi +2 -0
- data/lib/open_api_sdk/models/shared/salecreatedevent_click.rb +6 -2
- data/lib/open_api_sdk/models/shared/salecreatedevent_click.rbi +2 -0
- data/lib/open_api_sdk/partner_applications.rb +12 -12
- data/lib/open_api_sdk/partners.rb +32 -32
- data/lib/open_api_sdk/payouts.rb +4 -4
- data/lib/open_api_sdk/qr_codes.rb +4 -4
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- data/lib/open_api_sdk/tags.rb +16 -16
- data/lib/open_api_sdk/track.rb +8 -8
- data/lib/open_api_sdk/utils/retries.rb +4 -1
- metadata +6 -4
|
@@ -58,7 +58,7 @@ module OpenApiSDK
|
|
|
58
58
|
|
|
59
59
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
60
60
|
timeout ||= @sdk_configuration.timeout
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
|
|
63
63
|
connection = @sdk_configuration.client
|
|
64
64
|
|
|
@@ -73,7 +73,7 @@ module OpenApiSDK
|
|
|
73
73
|
error = T.let(nil, T.nilable(StandardError))
|
|
74
74
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
begin
|
|
78
78
|
http_response = T.must(connection).get(url) do |req|
|
|
79
79
|
req.headers.merge!(headers)
|
|
@@ -110,13 +110,13 @@ module OpenApiSDK
|
|
|
110
110
|
response: http_response
|
|
111
111
|
)
|
|
112
112
|
end
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
if http_response.nil?
|
|
115
115
|
raise error if !error.nil?
|
|
116
116
|
raise 'no response'
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
121
121
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
122
122
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -296,7 +296,7 @@ module OpenApiSDK
|
|
|
296
296
|
|
|
297
297
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
298
298
|
timeout ||= @sdk_configuration.timeout
|
|
299
|
-
|
|
299
|
+
|
|
300
300
|
|
|
301
301
|
connection = @sdk_configuration.client
|
|
302
302
|
|
|
@@ -311,7 +311,7 @@ module OpenApiSDK
|
|
|
311
311
|
error = T.let(nil, T.nilable(StandardError))
|
|
312
312
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
313
313
|
|
|
314
|
-
|
|
314
|
+
|
|
315
315
|
begin
|
|
316
316
|
http_response = T.must(connection).post(url) do |req|
|
|
317
317
|
req.body = body
|
|
@@ -348,13 +348,13 @@ module OpenApiSDK
|
|
|
348
348
|
response: http_response
|
|
349
349
|
)
|
|
350
350
|
end
|
|
351
|
-
|
|
351
|
+
|
|
352
352
|
if http_response.nil?
|
|
353
353
|
raise error if !error.nil?
|
|
354
354
|
raise 'no response'
|
|
355
355
|
end
|
|
356
356
|
end
|
|
357
|
-
|
|
357
|
+
|
|
358
358
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
359
359
|
if Utils.match_status_code(http_response.status, ['201'])
|
|
360
360
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -525,7 +525,7 @@ module OpenApiSDK
|
|
|
525
525
|
|
|
526
526
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
527
527
|
timeout ||= @sdk_configuration.timeout
|
|
528
|
-
|
|
528
|
+
|
|
529
529
|
|
|
530
530
|
connection = @sdk_configuration.client
|
|
531
531
|
|
|
@@ -540,7 +540,7 @@ module OpenApiSDK
|
|
|
540
540
|
error = T.let(nil, T.nilable(StandardError))
|
|
541
541
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
542
542
|
|
|
543
|
-
|
|
543
|
+
|
|
544
544
|
begin
|
|
545
545
|
http_response = T.must(connection).get(url) do |req|
|
|
546
546
|
req.headers.merge!(headers)
|
|
@@ -577,13 +577,13 @@ module OpenApiSDK
|
|
|
577
577
|
response: http_response
|
|
578
578
|
)
|
|
579
579
|
end
|
|
580
|
-
|
|
580
|
+
|
|
581
581
|
if http_response.nil?
|
|
582
582
|
raise error if !error.nil?
|
|
583
583
|
raise 'no response'
|
|
584
584
|
end
|
|
585
585
|
end
|
|
586
|
-
|
|
586
|
+
|
|
587
587
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
588
588
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
589
589
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -763,7 +763,7 @@ module OpenApiSDK
|
|
|
763
763
|
|
|
764
764
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
765
765
|
timeout ||= @sdk_configuration.timeout
|
|
766
|
-
|
|
766
|
+
|
|
767
767
|
|
|
768
768
|
connection = @sdk_configuration.client
|
|
769
769
|
|
|
@@ -778,7 +778,7 @@ module OpenApiSDK
|
|
|
778
778
|
error = T.let(nil, T.nilable(StandardError))
|
|
779
779
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
780
780
|
|
|
781
|
-
|
|
781
|
+
|
|
782
782
|
begin
|
|
783
783
|
http_response = T.must(connection).post(url) do |req|
|
|
784
784
|
req.body = body
|
|
@@ -815,13 +815,13 @@ module OpenApiSDK
|
|
|
815
815
|
response: http_response
|
|
816
816
|
)
|
|
817
817
|
end
|
|
818
|
-
|
|
818
|
+
|
|
819
819
|
if http_response.nil?
|
|
820
820
|
raise error if !error.nil?
|
|
821
821
|
raise 'no response'
|
|
822
822
|
end
|
|
823
823
|
end
|
|
824
|
-
|
|
824
|
+
|
|
825
825
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
826
826
|
if Utils.match_status_code(http_response.status, ['201'])
|
|
827
827
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1001,7 +1001,7 @@ module OpenApiSDK
|
|
|
1001
1001
|
|
|
1002
1002
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1003
1003
|
timeout ||= @sdk_configuration.timeout
|
|
1004
|
-
|
|
1004
|
+
|
|
1005
1005
|
|
|
1006
1006
|
connection = @sdk_configuration.client
|
|
1007
1007
|
|
|
@@ -1016,7 +1016,7 @@ module OpenApiSDK
|
|
|
1016
1016
|
error = T.let(nil, T.nilable(StandardError))
|
|
1017
1017
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1018
1018
|
|
|
1019
|
-
|
|
1019
|
+
|
|
1020
1020
|
begin
|
|
1021
1021
|
http_response = T.must(connection).put(url) do |req|
|
|
1022
1022
|
req.body = body
|
|
@@ -1053,13 +1053,13 @@ module OpenApiSDK
|
|
|
1053
1053
|
response: http_response
|
|
1054
1054
|
)
|
|
1055
1055
|
end
|
|
1056
|
-
|
|
1056
|
+
|
|
1057
1057
|
if http_response.nil?
|
|
1058
1058
|
raise error if !error.nil?
|
|
1059
1059
|
raise 'no response'
|
|
1060
1060
|
end
|
|
1061
1061
|
end
|
|
1062
|
-
|
|
1062
|
+
|
|
1063
1063
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1064
1064
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1065
1065
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1230,7 +1230,7 @@ module OpenApiSDK
|
|
|
1230
1230
|
|
|
1231
1231
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1232
1232
|
timeout ||= @sdk_configuration.timeout
|
|
1233
|
-
|
|
1233
|
+
|
|
1234
1234
|
|
|
1235
1235
|
connection = @sdk_configuration.client
|
|
1236
1236
|
|
|
@@ -1245,7 +1245,7 @@ module OpenApiSDK
|
|
|
1245
1245
|
error = T.let(nil, T.nilable(StandardError))
|
|
1246
1246
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1247
1247
|
|
|
1248
|
-
|
|
1248
|
+
|
|
1249
1249
|
begin
|
|
1250
1250
|
http_response = T.must(connection).get(url) do |req|
|
|
1251
1251
|
req.headers.merge!(headers)
|
|
@@ -1282,13 +1282,13 @@ module OpenApiSDK
|
|
|
1282
1282
|
response: http_response
|
|
1283
1283
|
)
|
|
1284
1284
|
end
|
|
1285
|
-
|
|
1285
|
+
|
|
1286
1286
|
if http_response.nil?
|
|
1287
1287
|
raise error if !error.nil?
|
|
1288
1288
|
raise 'no response'
|
|
1289
1289
|
end
|
|
1290
1290
|
end
|
|
1291
|
-
|
|
1291
|
+
|
|
1292
1292
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1293
1293
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1294
1294
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1468,7 +1468,7 @@ module OpenApiSDK
|
|
|
1468
1468
|
|
|
1469
1469
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1470
1470
|
timeout ||= @sdk_configuration.timeout
|
|
1471
|
-
|
|
1471
|
+
|
|
1472
1472
|
|
|
1473
1473
|
connection = @sdk_configuration.client
|
|
1474
1474
|
|
|
@@ -1483,7 +1483,7 @@ module OpenApiSDK
|
|
|
1483
1483
|
error = T.let(nil, T.nilable(StandardError))
|
|
1484
1484
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1485
1485
|
|
|
1486
|
-
|
|
1486
|
+
|
|
1487
1487
|
begin
|
|
1488
1488
|
http_response = T.must(connection).post(url) do |req|
|
|
1489
1489
|
req.body = body
|
|
@@ -1520,13 +1520,13 @@ module OpenApiSDK
|
|
|
1520
1520
|
response: http_response
|
|
1521
1521
|
)
|
|
1522
1522
|
end
|
|
1523
|
-
|
|
1523
|
+
|
|
1524
1524
|
if http_response.nil?
|
|
1525
1525
|
raise error if !error.nil?
|
|
1526
1526
|
raise 'no response'
|
|
1527
1527
|
end
|
|
1528
1528
|
end
|
|
1529
|
-
|
|
1529
|
+
|
|
1530
1530
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1531
1531
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1532
1532
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1706,7 +1706,7 @@ module OpenApiSDK
|
|
|
1706
1706
|
|
|
1707
1707
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1708
1708
|
timeout ||= @sdk_configuration.timeout
|
|
1709
|
-
|
|
1709
|
+
|
|
1710
1710
|
|
|
1711
1711
|
connection = @sdk_configuration.client
|
|
1712
1712
|
|
|
@@ -1721,7 +1721,7 @@ module OpenApiSDK
|
|
|
1721
1721
|
error = T.let(nil, T.nilable(StandardError))
|
|
1722
1722
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1723
1723
|
|
|
1724
|
-
|
|
1724
|
+
|
|
1725
1725
|
begin
|
|
1726
1726
|
http_response = T.must(connection).post(url) do |req|
|
|
1727
1727
|
req.body = body
|
|
@@ -1758,13 +1758,13 @@ module OpenApiSDK
|
|
|
1758
1758
|
response: http_response
|
|
1759
1759
|
)
|
|
1760
1760
|
end
|
|
1761
|
-
|
|
1761
|
+
|
|
1762
1762
|
if http_response.nil?
|
|
1763
1763
|
raise error if !error.nil?
|
|
1764
1764
|
raise 'no response'
|
|
1765
1765
|
end
|
|
1766
1766
|
end
|
|
1767
|
-
|
|
1767
|
+
|
|
1768
1768
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1769
1769
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1770
1770
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/open_api_sdk/payouts.rb
CHANGED
|
@@ -58,7 +58,7 @@ module OpenApiSDK
|
|
|
58
58
|
|
|
59
59
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
60
60
|
timeout ||= @sdk_configuration.timeout
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
|
|
63
63
|
connection = @sdk_configuration.client
|
|
64
64
|
|
|
@@ -73,7 +73,7 @@ module OpenApiSDK
|
|
|
73
73
|
error = T.let(nil, T.nilable(StandardError))
|
|
74
74
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
begin
|
|
78
78
|
http_response = T.must(connection).get(url) do |req|
|
|
79
79
|
req.headers.merge!(headers)
|
|
@@ -110,13 +110,13 @@ module OpenApiSDK
|
|
|
110
110
|
response: http_response
|
|
111
111
|
)
|
|
112
112
|
end
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
if http_response.nil?
|
|
115
115
|
raise error if !error.nil?
|
|
116
116
|
raise 'no response'
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
121
121
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
122
122
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -58,7 +58,7 @@ module OpenApiSDK
|
|
|
58
58
|
|
|
59
59
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
60
60
|
timeout ||= @sdk_configuration.timeout
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
|
|
63
63
|
connection = @sdk_configuration.client
|
|
64
64
|
|
|
@@ -73,7 +73,7 @@ module OpenApiSDK
|
|
|
73
73
|
error = T.let(nil, T.nilable(StandardError))
|
|
74
74
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
begin
|
|
78
78
|
http_response = T.must(connection).get(url) do |req|
|
|
79
79
|
req.headers.merge!(headers)
|
|
@@ -110,13 +110,13 @@ module OpenApiSDK
|
|
|
110
110
|
response: http_response
|
|
111
111
|
)
|
|
112
112
|
end
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
if http_response.nil?
|
|
115
115
|
raise error if !error.nil?
|
|
116
116
|
raise 'no response'
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
121
121
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
122
122
|
if Utils.match_content_type(content_type, 'image/png')
|
|
@@ -88,9 +88,9 @@ module OpenApiSDK
|
|
|
88
88
|
end
|
|
89
89
|
@language = 'ruby'
|
|
90
90
|
@openapi_doc_version = '0.0.1'
|
|
91
|
-
@sdk_version = '0.12.
|
|
92
|
-
@gen_version = '2.
|
|
93
|
-
@user_agent = 'speakeasy-sdk/ruby 0.12.
|
|
91
|
+
@sdk_version = '0.12.9'
|
|
92
|
+
@gen_version = '2.914.0'
|
|
93
|
+
@user_agent = 'speakeasy-sdk/ruby 0.12.9 2.914.0 0.0.1 dub'
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/open_api_sdk/tags.rb
CHANGED
|
@@ -58,7 +58,7 @@ module OpenApiSDK
|
|
|
58
58
|
|
|
59
59
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
60
60
|
timeout ||= @sdk_configuration.timeout
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
|
|
63
63
|
connection = @sdk_configuration.client
|
|
64
64
|
|
|
@@ -73,7 +73,7 @@ module OpenApiSDK
|
|
|
73
73
|
error = T.let(nil, T.nilable(StandardError))
|
|
74
74
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
begin
|
|
78
78
|
http_response = T.must(connection).get(url) do |req|
|
|
79
79
|
req.headers.merge!(headers)
|
|
@@ -110,13 +110,13 @@ module OpenApiSDK
|
|
|
110
110
|
response: http_response
|
|
111
111
|
)
|
|
112
112
|
end
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
if http_response.nil?
|
|
115
115
|
raise error if !error.nil?
|
|
116
116
|
raise 'no response'
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
121
121
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
122
122
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -296,7 +296,7 @@ module OpenApiSDK
|
|
|
296
296
|
|
|
297
297
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
298
298
|
timeout ||= @sdk_configuration.timeout
|
|
299
|
-
|
|
299
|
+
|
|
300
300
|
|
|
301
301
|
connection = @sdk_configuration.client
|
|
302
302
|
|
|
@@ -311,7 +311,7 @@ module OpenApiSDK
|
|
|
311
311
|
error = T.let(nil, T.nilable(StandardError))
|
|
312
312
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
313
313
|
|
|
314
|
-
|
|
314
|
+
|
|
315
315
|
begin
|
|
316
316
|
http_response = T.must(connection).post(url) do |req|
|
|
317
317
|
req.body = body
|
|
@@ -348,13 +348,13 @@ module OpenApiSDK
|
|
|
348
348
|
response: http_response
|
|
349
349
|
)
|
|
350
350
|
end
|
|
351
|
-
|
|
351
|
+
|
|
352
352
|
if http_response.nil?
|
|
353
353
|
raise error if !error.nil?
|
|
354
354
|
raise 'no response'
|
|
355
355
|
end
|
|
356
356
|
end
|
|
357
|
-
|
|
357
|
+
|
|
358
358
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
359
359
|
if Utils.match_status_code(http_response.status, ['201'])
|
|
360
360
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -532,7 +532,7 @@ module OpenApiSDK
|
|
|
532
532
|
|
|
533
533
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
534
534
|
timeout ||= @sdk_configuration.timeout
|
|
535
|
-
|
|
535
|
+
|
|
536
536
|
|
|
537
537
|
connection = @sdk_configuration.client
|
|
538
538
|
|
|
@@ -547,7 +547,7 @@ module OpenApiSDK
|
|
|
547
547
|
error = T.let(nil, T.nilable(StandardError))
|
|
548
548
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
549
549
|
|
|
550
|
-
|
|
550
|
+
|
|
551
551
|
begin
|
|
552
552
|
http_response = T.must(connection).delete(url) do |req|
|
|
553
553
|
req.headers.merge!(headers)
|
|
@@ -583,13 +583,13 @@ module OpenApiSDK
|
|
|
583
583
|
response: http_response
|
|
584
584
|
)
|
|
585
585
|
end
|
|
586
|
-
|
|
586
|
+
|
|
587
587
|
if http_response.nil?
|
|
588
588
|
raise error if !error.nil?
|
|
589
589
|
raise 'no response'
|
|
590
590
|
end
|
|
591
591
|
end
|
|
592
|
-
|
|
592
|
+
|
|
593
593
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
594
594
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
595
595
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -778,7 +778,7 @@ module OpenApiSDK
|
|
|
778
778
|
|
|
779
779
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
780
780
|
timeout ||= @sdk_configuration.timeout
|
|
781
|
-
|
|
781
|
+
|
|
782
782
|
|
|
783
783
|
connection = @sdk_configuration.client
|
|
784
784
|
|
|
@@ -793,7 +793,7 @@ module OpenApiSDK
|
|
|
793
793
|
error = T.let(nil, T.nilable(StandardError))
|
|
794
794
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
795
795
|
|
|
796
|
-
|
|
796
|
+
|
|
797
797
|
begin
|
|
798
798
|
http_response = T.must(connection).patch(url) do |req|
|
|
799
799
|
req.body = body
|
|
@@ -830,13 +830,13 @@ module OpenApiSDK
|
|
|
830
830
|
response: http_response
|
|
831
831
|
)
|
|
832
832
|
end
|
|
833
|
-
|
|
833
|
+
|
|
834
834
|
if http_response.nil?
|
|
835
835
|
raise error if !error.nil?
|
|
836
836
|
raise 'no response'
|
|
837
837
|
end
|
|
838
838
|
end
|
|
839
|
-
|
|
839
|
+
|
|
840
840
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
841
841
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
842
842
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/open_api_sdk/track.rb
CHANGED
|
@@ -67,7 +67,7 @@ module OpenApiSDK
|
|
|
67
67
|
|
|
68
68
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
69
69
|
timeout ||= @sdk_configuration.timeout
|
|
70
|
-
|
|
70
|
+
|
|
71
71
|
|
|
72
72
|
connection = @sdk_configuration.client
|
|
73
73
|
|
|
@@ -82,7 +82,7 @@ module OpenApiSDK
|
|
|
82
82
|
error = T.let(nil, T.nilable(StandardError))
|
|
83
83
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
|
|
86
86
|
begin
|
|
87
87
|
http_response = T.must(connection).post(url) do |req|
|
|
88
88
|
req.body = body
|
|
@@ -119,13 +119,13 @@ module OpenApiSDK
|
|
|
119
119
|
response: http_response
|
|
120
120
|
)
|
|
121
121
|
end
|
|
122
|
-
|
|
122
|
+
|
|
123
123
|
if http_response.nil?
|
|
124
124
|
raise error if !error.nil?
|
|
125
125
|
raise 'no response'
|
|
126
126
|
end
|
|
127
127
|
end
|
|
128
|
-
|
|
128
|
+
|
|
129
129
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
130
130
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
131
131
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -305,7 +305,7 @@ module OpenApiSDK
|
|
|
305
305
|
|
|
306
306
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
307
307
|
timeout ||= @sdk_configuration.timeout
|
|
308
|
-
|
|
308
|
+
|
|
309
309
|
|
|
310
310
|
connection = @sdk_configuration.client
|
|
311
311
|
|
|
@@ -320,7 +320,7 @@ module OpenApiSDK
|
|
|
320
320
|
error = T.let(nil, T.nilable(StandardError))
|
|
321
321
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
322
322
|
|
|
323
|
-
|
|
323
|
+
|
|
324
324
|
begin
|
|
325
325
|
http_response = T.must(connection).post(url) do |req|
|
|
326
326
|
req.body = body
|
|
@@ -357,13 +357,13 @@ module OpenApiSDK
|
|
|
357
357
|
response: http_response
|
|
358
358
|
)
|
|
359
359
|
end
|
|
360
|
-
|
|
360
|
+
|
|
361
361
|
if http_response.nil?
|
|
362
362
|
raise error if !error.nil?
|
|
363
363
|
raise 'no response'
|
|
364
364
|
end
|
|
365
365
|
end
|
|
366
|
-
|
|
366
|
+
|
|
367
367
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
368
368
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
369
369
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -80,12 +80,15 @@ module OpenApiSDK
|
|
|
80
80
|
if @strategy == 'backoff' && @backoff
|
|
81
81
|
retry_options[:backoff_factor] = @backoff.exponent unless @backoff.exponent.nil?
|
|
82
82
|
retry_options[:interval] = (@backoff.initial_interval.to_f / 1000) unless @backoff.initial_interval.nil?
|
|
83
|
-
retry_options[:max_interval] = @backoff.max_interval unless @backoff.max_interval.nil?
|
|
83
|
+
retry_options[:max_interval] = (@backoff.max_interval.to_f / 1000) unless @backoff.max_interval.nil?
|
|
84
84
|
|
|
85
85
|
unless @backoff.max_elapsed_time.nil?
|
|
86
86
|
stop_time = initial_time + (@backoff.max_elapsed_time.to_f / 1000)
|
|
87
87
|
retry_options[:retry_if] = ->(_env, _exc) { Time.now < stop_time }
|
|
88
88
|
end
|
|
89
|
+
|
|
90
|
+
retry_options[:rate_limit_retry_header] = 'retry-after-ms'
|
|
91
|
+
retry_options[:header_parser_block] = ->(value) { value.to_f / 1000 }
|
|
89
92
|
end
|
|
90
93
|
|
|
91
94
|
retry_options
|
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.12.
|
|
4
|
+
version: 0.12.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dub
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -36,14 +36,14 @@ dependencies:
|
|
|
36
36
|
requirements:
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 2.14.
|
|
39
|
+
version: 2.14.3
|
|
40
40
|
type: :runtime
|
|
41
41
|
prerelease: false
|
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 2.14.
|
|
46
|
+
version: 2.14.3
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: faraday-multipart
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -744,6 +744,8 @@ files:
|
|
|
744
744
|
- lib/open_api_sdk/models/operations/partner.rbi
|
|
745
745
|
- lib/open_api_sdk/models/operations/paymentprocessor.rb
|
|
746
746
|
- lib/open_api_sdk/models/operations/paymentprocessor.rbi
|
|
747
|
+
- lib/open_api_sdk/models/operations/prices.rb
|
|
748
|
+
- lib/open_api_sdk/models/operations/prices.rbi
|
|
747
749
|
- lib/open_api_sdk/models/operations/queryparam_event.rb
|
|
748
750
|
- lib/open_api_sdk/models/operations/queryparam_event.rbi
|
|
749
751
|
- lib/open_api_sdk/models/operations/queryparam_groupby.rb
|