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
data/lib/open_api_sdk/folders.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/links.rb
CHANGED
|
@@ -59,7 +59,7 @@ module OpenApiSDK
|
|
|
59
59
|
|
|
60
60
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
61
61
|
timeout ||= @sdk_configuration.timeout
|
|
62
|
-
|
|
62
|
+
|
|
63
63
|
|
|
64
64
|
connection = @sdk_configuration.client
|
|
65
65
|
|
|
@@ -74,7 +74,7 @@ module OpenApiSDK
|
|
|
74
74
|
error = T.let(nil, T.nilable(StandardError))
|
|
75
75
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
begin
|
|
79
79
|
http_response = T.must(connection).get(url) do |req|
|
|
80
80
|
req.headers.merge!(headers)
|
|
@@ -111,13 +111,13 @@ module OpenApiSDK
|
|
|
111
111
|
response: http_response
|
|
112
112
|
)
|
|
113
113
|
end
|
|
114
|
-
|
|
114
|
+
|
|
115
115
|
if http_response.nil?
|
|
116
116
|
raise error if !error.nil?
|
|
117
117
|
raise 'no response'
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
|
-
|
|
120
|
+
|
|
121
121
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
122
122
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
123
123
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -342,7 +342,7 @@ module OpenApiSDK
|
|
|
342
342
|
|
|
343
343
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
344
344
|
timeout ||= @sdk_configuration.timeout
|
|
345
|
-
|
|
345
|
+
|
|
346
346
|
|
|
347
347
|
connection = @sdk_configuration.client
|
|
348
348
|
|
|
@@ -357,7 +357,7 @@ module OpenApiSDK
|
|
|
357
357
|
error = T.let(nil, T.nilable(StandardError))
|
|
358
358
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
359
359
|
|
|
360
|
-
|
|
360
|
+
|
|
361
361
|
begin
|
|
362
362
|
http_response = T.must(connection).post(url) do |req|
|
|
363
363
|
req.body = body
|
|
@@ -394,13 +394,13 @@ module OpenApiSDK
|
|
|
394
394
|
response: http_response
|
|
395
395
|
)
|
|
396
396
|
end
|
|
397
|
-
|
|
397
|
+
|
|
398
398
|
if http_response.nil?
|
|
399
399
|
raise error if !error.nil?
|
|
400
400
|
raise 'no response'
|
|
401
401
|
end
|
|
402
402
|
end
|
|
403
|
-
|
|
403
|
+
|
|
404
404
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
405
405
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
406
406
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -571,7 +571,7 @@ module OpenApiSDK
|
|
|
571
571
|
|
|
572
572
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
573
573
|
timeout ||= @sdk_configuration.timeout
|
|
574
|
-
|
|
574
|
+
|
|
575
575
|
|
|
576
576
|
connection = @sdk_configuration.client
|
|
577
577
|
|
|
@@ -586,7 +586,7 @@ module OpenApiSDK
|
|
|
586
586
|
error = T.let(nil, T.nilable(StandardError))
|
|
587
587
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
588
588
|
|
|
589
|
-
|
|
589
|
+
|
|
590
590
|
begin
|
|
591
591
|
http_response = T.must(connection).get(url) do |req|
|
|
592
592
|
req.headers.merge!(headers)
|
|
@@ -623,13 +623,13 @@ module OpenApiSDK
|
|
|
623
623
|
response: http_response
|
|
624
624
|
)
|
|
625
625
|
end
|
|
626
|
-
|
|
626
|
+
|
|
627
627
|
if http_response.nil?
|
|
628
628
|
raise error if !error.nil?
|
|
629
629
|
raise 'no response'
|
|
630
630
|
end
|
|
631
631
|
end
|
|
632
|
-
|
|
632
|
+
|
|
633
633
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
634
634
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
635
635
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -800,7 +800,7 @@ module OpenApiSDK
|
|
|
800
800
|
|
|
801
801
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
802
802
|
timeout ||= @sdk_configuration.timeout
|
|
803
|
-
|
|
803
|
+
|
|
804
804
|
|
|
805
805
|
connection = @sdk_configuration.client
|
|
806
806
|
|
|
@@ -815,7 +815,7 @@ module OpenApiSDK
|
|
|
815
815
|
error = T.let(nil, T.nilable(StandardError))
|
|
816
816
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
817
817
|
|
|
818
|
-
|
|
818
|
+
|
|
819
819
|
begin
|
|
820
820
|
http_response = T.must(connection).get(url) do |req|
|
|
821
821
|
req.headers.merge!(headers)
|
|
@@ -852,13 +852,13 @@ module OpenApiSDK
|
|
|
852
852
|
response: http_response
|
|
853
853
|
)
|
|
854
854
|
end
|
|
855
|
-
|
|
855
|
+
|
|
856
856
|
if http_response.nil?
|
|
857
857
|
raise error if !error.nil?
|
|
858
858
|
raise 'no response'
|
|
859
859
|
end
|
|
860
860
|
end
|
|
861
|
-
|
|
861
|
+
|
|
862
862
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
863
863
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
864
864
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1036,7 +1036,7 @@ module OpenApiSDK
|
|
|
1036
1036
|
|
|
1037
1037
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1038
1038
|
timeout ||= @sdk_configuration.timeout
|
|
1039
|
-
|
|
1039
|
+
|
|
1040
1040
|
|
|
1041
1041
|
connection = @sdk_configuration.client
|
|
1042
1042
|
|
|
@@ -1051,7 +1051,7 @@ module OpenApiSDK
|
|
|
1051
1051
|
error = T.let(nil, T.nilable(StandardError))
|
|
1052
1052
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1053
1053
|
|
|
1054
|
-
|
|
1054
|
+
|
|
1055
1055
|
begin
|
|
1056
1056
|
http_response = T.must(connection).delete(url) do |req|
|
|
1057
1057
|
req.headers.merge!(headers)
|
|
@@ -1087,13 +1087,13 @@ module OpenApiSDK
|
|
|
1087
1087
|
response: http_response
|
|
1088
1088
|
)
|
|
1089
1089
|
end
|
|
1090
|
-
|
|
1090
|
+
|
|
1091
1091
|
if http_response.nil?
|
|
1092
1092
|
raise error if !error.nil?
|
|
1093
1093
|
raise 'no response'
|
|
1094
1094
|
end
|
|
1095
1095
|
end
|
|
1096
|
-
|
|
1096
|
+
|
|
1097
1097
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1098
1098
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1099
1099
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1282,7 +1282,7 @@ module OpenApiSDK
|
|
|
1282
1282
|
|
|
1283
1283
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1284
1284
|
timeout ||= @sdk_configuration.timeout
|
|
1285
|
-
|
|
1285
|
+
|
|
1286
1286
|
|
|
1287
1287
|
connection = @sdk_configuration.client
|
|
1288
1288
|
|
|
@@ -1297,7 +1297,7 @@ module OpenApiSDK
|
|
|
1297
1297
|
error = T.let(nil, T.nilable(StandardError))
|
|
1298
1298
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1299
1299
|
|
|
1300
|
-
|
|
1300
|
+
|
|
1301
1301
|
begin
|
|
1302
1302
|
http_response = T.must(connection).patch(url) do |req|
|
|
1303
1303
|
req.body = body
|
|
@@ -1334,13 +1334,13 @@ module OpenApiSDK
|
|
|
1334
1334
|
response: http_response
|
|
1335
1335
|
)
|
|
1336
1336
|
end
|
|
1337
|
-
|
|
1337
|
+
|
|
1338
1338
|
if http_response.nil?
|
|
1339
1339
|
raise error if !error.nil?
|
|
1340
1340
|
raise 'no response'
|
|
1341
1341
|
end
|
|
1342
1342
|
end
|
|
1343
|
-
|
|
1343
|
+
|
|
1344
1344
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1345
1345
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1346
1346
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1520,7 +1520,7 @@ module OpenApiSDK
|
|
|
1520
1520
|
|
|
1521
1521
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1522
1522
|
timeout ||= @sdk_configuration.timeout
|
|
1523
|
-
|
|
1523
|
+
|
|
1524
1524
|
|
|
1525
1525
|
connection = @sdk_configuration.client
|
|
1526
1526
|
|
|
@@ -1535,7 +1535,7 @@ module OpenApiSDK
|
|
|
1535
1535
|
error = T.let(nil, T.nilable(StandardError))
|
|
1536
1536
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1537
1537
|
|
|
1538
|
-
|
|
1538
|
+
|
|
1539
1539
|
begin
|
|
1540
1540
|
http_response = T.must(connection).post(url) do |req|
|
|
1541
1541
|
req.body = body
|
|
@@ -1572,13 +1572,13 @@ module OpenApiSDK
|
|
|
1572
1572
|
response: http_response
|
|
1573
1573
|
)
|
|
1574
1574
|
end
|
|
1575
|
-
|
|
1575
|
+
|
|
1576
1576
|
if http_response.nil?
|
|
1577
1577
|
raise error if !error.nil?
|
|
1578
1578
|
raise 'no response'
|
|
1579
1579
|
end
|
|
1580
1580
|
end
|
|
1581
|
-
|
|
1581
|
+
|
|
1582
1582
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1583
1583
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1584
1584
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1749,7 +1749,7 @@ module OpenApiSDK
|
|
|
1749
1749
|
|
|
1750
1750
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1751
1751
|
timeout ||= @sdk_configuration.timeout
|
|
1752
|
-
|
|
1752
|
+
|
|
1753
1753
|
|
|
1754
1754
|
connection = @sdk_configuration.client
|
|
1755
1755
|
|
|
@@ -1764,7 +1764,7 @@ module OpenApiSDK
|
|
|
1764
1764
|
error = T.let(nil, T.nilable(StandardError))
|
|
1765
1765
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1766
1766
|
|
|
1767
|
-
|
|
1767
|
+
|
|
1768
1768
|
begin
|
|
1769
1769
|
http_response = T.must(connection).delete(url) do |req|
|
|
1770
1770
|
req.headers.merge!(headers)
|
|
@@ -1801,13 +1801,13 @@ module OpenApiSDK
|
|
|
1801
1801
|
response: http_response
|
|
1802
1802
|
)
|
|
1803
1803
|
end
|
|
1804
|
-
|
|
1804
|
+
|
|
1805
1805
|
if http_response.nil?
|
|
1806
1806
|
raise error if !error.nil?
|
|
1807
1807
|
raise 'no response'
|
|
1808
1808
|
end
|
|
1809
1809
|
end
|
|
1810
|
-
|
|
1810
|
+
|
|
1811
1811
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1812
1812
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1813
1813
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1987,7 +1987,7 @@ module OpenApiSDK
|
|
|
1987
1987
|
|
|
1988
1988
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1989
1989
|
timeout ||= @sdk_configuration.timeout
|
|
1990
|
-
|
|
1990
|
+
|
|
1991
1991
|
|
|
1992
1992
|
connection = @sdk_configuration.client
|
|
1993
1993
|
|
|
@@ -2002,7 +2002,7 @@ module OpenApiSDK
|
|
|
2002
2002
|
error = T.let(nil, T.nilable(StandardError))
|
|
2003
2003
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
2004
2004
|
|
|
2005
|
-
|
|
2005
|
+
|
|
2006
2006
|
begin
|
|
2007
2007
|
http_response = T.must(connection).patch(url) do |req|
|
|
2008
2008
|
req.body = body
|
|
@@ -2039,13 +2039,13 @@ module OpenApiSDK
|
|
|
2039
2039
|
response: http_response
|
|
2040
2040
|
)
|
|
2041
2041
|
end
|
|
2042
|
-
|
|
2042
|
+
|
|
2043
2043
|
if http_response.nil?
|
|
2044
2044
|
raise error if !error.nil?
|
|
2045
2045
|
raise 'no response'
|
|
2046
2046
|
end
|
|
2047
2047
|
end
|
|
2048
|
-
|
|
2048
|
+
|
|
2049
2049
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
2050
2050
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
2051
2051
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -2225,7 +2225,7 @@ module OpenApiSDK
|
|
|
2225
2225
|
|
|
2226
2226
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
2227
2227
|
timeout ||= @sdk_configuration.timeout
|
|
2228
|
-
|
|
2228
|
+
|
|
2229
2229
|
|
|
2230
2230
|
connection = @sdk_configuration.client
|
|
2231
2231
|
|
|
@@ -2240,7 +2240,7 @@ module OpenApiSDK
|
|
|
2240
2240
|
error = T.let(nil, T.nilable(StandardError))
|
|
2241
2241
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
2242
2242
|
|
|
2243
|
-
|
|
2243
|
+
|
|
2244
2244
|
begin
|
|
2245
2245
|
http_response = T.must(connection).put(url) do |req|
|
|
2246
2246
|
req.body = body
|
|
@@ -2277,13 +2277,13 @@ module OpenApiSDK
|
|
|
2277
2277
|
response: http_response
|
|
2278
2278
|
)
|
|
2279
2279
|
end
|
|
2280
|
-
|
|
2280
|
+
|
|
2281
2281
|
if http_response.nil?
|
|
2282
2282
|
raise error if !error.nil?
|
|
2283
2283
|
raise 'no response'
|
|
2284
2284
|
end
|
|
2285
2285
|
end
|
|
2286
|
-
|
|
2286
|
+
|
|
2287
2287
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
2288
2288
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
2289
2289
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
module OpenApiSDK
|
|
8
8
|
module Models
|
|
9
9
|
module Operations
|
|
10
|
-
# AccessLevel - The access level
|
|
10
|
+
# AccessLevel - The workspace-level access level settings for the folder. Default is `write` which allows full access to the folder for all team members. The other options are `read` (view-only access) and `null` (no access) and are only available on Business plans and above.
|
|
11
11
|
class AccessLevel < T::Enum
|
|
12
12
|
enums do
|
|
13
13
|
WRITE = new('write')
|
|
@@ -16,17 +16,22 @@ module OpenApiSDK
|
|
|
16
16
|
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain'), required: true } }
|
|
17
17
|
# Whether the domain is available.
|
|
18
18
|
field :available, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('available'), required: true } }
|
|
19
|
-
# The price description.
|
|
20
|
-
field :price, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('price'), required: true } }
|
|
21
19
|
# Whether the domain is a premium domain.
|
|
22
20
|
field :premium, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('premium'), required: true } }
|
|
21
|
+
# Price details for the domain. Will be null if the domain is not available.
|
|
22
|
+
field :prices, Crystalline::Nilable.new(Models::Operations::Prices), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('prices'), required: true } }
|
|
23
|
+
# Deprecated: Use `prices` instead.
|
|
24
|
+
#
|
|
25
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
|
+
field :price, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('price'), required: true } }
|
|
23
27
|
|
|
24
|
-
sig { params(domain: ::String, available: T::Boolean,
|
|
25
|
-
def initialize(domain:, available:,
|
|
28
|
+
sig { params(domain: ::String, available: T::Boolean, premium: T.nilable(T::Boolean), prices: T.nilable(Models::Operations::Prices), price: T.nilable(::String)).void }
|
|
29
|
+
def initialize(domain:, available:, premium: nil, prices: nil, price: nil)
|
|
26
30
|
@domain = domain
|
|
27
31
|
@available = available
|
|
28
|
-
@price = price
|
|
29
32
|
@premium = premium
|
|
33
|
+
@prices = prices
|
|
34
|
+
@price = price
|
|
30
35
|
end
|
|
31
36
|
|
|
32
37
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -34,8 +39,9 @@ module OpenApiSDK
|
|
|
34
39
|
return false unless other.is_a? self.class
|
|
35
40
|
return false unless @domain == other.domain
|
|
36
41
|
return false unless @available == other.available
|
|
37
|
-
return false unless @price == other.price
|
|
38
42
|
return false unless @premium == other.premium
|
|
43
|
+
return false unless @prices == other.prices
|
|
44
|
+
return false unless @price == other.price
|
|
39
45
|
true
|
|
40
46
|
end
|
|
41
47
|
end
|
|
@@ -12,8 +12,10 @@ class OpenApiSDK::Models::Operations::CheckDomainStatusResponseBody
|
|
|
12
12
|
def domain=(str_); end
|
|
13
13
|
def available(); end
|
|
14
14
|
def available=(str_); end
|
|
15
|
-
def price(); end
|
|
16
|
-
def price=(str_); end
|
|
17
15
|
def premium(); end
|
|
18
16
|
def premium=(str_); end
|
|
17
|
+
def prices(); end
|
|
18
|
+
def prices=(str_); end
|
|
19
|
+
def price(); end
|
|
20
|
+
def price=(str_); end
|
|
19
21
|
end
|
|
@@ -16,11 +16,11 @@ module OpenApiSDK
|
|
|
16
16
|
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name'), required: true } }
|
|
17
17
|
# The description of the folder.
|
|
18
18
|
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
|
19
|
-
# The access level
|
|
19
|
+
# The workspace-level access level settings for the folder. Default is `write` which allows full access to the folder for all team members. The other options are `read` (view-only access) and `null` (no access) and are only available on Business plans and above.
|
|
20
20
|
field :access_level, Crystalline::Nilable.new(Models::Operations::AccessLevel), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('accessLevel'), 'decoder': ::OpenApiSDK::Utils.enum_from_string(Models::Operations::AccessLevel, true) } }
|
|
21
21
|
|
|
22
22
|
sig { params(name: ::String, description: T.nilable(::String), access_level: T.nilable(Models::Operations::AccessLevel)).void }
|
|
23
|
-
def initialize(name:, description: nil, access_level:
|
|
23
|
+
def initialize(name:, description: nil, access_level: Models::Operations::AccessLevel::WRITE)
|
|
24
24
|
@name = name
|
|
25
25
|
@description = description
|
|
26
26
|
@access_level = access_level
|
|
@@ -41,10 +41,12 @@ module OpenApiSDK
|
|
|
41
41
|
|
|
42
42
|
field :ip, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ip'), required: true } }
|
|
43
43
|
|
|
44
|
+
field :ua, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ua') } }
|
|
45
|
+
|
|
44
46
|
field :trigger, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trigger') } }
|
|
45
47
|
|
|
46
|
-
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, trigger: T.nilable(::String)).void }
|
|
47
|
-
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, trigger: nil)
|
|
48
|
+
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, ua: T.nilable(::String), trigger: T.nilable(::String)).void }
|
|
49
|
+
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, ua: nil, trigger: nil)
|
|
48
50
|
@id = id
|
|
49
51
|
@timestamp = timestamp
|
|
50
52
|
@url = url
|
|
@@ -59,6 +61,7 @@ module OpenApiSDK
|
|
|
59
61
|
@referer_url = referer_url
|
|
60
62
|
@qr = qr
|
|
61
63
|
@ip = ip
|
|
64
|
+
@ua = ua
|
|
62
65
|
@trigger = trigger
|
|
63
66
|
end
|
|
64
67
|
|
|
@@ -79,6 +82,7 @@ module OpenApiSDK
|
|
|
79
82
|
return false unless @referer_url == other.referer_url
|
|
80
83
|
return false unless @qr == other.qr
|
|
81
84
|
return false unless @ip == other.ip
|
|
85
|
+
return false unless @ua == other.ua
|
|
82
86
|
return false unless @trigger == other.trigger
|
|
83
87
|
true
|
|
84
88
|
end
|
|
@@ -41,10 +41,12 @@ module OpenApiSDK
|
|
|
41
41
|
|
|
42
42
|
field :ip, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ip'), required: true } }
|
|
43
43
|
|
|
44
|
+
field :ua, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ua') } }
|
|
45
|
+
|
|
44
46
|
field :trigger, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trigger') } }
|
|
45
47
|
|
|
46
|
-
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, trigger: T.nilable(::String)).void }
|
|
47
|
-
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, trigger: nil)
|
|
48
|
+
sig { params(id: ::String, timestamp: ::String, url: ::String, country: ::String, city: ::String, region: ::String, continent: ::String, device: ::String, browser: ::String, os: ::String, referer: ::String, referer_url: ::String, qr: T::Boolean, ip: ::String, ua: T.nilable(::String), trigger: T.nilable(::String)).void }
|
|
49
|
+
def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, ua: nil, trigger: nil)
|
|
48
50
|
@id = id
|
|
49
51
|
@timestamp = timestamp
|
|
50
52
|
@url = url
|
|
@@ -59,6 +61,7 @@ module OpenApiSDK
|
|
|
59
61
|
@referer_url = referer_url
|
|
60
62
|
@qr = qr
|
|
61
63
|
@ip = ip
|
|
64
|
+
@ua = ua
|
|
62
65
|
@trigger = trigger
|
|
63
66
|
end
|
|
64
67
|
|
|
@@ -79,6 +82,7 @@ module OpenApiSDK
|
|
|
79
82
|
return false unless @referer_url == other.referer_url
|
|
80
83
|
return false unless @qr == other.qr
|
|
81
84
|
return false unless @ip == other.ip
|
|
85
|
+
return false unless @ua == other.ua
|
|
82
86
|
return false unless @trigger == other.trigger
|
|
83
87
|
true
|
|
84
88
|
end
|