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
|
@@ -48,7 +48,7 @@ module Schematic
|
|
|
48
48
|
500 => Schematic::Types::ApiError
|
|
49
49
|
}
|
|
50
50
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
51
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
51
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
|
|
@@ -115,7 +115,7 @@ module Schematic
|
|
|
115
115
|
500 => Schematic::Types::ApiError
|
|
116
116
|
}
|
|
117
117
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
118
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
118
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -157,7 +157,7 @@ module Schematic
|
|
|
157
157
|
500 => Schematic::Types::ApiError
|
|
158
158
|
}
|
|
159
159
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
160
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
160
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
161
161
|
end
|
|
162
162
|
end
|
|
163
163
|
|
|
@@ -200,7 +200,7 @@ module Schematic
|
|
|
200
200
|
500 => Schematic::Types::ApiError
|
|
201
201
|
}
|
|
202
202
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
203
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
203
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
204
204
|
end
|
|
205
205
|
end
|
|
206
206
|
|
|
@@ -243,7 +243,7 @@ module Schematic
|
|
|
243
243
|
500 => Schematic::Types::ApiError
|
|
244
244
|
}
|
|
245
245
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
246
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
246
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
247
247
|
end
|
|
248
248
|
end
|
|
249
249
|
|
|
@@ -283,7 +283,7 @@ module Schematic
|
|
|
283
283
|
500 => Schematic::Types::ApiError
|
|
284
284
|
}
|
|
285
285
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
286
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
286
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
287
287
|
end
|
|
288
288
|
end
|
|
289
289
|
|
|
@@ -323,7 +323,7 @@ module Schematic
|
|
|
323
323
|
500 => Schematic::Types::ApiError
|
|
324
324
|
}
|
|
325
325
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
326
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
326
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
327
327
|
end
|
|
328
328
|
end
|
|
329
329
|
|
|
@@ -363,7 +363,7 @@ module Schematic
|
|
|
363
363
|
500 => Schematic::Types::ApiError
|
|
364
364
|
}
|
|
365
365
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
366
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
366
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
367
367
|
end
|
|
368
368
|
end
|
|
369
369
|
|
|
@@ -406,7 +406,7 @@ module Schematic
|
|
|
406
406
|
500 => Schematic::Types::ApiError
|
|
407
407
|
}
|
|
408
408
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
409
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
409
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
410
410
|
end
|
|
411
411
|
end
|
|
412
412
|
|
|
@@ -449,7 +449,7 @@ module Schematic
|
|
|
449
449
|
500 => Schematic::Types::ApiError
|
|
450
450
|
}
|
|
451
451
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
452
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
452
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
453
453
|
end
|
|
454
454
|
end
|
|
455
455
|
|
|
@@ -492,7 +492,7 @@ module Schematic
|
|
|
492
492
|
500 => Schematic::Types::ApiError
|
|
493
493
|
}
|
|
494
494
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
495
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
495
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
496
496
|
end
|
|
497
497
|
end
|
|
498
498
|
|
|
@@ -535,7 +535,7 @@ module Schematic
|
|
|
535
535
|
500 => Schematic::Types::ApiError
|
|
536
536
|
}
|
|
537
537
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
538
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
538
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
539
539
|
end
|
|
540
540
|
end
|
|
541
541
|
|
|
@@ -575,7 +575,7 @@ module Schematic
|
|
|
575
575
|
500 => Schematic::Types::ApiError
|
|
576
576
|
}
|
|
577
577
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
578
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
578
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
579
579
|
end
|
|
580
580
|
end
|
|
581
581
|
|
|
@@ -618,7 +618,7 @@ module Schematic
|
|
|
618
618
|
500 => Schematic::Types::ApiError
|
|
619
619
|
}
|
|
620
620
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
621
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
621
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
622
622
|
end
|
|
623
623
|
end
|
|
624
624
|
end
|
|
@@ -35,7 +35,7 @@ module Schematic
|
|
|
35
35
|
@default_headers = {
|
|
36
36
|
"X-Fern-Language": "Ruby",
|
|
37
37
|
"X-Fern-SDK-Name": "schematic",
|
|
38
|
-
"X-Fern-SDK-Version":
|
|
38
|
+
"X-Fern-SDK-Version": Schematic::VERSION
|
|
39
39
|
}.merge(headers)
|
|
40
40
|
@overridable_headers = overridable_headers.to_set { |name| name.to_s.downcase }
|
|
41
41
|
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
|
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
|
|
|
@@ -112,7 +112,7 @@ module Schematic
|
|
|
112
112
|
500 => Schematic::Types::ApiError
|
|
113
113
|
}
|
|
114
114
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
115
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
115
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -168,7 +168,7 @@ module Schematic
|
|
|
168
168
|
500 => Schematic::Types::ApiError
|
|
169
169
|
}
|
|
170
170
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
171
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
171
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
172
172
|
end
|
|
173
173
|
end
|
|
174
174
|
end
|
|
@@ -52,7 +52,7 @@ module Schematic
|
|
|
52
52
|
500 => Schematic::Types::ApiError
|
|
53
53
|
}
|
|
54
54
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
55
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
55
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
@@ -123,7 +123,7 @@ module Schematic
|
|
|
123
123
|
500 => Schematic::Types::ApiError
|
|
124
124
|
}
|
|
125
125
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
126
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
126
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
127
127
|
end
|
|
128
128
|
end
|
|
129
129
|
|
|
@@ -200,7 +200,7 @@ module Schematic
|
|
|
200
200
|
500 => Schematic::Types::ApiError
|
|
201
201
|
}
|
|
202
202
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
203
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
203
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
204
204
|
end
|
|
205
205
|
end
|
|
206
206
|
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
|
|
|
@@ -110,7 +110,7 @@ module Schematic
|
|
|
110
110
|
500 => Schematic::Types::ApiError
|
|
111
111
|
}
|
|
112
112
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
113
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
113
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
|
|
@@ -171,7 +171,7 @@ module Schematic
|
|
|
171
171
|
500 => Schematic::Types::ApiError
|
|
172
172
|
}
|
|
173
173
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
174
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
174
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
175
175
|
end
|
|
176
176
|
end
|
|
177
177
|
|
|
@@ -235,7 +235,7 @@ module Schematic
|
|
|
235
235
|
500 => Schematic::Types::ApiError
|
|
236
236
|
}
|
|
237
237
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
238
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
238
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
239
239
|
end
|
|
240
240
|
end
|
|
241
241
|
|
|
@@ -283,7 +283,7 @@ module Schematic
|
|
|
283
283
|
500 => Schematic::Types::ApiError
|
|
284
284
|
}
|
|
285
285
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
286
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
286
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
287
287
|
end
|
|
288
288
|
end
|
|
289
289
|
|
|
@@ -325,7 +325,7 @@ module Schematic
|
|
|
325
325
|
500 => Schematic::Types::ApiError
|
|
326
326
|
}
|
|
327
327
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
328
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
328
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
329
329
|
end
|
|
330
330
|
end
|
|
331
331
|
|
|
@@ -368,7 +368,7 @@ module Schematic
|
|
|
368
368
|
500 => Schematic::Types::ApiError
|
|
369
369
|
}
|
|
370
370
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
371
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
371
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
372
372
|
end
|
|
373
373
|
end
|
|
374
374
|
|
|
@@ -416,7 +416,7 @@ module Schematic
|
|
|
416
416
|
500 => Schematic::Types::ApiError
|
|
417
417
|
}
|
|
418
418
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
419
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
419
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
420
420
|
end
|
|
421
421
|
end
|
|
422
422
|
|
|
@@ -467,7 +467,7 @@ module Schematic
|
|
|
467
467
|
500 => Schematic::Types::ApiError
|
|
468
468
|
}
|
|
469
469
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
470
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
470
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
471
471
|
end
|
|
472
472
|
end
|
|
473
473
|
|
|
@@ -531,7 +531,7 @@ module Schematic
|
|
|
531
531
|
500 => Schematic::Types::ApiError
|
|
532
532
|
}
|
|
533
533
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
534
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
534
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
535
535
|
end
|
|
536
536
|
end
|
|
537
537
|
|
|
@@ -578,7 +578,7 @@ module Schematic
|
|
|
578
578
|
500 => Schematic::Types::ApiError
|
|
579
579
|
}
|
|
580
580
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
581
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
581
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
582
582
|
end
|
|
583
583
|
end
|
|
584
584
|
end
|
|
@@ -57,7 +57,7 @@ module Schematic
|
|
|
57
57
|
500 => Schematic::Types::ApiError
|
|
58
58
|
}
|
|
59
59
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
60
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
60
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
@@ -130,7 +130,7 @@ module Schematic
|
|
|
130
130
|
500 => Schematic::Types::ApiError
|
|
131
131
|
}
|
|
132
132
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
133
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
133
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
134
134
|
end
|
|
135
135
|
end
|
|
136
136
|
|
|
@@ -182,7 +182,7 @@ module Schematic
|
|
|
182
182
|
500 => Schematic::Types::ApiError
|
|
183
183
|
}
|
|
184
184
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
185
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
185
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
186
186
|
end
|
|
187
187
|
end
|
|
188
188
|
|
|
@@ -233,7 +233,7 @@ module Schematic
|
|
|
233
233
|
500 => Schematic::Types::ApiError
|
|
234
234
|
}
|
|
235
235
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
236
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
236
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
237
237
|
end
|
|
238
238
|
end
|
|
239
239
|
|
|
@@ -279,7 +279,7 @@ module Schematic
|
|
|
279
279
|
500 => Schematic::Types::ApiError
|
|
280
280
|
}
|
|
281
281
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
282
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
282
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
283
283
|
end
|
|
284
284
|
end
|
|
285
285
|
|
|
@@ -385,7 +385,7 @@ module Schematic
|
|
|
385
385
|
500 => Schematic::Types::ApiError
|
|
386
386
|
}
|
|
387
387
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
388
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
388
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
389
389
|
end
|
|
390
390
|
end
|
|
391
391
|
|
|
@@ -431,7 +431,7 @@ module Schematic
|
|
|
431
431
|
500 => Schematic::Types::ApiError
|
|
432
432
|
}
|
|
433
433
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
434
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
434
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
435
435
|
end
|
|
436
436
|
end
|
|
437
437
|
|
|
@@ -481,7 +481,7 @@ module Schematic
|
|
|
481
481
|
500 => Schematic::Types::ApiError
|
|
482
482
|
}
|
|
483
483
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
484
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
484
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
485
485
|
end
|
|
486
486
|
end
|
|
487
487
|
|
|
@@ -531,7 +531,7 @@ module Schematic
|
|
|
531
531
|
500 => Schematic::Types::ApiError
|
|
532
532
|
}
|
|
533
533
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
534
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
534
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
535
535
|
end
|
|
536
536
|
end
|
|
537
537
|
|
|
@@ -574,7 +574,7 @@ module Schematic
|
|
|
574
574
|
500 => Schematic::Types::ApiError
|
|
575
575
|
}
|
|
576
576
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
577
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
577
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
578
578
|
end
|
|
579
579
|
end
|
|
580
580
|
|
|
@@ -625,7 +625,7 @@ module Schematic
|
|
|
625
625
|
500 => Schematic::Types::ApiError
|
|
626
626
|
}
|
|
627
627
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
628
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
628
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
629
629
|
end
|
|
630
630
|
end
|
|
631
631
|
|
|
@@ -673,7 +673,7 @@ module Schematic
|
|
|
673
673
|
500 => Schematic::Types::ApiError
|
|
674
674
|
}
|
|
675
675
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
676
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
676
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
677
677
|
end
|
|
678
678
|
end
|
|
679
679
|
|
|
@@ -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
|
|
|
@@ -789,7 +789,7 @@ module Schematic
|
|
|
789
789
|
500 => Schematic::Types::ApiError
|
|
790
790
|
}
|
|
791
791
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
792
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
792
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
793
793
|
end
|
|
794
794
|
end
|
|
795
795
|
|
|
@@ -895,7 +895,7 @@ module Schematic
|
|
|
895
895
|
500 => Schematic::Types::ApiError
|
|
896
896
|
}
|
|
897
897
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
898
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
898
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
899
899
|
end
|
|
900
900
|
end
|
|
901
901
|
|
|
@@ -947,7 +947,7 @@ module Schematic
|
|
|
947
947
|
500 => Schematic::Types::ApiError
|
|
948
948
|
}
|
|
949
949
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
950
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
950
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
951
951
|
end
|
|
952
952
|
end
|
|
953
953
|
|
|
@@ -998,7 +998,7 @@ module Schematic
|
|
|
998
998
|
500 => Schematic::Types::ApiError
|
|
999
999
|
}
|
|
1000
1000
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1001
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1001
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1002
1002
|
end
|
|
1003
1003
|
end
|
|
1004
1004
|
|
|
@@ -1048,7 +1048,7 @@ module Schematic
|
|
|
1048
1048
|
500 => Schematic::Types::ApiError
|
|
1049
1049
|
}
|
|
1050
1050
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1051
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1051
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1052
1052
|
end
|
|
1053
1053
|
end
|
|
1054
1054
|
|
|
@@ -1099,7 +1099,7 @@ module Schematic
|
|
|
1099
1099
|
500 => Schematic::Types::ApiError
|
|
1100
1100
|
}
|
|
1101
1101
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1102
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1102
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1103
1103
|
end
|
|
1104
1104
|
end
|
|
1105
1105
|
|
|
@@ -1150,7 +1150,7 @@ module Schematic
|
|
|
1150
1150
|
500 => Schematic::Types::ApiError
|
|
1151
1151
|
}
|
|
1152
1152
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
1153
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
1153
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
1154
1154
|
end
|
|
1155
1155
|
end
|
|
1156
1156
|
end
|
|
@@ -64,7 +64,7 @@ module Schematic
|
|
|
64
64
|
500 => Schematic::Types::ApiError
|
|
65
65
|
}
|
|
66
66
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
67
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
67
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
70
|
|
|
@@ -112,7 +112,7 @@ module Schematic
|
|
|
112
112
|
500 => Schematic::Types::ApiError
|
|
113
113
|
}
|
|
114
114
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
115
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
115
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -154,7 +154,7 @@ module Schematic
|
|
|
154
154
|
500 => Schematic::Types::ApiError
|
|
155
155
|
}
|
|
156
156
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
157
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
157
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
158
158
|
end
|
|
159
159
|
end
|
|
160
160
|
|
|
@@ -202,7 +202,7 @@ module Schematic
|
|
|
202
202
|
500 => Schematic::Types::ApiError
|
|
203
203
|
}
|
|
204
204
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
205
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
205
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
206
206
|
end
|
|
207
207
|
end
|
|
208
208
|
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class AccountInferenceCostRateResponseData < Internal::Types::Model
|
|
8
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :environment_id, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :rates, -> { Internal::Types::Hash[String, Float] }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :repriced_at, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :response_model, -> { String }, optional: false, nullable: false
|
|
23
|
+
|
|
24
|
+
field :starting_at, -> { String }, optional: false, nullable: false
|
|
25
|
+
|
|
26
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -9,6 +9,8 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :email, -> { String }, optional: true, nullable: false
|
|
11
11
|
|
|
12
|
+
field :legal_name, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
12
14
|
field :phone, -> { String }, optional: true, nullable: false
|
|
13
15
|
|
|
14
16
|
field :tax_ids, -> { Internal::Types::Array[Schematic::Types::BillingInvoiceTaxIdResponseData] }, optional: false, nullable: false
|
|
@@ -41,6 +41,8 @@ module Schematic
|
|
|
41
41
|
|
|
42
42
|
field :number, -> { String }, optional: true, nullable: false
|
|
43
43
|
|
|
44
|
+
field :payment_method_id, -> { String }, optional: true, nullable: false
|
|
45
|
+
|
|
44
46
|
field :pdf_url, -> { String }, optional: true, nullable: false
|
|
45
47
|
|
|
46
48
|
field :period_end, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class BillingMovedToDefaultPlanResponseData < Internal::Types::Model
|
|
8
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :plan_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :voided_invoices, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -5,7 +5,11 @@ require_relative "../../schematic"
|
|
|
5
5
|
module Schematic
|
|
6
6
|
module Types
|
|
7
7
|
class BillingSettingsResponseData < Internal::Types::Model
|
|
8
|
+
field :default_collector, -> { Schematic::Types::Collector }, optional: false, nullable: false
|
|
9
|
+
|
|
8
10
|
field :default_provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :invoice_reply_to_email, -> { String }, optional: true, nullable: false
|
|
9
13
|
end
|
|
10
14
|
end
|
|
11
15
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
module BillingSubscriptionPauseBehavior
|
|
8
|
+
extend Schematic::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
KEEP_AS_DRAFT = "keep_as_draft"
|
|
11
|
+
MARK_UNCOLLECTIBLE = "mark_uncollectible"
|
|
12
|
+
VOID = "void"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -31,6 +31,12 @@ module Schematic
|
|
|
31
31
|
|
|
32
32
|
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
33
33
|
|
|
34
|
+
field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :pause_resumes_at, -> { Integer }, optional: true, nullable: false
|
|
37
|
+
|
|
38
|
+
field :paused_at, -> { String }, optional: true, nullable: false
|
|
39
|
+
|
|
34
40
|
field :period_end, -> { Integer }, optional: false, nullable: false
|
|
35
41
|
|
|
36
42
|
field :period_start, -> { Integer }, optional: false, nullable: false
|
|
@@ -35,6 +35,12 @@ module Schematic
|
|
|
35
35
|
|
|
36
36
|
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
37
37
|
|
|
38
|
+
field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
|
|
39
|
+
|
|
40
|
+
field :pause_resumes_at, -> { Integer }, optional: true, nullable: false
|
|
41
|
+
|
|
42
|
+
field :paused_at, -> { String }, optional: true, nullable: false
|
|
43
|
+
|
|
38
44
|
field :payment_method, -> { Schematic::Types::PaymentMethodResponseData }, optional: true, nullable: false
|
|
39
45
|
|
|
40
46
|
field :period_end, -> { Integer }, optional: false, nullable: false
|