wallee-ruby-sdk 0.0.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +31 -0
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/lib/wallee.rb +332 -0
- data/lib/wallee/api_client.rb +403 -0
- data/lib/wallee/api_error.rb +47 -0
- data/lib/wallee/configuration.rb +144 -0
- data/lib/wallee/models/account.rb +298 -0
- data/lib/wallee/models/account_create.rb +308 -0
- data/lib/wallee/models/account_state.rb +47 -0
- data/lib/wallee/models/account_type.rb +44 -0
- data/lib/wallee/models/account_update.rb +308 -0
- data/lib/wallee/models/address.rb +388 -0
- data/lib/wallee/models/address_create.rb +388 -0
- data/lib/wallee/models/application_user.rb +268 -0
- data/lib/wallee/models/application_user_create.rb +283 -0
- data/lib/wallee/models/application_user_create_with_mac_key.rb +278 -0
- data/lib/wallee/models/application_user_update.rb +278 -0
- data/lib/wallee/models/attachment_resource.rb +210 -0
- data/lib/wallee/models/charge.rb +318 -0
- data/lib/wallee/models/charge_attempt.rb +420 -0
- data/lib/wallee/models/charge_attempt_environment.rb +43 -0
- data/lib/wallee/models/charge_attempt_state.rb +44 -0
- data/lib/wallee/models/charge_flow.rb +270 -0
- data/lib/wallee/models/charge_flow_level.rb +318 -0
- data/lib/wallee/models/charge_flow_level_configuration.rb +288 -0
- data/lib/wallee/models/charge_flow_level_configuration_type.rb +222 -0
- data/lib/wallee/models/charge_flow_level_state.rb +44 -0
- data/lib/wallee/models/charge_state.rb +44 -0
- data/lib/wallee/models/charge_type.rb +44 -0
- data/lib/wallee/models/client_error.rb +238 -0
- data/lib/wallee/models/client_error_type.rb +44 -0
- data/lib/wallee/models/condition.rb +258 -0
- data/lib/wallee/models/condition_type.rb +222 -0
- data/lib/wallee/models/connector_invocation.rb +278 -0
- data/lib/wallee/models/connector_invocation_stage.rb +45 -0
- data/lib/wallee/models/creation_entity_state.rb +46 -0
- data/lib/wallee/models/criteria_operator.rb +50 -0
- data/lib/wallee/models/customers_presence.rb +44 -0
- data/lib/wallee/models/data_collection_type.rb +43 -0
- data/lib/wallee/models/database_translated_string.rb +222 -0
- data/lib/wallee/models/database_translated_string_create.rb +222 -0
- data/lib/wallee/models/database_translated_string_item.rb +218 -0
- data/lib/wallee/models/database_translated_string_item_create.rb +223 -0
- data/lib/wallee/models/delivery_indication.rb +318 -0
- data/lib/wallee/models/delivery_indication_decision_reason.rb +222 -0
- data/lib/wallee/models/delivery_indication_state.rb +45 -0
- data/lib/wallee/models/document_template.rb +278 -0
- data/lib/wallee/models/document_template_type.rb +242 -0
- data/lib/wallee/models/email_sender.rb +278 -0
- data/lib/wallee/models/email_sender_type.rb +232 -0
- data/lib/wallee/models/email_template.rb +324 -0
- data/lib/wallee/models/email_template_type.rb +288 -0
- data/lib/wallee/models/entity_query.rb +240 -0
- data/lib/wallee/models/entity_query_filter.rb +245 -0
- data/lib/wallee/models/entity_query_filter_type.rb +44 -0
- data/lib/wallee/models/entity_query_order_by.rb +208 -0
- data/lib/wallee/models/entity_query_order_by_type.rb +43 -0
- data/lib/wallee/models/entity_reference.rb +188 -0
- data/lib/wallee/models/failure_category.rb +46 -0
- data/lib/wallee/models/failure_reason.rb +244 -0
- data/lib/wallee/models/feature.rb +274 -0
- data/lib/wallee/models/gender.rb +43 -0
- data/lib/wallee/models/human_user.rb +318 -0
- data/lib/wallee/models/human_user_create.rb +328 -0
- data/lib/wallee/models/human_user_update.rb +328 -0
- data/lib/wallee/models/installment_calculated_plan.rb +242 -0
- data/lib/wallee/models/installment_calculated_slice.rb +220 -0
- data/lib/wallee/models/installment_payment.rb +280 -0
- data/lib/wallee/models/installment_payment_slice.rb +300 -0
- data/lib/wallee/models/installment_payment_slice_state.rb +48 -0
- data/lib/wallee/models/installment_payment_state.rb +49 -0
- data/lib/wallee/models/installment_plan_configuration.rb +362 -0
- data/lib/wallee/models/installment_plan_slice_configuration.rb +288 -0
- data/lib/wallee/models/label.rb +238 -0
- data/lib/wallee/models/label_descriptor.rb +274 -0
- data/lib/wallee/models/label_descriptor_category.rb +43 -0
- data/lib/wallee/models/label_descriptor_group.rb +232 -0
- data/lib/wallee/models/label_descriptor_type.rb +222 -0
- data/lib/wallee/models/legal_organization_form.rb +242 -0
- data/lib/wallee/models/line_item.rb +342 -0
- data/lib/wallee/models/line_item_attribute.rb +208 -0
- data/lib/wallee/models/line_item_attribute_create.rb +208 -0
- data/lib/wallee/models/line_item_create.rb +367 -0
- data/lib/wallee/models/line_item_reduction.rb +218 -0
- data/lib/wallee/models/line_item_reduction_create.rb +233 -0
- data/lib/wallee/models/line_item_type.rb +45 -0
- data/lib/wallee/models/localized_string.rb +218 -0
- data/lib/wallee/models/manual_task.rb +290 -0
- data/lib/wallee/models/manual_task_action.rb +230 -0
- data/lib/wallee/models/manual_task_action_style.rb +44 -0
- data/lib/wallee/models/manual_task_state.rb +44 -0
- data/lib/wallee/models/manual_task_type.rb +234 -0
- data/lib/wallee/models/one_click_payment_mode.rb +44 -0
- data/lib/wallee/models/payment_connector.rb +306 -0
- data/lib/wallee/models/payment_connector_configuration.rb +322 -0
- data/lib/wallee/models/payment_connector_feature.rb +218 -0
- data/lib/wallee/models/payment_method.rb +256 -0
- data/lib/wallee/models/payment_method_brand.rb +252 -0
- data/lib/wallee/models/payment_method_configuration.rb +328 -0
- data/lib/wallee/models/payment_primary_risk_taker.rb +44 -0
- data/lib/wallee/models/payment_processor.rb +278 -0
- data/lib/wallee/models/payment_processor_configuration.rb +258 -0
- data/lib/wallee/models/permission.rb +286 -0
- data/lib/wallee/models/persistable_currency_amount.rb +208 -0
- data/lib/wallee/models/persistable_currency_amount_update.rb +208 -0
- data/lib/wallee/models/product_fee_type.rb +44 -0
- data/lib/wallee/models/product_metered_fee.rb +278 -0
- data/lib/wallee/models/product_metered_fee_update.rb +288 -0
- data/lib/wallee/models/product_metered_tier_fee.rb +240 -0
- data/lib/wallee/models/product_metered_tier_fee_update.rb +250 -0
- data/lib/wallee/models/product_metered_tier_pricing.rb +43 -0
- data/lib/wallee/models/product_period_fee.rb +280 -0
- data/lib/wallee/models/product_period_fee_update.rb +290 -0
- data/lib/wallee/models/product_setup_fee.rb +294 -0
- data/lib/wallee/models/product_setup_fee_update.rb +304 -0
- data/lib/wallee/models/refund.rb +450 -0
- data/lib/wallee/models/refund_create.rb +470 -0
- data/lib/wallee/models/refund_state.rb +46 -0
- data/lib/wallee/models/refund_type.rb +45 -0
- data/lib/wallee/models/rendered_document.rb +230 -0
- data/lib/wallee/models/resource_path.rb +258 -0
- data/lib/wallee/models/resource_state.rb +44 -0
- data/lib/wallee/models/rest_country.rb +240 -0
- data/lib/wallee/models/rest_country_state.rb +228 -0
- data/lib/wallee/models/rest_currency.rb +218 -0
- data/lib/wallee/models/rest_language.rb +248 -0
- data/lib/wallee/models/scope.rb +302 -0
- data/lib/wallee/models/server_error.rb +218 -0
- data/lib/wallee/models/space.rb +330 -0
- data/lib/wallee/models/space_address.rb +318 -0
- data/lib/wallee/models/space_address_setter.rb +318 -0
- data/lib/wallee/models/space_create.rb +350 -0
- data/lib/wallee/models/space_reference.rb +258 -0
- data/lib/wallee/models/space_reference_state.rb +46 -0
- data/lib/wallee/models/space_update.rb +340 -0
- data/lib/wallee/models/space_view.rb +258 -0
- data/lib/wallee/models/static_value.rb +234 -0
- data/lib/wallee/models/subscriber.rb +332 -0
- data/lib/wallee/models/subscriber_active.rb +342 -0
- data/lib/wallee/models/subscriber_create.rb +347 -0
- data/lib/wallee/models/subscriber_update.rb +342 -0
- data/lib/wallee/models/subscription.rb +338 -0
- data/lib/wallee/models/subscription_change_request.rb +250 -0
- data/lib/wallee/models/subscription_charge.rb +390 -0
- data/lib/wallee/models/subscription_charge_create.rb +405 -0
- data/lib/wallee/models/subscription_charge_processing_type.rb +43 -0
- data/lib/wallee/models/subscription_charge_state.rb +46 -0
- data/lib/wallee/models/subscription_charge_type.rb +43 -0
- data/lib/wallee/models/subscription_create_request.rb +245 -0
- data/lib/wallee/models/subscription_ledger_entry.rb +350 -0
- data/lib/wallee/models/subscription_ledger_entry_create.rb +375 -0
- data/lib/wallee/models/subscription_ledger_entry_state.rb +44 -0
- data/lib/wallee/models/subscription_metric.rb +268 -0
- data/lib/wallee/models/subscription_metric_active.rb +278 -0
- data/lib/wallee/models/subscription_metric_create.rb +288 -0
- data/lib/wallee/models/subscription_metric_type.rb +232 -0
- data/lib/wallee/models/subscription_metric_update.rb +278 -0
- data/lib/wallee/models/subscription_metric_usage_report.rb +298 -0
- data/lib/wallee/models/subscription_metric_usage_report_create.rb +318 -0
- data/lib/wallee/models/subscription_pending.rb +348 -0
- data/lib/wallee/models/subscription_period_bill.rb +298 -0
- data/lib/wallee/models/subscription_period_bill_state.rb +43 -0
- data/lib/wallee/models/subscription_product.rb +300 -0
- data/lib/wallee/models/subscription_product_active.rb +310 -0
- data/lib/wallee/models/subscription_product_component.rb +298 -0
- data/lib/wallee/models/subscription_product_component_group.rb +258 -0
- data/lib/wallee/models/subscription_product_component_group_update.rb +268 -0
- data/lib/wallee/models/subscription_product_component_reference.rb +258 -0
- data/lib/wallee/models/subscription_product_component_reference_state.rb +45 -0
- data/lib/wallee/models/subscription_product_component_update.rb +308 -0
- data/lib/wallee/models/subscription_product_create.rb +315 -0
- data/lib/wallee/models/subscription_product_retirement.rb +258 -0
- data/lib/wallee/models/subscription_product_retirement_create.rb +263 -0
- data/lib/wallee/models/subscription_product_state.rb +46 -0
- data/lib/wallee/models/subscription_product_version.rb +390 -0
- data/lib/wallee/models/subscription_product_version_pending.rb +310 -0
- data/lib/wallee/models/subscription_product_version_retirement.rb +258 -0
- data/lib/wallee/models/subscription_product_version_retirement_create.rb +263 -0
- data/lib/wallee/models/subscription_product_version_state.rb +46 -0
- data/lib/wallee/models/subscription_state.rb +48 -0
- data/lib/wallee/models/subscription_suspension.rb +328 -0
- data/lib/wallee/models/subscription_suspension_action.rb +43 -0
- data/lib/wallee/models/subscription_suspension_create.rb +343 -0
- data/lib/wallee/models/subscription_suspension_reason.rb +44 -0
- data/lib/wallee/models/subscription_suspension_running.rb +328 -0
- data/lib/wallee/models/subscription_suspension_state.rb +43 -0
- data/lib/wallee/models/subscription_update.rb +348 -0
- data/lib/wallee/models/subscription_version.rb +370 -0
- data/lib/wallee/models/subscription_version_state.rb +47 -0
- data/lib/wallee/models/tax.rb +208 -0
- data/lib/wallee/models/tax_class.rb +258 -0
- data/lib/wallee/models/tax_create.rb +218 -0
- data/lib/wallee/models/tenant_database.rb +218 -0
- data/lib/wallee/models/token.rb +308 -0
- data/lib/wallee/models/token_create.rb +323 -0
- data/lib/wallee/models/token_update.rb +318 -0
- data/lib/wallee/models/token_version.rb +360 -0
- data/lib/wallee/models/token_version_state.rb +44 -0
- data/lib/wallee/models/transaction.rb +626 -0
- data/lib/wallee/models/transaction_aware_entity.rb +218 -0
- data/lib/wallee/models/transaction_completion.rb +390 -0
- data/lib/wallee/models/transaction_completion_mode.rb +44 -0
- data/lib/wallee/models/transaction_completion_state.rb +45 -0
- data/lib/wallee/models/transaction_create.rb +646 -0
- data/lib/wallee/models/transaction_group.rb +268 -0
- data/lib/wallee/models/transaction_group_state.rb +44 -0
- data/lib/wallee/models/transaction_invoice.rb +380 -0
- data/lib/wallee/models/transaction_invoice_replacement.rb +250 -0
- data/lib/wallee/models/transaction_invoice_state.rb +48 -0
- data/lib/wallee/models/transaction_line_item_update_request.rb +215 -0
- data/lib/wallee/models/transaction_line_item_version.rb +320 -0
- data/lib/wallee/models/transaction_pending.rb +636 -0
- data/lib/wallee/models/transaction_state.rb +51 -0
- data/lib/wallee/models/transaction_user_interface_type.rb +44 -0
- data/lib/wallee/models/transaction_void.rb +380 -0
- data/lib/wallee/models/transaction_void_mode.rb +43 -0
- data/lib/wallee/models/transaction_void_state.rb +45 -0
- data/lib/wallee/models/user.rb +248 -0
- data/lib/wallee/models/user_type.rb +45 -0
- data/lib/wallee/models/webhook_identity.rb +248 -0
- data/lib/wallee/models/webhook_listener.rb +300 -0
- data/lib/wallee/models/webhook_listener_create.rb +330 -0
- data/lib/wallee/models/webhook_listener_entity.rb +220 -0
- data/lib/wallee/models/webhook_listener_update.rb +310 -0
- data/lib/wallee/models/webhook_url.rb +258 -0
- data/lib/wallee/models/webhook_url_create.rb +273 -0
- data/lib/wallee/models/webhook_url_update.rb +268 -0
- data/lib/wallee/services/account_service_api.rb +372 -0
- data/lib/wallee/services/application_user_service_api.rb +372 -0
- data/lib/wallee/services/charge_attempt_service_api.rb +217 -0
- data/lib/wallee/services/charge_flow_level_service_api.rb +280 -0
- data/lib/wallee/services/charge_flow_service_api.rb +352 -0
- data/lib/wallee/services/condition_type_service_api.rb +143 -0
- data/lib/wallee/services/country_service_api.rb +85 -0
- data/lib/wallee/services/country_state_service_api.rb +143 -0
- data/lib/wallee/services/currency_service_api.rb +85 -0
- data/lib/wallee/services/delivery_indication_service_api.rb +341 -0
- data/lib/wallee/services/document_template_service_api.rb +217 -0
- data/lib/wallee/services/document_template_type_service_api.rb +143 -0
- data/lib/wallee/services/email_sender_service_api.rb +219 -0
- data/lib/wallee/services/email_sender_type_service_api.rb +143 -0
- data/lib/wallee/services/email_template_service_api.rb +217 -0
- data/lib/wallee/services/email_template_type_service_api.rb +143 -0
- data/lib/wallee/services/human_user_service_api.rb +372 -0
- data/lib/wallee/services/installment_payment_service_api.rb +287 -0
- data/lib/wallee/services/installment_payment_slice_service_api.rb +219 -0
- data/lib/wallee/services/installment_plan_calculation_service_api.rb +95 -0
- data/lib/wallee/services/installment_plan_configuration_service_api.rb +219 -0
- data/lib/wallee/services/installment_plan_slice_configuration_service_api.rb +219 -0
- data/lib/wallee/services/label_description_group_service_api.rb +143 -0
- data/lib/wallee/services/label_description_service_api.rb +143 -0
- data/lib/wallee/services/language_service_api.rb +85 -0
- data/lib/wallee/services/manual_task_service_api.rb +217 -0
- data/lib/wallee/services/payment_connector_configuration_service_api.rb +217 -0
- data/lib/wallee/services/payment_connector_service_api.rb +143 -0
- data/lib/wallee/services/payment_method_configuration_service_api.rb +217 -0
- data/lib/wallee/services/payment_method_service_api.rb +143 -0
- data/lib/wallee/services/payment_processor_configuration_service_api.rb +217 -0
- data/lib/wallee/services/payment_processor_service_api.rb +143 -0
- data/lib/wallee/services/permission_service_api.rb +143 -0
- data/lib/wallee/services/refund_service_api.rb +468 -0
- data/lib/wallee/services/space_service_api.rb +372 -0
- data/lib/wallee/services/static_value_service_api.rb +143 -0
- data/lib/wallee/services/subscriber_service_api.rb +402 -0
- data/lib/wallee/services/subscription_charge_service_api.rb +342 -0
- data/lib/wallee/services/subscription_ledger_entry_service_api.rb +279 -0
- data/lib/wallee/services/subscription_metric_service_api.rb +402 -0
- data/lib/wallee/services/subscription_metric_usage_service_api.rb +279 -0
- data/lib/wallee/services/subscription_period_bill_service_api.rb +217 -0
- data/lib/wallee/services/subscription_product_component_group_service_api.rb +402 -0
- data/lib/wallee/services/subscription_product_component_service_api.rb +402 -0
- data/lib/wallee/services/subscription_product_fee_tier_service_api.rb +402 -0
- data/lib/wallee/services/subscription_product_metered_fee_service_api.rb +402 -0
- data/lib/wallee/services/subscription_product_period_fee_service_api.rb +402 -0
- data/lib/wallee/services/subscription_product_retirement_service_api.rb +279 -0
- data/lib/wallee/services/subscription_product_service_api.rb +341 -0
- data/lib/wallee/services/subscription_product_setup_fee_service_api.rb +402 -0
- data/lib/wallee/services/subscription_product_version_retirement_service_api.rb +279 -0
- data/lib/wallee/services/subscription_product_version_service_api.rb +404 -0
- data/lib/wallee/services/subscription_service_api.rb +608 -0
- data/lib/wallee/services/subscription_suspension_service_api.rb +342 -0
- data/lib/wallee/services/subscription_version_service_api.rb +217 -0
- data/lib/wallee/services/token_service_api.rb +402 -0
- data/lib/wallee/services/token_version_service_api.rb +280 -0
- data/lib/wallee/services/transaction_completion_service_api.rb +343 -0
- data/lib/wallee/services/transaction_invoice_service_api.rb +473 -0
- data/lib/wallee/services/transaction_service_api.rb +1263 -0
- data/lib/wallee/services/transaction_void_service_api.rb +343 -0
- data/lib/wallee/services/webhook_listener_service_api.rb +402 -0
- data/lib/wallee/services/webhook_url_service_api.rb +402 -0
- data/lib/wallee/version.rb +24 -0
- metadata +292 -2
@@ -0,0 +1,143 @@
|
|
1
|
+
=begin
|
2
|
+
Wallee API: 1.0.0
|
3
|
+
|
4
|
+
The wallee API allows an easy interaction with the wallee web service.
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
you may not use this file except in compliance with the License.
|
10
|
+
You may obtain a copy of the License at
|
11
|
+
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
See the License for the specific language governing permissions and
|
18
|
+
limitations under the License.
|
19
|
+
|
20
|
+
=end
|
21
|
+
|
22
|
+
require "uri"
|
23
|
+
|
24
|
+
module Wallee
|
25
|
+
class ConditionTypeService
|
26
|
+
attr_accessor :api_client
|
27
|
+
|
28
|
+
def initialize(api_client = ApiClient.default)
|
29
|
+
@api_client = api_client
|
30
|
+
end
|
31
|
+
|
32
|
+
# All
|
33
|
+
# This operation returns all entities which are available.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [Array<ConditionType>]
|
36
|
+
def condition_type_service_all(opts = {})
|
37
|
+
data, _status_code, _headers = condition_type_service_all_with_http_info(opts)
|
38
|
+
return data
|
39
|
+
end
|
40
|
+
|
41
|
+
# All
|
42
|
+
# This operation returns all entities which are available.
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [Array<(Array<ConditionType>, Fixnum, Hash)>] Array<ConditionType> data, response status code and response headers
|
45
|
+
def condition_type_service_all_with_http_info(opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug "Calling API: ConditionTypeService.condition_type_service_all ..."
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = "/condition-type/all".sub('{format}','json')
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = {}
|
57
|
+
|
58
|
+
# HTTP header 'Accept' (if needed)
|
59
|
+
local_header_accept = ['*/*']
|
60
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
61
|
+
|
62
|
+
# HTTP header 'Content-Type'
|
63
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
auth_names = []
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => 'Array<ConditionType>')
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: ConditionTypeService#condition_type_service_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
|
85
|
+
# Read
|
86
|
+
# Reads the entity with the given 'id' and returns it.
|
87
|
+
# @param id The id of the condition type which should be returned.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [ConditionType]
|
90
|
+
def condition_type_service_read(id, opts = {})
|
91
|
+
data, _status_code, _headers = condition_type_service_read_with_http_info(id, opts)
|
92
|
+
return data
|
93
|
+
end
|
94
|
+
|
95
|
+
# Read
|
96
|
+
# Reads the entity with the given 'id' and returns it.
|
97
|
+
# @param id The id of the condition type which should be returned.
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Array<(ConditionType, Fixnum, Hash)>] ConditionType data, response status code and response headers
|
100
|
+
def condition_type_service_read_with_http_info(id, opts = {})
|
101
|
+
if @api_client.config.debugging
|
102
|
+
@api_client.config.logger.debug "Calling API: ConditionTypeService.condition_type_service_read ..."
|
103
|
+
end
|
104
|
+
# verify the required parameter 'id' is set
|
105
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConditionTypeService.condition_type_service_read" if id.nil?
|
106
|
+
# resource path
|
107
|
+
local_var_path = "/condition-type/read".sub('{format}','json')
|
108
|
+
|
109
|
+
# query parameters
|
110
|
+
query_params = {}
|
111
|
+
query_params[:'id'] = id
|
112
|
+
|
113
|
+
# header parameters
|
114
|
+
header_params = {}
|
115
|
+
|
116
|
+
# HTTP header 'Accept' (if needed)
|
117
|
+
local_header_accept = ['*/*']
|
118
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
119
|
+
|
120
|
+
# HTTP header 'Content-Type'
|
121
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
122
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
123
|
+
|
124
|
+
# form parameters
|
125
|
+
form_params = {}
|
126
|
+
|
127
|
+
# http body (model)
|
128
|
+
post_body = nil
|
129
|
+
auth_names = []
|
130
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => 'ConditionType')
|
137
|
+
if @api_client.config.debugging
|
138
|
+
@api_client.config.logger.debug "API called: ConditionTypeService#condition_type_service_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
139
|
+
end
|
140
|
+
return data, status_code, headers
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
=begin
|
2
|
+
Wallee API: 1.0.0
|
3
|
+
|
4
|
+
The wallee API allows an easy interaction with the wallee web service.
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
you may not use this file except in compliance with the License.
|
10
|
+
You may obtain a copy of the License at
|
11
|
+
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
See the License for the specific language governing permissions and
|
18
|
+
limitations under the License.
|
19
|
+
|
20
|
+
=end
|
21
|
+
|
22
|
+
require "uri"
|
23
|
+
|
24
|
+
module Wallee
|
25
|
+
class CountryService
|
26
|
+
attr_accessor :api_client
|
27
|
+
|
28
|
+
def initialize(api_client = ApiClient.default)
|
29
|
+
@api_client = api_client
|
30
|
+
end
|
31
|
+
|
32
|
+
# All
|
33
|
+
# This operation returns all countries.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [Array<RestCountry>]
|
36
|
+
def country_service_all(opts = {})
|
37
|
+
data, _status_code, _headers = country_service_all_with_http_info(opts)
|
38
|
+
return data
|
39
|
+
end
|
40
|
+
|
41
|
+
# All
|
42
|
+
# This operation returns all countries.
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [Array<(Array<RestCountry>, Fixnum, Hash)>] Array<RestCountry> data, response status code and response headers
|
45
|
+
def country_service_all_with_http_info(opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug "Calling API: CountryService.country_service_all ..."
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = "/country/all".sub('{format}','json')
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = {}
|
57
|
+
|
58
|
+
# HTTP header 'Accept' (if needed)
|
59
|
+
local_header_accept = ['*/*']
|
60
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
61
|
+
|
62
|
+
# HTTP header 'Content-Type'
|
63
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
auth_names = []
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => 'Array<RestCountry>')
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: CountryService#country_service_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,143 @@
|
|
1
|
+
=begin
|
2
|
+
Wallee API: 1.0.0
|
3
|
+
|
4
|
+
The wallee API allows an easy interaction with the wallee web service.
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
you may not use this file except in compliance with the License.
|
10
|
+
You may obtain a copy of the License at
|
11
|
+
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
See the License for the specific language governing permissions and
|
18
|
+
limitations under the License.
|
19
|
+
|
20
|
+
=end
|
21
|
+
|
22
|
+
require "uri"
|
23
|
+
|
24
|
+
module Wallee
|
25
|
+
class CountryStateService
|
26
|
+
attr_accessor :api_client
|
27
|
+
|
28
|
+
def initialize(api_client = ApiClient.default)
|
29
|
+
@api_client = api_client
|
30
|
+
end
|
31
|
+
|
32
|
+
# All
|
33
|
+
# This operation returns all states of all countries.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [Array<RestCountryState>]
|
36
|
+
def country_state_service_all(opts = {})
|
37
|
+
data, _status_code, _headers = country_state_service_all_with_http_info(opts)
|
38
|
+
return data
|
39
|
+
end
|
40
|
+
|
41
|
+
# All
|
42
|
+
# This operation returns all states of all countries.
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [Array<(Array<RestCountryState>, Fixnum, Hash)>] Array<RestCountryState> data, response status code and response headers
|
45
|
+
def country_state_service_all_with_http_info(opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug "Calling API: CountryStateService.country_state_service_all ..."
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = "/country-state/all".sub('{format}','json')
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = {}
|
57
|
+
|
58
|
+
# HTTP header 'Accept' (if needed)
|
59
|
+
local_header_accept = ['*/*']
|
60
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
61
|
+
|
62
|
+
# HTTP header 'Content-Type'
|
63
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
auth_names = []
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => 'Array<RestCountryState>')
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: CountryStateService#country_state_service_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
|
85
|
+
# Find by Country
|
86
|
+
# This operation returns all states for a given country.
|
87
|
+
# @param code The country code in ISO code two letter format for which all states should be returned.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [Array<RestCountryState>]
|
90
|
+
def country_state_service_country(code, opts = {})
|
91
|
+
data, _status_code, _headers = country_state_service_country_with_http_info(code, opts)
|
92
|
+
return data
|
93
|
+
end
|
94
|
+
|
95
|
+
# Find by Country
|
96
|
+
# This operation returns all states for a given country.
|
97
|
+
# @param code The country code in ISO code two letter format for which all states should be returned.
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Array<(Array<RestCountryState>, Fixnum, Hash)>] Array<RestCountryState> data, response status code and response headers
|
100
|
+
def country_state_service_country_with_http_info(code, opts = {})
|
101
|
+
if @api_client.config.debugging
|
102
|
+
@api_client.config.logger.debug "Calling API: CountryStateService.country_state_service_country ..."
|
103
|
+
end
|
104
|
+
# verify the required parameter 'code' is set
|
105
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling CountryStateService.country_state_service_country" if code.nil?
|
106
|
+
# resource path
|
107
|
+
local_var_path = "/country-state/country".sub('{format}','json')
|
108
|
+
|
109
|
+
# query parameters
|
110
|
+
query_params = {}
|
111
|
+
query_params[:'code'] = code
|
112
|
+
|
113
|
+
# header parameters
|
114
|
+
header_params = {}
|
115
|
+
|
116
|
+
# HTTP header 'Accept' (if needed)
|
117
|
+
local_header_accept = ['*/*']
|
118
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
119
|
+
|
120
|
+
# HTTP header 'Content-Type'
|
121
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
122
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
123
|
+
|
124
|
+
# form parameters
|
125
|
+
form_params = {}
|
126
|
+
|
127
|
+
# http body (model)
|
128
|
+
post_body = nil
|
129
|
+
auth_names = []
|
130
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => 'Array<RestCountryState>')
|
137
|
+
if @api_client.config.debugging
|
138
|
+
@api_client.config.logger.debug "API called: CountryStateService#country_state_service_country\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
139
|
+
end
|
140
|
+
return data, status_code, headers
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
=begin
|
2
|
+
Wallee API: 1.0.0
|
3
|
+
|
4
|
+
The wallee API allows an easy interaction with the wallee web service.
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
you may not use this file except in compliance with the License.
|
10
|
+
You may obtain a copy of the License at
|
11
|
+
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
See the License for the specific language governing permissions and
|
18
|
+
limitations under the License.
|
19
|
+
|
20
|
+
=end
|
21
|
+
|
22
|
+
require "uri"
|
23
|
+
|
24
|
+
module Wallee
|
25
|
+
class CurrencyService
|
26
|
+
attr_accessor :api_client
|
27
|
+
|
28
|
+
def initialize(api_client = ApiClient.default)
|
29
|
+
@api_client = api_client
|
30
|
+
end
|
31
|
+
|
32
|
+
# All
|
33
|
+
# This operation returns all currencies.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [Array<RestCurrency>]
|
36
|
+
def currency_service_all(opts = {})
|
37
|
+
data, _status_code, _headers = currency_service_all_with_http_info(opts)
|
38
|
+
return data
|
39
|
+
end
|
40
|
+
|
41
|
+
# All
|
42
|
+
# This operation returns all currencies.
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [Array<(Array<RestCurrency>, Fixnum, Hash)>] Array<RestCurrency> data, response status code and response headers
|
45
|
+
def currency_service_all_with_http_info(opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug "Calling API: CurrencyService.currency_service_all ..."
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = "/currency/all".sub('{format}','json')
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = {}
|
57
|
+
|
58
|
+
# HTTP header 'Accept' (if needed)
|
59
|
+
local_header_accept = ['*/*']
|
60
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
61
|
+
|
62
|
+
# HTTP header 'Content-Type'
|
63
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
auth_names = []
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => 'Array<RestCurrency>')
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: CurrencyService#currency_service_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|