Skip to content

Commit

Permalink
Release 2.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
schurter-wallee committed Jan 19, 2021
1 parent c5b57dd commit 7fad421
Show file tree
Hide file tree
Showing 37 changed files with 4,811 additions and 551 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 wallee AG
Copyright 2021 wallee AG

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
24 changes: 23 additions & 1 deletion lib/wallee-ruby-sdk.rb
Expand Up @@ -48,6 +48,15 @@
require 'wallee-ruby-sdk/models/account_type'
require 'wallee-ruby-sdk/models/address'
require 'wallee-ruby-sdk/models/address_create'
require 'wallee-ruby-sdk/models/bank_account'
require 'wallee-ruby-sdk/models/bank_account_environment'
require 'wallee-ruby-sdk/models/bank_account_state'
require 'wallee-ruby-sdk/models/bank_account_type'
require 'wallee-ruby-sdk/models/bank_transaction'
require 'wallee-ruby-sdk/models/bank_transaction_flow_direction'
require 'wallee-ruby-sdk/models/bank_transaction_source'
require 'wallee-ruby-sdk/models/bank_transaction_state'
require 'wallee-ruby-sdk/models/bank_transaction_type'
require 'wallee-ruby-sdk/models/charge_attempt_environment'
require 'wallee-ruby-sdk/models/charge_attempt_state'
require 'wallee-ruby-sdk/models/charge_flow'
Expand All @@ -65,6 +74,7 @@
require 'wallee-ruby-sdk/models/connector_invocation_stage'
require 'wallee-ruby-sdk/models/creation_entity_state'
require 'wallee-ruby-sdk/models/criteria_operator'
require 'wallee-ruby-sdk/models/currency_bank_account'
require 'wallee-ruby-sdk/models/customer'
require 'wallee-ruby-sdk/models/customer_address'
require 'wallee-ruby-sdk/models/customer_address_type'
Expand Down Expand Up @@ -100,6 +110,7 @@
require 'wallee-ruby-sdk/models/entity_query_order_by'
require 'wallee-ruby-sdk/models/entity_query_order_by_type'
require 'wallee-ruby-sdk/models/environment'
require 'wallee-ruby-sdk/models/external_transfer_bank_transaction'
require 'wallee-ruby-sdk/models/failure_category'
require 'wallee-ruby-sdk/models/failure_reason'
require 'wallee-ruby-sdk/models/feature'
Expand All @@ -113,6 +124,7 @@
require 'wallee-ruby-sdk/models/installment_payment_state'
require 'wallee-ruby-sdk/models/installment_plan_configuration'
require 'wallee-ruby-sdk/models/installment_plan_slice_configuration'
require 'wallee-ruby-sdk/models/internal_transfer_bank_transaction'
require 'wallee-ruby-sdk/models/label'
require 'wallee-ruby-sdk/models/label_descriptor'
require 'wallee-ruby-sdk/models/label_descriptor_category'
Expand All @@ -134,6 +146,8 @@
require 'wallee-ruby-sdk/models/manual_task_type'
require 'wallee-ruby-sdk/models/metric_usage'
require 'wallee-ruby-sdk/models/one_click_payment_mode'
require 'wallee-ruby-sdk/models/payment_adjustment'
require 'wallee-ruby-sdk/models/payment_adjustment_type'
require 'wallee-ruby-sdk/models/payment_connector'
require 'wallee-ruby-sdk/models/payment_connector_configuration'
require 'wallee-ruby-sdk/models/payment_connector_feature'
Expand All @@ -143,6 +157,7 @@
require 'wallee-ruby-sdk/models/payment_information_hash'
require 'wallee-ruby-sdk/models/payment_information_hash_type'
require 'wallee-ruby-sdk/models/payment_link'
require 'wallee-ruby-sdk/models/payment_link_address_handling_mode'
require 'wallee-ruby-sdk/models/payment_link_protection_mode'
require 'wallee-ruby-sdk/models/payment_link_update'
require 'wallee-ruby-sdk/models/payment_method'
Expand Down Expand Up @@ -331,6 +346,7 @@
require 'wallee-ruby-sdk/models/application_user_update'
require 'wallee-ruby-sdk/models/charge'
require 'wallee-ruby-sdk/models/charge_attempt'
require 'wallee-ruby-sdk/models/charge_bank_transaction'
require 'wallee-ruby-sdk/models/charge_flow_level'
require 'wallee-ruby-sdk/models/charge_flow_level_payment_link'
require 'wallee-ruby-sdk/models/connector_invocation'
Expand All @@ -348,9 +364,10 @@
require 'wallee-ruby-sdk/models/installment_payment_slice'
require 'wallee-ruby-sdk/models/payment_link_active'
require 'wallee-ruby-sdk/models/payment_link_create'
require 'wallee-ruby-sdk/models/payment_terminal_contact_address'
require 'wallee-ruby-sdk/models/refund_bank_transaction'
require 'wallee-ruby-sdk/models/refund_comment_active'
require 'wallee-ruby-sdk/models/refund_comment_create'
require 'wallee-ruby-sdk/models/refund_recovery_bank_transaction'
require 'wallee-ruby-sdk/models/shopify_recurring_order'
require 'wallee-ruby-sdk/models/shopify_subscription_address'
require 'wallee-ruby-sdk/models/shopify_subscription_product_create'
Expand Down Expand Up @@ -393,6 +410,7 @@
require 'wallee-ruby-sdk/api/application_user_service_api'
require 'wallee-ruby-sdk/api/card_processing_service_api'
require 'wallee-ruby-sdk/api/charge_attempt_service_api'
require 'wallee-ruby-sdk/api/charge_bank_transaction_service_api'
require 'wallee-ruby-sdk/api/charge_flow_level_payment_link_service_api'
require 'wallee-ruby-sdk/api/charge_flow_level_service_api'
require 'wallee-ruby-sdk/api/charge_flow_service_api'
Expand All @@ -409,12 +427,14 @@
require 'wallee-ruby-sdk/api/delivery_indication_service_api'
require 'wallee-ruby-sdk/api/document_template_service_api'
require 'wallee-ruby-sdk/api/document_template_type_service_api'
require 'wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api'
require 'wallee-ruby-sdk/api/human_user_service_api'
require 'wallee-ruby-sdk/api/installment_payment_service_api'
require 'wallee-ruby-sdk/api/installment_payment_slice_service_api'
require 'wallee-ruby-sdk/api/installment_plan_calculation_service_api'
require 'wallee-ruby-sdk/api/installment_plan_configuration_service_api'
require 'wallee-ruby-sdk/api/installment_plan_slice_configuration_service_api'
require 'wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api'
require 'wallee-ruby-sdk/api/label_description_group_service_api'
require 'wallee-ruby-sdk/api/label_description_service_api'
require 'wallee-ruby-sdk/api/language_service_api'
Expand All @@ -432,7 +452,9 @@
require 'wallee-ruby-sdk/api/payment_terminal_service_api'
require 'wallee-ruby-sdk/api/payment_terminal_till_service_api'
require 'wallee-ruby-sdk/api/permission_service_api'
require 'wallee-ruby-sdk/api/refund_bank_transaction_service_api'
require 'wallee-ruby-sdk/api/refund_comment_service_api'
require 'wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api'
require 'wallee-ruby-sdk/api/refund_service_api'
require 'wallee-ruby-sdk/api/shopify_recurring_order_service_api'
require 'wallee-ruby-sdk/api/shopify_subscriber_service_api'
Expand Down
213 changes: 213 additions & 0 deletions lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb
@@ -0,0 +1,213 @@
=begin
The wallee API allows an easy interaction with the wallee web service.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=end

require "uri"

module Wallee
class ChargeBankTransactionService
attr_accessor :api_client

def initialize(api_client = ApiClient.default)
@api_client = api_client
end

# Count
# Counts the number of items in the database as restricted by the given filter.
# @param space_id
# @param [Hash] opts the optional parameters
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
# @return [Integer]
def count(space_id, opts = {})
data, _status_code, _headers = count_with_http_info(space_id, opts)
return data
end

# Count
# Counts the number of items in the database as restricted by the given filter.
# @param space_id
# @param [Hash] opts the optional parameters
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
# @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
def count_with_http_info(space_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ChargeBankTransactionService.count ..."
end
# verify the required parameter 'space_id' is set
fail ArgumentError, "Missing the required parameter 'space_id' when calling ChargeBankTransactionService.count" if space_id.nil?
# resource path
local_var_path = "/charge-bank-transaction/count".sub('{format}','json')

# query parameters
query_params = {}
query_params[:'spaceId'] = space_id

# header parameters
header_params = {}

# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json;charset=utf-8']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

# HTTP header 'Content-Type'
local_header_content_type = ['application/json;charset=utf-8']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

# form parameters
form_params = {}

# http body (model)
post_body = @api_client.object_to_http_body(opts[:'filter'])
auth_names = []
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Integer')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: ChargeBankTransactionService#count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# Read
# Reads the entity with the given 'id' and returns it.
# @param space_id
# @param id The ID of the charge bank transaction which should be returned.
# @param [Hash] opts the optional parameters
# @return [ChargeBankTransaction]
def read(space_id, id, opts = {})
data, _status_code, _headers = read_with_http_info(space_id, id, opts)
return data
end

# Read
# Reads the entity with the given &#39;id&#39; and returns it.
# @param space_id
# @param id The ID of the charge bank transaction which should be returned.
# @param [Hash] opts the optional parameters
# @return [Array<(ChargeBankTransaction, Fixnum, Hash)>] ChargeBankTransaction data, response status code and response headers
def read_with_http_info(space_id, id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ChargeBankTransactionService.read ..."
end
# verify the required parameter 'space_id' is set
fail ArgumentError, "Missing the required parameter 'space_id' when calling ChargeBankTransactionService.read" if space_id.nil?
# verify the required parameter 'id' is set
fail ArgumentError, "Missing the required parameter 'id' when calling ChargeBankTransactionService.read" if id.nil?
# resource path
local_var_path = "/charge-bank-transaction/read".sub('{format}','json')

# query parameters
query_params = {}
query_params[:'spaceId'] = space_id
query_params[:'id'] = id

# header parameters
header_params = {}

# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json;charset=utf-8']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

# HTTP header 'Content-Type'
local_header_content_type = ['*/*']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

# form parameters
form_params = {}

# http body (model)
post_body = nil
auth_names = []
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'ChargeBankTransaction')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: ChargeBankTransactionService#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# Search
# Searches for the entities as specified by the given query.
# @param space_id
# @param query The query restricts the charge bank transactions which are returned by the search.
# @param [Hash] opts the optional parameters
# @return [Array<ChargeBankTransaction>]
def search(space_id, query, opts = {})
data, _status_code, _headers = search_with_http_info(space_id, query, opts)
return data
end

# Search
# Searches for the entities as specified by the given query.
# @param space_id
# @param query The query restricts the charge bank transactions which are returned by the search.
# @param [Hash] opts the optional parameters
# @return [Array<(Array<ChargeBankTransaction>, Fixnum, Hash)>] Array<ChargeBankTransaction> data, response status code and response headers
def search_with_http_info(space_id, query, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ChargeBankTransactionService.search ..."
end
# verify the required parameter 'space_id' is set
fail ArgumentError, "Missing the required parameter 'space_id' when calling ChargeBankTransactionService.search" if space_id.nil?
# verify the required parameter 'query' is set
fail ArgumentError, "Missing the required parameter 'query' when calling ChargeBankTransactionService.search" if query.nil?
# resource path
local_var_path = "/charge-bank-transaction/search".sub('{format}','json')

# query parameters
query_params = {}
query_params[:'spaceId'] = space_id

# header parameters
header_params = {}

# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json;charset=utf-8']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

# HTTP header 'Content-Type'
local_header_content_type = ['application/json;charset=utf-8']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

# form parameters
form_params = {}

# http body (model)
post_body = @api_client.object_to_http_body(query)
auth_names = []
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Array<ChargeBankTransaction>')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: ChargeBankTransactionService#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
end
end

0 comments on commit 7fad421

Please sign in to comment.