schematichq 1.4.9 → 1.4.10
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 +2 -2
- data/.fern/replay.lock +344 -2
- data/WASM_VERSION +1 -1
- data/lib/schematic/catalogs/client.rb +480 -0
- data/lib/schematic/catalogs/types/create_catalog_request_body.rb +13 -0
- data/lib/schematic/catalogs/types/create_catalog_response.rb +12 -0
- data/lib/schematic/catalogs/types/delete_catalog_response.rb +12 -0
- data/lib/schematic/catalogs/types/get_catalog_response.rb +12 -0
- data/lib/schematic/catalogs/types/get_configuration_response.rb +12 -0
- data/lib/schematic/catalogs/types/get_credit_bundles_in_catalog_response.rb +12 -0
- data/lib/schematic/catalogs/types/get_derived_features_response.rb +12 -0
- data/lib/schematic/catalogs/types/get_plans_in_catalog_response.rb +12 -0
- data/lib/schematic/catalogs/types/list_catalogs_params.rb +15 -0
- data/lib/schematic/catalogs/types/list_catalogs_request.rb +14 -0
- data/lib/schematic/catalogs/types/list_catalogs_response.rb +12 -0
- data/lib/schematic/catalogs/types/update_catalog_configuration_request_body.rb +20 -0
- data/lib/schematic/catalogs/types/update_catalog_request_body.rb +14 -0
- data/lib/schematic/catalogs/types/update_catalog_response.rb +12 -0
- data/lib/schematic/catalogs/types/update_configuration_response.rb +12 -0
- data/lib/schematic/checkout/client.rb +69 -0
- data/lib/schematic/checkout/types/get_company_billing_details_response.rb +12 -0
- data/lib/schematic/checkout/types/update_company_billing_details_request_body.rb +15 -0
- data/lib/schematic/checkout/types/update_company_billing_details_response.rb +12 -0
- data/lib/schematic/client.rb +6 -1
- data/lib/schematic/components/client.rb +37 -0
- data/lib/schematic/components/types/bind_catalog_request_body.rb +12 -0
- data/lib/schematic/components/types/bind_catalog_response.rb +12 -0
- data/lib/schematic/dataexports/client.rb +76 -0
- data/lib/schematic/dataexports/types/create_data_export_request_body.rb +3 -3
- data/lib/schematic/dataexports/types/get_data_export_response.rb +12 -0
- data/lib/schematic/dataexports/types/list_data_exports_params.rb +15 -0
- data/lib/schematic/dataexports/types/list_data_exports_request.rb +14 -0
- data/lib/schematic/dataexports/types/list_data_exports_response.rb +12 -0
- data/lib/schematic/planbundle/types/create_custom_plan_bundle_request_body.rb +1 -0
- data/lib/schematic/types/audit_log_export_metadata.rb +13 -0
- data/lib/schematic/types/catalog_config_ordered_bundle.rb +9 -0
- data/lib/schematic/types/catalog_config_ordered_bundle_response_data.rb +9 -0
- data/lib/schematic/types/catalog_config_ordered_entitlement.rb +10 -0
- data/lib/schematic/types/catalog_config_ordered_entitlement_response_data.rb +10 -0
- data/lib/schematic/types/catalog_config_ordered_plan.rb +10 -0
- data/lib/schematic/types/catalog_config_ordered_plan_response_data.rb +10 -0
- data/lib/schematic/types/catalog_configuration_response_data.rb +19 -0
- data/lib/schematic/types/catalog_credit_bundle_i_ds_response_data.rb +9 -0
- data/lib/schematic/types/catalog_derived_feature_response_data.rb +11 -0
- data/lib/schematic/types/catalog_derived_features_response_data.rb +9 -0
- data/lib/schematic/types/catalog_plan_i_ds_response_data.rb +9 -0
- data/lib/schematic/types/catalog_response_data.rb +22 -0
- data/lib/schematic/types/company_billing_address_view.rb +14 -0
- data/lib/schematic/types/company_billing_checkout_settings.rb +11 -0
- data/lib/schematic/types/company_billing_details_response_data.rb +13 -0
- data/lib/schematic/types/company_billing_details_view.rb +13 -0
- data/lib/schematic/types/company_feature_usage_export_metadata.rb +25 -0
- data/lib/schematic/types/company_plan_detail_response_data.rb +1 -0
- data/lib/schematic/types/component_response_data.rb +1 -0
- data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +1 -0
- data/lib/schematic/types/credits_auto_topup_success.rb +12 -0
- data/lib/schematic/types/credits_credit_purchase_success.rb +14 -0
- data/lib/schematic/types/credits_webhook_company_summary.rb +10 -0
- data/lib/schematic/types/credits_webhook_credit_summary.rb +10 -0
- data/lib/schematic/types/customer_billing_address.rb +14 -0
- data/lib/schematic/types/data_export_metadata.rb +14 -0
- data/lib/schematic/types/data_export_output_file_type.rb +3 -14
- data/lib/schematic/types/data_export_response_data.rb +3 -3
- data/lib/schematic/types/data_export_type.rb +3 -14
- data/lib/schematic/types/feature_entitlement.rb +1 -0
- data/lib/schematic/types/plan_catalog_membership_response_data.rb +10 -0
- data/lib/schematic/types/plan_detail_response_data.rb +1 -0
- data/lib/schematic/types/plan_group_plan_detail_response_data.rb +1 -0
- data/lib/schematic/types/plan_view_public_response_data.rb +1 -0
- data/lib/schematic/types/preview_subscription_discount_response_data.rb +19 -0
- data/lib/schematic/types/preview_subscription_finance_response_data.rb +2 -0
- data/lib/schematic/types/rulesengine_feature_entitlement.rb +1 -0
- data/lib/schematic/types/rulesengine_warning_tier.rb +10 -0
- data/lib/schematic/types/upsert_company_request_body.rb +2 -0
- data/lib/schematic/types/warning_tier.rb +10 -0
- data/lib/schematic/types/webhook_request_type.rb +2 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic.rb +91 -38
- data/reference.md +1231 -48
- metadata +55 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Catalogs
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateCatalogResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Schematic::Types::CatalogResponseData }, optional: false, nullable: false
|
|
8
|
+
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Catalogs
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateConfigurationResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Schematic::Types::CatalogResponseData }, optional: false, nullable: false
|
|
8
|
+
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -106,6 +106,75 @@ module Schematic
|
|
|
106
106
|
end
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
+
# @param request_options [Hash]
|
|
110
|
+
# @param params [Hash]
|
|
111
|
+
# @option request_options [String] :base_url
|
|
112
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
113
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
114
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
115
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
116
|
+
# @option params [String] :company_id
|
|
117
|
+
#
|
|
118
|
+
# @return [Schematic::Checkout::Types::GetCompanyBillingDetailsResponse]
|
|
119
|
+
def get_company_billing_details(request_options: {}, **params)
|
|
120
|
+
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
121
|
+
request = Schematic::Internal::JSON::Request.new(
|
|
122
|
+
base_url: request_options[:base_url],
|
|
123
|
+
method: "GET",
|
|
124
|
+
path: "companies/#{URI.encode_uri_component(params[:company_id].to_s)}/billing-details",
|
|
125
|
+
request_options: request_options
|
|
126
|
+
)
|
|
127
|
+
begin
|
|
128
|
+
response = @client.send(request)
|
|
129
|
+
rescue Net::HTTPRequestTimeout
|
|
130
|
+
raise Schematic::Errors::TimeoutError
|
|
131
|
+
end
|
|
132
|
+
code = response.code.to_i
|
|
133
|
+
if code.between?(200, 299)
|
|
134
|
+
Schematic::Checkout::Types::GetCompanyBillingDetailsResponse.load(response.body)
|
|
135
|
+
else
|
|
136
|
+
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
137
|
+
raise error_class.new(response.body, code: code)
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# @param request_options [Hash]
|
|
142
|
+
# @param params [Schematic::Checkout::Types::UpdateCompanyBillingDetailsRequestBody]
|
|
143
|
+
# @option request_options [String] :base_url
|
|
144
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
145
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
146
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
147
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
148
|
+
# @option params [String] :company_id
|
|
149
|
+
#
|
|
150
|
+
# @return [Schematic::Checkout::Types::UpdateCompanyBillingDetailsResponse]
|
|
151
|
+
def update_company_billing_details(request_options: {}, **params)
|
|
152
|
+
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
153
|
+
request_data = Schematic::Checkout::Types::UpdateCompanyBillingDetailsRequestBody.new(params).to_h
|
|
154
|
+
non_body_param_names = ["company_id"]
|
|
155
|
+
body = request_data.except(*non_body_param_names)
|
|
156
|
+
|
|
157
|
+
request = Schematic::Internal::JSON::Request.new(
|
|
158
|
+
base_url: request_options[:base_url],
|
|
159
|
+
method: "PUT",
|
|
160
|
+
path: "companies/#{URI.encode_uri_component(params[:company_id].to_s)}/billing-details",
|
|
161
|
+
body: body,
|
|
162
|
+
request_options: request_options
|
|
163
|
+
)
|
|
164
|
+
begin
|
|
165
|
+
response = @client.send(request)
|
|
166
|
+
rescue Net::HTTPRequestTimeout
|
|
167
|
+
raise Schematic::Errors::TimeoutError
|
|
168
|
+
end
|
|
169
|
+
code = response.code.to_i
|
|
170
|
+
if code.between?(200, 299)
|
|
171
|
+
Schematic::Checkout::Types::UpdateCompanyBillingDetailsResponse.load(response.body)
|
|
172
|
+
else
|
|
173
|
+
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
174
|
+
raise error_class.new(response.body, code: code)
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
109
178
|
# @param request_options [Hash]
|
|
110
179
|
# @param params [Schematic::Types::ManagePlanRequest]
|
|
111
180
|
# @option request_options [String] :base_url
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Checkout
|
|
5
|
+
module Types
|
|
6
|
+
class GetCompanyBillingDetailsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Schematic::Types::CompanyBillingDetailsResponseData }, optional: false, nullable: false
|
|
8
|
+
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Checkout
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateCompanyBillingDetailsRequestBody < Internal::Types::Model
|
|
7
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :address, -> { Schematic::Types::CustomerBillingAddress }, optional: true, nullable: false
|
|
9
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :values, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldValue] }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Checkout
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateCompanyBillingDetailsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Schematic::Types::CompanyBillingDetailsResponseData }, optional: false, nullable: false
|
|
8
|
+
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
data/lib/schematic/client.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Schematic
|
|
|
10
10
|
@raw_client = Schematic::Internal::Http::RawClient.new(
|
|
11
11
|
base_url: base_url || Schematic::Environment::DEFAULT,
|
|
12
12
|
headers: {
|
|
13
|
-
"User-Agent" => "schematichq/1.4.
|
|
13
|
+
"User-Agent" => "schematichq/1.4.10",
|
|
14
14
|
"X-Fern-Language" => "Ruby",
|
|
15
15
|
"X-Schematic-Api-Key" => api_key.to_s
|
|
16
16
|
}
|
|
@@ -32,6 +32,11 @@ module Schematic
|
|
|
32
32
|
@credits ||= Schematic::Credits::Client.new(client: @raw_client)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# @return [Schematic::Catalogs::Client]
|
|
36
|
+
def catalogs
|
|
37
|
+
@catalogs ||= Schematic::Catalogs::Client.new(client: @raw_client)
|
|
38
|
+
end
|
|
39
|
+
|
|
35
40
|
# @return [Schematic::Checkout::Client]
|
|
36
41
|
def checkout
|
|
37
42
|
@checkout ||= Schematic::Checkout::Client.new(client: @raw_client)
|
|
@@ -185,6 +185,43 @@ module Schematic
|
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
187
|
|
|
188
|
+
# @param request_options [Hash]
|
|
189
|
+
# @param params [Schematic::Components::Types::BindCatalogRequestBody]
|
|
190
|
+
# @option request_options [String] :base_url
|
|
191
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
192
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
193
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
194
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
195
|
+
# @option params [String] :component_id
|
|
196
|
+
#
|
|
197
|
+
# @return [Schematic::Components::Types::BindCatalogResponse]
|
|
198
|
+
def bind_catalog(request_options: {}, **params)
|
|
199
|
+
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
200
|
+
request_data = Schematic::Components::Types::BindCatalogRequestBody.new(params).to_h
|
|
201
|
+
non_body_param_names = ["component_id"]
|
|
202
|
+
body = request_data.except(*non_body_param_names)
|
|
203
|
+
|
|
204
|
+
request = Schematic::Internal::JSON::Request.new(
|
|
205
|
+
base_url: request_options[:base_url],
|
|
206
|
+
method: "PUT",
|
|
207
|
+
path: "components/#{URI.encode_uri_component(params[:component_id].to_s)}/catalog",
|
|
208
|
+
body: body,
|
|
209
|
+
request_options: request_options
|
|
210
|
+
)
|
|
211
|
+
begin
|
|
212
|
+
response = @client.send(request)
|
|
213
|
+
rescue Net::HTTPRequestTimeout
|
|
214
|
+
raise Schematic::Errors::TimeoutError
|
|
215
|
+
end
|
|
216
|
+
code = response.code.to_i
|
|
217
|
+
if code.between?(200, 299)
|
|
218
|
+
Schematic::Components::Types::BindCatalogResponse.load(response.body)
|
|
219
|
+
else
|
|
220
|
+
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
221
|
+
raise error_class.new(response.body, code: code)
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
188
225
|
# @param request_options [Hash]
|
|
189
226
|
# @param params [Hash]
|
|
190
227
|
# @option request_options [String] :base_url
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Components
|
|
5
|
+
module Types
|
|
6
|
+
class BindCatalogRequestBody < Internal::Types::Model
|
|
7
|
+
field :component_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :catalog_id, -> { String }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Components
|
|
5
|
+
module Types
|
|
6
|
+
class BindCatalogResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Schematic::Types::ComponentResponseData }, optional: false, nullable: false
|
|
8
|
+
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -10,6 +10,50 @@ module Schematic
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# @param request_options [Hash]
|
|
14
|
+
# @param params [Hash]
|
|
15
|
+
# @option request_options [String] :base_url
|
|
16
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
17
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
18
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
19
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
20
|
+
# @option params [Schematic::Types::DataExportType, nil] :export_type
|
|
21
|
+
# @option params [Schematic::Types::DataExportStatus, nil] :status
|
|
22
|
+
# @option params [Integer, nil] :limit
|
|
23
|
+
# @option params [Integer, nil] :offset
|
|
24
|
+
#
|
|
25
|
+
# @return [Schematic::Dataexports::Types::ListDataExportsResponse]
|
|
26
|
+
def list_data_exports(request_options: {}, **params)
|
|
27
|
+
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
28
|
+
query_param_names = %i[export_type status limit offset]
|
|
29
|
+
query_params = {}
|
|
30
|
+
query_params["export_type"] = params[:export_type] if params.key?(:export_type)
|
|
31
|
+
query_params["status"] = params[:status] if params.key?(:status)
|
|
32
|
+
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
33
|
+
query_params["offset"] = params[:offset] if params.key?(:offset)
|
|
34
|
+
params.except(*query_param_names)
|
|
35
|
+
|
|
36
|
+
request = Schematic::Internal::JSON::Request.new(
|
|
37
|
+
base_url: request_options[:base_url],
|
|
38
|
+
method: "GET",
|
|
39
|
+
path: "data-exports",
|
|
40
|
+
query: query_params,
|
|
41
|
+
request_options: request_options
|
|
42
|
+
)
|
|
43
|
+
begin
|
|
44
|
+
response = @client.send(request)
|
|
45
|
+
rescue Net::HTTPRequestTimeout
|
|
46
|
+
raise Schematic::Errors::TimeoutError
|
|
47
|
+
end
|
|
48
|
+
code = response.code.to_i
|
|
49
|
+
if code.between?(200, 299)
|
|
50
|
+
Schematic::Dataexports::Types::ListDataExportsResponse.load(response.body)
|
|
51
|
+
else
|
|
52
|
+
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
53
|
+
raise error_class.new(response.body, code: code)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
13
57
|
# @param request_options [Hash]
|
|
14
58
|
# @param params [Schematic::Dataexports::Types::CreateDataExportRequestBody]
|
|
15
59
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +86,38 @@ module Schematic
|
|
|
42
86
|
end
|
|
43
87
|
end
|
|
44
88
|
|
|
89
|
+
# @param request_options [Hash]
|
|
90
|
+
# @param params [Hash]
|
|
91
|
+
# @option request_options [String] :base_url
|
|
92
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
93
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
94
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
95
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
96
|
+
# @option params [String] :data_export_id
|
|
97
|
+
#
|
|
98
|
+
# @return [Schematic::Dataexports::Types::GetDataExportResponse]
|
|
99
|
+
def get_data_export(request_options: {}, **params)
|
|
100
|
+
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
101
|
+
request = Schematic::Internal::JSON::Request.new(
|
|
102
|
+
base_url: request_options[:base_url],
|
|
103
|
+
method: "GET",
|
|
104
|
+
path: "data-exports/#{URI.encode_uri_component(params[:data_export_id].to_s)}",
|
|
105
|
+
request_options: request_options
|
|
106
|
+
)
|
|
107
|
+
begin
|
|
108
|
+
response = @client.send(request)
|
|
109
|
+
rescue Net::HTTPRequestTimeout
|
|
110
|
+
raise Schematic::Errors::TimeoutError
|
|
111
|
+
end
|
|
112
|
+
code = response.code.to_i
|
|
113
|
+
if code.between?(200, 299)
|
|
114
|
+
Schematic::Dataexports::Types::GetDataExportResponse.load(response.body)
|
|
115
|
+
else
|
|
116
|
+
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
117
|
+
raise error_class.new(response.body, code: code)
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
45
121
|
# @param request_options [Hash]
|
|
46
122
|
# @param params [Hash]
|
|
47
123
|
# @option request_options [String] :base_url
|
|
@@ -4,9 +4,9 @@ module Schematic
|
|
|
4
4
|
module Dataexports
|
|
5
5
|
module Types
|
|
6
6
|
class CreateDataExportRequestBody < Internal::Types::Model
|
|
7
|
-
field :export_type, -> {
|
|
8
|
-
field :metadata, -> {
|
|
9
|
-
field :output_file_type, -> {
|
|
7
|
+
field :export_type, -> { Schematic::Types::DataExportType }, optional: false, nullable: false
|
|
8
|
+
field :metadata, -> { Schematic::Types::DataExportMetadata }, optional: true, nullable: false
|
|
9
|
+
field :output_file_type, -> { Schematic::Types::DataExportOutputFileType }, optional: false, nullable: false
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Dataexports
|
|
5
|
+
module Types
|
|
6
|
+
class GetDataExportResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Schematic::Types::DataExportResponseData }, optional: false, nullable: false
|
|
8
|
+
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Dataexports
|
|
5
|
+
module Types
|
|
6
|
+
# Input parameters
|
|
7
|
+
class ListDataExportsParams < Internal::Types::Model
|
|
8
|
+
field :export_type, -> { Schematic::Types::DataExportType }, optional: true, nullable: false
|
|
9
|
+
field :limit, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
field :offset, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
field :status, -> { Schematic::Types::DataExportStatus }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Dataexports
|
|
5
|
+
module Types
|
|
6
|
+
class ListDataExportsRequest < Internal::Types::Model
|
|
7
|
+
field :export_type, -> { Schematic::Types::DataExportType }, optional: true, nullable: false
|
|
8
|
+
field :status, -> { Schematic::Types::DataExportStatus }, optional: true, nullable: false
|
|
9
|
+
field :limit, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
field :offset, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Dataexports
|
|
5
|
+
module Types
|
|
6
|
+
class ListDataExportsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Schematic::Types::DataExportResponseData] }, optional: false, nullable: false
|
|
8
|
+
field :params, -> { Schematic::Dataexports::Types::ListDataExportsParams }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class CreateCustomPlanBundleRequestBody < Internal::Types::Model
|
|
7
7
|
field :billing_product, -> { Schematic::Types::UpsertBillingProductRequestBody }, optional: true, nullable: false
|
|
8
|
+
field :credit_grants, -> { Internal::Types::Array[Schematic::Types::PlanBundleCreditGrantRequestBody] }, optional: true, nullable: false
|
|
8
9
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::PlanBundleEntitlementRequestBody] }, optional: false, nullable: false
|
|
9
10
|
field :plan, -> { Schematic::Types::CreateCustomPlanBundlePlanRequestBody }, optional: true, nullable: false
|
|
10
11
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class AuditLogExportMetadata < Internal::Types::Model
|
|
6
|
+
field :actor_type, -> { String }, optional: true, nullable: false
|
|
7
|
+
field :end_time, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :notification_email_recipient_email_addresses, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
9
|
+
field :q, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :start_time, -> { String }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CatalogConfigOrderedEntitlement < Internal::Types::Model
|
|
6
|
+
field :plan_entitlement_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :visible, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CatalogConfigOrderedEntitlementResponseData < Internal::Types::Model
|
|
6
|
+
field :plan_entitlement_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CatalogConfigOrderedPlan < Internal::Types::Model
|
|
6
|
+
field :entitlements, -> { Internal::Types::Array[Schematic::Types::CatalogConfigOrderedEntitlement] }, optional: true, nullable: false
|
|
7
|
+
field :plan_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CatalogConfigOrderedPlanResponseData < Internal::Types::Model
|
|
6
|
+
field :entitlements, -> { Internal::Types::Array[Schematic::Types::CatalogConfigOrderedEntitlementResponseData] }, optional: false, nullable: false
|
|
7
|
+
field :plan_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CatalogConfigurationResponseData < Internal::Types::Model
|
|
6
|
+
field :add_ons, -> { Internal::Types::Array[Schematic::Types::PlanGroupPlanDetailResponseData] }, optional: false, nullable: false
|
|
7
|
+
field :custom_plan_cta_text, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :custom_plan_cta_url, -> { String }, optional: true, nullable: false
|
|
9
|
+
field :custom_plan_price_text, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :custom_plans_visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
11
|
+
field :ordered_add_ons, -> { Internal::Types::Array[Schematic::Types::CatalogConfigOrderedPlanResponseData] }, optional: false, nullable: false
|
|
12
|
+
field :ordered_bundles, -> { Internal::Types::Array[Schematic::Types::CatalogConfigOrderedBundleResponseData] }, optional: false, nullable: false
|
|
13
|
+
field :ordered_plans, -> { Internal::Types::Array[Schematic::Types::CatalogConfigOrderedPlanResponseData] }, optional: false, nullable: false
|
|
14
|
+
field :plans, -> { Internal::Types::Array[Schematic::Types::PlanGroupPlanDetailResponseData] }, optional: false, nullable: false
|
|
15
|
+
field :pricing_model, -> { String }, optional: true, nullable: false
|
|
16
|
+
field :pricing_url, -> { String }, optional: true, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CatalogDerivedFeatureResponseData < Internal::Types::Model
|
|
6
|
+
field :icon, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CatalogDerivedFeaturesResponseData < Internal::Types::Model
|
|
6
|
+
field :features, -> { Internal::Types::Array[Schematic::Types::CatalogDerivedFeatureResponseData] }, optional: false, nullable: false
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CatalogResponseData < Internal::Types::Model
|
|
6
|
+
field :account_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :custom_plan_cta_text, -> { String }, optional: true, nullable: false
|
|
9
|
+
field :custom_plan_cta_url, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :custom_plan_price_text, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :custom_plans_visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
13
|
+
field :environment_id, -> { String }, optional: false, nullable: false
|
|
14
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
15
|
+
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
16
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
17
|
+
field :pricing_model, -> { String }, optional: true, nullable: false
|
|
18
|
+
field :pricing_url, -> { String }, optional: true, nullable: false
|
|
19
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CompanyBillingAddressView < Internal::Types::Model
|
|
6
|
+
field :city, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :country, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :line_1, -> { String }, optional: false, nullable: false, api_name: "line1"
|
|
9
|
+
field :line_2, -> { String }, optional: false, nullable: false, api_name: "line2"
|
|
10
|
+
field :postal_code, -> { String }, optional: false, nullable: false
|
|
11
|
+
field :state, -> { String }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CompanyBillingCheckoutSettings < Internal::Types::Model
|
|
6
|
+
field :collect_address, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
7
|
+
field :collect_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
field :collect_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CompanyBillingDetailsResponseData < Internal::Types::Model
|
|
6
|
+
field :address, -> { Schematic::Types::CompanyBillingAddressView }, optional: true, nullable: false
|
|
7
|
+
field :checkout_settings, -> { Schematic::Types::CompanyBillingCheckoutSettings }, optional: false, nullable: false
|
|
8
|
+
field :custom_fields, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldWithValue] }, optional: false, nullable: false
|
|
9
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CompanyBillingDetailsView < Internal::Types::Model
|
|
6
|
+
field :address, -> { Schematic::Types::CompanyBillingAddressView }, optional: true, nullable: false
|
|
7
|
+
field :checkout_settings, -> { Schematic::Types::CompanyBillingCheckoutSettings }, optional: false, nullable: false
|
|
8
|
+
field :custom_fields, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldWithValue] }, optional: false, nullable: false
|
|
9
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|