wallee-ruby-sdk 6.4.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +38 -31
  3. data/README.md +450 -129
  4. data/lib/wallee-ruby-sdk/api_client.rb +1 -1
  5. data/lib/wallee-ruby-sdk/models/abstract_o_auth_client_update.rb +340 -0
  6. data/lib/wallee-ruby-sdk/models/abstract_role_update.rb +13 -1
  7. data/lib/wallee-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
  8. data/lib/wallee-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
  9. data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
  10. data/lib/wallee-ruby-sdk/models/bank_payment_type.rb +50 -0
  11. data/lib/wallee-ruby-sdk/models/{abstract_payment_terminal_update.rb → basic_address.rb} +46 -30
  12. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_address_change_request.rb → boarding_strategy_information_request.rb} +22 -14
  13. data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_payment_data.rb → charge_attempt_lookup_result.rb} +16 -18
  14. data/lib/wallee-ruby-sdk/models/charge_attempt_projection.rb +560 -0
  15. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_option.rb → create_fulfillment_request.rb} +25 -50
  16. data/lib/wallee-ruby-sdk/models/delivery_days_range.rb +60 -0
  17. data/lib/wallee-ruby-sdk/models/delivery_destination.rb +51 -0
  18. data/lib/wallee-ruby-sdk/models/dunning_case_level.rb +403 -0
  19. data/lib/wallee-ruby-sdk/models/dunning_case_level_list_response.rb +253 -0
  20. data/lib/wallee-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
  21. data/lib/wallee-ruby-sdk/models/{express_checkout_session_state.rb → dunning_case_level_state.rb} +7 -7
  22. data/lib/wallee-ruby-sdk/models/extended_rest_o_auth_client.rb +425 -0
  23. data/lib/wallee-ruby-sdk/models/fulfillment.rb +428 -0
  24. data/lib/wallee-ruby-sdk/models/fulfillment_search_response.rb +263 -0
  25. data/lib/wallee-ruby-sdk/models/fulfillment_state.rb +52 -0
  26. data/lib/wallee-ruby-sdk/models/identity_info.rb +279 -0
  27. data/lib/wallee-ruby-sdk/models/invoice_processor.rb +51 -0
  28. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
  29. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link.rb +278 -0
  30. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
  31. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
  32. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
  33. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
  34. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
  35. data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
  36. data/lib/wallee-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
  37. data/lib/wallee-ruby-sdk/models/invoice_reimbursement.rb +463 -0
  38. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
  39. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
  40. data/lib/wallee-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
  41. data/lib/wallee-ruby-sdk/models/legal_form.rb +83 -0
  42. data/lib/wallee-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
  43. data/lib/wallee-ruby-sdk/models/merchant_application_state.rb +50 -0
  44. data/lib/wallee-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
  45. data/lib/wallee-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
  46. data/lib/wallee-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
  47. data/lib/wallee-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
  48. data/lib/wallee-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
  49. data/lib/wallee-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
  50. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_address_change_response.rb → merchant_related_persons_dto.rb} +22 -20
  51. data/lib/wallee-ruby-sdk/models/o_auth_client.rb +397 -0
  52. data/lib/wallee-ruby-sdk/models/o_auth_client_create.rb +365 -0
  53. data/lib/wallee-ruby-sdk/models/{user_space_role_list_response.rb → o_auth_client_list_response.rb} +4 -4
  54. data/lib/wallee-ruby-sdk/models/o_auth_client_search_response.rb +263 -0
  55. data/lib/wallee-ruby-sdk/models/o_auth_client_update.rb +374 -0
  56. data/lib/wallee-ruby-sdk/models/o_auth_consent.rb +321 -0
  57. data/lib/wallee-ruby-sdk/models/{user_account_role_list_response.rb → o_auth_consent_list_response.rb} +4 -4
  58. data/lib/wallee-ruby-sdk/models/o_auth_consent_search_response.rb +263 -0
  59. data/lib/wallee-ruby-sdk/models/{user_account_role.rb → o_auth_user.rb} +56 -29
  60. data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_approval_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -10
  61. data/lib/wallee-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
  62. data/lib/wallee-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb} +57 -72
  63. data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
  64. data/lib/wallee-ruby-sdk/models/payment_terminal.rb +37 -1
  65. data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
  66. data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
  67. data/lib/wallee-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
  68. data/lib/wallee-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
  69. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +1 -0
  70. data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
  71. data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
  72. data/lib/wallee-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
  73. data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
  74. data/lib/wallee-ruby-sdk/models/{express_checkout_create_response.rb → payout_account_info.rb} +31 -22
  75. data/lib/wallee-ruby-sdk/models/person_salutation.rb +54 -0
  76. data/lib/wallee-ruby-sdk/models/pricing_history_dto.rb +266 -0
  77. data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +11 -1
  78. data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +11 -1
  79. data/lib/wallee-ruby-sdk/models/refund_days_range.rb +51 -0
  80. data/lib/wallee-ruby-sdk/models/refund_percentage_range.rb +56 -0
  81. data/lib/wallee-ruby-sdk/models/related_person.rb +329 -0
  82. data/lib/wallee-ruby-sdk/models/representative_info.rb +239 -0
  83. data/lib/wallee-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
  84. data/lib/wallee-ruby-sdk/models/{express_checkout_approval_response.rb → rest_o_auth_client_secret.rb} +19 -17
  85. data/lib/wallee-ruby-sdk/models/rest_o_auth_client_secret_created.rb +289 -0
  86. data/lib/wallee-ruby-sdk/models/role.rb +13 -1
  87. data/lib/wallee-ruby-sdk/models/role_create.rb +13 -1
  88. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_request.rb → role_ref.rb} +21 -11
  89. data/lib/wallee-ruby-sdk/models/role_update.rb +13 -1
  90. data/lib/wallee-ruby-sdk/models/sales_channel.rb +15 -230
  91. data/lib/wallee-ruby-sdk/models/scope.rb +13 -1
  92. data/lib/wallee-ruby-sdk/models/secret_key_state.rb +51 -0
  93. data/lib/wallee-ruby-sdk/models/setter.rb +618 -0
  94. data/lib/wallee-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
  95. data/lib/wallee-ruby-sdk/models/sole_proprietorship_info.rb +261 -0
  96. data/lib/wallee-ruby-sdk/models/state_list_response.rb +253 -0
  97. data/lib/wallee-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
  98. data/lib/wallee-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
  99. data/lib/wallee-ruby-sdk/models/{express_checkout_session_create.rb → subscription_component_group_configuration_request.rb} +23 -37
  100. data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
  101. data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_response.rb → subscription_product_dto.rb} +16 -18
  102. data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
  103. data/lib/wallee-ruby-sdk/models/tracking_number_request.rb +230 -0
  104. data/lib/wallee-ruby-sdk/models/transaction_overview.rb +1144 -0
  105. data/lib/wallee-ruby-sdk/models/transaction_projection.rb +1135 -0
  106. data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
  107. data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
  108. data/lib/wallee-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
  109. data/lib/wallee-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
  110. data/lib/wallee-ruby-sdk/models/walleejoin_partnership.rb +357 -0
  111. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
  112. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
  113. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
  114. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
  115. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
  116. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
  117. data/lib/wallee-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
  118. data/lib/wallee-ruby-sdk/models/wallet_type.rb +40 -1
  119. data/lib/wallee-ruby-sdk/models/web_ui_account_theme.rb +230 -0
  120. data/lib/wallee-ruby-sdk/service/accounts_service.rb +16 -9
  121. data/lib/wallee-ruby-sdk/service/analytics_queries_service.rb +8 -8
  122. data/lib/wallee-ruby-sdk/service/bank_accounts_service.rb +3 -3
  123. data/lib/wallee-ruby-sdk/service/bank_transactions_service.rb +3 -3
  124. data/lib/wallee-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
  125. data/lib/wallee-ruby-sdk/service/charge_attempts_service.rb +3 -3
  126. data/lib/wallee-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
  127. data/lib/wallee-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
  128. data/lib/wallee-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
  129. data/lib/wallee-ruby-sdk/service/charge_flows_service.rb +3 -3
  130. data/lib/wallee-ruby-sdk/service/consumed_resources_service.rb +1 -1
  131. data/lib/wallee-ruby-sdk/service/countries_service.rb +15 -6
  132. data/lib/wallee-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
  133. data/lib/wallee-ruby-sdk/service/customer_addresses_service.rb +7 -7
  134. data/lib/wallee-ruby-sdk/service/customer_comments_service.rb +8 -8
  135. data/lib/wallee-ruby-sdk/service/customers_service.rb +11 -11
  136. data/lib/wallee-ruby-sdk/service/debt_collection_cases_service.rb +12 -12
  137. data/lib/wallee-ruby-sdk/service/debt_collector_configurations_service.rb +6 -6
  138. data/lib/wallee-ruby-sdk/service/delivery_indications_service.rb +5 -5
  139. data/lib/wallee-ruby-sdk/service/document_templates_service.rb +3 -3
  140. data/lib/wallee-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
  141. data/lib/wallee-ruby-sdk/service/dunning_cases_service.rb +5 -5
  142. data/lib/wallee-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
  143. data/lib/wallee-ruby-sdk/service/dunning_flows_service.rb +3 -3
  144. data/lib/wallee-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
  145. data/lib/wallee-ruby-sdk/service/fulfillments_service.rb +355 -0
  146. data/lib/wallee-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
  147. data/lib/wallee-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
  148. data/lib/wallee-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
  149. data/lib/wallee-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
  150. data/lib/wallee-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
  151. data/lib/wallee-ruby-sdk/service/join_partnership_service.rb +586 -0
  152. data/lib/wallee-ruby-sdk/service/manual_tasks_service.rb +5 -5
  153. data/lib/wallee-ruby-sdk/service/members_service.rb +215 -0
  154. data/lib/wallee-ruby-sdk/service/merchant_applications_service.rb +334 -0
  155. data/lib/wallee-ruby-sdk/service/o_auth_clients_service.rb +611 -0
  156. data/lib/wallee-ruby-sdk/service/o_auth_consents_service.rb +332 -0
  157. data/lib/wallee-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
  158. data/lib/wallee-ruby-sdk/service/payment_links_service.rb +6 -6
  159. data/lib/wallee-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
  160. data/lib/wallee-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
  161. data/lib/wallee-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
  162. data/lib/wallee-ruby-sdk/service/payment_terminals_service.rb +475 -22
  163. data/lib/wallee-ruby-sdk/service/payment_web_apps_service.rb +11 -11
  164. data/lib/wallee-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
  165. data/lib/wallee-ruby-sdk/service/refund_comments_service.rb +8 -8
  166. data/lib/wallee-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
  167. data/lib/wallee-ruby-sdk/service/refunds_service.rb +7 -7
  168. data/lib/wallee-ruby-sdk/service/spaces_service.rb +10 -3
  169. data/lib/wallee-ruby-sdk/service/subscribers_service.rb +6 -6
  170. data/lib/wallee-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
  171. data/lib/wallee-ruby-sdk/service/subscription_charges_service.rb +5 -5
  172. data/lib/wallee-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
  173. data/lib/wallee-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
  174. data/lib/wallee-ruby-sdk/service/subscription_metrics_service.rb +6 -6
  175. data/lib/wallee-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
  176. data/lib/wallee-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
  177. data/lib/wallee-ruby-sdk/service/subscription_product_components_service.rb +6 -6
  178. data/lib/wallee-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
  179. data/lib/wallee-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
  180. data/lib/wallee-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
  181. data/lib/wallee-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
  182. data/lib/wallee-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
  183. data/lib/wallee-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
  184. data/lib/wallee-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
  185. data/lib/wallee-ruby-sdk/service/subscription_products_service.rb +6 -6
  186. data/lib/wallee-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
  187. data/lib/wallee-ruby-sdk/service/subscription_versions_service.rb +3 -3
  188. data/lib/wallee-ruby-sdk/service/subscriptions_service.rb +13 -13
  189. data/lib/wallee-ruby-sdk/service/terminal_locations_service.rb +276 -0
  190. data/lib/wallee-ruby-sdk/service/token_versions_service.rb +3 -3
  191. data/lib/wallee-ruby-sdk/service/tokens_service.rb +8 -8
  192. data/lib/wallee-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
  193. data/lib/wallee-ruby-sdk/service/transaction_comments_service.rb +8 -8
  194. data/lib/wallee-ruby-sdk/service/transaction_completions_service.rb +3 -3
  195. data/lib/wallee-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
  196. data/lib/wallee-ruby-sdk/service/transaction_invoices_service.rb +86 -8
  197. data/lib/wallee-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
  198. data/lib/wallee-ruby-sdk/service/transaction_voids_service.rb +3 -3
  199. data/lib/wallee-ruby-sdk/service/transactions_service.rb +179 -37
  200. data/lib/wallee-ruby-sdk/service/web_apps_service.rb +2 -2
  201. data/lib/wallee-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
  202. data/lib/wallee-ruby-sdk/service/webhook_listeners_service.rb +9 -9
  203. data/lib/wallee-ruby-sdk/service/webhook_urls_service.rb +9 -9
  204. data/lib/wallee-ruby-sdk/version.rb +1 -1
  205. data/lib/wallee-ruby-sdk.rb +115 -25
  206. metadata +117 -27
  207. data/lib/wallee-ruby-sdk/service/application_users_roles_service.rb +0 -478
  208. data/lib/wallee-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
  209. data/lib/wallee-ruby-sdk/service/express_checkout_service.rb +0 -269
  210. data/lib/wallee-ruby-sdk/service/human_users_roles_service.rb +0 -478
  211. data/lib/wallee-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
@@ -0,0 +1,450 @@
1
+ =begin
2
+ # Wallee AG Ruby SDK
3
+ #
4
+ # This library allows to interact with the Wallee AG payment service.
5
+ #
6
+ # Copyright owner: Wallee AG
7
+ # Website: https://en.wallee.com
8
+ # Developer email: ecosystem-team@wallee.com
9
+ #
10
+ # Licensed under the Apache License, Version 2.0 (the "License");
11
+ # you may not use this file except in compliance with the License.
12
+ # You may obtain a copy of the License at
13
+ #
14
+ # http://www.apache.org/licenses/LICENSE-2.0
15
+ #
16
+ # Unless required by applicable law or agreed to in writing, software
17
+ # distributed under the License is distributed on an "AS IS" BASIS,
18
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ # See the License for the specific language governing permissions and
20
+ # limitations under the License.
21
+ =end
22
+
23
+ require 'cgi'
24
+
25
+ module WalleeRubySdk
26
+ class InvoiceReimbursementsService
27
+ attr_accessor :api_client
28
+
29
+
30
+ def initialize(api_client = ApiClient.default)
31
+ @api_client = api_client
32
+ end
33
+ # List all invoice reimbursements
34
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [Integer] :after Set to an object's ID to retrieve the page of objects coming immediately after the named object.
37
+ # @option opts [Integer] :before Set to an object's ID to retrieve the page of objects coming immediately before the named object.
38
+ # @option opts [Array<String>] :expand
39
+ # @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
40
+ # @option opts [SortingOrder] :order Specify to retrieve objects in chronological (ASC) or reverse chronological (DESC) order.
41
+ # @return [InvoiceReimbursementListResponse]
42
+ def get_payment_invoice_reimbursements(space, opts = {})
43
+ data, _status_code, _headers = get_payment_invoice_reimbursements_with_http_info(space, opts)
44
+ data
45
+ end
46
+
47
+ # List all invoice reimbursements
48
+
49
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [Integer] :after Set to an object&#39;s ID to retrieve the page of objects coming immediately after the named object.
52
+ # @option opts [Integer] :before Set to an object&#39;s ID to retrieve the page of objects coming immediately before the named object.
53
+ # @option opts [Array<String>] :expand
54
+ # @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
55
+ # @option opts [SortingOrder] :order Specify to retrieve objects in chronological (ASC) or reverse chronological (DESC) order.
56
+ # @return [Array<(InvoiceReimbursementListResponse, Integer, Hash)>] InvoiceReimbursementListResponse data, response status code and response headers
57
+ def get_payment_invoice_reimbursements_with_http_info(space, opts = {})
58
+ if @api_client.config.debugging
59
+ @api_client.config.logger.debug 'Calling API: InvoiceReimbursementsService.get_payment_invoice_reimbursements ...'
60
+ end
61
+ # verify the required parameter 'space' is set
62
+ if @api_client.config.client_side_validation && space.nil?
63
+ fail ArgumentError, "Missing the required parameter 'space' when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements"
64
+ end
65
+ if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 1
66
+ fail ArgumentError, 'invalid value for "opts[:"after"]" when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements, must be greater than or equal to 1.'
67
+ end
68
+
69
+ if @api_client.config.client_side_validation && !opts[:'before'].nil? && opts[:'before'] < 1
70
+ fail ArgumentError, 'invalid value for "opts[:"before"]" when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements, must be greater than or equal to 1.'
71
+ end
72
+
73
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
74
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements, must be smaller than or equal to 100.'
75
+ end
76
+
77
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
78
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements, must be greater than or equal to 1.'
79
+ end
80
+
81
+ # resource path
82
+ local_var_path = '/payment/invoice-reimbursements'
83
+
84
+ # query parameters
85
+ query_params = opts[:query_params] || {}
86
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
87
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
88
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
89
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
90
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
91
+
92
+ # header parameters
93
+ header_params = opts[:header_params] || {}
94
+ # HTTP header 'Accept' (if needed)
95
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
96
+ header_params[:'space'] = space
97
+
98
+ # form parameters
99
+ form_params = opts[:form_params] || {}
100
+
101
+ # connection timeout
102
+ connection_timeout = @api_client.config.timeout
103
+
104
+ # http body (model)
105
+ post_body = opts[:debug_body]
106
+
107
+ # return_type
108
+ return_type = opts[:debug_return_type] || 'InvoiceReimbursementListResponse'
109
+
110
+ new_options = opts.merge(
111
+ :operation => :"InvoiceReimbursementsService.get_payment_invoice_reimbursements",
112
+ :header_params => header_params,
113
+ :query_params => query_params,
114
+ :form_params => form_params,
115
+ :body => post_body,
116
+ :return_type => return_type
117
+ )
118
+
119
+ data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
120
+ if @api_client.config.debugging
121
+ @api_client.config.logger.debug "API called: InvoiceReimbursementsService#get_payment_invoice_reimbursements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
122
+ end
123
+ return data, status_code, headers
124
+ end
125
+
126
+
127
+ # Retrieve an invoice reimbursement
128
+ # @param id [Integer]
129
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
130
+ # @param [Hash] opts the optional parameters
131
+ # @option opts [Array<String>] :expand
132
+ # @return [InvoiceReimbursement]
133
+ def get_payment_invoice_reimbursements_id(id, space, opts = {})
134
+ data, _status_code, _headers = get_payment_invoice_reimbursements_id_with_http_info(id, space, opts)
135
+ data
136
+ end
137
+
138
+ # Retrieve an invoice reimbursement
139
+
140
+ # @param id [Integer]
141
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
142
+ # @param [Hash] opts the optional parameters
143
+ # @option opts [Array<String>] :expand
144
+ # @return [Array<(InvoiceReimbursement, Integer, Hash)>] InvoiceReimbursement data, response status code and response headers
145
+ def get_payment_invoice_reimbursements_id_with_http_info(id, space, opts = {})
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug 'Calling API: InvoiceReimbursementsService.get_payment_invoice_reimbursements_id ...'
148
+ end
149
+ # verify the required parameter 'id' is set
150
+ if @api_client.config.client_side_validation && id.nil?
151
+ fail ArgumentError, "Missing the required parameter 'id' when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements_id"
152
+ end
153
+ # verify the required parameter 'space' is set
154
+ if @api_client.config.client_side_validation && space.nil?
155
+ fail ArgumentError, "Missing the required parameter 'space' when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements_id"
156
+ end
157
+ # resource path
158
+ local_var_path = '/payment/invoice-reimbursements/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
159
+
160
+ # query parameters
161
+ query_params = opts[:query_params] || {}
162
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
163
+
164
+ # header parameters
165
+ header_params = opts[:header_params] || {}
166
+ # HTTP header 'Accept' (if needed)
167
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
168
+ header_params[:'space'] = space
169
+
170
+ # form parameters
171
+ form_params = opts[:form_params] || {}
172
+
173
+ # connection timeout
174
+ connection_timeout = @api_client.config.timeout
175
+
176
+ # http body (model)
177
+ post_body = opts[:debug_body]
178
+
179
+ # return_type
180
+ return_type = opts[:debug_return_type] || 'InvoiceReimbursement'
181
+
182
+ new_options = opts.merge(
183
+ :operation => :"InvoiceReimbursementsService.get_payment_invoice_reimbursements_id",
184
+ :header_params => header_params,
185
+ :query_params => query_params,
186
+ :form_params => form_params,
187
+ :body => post_body,
188
+ :return_type => return_type
189
+ )
190
+
191
+ data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug "API called: InvoiceReimbursementsService#get_payment_invoice_reimbursements_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
194
+ end
195
+ return data, status_code, headers
196
+ end
197
+
198
+
199
+ # Search invoice reimbursements
200
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
201
+ # @param [Hash] opts the optional parameters
202
+ # @option opts [Array<String>] :expand
203
+ # @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
204
+ # @option opts [Integer] :offset A cursor for pagination, specifies the number of objects to skip.
205
+ # @option opts [String] :order The fields and order to sort the objects by.
206
+ # @option opts [String] :query The search query to filter the objects by.
207
+ # @return [InvoiceReimbursementSearchResponse]
208
+ def get_payment_invoice_reimbursements_search(space, opts = {})
209
+ data, _status_code, _headers = get_payment_invoice_reimbursements_search_with_http_info(space, opts)
210
+ data
211
+ end
212
+
213
+ # Search invoice reimbursements
214
+
215
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
216
+ # @param [Hash] opts the optional parameters
217
+ # @option opts [Array<String>] :expand
218
+ # @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
219
+ # @option opts [Integer] :offset A cursor for pagination, specifies the number of objects to skip.
220
+ # @option opts [String] :order The fields and order to sort the objects by.
221
+ # @option opts [String] :query The search query to filter the objects by.
222
+ # @return [Array<(InvoiceReimbursementSearchResponse, Integer, Hash)>] InvoiceReimbursementSearchResponse data, response status code and response headers
223
+ def get_payment_invoice_reimbursements_search_with_http_info(space, opts = {})
224
+ if @api_client.config.debugging
225
+ @api_client.config.logger.debug 'Calling API: InvoiceReimbursementsService.get_payment_invoice_reimbursements_search ...'
226
+ end
227
+ # verify the required parameter 'space' is set
228
+ if @api_client.config.client_side_validation && space.nil?
229
+ fail ArgumentError, "Missing the required parameter 'space' when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements_search"
230
+ end
231
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
232
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements_search, must be smaller than or equal to 100.'
233
+ end
234
+
235
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
236
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements_search, must be greater than or equal to 1.'
237
+ end
238
+
239
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 10000
240
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling InvoiceReimbursementsService.get_payment_invoice_reimbursements_search, must be smaller than or equal to 10000.'
241
+ end
242
+
243
+ # resource path
244
+ local_var_path = '/payment/invoice-reimbursements/search'
245
+
246
+ # query parameters
247
+ query_params = opts[:query_params] || {}
248
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
249
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
250
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
251
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
252
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
253
+
254
+ # header parameters
255
+ header_params = opts[:header_params] || {}
256
+ # HTTP header 'Accept' (if needed)
257
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
258
+ header_params[:'space'] = space
259
+
260
+ # form parameters
261
+ form_params = opts[:form_params] || {}
262
+
263
+ # connection timeout
264
+ connection_timeout = @api_client.config.timeout
265
+
266
+ # http body (model)
267
+ post_body = opts[:debug_body]
268
+
269
+ # return_type
270
+ return_type = opts[:debug_return_type] || 'InvoiceReimbursementSearchResponse'
271
+
272
+ new_options = opts.merge(
273
+ :operation => :"InvoiceReimbursementsService.get_payment_invoice_reimbursements_search",
274
+ :header_params => header_params,
275
+ :query_params => query_params,
276
+ :form_params => form_params,
277
+ :body => post_body,
278
+ :return_type => return_type
279
+ )
280
+
281
+ data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
282
+ if @api_client.config.debugging
283
+ @api_client.config.logger.debug "API called: InvoiceReimbursementsService#get_payment_invoice_reimbursements_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
284
+ end
285
+ return data, status_code, headers
286
+ end
287
+
288
+
289
+ # Update payment connector configuration
290
+ # Updates payment connector configuration for a reimbursement which is in manual review.
291
+ # @param id [Integer]
292
+ # @param payment_connector_configuration_id [Integer]
293
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
294
+ # @param [Hash] opts the optional parameters
295
+ # @option opts [Array<String>] :expand
296
+ # @return [InvoiceReimbursement]
297
+ def post_payment_invoice_reimbursements_id_connector(id, payment_connector_configuration_id, space, opts = {})
298
+ data, _status_code, _headers = post_payment_invoice_reimbursements_id_connector_with_http_info(id, payment_connector_configuration_id, space, opts)
299
+ data
300
+ end
301
+
302
+ # Update payment connector configuration
303
+ # Updates payment connector configuration for a reimbursement which is in manual review.
304
+
305
+ # @param id [Integer]
306
+ # @param payment_connector_configuration_id [Integer]
307
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
308
+ # @param [Hash] opts the optional parameters
309
+ # @option opts [Array<String>] :expand
310
+ # @return [Array<(InvoiceReimbursement, Integer, Hash)>] InvoiceReimbursement data, response status code and response headers
311
+ def post_payment_invoice_reimbursements_id_connector_with_http_info(id, payment_connector_configuration_id, space, opts = {})
312
+ if @api_client.config.debugging
313
+ @api_client.config.logger.debug 'Calling API: InvoiceReimbursementsService.post_payment_invoice_reimbursements_id_connector ...'
314
+ end
315
+ # verify the required parameter 'id' is set
316
+ if @api_client.config.client_side_validation && id.nil?
317
+ fail ArgumentError, "Missing the required parameter 'id' when calling InvoiceReimbursementsService.post_payment_invoice_reimbursements_id_connector"
318
+ end
319
+ # verify the required parameter 'payment_connector_configuration_id' is set
320
+ if @api_client.config.client_side_validation && payment_connector_configuration_id.nil?
321
+ fail ArgumentError, "Missing the required parameter 'payment_connector_configuration_id' when calling InvoiceReimbursementsService.post_payment_invoice_reimbursements_id_connector"
322
+ end
323
+ # verify the required parameter 'space' is set
324
+ if @api_client.config.client_side_validation && space.nil?
325
+ fail ArgumentError, "Missing the required parameter 'space' when calling InvoiceReimbursementsService.post_payment_invoice_reimbursements_id_connector"
326
+ end
327
+ # resource path
328
+ local_var_path = '/payment/invoice-reimbursements/{id}/connector'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
329
+
330
+ # query parameters
331
+ query_params = opts[:query_params] || {}
332
+ query_params[:'paymentConnectorConfigurationId'] = payment_connector_configuration_id
333
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
334
+
335
+ # header parameters
336
+ header_params = opts[:header_params] || {}
337
+ # HTTP header 'Accept' (if needed)
338
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
339
+ header_params[:'space'] = space
340
+
341
+ # form parameters
342
+ form_params = opts[:form_params] || {}
343
+
344
+ # connection timeout
345
+ connection_timeout = @api_client.config.timeout
346
+
347
+ # http body (model)
348
+ post_body = opts[:debug_body]
349
+
350
+ # return_type
351
+ return_type = opts[:debug_return_type] || 'InvoiceReimbursement'
352
+
353
+ new_options = opts.merge(
354
+ :operation => :"InvoiceReimbursementsService.post_payment_invoice_reimbursements_id_connector",
355
+ :header_params => header_params,
356
+ :query_params => query_params,
357
+ :form_params => form_params,
358
+ :body => post_body,
359
+ :return_type => return_type
360
+ )
361
+
362
+ data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug "API called: InvoiceReimbursementsService#post_payment_invoice_reimbursements_id_connector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
365
+ end
366
+ return data, status_code, headers
367
+ end
368
+
369
+
370
+ # Update IBAN
371
+ # Updates recipient and/or sender IBAN for a reimbursement which is in manual review.
372
+ # @param id [Integer]
373
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
374
+ # @param [Hash] opts the optional parameters
375
+ # @option opts [String] :recipient_iban
376
+ # @option opts [String] :sender_iban
377
+ # @option opts [Array<String>] :expand
378
+ # @return [InvoiceReimbursement]
379
+ def post_payment_invoice_reimbursements_id_iban(id, space, opts = {})
380
+ data, _status_code, _headers = post_payment_invoice_reimbursements_id_iban_with_http_info(id, space, opts)
381
+ data
382
+ end
383
+
384
+ # Update IBAN
385
+ # Updates recipient and/or sender IBAN for a reimbursement which is in manual review.
386
+
387
+ # @param id [Integer]
388
+ # @param space [Integer] Specifies the ID of the space the operation should be executed in.
389
+ # @param [Hash] opts the optional parameters
390
+ # @option opts [String] :recipient_iban
391
+ # @option opts [String] :sender_iban
392
+ # @option opts [Array<String>] :expand
393
+ # @return [Array<(InvoiceReimbursement, Integer, Hash)>] InvoiceReimbursement data, response status code and response headers
394
+ def post_payment_invoice_reimbursements_id_iban_with_http_info(id, space, opts = {})
395
+ if @api_client.config.debugging
396
+ @api_client.config.logger.debug 'Calling API: InvoiceReimbursementsService.post_payment_invoice_reimbursements_id_iban ...'
397
+ end
398
+ # verify the required parameter 'id' is set
399
+ if @api_client.config.client_side_validation && id.nil?
400
+ fail ArgumentError, "Missing the required parameter 'id' when calling InvoiceReimbursementsService.post_payment_invoice_reimbursements_id_iban"
401
+ end
402
+ # verify the required parameter 'space' is set
403
+ if @api_client.config.client_side_validation && space.nil?
404
+ fail ArgumentError, "Missing the required parameter 'space' when calling InvoiceReimbursementsService.post_payment_invoice_reimbursements_id_iban"
405
+ end
406
+ # resource path
407
+ local_var_path = '/payment/invoice-reimbursements/{id}/iban'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
408
+
409
+ # query parameters
410
+ query_params = opts[:query_params] || {}
411
+ query_params[:'recipientIban'] = opts[:'recipient_iban'] if !opts[:'recipient_iban'].nil?
412
+ query_params[:'senderIban'] = opts[:'sender_iban'] if !opts[:'sender_iban'].nil?
413
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
414
+
415
+ # header parameters
416
+ header_params = opts[:header_params] || {}
417
+ # HTTP header 'Accept' (if needed)
418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
419
+ header_params[:'space'] = space
420
+
421
+ # form parameters
422
+ form_params = opts[:form_params] || {}
423
+
424
+ # connection timeout
425
+ connection_timeout = @api_client.config.timeout
426
+
427
+ # http body (model)
428
+ post_body = opts[:debug_body]
429
+
430
+ # return_type
431
+ return_type = opts[:debug_return_type] || 'InvoiceReimbursement'
432
+
433
+ new_options = opts.merge(
434
+ :operation => :"InvoiceReimbursementsService.post_payment_invoice_reimbursements_id_iban",
435
+ :header_params => header_params,
436
+ :query_params => query_params,
437
+ :form_params => form_params,
438
+ :body => post_body,
439
+ :return_type => return_type
440
+ )
441
+
442
+ data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
443
+ if @api_client.config.debugging
444
+ @api_client.config.logger.debug "API called: InvoiceReimbursementsService#post_payment_invoice_reimbursements_id_iban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
445
+ end
446
+ return data, status_code, headers
447
+ end
448
+
449
+ end
450
+ end