schematichq 1.4.17 → 1.5.0
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/.fern/metadata.json +4 -4
- data/.fern/replay.lock +15 -3
- data/.fernignore +1 -0
- data/CONTRIBUTING.md +2 -2
- data/README.md +23 -0
- data/WASM_VERSION +1 -1
- data/lib/schematic/accesstokens/client.rb +1 -1
- data/lib/schematic/accounts/client.rb +21 -21
- data/lib/schematic/billing/client.rb +26 -26
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +2 -0
- data/lib/schematic/catalogs/client.rb +10 -10
- data/lib/schematic/checkout/client.rb +9 -9
- data/lib/schematic/client.rb +1 -1
- data/lib/schematic/companies/client.rb +43 -43
- data/lib/schematic/components/client.rb +8 -8
- data/lib/schematic/componentspublic/client.rb +1 -1
- data/lib/schematic/credits/client.rb +112 -47
- data/lib/schematic/credits/types/create_company_credit_grant.rb +2 -0
- data/lib/schematic/credits/types/release_credit_reservation_response.rb +13 -0
- data/lib/schematic/credits/types/reserve_credits_request_body.rb +19 -0
- data/lib/schematic/credits/types/reserve_credits_response.rb +13 -0
- data/lib/schematic/dataexports/client.rb +3 -3
- data/lib/schematic/datastream/client.rb +5 -2
- data/lib/schematic/datastream/websocket_client.rb +59 -1
- data/lib/schematic/entitlements/client.rb +25 -25
- data/lib/schematic/events/client.rb +9 -9
- data/lib/schematic/features/client.rb +57 -17
- data/lib/schematic/features/types/check_and_reserve_flag_request_body.rb +21 -0
- data/lib/schematic/features/types/check_and_reserve_flag_response.rb +13 -0
- data/lib/schematic/insights/client.rb +6 -6
- data/lib/schematic/integrationsapi/client.rb +14 -14
- data/lib/schematic/internal/multipart/multipart_form_data.rb +8 -3
- data/lib/schematic/internal/types/model.rb +14 -6
- data/lib/schematic/licenses/client.rb +3 -3
- data/lib/schematic/planbundle/client.rb +3 -3
- data/lib/schematic/plangroups/client.rb +3 -3
- data/lib/schematic/plangroups/types/create_plan_group_request_body.rb +2 -0
- data/lib/schematic/plangroups/types/update_plan_group_request_body.rb +2 -0
- data/lib/schematic/planmigrations/client.rb +11 -11
- data/lib/schematic/plans/client.rb +24 -18
- data/lib/schematic/plans/types/count_plans_params.rb +2 -0
- data/lib/schematic/plans/types/count_plans_request.rb +2 -0
- data/lib/schematic/plans/types/list_plans_params.rb +2 -0
- data/lib/schematic/plans/types/list_plans_request.rb +2 -0
- data/lib/schematic/scheduledcheckout/client.rb +4 -4
- data/lib/schematic/schematic_client.rb +4 -0
- data/lib/schematic/types/billing_arrears_anchor.rb +12 -0
- data/lib/schematic/types/billing_arrears_cadence.rb +12 -0
- data/lib/schematic/types/billing_credit_grant_response_data.rb +8 -0
- data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +12 -0
- data/lib/schematic/types/check_and_reserve_flag_response_data.rb +39 -0
- data/lib/schematic/types/checkout_data_response_data.rb +4 -0
- data/lib/schematic/types/company_plan_credit_grant_view.rb +12 -0
- data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +12 -0
- data/lib/schematic/types/credit_company_grant_view.rb +14 -0
- data/lib/schematic/types/credit_reservation_response_data.rb +25 -0
- data/lib/schematic/types/credit_usage_reason.rb +2 -0
- data/lib/schematic/types/event_body_track.rb +2 -0
- data/lib/schematic/types/event_detail_response_data.rb +2 -0
- data/lib/schematic/types/event_response_data.rb +2 -0
- data/lib/schematic/types/flag_check_reservation_response_data.rb +23 -0
- data/lib/schematic/types/get_onboarding_state_resp.rb +4 -0
- data/lib/schematic/types/issue_temporary_access_token_response_data.rb +3 -1
- data/lib/schematic/types/onboarding_requirement.rb +1 -0
- data/lib/schematic/types/onboarding_roadmap_view.rb +11 -0
- data/lib/schematic/types/plan_credit_grant_view.rb +12 -0
- data/lib/schematic/types/plan_group_detail_response_data.rb +2 -0
- data/lib/schematic/types/plan_group_response_data.rb +2 -0
- data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
- data/lib/schematic/types/rulesengine_company.rb +2 -0
- data/lib/schematic/types/rulesengine_credit_postpaid_config.rb +9 -0
- data/lib/schematic/types/slack_connect_invite_status.rb +15 -0
- data/lib/schematic/types/slack_connect_invite_view.rb +15 -0
- data/lib/schematic/types/temporary_access_token_issuer_type.rb +12 -0
- data/lib/schematic/types/temporary_access_token_response_data.rb +3 -1
- data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +12 -0
- data/lib/schematic/types/webhook_event_detail_response_data.rb +2 -0
- data/lib/schematic/types/webhook_event_response_data.rb +2 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic/webhooks/client.rb +10 -10
- data/lib/schematic.rb +15 -1
- data/reference.md +272 -15
- data/testapp/app.rb +8 -1
- metadata +17 -3
- data/lib/schematic/types/release_credit_lease_request_body.rb +0 -23
|
@@ -38,7 +38,7 @@ module Schematic
|
|
|
38
38
|
end
|
|
39
39
|
code = response.code.to_i
|
|
40
40
|
if code.between?(200, 299)
|
|
41
|
-
Schematic::Integrationsapi::Types::RunIntegrationResponse.load(response.body)
|
|
41
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::RunIntegrationResponse.load(response.body))
|
|
42
42
|
else
|
|
43
43
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
44
44
|
raise error_class.new(response.body, code: code)
|
|
@@ -97,7 +97,7 @@ module Schematic
|
|
|
97
97
|
end
|
|
98
98
|
code = response.code.to_i
|
|
99
99
|
if code.between?(200, 299)
|
|
100
|
-
Schematic::Integrationsapi::Types::ListIntegrationsResponse.load(response.body)
|
|
100
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::ListIntegrationsResponse.load(response.body))
|
|
101
101
|
else
|
|
102
102
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
103
103
|
raise error_class.new(response.body, code: code)
|
|
@@ -132,7 +132,7 @@ module Schematic
|
|
|
132
132
|
end
|
|
133
133
|
code = response.code.to_i
|
|
134
134
|
if code.between?(200, 299)
|
|
135
|
-
Schematic::Integrationsapi::Types::GetIntegrationWebhookUrlResponse.load(response.body)
|
|
135
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::GetIntegrationWebhookUrlResponse.load(response.body))
|
|
136
136
|
else
|
|
137
137
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
138
138
|
raise error_class.new(response.body, code: code)
|
|
@@ -167,7 +167,7 @@ module Schematic
|
|
|
167
167
|
end
|
|
168
168
|
code = response.code.to_i
|
|
169
169
|
if code.between?(200, 299)
|
|
170
|
-
Schematic::Integrationsapi::Types::InstallIntegrationResponse.load(response.body)
|
|
170
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::InstallIntegrationResponse.load(response.body))
|
|
171
171
|
else
|
|
172
172
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
173
173
|
raise error_class.new(response.body, code: code)
|
|
@@ -202,7 +202,7 @@ module Schematic
|
|
|
202
202
|
end
|
|
203
203
|
code = response.code.to_i
|
|
204
204
|
if code.between?(200, 299)
|
|
205
|
-
Schematic::Integrationsapi::Types::StartDataImportResponse.load(response.body)
|
|
205
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::StartDataImportResponse.load(response.body))
|
|
206
206
|
else
|
|
207
207
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
208
208
|
raise error_class.new(response.body, code: code)
|
|
@@ -235,7 +235,7 @@ module Schematic
|
|
|
235
235
|
end
|
|
236
236
|
code = response.code.to_i
|
|
237
237
|
if code.between?(200, 299)
|
|
238
|
-
Schematic::Integrationsapi::Types::LoadSampleDataSetResponse.load(response.body)
|
|
238
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::LoadSampleDataSetResponse.load(response.body))
|
|
239
239
|
else
|
|
240
240
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
241
241
|
raise error_class.new(response.body, code: code)
|
|
@@ -268,7 +268,7 @@ module Schematic
|
|
|
268
268
|
end
|
|
269
269
|
code = response.code.to_i
|
|
270
270
|
if code.between?(200, 299)
|
|
271
|
-
Schematic::Integrationsapi::Types::GetStripeSandboxClaimLinkResponse.load(response.body)
|
|
271
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::GetStripeSandboxClaimLinkResponse.load(response.body))
|
|
272
272
|
else
|
|
273
273
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
274
274
|
raise error_class.new(response.body, code: code)
|
|
@@ -301,7 +301,7 @@ module Schematic
|
|
|
301
301
|
end
|
|
302
302
|
code = response.code.to_i
|
|
303
303
|
if code.between?(200, 299)
|
|
304
|
-
Schematic::Integrationsapi::Types::GetStripeSandboxKeysResponse.load(response.body)
|
|
304
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::GetStripeSandboxKeysResponse.load(response.body))
|
|
305
305
|
else
|
|
306
306
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
307
307
|
raise error_class.new(response.body, code: code)
|
|
@@ -336,7 +336,7 @@ module Schematic
|
|
|
336
336
|
end
|
|
337
337
|
code = response.code.to_i
|
|
338
338
|
if code.between?(200, 299)
|
|
339
|
-
Schematic::Integrationsapi::Types::ClaimStripeSandboxKeysResponse.load(response.body)
|
|
339
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::ClaimStripeSandboxKeysResponse.load(response.body))
|
|
340
340
|
else
|
|
341
341
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
342
342
|
raise error_class.new(response.body, code: code)
|
|
@@ -371,7 +371,7 @@ module Schematic
|
|
|
371
371
|
end
|
|
372
372
|
code = response.code.to_i
|
|
373
373
|
if code.between?(200, 299)
|
|
374
|
-
Schematic::Integrationsapi::Types::AssumeStripeInstalledResponse.load(response.body)
|
|
374
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::AssumeStripeInstalledResponse.load(response.body))
|
|
375
375
|
else
|
|
376
376
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
377
377
|
raise error_class.new(response.body, code: code)
|
|
@@ -406,7 +406,7 @@ module Schematic
|
|
|
406
406
|
end
|
|
407
407
|
code = response.code.to_i
|
|
408
408
|
if code.between?(200, 299)
|
|
409
|
-
Schematic::Integrationsapi::Types::InstallStripeResponse.load(response.body)
|
|
409
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::InstallStripeResponse.load(response.body))
|
|
410
410
|
else
|
|
411
411
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
412
412
|
raise error_class.new(response.body, code: code)
|
|
@@ -441,7 +441,7 @@ module Schematic
|
|
|
441
441
|
end
|
|
442
442
|
code = response.code.to_i
|
|
443
443
|
if code.between?(200, 299)
|
|
444
|
-
Schematic::Integrationsapi::Types::InstallStripeClaimableSandboxResponse.load(response.body)
|
|
444
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::InstallStripeClaimableSandboxResponse.load(response.body))
|
|
445
445
|
else
|
|
446
446
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
447
447
|
raise error_class.new(response.body, code: code)
|
|
@@ -474,7 +474,7 @@ module Schematic
|
|
|
474
474
|
end
|
|
475
475
|
code = response.code.to_i
|
|
476
476
|
if code.between?(200, 299)
|
|
477
|
-
Schematic::Integrationsapi::Types::ListStripeSandboxCountriesResponse.load(response.body)
|
|
477
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::ListStripeSandboxCountriesResponse.load(response.body))
|
|
478
478
|
else
|
|
479
479
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
480
480
|
raise error_class.new(response.body, code: code)
|
|
@@ -509,7 +509,7 @@ module Schematic
|
|
|
509
509
|
end
|
|
510
510
|
code = response.code.to_i
|
|
511
511
|
if code.between?(200, 299)
|
|
512
|
-
Schematic::Integrationsapi::Types::UninstallIntegrationResponse.load(response.body)
|
|
512
|
+
(response.body.to_s.empty? ? nil : Schematic::Integrationsapi::Types::UninstallIntegrationResponse.load(response.body))
|
|
513
513
|
else
|
|
514
514
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
515
515
|
raise error_class.new(response.body, code: code)
|
|
@@ -30,13 +30,18 @@ module Schematic
|
|
|
30
30
|
# Adds a file to the multipart form data.
|
|
31
31
|
#
|
|
32
32
|
# @param name [String] The name of the form field
|
|
33
|
-
# @param file [#read]
|
|
34
|
-
# @param filename [String, nil] Optional filename (defaults to basename of path for File objects)
|
|
33
|
+
# @param file [String, #read] A path to a file on disk, or a file/readable object
|
|
34
|
+
# @param filename [String, nil] Optional filename (defaults to basename of the path for paths and File objects)
|
|
35
35
|
# @param content_type [String, nil] Optional content type (e.g. "image/png")
|
|
36
36
|
# @return [self] Returns self for chaining
|
|
37
37
|
def add_file(name:, file:, filename: nil, content_type: nil)
|
|
38
38
|
headers = content_type ? { "Content-Type" => content_type } : nil
|
|
39
|
-
|
|
39
|
+
if file.is_a?(::String)
|
|
40
|
+
filename ||= ::File.basename(file)
|
|
41
|
+
file = ::File.binread(file)
|
|
42
|
+
else
|
|
43
|
+
filename ||= filename_for(file)
|
|
44
|
+
end
|
|
40
45
|
add_part(FormDataPart.new(name:, value: file, filename:, headers:))
|
|
41
46
|
end
|
|
42
47
|
|
|
@@ -141,13 +141,21 @@ module Schematic
|
|
|
141
141
|
values = Utils.symbolize_keys(values.dup)
|
|
142
142
|
|
|
143
143
|
self.class.fields.each do |field_name, field|
|
|
144
|
-
value =
|
|
144
|
+
value = nil
|
|
145
|
+
[field.api_name.to_sym, field_name].uniq.each do |key|
|
|
146
|
+
next unless values.key?(key)
|
|
145
147
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
candidate = values.delete(key)
|
|
149
|
+
value = candidate if value.nil?
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
field_value = if !value.nil?
|
|
153
|
+
value
|
|
154
|
+
elsif field.literal?
|
|
155
|
+
field.value
|
|
156
|
+
elsif !field.default.nil?
|
|
157
|
+
field.default
|
|
158
|
+
end
|
|
151
159
|
|
|
152
160
|
@data[field_name] = Utils.coerce(field.type, field_value)
|
|
153
161
|
end
|
|
@@ -56,7 +56,7 @@ module Schematic
|
|
|
56
56
|
end
|
|
57
57
|
code = response.code.to_i
|
|
58
58
|
if code.between?(200, 299)
|
|
59
|
-
Schematic::Licenses::Types::ListLicensesResponse.load(response.body)
|
|
59
|
+
(response.body.to_s.empty? ? nil : Schematic::Licenses::Types::ListLicensesResponse.load(response.body))
|
|
60
60
|
else
|
|
61
61
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
62
62
|
raise error_class.new(response.body, code: code)
|
|
@@ -91,7 +91,7 @@ module Schematic
|
|
|
91
91
|
end
|
|
92
92
|
code = response.code.to_i
|
|
93
93
|
if code.between?(200, 299)
|
|
94
|
-
Schematic::Licenses::Types::GetSingleLicenseResponse.load(response.body)
|
|
94
|
+
(response.body.to_s.empty? ? nil : Schematic::Licenses::Types::GetSingleLicenseResponse.load(response.body))
|
|
95
95
|
else
|
|
96
96
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
97
97
|
raise error_class.new(response.body, code: code)
|
|
@@ -144,7 +144,7 @@ module Schematic
|
|
|
144
144
|
end
|
|
145
145
|
code = response.code.to_i
|
|
146
146
|
if code.between?(200, 299)
|
|
147
|
-
Schematic::Licenses::Types::CountLicensesResponse.load(response.body)
|
|
147
|
+
(response.body.to_s.empty? ? nil : Schematic::Licenses::Types::CountLicensesResponse.load(response.body))
|
|
148
148
|
else
|
|
149
149
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
150
150
|
raise error_class.new(response.body, code: code)
|
|
@@ -50,7 +50,7 @@ module Schematic
|
|
|
50
50
|
end
|
|
51
51
|
code = response.code.to_i
|
|
52
52
|
if code.between?(200, 299)
|
|
53
|
-
Schematic::Planbundle::Types::CreateCustomPlanBundleResponse.load(response.body)
|
|
53
|
+
(response.body.to_s.empty? ? nil : Schematic::Planbundle::Types::CreateCustomPlanBundleResponse.load(response.body))
|
|
54
54
|
else
|
|
55
55
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
56
56
|
raise error_class.new(response.body, code: code)
|
|
@@ -93,7 +93,7 @@ module Schematic
|
|
|
93
93
|
end
|
|
94
94
|
code = response.code.to_i
|
|
95
95
|
if code.between?(200, 299)
|
|
96
|
-
Schematic::Planbundle::Types::CreatePlanBundleResponse.load(response.body)
|
|
96
|
+
(response.body.to_s.empty? ? nil : Schematic::Planbundle::Types::CreatePlanBundleResponse.load(response.body))
|
|
97
97
|
else
|
|
98
98
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
99
99
|
raise error_class.new(response.body, code: code)
|
|
@@ -141,7 +141,7 @@ module Schematic
|
|
|
141
141
|
end
|
|
142
142
|
code = response.code.to_i
|
|
143
143
|
if code.between?(200, 299)
|
|
144
|
-
Schematic::Planbundle::Types::UpdatePlanBundleResponse.load(response.body)
|
|
144
|
+
(response.body.to_s.empty? ? nil : Schematic::Planbundle::Types::UpdatePlanBundleResponse.load(response.body))
|
|
145
145
|
else
|
|
146
146
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
147
147
|
raise error_class.new(response.body, code: code)
|
|
@@ -42,7 +42,7 @@ module Schematic
|
|
|
42
42
|
end
|
|
43
43
|
code = response.code.to_i
|
|
44
44
|
if code.between?(200, 299)
|
|
45
|
-
Schematic::Plangroups::Types::GetPlanGroupResponse.load(response.body)
|
|
45
|
+
(response.body.to_s.empty? ? nil : Schematic::Plangroups::Types::GetPlanGroupResponse.load(response.body))
|
|
46
46
|
else
|
|
47
47
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
48
48
|
raise error_class.new(response.body, code: code)
|
|
@@ -104,7 +104,7 @@ module Schematic
|
|
|
104
104
|
end
|
|
105
105
|
code = response.code.to_i
|
|
106
106
|
if code.between?(200, 299)
|
|
107
|
-
Schematic::Plangroups::Types::CreatePlanGroupResponse.load(response.body)
|
|
107
|
+
(response.body.to_s.empty? ? nil : Schematic::Plangroups::Types::CreatePlanGroupResponse.load(response.body))
|
|
108
108
|
else
|
|
109
109
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
110
110
|
raise error_class.new(response.body, code: code)
|
|
@@ -172,7 +172,7 @@ module Schematic
|
|
|
172
172
|
end
|
|
173
173
|
code = response.code.to_i
|
|
174
174
|
if code.between?(200, 299)
|
|
175
|
-
Schematic::Plangroups::Types::UpdatePlanGroupResponse.load(response.body)
|
|
175
|
+
(response.body.to_s.empty? ? nil : Schematic::Plangroups::Types::UpdatePlanGroupResponse.load(response.body))
|
|
176
176
|
else
|
|
177
177
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
178
178
|
raise error_class.new(response.body, code: code)
|
|
@@ -74,6 +74,8 @@ module Schematic
|
|
|
74
74
|
|
|
75
75
|
field :trial_days, -> { Integer }, optional: true, nullable: false
|
|
76
76
|
|
|
77
|
+
field :trial_eligibility_per_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
78
|
+
|
|
77
79
|
field :trial_expiry_plan_id, -> { String }, optional: true, nullable: false
|
|
78
80
|
|
|
79
81
|
field :trial_expiry_plan_price_id, -> { String }, optional: true, nullable: false
|
|
@@ -76,6 +76,8 @@ module Schematic
|
|
|
76
76
|
|
|
77
77
|
field :trial_days, -> { Integer }, optional: true, nullable: false
|
|
78
78
|
|
|
79
|
+
field :trial_eligibility_per_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
80
|
+
|
|
79
81
|
field :trial_expiry_plan_id, -> { String }, optional: true, nullable: false
|
|
80
82
|
|
|
81
83
|
field :trial_expiry_plan_price_id, -> { String }, optional: true, nullable: false
|
|
@@ -56,7 +56,7 @@ module Schematic
|
|
|
56
56
|
end
|
|
57
57
|
code = response.code.to_i
|
|
58
58
|
if code.between?(200, 299)
|
|
59
|
-
Schematic::Planmigrations::Types::ListCompanyMigrationsResponse.load(response.body)
|
|
59
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::ListCompanyMigrationsResponse.load(response.body))
|
|
60
60
|
else
|
|
61
61
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
62
62
|
raise error_class.new(response.body, code: code)
|
|
@@ -91,7 +91,7 @@ module Schematic
|
|
|
91
91
|
end
|
|
92
92
|
code = response.code.to_i
|
|
93
93
|
if code.between?(200, 299)
|
|
94
|
-
Schematic::Planmigrations::Types::RetryCompanyMigrationResponse.load(response.body)
|
|
94
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::RetryCompanyMigrationResponse.load(response.body))
|
|
95
95
|
else
|
|
96
96
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
97
97
|
raise error_class.new(response.body, code: code)
|
|
@@ -144,7 +144,7 @@ module Schematic
|
|
|
144
144
|
end
|
|
145
145
|
code = response.code.to_i
|
|
146
146
|
if code.between?(200, 299)
|
|
147
|
-
Schematic::Planmigrations::Types::CountCompanyMigrationsResponse.load(response.body)
|
|
147
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::CountCompanyMigrationsResponse.load(response.body))
|
|
148
148
|
else
|
|
149
149
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
150
150
|
raise error_class.new(response.body, code: code)
|
|
@@ -194,7 +194,7 @@ module Schematic
|
|
|
194
194
|
end
|
|
195
195
|
code = response.code.to_i
|
|
196
196
|
if code.between?(200, 299)
|
|
197
|
-
Schematic::Planmigrations::Types::ListMigrationsResponse.load(response.body)
|
|
197
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::ListMigrationsResponse.load(response.body))
|
|
198
198
|
else
|
|
199
199
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
200
200
|
raise error_class.new(response.body, code: code)
|
|
@@ -234,7 +234,7 @@ module Schematic
|
|
|
234
234
|
end
|
|
235
235
|
code = response.code.to_i
|
|
236
236
|
if code.between?(200, 299)
|
|
237
|
-
Schematic::Planmigrations::Types::CreateMigrationResponse.load(response.body)
|
|
237
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::CreateMigrationResponse.load(response.body))
|
|
238
238
|
else
|
|
239
239
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
240
240
|
raise error_class.new(response.body, code: code)
|
|
@@ -269,7 +269,7 @@ module Schematic
|
|
|
269
269
|
end
|
|
270
270
|
code = response.code.to_i
|
|
271
271
|
if code.between?(200, 299)
|
|
272
|
-
Schematic::Planmigrations::Types::GetMigrationResponse.load(response.body)
|
|
272
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::GetMigrationResponse.load(response.body))
|
|
273
273
|
else
|
|
274
274
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
275
275
|
raise error_class.new(response.body, code: code)
|
|
@@ -304,7 +304,7 @@ module Schematic
|
|
|
304
304
|
end
|
|
305
305
|
code = response.code.to_i
|
|
306
306
|
if code.between?(200, 299)
|
|
307
|
-
Schematic::Planmigrations::Types::CancelMigrationResponse.load(response.body)
|
|
307
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::CancelMigrationResponse.load(response.body))
|
|
308
308
|
else
|
|
309
309
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
310
310
|
raise error_class.new(response.body, code: code)
|
|
@@ -344,7 +344,7 @@ module Schematic
|
|
|
344
344
|
end
|
|
345
345
|
code = response.code.to_i
|
|
346
346
|
if code.between?(200, 299)
|
|
347
|
-
Schematic::Planmigrations::Types::CompleteMigrationNowResponse.load(response.body)
|
|
347
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::CompleteMigrationNowResponse.load(response.body))
|
|
348
348
|
else
|
|
349
349
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
350
350
|
raise error_class.new(response.body, code: code)
|
|
@@ -387,7 +387,7 @@ module Schematic
|
|
|
387
387
|
end
|
|
388
388
|
code = response.code.to_i
|
|
389
389
|
if code.between?(200, 299)
|
|
390
|
-
Schematic::Planmigrations::Types::RetryMigrationResponse.load(response.body)
|
|
390
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::RetryMigrationResponse.load(response.body))
|
|
391
391
|
else
|
|
392
392
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
393
393
|
raise error_class.new(response.body, code: code)
|
|
@@ -437,7 +437,7 @@ module Schematic
|
|
|
437
437
|
end
|
|
438
438
|
code = response.code.to_i
|
|
439
439
|
if code.between?(200, 299)
|
|
440
|
-
Schematic::Planmigrations::Types::CountMigrationsResponse.load(response.body)
|
|
440
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::CountMigrationsResponse.load(response.body))
|
|
441
441
|
else
|
|
442
442
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
443
443
|
raise error_class.new(response.body, code: code)
|
|
@@ -476,7 +476,7 @@ module Schematic
|
|
|
476
476
|
end
|
|
477
477
|
code = response.code.to_i
|
|
478
478
|
if code.between?(200, 299)
|
|
479
|
-
Schematic::Planmigrations::Types::PreviewMigrationResponse.load(response.body)
|
|
479
|
+
(response.body.to_s.empty? ? nil : Schematic::Planmigrations::Types::PreviewMigrationResponse.load(response.body))
|
|
480
480
|
else
|
|
481
481
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
482
482
|
raise error_class.new(response.body, code: code)
|
|
@@ -46,7 +46,7 @@ module Schematic
|
|
|
46
46
|
end
|
|
47
47
|
code = response.code.to_i
|
|
48
48
|
if code.between?(200, 299)
|
|
49
|
-
Schematic::Plans::Types::UpdateCompanyPlansResponse.load(response.body)
|
|
49
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::UpdateCompanyPlansResponse.load(response.body))
|
|
50
50
|
else
|
|
51
51
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
52
52
|
raise error_class.new(response.body, code: code)
|
|
@@ -105,7 +105,7 @@ module Schematic
|
|
|
105
105
|
end
|
|
106
106
|
code = response.code.to_i
|
|
107
107
|
if code.between?(200, 299)
|
|
108
|
-
Schematic::Plans::Types::ListCustomPlanBillingsResponse.load(response.body)
|
|
108
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::ListCustomPlanBillingsResponse.load(response.body))
|
|
109
109
|
else
|
|
110
110
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
111
111
|
raise error_class.new(response.body, code: code)
|
|
@@ -149,7 +149,7 @@ module Schematic
|
|
|
149
149
|
end
|
|
150
150
|
code = response.code.to_i
|
|
151
151
|
if code.between?(200, 299)
|
|
152
|
-
Schematic::Plans::Types::MarkCustomPlanBillingPaidResponse.load(response.body)
|
|
152
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::MarkCustomPlanBillingPaidResponse.load(response.body))
|
|
153
153
|
else
|
|
154
154
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
155
155
|
raise error_class.new(response.body, code: code)
|
|
@@ -192,7 +192,7 @@ module Schematic
|
|
|
192
192
|
end
|
|
193
193
|
code = response.code.to_i
|
|
194
194
|
if code.between?(200, 299)
|
|
195
|
-
Schematic::Plans::Types::RetryCustomPlanBillingResponse.load(response.body)
|
|
195
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::RetryCustomPlanBillingResponse.load(response.body))
|
|
196
196
|
else
|
|
197
197
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
198
198
|
raise error_class.new(response.body, code: code)
|
|
@@ -230,7 +230,7 @@ module Schematic
|
|
|
230
230
|
end
|
|
231
231
|
code = response.code.to_i
|
|
232
232
|
if code.between?(200, 299)
|
|
233
|
-
Schematic::Plans::Types::CreateCustomPlanResponse.load(response.body)
|
|
233
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::CreateCustomPlanResponse.load(response.body))
|
|
234
234
|
else
|
|
235
235
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
236
236
|
raise error_class.new(response.body, code: code)
|
|
@@ -247,6 +247,7 @@ module Schematic
|
|
|
247
247
|
# @option params [String, nil] :company_id
|
|
248
248
|
# @option params [Boolean, nil] :company_scoped_only
|
|
249
249
|
# @option params [Boolean, nil] :exclude_company_scoped
|
|
250
|
+
# @option params [Boolean, nil] :exclude_unused
|
|
250
251
|
# @option params [Boolean, nil] :for_fallback_plan
|
|
251
252
|
# @option params [Boolean, nil] :for_initial_plan
|
|
252
253
|
# @option params [Boolean, nil] :for_trial_expiry_plan
|
|
@@ -267,6 +268,7 @@ module Schematic
|
|
|
267
268
|
# company_id: "company_id",
|
|
268
269
|
# company_scoped_only: true,
|
|
269
270
|
# exclude_company_scoped: true,
|
|
271
|
+
# exclude_unused: true,
|
|
270
272
|
# for_fallback_plan: true,
|
|
271
273
|
# for_initial_plan: true,
|
|
272
274
|
# for_trial_expiry_plan: true,
|
|
@@ -290,6 +292,7 @@ module Schematic
|
|
|
290
292
|
query_params["company_id"] = params[:company_id] if params.key?(:company_id)
|
|
291
293
|
query_params["company_scoped_only"] = params[:company_scoped_only] if params.key?(:company_scoped_only)
|
|
292
294
|
query_params["exclude_company_scoped"] = params[:exclude_company_scoped] if params.key?(:exclude_company_scoped)
|
|
295
|
+
query_params["exclude_unused"] = params[:exclude_unused] if params.key?(:exclude_unused)
|
|
293
296
|
query_params["for_fallback_plan"] = params[:for_fallback_plan] if params.key?(:for_fallback_plan)
|
|
294
297
|
query_params["for_initial_plan"] = params[:for_initial_plan] if params.key?(:for_initial_plan)
|
|
295
298
|
query_params["for_trial_expiry_plan"] = params[:for_trial_expiry_plan] if params.key?(:for_trial_expiry_plan)
|
|
@@ -319,7 +322,7 @@ module Schematic
|
|
|
319
322
|
end
|
|
320
323
|
code = response.code.to_i
|
|
321
324
|
if code.between?(200, 299)
|
|
322
|
-
Schematic::Plans::Types::ListPlansResponse.load(response.body)
|
|
325
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::ListPlansResponse.load(response.body))
|
|
323
326
|
else
|
|
324
327
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
325
328
|
raise error_class.new(response.body, code: code)
|
|
@@ -357,7 +360,7 @@ module Schematic
|
|
|
357
360
|
end
|
|
358
361
|
code = response.code.to_i
|
|
359
362
|
if code.between?(200, 299)
|
|
360
|
-
Schematic::Plans::Types::CreatePlanResponse.load(response.body)
|
|
363
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::CreatePlanResponse.load(response.body))
|
|
361
364
|
else
|
|
362
365
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
363
366
|
raise error_class.new(response.body, code: code)
|
|
@@ -400,7 +403,7 @@ module Schematic
|
|
|
400
403
|
end
|
|
401
404
|
code = response.code.to_i
|
|
402
405
|
if code.between?(200, 299)
|
|
403
|
-
Schematic::Plans::Types::GetPlanResponse.load(response.body)
|
|
406
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::GetPlanResponse.load(response.body))
|
|
404
407
|
else
|
|
405
408
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
406
409
|
raise error_class.new(response.body, code: code)
|
|
@@ -442,7 +445,7 @@ module Schematic
|
|
|
442
445
|
end
|
|
443
446
|
code = response.code.to_i
|
|
444
447
|
if code.between?(200, 299)
|
|
445
|
-
Schematic::Plans::Types::UpdatePlanResponse.load(response.body)
|
|
448
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::UpdatePlanResponse.load(response.body))
|
|
446
449
|
else
|
|
447
450
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
448
451
|
raise error_class.new(response.body, code: code)
|
|
@@ -477,7 +480,7 @@ module Schematic
|
|
|
477
480
|
end
|
|
478
481
|
code = response.code.to_i
|
|
479
482
|
if code.between?(200, 299)
|
|
480
|
-
Schematic::Plans::Types::DeletePlanResponse.load(response.body)
|
|
483
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::DeletePlanResponse.load(response.body))
|
|
481
484
|
else
|
|
482
485
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
483
486
|
raise error_class.new(response.body, code: code)
|
|
@@ -520,7 +523,7 @@ module Schematic
|
|
|
520
523
|
end
|
|
521
524
|
code = response.code.to_i
|
|
522
525
|
if code.between?(200, 299)
|
|
523
|
-
Schematic::Plans::Types::UpsertBillingProductPlanResponse.load(response.body)
|
|
526
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::UpsertBillingProductPlanResponse.load(response.body))
|
|
524
527
|
else
|
|
525
528
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
526
529
|
raise error_class.new(response.body, code: code)
|
|
@@ -560,7 +563,7 @@ module Schematic
|
|
|
560
563
|
end
|
|
561
564
|
code = response.code.to_i
|
|
562
565
|
if code.between?(200, 299)
|
|
563
|
-
Schematic::Plans::Types::UpsertPlanForBillingProductResponse.load(response.body)
|
|
566
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::UpsertPlanForBillingProductResponse.load(response.body))
|
|
564
567
|
else
|
|
565
568
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
566
569
|
raise error_class.new(response.body, code: code)
|
|
@@ -610,7 +613,7 @@ module Schematic
|
|
|
610
613
|
end
|
|
611
614
|
code = response.code.to_i
|
|
612
615
|
if code.between?(200, 299)
|
|
613
|
-
Schematic::Plans::Types::ListBillingProductMatchCompaniesResponse.load(response.body)
|
|
616
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::ListBillingProductMatchCompaniesResponse.load(response.body))
|
|
614
617
|
else
|
|
615
618
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
616
619
|
raise error_class.new(response.body, code: code)
|
|
@@ -660,7 +663,7 @@ module Schematic
|
|
|
660
663
|
end
|
|
661
664
|
code = response.code.to_i
|
|
662
665
|
if code.between?(200, 299)
|
|
663
|
-
Schematic::Plans::Types::CountBillingProductMatchCompaniesResponse.load(response.body)
|
|
666
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::CountBillingProductMatchCompaniesResponse.load(response.body))
|
|
664
667
|
else
|
|
665
668
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
666
669
|
raise error_class.new(response.body, code: code)
|
|
@@ -677,6 +680,7 @@ module Schematic
|
|
|
677
680
|
# @option params [String, nil] :company_id
|
|
678
681
|
# @option params [Boolean, nil] :company_scoped_only
|
|
679
682
|
# @option params [Boolean, nil] :exclude_company_scoped
|
|
683
|
+
# @option params [Boolean, nil] :exclude_unused
|
|
680
684
|
# @option params [Boolean, nil] :for_fallback_plan
|
|
681
685
|
# @option params [Boolean, nil] :for_initial_plan
|
|
682
686
|
# @option params [Boolean, nil] :for_trial_expiry_plan
|
|
@@ -697,6 +701,7 @@ module Schematic
|
|
|
697
701
|
# company_id: "company_id",
|
|
698
702
|
# company_scoped_only: true,
|
|
699
703
|
# exclude_company_scoped: true,
|
|
704
|
+
# exclude_unused: true,
|
|
700
705
|
# for_fallback_plan: true,
|
|
701
706
|
# for_initial_plan: true,
|
|
702
707
|
# for_trial_expiry_plan: true,
|
|
@@ -720,6 +725,7 @@ module Schematic
|
|
|
720
725
|
query_params["company_id"] = params[:company_id] if params.key?(:company_id)
|
|
721
726
|
query_params["company_scoped_only"] = params[:company_scoped_only] if params.key?(:company_scoped_only)
|
|
722
727
|
query_params["exclude_company_scoped"] = params[:exclude_company_scoped] if params.key?(:exclude_company_scoped)
|
|
728
|
+
query_params["exclude_unused"] = params[:exclude_unused] if params.key?(:exclude_unused)
|
|
723
729
|
query_params["for_fallback_plan"] = params[:for_fallback_plan] if params.key?(:for_fallback_plan)
|
|
724
730
|
query_params["for_initial_plan"] = params[:for_initial_plan] if params.key?(:for_initial_plan)
|
|
725
731
|
query_params["for_trial_expiry_plan"] = params[:for_trial_expiry_plan] if params.key?(:for_trial_expiry_plan)
|
|
@@ -749,7 +755,7 @@ module Schematic
|
|
|
749
755
|
end
|
|
750
756
|
code = response.code.to_i
|
|
751
757
|
if code.between?(200, 299)
|
|
752
|
-
Schematic::Plans::Types::CountPlansResponse.load(response.body)
|
|
758
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::CountPlansResponse.load(response.body))
|
|
753
759
|
else
|
|
754
760
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
755
761
|
raise error_class.new(response.body, code: code)
|
|
@@ -793,7 +799,7 @@ module Schematic
|
|
|
793
799
|
end
|
|
794
800
|
code = response.code.to_i
|
|
795
801
|
if code.between?(200, 299)
|
|
796
|
-
Schematic::Plans::Types::ListPlanIssuesResponse.load(response.body)
|
|
802
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::ListPlanIssuesResponse.load(response.body))
|
|
797
803
|
else
|
|
798
804
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
799
805
|
raise error_class.new(response.body, code: code)
|
|
@@ -836,7 +842,7 @@ module Schematic
|
|
|
836
842
|
end
|
|
837
843
|
code = response.code.to_i
|
|
838
844
|
if code.between?(200, 299)
|
|
839
|
-
Schematic::Plans::Types::DeletePlanVersionResponse.load(response.body)
|
|
845
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::DeletePlanVersionResponse.load(response.body))
|
|
840
846
|
else
|
|
841
847
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
842
848
|
raise error_class.new(response.body, code: code)
|
|
@@ -880,7 +886,7 @@ module Schematic
|
|
|
880
886
|
end
|
|
881
887
|
code = response.code.to_i
|
|
882
888
|
if code.between?(200, 299)
|
|
883
|
-
Schematic::Plans::Types::PublishPlanVersionResponse.load(response.body)
|
|
889
|
+
(response.body.to_s.empty? ? nil : Schematic::Plans::Types::PublishPlanVersionResponse.load(response.body))
|
|
884
890
|
else
|
|
885
891
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
886
892
|
raise error_class.new(response.body, code: code)
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :exclude_company_scoped, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
+
field :exclude_unused, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :for_fallback_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :for_initial_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -10,6 +10,8 @@ module Schematic
|
|
|
10
10
|
|
|
11
11
|
field :exclude_company_scoped, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
12
12
|
|
|
13
|
+
field :exclude_unused, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
|
+
|
|
13
15
|
field :for_fallback_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
16
|
|
|
15
17
|
field :for_initial_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :exclude_company_scoped, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
+
field :exclude_unused, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :for_fallback_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :for_initial_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -10,6 +10,8 @@ module Schematic
|
|
|
10
10
|
|
|
11
11
|
field :exclude_company_scoped, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
12
12
|
|
|
13
|
+
field :exclude_unused, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
|
+
|
|
13
15
|
field :for_fallback_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
16
|
|
|
15
17
|
field :for_initial_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -53,7 +53,7 @@ module Schematic
|
|
|
53
53
|
end
|
|
54
54
|
code = response.code.to_i
|
|
55
55
|
if code.between?(200, 299)
|
|
56
|
-
Schematic::Scheduledcheckout::Types::ListScheduledCheckoutsResponse.load(response.body)
|
|
56
|
+
(response.body.to_s.empty? ? nil : Schematic::Scheduledcheckout::Types::ListScheduledCheckoutsResponse.load(response.body))
|
|
57
57
|
else
|
|
58
58
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
59
59
|
raise error_class.new(response.body, code: code)
|
|
@@ -93,7 +93,7 @@ module Schematic
|
|
|
93
93
|
end
|
|
94
94
|
code = response.code.to_i
|
|
95
95
|
if code.between?(200, 299)
|
|
96
|
-
Schematic::Scheduledcheckout::Types::CreateScheduledCheckoutResponse.load(response.body)
|
|
96
|
+
(response.body.to_s.empty? ? nil : Schematic::Scheduledcheckout::Types::CreateScheduledCheckoutResponse.load(response.body))
|
|
97
97
|
else
|
|
98
98
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
99
99
|
raise error_class.new(response.body, code: code)
|
|
@@ -128,7 +128,7 @@ module Schematic
|
|
|
128
128
|
end
|
|
129
129
|
code = response.code.to_i
|
|
130
130
|
if code.between?(200, 299)
|
|
131
|
-
Schematic::Scheduledcheckout::Types::GetScheduledCheckoutResponse.load(response.body)
|
|
131
|
+
(response.body.to_s.empty? ? nil : Schematic::Scheduledcheckout::Types::GetScheduledCheckoutResponse.load(response.body))
|
|
132
132
|
else
|
|
133
133
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
134
134
|
raise error_class.new(response.body, code: code)
|
|
@@ -168,7 +168,7 @@ module Schematic
|
|
|
168
168
|
end
|
|
169
169
|
code = response.code.to_i
|
|
170
170
|
if code.between?(200, 299)
|
|
171
|
-
Schematic::Scheduledcheckout::Types::UpdateScheduledCheckoutResponse.load(response.body)
|
|
171
|
+
(response.body.to_s.empty? ? nil : Schematic::Scheduledcheckout::Types::UpdateScheduledCheckoutResponse.load(response.body))
|
|
172
172
|
else
|
|
173
173
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
174
174
|
raise error_class.new(response.body, code: code)
|