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,343 @@
|
|
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 TransactionCompletionService
|
26
|
+
attr_accessor :api_client
|
27
|
+
|
28
|
+
def initialize(api_client = ApiClient.default)
|
29
|
+
@api_client = api_client
|
30
|
+
end
|
31
|
+
|
32
|
+
# completeOffline
|
33
|
+
# This operation completes the transaction offline. The completion is not forwarded to the processor. This implies the processor does not do anything. This method is only here to fix manually the transaction state.
|
34
|
+
# @param space_id
|
35
|
+
# @param id The id of the transaction which should be completed.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [TransactionCompletion]
|
38
|
+
def transaction_completion_service_complete_offline(space_id, id, opts = {})
|
39
|
+
data, _status_code, _headers = transaction_completion_service_complete_offline_with_http_info(space_id, id, opts)
|
40
|
+
return data
|
41
|
+
end
|
42
|
+
|
43
|
+
# completeOffline
|
44
|
+
# This operation completes the transaction offline. The completion is not forwarded to the processor. This implies the processor does not do anything. This method is only here to fix manually the transaction state.
|
45
|
+
# @param space_id
|
46
|
+
# @param id The id of the transaction which should be completed.
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Array<(TransactionCompletion, Fixnum, Hash)>] TransactionCompletion data, response status code and response headers
|
49
|
+
def transaction_completion_service_complete_offline_with_http_info(space_id, id, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_complete_offline ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'space_id' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_complete_offline" if space_id.nil?
|
55
|
+
# verify the required parameter 'id' is set
|
56
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCompletionService.transaction_completion_service_complete_offline" if id.nil?
|
57
|
+
# resource path
|
58
|
+
local_var_path = "/transaction-completion/completeOffline".sub('{format}','json')
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = {}
|
62
|
+
query_params[:'spaceId'] = space_id
|
63
|
+
query_params[:'id'] = id
|
64
|
+
|
65
|
+
# header parameters
|
66
|
+
header_params = {}
|
67
|
+
|
68
|
+
# HTTP header 'Accept' (if needed)
|
69
|
+
local_header_accept = []
|
70
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
71
|
+
|
72
|
+
# HTTP header 'Content-Type'
|
73
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
74
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
75
|
+
|
76
|
+
# form parameters
|
77
|
+
form_params = {}
|
78
|
+
|
79
|
+
# http body (model)
|
80
|
+
post_body = nil
|
81
|
+
auth_names = []
|
82
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
83
|
+
:header_params => header_params,
|
84
|
+
:query_params => query_params,
|
85
|
+
:form_params => form_params,
|
86
|
+
:body => post_body,
|
87
|
+
:auth_names => auth_names,
|
88
|
+
:return_type => 'TransactionCompletion')
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_complete_offline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
|
+
end
|
92
|
+
return data, status_code, headers
|
93
|
+
end
|
94
|
+
|
95
|
+
# completeOnline
|
96
|
+
# This operation completes the transaction online. The completion is forwarded to the processor. This implies that the processor may take some actions based on the completion.
|
97
|
+
# @param space_id
|
98
|
+
# @param id The id of the transaction which should be completed.
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [TransactionCompletion]
|
101
|
+
def transaction_completion_service_complete_online(space_id, id, opts = {})
|
102
|
+
data, _status_code, _headers = transaction_completion_service_complete_online_with_http_info(space_id, id, opts)
|
103
|
+
return data
|
104
|
+
end
|
105
|
+
|
106
|
+
# completeOnline
|
107
|
+
# This operation completes the transaction online. The completion is forwarded to the processor. This implies that the processor may take some actions based on the completion.
|
108
|
+
# @param space_id
|
109
|
+
# @param id The id of the transaction which should be completed.
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [Array<(TransactionCompletion, Fixnum, Hash)>] TransactionCompletion data, response status code and response headers
|
112
|
+
def transaction_completion_service_complete_online_with_http_info(space_id, id, opts = {})
|
113
|
+
if @api_client.config.debugging
|
114
|
+
@api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_complete_online ..."
|
115
|
+
end
|
116
|
+
# verify the required parameter 'space_id' is set
|
117
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_complete_online" if space_id.nil?
|
118
|
+
# verify the required parameter 'id' is set
|
119
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCompletionService.transaction_completion_service_complete_online" if id.nil?
|
120
|
+
# resource path
|
121
|
+
local_var_path = "/transaction-completion/completeOnline".sub('{format}','json')
|
122
|
+
|
123
|
+
# query parameters
|
124
|
+
query_params = {}
|
125
|
+
query_params[:'spaceId'] = space_id
|
126
|
+
query_params[:'id'] = id
|
127
|
+
|
128
|
+
# header parameters
|
129
|
+
header_params = {}
|
130
|
+
|
131
|
+
# HTTP header 'Accept' (if needed)
|
132
|
+
local_header_accept = []
|
133
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
134
|
+
|
135
|
+
# HTTP header 'Content-Type'
|
136
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
137
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
138
|
+
|
139
|
+
# form parameters
|
140
|
+
form_params = {}
|
141
|
+
|
142
|
+
# http body (model)
|
143
|
+
post_body = nil
|
144
|
+
auth_names = []
|
145
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
146
|
+
:header_params => header_params,
|
147
|
+
:query_params => query_params,
|
148
|
+
:form_params => form_params,
|
149
|
+
:body => post_body,
|
150
|
+
:auth_names => auth_names,
|
151
|
+
:return_type => 'TransactionCompletion')
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_complete_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
+
end
|
155
|
+
return data, status_code, headers
|
156
|
+
end
|
157
|
+
|
158
|
+
# Count
|
159
|
+
# Counts the number of items in the database as restricted by the given filter.
|
160
|
+
# @param space_id
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
163
|
+
# @return [Integer]
|
164
|
+
def transaction_completion_service_count(space_id, opts = {})
|
165
|
+
data, _status_code, _headers = transaction_completion_service_count_with_http_info(space_id, opts)
|
166
|
+
return data
|
167
|
+
end
|
168
|
+
|
169
|
+
# Count
|
170
|
+
# Counts the number of items in the database as restricted by the given filter.
|
171
|
+
# @param space_id
|
172
|
+
# @param [Hash] opts the optional parameters
|
173
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
174
|
+
# @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
|
175
|
+
def transaction_completion_service_count_with_http_info(space_id, opts = {})
|
176
|
+
if @api_client.config.debugging
|
177
|
+
@api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_count ..."
|
178
|
+
end
|
179
|
+
# verify the required parameter 'space_id' is set
|
180
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_count" if space_id.nil?
|
181
|
+
# resource path
|
182
|
+
local_var_path = "/transaction-completion/count".sub('{format}','json')
|
183
|
+
|
184
|
+
# query parameters
|
185
|
+
query_params = {}
|
186
|
+
query_params[:'spaceId'] = space_id
|
187
|
+
|
188
|
+
# header parameters
|
189
|
+
header_params = {}
|
190
|
+
|
191
|
+
# HTTP header 'Accept' (if needed)
|
192
|
+
local_header_accept = ['application/json;charset=utf-8']
|
193
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
194
|
+
|
195
|
+
# HTTP header 'Content-Type'
|
196
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
197
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
198
|
+
|
199
|
+
# form parameters
|
200
|
+
form_params = {}
|
201
|
+
|
202
|
+
# http body (model)
|
203
|
+
post_body = @api_client.object_to_http_body(opts[:'filter'])
|
204
|
+
auth_names = []
|
205
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
206
|
+
:header_params => header_params,
|
207
|
+
:query_params => query_params,
|
208
|
+
:form_params => form_params,
|
209
|
+
:body => post_body,
|
210
|
+
:auth_names => auth_names,
|
211
|
+
:return_type => 'Integer')
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
214
|
+
end
|
215
|
+
return data, status_code, headers
|
216
|
+
end
|
217
|
+
|
218
|
+
# Read
|
219
|
+
# Reads the entity with the given 'id' and returns it.
|
220
|
+
# @param space_id
|
221
|
+
# @param id The id of the transaction completions which should be returned.
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @return [TransactionCompletion]
|
224
|
+
def transaction_completion_service_read(space_id, id, opts = {})
|
225
|
+
data, _status_code, _headers = transaction_completion_service_read_with_http_info(space_id, id, opts)
|
226
|
+
return data
|
227
|
+
end
|
228
|
+
|
229
|
+
# Read
|
230
|
+
# Reads the entity with the given 'id' and returns it.
|
231
|
+
# @param space_id
|
232
|
+
# @param id The id of the transaction completions which should be returned.
|
233
|
+
# @param [Hash] opts the optional parameters
|
234
|
+
# @return [Array<(TransactionCompletion, Fixnum, Hash)>] TransactionCompletion data, response status code and response headers
|
235
|
+
def transaction_completion_service_read_with_http_info(space_id, id, opts = {})
|
236
|
+
if @api_client.config.debugging
|
237
|
+
@api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_read ..."
|
238
|
+
end
|
239
|
+
# verify the required parameter 'space_id' is set
|
240
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_read" if space_id.nil?
|
241
|
+
# verify the required parameter 'id' is set
|
242
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionCompletionService.transaction_completion_service_read" if id.nil?
|
243
|
+
# resource path
|
244
|
+
local_var_path = "/transaction-completion/read".sub('{format}','json')
|
245
|
+
|
246
|
+
# query parameters
|
247
|
+
query_params = {}
|
248
|
+
query_params[:'spaceId'] = space_id
|
249
|
+
query_params[:'id'] = id
|
250
|
+
|
251
|
+
# header parameters
|
252
|
+
header_params = {}
|
253
|
+
|
254
|
+
# HTTP header 'Accept' (if needed)
|
255
|
+
local_header_accept = ['*/*']
|
256
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
257
|
+
|
258
|
+
# HTTP header 'Content-Type'
|
259
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
260
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = nil
|
267
|
+
auth_names = []
|
268
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
269
|
+
:header_params => header_params,
|
270
|
+
:query_params => query_params,
|
271
|
+
:form_params => form_params,
|
272
|
+
:body => post_body,
|
273
|
+
:auth_names => auth_names,
|
274
|
+
:return_type => 'TransactionCompletion')
|
275
|
+
if @api_client.config.debugging
|
276
|
+
@api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
277
|
+
end
|
278
|
+
return data, status_code, headers
|
279
|
+
end
|
280
|
+
|
281
|
+
# Search
|
282
|
+
# Searches for the entities as specified by the given query.
|
283
|
+
# @param space_id
|
284
|
+
# @param query The query restricts the transaction completions which are returned by the search.
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @return [Array<TransactionCompletion>]
|
287
|
+
def transaction_completion_service_search(space_id, query, opts = {})
|
288
|
+
data, _status_code, _headers = transaction_completion_service_search_with_http_info(space_id, query, opts)
|
289
|
+
return data
|
290
|
+
end
|
291
|
+
|
292
|
+
# Search
|
293
|
+
# Searches for the entities as specified by the given query.
|
294
|
+
# @param space_id
|
295
|
+
# @param query The query restricts the transaction completions which are returned by the search.
|
296
|
+
# @param [Hash] opts the optional parameters
|
297
|
+
# @return [Array<(Array<TransactionCompletion>, Fixnum, Hash)>] Array<TransactionCompletion> data, response status code and response headers
|
298
|
+
def transaction_completion_service_search_with_http_info(space_id, query, opts = {})
|
299
|
+
if @api_client.config.debugging
|
300
|
+
@api_client.config.logger.debug "Calling API: TransactionCompletionService.transaction_completion_service_search ..."
|
301
|
+
end
|
302
|
+
# verify the required parameter 'space_id' is set
|
303
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionCompletionService.transaction_completion_service_search" if space_id.nil?
|
304
|
+
# verify the required parameter 'query' is set
|
305
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling TransactionCompletionService.transaction_completion_service_search" if query.nil?
|
306
|
+
# resource path
|
307
|
+
local_var_path = "/transaction-completion/search".sub('{format}','json')
|
308
|
+
|
309
|
+
# query parameters
|
310
|
+
query_params = {}
|
311
|
+
query_params[:'spaceId'] = space_id
|
312
|
+
|
313
|
+
# header parameters
|
314
|
+
header_params = {}
|
315
|
+
|
316
|
+
# HTTP header 'Accept' (if needed)
|
317
|
+
local_header_accept = ['application/json;charset=utf-8']
|
318
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
319
|
+
|
320
|
+
# HTTP header 'Content-Type'
|
321
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
322
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
323
|
+
|
324
|
+
# form parameters
|
325
|
+
form_params = {}
|
326
|
+
|
327
|
+
# http body (model)
|
328
|
+
post_body = @api_client.object_to_http_body(query)
|
329
|
+
auth_names = []
|
330
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
331
|
+
:header_params => header_params,
|
332
|
+
:query_params => query_params,
|
333
|
+
:form_params => form_params,
|
334
|
+
:body => post_body,
|
335
|
+
:auth_names => auth_names,
|
336
|
+
:return_type => 'Array<TransactionCompletion>')
|
337
|
+
if @api_client.config.debugging
|
338
|
+
@api_client.config.logger.debug "API called: TransactionCompletionService#transaction_completion_service_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
339
|
+
end
|
340
|
+
return data, status_code, headers
|
341
|
+
end
|
342
|
+
end
|
343
|
+
end
|
@@ -0,0 +1,473 @@
|
|
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 TransactionInvoiceService
|
26
|
+
attr_accessor :api_client
|
27
|
+
|
28
|
+
def initialize(api_client = ApiClient.default)
|
29
|
+
@api_client = api_client
|
30
|
+
end
|
31
|
+
|
32
|
+
# Count
|
33
|
+
# Counts the number of items in the database as restricted by the given filter.
|
34
|
+
# @param space_id
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
37
|
+
# @return [Integer]
|
38
|
+
def transaction_invoice_service_count(space_id, opts = {})
|
39
|
+
data, _status_code, _headers = transaction_invoice_service_count_with_http_info(space_id, opts)
|
40
|
+
return data
|
41
|
+
end
|
42
|
+
|
43
|
+
# Count
|
44
|
+
# Counts the number of items in the database as restricted by the given filter.
|
45
|
+
# @param space_id
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
|
48
|
+
# @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
|
49
|
+
def transaction_invoice_service_count_with_http_info(space_id, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: TransactionInvoiceService.transaction_invoice_service_count ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'space_id' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceService.transaction_invoice_service_count" if space_id.nil?
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/transaction-invoice/count".sub('{format}','json')
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = {}
|
60
|
+
query_params[:'spaceId'] = space_id
|
61
|
+
|
62
|
+
# header parameters
|
63
|
+
header_params = {}
|
64
|
+
|
65
|
+
# HTTP header 'Accept' (if needed)
|
66
|
+
local_header_accept = ['application/json;charset=utf-8']
|
67
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
68
|
+
|
69
|
+
# HTTP header 'Content-Type'
|
70
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
71
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
72
|
+
|
73
|
+
# form parameters
|
74
|
+
form_params = {}
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
post_body = @api_client.object_to_http_body(opts[:'filter'])
|
78
|
+
auth_names = []
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names,
|
85
|
+
:return_type => 'Integer')
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: TransactionInvoiceService#transaction_invoice_service_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# getInvoiceDocument
|
93
|
+
# Returns the PDF document for the transaction invoice with given id.
|
94
|
+
# @param space_id
|
95
|
+
# @param id The id of the transaction invoice to get the document for.
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @return [RenderedDocument]
|
98
|
+
def transaction_invoice_service_get_invoice_document(space_id, id, opts = {})
|
99
|
+
data, _status_code, _headers = transaction_invoice_service_get_invoice_document_with_http_info(space_id, id, opts)
|
100
|
+
return data
|
101
|
+
end
|
102
|
+
|
103
|
+
# getInvoiceDocument
|
104
|
+
# Returns the PDF document for the transaction invoice with given id.
|
105
|
+
# @param space_id
|
106
|
+
# @param id The id of the transaction invoice to get the document for.
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @return [Array<(RenderedDocument, Fixnum, Hash)>] RenderedDocument data, response status code and response headers
|
109
|
+
def transaction_invoice_service_get_invoice_document_with_http_info(space_id, id, opts = {})
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug "Calling API: TransactionInvoiceService.transaction_invoice_service_get_invoice_document ..."
|
112
|
+
end
|
113
|
+
# verify the required parameter 'space_id' is set
|
114
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceService.transaction_invoice_service_get_invoice_document" if space_id.nil?
|
115
|
+
# verify the required parameter 'id' is set
|
116
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceService.transaction_invoice_service_get_invoice_document" if id.nil?
|
117
|
+
# resource path
|
118
|
+
local_var_path = "/transaction-invoice/getInvoiceDocument".sub('{format}','json')
|
119
|
+
|
120
|
+
# query parameters
|
121
|
+
query_params = {}
|
122
|
+
query_params[:'spaceId'] = space_id
|
123
|
+
query_params[:'id'] = id
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = {}
|
127
|
+
|
128
|
+
# HTTP header 'Accept' (if needed)
|
129
|
+
local_header_accept = ['*/*']
|
130
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
131
|
+
|
132
|
+
# HTTP header 'Content-Type'
|
133
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
134
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
135
|
+
|
136
|
+
# form parameters
|
137
|
+
form_params = {}
|
138
|
+
|
139
|
+
# http body (model)
|
140
|
+
post_body = nil
|
141
|
+
auth_names = []
|
142
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
143
|
+
:header_params => header_params,
|
144
|
+
:query_params => query_params,
|
145
|
+
:form_params => form_params,
|
146
|
+
:body => post_body,
|
147
|
+
:auth_names => auth_names,
|
148
|
+
:return_type => 'RenderedDocument')
|
149
|
+
if @api_client.config.debugging
|
150
|
+
@api_client.config.logger.debug "API called: TransactionInvoiceService#transaction_invoice_service_get_invoice_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
151
|
+
end
|
152
|
+
return data, status_code, headers
|
153
|
+
end
|
154
|
+
|
155
|
+
# isReplacementPossible
|
156
|
+
# Returns whether the transaction invoice with the given id can be replaced.
|
157
|
+
# @param space_id
|
158
|
+
# @param id The invoice which should be checked if a replacement is possible.
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [BOOLEAN]
|
161
|
+
def transaction_invoice_service_is_replacement_possible(space_id, id, opts = {})
|
162
|
+
data, _status_code, _headers = transaction_invoice_service_is_replacement_possible_with_http_info(space_id, id, opts)
|
163
|
+
return data
|
164
|
+
end
|
165
|
+
|
166
|
+
# isReplacementPossible
|
167
|
+
# Returns whether the transaction invoice with the given id can be replaced.
|
168
|
+
# @param space_id
|
169
|
+
# @param id The invoice which should be checked if a replacement is possible.
|
170
|
+
# @param [Hash] opts the optional parameters
|
171
|
+
# @return [Array<(BOOLEAN, Fixnum, Hash)>] BOOLEAN data, response status code and response headers
|
172
|
+
def transaction_invoice_service_is_replacement_possible_with_http_info(space_id, id, opts = {})
|
173
|
+
if @api_client.config.debugging
|
174
|
+
@api_client.config.logger.debug "Calling API: TransactionInvoiceService.transaction_invoice_service_is_replacement_possible ..."
|
175
|
+
end
|
176
|
+
# verify the required parameter 'space_id' is set
|
177
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceService.transaction_invoice_service_is_replacement_possible" if space_id.nil?
|
178
|
+
# verify the required parameter 'id' is set
|
179
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceService.transaction_invoice_service_is_replacement_possible" if id.nil?
|
180
|
+
# resource path
|
181
|
+
local_var_path = "/transaction-invoice/isReplacementPossible".sub('{format}','json')
|
182
|
+
|
183
|
+
# query parameters
|
184
|
+
query_params = {}
|
185
|
+
query_params[:'spaceId'] = space_id
|
186
|
+
query_params[:'id'] = id
|
187
|
+
|
188
|
+
# header parameters
|
189
|
+
header_params = {}
|
190
|
+
|
191
|
+
# HTTP header 'Accept' (if needed)
|
192
|
+
local_header_accept = ['*/*']
|
193
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
194
|
+
|
195
|
+
# HTTP header 'Content-Type'
|
196
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
197
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
198
|
+
|
199
|
+
# form parameters
|
200
|
+
form_params = {}
|
201
|
+
|
202
|
+
# http body (model)
|
203
|
+
post_body = nil
|
204
|
+
auth_names = []
|
205
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
206
|
+
:header_params => header_params,
|
207
|
+
:query_params => query_params,
|
208
|
+
:form_params => form_params,
|
209
|
+
:body => post_body,
|
210
|
+
:auth_names => auth_names,
|
211
|
+
:return_type => 'BOOLEAN')
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug "API called: TransactionInvoiceService#transaction_invoice_service_is_replacement_possible\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
214
|
+
end
|
215
|
+
return data, status_code, headers
|
216
|
+
end
|
217
|
+
|
218
|
+
# Mark as Paid
|
219
|
+
# Marks the transaction invoice with the given id as paid.
|
220
|
+
# @param space_id
|
221
|
+
# @param id The id of the transaction invoice which should be marked as paid.
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @return [TransactionInvoice]
|
224
|
+
def transaction_invoice_service_mark_as_paid(space_id, id, opts = {})
|
225
|
+
data, _status_code, _headers = transaction_invoice_service_mark_as_paid_with_http_info(space_id, id, opts)
|
226
|
+
return data
|
227
|
+
end
|
228
|
+
|
229
|
+
# Mark as Paid
|
230
|
+
# Marks the transaction invoice with the given id as paid.
|
231
|
+
# @param space_id
|
232
|
+
# @param id The id of the transaction invoice which should be marked as paid.
|
233
|
+
# @param [Hash] opts the optional parameters
|
234
|
+
# @return [Array<(TransactionInvoice, Fixnum, Hash)>] TransactionInvoice data, response status code and response headers
|
235
|
+
def transaction_invoice_service_mark_as_paid_with_http_info(space_id, id, opts = {})
|
236
|
+
if @api_client.config.debugging
|
237
|
+
@api_client.config.logger.debug "Calling API: TransactionInvoiceService.transaction_invoice_service_mark_as_paid ..."
|
238
|
+
end
|
239
|
+
# verify the required parameter 'space_id' is set
|
240
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceService.transaction_invoice_service_mark_as_paid" if space_id.nil?
|
241
|
+
# verify the required parameter 'id' is set
|
242
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceService.transaction_invoice_service_mark_as_paid" if id.nil?
|
243
|
+
# resource path
|
244
|
+
local_var_path = "/transaction-invoice/markAsPaid".sub('{format}','json')
|
245
|
+
|
246
|
+
# query parameters
|
247
|
+
query_params = {}
|
248
|
+
query_params[:'spaceId'] = space_id
|
249
|
+
query_params[:'id'] = id
|
250
|
+
|
251
|
+
# header parameters
|
252
|
+
header_params = {}
|
253
|
+
|
254
|
+
# HTTP header 'Accept' (if needed)
|
255
|
+
local_header_accept = ['application/json;charset=utf-8']
|
256
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
257
|
+
|
258
|
+
# HTTP header 'Content-Type'
|
259
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
260
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = nil
|
267
|
+
auth_names = []
|
268
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
269
|
+
:header_params => header_params,
|
270
|
+
:query_params => query_params,
|
271
|
+
:form_params => form_params,
|
272
|
+
:body => post_body,
|
273
|
+
:auth_names => auth_names,
|
274
|
+
:return_type => 'TransactionInvoice')
|
275
|
+
if @api_client.config.debugging
|
276
|
+
@api_client.config.logger.debug "API called: TransactionInvoiceService#transaction_invoice_service_mark_as_paid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
277
|
+
end
|
278
|
+
return data, status_code, headers
|
279
|
+
end
|
280
|
+
|
281
|
+
# Read
|
282
|
+
# Reads the entity with the given 'id' and returns it.
|
283
|
+
# @param space_id
|
284
|
+
# @param id The id of the transaction invoices which should be returned.
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @return [TransactionInvoice]
|
287
|
+
def transaction_invoice_service_read(space_id, id, opts = {})
|
288
|
+
data, _status_code, _headers = transaction_invoice_service_read_with_http_info(space_id, id, opts)
|
289
|
+
return data
|
290
|
+
end
|
291
|
+
|
292
|
+
# Read
|
293
|
+
# Reads the entity with the given 'id' and returns it.
|
294
|
+
# @param space_id
|
295
|
+
# @param id The id of the transaction invoices which should be returned.
|
296
|
+
# @param [Hash] opts the optional parameters
|
297
|
+
# @return [Array<(TransactionInvoice, Fixnum, Hash)>] TransactionInvoice data, response status code and response headers
|
298
|
+
def transaction_invoice_service_read_with_http_info(space_id, id, opts = {})
|
299
|
+
if @api_client.config.debugging
|
300
|
+
@api_client.config.logger.debug "Calling API: TransactionInvoiceService.transaction_invoice_service_read ..."
|
301
|
+
end
|
302
|
+
# verify the required parameter 'space_id' is set
|
303
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceService.transaction_invoice_service_read" if space_id.nil?
|
304
|
+
# verify the required parameter 'id' is set
|
305
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceService.transaction_invoice_service_read" if id.nil?
|
306
|
+
# resource path
|
307
|
+
local_var_path = "/transaction-invoice/read".sub('{format}','json')
|
308
|
+
|
309
|
+
# query parameters
|
310
|
+
query_params = {}
|
311
|
+
query_params[:'spaceId'] = space_id
|
312
|
+
query_params[:'id'] = id
|
313
|
+
|
314
|
+
# header parameters
|
315
|
+
header_params = {}
|
316
|
+
|
317
|
+
# HTTP header 'Accept' (if needed)
|
318
|
+
local_header_accept = ['*/*']
|
319
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
320
|
+
|
321
|
+
# HTTP header 'Content-Type'
|
322
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
323
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
324
|
+
|
325
|
+
# form parameters
|
326
|
+
form_params = {}
|
327
|
+
|
328
|
+
# http body (model)
|
329
|
+
post_body = nil
|
330
|
+
auth_names = []
|
331
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
332
|
+
:header_params => header_params,
|
333
|
+
:query_params => query_params,
|
334
|
+
:form_params => form_params,
|
335
|
+
:body => post_body,
|
336
|
+
:auth_names => auth_names,
|
337
|
+
:return_type => 'TransactionInvoice')
|
338
|
+
if @api_client.config.debugging
|
339
|
+
@api_client.config.logger.debug "API called: TransactionInvoiceService#transaction_invoice_service_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
340
|
+
end
|
341
|
+
return data, status_code, headers
|
342
|
+
end
|
343
|
+
|
344
|
+
# replace
|
345
|
+
# Replaces the transaction invoice with given id with the replacement and returns the new transaction invoice.
|
346
|
+
# @param space_id
|
347
|
+
# @param id The id of the transaction invoices which should be replaced.
|
348
|
+
# @param replacement
|
349
|
+
# @param [Hash] opts the optional parameters
|
350
|
+
# @return [TransactionInvoice]
|
351
|
+
def transaction_invoice_service_replace(space_id, id, replacement, opts = {})
|
352
|
+
data, _status_code, _headers = transaction_invoice_service_replace_with_http_info(space_id, id, replacement, opts)
|
353
|
+
return data
|
354
|
+
end
|
355
|
+
|
356
|
+
# replace
|
357
|
+
# Replaces the transaction invoice with given id with the replacement and returns the new transaction invoice.
|
358
|
+
# @param space_id
|
359
|
+
# @param id The id of the transaction invoices which should be replaced.
|
360
|
+
# @param replacement
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @return [Array<(TransactionInvoice, Fixnum, Hash)>] TransactionInvoice data, response status code and response headers
|
363
|
+
def transaction_invoice_service_replace_with_http_info(space_id, id, replacement, opts = {})
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug "Calling API: TransactionInvoiceService.transaction_invoice_service_replace ..."
|
366
|
+
end
|
367
|
+
# verify the required parameter 'space_id' is set
|
368
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceService.transaction_invoice_service_replace" if space_id.nil?
|
369
|
+
# verify the required parameter 'id' is set
|
370
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionInvoiceService.transaction_invoice_service_replace" if id.nil?
|
371
|
+
# verify the required parameter 'replacement' is set
|
372
|
+
fail ArgumentError, "Missing the required parameter 'replacement' when calling TransactionInvoiceService.transaction_invoice_service_replace" if replacement.nil?
|
373
|
+
# resource path
|
374
|
+
local_var_path = "/transaction-invoice/replace".sub('{format}','json')
|
375
|
+
|
376
|
+
# query parameters
|
377
|
+
query_params = {}
|
378
|
+
query_params[:'spaceId'] = space_id
|
379
|
+
query_params[:'id'] = id
|
380
|
+
|
381
|
+
# header parameters
|
382
|
+
header_params = {}
|
383
|
+
|
384
|
+
# HTTP header 'Accept' (if needed)
|
385
|
+
local_header_accept = ['application/json;charset=utf-8']
|
386
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
387
|
+
|
388
|
+
# HTTP header 'Content-Type'
|
389
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
390
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
391
|
+
|
392
|
+
# form parameters
|
393
|
+
form_params = {}
|
394
|
+
|
395
|
+
# http body (model)
|
396
|
+
post_body = @api_client.object_to_http_body(replacement)
|
397
|
+
auth_names = []
|
398
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
399
|
+
:header_params => header_params,
|
400
|
+
:query_params => query_params,
|
401
|
+
:form_params => form_params,
|
402
|
+
:body => post_body,
|
403
|
+
:auth_names => auth_names,
|
404
|
+
:return_type => 'TransactionInvoice')
|
405
|
+
if @api_client.config.debugging
|
406
|
+
@api_client.config.logger.debug "API called: TransactionInvoiceService#transaction_invoice_service_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
407
|
+
end
|
408
|
+
return data, status_code, headers
|
409
|
+
end
|
410
|
+
|
411
|
+
# Search
|
412
|
+
# Searches for the entities as specified by the given query.
|
413
|
+
# @param space_id
|
414
|
+
# @param query The query restricts the transaction invoices which are returned by the search.
|
415
|
+
# @param [Hash] opts the optional parameters
|
416
|
+
# @return [Array<TransactionInvoice>]
|
417
|
+
def transaction_invoice_service_search(space_id, query, opts = {})
|
418
|
+
data, _status_code, _headers = transaction_invoice_service_search_with_http_info(space_id, query, opts)
|
419
|
+
return data
|
420
|
+
end
|
421
|
+
|
422
|
+
# Search
|
423
|
+
# Searches for the entities as specified by the given query.
|
424
|
+
# @param space_id
|
425
|
+
# @param query The query restricts the transaction invoices which are returned by the search.
|
426
|
+
# @param [Hash] opts the optional parameters
|
427
|
+
# @return [Array<(Array<TransactionInvoice>, Fixnum, Hash)>] Array<TransactionInvoice> data, response status code and response headers
|
428
|
+
def transaction_invoice_service_search_with_http_info(space_id, query, opts = {})
|
429
|
+
if @api_client.config.debugging
|
430
|
+
@api_client.config.logger.debug "Calling API: TransactionInvoiceService.transaction_invoice_service_search ..."
|
431
|
+
end
|
432
|
+
# verify the required parameter 'space_id' is set
|
433
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TransactionInvoiceService.transaction_invoice_service_search" if space_id.nil?
|
434
|
+
# verify the required parameter 'query' is set
|
435
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling TransactionInvoiceService.transaction_invoice_service_search" if query.nil?
|
436
|
+
# resource path
|
437
|
+
local_var_path = "/transaction-invoice/search".sub('{format}','json')
|
438
|
+
|
439
|
+
# query parameters
|
440
|
+
query_params = {}
|
441
|
+
query_params[:'spaceId'] = space_id
|
442
|
+
|
443
|
+
# header parameters
|
444
|
+
header_params = {}
|
445
|
+
|
446
|
+
# HTTP header 'Accept' (if needed)
|
447
|
+
local_header_accept = ['application/json;charset=utf-8']
|
448
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
449
|
+
|
450
|
+
# HTTP header 'Content-Type'
|
451
|
+
local_header_content_type = ['application/json;charset=utf-8']
|
452
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
453
|
+
|
454
|
+
# form parameters
|
455
|
+
form_params = {}
|
456
|
+
|
457
|
+
# http body (model)
|
458
|
+
post_body = @api_client.object_to_http_body(query)
|
459
|
+
auth_names = []
|
460
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
461
|
+
:header_params => header_params,
|
462
|
+
:query_params => query_params,
|
463
|
+
:form_params => form_params,
|
464
|
+
:body => post_body,
|
465
|
+
:auth_names => auth_names,
|
466
|
+
:return_type => 'Array<TransactionInvoice>')
|
467
|
+
if @api_client.config.debugging
|
468
|
+
@api_client.config.logger.debug "API called: TransactionInvoiceService#transaction_invoice_service_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
469
|
+
end
|
470
|
+
return data, status_code, headers
|
471
|
+
end
|
472
|
+
end
|
473
|
+
end
|