nordlet 0.3.11 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/nordlet/account/types/me_account_response_billing.rb +8 -0
- data/lib/nordlet/account/types/me_account_response_billing_account_type.rb +14 -0
- data/lib/nordlet/bank/client.rb +96 -0
- data/lib/nordlet/bank/types/accounts_create_bank_request_type.rb +1 -0
- data/lib/nordlet/bank/types/accounts_create_bank_response_type.rb +1 -0
- data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item_type.rb +1 -0
- data/lib/nordlet/bank/types/accounts_update_bank_request_type.rb +1 -0
- data/lib/nordlet/bank/types/accounts_update_bank_response_type.rb +1 -0
- data/lib/nordlet/bank/types/securities_get_bank_request.rb +11 -0
- data/lib/nordlet/bank/types/securities_get_bank_response.rb +35 -0
- data/lib/nordlet/bank/types/securities_get_bank_response_operations_item.rb +51 -0
- data/lib/nordlet/bank/types/securities_get_bank_response_operations_item_status.rb +14 -0
- data/lib/nordlet/bank/types/securities_import_bank_request.rb +15 -0
- data/lib/nordlet/bank/types/securities_import_bank_response.rb +33 -0
- data/lib/nordlet/bank/types/securities_list_bank_request.rb +19 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_filter_item.rb +15 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_op.rb +18 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_value.rb +19 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_sort_item.rb +13 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/bank/types/securities_list_bank_response.rb +21 -0
- data/lib/nordlet/bank/types/securities_list_bank_response_rows_item.rb +33 -0
- data/lib/nordlet/billing/client.rb +192 -0
- data/lib/nordlet/billing/types/account_get_billing_response.rb +10 -0
- data/lib/nordlet/billing/types/account_get_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_get_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_get_billing_response_month_to_date.rb +2 -0
- data/lib/nordlet/billing/types/account_get_billing_response_plans_value.rb +2 -2
- data/lib/nordlet/billing/types/account_set_account_type_billing_request.rb +11 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_request_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_request.rb +13 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_request.rb +11 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +10 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_month_to_date.rb +2 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_plans_value.rb +2 -2
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_request.rb +11 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request.rb +13 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request_locale.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request_plan.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_response.rb +13 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_request.rb +11 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/topup_create_billing_request.rb +2 -0
- data/lib/nordlet/billing/types/topup_create_billing_request_return_to.rb +14 -0
- data/lib/nordlet/billing/types/usage_list_billing_response_rows_item_metric.rb +1 -0
- data/lib/nordlet/declarations/client.rb +1 -1
- data/lib/nordlet/ledger/client.rb +1 -1
- data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +8 -0
- data/lib/nordlet/partners/types/create_partners_request.rb +0 -4
- data/lib/nordlet/partners/types/create_partners_response.rb +0 -4
- data/lib/nordlet/partners/types/find_or_create_partners_request.rb +0 -4
- data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +0 -4
- data/lib/nordlet/partners/types/get_partners_response.rb +0 -4
- data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +0 -4
- data/lib/nordlet/partners/types/update_partners_request.rb +0 -4
- data/lib/nordlet/partners/types/update_partners_response.rb +0 -4
- data/lib/nordlet/sales/client.rb +161 -1
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request.rb +57 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +21 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response.rb +63 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_delete_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/invoice_templates_delete_sales_response.rb +11 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response.rb +63 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request.rb +19 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_op.rb +18 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_value.rb +19 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_sort_item.rb +13 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response.rb +21 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item.rb +63 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request.rb +59 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +21 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response.rb +63 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response_supply_type.rb +15 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +108 -0
- data/reference.md +1731 -621
- metadata +110 -2
|
@@ -74,6 +74,102 @@ module Nordlet
|
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
# @param request_options [Hash]
|
|
78
|
+
# @param params [Nordlet::Billing::Types::AccountSetAccountTypeBillingRequest]
|
|
79
|
+
# @option request_options [String] :base_url
|
|
80
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
81
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
82
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
83
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
84
|
+
#
|
|
85
|
+
# @return [Nordlet::Billing::Types::AccountSetAccountTypeBillingResponse]
|
|
86
|
+
def account_set_account_type(request_options: {}, **params)
|
|
87
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
88
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
89
|
+
base_url: request_options[:base_url],
|
|
90
|
+
method: "POST",
|
|
91
|
+
path: "v1/billing/account/set-account-type",
|
|
92
|
+
body: Nordlet::Billing::Types::AccountSetAccountTypeBillingRequest.new(params).to_h,
|
|
93
|
+
request_options: request_options
|
|
94
|
+
)
|
|
95
|
+
begin
|
|
96
|
+
response = @client.send(request)
|
|
97
|
+
rescue Net::HTTPRequestTimeout
|
|
98
|
+
raise Nordlet::Errors::TimeoutError
|
|
99
|
+
end
|
|
100
|
+
code = response.code.to_i
|
|
101
|
+
if code.between?(200, 299)
|
|
102
|
+
Nordlet::Billing::Types::AccountSetAccountTypeBillingResponse.load(response.body)
|
|
103
|
+
else
|
|
104
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
105
|
+
raise error_class.new(response.body, code: code)
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @param request_options [Hash]
|
|
110
|
+
# @param params [Nordlet::Billing::Types::AccountSetAutoTopUpBillingRequest]
|
|
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
|
+
#
|
|
117
|
+
# @return [Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponse]
|
|
118
|
+
def account_set_auto_top_up(request_options: {}, **params)
|
|
119
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
120
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
121
|
+
base_url: request_options[:base_url],
|
|
122
|
+
method: "POST",
|
|
123
|
+
path: "v1/billing/account/set-auto-top-up",
|
|
124
|
+
body: Nordlet::Billing::Types::AccountSetAutoTopUpBillingRequest.new(params).to_h,
|
|
125
|
+
request_options: request_options
|
|
126
|
+
)
|
|
127
|
+
begin
|
|
128
|
+
response = @client.send(request)
|
|
129
|
+
rescue Net::HTTPRequestTimeout
|
|
130
|
+
raise Nordlet::Errors::TimeoutError
|
|
131
|
+
end
|
|
132
|
+
code = response.code.to_i
|
|
133
|
+
if code.between?(200, 299)
|
|
134
|
+
Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponse.load(response.body)
|
|
135
|
+
else
|
|
136
|
+
error_class = Nordlet::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 [Nordlet::Billing::Types::AccountSetOverdraftCapBillingRequest]
|
|
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
|
+
#
|
|
149
|
+
# @return [Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponse]
|
|
150
|
+
def account_set_overdraft_cap(request_options: {}, **params)
|
|
151
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
152
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
153
|
+
base_url: request_options[:base_url],
|
|
154
|
+
method: "POST",
|
|
155
|
+
path: "v1/billing/account/set-overdraft-cap",
|
|
156
|
+
body: Nordlet::Billing::Types::AccountSetOverdraftCapBillingRequest.new(params).to_h,
|
|
157
|
+
request_options: request_options
|
|
158
|
+
)
|
|
159
|
+
begin
|
|
160
|
+
response = @client.send(request)
|
|
161
|
+
rescue Net::HTTPRequestTimeout
|
|
162
|
+
raise Nordlet::Errors::TimeoutError
|
|
163
|
+
end
|
|
164
|
+
code = response.code.to_i
|
|
165
|
+
if code.between?(200, 299)
|
|
166
|
+
Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponse.load(response.body)
|
|
167
|
+
else
|
|
168
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
169
|
+
raise error_class.new(response.body, code: code)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
77
173
|
# @param request_options [Hash]
|
|
78
174
|
# @param params [Nordlet::Billing::Types::TopupCreateBillingRequest]
|
|
79
175
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +202,102 @@ module Nordlet
|
|
|
106
202
|
end
|
|
107
203
|
end
|
|
108
204
|
|
|
205
|
+
# @param request_options [Hash]
|
|
206
|
+
# @param params [Nordlet::Billing::Types::TopupConfirmBillingRequest]
|
|
207
|
+
# @option request_options [String] :base_url
|
|
208
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
209
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
210
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
211
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
212
|
+
#
|
|
213
|
+
# @return [Nordlet::Billing::Types::TopupConfirmBillingResponse]
|
|
214
|
+
def topup_confirm(request_options: {}, **params)
|
|
215
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
216
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
217
|
+
base_url: request_options[:base_url],
|
|
218
|
+
method: "POST",
|
|
219
|
+
path: "v1/billing/topup/confirm",
|
|
220
|
+
body: Nordlet::Billing::Types::TopupConfirmBillingRequest.new(params).to_h,
|
|
221
|
+
request_options: request_options
|
|
222
|
+
)
|
|
223
|
+
begin
|
|
224
|
+
response = @client.send(request)
|
|
225
|
+
rescue Net::HTTPRequestTimeout
|
|
226
|
+
raise Nordlet::Errors::TimeoutError
|
|
227
|
+
end
|
|
228
|
+
code = response.code.to_i
|
|
229
|
+
if code.between?(200, 299)
|
|
230
|
+
Nordlet::Billing::Types::TopupConfirmBillingResponse.load(response.body)
|
|
231
|
+
else
|
|
232
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
233
|
+
raise error_class.new(response.body, code: code)
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# @param request_options [Hash]
|
|
238
|
+
# @param params [Nordlet::Billing::Types::FlatRateCreateBillingRequest]
|
|
239
|
+
# @option request_options [String] :base_url
|
|
240
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
241
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
242
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
243
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
244
|
+
#
|
|
245
|
+
# @return [Nordlet::Billing::Types::FlatRateCreateBillingResponse]
|
|
246
|
+
def flat_rate_create(request_options: {}, **params)
|
|
247
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
248
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
249
|
+
base_url: request_options[:base_url],
|
|
250
|
+
method: "POST",
|
|
251
|
+
path: "v1/billing/flat-rate/create",
|
|
252
|
+
body: Nordlet::Billing::Types::FlatRateCreateBillingRequest.new(params).to_h,
|
|
253
|
+
request_options: request_options
|
|
254
|
+
)
|
|
255
|
+
begin
|
|
256
|
+
response = @client.send(request)
|
|
257
|
+
rescue Net::HTTPRequestTimeout
|
|
258
|
+
raise Nordlet::Errors::TimeoutError
|
|
259
|
+
end
|
|
260
|
+
code = response.code.to_i
|
|
261
|
+
if code.between?(200, 299)
|
|
262
|
+
Nordlet::Billing::Types::FlatRateCreateBillingResponse.load(response.body)
|
|
263
|
+
else
|
|
264
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
265
|
+
raise error_class.new(response.body, code: code)
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# @param request_options [Hash]
|
|
270
|
+
# @param params [Nordlet::Billing::Types::FlatRateConfirmBillingRequest]
|
|
271
|
+
# @option request_options [String] :base_url
|
|
272
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
273
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
274
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
275
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
276
|
+
#
|
|
277
|
+
# @return [Nordlet::Billing::Types::FlatRateConfirmBillingResponse]
|
|
278
|
+
def flat_rate_confirm(request_options: {}, **params)
|
|
279
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
280
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
281
|
+
base_url: request_options[:base_url],
|
|
282
|
+
method: "POST",
|
|
283
|
+
path: "v1/billing/flat-rate/confirm",
|
|
284
|
+
body: Nordlet::Billing::Types::FlatRateConfirmBillingRequest.new(params).to_h,
|
|
285
|
+
request_options: request_options
|
|
286
|
+
)
|
|
287
|
+
begin
|
|
288
|
+
response = @client.send(request)
|
|
289
|
+
rescue Net::HTTPRequestTimeout
|
|
290
|
+
raise Nordlet::Errors::TimeoutError
|
|
291
|
+
end
|
|
292
|
+
code = response.code.to_i
|
|
293
|
+
if code.between?(200, 299)
|
|
294
|
+
Nordlet::Billing::Types::FlatRateConfirmBillingResponse.load(response.body)
|
|
295
|
+
else
|
|
296
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
297
|
+
raise error_class.new(response.body, code: code)
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
|
|
109
301
|
# @param request_options [Hash]
|
|
110
302
|
# @param params [Nordlet::Billing::Types::PortalCreateBillingRequest]
|
|
111
303
|
# @option request_options [String] :base_url
|
|
@@ -6,6 +6,8 @@ module Nordlet
|
|
|
6
6
|
class AccountGetBillingResponse < Internal::Types::Model
|
|
7
7
|
field :plan, -> { Nordlet::Billing::Types::AccountGetBillingResponsePlan }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :account_type, -> { Nordlet::Billing::Types::AccountGetBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
10
|
+
|
|
9
11
|
field :status, -> { Nordlet::Billing::Types::AccountGetBillingResponseStatus }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
|
|
@@ -30,8 +32,16 @@ module Nordlet
|
|
|
30
32
|
|
|
31
33
|
field :plans, -> { Internal::Types::Hash[String, Nordlet::Billing::Types::AccountGetBillingResponsePlansValue] }, optional: false, nullable: false
|
|
32
34
|
|
|
35
|
+
field :api_request_eur, -> { String }, optional: false, nullable: false, api_name: "apiRequestEur"
|
|
36
|
+
|
|
33
37
|
field :top_up, -> { Nordlet::Billing::Types::AccountGetBillingResponseTopUp }, optional: false, nullable: false, api_name: "topUp"
|
|
34
38
|
|
|
39
|
+
field :auto_top_up, -> { Nordlet::Billing::Types::AccountGetBillingResponseAutoTopUp }, optional: false, nullable: false, api_name: "autoTopUp"
|
|
40
|
+
|
|
41
|
+
field :overdraft_cap_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapCents"
|
|
42
|
+
|
|
43
|
+
field :overdraft_cap_max_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapMaxCents"
|
|
44
|
+
|
|
35
45
|
field :trial_days, -> { Integer }, optional: false, nullable: false, api_name: "trialDays"
|
|
36
46
|
end
|
|
37
47
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
module AccountGetBillingResponseAccountType
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
FLAT_RATE = "flat_rate"
|
|
10
|
+
PER_REQUEST = "per_request"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountGetBillingResponseAutoTopUp < Internal::Types::Model
|
|
7
|
+
field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
|
|
10
|
+
|
|
11
|
+
field :pending, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -10,6 +10,8 @@ module Nordlet
|
|
|
10
10
|
|
|
11
11
|
field :api_requests, -> { Integer }, optional: false, nullable: false, api_name: "apiRequests"
|
|
12
12
|
|
|
13
|
+
field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
|
|
14
|
+
|
|
13
15
|
field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
|
|
14
16
|
|
|
15
17
|
field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
|
|
@@ -6,9 +6,9 @@ module Nordlet
|
|
|
6
6
|
class AccountGetBillingResponsePlansValue < Internal::Types::Model
|
|
7
7
|
field :monthly_fee_eur, -> { String }, optional: false, nullable: false, api_name: "monthlyFeeEur"
|
|
8
8
|
|
|
9
|
-
field :
|
|
9
|
+
field :included_invoices, -> { Integer }, optional: false, nullable: false, api_name: "includedInvoices"
|
|
10
10
|
|
|
11
|
-
field :
|
|
11
|
+
field :invoice_overage_eur, -> { String }, optional: false, nullable: false, api_name: "invoiceOverageEur"
|
|
12
12
|
|
|
13
13
|
field :included_database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedDatabaseBytes"
|
|
14
14
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAccountTypeBillingRequest < Internal::Types::Model
|
|
7
|
+
field :account_type, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingRequestAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
module AccountSetAccountTypeBillingRequestAccountType
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
FLAT_RATE = "flat_rate"
|
|
10
|
+
PER_REQUEST = "per_request"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAccountTypeBillingResponse < Internal::Types::Model
|
|
7
|
+
field :plan, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingResponsePlan }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :account_type, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
10
|
+
|
|
11
|
+
field :status, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingResponseStatus }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
|
|
14
|
+
|
|
15
|
+
field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
|
|
16
|
+
|
|
17
|
+
field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
|
|
18
|
+
|
|
19
|
+
field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
|
|
20
|
+
|
|
21
|
+
field :payments_configured, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "paymentsConfigured"
|
|
22
|
+
|
|
23
|
+
field :has_payment_account, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasPaymentAccount"
|
|
24
|
+
|
|
25
|
+
field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
|
|
26
|
+
|
|
27
|
+
field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
|
|
28
|
+
|
|
29
|
+
field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
|
|
30
|
+
|
|
31
|
+
field :month_to_date, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingResponseMonthToDate }, optional: false, nullable: false, api_name: "monthToDate"
|
|
32
|
+
|
|
33
|
+
field :plans, -> { Internal::Types::Hash[String, Nordlet::Billing::Types::AccountSetAccountTypeBillingResponsePlansValue] }, optional: false, nullable: false
|
|
34
|
+
|
|
35
|
+
field :api_request_eur, -> { String }, optional: false, nullable: false, api_name: "apiRequestEur"
|
|
36
|
+
|
|
37
|
+
field :top_up, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingResponseTopUp }, optional: false, nullable: false, api_name: "topUp"
|
|
38
|
+
|
|
39
|
+
field :auto_top_up, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingResponseAutoTopUp }, optional: false, nullable: false, api_name: "autoTopUp"
|
|
40
|
+
|
|
41
|
+
field :overdraft_cap_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapCents"
|
|
42
|
+
|
|
43
|
+
field :overdraft_cap_max_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapMaxCents"
|
|
44
|
+
|
|
45
|
+
field :trial_days, -> { Integer }, optional: false, nullable: false, api_name: "trialDays"
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
module AccountSetAccountTypeBillingResponseAccountType
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
FLAT_RATE = "flat_rate"
|
|
10
|
+
PER_REQUEST = "per_request"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAccountTypeBillingResponseAutoTopUp < Internal::Types::Model
|
|
7
|
+
field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
|
|
10
|
+
|
|
11
|
+
field :pending, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAccountTypeBillingResponseMonthToDate < Internal::Types::Model
|
|
7
|
+
field :from, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :to, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :api_requests, -> { Integer }, optional: false, nullable: false, api_name: "apiRequests"
|
|
12
|
+
|
|
13
|
+
field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
|
|
14
|
+
|
|
15
|
+
field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
|
|
16
|
+
|
|
17
|
+
field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
|
|
18
|
+
|
|
19
|
+
field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
|
|
20
|
+
|
|
21
|
+
field :archived_companies, -> { Integer }, optional: false, nullable: false, api_name: "archivedCompanies"
|
|
22
|
+
|
|
23
|
+
field :estimated_today_cents, -> { Integer }, optional: false, nullable: false, api_name: "estimatedTodayCents"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
module AccountSetAccountTypeBillingResponsePlan
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
STARTER = "starter"
|
|
10
|
+
BUSINESS = "business"
|
|
11
|
+
SCALE = "scale"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAccountTypeBillingResponsePlansValue < Internal::Types::Model
|
|
7
|
+
field :monthly_fee_eur, -> { String }, optional: false, nullable: false, api_name: "monthlyFeeEur"
|
|
8
|
+
|
|
9
|
+
field :included_invoices, -> { Integer }, optional: false, nullable: false, api_name: "includedInvoices"
|
|
10
|
+
|
|
11
|
+
field :invoice_overage_eur, -> { String }, optional: false, nullable: false, api_name: "invoiceOverageEur"
|
|
12
|
+
|
|
13
|
+
field :included_database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedDatabaseBytes"
|
|
14
|
+
|
|
15
|
+
field :included_file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedFileBytes"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
module AccountSetAccountTypeBillingResponseStatus
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
TRIAL = "trial"
|
|
10
|
+
ACTIVE = "active"
|
|
11
|
+
SUSPENDED = "suspended"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAccountTypeBillingResponseTopUp < Internal::Types::Model
|
|
7
|
+
field :min_cents, -> { Integer }, optional: false, nullable: false, api_name: "minCents"
|
|
8
|
+
|
|
9
|
+
field :max_cents, -> { Integer }, optional: false, nullable: false, api_name: "maxCents"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAutoTopUpBillingRequest < Internal::Types::Model
|
|
7
|
+
field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAutoTopUpBillingResponse < Internal::Types::Model
|
|
7
|
+
field :plan, -> { Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponsePlan }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :account_type, -> { Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
10
|
+
|
|
11
|
+
field :status, -> { Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponseStatus }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
|
|
14
|
+
|
|
15
|
+
field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
|
|
16
|
+
|
|
17
|
+
field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
|
|
18
|
+
|
|
19
|
+
field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
|
|
20
|
+
|
|
21
|
+
field :payments_configured, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "paymentsConfigured"
|
|
22
|
+
|
|
23
|
+
field :has_payment_account, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasPaymentAccount"
|
|
24
|
+
|
|
25
|
+
field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
|
|
26
|
+
|
|
27
|
+
field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
|
|
28
|
+
|
|
29
|
+
field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
|
|
30
|
+
|
|
31
|
+
field :month_to_date, -> { Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponseMonthToDate }, optional: false, nullable: false, api_name: "monthToDate"
|
|
32
|
+
|
|
33
|
+
field :plans, -> { Internal::Types::Hash[String, Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponsePlansValue] }, optional: false, nullable: false
|
|
34
|
+
|
|
35
|
+
field :api_request_eur, -> { String }, optional: false, nullable: false, api_name: "apiRequestEur"
|
|
36
|
+
|
|
37
|
+
field :top_up, -> { Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponseTopUp }, optional: false, nullable: false, api_name: "topUp"
|
|
38
|
+
|
|
39
|
+
field :auto_top_up, -> { Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponseAutoTopUp }, optional: false, nullable: false, api_name: "autoTopUp"
|
|
40
|
+
|
|
41
|
+
field :overdraft_cap_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapCents"
|
|
42
|
+
|
|
43
|
+
field :overdraft_cap_max_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapMaxCents"
|
|
44
|
+
|
|
45
|
+
field :trial_days, -> { Integer }, optional: false, nullable: false, api_name: "trialDays"
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
module AccountSetAutoTopUpBillingResponseAccountType
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
FLAT_RATE = "flat_rate"
|
|
10
|
+
PER_REQUEST = "per_request"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAutoTopUpBillingResponseAutoTopUp < Internal::Types::Model
|
|
7
|
+
field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
|
|
10
|
+
|
|
11
|
+
field :pending, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAutoTopUpBillingResponseMonthToDate < Internal::Types::Model
|
|
7
|
+
field :from, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :to, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :api_requests, -> { Integer }, optional: false, nullable: false, api_name: "apiRequests"
|
|
12
|
+
|
|
13
|
+
field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
|
|
14
|
+
|
|
15
|
+
field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
|
|
16
|
+
|
|
17
|
+
field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
|
|
18
|
+
|
|
19
|
+
field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
|
|
20
|
+
|
|
21
|
+
field :archived_companies, -> { Integer }, optional: false, nullable: false, api_name: "archivedCompanies"
|
|
22
|
+
|
|
23
|
+
field :estimated_today_cents, -> { Integer }, optional: false, nullable: false, api_name: "estimatedTodayCents"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
module AccountSetAutoTopUpBillingResponsePlan
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
STARTER = "starter"
|
|
10
|
+
BUSINESS = "business"
|
|
11
|
+
SCALE = "scale"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Billing
|
|
5
|
+
module Types
|
|
6
|
+
class AccountSetAutoTopUpBillingResponsePlansValue < Internal::Types::Model
|
|
7
|
+
field :monthly_fee_eur, -> { String }, optional: false, nullable: false, api_name: "monthlyFeeEur"
|
|
8
|
+
|
|
9
|
+
field :included_invoices, -> { Integer }, optional: false, nullable: false, api_name: "includedInvoices"
|
|
10
|
+
|
|
11
|
+
field :invoice_overage_eur, -> { String }, optional: false, nullable: false, api_name: "invoiceOverageEur"
|
|
12
|
+
|
|
13
|
+
field :included_database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedDatabaseBytes"
|
|
14
|
+
|
|
15
|
+
field :included_file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedFileBytes"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|