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
|
@@ -20,6 +20,8 @@ module OpenApiSDK
|
|
|
20
20
|
field :tenant_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
|
21
21
|
# Filter the list of payouts by invoice ID (the unique ID of the invoice you receive for each batch payout you process on Dub). Pending payouts will not have an invoice ID.
|
|
22
22
|
field :invoice_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'invoiceId', 'style': 'form', 'explode': true } }
|
|
23
|
+
# Filter the list of payouts by the associated partner group. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `group_abc`, `group_abc,group_xyz`, `-group_abc`.
|
|
24
|
+
field :group_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'groupId', 'style': 'form', 'explode': true } }
|
|
23
25
|
# The page number for pagination.
|
|
24
26
|
field :page, Crystalline::Nilable.new(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
25
27
|
# The field to sort the list of payouts by.
|
|
@@ -29,12 +31,13 @@ module OpenApiSDK
|
|
|
29
31
|
# The number of items per page.
|
|
30
32
|
field :page_size, Crystalline::Nilable.new(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
|
|
31
33
|
|
|
32
|
-
sig { params(status: T.nilable(Models::Operations::ListPayoutsQueryParamStatus), partner_id: T.nilable(::String), tenant_id: T.nilable(::String), invoice_id: T.nilable(::String), page: T.nilable(::Float), sort_by: T.nilable(Models::Operations::ListPayoutsQueryParamSortBy), sort_order: T.nilable(Models::Operations::ListPayoutsQueryParamSortOrder), page_size: T.nilable(::Float)).void }
|
|
33
|
-
def initialize(status: nil, partner_id: nil, tenant_id: nil, invoice_id: nil, page: nil, sort_by: Models::Operations::ListPayoutsQueryParamSortBy::AMOUNT, sort_order: Models::Operations::ListPayoutsQueryParamSortOrder::DESC, page_size: 100.0)
|
|
34
|
+
sig { params(status: T.nilable(Models::Operations::ListPayoutsQueryParamStatus), partner_id: T.nilable(::String), tenant_id: T.nilable(::String), invoice_id: T.nilable(::String), group_id: T.nilable(::String), page: T.nilable(::Float), sort_by: T.nilable(Models::Operations::ListPayoutsQueryParamSortBy), sort_order: T.nilable(Models::Operations::ListPayoutsQueryParamSortOrder), page_size: T.nilable(::Float)).void }
|
|
35
|
+
def initialize(status: nil, partner_id: nil, tenant_id: nil, invoice_id: nil, group_id: nil, page: nil, sort_by: Models::Operations::ListPayoutsQueryParamSortBy::AMOUNT, sort_order: Models::Operations::ListPayoutsQueryParamSortOrder::DESC, page_size: 100.0)
|
|
34
36
|
@status = status
|
|
35
37
|
@partner_id = partner_id
|
|
36
38
|
@tenant_id = tenant_id
|
|
37
39
|
@invoice_id = invoice_id
|
|
40
|
+
@group_id = group_id
|
|
38
41
|
@page = page
|
|
39
42
|
@sort_by = sort_by
|
|
40
43
|
@sort_order = sort_order
|
|
@@ -48,6 +51,7 @@ module OpenApiSDK
|
|
|
48
51
|
return false unless @partner_id == other.partner_id
|
|
49
52
|
return false unless @tenant_id == other.tenant_id
|
|
50
53
|
return false unless @invoice_id == other.invoice_id
|
|
54
|
+
return false unless @group_id == other.group_id
|
|
51
55
|
return false unless @page == other.page
|
|
52
56
|
return false unless @sort_by == other.sort_by
|
|
53
57
|
return false unless @sort_order == other.sort_order
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
# Price details for the domain. Will be null if the domain is not available.
|
|
11
|
+
class Prices
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# The domain's registration price in USD cents.
|
|
16
|
+
field :registration, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('registration'), required: true } }
|
|
17
|
+
# The domain's renewal price in USD cents.
|
|
18
|
+
field :renewal, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('renewal'), required: true } }
|
|
19
|
+
|
|
20
|
+
sig { params(registration: T.nilable(::Float), renewal: T.nilable(::Float)).void }
|
|
21
|
+
def initialize(registration: nil, renewal: nil)
|
|
22
|
+
@registration = registration
|
|
23
|
+
@renewal = renewal
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @registration == other.registration
|
|
30
|
+
return false unless @renewal == other.renewal
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class OpenApiSDK::Models::Operations::Prices
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class OpenApiSDK::Models::Operations::Prices
|
|
11
|
+
def registration(); end
|
|
12
|
+
def registration=(str_); end
|
|
13
|
+
def renewal(); end
|
|
14
|
+
def renewal=(str_); end
|
|
15
|
+
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
|
|
@@ -222,6 +222,7 @@ module OpenApiSDK
|
|
|
222
222
|
autoload :Order, 'open_api_sdk/models/operations/order.rb'
|
|
223
223
|
autoload :Partner, 'open_api_sdk/models/operations/partner.rb'
|
|
224
224
|
autoload :PaymentProcessor, 'open_api_sdk/models/operations/paymentprocessor.rb'
|
|
225
|
+
autoload :Prices, 'open_api_sdk/models/operations/prices.rb'
|
|
225
226
|
autoload :QueryParamEvent, 'open_api_sdk/models/operations/queryparam_event.rb'
|
|
226
227
|
autoload :QueryParamGroupBy, 'open_api_sdk/models/operations/queryparam_groupby.rb'
|
|
227
228
|
autoload :QueryParamInterval, 'open_api_sdk/models/operations/queryparam_interval.rb'
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
module OpenApiSDK
|
|
8
8
|
module Models
|
|
9
9
|
module Shared
|
|
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')
|
|
@@ -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
|
|
@@ -24,11 +24,11 @@ module OpenApiSDK
|
|
|
24
24
|
field :updated_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('updatedAt'), required: true } }
|
|
25
25
|
# The description of the folder.
|
|
26
26
|
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description'), required: true } }
|
|
27
|
-
# The access level
|
|
27
|
+
# 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.
|
|
28
28
|
field :access_level, Crystalline::Nilable.new(Models::Shared::AccessLevel), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('accessLevel'), 'decoder': ::OpenApiSDK::Utils.enum_from_string(Models::Shared::AccessLevel, true) } }
|
|
29
29
|
|
|
30
30
|
sig { params(id: ::String, name: ::String, type: Models::Shared::Type, created_at: ::String, updated_at: ::String, description: T.nilable(::String), access_level: T.nilable(Models::Shared::AccessLevel)).void }
|
|
31
|
-
def initialize(id:, name:, type:, created_at:, updated_at:, description: nil, access_level:
|
|
31
|
+
def initialize(id:, name:, type:, created_at:, updated_at:, description: nil, access_level: Models::Shared::AccessLevel::WRITE)
|
|
32
32
|
@id = id
|
|
33
33
|
@name = name
|
|
34
34
|
@type = type
|
|
@@ -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
|
|
@@ -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')
|
|
@@ -297,7 +297,7 @@ module OpenApiSDK
|
|
|
297
297
|
|
|
298
298
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
299
299
|
timeout ||= @sdk_configuration.timeout
|
|
300
|
-
|
|
300
|
+
|
|
301
301
|
|
|
302
302
|
connection = @sdk_configuration.client
|
|
303
303
|
|
|
@@ -312,7 +312,7 @@ module OpenApiSDK
|
|
|
312
312
|
error = T.let(nil, T.nilable(StandardError))
|
|
313
313
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
314
314
|
|
|
315
|
-
|
|
315
|
+
|
|
316
316
|
begin
|
|
317
317
|
http_response = T.must(connection).post(url) do |req|
|
|
318
318
|
req.body = body
|
|
@@ -349,13 +349,13 @@ module OpenApiSDK
|
|
|
349
349
|
response: http_response
|
|
350
350
|
)
|
|
351
351
|
end
|
|
352
|
-
|
|
352
|
+
|
|
353
353
|
if http_response.nil?
|
|
354
354
|
raise error if !error.nil?
|
|
355
355
|
raise 'no response'
|
|
356
356
|
end
|
|
357
357
|
end
|
|
358
|
-
|
|
358
|
+
|
|
359
359
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
360
360
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
361
361
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -536,7 +536,7 @@ module OpenApiSDK
|
|
|
536
536
|
|
|
537
537
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
538
538
|
timeout ||= @sdk_configuration.timeout
|
|
539
|
-
|
|
539
|
+
|
|
540
540
|
|
|
541
541
|
connection = @sdk_configuration.client
|
|
542
542
|
|
|
@@ -551,7 +551,7 @@ module OpenApiSDK
|
|
|
551
551
|
error = T.let(nil, T.nilable(StandardError))
|
|
552
552
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
553
553
|
|
|
554
|
-
|
|
554
|
+
|
|
555
555
|
begin
|
|
556
556
|
http_response = T.must(connection).post(url) do |req|
|
|
557
557
|
req.body = body
|
|
@@ -588,13 +588,13 @@ module OpenApiSDK
|
|
|
588
588
|
response: http_response
|
|
589
589
|
)
|
|
590
590
|
end
|
|
591
|
-
|
|
591
|
+
|
|
592
592
|
if http_response.nil?
|
|
593
593
|
raise error if !error.nil?
|
|
594
594
|
raise 'no response'
|
|
595
595
|
end
|
|
596
596
|
end
|
|
597
|
-
|
|
597
|
+
|
|
598
598
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
599
599
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
600
600
|
if Utils.match_content_type(content_type, 'application/json')
|