schematichq 1.5.7 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +5 -5
- data/.fern/replay.lock +13 -1
- data/README.md +7 -1
- data/lib/schematic/accesstokens/client.rb +1 -1
- data/lib/schematic/accounts/client.rb +15 -15
- data/lib/schematic/billing/client.rb +706 -83
- data/lib/schematic/billing/types/charge_native_invoice_response.rb +15 -0
- data/lib/schematic/billing/types/convert_company_trial_response.rb +15 -0
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +6 -0
- data/lib/schematic/billing/types/delete_contract_document_response.rb +15 -0
- data/lib/schematic/billing/types/end_company_trial_response.rb +15 -0
- data/lib/schematic/billing/types/get_company_contract_response.rb +15 -0
- data/lib/schematic/billing/types/get_company_trial_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/start_company_trial_request_body.rb +21 -0
- data/lib/schematic/billing/types/start_company_trial_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/update_company_trial_request_body.rb +15 -0
- data/lib/schematic/billing/types/update_company_trial_response.rb +15 -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/cache.rb +19 -2
- 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/checkout_data_request_body.rb +2 -0
- 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/datastream/client.rb +52 -22
- data/lib/schematic/datastream/resource_cache.rb +13 -3
- 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 +2 -2
- data/lib/schematic/internal/iterators/offset_page_iterator.rb +2 -0
- 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/redis_cache.rb +10 -1
- data/lib/schematic/scheduledcheckout/client.rb +4 -4
- data/lib/schematic/schematic_client.rb +21 -3
- data/lib/schematic/types/account_inference_cost_rate_response_data.rb +29 -0
- data/lib/schematic/types/billing_customer_subscription.rb +2 -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_native_subscription_response_data.rb +4 -0
- data/lib/schematic/types/billing_product_for_subscription_response_data.rb +2 -0
- data/lib/schematic/types/billing_product_plan_response_data.rb +2 -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/company_trial_response_data.rb +35 -0
- data/lib/schematic/types/company_trial_status.rb +16 -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_ledger_export_metadata.rb +25 -0
- data/lib/schematic/types/credit_ledger_export_metadata_event_type.rb +19 -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/data_export_metadata.rb +2 -0
- data/lib/schematic/types/data_export_type.rb +1 -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 +4 -0
- data/lib/schematic/types/manage_plan_response_response_data.rb +2 -0
- data/lib/schematic/types/migration_error_code.rb +1 -0
- data/lib/schematic/types/plan_change_action.rb +2 -0
- data/lib/schematic/types/plan_change_response_data.rb +4 -0
- data/lib/schematic/types/plan_entitlement_response_data.rb +2 -0
- data/lib/schematic/types/publish_plan_version_request_body.rb +8 -0
- data/lib/schematic/types/publish_preview_interval_change_response_data.rb +13 -0
- data/lib/schematic/types/publish_preview_response_data.rb +6 -0
- data/lib/schematic/types/scheduled_downgrade_response_data.rb +4 -0
- data/lib/schematic/types/stripe_integration_config.rb +2 -0
- data/lib/schematic/types/trial_source.rb +15 -0
- data/lib/schematic/types/update_entitlement_req_common.rb +2 -0
- data/lib/schematic/types/web_scheduled_downgrade_webhook_output.rb +2 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/webhooks/client.rb +10 -10
- data/lib/schematic.rb +79 -5
- data/reference.md +5208 -3800
- metadata +70 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68047a14bbe3275b501f21b2e1ae979b70ad3ebbc7dfb71429c90c3c01a9f305
|
|
4
|
+
data.tar.gz: 36a872072164d60d8f68c3785d41e4b42bef180bf05a31f97328a3c6fb955410
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 208c33eab26fbcdcc1a0f01e294ac1fc7eb30e4fe97367f886696616dc2a5ff601a6b45b7455093f1c132cfe0f3afc78ed4662946ecb1dff1c730bcd7b9ef36f
|
|
7
|
+
data.tar.gz: ab940bf3ce9bde7dd5adf6a7a940d4854f196bc3c386a46b1d4297328686961007173bdd6bac23fc9c1ab13dbcaa7f993d559b4046150889590e2065f13a4892
|
data/.fern/metadata.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"cliVersion": "5.
|
|
2
|
+
"cliVersion": "5.215.1",
|
|
3
3
|
"generatorName": "fernapi/fern-ruby-sdk",
|
|
4
|
-
"generatorVersion": "1.
|
|
4
|
+
"generatorVersion": "1.43.1",
|
|
5
5
|
"generatorConfig": {
|
|
6
6
|
"module": "SchematicHQ",
|
|
7
7
|
"rubocopVariableNumberStyle": "disabled",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"webrick": ">= 1.0"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"originGitCommit": "
|
|
16
|
+
"originGitCommit": "47e820113906faef63cb69ca180aab7ff64df91b",
|
|
17
17
|
"originGitCommitIsDirty": false,
|
|
18
18
|
"invokedBy": "ci",
|
|
19
|
-
"requestedVersion": "1.5.
|
|
19
|
+
"requestedVersion": "1.5.9",
|
|
20
20
|
"ciProvider": "github",
|
|
21
|
-
"sdkVersion": "1.5.
|
|
21
|
+
"sdkVersion": "1.5.9"
|
|
22
22
|
}
|
data/.fern/replay.lock
CHANGED
|
@@ -144,5 +144,17 @@ generations:
|
|
|
144
144
|
cli_version: unknown
|
|
145
145
|
generator_versions:
|
|
146
146
|
fernapi/fern-ruby-sdk: 1.40.4
|
|
147
|
-
|
|
147
|
+
- commit_sha: 6203732456bfc5b0f3a341ca9c51f838ac1b0c1c
|
|
148
|
+
tree_hash: 6d607b595022f6be5f9fdc6d801a4fc649b9472b
|
|
149
|
+
timestamp: 2026-11-09T10:02:56.872Z
|
|
150
|
+
cli_version: unknown
|
|
151
|
+
generator_versions:
|
|
152
|
+
fernapi/fern-ruby-sdk: 1.41.3
|
|
153
|
+
- commit_sha: d1026be02eb8c1fbcec2d001e79bed2083c9d589
|
|
154
|
+
tree_hash: 58b172bea0c2808ba561718a7c3239c5024b6e83
|
|
155
|
+
timestamp: 2026-11-16T10:02:08.297Z
|
|
156
|
+
cli_version: unknown
|
|
157
|
+
generator_versions:
|
|
158
|
+
fernapi/fern-ruby-sdk: 1.43.1
|
|
159
|
+
current_generation: d1026be02eb8c1fbcec2d001e79bed2083c9d589
|
|
148
160
|
patches: []
|
data/README.md
CHANGED
|
@@ -648,6 +648,8 @@ is_flag_on = client.check_flag(
|
|
|
648
648
|
client.close
|
|
649
649
|
```
|
|
650
650
|
|
|
651
|
+
With DataStream enabled (including Replicator Mode), `track` also adds the event's quantity to the matching metric on the cached company right away, so usage-based limits reflect it before Schematic sends back an updated value. This happens even while the WebSocket is disconnected or the replicator reports not ready. The next company update from Schematic or the replicator replaces the local value, so usage is never counted twice. Companies that aren't in the cache are left alone.
|
|
652
|
+
|
|
651
653
|
### Configuration Options
|
|
652
654
|
|
|
653
655
|
You can customize DataStream behavior via the `datastream_options` hash:
|
|
@@ -726,7 +728,11 @@ When running in Replicator Mode, the client will:
|
|
|
726
728
|
- Skip establishing WebSocket connections
|
|
727
729
|
- Periodically check if the replicator service is ready
|
|
728
730
|
- Use cached data populated by the external replicator service
|
|
729
|
-
- Fall back to direct API calls
|
|
731
|
+
- Fall back to direct API calls until the replicator reports its cache ready
|
|
732
|
+
|
|
733
|
+
The client serves flag checks from the cache only once the replicator reports that its cache is ready. The replicator's health endpoint returns `ready: true` once it has fully loaded the cache for its current `cache_version`, and `ready: false` (HTTP 503) before that. Until the client sees `ready: true`, `check_flag`, `check_flag_with_entitlement` and `check_flags` all skip the cache and call the Schematic API, falling back to your flag defaults if the API call fails. Single and bulk checks follow the same rule. Only an explicit answer changes readiness. If the health endpoint can't be reached, times out, or returns a body without a `ready` field the client can read, the client keeps the readiness and `cache_version` from the last answer it got. Before the first answer, the cache counts as not ready.
|
|
734
|
+
|
|
735
|
+
Once the cache is ready, flag checks evaluate locally from the cache. A flag that isn't in the cache still falls back to the API. The DataStream client's `cache_ready?` reports the same readiness the flag checks use.
|
|
730
736
|
|
|
731
737
|
## Testing
|
|
732
738
|
|
|
@@ -54,7 +54,7 @@ module Schematic
|
|
|
54
54
|
500 => Schematic::Types::ApiError
|
|
55
55
|
}
|
|
56
56
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
57
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
57
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
end
|
|
@@ -67,7 +67,7 @@ module Schematic
|
|
|
67
67
|
500 => Schematic::Types::ApiError
|
|
68
68
|
}
|
|
69
69
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
70
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
70
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -109,7 +109,7 @@ module Schematic
|
|
|
109
109
|
500 => Schematic::Types::ApiError
|
|
110
110
|
}
|
|
111
111
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
112
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
112
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
@@ -170,7 +170,7 @@ module Schematic
|
|
|
170
170
|
500 => Schematic::Types::ApiError
|
|
171
171
|
}
|
|
172
172
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
173
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
173
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
@@ -228,7 +228,7 @@ module Schematic
|
|
|
228
228
|
500 => Schematic::Types::ApiError
|
|
229
229
|
}
|
|
230
230
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
231
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
231
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
232
232
|
end
|
|
233
233
|
end
|
|
234
234
|
|
|
@@ -270,7 +270,7 @@ module Schematic
|
|
|
270
270
|
500 => Schematic::Types::ApiError
|
|
271
271
|
}
|
|
272
272
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
273
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
273
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
274
274
|
end
|
|
275
275
|
end
|
|
276
276
|
|
|
@@ -328,7 +328,7 @@ module Schematic
|
|
|
328
328
|
500 => Schematic::Types::ApiError
|
|
329
329
|
}
|
|
330
330
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
331
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
331
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
332
332
|
end
|
|
333
333
|
end
|
|
334
334
|
|
|
@@ -398,7 +398,7 @@ module Schematic
|
|
|
398
398
|
500 => Schematic::Types::ApiError
|
|
399
399
|
}
|
|
400
400
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
401
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
401
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
402
402
|
end
|
|
403
403
|
end
|
|
404
404
|
|
|
@@ -440,7 +440,7 @@ module Schematic
|
|
|
440
440
|
500 => Schematic::Types::ApiError
|
|
441
441
|
}
|
|
442
442
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
443
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
443
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
444
444
|
end
|
|
445
445
|
end
|
|
446
446
|
|
|
@@ -510,7 +510,7 @@ module Schematic
|
|
|
510
510
|
500 => Schematic::Types::ApiError
|
|
511
511
|
}
|
|
512
512
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
513
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
513
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
514
514
|
end
|
|
515
515
|
end
|
|
516
516
|
|
|
@@ -565,7 +565,7 @@ module Schematic
|
|
|
565
565
|
500 => Schematic::Types::ApiError
|
|
566
566
|
}
|
|
567
567
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
568
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
568
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
569
569
|
end
|
|
570
570
|
end
|
|
571
571
|
|
|
@@ -607,7 +607,7 @@ module Schematic
|
|
|
607
607
|
500 => Schematic::Types::ApiError
|
|
608
608
|
}
|
|
609
609
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
610
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
610
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
611
611
|
end
|
|
612
612
|
end
|
|
613
613
|
|
|
@@ -647,7 +647,7 @@ module Schematic
|
|
|
647
647
|
500 => Schematic::Types::ApiError
|
|
648
648
|
}
|
|
649
649
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
650
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
650
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
651
651
|
end
|
|
652
652
|
end
|
|
653
653
|
|
|
@@ -690,7 +690,7 @@ module Schematic
|
|
|
690
690
|
500 => Schematic::Types::ApiError
|
|
691
691
|
}
|
|
692
692
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
693
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
693
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
694
694
|
end
|
|
695
695
|
end
|
|
696
696
|
|
|
@@ -731,7 +731,7 @@ module Schematic
|
|
|
731
731
|
500 => Schematic::Types::ApiError
|
|
732
732
|
}
|
|
733
733
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
734
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
734
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
735
735
|
end
|
|
736
736
|
end
|
|
737
737
|
|
|
@@ -771,7 +771,7 @@ module Schematic
|
|
|
771
771
|
500 => Schematic::Types::ApiError
|
|
772
772
|
}
|
|
773
773
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
774
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
774
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
775
775
|
end
|
|
776
776
|
end
|
|
777
777
|
end
|