schematichq 1.5.7 → 1.5.8
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 +7 -1
- data/lib/schematic/accesstokens/client.rb +1 -1
- data/lib/schematic/accounts/client.rb +15 -15
- data/lib/schematic/billing/client.rb +432 -37
- data/lib/schematic/billing/types/charge_native_invoice_response.rb +15 -0
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +4 -0
- data/lib/schematic/billing/types/delete_contract_document_response.rb +15 -0
- data/lib/schematic/billing/types/get_company_contract_response.rb +15 -0
- data/lib/schematic/billing/types/get_company_upcoming_invoices_response.rb +15 -0
- data/lib/schematic/billing/types/move_to_default_plan_response.rb +15 -0
- data/lib/schematic/billing/types/reissue_native_invoice_link_response.rb +15 -0
- data/lib/schematic/billing/types/revoke_native_invoice_link_response.rb +15 -0
- data/lib/schematic/billing/types/update_billing_settings_request_body.rb +4 -0
- data/lib/schematic/billing/types/update_company_billing_profile_request_body.rb +6 -0
- data/lib/schematic/billing/types/upload_contract_document_request.rb +11 -0
- data/lib/schematic/billing/types/upload_contract_document_response.rb +15 -0
- data/lib/schematic/catalogs/client.rb +16 -16
- data/lib/schematic/catalogs/types/update_catalog_configuration_request_body.rb +2 -0
- data/lib/schematic/checkout/client.rb +98 -9
- data/lib/schematic/checkout/types/pause_subscription_request.rb +15 -0
- data/lib/schematic/checkout/types/pause_subscription_response.rb +15 -0
- data/lib/schematic/checkout/types/resume_subscription_request.rb +13 -0
- data/lib/schematic/checkout/types/resume_subscription_response.rb +15 -0
- data/lib/schematic/client.rb +7 -196
- data/lib/schematic/companies/client.rb +140 -44
- data/lib/schematic/companies/types/get_billing_entity_settings_response.rb +15 -0
- data/lib/schematic/companies/types/list_users_params.rb +4 -0
- data/lib/schematic/companies/types/list_users_request.rb +4 -0
- data/lib/schematic/companies/types/update_billing_entity_settings_request_body.rb +13 -0
- data/lib/schematic/companies/types/update_billing_entity_settings_response.rb +15 -0
- data/lib/schematic/components/client.rb +8 -8
- data/lib/schematic/componentspublic/client.rb +1 -1
- data/lib/schematic/credits/client.rb +41 -41
- data/lib/schematic/customplangrouprollouts/client.rb +258 -0
- data/lib/schematic/customplangrouprollouts/types/copy_custom_plan_request_body.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/copy_custom_plan_response.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/get_group_rollout_response.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/list_group_rollouts_params.rb +14 -0
- data/lib/schematic/customplangrouprollouts/types/list_group_rollouts_request.rb +11 -0
- data/lib/schematic/customplangrouprollouts/types/list_group_rollouts_response.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/preview_group_rollout_params.rb +16 -0
- data/lib/schematic/customplangrouprollouts/types/preview_group_rollout_request.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/preview_group_rollout_response.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/start_group_rollout_request_body.rb +17 -0
- data/lib/schematic/customplangrouprollouts/types/start_group_rollout_response.rb +15 -0
- data/lib/schematic/dataexports/client.rb +4 -4
- data/lib/schematic/entitlements/client.rb +28 -28
- data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +2 -0
- data/lib/schematic/entitlements/types/create_company_override_request_body.rb +2 -0
- data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +2 -0
- data/lib/schematic/entitlements/types/update_company_override_request_body.rb +2 -0
- data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +2 -0
- data/lib/schematic/errors/response_error.rb +4 -2
- data/lib/schematic/events/client.rb +213 -9
- data/lib/schematic/events/types/create_account_inference_cost_rate_request_body.rb +19 -0
- data/lib/schematic/events/types/create_account_inference_cost_rate_response.rb +15 -0
- data/lib/schematic/events/types/delete_account_inference_cost_rate_response.rb +15 -0
- data/lib/schematic/events/types/list_account_inference_cost_rates_params.rb +20 -0
- data/lib/schematic/events/types/list_account_inference_cost_rates_request.rb +17 -0
- data/lib/schematic/events/types/list_account_inference_cost_rates_response.rb +15 -0
- data/lib/schematic/events/types/update_account_inference_cost_rate_request_body.rb +13 -0
- data/lib/schematic/events/types/update_account_inference_cost_rate_response.rb +15 -0
- data/lib/schematic/features/client.rb +18 -18
- data/lib/schematic/insights/client.rb +6 -6
- data/lib/schematic/integrationsapi/client.rb +14 -14
- data/lib/schematic/internal/http/raw_client.rb +1 -1
- 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/planmigrations/client.rb +11 -11
- data/lib/schematic/plans/client.rb +20 -20
- data/lib/schematic/scheduledcheckout/client.rb +4 -4
- data/lib/schematic/types/account_inference_cost_rate_response_data.rb +29 -0
- data/lib/schematic/types/billing_invoice_billing_details_response_data.rb +2 -0
- data/lib/schematic/types/billing_invoice_detail_response_data.rb +2 -0
- data/lib/schematic/types/billing_moved_to_default_plan_response_data.rb +15 -0
- data/lib/schematic/types/billing_settings_response_data.rb +4 -0
- data/lib/schematic/types/billing_subscription_pause_behavior.rb +15 -0
- data/lib/schematic/types/billing_subscription_response_data.rb +6 -0
- data/lib/schematic/types/billing_subscription_view.rb +6 -0
- data/lib/schematic/types/billing_upcoming_invoice_response_data.rb +43 -0
- data/lib/schematic/types/billing_upcoming_invoices_response_data.rb +13 -0
- data/lib/schematic/types/catalog_configuration_response_data.rb +2 -0
- data/lib/schematic/types/catalog_plan_response_data.rb +4 -0
- data/lib/schematic/types/catalog_response_data.rb +2 -0
- data/lib/schematic/types/checkout_subscription.rb +6 -0
- data/lib/schematic/types/company_billing_entity_settings_response_data.rb +15 -0
- data/lib/schematic/types/company_billing_entity_subscription_response_data.rb +10 -0
- data/lib/schematic/types/company_billing_profile_contract_response_data.rb +55 -0
- data/lib/schematic/types/company_billing_profile_document_response_data.rb +15 -0
- data/lib/schematic/types/company_override_response_data.rb +2 -0
- data/lib/schematic/types/company_subscription_response_data.rb +10 -0
- data/lib/schematic/types/contract_billing_details_request_body.rb +19 -0
- data/lib/schematic/types/contract_postpaid_credit_response_data.rb +23 -0
- data/lib/schematic/types/contract_postpaid_response_data.rb +15 -0
- data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +2 -0
- data/lib/schematic/types/create_entitlement_req_common.rb +2 -0
- data/lib/schematic/types/credit_burn_breakdown_line.rb +4 -0
- data/lib/schematic/types/credit_model_rate.rb +17 -0
- data/lib/schematic/types/custom_plan_billing_response_data.rb +2 -0
- data/lib/schematic/types/group_rollout_change_response_data.rb +13 -0
- data/lib/schematic/types/group_rollout_changes_response_data.rb +23 -0
- data/lib/schematic/types/group_rollout_company_response_data.rb +15 -0
- data/lib/schematic/types/group_rollout_company_result_response_data.rb +19 -0
- data/lib/schematic/types/group_rollout_preview_response_data.rb +19 -0
- data/lib/schematic/types/group_rollout_response_data.rb +25 -0
- data/lib/schematic/types/group_rollout_versions_request_body.rb +13 -0
- data/lib/schematic/types/manage_plan_request.rb +2 -0
- data/lib/schematic/types/plan_change_action.rb +1 -0
- data/lib/schematic/types/plan_entitlement_response_data.rb +2 -0
- data/lib/schematic/types/publish_plan_version_request_body.rb +4 -0
- data/lib/schematic/types/publish_preview_response_data.rb +4 -0
- data/lib/schematic/types/stripe_integration_config.rb +2 -0
- data/lib/schematic/types/update_entitlement_req_common.rb +2 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/webhooks/client.rb +10 -10
- data/lib/schematic.rb +66 -5
- data/reference.md +2146 -1054
- metadata +57 -2
|
@@ -118,7 +118,7 @@ module Schematic
|
|
|
118
118
|
500 => Schematic::Types::ApiError
|
|
119
119
|
}
|
|
120
120
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
121
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
121
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|
|
@@ -163,7 +163,7 @@ module Schematic
|
|
|
163
163
|
500 => Schematic::Types::ApiError
|
|
164
164
|
}
|
|
165
165
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
166
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
166
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -205,7 +205,7 @@ module Schematic
|
|
|
205
205
|
500 => Schematic::Types::ApiError
|
|
206
206
|
}
|
|
207
207
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
208
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
208
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
209
209
|
end
|
|
210
210
|
end
|
|
211
211
|
|
|
@@ -259,7 +259,7 @@ module Schematic
|
|
|
259
259
|
500 => Schematic::Types::ApiError
|
|
260
260
|
}
|
|
261
261
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
262
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
262
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
263
263
|
end
|
|
264
264
|
end
|
|
265
265
|
|
|
@@ -312,7 +312,7 @@ module Schematic
|
|
|
312
312
|
500 => Schematic::Types::ApiError
|
|
313
313
|
}
|
|
314
314
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
315
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
315
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
316
316
|
end
|
|
317
317
|
end
|
|
318
318
|
|
|
@@ -424,7 +424,7 @@ module Schematic
|
|
|
424
424
|
500 => Schematic::Types::ApiError
|
|
425
425
|
}
|
|
426
426
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
427
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
427
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
428
428
|
end
|
|
429
429
|
end
|
|
430
430
|
|
|
@@ -469,7 +469,7 @@ module Schematic
|
|
|
469
469
|
500 => Schematic::Types::ApiError
|
|
470
470
|
}
|
|
471
471
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
472
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
472
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
473
473
|
end
|
|
474
474
|
end
|
|
475
475
|
|
|
@@ -514,7 +514,7 @@ module Schematic
|
|
|
514
514
|
500 => Schematic::Types::ApiError
|
|
515
515
|
}
|
|
516
516
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
517
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
517
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
518
518
|
end
|
|
519
519
|
end
|
|
520
520
|
|
|
@@ -568,7 +568,7 @@ module Schematic
|
|
|
568
568
|
500 => Schematic::Types::ApiError
|
|
569
569
|
}
|
|
570
570
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
571
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
571
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
572
572
|
end
|
|
573
573
|
end
|
|
574
574
|
|
|
@@ -615,7 +615,97 @@ module Schematic
|
|
|
615
615
|
500 => Schematic::Types::ApiError
|
|
616
616
|
}
|
|
617
617
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
618
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
618
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
619
|
+
end
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
# @param request_options [Hash]
|
|
623
|
+
# @param params [Hash]
|
|
624
|
+
# @option request_options [String] :base_url
|
|
625
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
626
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
627
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
628
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
629
|
+
# @option params [String] :company_id
|
|
630
|
+
#
|
|
631
|
+
# @example
|
|
632
|
+
# client.companies.get_billing_entity_settings(company_id: "company_id")
|
|
633
|
+
#
|
|
634
|
+
# @return [Schematic::Companies::Types::GetBillingEntitySettingsResponse]
|
|
635
|
+
def get_billing_entity_settings(request_options: {}, **params)
|
|
636
|
+
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
637
|
+
request = Schematic::Internal::JSON::Request.new(
|
|
638
|
+
base_url: request_options[:base_url],
|
|
639
|
+
method: "GET",
|
|
640
|
+
path: "company-billing-entity-settings/#{URI.encode_uri_component(params[:company_id].to_s)}",
|
|
641
|
+
request_options: request_options
|
|
642
|
+
)
|
|
643
|
+
begin
|
|
644
|
+
response = @client.send(request)
|
|
645
|
+
rescue Net::HTTPRequestTimeout
|
|
646
|
+
raise Schematic::Errors::TimeoutError
|
|
647
|
+
end
|
|
648
|
+
code = response.code.to_i
|
|
649
|
+
if code.between?(200, 299)
|
|
650
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::GetBillingEntitySettingsResponse.load(response.body))
|
|
651
|
+
else
|
|
652
|
+
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
653
|
+
error_types = {
|
|
654
|
+
401 => Schematic::Types::ApiError,
|
|
655
|
+
403 => Schematic::Types::ApiError,
|
|
656
|
+
404 => Schematic::Types::ApiError,
|
|
657
|
+
500 => Schematic::Types::ApiError
|
|
658
|
+
}
|
|
659
|
+
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
660
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
661
|
+
end
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
# @param request_options [Hash]
|
|
665
|
+
# @param params [Schematic::Companies::Types::UpdateBillingEntitySettingsRequestBody]
|
|
666
|
+
# @option request_options [String] :base_url
|
|
667
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
668
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
669
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
670
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
671
|
+
# @option params [String] :company_id
|
|
672
|
+
#
|
|
673
|
+
# @example
|
|
674
|
+
# client.companies.update_billing_entity_settings(company_id: "company_id")
|
|
675
|
+
#
|
|
676
|
+
# @return [Schematic::Companies::Types::UpdateBillingEntitySettingsResponse]
|
|
677
|
+
def update_billing_entity_settings(request_options: {}, **params)
|
|
678
|
+
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
679
|
+
request_data = Schematic::Companies::Types::UpdateBillingEntitySettingsRequestBody.new(params).to_h
|
|
680
|
+
non_body_param_names = %w[company_id]
|
|
681
|
+
body = request_data.except(*non_body_param_names)
|
|
682
|
+
|
|
683
|
+
request = Schematic::Internal::JSON::Request.new(
|
|
684
|
+
base_url: request_options[:base_url],
|
|
685
|
+
method: "PUT",
|
|
686
|
+
path: "company-billing-entity-settings/#{URI.encode_uri_component(params[:company_id].to_s)}",
|
|
687
|
+
body: body,
|
|
688
|
+
request_options: request_options
|
|
689
|
+
)
|
|
690
|
+
begin
|
|
691
|
+
response = @client.send(request)
|
|
692
|
+
rescue Net::HTTPRequestTimeout
|
|
693
|
+
raise Schematic::Errors::TimeoutError
|
|
694
|
+
end
|
|
695
|
+
code = response.code.to_i
|
|
696
|
+
if code.between?(200, 299)
|
|
697
|
+
(response.body.to_s.empty? ? nil : Schematic::Companies::Types::UpdateBillingEntitySettingsResponse.load(response.body))
|
|
698
|
+
else
|
|
699
|
+
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
700
|
+
error_types = {
|
|
701
|
+
400 => Schematic::Types::ApiError,
|
|
702
|
+
401 => Schematic::Types::ApiError,
|
|
703
|
+
403 => Schematic::Types::ApiError,
|
|
704
|
+
404 => Schematic::Types::ApiError,
|
|
705
|
+
500 => Schematic::Types::ApiError
|
|
706
|
+
}
|
|
707
|
+
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
708
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
619
709
|
end
|
|
620
710
|
end
|
|
621
711
|
|
|
@@ -662,7 +752,7 @@ module Schematic
|
|
|
662
752
|
500 => Schematic::Types::ApiError
|
|
663
753
|
}
|
|
664
754
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
665
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
755
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
666
756
|
end
|
|
667
757
|
end
|
|
668
758
|
|
|
@@ -720,7 +810,7 @@ module Schematic
|
|
|
720
810
|
500 => Schematic::Types::ApiError
|
|
721
811
|
}
|
|
722
812
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
723
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
813
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
724
814
|
end
|
|
725
815
|
end
|
|
726
816
|
|
|
@@ -766,7 +856,7 @@ module Schematic
|
|
|
766
856
|
500 => Schematic::Types::ApiError
|
|
767
857
|
}
|
|
768
858
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
769
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
859
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
770
860
|
end
|
|
771
861
|
end
|
|
772
862
|
|
|
@@ -809,7 +899,7 @@ module Schematic
|
|
|
809
899
|
500 => Schematic::Types::ApiError
|
|
810
900
|
}
|
|
811
901
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
812
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
902
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
813
903
|
end
|
|
814
904
|
end
|
|
815
905
|
|
|
@@ -867,7 +957,7 @@ module Schematic
|
|
|
867
957
|
500 => Schematic::Types::ApiError
|
|
868
958
|
}
|
|
869
959
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
870
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
960
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
871
961
|
end
|
|
872
962
|
end
|
|
873
963
|
|
|
@@ -915,7 +1005,7 @@ module Schematic
|
|
|
915
1005
|
500 => Schematic::Types::ApiError
|
|
916
1006
|
}
|
|
917
1007
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
918
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1008
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
919
1009
|
end
|
|
920
1010
|
end
|
|
921
1011
|
|
|
@@ -976,7 +1066,7 @@ module Schematic
|
|
|
976
1066
|
500 => Schematic::Types::ApiError
|
|
977
1067
|
}
|
|
978
1068
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
979
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1069
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
980
1070
|
end
|
|
981
1071
|
end
|
|
982
1072
|
|
|
@@ -1019,7 +1109,7 @@ module Schematic
|
|
|
1019
1109
|
500 => Schematic::Types::ApiError
|
|
1020
1110
|
}
|
|
1021
1111
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1022
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1112
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1023
1113
|
end
|
|
1024
1114
|
end
|
|
1025
1115
|
|
|
@@ -1080,7 +1170,7 @@ module Schematic
|
|
|
1080
1170
|
500 => Schematic::Types::ApiError
|
|
1081
1171
|
}
|
|
1082
1172
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1083
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1173
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1084
1174
|
end
|
|
1085
1175
|
end
|
|
1086
1176
|
|
|
@@ -1138,7 +1228,7 @@ module Schematic
|
|
|
1138
1228
|
500 => Schematic::Types::ApiError
|
|
1139
1229
|
}
|
|
1140
1230
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1141
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1231
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1142
1232
|
end
|
|
1143
1233
|
end
|
|
1144
1234
|
|
|
@@ -1205,7 +1295,7 @@ module Schematic
|
|
|
1205
1295
|
500 => Schematic::Types::ApiError
|
|
1206
1296
|
}
|
|
1207
1297
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1208
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1298
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1209
1299
|
end
|
|
1210
1300
|
end
|
|
1211
1301
|
|
|
@@ -1252,7 +1342,7 @@ module Schematic
|
|
|
1252
1342
|
500 => Schematic::Types::ApiError
|
|
1253
1343
|
}
|
|
1254
1344
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1255
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1345
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1256
1346
|
end
|
|
1257
1347
|
end
|
|
1258
1348
|
|
|
@@ -1294,7 +1384,7 @@ module Schematic
|
|
|
1294
1384
|
500 => Schematic::Types::ApiError
|
|
1295
1385
|
}
|
|
1296
1386
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1297
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1387
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1298
1388
|
end
|
|
1299
1389
|
end
|
|
1300
1390
|
|
|
@@ -1345,7 +1435,7 @@ module Schematic
|
|
|
1345
1435
|
500 => Schematic::Types::ApiError
|
|
1346
1436
|
}
|
|
1347
1437
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1348
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1438
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1349
1439
|
end
|
|
1350
1440
|
end
|
|
1351
1441
|
|
|
@@ -1388,7 +1478,7 @@ module Schematic
|
|
|
1388
1478
|
500 => Schematic::Types::ApiError
|
|
1389
1479
|
}
|
|
1390
1480
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1391
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1481
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1392
1482
|
end
|
|
1393
1483
|
end
|
|
1394
1484
|
|
|
@@ -1430,7 +1520,7 @@ module Schematic
|
|
|
1430
1520
|
500 => Schematic::Types::ApiError
|
|
1431
1521
|
}
|
|
1432
1522
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1433
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1523
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1434
1524
|
end
|
|
1435
1525
|
end
|
|
1436
1526
|
|
|
@@ -1497,7 +1587,7 @@ module Schematic
|
|
|
1497
1587
|
500 => Schematic::Types::ApiError
|
|
1498
1588
|
}
|
|
1499
1589
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1500
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1590
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1501
1591
|
end
|
|
1502
1592
|
end
|
|
1503
1593
|
|
|
@@ -1555,7 +1645,7 @@ module Schematic
|
|
|
1555
1645
|
500 => Schematic::Types::ApiError
|
|
1556
1646
|
}
|
|
1557
1647
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1558
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1648
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1559
1649
|
end
|
|
1560
1650
|
end
|
|
1561
1651
|
|
|
@@ -1613,7 +1703,7 @@ module Schematic
|
|
|
1613
1703
|
500 => Schematic::Types::ApiError
|
|
1614
1704
|
}
|
|
1615
1705
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1616
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1706
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1617
1707
|
end
|
|
1618
1708
|
end
|
|
1619
1709
|
|
|
@@ -1677,7 +1767,7 @@ module Schematic
|
|
|
1677
1767
|
500 => Schematic::Types::ApiError
|
|
1678
1768
|
}
|
|
1679
1769
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1680
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1770
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1681
1771
|
end
|
|
1682
1772
|
end
|
|
1683
1773
|
|
|
@@ -1719,7 +1809,7 @@ module Schematic
|
|
|
1719
1809
|
500 => Schematic::Types::ApiError
|
|
1720
1810
|
}
|
|
1721
1811
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1722
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1812
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1723
1813
|
end
|
|
1724
1814
|
end
|
|
1725
1815
|
|
|
@@ -1783,7 +1873,7 @@ module Schematic
|
|
|
1783
1873
|
500 => Schematic::Types::ApiError
|
|
1784
1874
|
}
|
|
1785
1875
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1786
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1876
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1787
1877
|
end
|
|
1788
1878
|
end
|
|
1789
1879
|
|
|
@@ -1825,7 +1915,7 @@ module Schematic
|
|
|
1825
1915
|
500 => Schematic::Types::ApiError
|
|
1826
1916
|
}
|
|
1827
1917
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1828
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1918
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1829
1919
|
end
|
|
1830
1920
|
end
|
|
1831
1921
|
|
|
@@ -1875,7 +1965,7 @@ module Schematic
|
|
|
1875
1965
|
500 => Schematic::Types::ApiError
|
|
1876
1966
|
}
|
|
1877
1967
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1878
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1968
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1879
1969
|
end
|
|
1880
1970
|
end
|
|
1881
1971
|
|
|
@@ -1939,7 +2029,7 @@ module Schematic
|
|
|
1939
2029
|
500 => Schematic::Types::ApiError
|
|
1940
2030
|
}
|
|
1941
2031
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1942
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2032
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1943
2033
|
end
|
|
1944
2034
|
end
|
|
1945
2035
|
|
|
@@ -1987,7 +2077,7 @@ module Schematic
|
|
|
1987
2077
|
500 => Schematic::Types::ApiError
|
|
1988
2078
|
}
|
|
1989
2079
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1990
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2080
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1991
2081
|
end
|
|
1992
2082
|
end
|
|
1993
2083
|
|
|
@@ -2002,6 +2092,8 @@ module Schematic
|
|
|
2002
2092
|
# @option params [String, nil] :ids
|
|
2003
2093
|
# @option params [String, nil] :plan_id
|
|
2004
2094
|
# @option params [String, nil] :q
|
|
2095
|
+
# @option params [String, nil] :sort_order_column
|
|
2096
|
+
# @option params [Schematic::Types::SortDirection, nil] :sort_order_direction
|
|
2005
2097
|
# @option params [Integer, nil] :limit
|
|
2006
2098
|
# @option params [Integer, nil] :offset
|
|
2007
2099
|
#
|
|
@@ -2011,6 +2103,8 @@ module Schematic
|
|
|
2011
2103
|
# ids: ["ids"],
|
|
2012
2104
|
# plan_id: "plan_id",
|
|
2013
2105
|
# q: "q",
|
|
2106
|
+
# sort_order_column: "sort_order_column",
|
|
2107
|
+
# sort_order_direction: "asc",
|
|
2014
2108
|
# limit: 1000000,
|
|
2015
2109
|
# offset: 1000000
|
|
2016
2110
|
# )
|
|
@@ -2023,6 +2117,8 @@ module Schematic
|
|
|
2023
2117
|
query_params["ids"] = params[:ids] if params.key?(:ids)
|
|
2024
2118
|
query_params["plan_id"] = params[:plan_id] if params.key?(:plan_id)
|
|
2025
2119
|
query_params["q"] = params[:q] if params.key?(:q)
|
|
2120
|
+
query_params["sort_order_column"] = params[:sort_order_column] if params.key?(:sort_order_column)
|
|
2121
|
+
query_params["sort_order_direction"] = params[:sort_order_direction] if params.key?(:sort_order_direction)
|
|
2026
2122
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
2027
2123
|
query_params["offset"] = params[:offset] if params.key?(:offset)
|
|
2028
2124
|
|
|
@@ -2051,7 +2147,7 @@ module Schematic
|
|
|
2051
2147
|
500 => Schematic::Types::ApiError
|
|
2052
2148
|
}
|
|
2053
2149
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
2054
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2150
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
2055
2151
|
end
|
|
2056
2152
|
end
|
|
2057
2153
|
|
|
@@ -2096,7 +2192,7 @@ module Schematic
|
|
|
2096
2192
|
500 => Schematic::Types::ApiError
|
|
2097
2193
|
}
|
|
2098
2194
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
2099
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2195
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
2100
2196
|
end
|
|
2101
2197
|
end
|
|
2102
2198
|
|
|
@@ -2138,7 +2234,7 @@ module Schematic
|
|
|
2138
2234
|
500 => Schematic::Types::ApiError
|
|
2139
2235
|
}
|
|
2140
2236
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
2141
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2237
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
2142
2238
|
end
|
|
2143
2239
|
end
|
|
2144
2240
|
|
|
@@ -2181,7 +2277,7 @@ module Schematic
|
|
|
2181
2277
|
500 => Schematic::Types::ApiError
|
|
2182
2278
|
}
|
|
2183
2279
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
2184
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2280
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
2185
2281
|
end
|
|
2186
2282
|
end
|
|
2187
2283
|
|
|
@@ -2245,7 +2341,7 @@ module Schematic
|
|
|
2245
2341
|
500 => Schematic::Types::ApiError
|
|
2246
2342
|
}
|
|
2247
2343
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
2248
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2344
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
2249
2345
|
end
|
|
2250
2346
|
end
|
|
2251
2347
|
|
|
@@ -2290,7 +2386,7 @@ module Schematic
|
|
|
2290
2386
|
500 => Schematic::Types::ApiError
|
|
2291
2387
|
}
|
|
2292
2388
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
2293
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2389
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
2294
2390
|
end
|
|
2295
2391
|
end
|
|
2296
2392
|
|
|
@@ -2335,7 +2431,7 @@ module Schematic
|
|
|
2335
2431
|
500 => Schematic::Types::ApiError
|
|
2336
2432
|
}
|
|
2337
2433
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
2338
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2434
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
2339
2435
|
end
|
|
2340
2436
|
end
|
|
2341
2437
|
|
|
@@ -2383,7 +2479,7 @@ module Schematic
|
|
|
2383
2479
|
500 => Schematic::Types::ApiError
|
|
2384
2480
|
}
|
|
2385
2481
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
2386
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
2482
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
2387
2483
|
end
|
|
2388
2484
|
end
|
|
2389
2485
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Companies
|
|
7
|
+
module Types
|
|
8
|
+
class GetBillingEntitySettingsResponse < Internal::Types::Model
|
|
9
|
+
field :data, -> { Schematic::Types::CompanyBillingEntitySettingsResponseData }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -18,6 +18,10 @@ module Schematic
|
|
|
18
18
|
field :plan_id, -> { String }, optional: true, nullable: false
|
|
19
19
|
|
|
20
20
|
field :q, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :sort_order_column, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :sort_order_direction, -> { Schematic::Types::SortDirection }, optional: true, nullable: false
|
|
21
25
|
end
|
|
22
26
|
end
|
|
23
27
|
end
|
|
@@ -12,6 +12,10 @@ module Schematic
|
|
|
12
12
|
|
|
13
13
|
field :q, -> { String }, optional: true, nullable: false
|
|
14
14
|
|
|
15
|
+
field :sort_order_column, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :sort_order_direction, -> { Schematic::Types::SortDirection }, optional: true, nullable: false
|
|
18
|
+
|
|
15
19
|
field :limit, -> { Integer }, optional: true, nullable: false
|
|
16
20
|
|
|
17
21
|
field :offset, -> { Integer }, optional: true, nullable: false
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Companies
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateBillingEntitySettingsRequestBody < Internal::Types::Model
|
|
7
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :children_may_change_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Companies
|
|
7
|
+
module Types
|
|
8
|
+
class UpdateBillingEntitySettingsResponse < Internal::Types::Model
|
|
9
|
+
field :data, -> { Schematic::Types::CompanyBillingEntitySettingsResponseData }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -61,7 +61,7 @@ module Schematic
|
|
|
61
61
|
500 => Schematic::Types::ApiError
|
|
62
62
|
}
|
|
63
63
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
64
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
64
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
67
|
|
|
@@ -107,7 +107,7 @@ module Schematic
|
|
|
107
107
|
500 => Schematic::Types::ApiError
|
|
108
108
|
}
|
|
109
109
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
110
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
110
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
111
111
|
end
|
|
112
112
|
end
|
|
113
113
|
|
|
@@ -149,7 +149,7 @@ module Schematic
|
|
|
149
149
|
500 => Schematic::Types::ApiError
|
|
150
150
|
}
|
|
151
151
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
152
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
152
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
155
|
|
|
@@ -197,7 +197,7 @@ module Schematic
|
|
|
197
197
|
500 => Schematic::Types::ApiError
|
|
198
198
|
}
|
|
199
199
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
200
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
200
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
201
201
|
end
|
|
202
202
|
end
|
|
203
203
|
|
|
@@ -240,7 +240,7 @@ module Schematic
|
|
|
240
240
|
500 => Schematic::Types::ApiError
|
|
241
241
|
}
|
|
242
242
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
243
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
243
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
246
|
|
|
@@ -288,7 +288,7 @@ module Schematic
|
|
|
288
288
|
500 => Schematic::Types::ApiError
|
|
289
289
|
}
|
|
290
290
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
291
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
291
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
292
292
|
end
|
|
293
293
|
end
|
|
294
294
|
|
|
@@ -343,7 +343,7 @@ module Schematic
|
|
|
343
343
|
500 => Schematic::Types::ApiError
|
|
344
344
|
}
|
|
345
345
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
346
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
346
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
347
347
|
end
|
|
348
348
|
end
|
|
349
349
|
|
|
@@ -394,7 +394,7 @@ module Schematic
|
|
|
394
394
|
500 => Schematic::Types::ApiError
|
|
395
395
|
}
|
|
396
396
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
397
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
397
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
398
398
|
end
|
|
399
399
|
end
|
|
400
400
|
end
|
|
@@ -46,7 +46,7 @@ module Schematic
|
|
|
46
46
|
500 => Schematic::Types::ApiError
|
|
47
47
|
}
|
|
48
48
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
49
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
49
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
end
|