schematichq 1.4.16 → 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 +21 -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/accounts/types/update_onboarding_state_request_body.rb +2 -0
- data/lib/schematic/billing/client.rb +120 -24
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +2 -0
- data/lib/schematic/billing/types/list_company_billing_profiles_params.rb +20 -0
- data/lib/schematic/billing/types/list_company_billing_profiles_request.rb +19 -0
- data/lib/schematic/billing/types/list_company_billing_profiles_response.rb +13 -0
- data/lib/schematic/billing/types/update_company_billing_profile_request_body.rb +23 -0
- data/lib/schematic/billing/types/update_company_billing_profile_response.rb +13 -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 +372 -41
- data/lib/schematic/credits/types/count_credit_spend_policies_params.rb +24 -0
- data/lib/schematic/credits/types/count_credit_spend_policies_request.rb +23 -0
- data/lib/schematic/credits/types/count_credit_spend_policies_response.rb +13 -0
- data/lib/schematic/credits/types/create_company_credit_grant.rb +2 -0
- data/lib/schematic/credits/types/create_credit_spend_policy_request_body.rb +19 -0
- data/lib/schematic/credits/types/create_credit_spend_policy_response.rb +13 -0
- data/lib/schematic/credits/types/delete_credit_spend_policy_response.rb +13 -0
- data/lib/schematic/credits/types/get_credit_spend_policy_response.rb +13 -0
- data/lib/schematic/credits/types/list_credit_spend_policies_params.rb +24 -0
- data/lib/schematic/credits/types/list_credit_spend_policies_request.rb +23 -0
- data/lib/schematic/credits/types/list_credit_spend_policies_response.rb +13 -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/credits/types/update_credit_spend_policy_request_body.rb +15 -0
- data/lib/schematic/credits/types/update_credit_spend_policy_response.rb +13 -0
- data/lib/schematic/dataexports/client.rb +3 -3
- data/lib/schematic/datastream/client.rb +5 -2
- data/lib/schematic/datastream/resource_cache.rb +2 -4
- data/lib/schematic/datastream/websocket_client.rb +59 -1
- data/lib/schematic/entitlements/client.rb +25 -25
- data/lib/schematic/events/client.rb +107 -6
- data/lib/schematic/events/types/delete_otlp_environment_settings_response.rb +13 -0
- data/lib/schematic/events/types/get_otlp_environment_settings_response.rb +13 -0
- data/lib/schematic/events/types/upsert_otlp_environment_settings_request_body.rb +19 -0
- data/lib/schematic/events/types/upsert_otlp_environment_settings_response.rb +13 -0
- 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 +178 -9
- data/lib/schematic/integrationsapi/types/claim_stripe_sandbox_keys_request_body.rb +11 -0
- data/lib/schematic/integrationsapi/types/claim_stripe_sandbox_keys_response.rb +13 -0
- data/lib/schematic/integrationsapi/types/get_stripe_sandbox_claim_link_response.rb +13 -0
- data/lib/schematic/integrationsapi/types/get_stripe_sandbox_keys_response.rb +13 -0
- data/lib/schematic/integrationsapi/types/install_stripe_claimable_sandbox_response.rb +13 -0
- data/lib/schematic/integrationsapi/types/install_stripe_sandbox_request_body.rb +17 -0
- data/lib/schematic/integrationsapi/types/list_stripe_sandbox_countries_response.rb +13 -0
- 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 +15 -2
- 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/claimed_stripe_sandbox_keys_response_data.rb +13 -0
- data/lib/schematic/types/company_billing_profile_response_data.rb +35 -0
- data/lib/schematic/types/company_detail_response_data.rb +4 -0
- data/lib/schematic/types/company_override_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_spend_policy_response_data.rb +25 -0
- data/lib/schematic/types/credit_spend_policy_scope.rb +13 -0
- data/lib/schematic/types/credit_usage_reason.rb +2 -0
- data/lib/schematic/types/event_body_inference.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 +6 -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/otlp_environment_settings_response_data.rb +23 -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/rule_condition_detail_response_data.rb +2 -0
- data/lib/schematic/types/rule_condition_plan_version_response_data.rb +15 -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/stripe_integration_config.rb +6 -0
- data/lib/schematic/types/stripe_sandbox_claim_link.rb +15 -0
- data/lib/schematic/types/stripe_sandbox_countries_response_data.rb +9 -0
- data/lib/schematic/types/stripe_sandbox_install_response_data.rb +21 -0
- data/lib/schematic/types/stripe_sandbox_keys_response_data.rb +13 -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 +56 -4
- data/reference.md +1345 -44
- data/testapp/app.rb +13 -2
- metadata +55 -3
- data/lib/schematic/types/release_credit_lease_request_body.rb +0 -23
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
# Input parameters
|
|
7
|
+
class ListCompanyBillingProfilesParams < Internal::Types::Model
|
|
8
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :is_default, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :limit, -> { Integer }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :offset, -> { Integer }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class ListCompanyBillingProfilesRequest < Internal::Types::Model
|
|
7
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :is_default, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :limit, -> { Integer }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :offset, -> { Integer }, optional: true, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class ListCompanyBillingProfilesResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Schematic::Types::CompanyBillingProfileResponseData] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :params, -> { Schematic::Billing::Types::ListCompanyBillingProfilesParams }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateCompanyBillingProfileRequestBody < Internal::Types::Model
|
|
7
|
+
field :billing_profile_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :collection_method, -> { Schematic::Types::BillingCollectionMethod }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :days_until_due, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :is_default, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :payment_method_id, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :proration_behavior, -> { Schematic::Types::ProrationBehavior }, optional: true, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateCompanyBillingProfileResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Schematic::Types::CompanyBillingProfileResponseData }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -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::Catalogs::Types::ListCatalogsResponse.load(response.body)
|
|
56
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::ListCatalogsResponse.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)
|
|
@@ -88,7 +88,7 @@ module Schematic
|
|
|
88
88
|
end
|
|
89
89
|
code = response.code.to_i
|
|
90
90
|
if code.between?(200, 299)
|
|
91
|
-
Schematic::Catalogs::Types::CreateCatalogResponse.load(response.body)
|
|
91
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::CreateCatalogResponse.load(response.body))
|
|
92
92
|
else
|
|
93
93
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
94
94
|
raise error_class.new(response.body, code: code)
|
|
@@ -123,7 +123,7 @@ module Schematic
|
|
|
123
123
|
end
|
|
124
124
|
code = response.code.to_i
|
|
125
125
|
if code.between?(200, 299)
|
|
126
|
-
Schematic::Catalogs::Types::GetCatalogResponse.load(response.body)
|
|
126
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::GetCatalogResponse.load(response.body))
|
|
127
127
|
else
|
|
128
128
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
129
129
|
raise error_class.new(response.body, code: code)
|
|
@@ -163,7 +163,7 @@ module Schematic
|
|
|
163
163
|
end
|
|
164
164
|
code = response.code.to_i
|
|
165
165
|
if code.between?(200, 299)
|
|
166
|
-
Schematic::Catalogs::Types::UpdateCatalogResponse.load(response.body)
|
|
166
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::UpdateCatalogResponse.load(response.body))
|
|
167
167
|
else
|
|
168
168
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
169
169
|
raise error_class.new(response.body, code: code)
|
|
@@ -198,7 +198,7 @@ module Schematic
|
|
|
198
198
|
end
|
|
199
199
|
code = response.code.to_i
|
|
200
200
|
if code.between?(200, 299)
|
|
201
|
-
Schematic::Catalogs::Types::DeleteCatalogResponse.load(response.body)
|
|
201
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::DeleteCatalogResponse.load(response.body))
|
|
202
202
|
else
|
|
203
203
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
204
204
|
raise error_class.new(response.body, code: code)
|
|
@@ -233,7 +233,7 @@ module Schematic
|
|
|
233
233
|
end
|
|
234
234
|
code = response.code.to_i
|
|
235
235
|
if code.between?(200, 299)
|
|
236
|
-
Schematic::Catalogs::Types::GetConfigurationResponse.load(response.body)
|
|
236
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::GetConfigurationResponse.load(response.body))
|
|
237
237
|
else
|
|
238
238
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
239
239
|
raise error_class.new(response.body, code: code)
|
|
@@ -273,7 +273,7 @@ module Schematic
|
|
|
273
273
|
end
|
|
274
274
|
code = response.code.to_i
|
|
275
275
|
if code.between?(200, 299)
|
|
276
|
-
Schematic::Catalogs::Types::UpdateConfigurationResponse.load(response.body)
|
|
276
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::UpdateConfigurationResponse.load(response.body))
|
|
277
277
|
else
|
|
278
278
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
279
279
|
raise error_class.new(response.body, code: code)
|
|
@@ -308,7 +308,7 @@ module Schematic
|
|
|
308
308
|
end
|
|
309
309
|
code = response.code.to_i
|
|
310
310
|
if code.between?(200, 299)
|
|
311
|
-
Schematic::Catalogs::Types::GetCreditBundlesInCatalogResponse.load(response.body)
|
|
311
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::GetCreditBundlesInCatalogResponse.load(response.body))
|
|
312
312
|
else
|
|
313
313
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
314
314
|
raise error_class.new(response.body, code: code)
|
|
@@ -417,7 +417,7 @@ module Schematic
|
|
|
417
417
|
end
|
|
418
418
|
code = response.code.to_i
|
|
419
419
|
if code.between?(200, 299)
|
|
420
|
-
Schematic::Catalogs::Types::GetDerivedFeaturesResponse.load(response.body)
|
|
420
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::GetDerivedFeaturesResponse.load(response.body))
|
|
421
421
|
else
|
|
422
422
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
423
423
|
raise error_class.new(response.body, code: code)
|
|
@@ -452,7 +452,7 @@ module Schematic
|
|
|
452
452
|
end
|
|
453
453
|
code = response.code.to_i
|
|
454
454
|
if code.between?(200, 299)
|
|
455
|
-
Schematic::Catalogs::Types::GetPlansInCatalogResponse.load(response.body)
|
|
455
|
+
(response.body.to_s.empty? ? nil : Schematic::Catalogs::Types::GetPlansInCatalogResponse.load(response.body))
|
|
456
456
|
else
|
|
457
457
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
458
458
|
raise error_class.new(response.body, code: code)
|
|
@@ -62,7 +62,7 @@ module Schematic
|
|
|
62
62
|
end
|
|
63
63
|
code = response.code.to_i
|
|
64
64
|
if code.between?(200, 299)
|
|
65
|
-
Schematic::Checkout::Types::CheckoutInternalResponse.load(response.body)
|
|
65
|
+
(response.body.to_s.empty? ? nil : Schematic::Checkout::Types::CheckoutInternalResponse.load(response.body))
|
|
66
66
|
else
|
|
67
67
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
68
68
|
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::Checkout::Types::GetCheckoutDataResponse.load(response.body)
|
|
100
|
+
(response.body.to_s.empty? ? nil : Schematic::Checkout::Types::GetCheckoutDataResponse.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)
|
|
@@ -156,7 +156,7 @@ module Schematic
|
|
|
156
156
|
end
|
|
157
157
|
code = response.code.to_i
|
|
158
158
|
if code.between?(200, 299)
|
|
159
|
-
Schematic::Checkout::Types::PreviewCheckoutInternalResponse.load(response.body)
|
|
159
|
+
(response.body.to_s.empty? ? nil : Schematic::Checkout::Types::PreviewCheckoutInternalResponse.load(response.body))
|
|
160
160
|
else
|
|
161
161
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
162
162
|
raise error_class.new(response.body, code: code)
|
|
@@ -191,7 +191,7 @@ module Schematic
|
|
|
191
191
|
end
|
|
192
192
|
code = response.code.to_i
|
|
193
193
|
if code.between?(200, 299)
|
|
194
|
-
Schematic::Checkout::Types::GetCompanyBillingDetailsResponse.load(response.body)
|
|
194
|
+
(response.body.to_s.empty? ? nil : Schematic::Checkout::Types::GetCompanyBillingDetailsResponse.load(response.body))
|
|
195
195
|
else
|
|
196
196
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
197
197
|
raise error_class.new(response.body, code: code)
|
|
@@ -237,7 +237,7 @@ module Schematic
|
|
|
237
237
|
end
|
|
238
238
|
code = response.code.to_i
|
|
239
239
|
if code.between?(200, 299)
|
|
240
|
-
Schematic::Checkout::Types::UpdateCompanyBillingDetailsResponse.load(response.body)
|
|
240
|
+
(response.body.to_s.empty? ? nil : Schematic::Checkout::Types::UpdateCompanyBillingDetailsResponse.load(response.body))
|
|
241
241
|
else
|
|
242
242
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
243
243
|
raise error_class.new(response.body, code: code)
|
|
@@ -289,7 +289,7 @@ module Schematic
|
|
|
289
289
|
end
|
|
290
290
|
code = response.code.to_i
|
|
291
291
|
if code.between?(200, 299)
|
|
292
|
-
Schematic::Checkout::Types::ManagePlanResponse.load(response.body)
|
|
292
|
+
(response.body.to_s.empty? ? nil : Schematic::Checkout::Types::ManagePlanResponse.load(response.body))
|
|
293
293
|
else
|
|
294
294
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
295
295
|
raise error_class.new(response.body, code: code)
|
|
@@ -341,7 +341,7 @@ module Schematic
|
|
|
341
341
|
end
|
|
342
342
|
code = response.code.to_i
|
|
343
343
|
if code.between?(200, 299)
|
|
344
|
-
Schematic::Checkout::Types::PreviewManagePlanResponse.load(response.body)
|
|
344
|
+
(response.body.to_s.empty? ? nil : Schematic::Checkout::Types::PreviewManagePlanResponse.load(response.body))
|
|
345
345
|
else
|
|
346
346
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
347
347
|
raise error_class.new(response.body, code: code)
|
|
@@ -376,7 +376,7 @@ module Schematic
|
|
|
376
376
|
end
|
|
377
377
|
code = response.code.to_i
|
|
378
378
|
if code.between?(200, 299)
|
|
379
|
-
Schematic::Checkout::Types::CancelSubscriptionResponse.load(response.body)
|
|
379
|
+
(response.body.to_s.empty? ? nil : Schematic::Checkout::Types::CancelSubscriptionResponse.load(response.body))
|
|
380
380
|
else
|
|
381
381
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
382
382
|
raise error_class.new(response.body, code: code)
|
|
@@ -416,7 +416,7 @@ module Schematic
|
|
|
416
416
|
end
|
|
417
417
|
code = response.code.to_i
|
|
418
418
|
if code.between?(200, 299)
|
|
419
|
-
Schematic::Checkout::Types::UpdateCustomerSubscriptionTrialEndResponse.load(response.body)
|
|
419
|
+
(response.body.to_s.empty? ? nil : Schematic::Checkout::Types::UpdateCustomerSubscriptionTrialEndResponse.load(response.body))
|
|
420
420
|
else
|
|
421
421
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
422
422
|
raise error_class.new(response.body, code: code)
|
data/lib/schematic/client.rb
CHANGED
|
@@ -42,7 +42,7 @@ module Schematic
|
|
|
42
42
|
@raw_client = Schematic::Internal::Http::RawClient.new(
|
|
43
43
|
base_url: base_url || Schematic::Environment::DEFAULT,
|
|
44
44
|
headers: {
|
|
45
|
-
"User-Agent" => "schematichq/1.
|
|
45
|
+
"User-Agent" => "schematichq/1.5.0",
|
|
46
46
|
"X-Fern-Language" => "Ruby",
|
|
47
47
|
"X-Schematic-Api-Key" => api_key.to_s
|
|
48
48
|
},
|
|
@@ -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::Companies::Types::ListCompaniesResponse.load(response.body)
|
|
107
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::ListCompaniesResponse.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)
|
|
@@ -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::Companies::Types::UpsertCompanyResponse.load(response.body)
|
|
144
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::UpsertCompanyResponse.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)
|
|
@@ -176,7 +176,7 @@ module Schematic
|
|
|
176
176
|
end
|
|
177
177
|
code = response.code.to_i
|
|
178
178
|
if code.between?(200, 299)
|
|
179
|
-
Schematic::Companies::Types::GetCompanyResponse.load(response.body)
|
|
179
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetCompanyResponse.load(response.body))
|
|
180
180
|
else
|
|
181
181
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
182
182
|
raise error_class.new(response.body, code: code)
|
|
@@ -222,7 +222,7 @@ module Schematic
|
|
|
222
222
|
end
|
|
223
223
|
code = response.code.to_i
|
|
224
224
|
if code.between?(200, 299)
|
|
225
|
-
Schematic::Companies::Types::DeleteCompanyResponse.load(response.body)
|
|
225
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::DeleteCompanyResponse.load(response.body))
|
|
226
226
|
else
|
|
227
227
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
228
228
|
raise error_class.new(response.body, code: code)
|
|
@@ -323,7 +323,7 @@ module Schematic
|
|
|
323
323
|
end
|
|
324
324
|
code = response.code.to_i
|
|
325
325
|
if code.between?(200, 299)
|
|
326
|
-
Schematic::Companies::Types::CountCompaniesResponse.load(response.body)
|
|
326
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::CountCompaniesResponse.load(response.body))
|
|
327
327
|
else
|
|
328
328
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
329
329
|
raise error_class.new(response.body, code: code)
|
|
@@ -360,7 +360,7 @@ module Schematic
|
|
|
360
360
|
end
|
|
361
361
|
code = response.code.to_i
|
|
362
362
|
if code.between?(200, 299)
|
|
363
|
-
Schematic::Companies::Types::CreateCompanyResponse.load(response.body)
|
|
363
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::CreateCompanyResponse.load(response.body))
|
|
364
364
|
else
|
|
365
365
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
366
366
|
raise error_class.new(response.body, code: code)
|
|
@@ -397,7 +397,7 @@ module Schematic
|
|
|
397
397
|
end
|
|
398
398
|
code = response.code.to_i
|
|
399
399
|
if code.between?(200, 299)
|
|
400
|
-
Schematic::Companies::Types::DeleteCompanyByKeysResponse.load(response.body)
|
|
400
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::DeleteCompanyByKeysResponse.load(response.body))
|
|
401
401
|
else
|
|
402
402
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
403
403
|
raise error_class.new(response.body, code: code)
|
|
@@ -444,7 +444,7 @@ module Schematic
|
|
|
444
444
|
end
|
|
445
445
|
code = response.code.to_i
|
|
446
446
|
if code.between?(200, 299)
|
|
447
|
-
Schematic::Companies::Types::LookupCompanyResponse.load(response.body)
|
|
447
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::LookupCompanyResponse.load(response.body))
|
|
448
448
|
else
|
|
449
449
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
450
450
|
raise error_class.new(response.body, code: code)
|
|
@@ -483,7 +483,7 @@ module Schematic
|
|
|
483
483
|
end
|
|
484
484
|
code = response.code.to_i
|
|
485
485
|
if code.between?(200, 299)
|
|
486
|
-
Schematic::Companies::Types::GetCompanyBillingEntityResponse.load(response.body)
|
|
486
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetCompanyBillingEntityResponse.load(response.body))
|
|
487
487
|
else
|
|
488
488
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
489
489
|
raise error_class.new(response.body, code: code)
|
|
@@ -522,7 +522,7 @@ module Schematic
|
|
|
522
522
|
end
|
|
523
523
|
code = response.code.to_i
|
|
524
524
|
if code.between?(200, 299)
|
|
525
|
-
Schematic::Companies::Types::GetBillingEntityChildSubscriptionsResponse.load(response.body)
|
|
525
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetBillingEntityChildSubscriptionsResponse.load(response.body))
|
|
526
526
|
else
|
|
527
527
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
528
528
|
raise error_class.new(response.body, code: code)
|
|
@@ -572,7 +572,7 @@ module Schematic
|
|
|
572
572
|
end
|
|
573
573
|
code = response.code.to_i
|
|
574
574
|
if code.between?(200, 299)
|
|
575
|
-
Schematic::Companies::Types::ListCompanyMembershipsResponse.load(response.body)
|
|
575
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::ListCompanyMembershipsResponse.load(response.body))
|
|
576
576
|
else
|
|
577
577
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
578
578
|
raise error_class.new(response.body, code: code)
|
|
@@ -610,7 +610,7 @@ module Schematic
|
|
|
610
610
|
end
|
|
611
611
|
code = response.code.to_i
|
|
612
612
|
if code.between?(200, 299)
|
|
613
|
-
Schematic::Companies::Types::GetOrCreateCompanyMembershipResponse.load(response.body)
|
|
613
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetOrCreateCompanyMembershipResponse.load(response.body))
|
|
614
614
|
else
|
|
615
615
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
616
616
|
raise error_class.new(response.body, code: code)
|
|
@@ -645,7 +645,7 @@ module Schematic
|
|
|
645
645
|
end
|
|
646
646
|
code = response.code.to_i
|
|
647
647
|
if code.between?(200, 299)
|
|
648
|
-
Schematic::Companies::Types::DeleteCompanyMembershipResponse.load(response.body)
|
|
648
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::DeleteCompanyMembershipResponse.load(response.body))
|
|
649
649
|
else
|
|
650
650
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
651
651
|
raise error_class.new(response.body, code: code)
|
|
@@ -695,7 +695,7 @@ module Schematic
|
|
|
695
695
|
end
|
|
696
696
|
code = response.code.to_i
|
|
697
697
|
if code.between?(200, 299)
|
|
698
|
-
Schematic::Companies::Types::GetActiveCompanySubscriptionResponse.load(response.body)
|
|
698
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetActiveCompanySubscriptionResponse.load(response.body))
|
|
699
699
|
else
|
|
700
700
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
701
701
|
raise error_class.new(response.body, code: code)
|
|
@@ -735,7 +735,7 @@ module Schematic
|
|
|
735
735
|
end
|
|
736
736
|
code = response.code.to_i
|
|
737
737
|
if code.between?(200, 299)
|
|
738
|
-
Schematic::Companies::Types::UpsertCompanyTraitResponse.load(response.body)
|
|
738
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::UpsertCompanyTraitResponse.load(response.body))
|
|
739
739
|
else
|
|
740
740
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
741
741
|
raise error_class.new(response.body, code: code)
|
|
@@ -788,7 +788,7 @@ module Schematic
|
|
|
788
788
|
end
|
|
789
789
|
code = response.code.to_i
|
|
790
790
|
if code.between?(200, 299)
|
|
791
|
-
Schematic::Companies::Types::ListEntityKeyDefinitionsResponse.load(response.body)
|
|
791
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::ListEntityKeyDefinitionsResponse.load(response.body))
|
|
792
792
|
else
|
|
793
793
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
794
794
|
raise error_class.new(response.body, code: code)
|
|
@@ -823,7 +823,7 @@ module Schematic
|
|
|
823
823
|
end
|
|
824
824
|
code = response.code.to_i
|
|
825
825
|
if code.between?(200, 299)
|
|
826
|
-
Schematic::Companies::Types::DeleteEntityKeyDefinitionResponse.load(response.body)
|
|
826
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::DeleteEntityKeyDefinitionResponse.load(response.body))
|
|
827
827
|
else
|
|
828
828
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
829
829
|
raise error_class.new(response.body, code: code)
|
|
@@ -876,7 +876,7 @@ module Schematic
|
|
|
876
876
|
end
|
|
877
877
|
code = response.code.to_i
|
|
878
878
|
if code.between?(200, 299)
|
|
879
|
-
Schematic::Companies::Types::CountEntityKeyDefinitionsResponse.load(response.body)
|
|
879
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::CountEntityKeyDefinitionsResponse.load(response.body))
|
|
880
880
|
else
|
|
881
881
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
882
882
|
raise error_class.new(response.body, code: code)
|
|
@@ -926,7 +926,7 @@ module Schematic
|
|
|
926
926
|
end
|
|
927
927
|
code = response.code.to_i
|
|
928
928
|
if code.between?(200, 299)
|
|
929
|
-
Schematic::Companies::Types::CountEntityKeysResponse.load(response.body)
|
|
929
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::CountEntityKeysResponse.load(response.body))
|
|
930
930
|
else
|
|
931
931
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
932
932
|
raise error_class.new(response.body, code: code)
|
|
@@ -985,7 +985,7 @@ module Schematic
|
|
|
985
985
|
end
|
|
986
986
|
code = response.code.to_i
|
|
987
987
|
if code.between?(200, 299)
|
|
988
|
-
Schematic::Companies::Types::ListEntityTraitDefinitionsResponse.load(response.body)
|
|
988
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::ListEntityTraitDefinitionsResponse.load(response.body))
|
|
989
989
|
else
|
|
990
990
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
991
991
|
raise error_class.new(response.body, code: code)
|
|
@@ -1024,7 +1024,7 @@ module Schematic
|
|
|
1024
1024
|
end
|
|
1025
1025
|
code = response.code.to_i
|
|
1026
1026
|
if code.between?(200, 299)
|
|
1027
|
-
Schematic::Companies::Types::GetOrCreateEntityTraitDefinitionResponse.load(response.body)
|
|
1027
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetOrCreateEntityTraitDefinitionResponse.load(response.body))
|
|
1028
1028
|
else
|
|
1029
1029
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1030
1030
|
raise error_class.new(response.body, code: code)
|
|
@@ -1059,7 +1059,7 @@ module Schematic
|
|
|
1059
1059
|
end
|
|
1060
1060
|
code = response.code.to_i
|
|
1061
1061
|
if code.between?(200, 299)
|
|
1062
|
-
Schematic::Companies::Types::GetEntityTraitDefinitionResponse.load(response.body)
|
|
1062
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetEntityTraitDefinitionResponse.load(response.body))
|
|
1063
1063
|
else
|
|
1064
1064
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1065
1065
|
raise error_class.new(response.body, code: code)
|
|
@@ -1102,7 +1102,7 @@ module Schematic
|
|
|
1102
1102
|
end
|
|
1103
1103
|
code = response.code.to_i
|
|
1104
1104
|
if code.between?(200, 299)
|
|
1105
|
-
Schematic::Companies::Types::UpdateEntityTraitDefinitionResponse.load(response.body)
|
|
1105
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::UpdateEntityTraitDefinitionResponse.load(response.body))
|
|
1106
1106
|
else
|
|
1107
1107
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1108
1108
|
raise error_class.new(response.body, code: code)
|
|
@@ -1137,7 +1137,7 @@ module Schematic
|
|
|
1137
1137
|
end
|
|
1138
1138
|
code = response.code.to_i
|
|
1139
1139
|
if code.between?(200, 299)
|
|
1140
|
-
Schematic::Companies::Types::DeleteEntityTraitDefinitionResponse.load(response.body)
|
|
1140
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::DeleteEntityTraitDefinitionResponse.load(response.body))
|
|
1141
1141
|
else
|
|
1142
1142
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1143
1143
|
raise error_class.new(response.body, code: code)
|
|
@@ -1172,7 +1172,7 @@ module Schematic
|
|
|
1172
1172
|
end
|
|
1173
1173
|
code = response.code.to_i
|
|
1174
1174
|
if code.between?(200, 299)
|
|
1175
|
-
Schematic::Companies::Types::GetEntityTraitDefinitionUsageResponse.load(response.body)
|
|
1175
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetEntityTraitDefinitionUsageResponse.load(response.body))
|
|
1176
1176
|
else
|
|
1177
1177
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1178
1178
|
raise error_class.new(response.body, code: code)
|
|
@@ -1231,7 +1231,7 @@ module Schematic
|
|
|
1231
1231
|
end
|
|
1232
1232
|
code = response.code.to_i
|
|
1233
1233
|
if code.between?(200, 299)
|
|
1234
|
-
Schematic::Companies::Types::CountEntityTraitDefinitionsResponse.load(response.body)
|
|
1234
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::CountEntityTraitDefinitionsResponse.load(response.body))
|
|
1235
1235
|
else
|
|
1236
1236
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1237
1237
|
raise error_class.new(response.body, code: code)
|
|
@@ -1281,7 +1281,7 @@ module Schematic
|
|
|
1281
1281
|
end
|
|
1282
1282
|
code = response.code.to_i
|
|
1283
1283
|
if code.between?(200, 299)
|
|
1284
|
-
Schematic::Companies::Types::GetEntityTraitValuesResponse.load(response.body)
|
|
1284
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetEntityTraitValuesResponse.load(response.body))
|
|
1285
1285
|
else
|
|
1286
1286
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1287
1287
|
raise error_class.new(response.body, code: code)
|
|
@@ -1331,7 +1331,7 @@ module Schematic
|
|
|
1331
1331
|
end
|
|
1332
1332
|
code = response.code.to_i
|
|
1333
1333
|
if code.between?(200, 299)
|
|
1334
|
-
Schematic::Companies::Types::CountEntityTraitsResponse.load(response.body)
|
|
1334
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::CountEntityTraitsResponse.load(response.body))
|
|
1335
1335
|
else
|
|
1336
1336
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1337
1337
|
raise error_class.new(response.body, code: code)
|
|
@@ -1387,7 +1387,7 @@ module Schematic
|
|
|
1387
1387
|
end
|
|
1388
1388
|
code = response.code.to_i
|
|
1389
1389
|
if code.between?(200, 299)
|
|
1390
|
-
Schematic::Companies::Types::ListPlanChangesResponse.load(response.body)
|
|
1390
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::ListPlanChangesResponse.load(response.body))
|
|
1391
1391
|
else
|
|
1392
1392
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1393
1393
|
raise error_class.new(response.body, code: code)
|
|
@@ -1422,7 +1422,7 @@ module Schematic
|
|
|
1422
1422
|
end
|
|
1423
1423
|
code = response.code.to_i
|
|
1424
1424
|
if code.between?(200, 299)
|
|
1425
|
-
Schematic::Companies::Types::GetPlanChangeResponse.load(response.body)
|
|
1425
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetPlanChangeResponse.load(response.body))
|
|
1426
1426
|
else
|
|
1427
1427
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1428
1428
|
raise error_class.new(response.body, code: code)
|
|
@@ -1478,7 +1478,7 @@ module Schematic
|
|
|
1478
1478
|
end
|
|
1479
1479
|
code = response.code.to_i
|
|
1480
1480
|
if code.between?(200, 299)
|
|
1481
|
-
Schematic::Companies::Types::ListPlanTraitsResponse.load(response.body)
|
|
1481
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::ListPlanTraitsResponse.load(response.body))
|
|
1482
1482
|
else
|
|
1483
1483
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1484
1484
|
raise error_class.new(response.body, code: code)
|
|
@@ -1513,7 +1513,7 @@ module Schematic
|
|
|
1513
1513
|
end
|
|
1514
1514
|
code = response.code.to_i
|
|
1515
1515
|
if code.between?(200, 299)
|
|
1516
|
-
Schematic::Companies::Types::GetPlanTraitResponse.load(response.body)
|
|
1516
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetPlanTraitResponse.load(response.body))
|
|
1517
1517
|
else
|
|
1518
1518
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1519
1519
|
raise error_class.new(response.body, code: code)
|
|
@@ -1555,7 +1555,7 @@ module Schematic
|
|
|
1555
1555
|
end
|
|
1556
1556
|
code = response.code.to_i
|
|
1557
1557
|
if code.between?(200, 299)
|
|
1558
|
-
Schematic::Companies::Types::UpdatePlanTraitsBulkResponse.load(response.body)
|
|
1558
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::UpdatePlanTraitsBulkResponse.load(response.body))
|
|
1559
1559
|
else
|
|
1560
1560
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1561
1561
|
raise error_class.new(response.body, code: code)
|
|
@@ -1611,7 +1611,7 @@ module Schematic
|
|
|
1611
1611
|
end
|
|
1612
1612
|
code = response.code.to_i
|
|
1613
1613
|
if code.between?(200, 299)
|
|
1614
|
-
Schematic::Companies::Types::CountPlanTraitsResponse.load(response.body)
|
|
1614
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::CountPlanTraitsResponse.load(response.body))
|
|
1615
1615
|
else
|
|
1616
1616
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1617
1617
|
raise error_class.new(response.body, code: code)
|
|
@@ -1651,7 +1651,7 @@ module Schematic
|
|
|
1651
1651
|
end
|
|
1652
1652
|
code = response.code.to_i
|
|
1653
1653
|
if code.between?(200, 299)
|
|
1654
|
-
Schematic::Companies::Types::UpsertUserTraitResponse.load(response.body)
|
|
1654
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::UpsertUserTraitResponse.load(response.body))
|
|
1655
1655
|
else
|
|
1656
1656
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1657
1657
|
raise error_class.new(response.body, code: code)
|
|
@@ -1707,7 +1707,7 @@ module Schematic
|
|
|
1707
1707
|
end
|
|
1708
1708
|
code = response.code.to_i
|
|
1709
1709
|
if code.between?(200, 299)
|
|
1710
|
-
Schematic::Companies::Types::ListUsersResponse.load(response.body)
|
|
1710
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::ListUsersResponse.load(response.body))
|
|
1711
1711
|
else
|
|
1712
1712
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1713
1713
|
raise error_class.new(response.body, code: code)
|
|
@@ -1744,7 +1744,7 @@ module Schematic
|
|
|
1744
1744
|
end
|
|
1745
1745
|
code = response.code.to_i
|
|
1746
1746
|
if code.between?(200, 299)
|
|
1747
|
-
Schematic::Companies::Types::UpsertUserResponse.load(response.body)
|
|
1747
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::UpsertUserResponse.load(response.body))
|
|
1748
1748
|
else
|
|
1749
1749
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1750
1750
|
raise error_class.new(response.body, code: code)
|
|
@@ -1779,7 +1779,7 @@ module Schematic
|
|
|
1779
1779
|
end
|
|
1780
1780
|
code = response.code.to_i
|
|
1781
1781
|
if code.between?(200, 299)
|
|
1782
|
-
Schematic::Companies::Types::GetUserResponse.load(response.body)
|
|
1782
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetUserResponse.load(response.body))
|
|
1783
1783
|
else
|
|
1784
1784
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1785
1785
|
raise error_class.new(response.body, code: code)
|
|
@@ -1814,7 +1814,7 @@ module Schematic
|
|
|
1814
1814
|
end
|
|
1815
1815
|
code = response.code.to_i
|
|
1816
1816
|
if code.between?(200, 299)
|
|
1817
|
-
Schematic::Companies::Types::DeleteUserResponse.load(response.body)
|
|
1817
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::DeleteUserResponse.load(response.body))
|
|
1818
1818
|
else
|
|
1819
1819
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1820
1820
|
raise error_class.new(response.body, code: code)
|
|
@@ -1870,7 +1870,7 @@ module Schematic
|
|
|
1870
1870
|
end
|
|
1871
1871
|
code = response.code.to_i
|
|
1872
1872
|
if code.between?(200, 299)
|
|
1873
|
-
Schematic::Companies::Types::CountUsersResponse.load(response.body)
|
|
1873
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::CountUsersResponse.load(response.body))
|
|
1874
1874
|
else
|
|
1875
1875
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1876
1876
|
raise error_class.new(response.body, code: code)
|
|
@@ -1907,7 +1907,7 @@ module Schematic
|
|
|
1907
1907
|
end
|
|
1908
1908
|
code = response.code.to_i
|
|
1909
1909
|
if code.between?(200, 299)
|
|
1910
|
-
Schematic::Companies::Types::CreateUserResponse.load(response.body)
|
|
1910
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::CreateUserResponse.load(response.body))
|
|
1911
1911
|
else
|
|
1912
1912
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1913
1913
|
raise error_class.new(response.body, code: code)
|
|
@@ -1944,7 +1944,7 @@ module Schematic
|
|
|
1944
1944
|
end
|
|
1945
1945
|
code = response.code.to_i
|
|
1946
1946
|
if code.between?(200, 299)
|
|
1947
|
-
Schematic::Companies::Types::DeleteUserByKeysResponse.load(response.body)
|
|
1947
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::DeleteUserByKeysResponse.load(response.body))
|
|
1948
1948
|
else
|
|
1949
1949
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1950
1950
|
raise error_class.new(response.body, code: code)
|
|
@@ -1985,7 +1985,7 @@ module Schematic
|
|
|
1985
1985
|
end
|
|
1986
1986
|
code = response.code.to_i
|
|
1987
1987
|
if code.between?(200, 299)
|
|
1988
|
-
Schematic::Companies::Types::LookupUserResponse.load(response.body)
|
|
1988
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::LookupUserResponse.load(response.body))
|
|
1989
1989
|
else
|
|
1990
1990
|
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
1991
1991
|
raise error_class.new(response.body, code: code)
|