wallee-ruby-sdk 6.3.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +68 -19
- data/LICENSE +1 -1
- data/README.md +451 -108
- data/lib/wallee-ruby-sdk/api_client.rb +1 -1
- data/lib/wallee-ruby-sdk/models/abstract_o_auth_client_update.rb +340 -0
- data/lib/wallee-ruby-sdk/models/abstract_role_update.rb +13 -1
- data/lib/wallee-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
- data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
- data/lib/wallee-ruby-sdk/models/bank_payment_type.rb +50 -0
- data/lib/wallee-ruby-sdk/models/basic_address.rb +266 -0
- data/lib/wallee-ruby-sdk/models/boarding_strategy_information_request.rb +247 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session_create.rb → charge_attempt_lookup_result.rb} +16 -20
- data/lib/wallee-ruby-sdk/models/charge_attempt_projection.rb +560 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_option.rb → create_fulfillment_request.rb} +25 -50
- data/lib/wallee-ruby-sdk/models/delivery_days_range.rb +60 -0
- data/lib/wallee-ruby-sdk/models/delivery_destination.rb +51 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level.rb +403 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session_state.rb → dunning_case_level_state.rb} +7 -7
- data/lib/wallee-ruby-sdk/models/extended_rest_o_auth_client.rb +425 -0
- data/lib/wallee-ruby-sdk/models/fulfillment.rb +428 -0
- data/lib/wallee-ruby-sdk/models/fulfillment_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/fulfillment_state.rb +52 -0
- data/lib/wallee-ruby-sdk/models/identity_info.rb +279 -0
- data/lib/wallee-ruby-sdk/models/invoice_processor.rb +51 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link.rb +278 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement.rb +463 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
- data/lib/wallee-ruby-sdk/models/legal_form.rb +83 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_state.rb +50 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
- data/lib/wallee-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
- data/lib/wallee-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
- data/lib/wallee-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
- data/lib/wallee-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
- data/lib/wallee-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
- data/lib/wallee-ruby-sdk/models/merchant_related_persons_dto.rb +243 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client.rb +397 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client_create.rb +365 -0
- data/lib/wallee-ruby-sdk/models/{user_space_role_list_response.rb → o_auth_client_list_response.rb} +4 -4
- data/lib/wallee-ruby-sdk/models/o_auth_client_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client_update.rb +374 -0
- data/lib/wallee-ruby-sdk/models/o_auth_consent.rb +321 -0
- data/lib/wallee-ruby-sdk/models/{user_account_role_list_response.rb → o_auth_consent_list_response.rb} +4 -4
- data/lib/wallee-ruby-sdk/models/o_auth_consent_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{user_account_role.rb → o_auth_user.rb} +56 -29
- data/lib/wallee-ruby-sdk/models/{express_checkout_create_response.rb → payment_facilitator_pricing_profile_dto.rb} +16 -16
- data/lib/wallee-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file.rb +337 -0
- data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal.rb +37 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +1 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
- data/lib/wallee-ruby-sdk/models/payout_account_info.rb +257 -0
- data/lib/wallee-ruby-sdk/models/person_salutation.rb +54 -0
- data/lib/wallee-ruby-sdk/models/pricing_history_dto.rb +266 -0
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +11 -1
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/refund.rb +13 -1
- data/lib/wallee-ruby-sdk/models/refund_create.rb +13 -1
- data/lib/wallee-ruby-sdk/models/refund_days_range.rb +51 -0
- data/lib/wallee-ruby-sdk/models/refund_percentage_range.rb +56 -0
- data/lib/wallee-ruby-sdk/models/related_person.rb +329 -0
- data/lib/wallee-ruby-sdk/models/representative_info.rb +239 -0
- data/lib/wallee-ruby-sdk/models/rest_member.rb +284 -0
- data/lib/wallee-ruby-sdk/models/{user_space_role.rb → rest_o_auth_client_secret.rb} +38 -37
- data/lib/wallee-ruby-sdk/models/{express_checkout_session.rb → rest_o_auth_client_secret_created.rb} +27 -52
- data/lib/wallee-ruby-sdk/models/role.rb +13 -1
- data/lib/wallee-ruby-sdk/models/role_create.rb +13 -1
- data/lib/wallee-ruby-sdk/models/{abstract_payment_terminal_update.rb → role_ref.rb} +18 -27
- data/lib/wallee-ruby-sdk/models/role_update.rb +13 -1
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +15 -230
- data/lib/wallee-ruby-sdk/models/scope.rb +28 -16
- data/lib/wallee-ruby-sdk/models/secret_key_state.rb +51 -0
- data/lib/wallee-ruby-sdk/models/setter.rb +618 -0
- data/lib/wallee-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
- data/lib/wallee-ruby-sdk/models/sole_proprietorship_info.rb +261 -0
- data/lib/wallee-ruby-sdk/models/state_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
- data/lib/wallee-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
- data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request.rb +249 -0
- data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
- data/lib/wallee-ruby-sdk/models/subscription_product_dto.rb +239 -0
- data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
- data/lib/wallee-ruby-sdk/models/tracking_number_request.rb +230 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +13 -1
- data/lib/wallee-ruby-sdk/models/transaction_completion_details.rb +26 -4
- data/lib/wallee-ruby-sdk/models/transaction_overview.rb +1144 -0
- data/lib/wallee-ruby-sdk/models/transaction_projection.rb +1135 -0
- data/lib/wallee-ruby-sdk/models/transaction_user_interface_type.rb +2 -1
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership.rb +357 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
- data/lib/wallee-ruby-sdk/models/wallet_type.rb +40 -1
- data/lib/wallee-ruby-sdk/models/web_ui_account_theme.rb +230 -0
- data/lib/wallee-ruby-sdk/service/accounts_service.rb +16 -9
- data/lib/wallee-ruby-sdk/service/analytics_queries_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/bank_accounts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
- data/lib/wallee-ruby-sdk/service/charge_attempts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_flows_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/consumed_resources_service.rb +1 -1
- data/lib/wallee-ruby-sdk/service/countries_service.rb +15 -6
- data/lib/wallee-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/customer_addresses_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/customer_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/customers_service.rb +11 -11
- data/lib/wallee-ruby-sdk/service/debt_collection_cases_service.rb +12 -12
- data/lib/wallee-ruby-sdk/service/debt_collector_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/delivery_indications_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/document_templates_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
- data/lib/wallee-ruby-sdk/service/dunning_cases_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/dunning_flows_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/fulfillments_service.rb +355 -0
- data/lib/wallee-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
- data/lib/wallee-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
- data/lib/wallee-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
- data/lib/wallee-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
- data/lib/wallee-ruby-sdk/service/join_partnership_service.rb +586 -0
- data/lib/wallee-ruby-sdk/service/manual_tasks_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/members_service.rb +215 -0
- data/lib/wallee-ruby-sdk/service/merchant_applications_service.rb +334 -0
- data/lib/wallee-ruby-sdk/service/o_auth_clients_service.rb +611 -0
- data/lib/wallee-ruby-sdk/service/o_auth_consents_service.rb +332 -0
- data/lib/wallee-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_links_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
- data/lib/wallee-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/payment_terminals_service.rb +475 -22
- data/lib/wallee-ruby-sdk/service/payment_web_apps_service.rb +11 -11
- data/lib/wallee-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/refund_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/refunds_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/spaces_service.rb +10 -3
- data/lib/wallee-ruby-sdk/service/subscribers_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_charges_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_metrics_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_components_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/subscription_products_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_versions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscriptions_service.rb +13 -13
- data/lib/wallee-ruby-sdk/service/terminal_locations_service.rb +276 -0
- data/lib/wallee-ruby-sdk/service/token_versions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/tokens_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transaction_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_completions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_invoices_service.rb +86 -8
- data/lib/wallee-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/transaction_voids_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transactions_service.rb +179 -37
- data/lib/wallee-ruby-sdk/service/web_apps_service.rb +2 -2
- data/lib/wallee-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
- data/lib/wallee-ruby-sdk/service/webhook_listeners_service.rb +9 -9
- data/lib/wallee-ruby-sdk/service/webhook_urls_service.rb +9 -9
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/lib/wallee-ruby-sdk.rb +115 -17
- data/test/test_querying.rb +11 -0
- metadata +117 -19
- data/lib/wallee-ruby-sdk/service/application_users_roles_service.rb +0 -478
- data/lib/wallee-ruby-sdk/service/express_checkout_service.rb +0 -107
- data/lib/wallee-ruby-sdk/service/human_users_roles_service.rb +0 -478
- data/lib/wallee-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
|
@@ -0,0 +1,453 @@
|
|
|
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 InvoiceReconciliationRecordInvoiceLinksService
|
|
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 reconciliation record invoice links
|
|
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 [InvoiceReconciliationRecordInvoiceLinkListResponse]
|
|
42
|
+
def get_payment_invoice_reconciliation_record_invoice_links(space, opts = {})
|
|
43
|
+
data, _status_code, _headers = get_payment_invoice_reconciliation_record_invoice_links_with_http_info(space, opts)
|
|
44
|
+
data
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# List all invoice reconciliation record invoice links
|
|
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's ID to retrieve the page of objects coming immediately after the named object.
|
|
52
|
+
# @option opts [Integer] :before Set to an object'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<(InvoiceReconciliationRecordInvoiceLinkListResponse, Integer, Hash)>] InvoiceReconciliationRecordInvoiceLinkListResponse data, response status code and response headers
|
|
57
|
+
def get_payment_invoice_reconciliation_record_invoice_links_with_http_info(space, opts = {})
|
|
58
|
+
if @api_client.config.debugging
|
|
59
|
+
@api_client.config.logger.debug 'Calling API: InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links ...'
|
|
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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links"
|
|
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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links, 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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links, 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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links, 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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links, must be greater than or equal to 1.'
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# resource path
|
|
82
|
+
local_var_path = '/payment/invoice-reconciliation-record-invoice-links'
|
|
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] || 'InvoiceReconciliationRecordInvoiceLinkListResponse'
|
|
109
|
+
|
|
110
|
+
new_options = opts.merge(
|
|
111
|
+
:operation => :"InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links",
|
|
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: InvoiceReconciliationRecordInvoiceLinksService#get_payment_invoice_reconciliation_record_invoice_links\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 reconciliation record invoice link
|
|
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 [InvoiceReconciliationRecordInvoiceLink]
|
|
133
|
+
def get_payment_invoice_reconciliation_record_invoice_links_id(id, space, opts = {})
|
|
134
|
+
data, _status_code, _headers = get_payment_invoice_reconciliation_record_invoice_links_id_with_http_info(id, space, opts)
|
|
135
|
+
data
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Retrieve an invoice reconciliation record invoice link
|
|
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<(InvoiceReconciliationRecordInvoiceLink, Integer, Hash)>] InvoiceReconciliationRecordInvoiceLink data, response status code and response headers
|
|
145
|
+
def get_payment_invoice_reconciliation_record_invoice_links_id_with_http_info(id, space, opts = {})
|
|
146
|
+
if @api_client.config.debugging
|
|
147
|
+
@api_client.config.logger.debug 'Calling API: InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_id"
|
|
156
|
+
end
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/payment/invoice-reconciliation-record-invoice-links/{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] || 'InvoiceReconciliationRecordInvoiceLink'
|
|
181
|
+
|
|
182
|
+
new_options = opts.merge(
|
|
183
|
+
:operation => :"InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_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: InvoiceReconciliationRecordInvoiceLinksService#get_payment_invoice_reconciliation_record_invoice_links_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 reconciliation record invoice links
|
|
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 [InvoiceReconciliationRecordInvoiceLinkSearchResponse]
|
|
208
|
+
def get_payment_invoice_reconciliation_record_invoice_links_search(space, opts = {})
|
|
209
|
+
data, _status_code, _headers = get_payment_invoice_reconciliation_record_invoice_links_search_with_http_info(space, opts)
|
|
210
|
+
data
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Search invoice reconciliation record invoice links
|
|
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<(InvoiceReconciliationRecordInvoiceLinkSearchResponse, Integer, Hash)>] InvoiceReconciliationRecordInvoiceLinkSearchResponse data, response status code and response headers
|
|
223
|
+
def get_payment_invoice_reconciliation_record_invoice_links_search_with_http_info(space, opts = {})
|
|
224
|
+
if @api_client.config.debugging
|
|
225
|
+
@api_client.config.logger.debug 'Calling API: InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_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 InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_search, must be smaller than or equal to 10000.'
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# resource path
|
|
244
|
+
local_var_path = '/payment/invoice-reconciliation-record-invoice-links/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] || 'InvoiceReconciliationRecordInvoiceLinkSearchResponse'
|
|
271
|
+
|
|
272
|
+
new_options = opts.merge(
|
|
273
|
+
:operation => :"InvoiceReconciliationRecordInvoiceLinksService.get_payment_invoice_reconciliation_record_invoice_links_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: InvoiceReconciliationRecordInvoiceLinksService#get_payment_invoice_reconciliation_record_invoice_links_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
|
+
# Link an invoice
|
|
290
|
+
# Links the invoice reconciliation record with the provided invoice completion.
|
|
291
|
+
# @param record_id [Integer] The ID of the invoice reconciliation record which should be linked.
|
|
292
|
+
# @param completion_id [Integer] The ID of the completion which should be linked.
|
|
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 [Float] :amount The amount of the invoice reconciliation record linked completion. When omitted the amount is calculated.
|
|
296
|
+
# @option opts [Array<String>] :expand
|
|
297
|
+
# @return [InvoiceReconciliationRecordInvoiceLink]
|
|
298
|
+
def post_payment_invoice_reconciliation_record_invoice_links(record_id, completion_id, space, opts = {})
|
|
299
|
+
data, _status_code, _headers = post_payment_invoice_reconciliation_record_invoice_links_with_http_info(record_id, completion_id, space, opts)
|
|
300
|
+
data
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# Link an invoice
|
|
304
|
+
# Links the invoice reconciliation record with the provided invoice completion.
|
|
305
|
+
|
|
306
|
+
# @param record_id [Integer] The ID of the invoice reconciliation record which should be linked.
|
|
307
|
+
# @param completion_id [Integer] The ID of the completion which should be linked.
|
|
308
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
309
|
+
# @param [Hash] opts the optional parameters
|
|
310
|
+
# @option opts [Float] :amount The amount of the invoice reconciliation record linked completion. When omitted the amount is calculated.
|
|
311
|
+
# @option opts [Array<String>] :expand
|
|
312
|
+
# @return [Array<(InvoiceReconciliationRecordInvoiceLink, Integer, Hash)>] InvoiceReconciliationRecordInvoiceLink data, response status code and response headers
|
|
313
|
+
def post_payment_invoice_reconciliation_record_invoice_links_with_http_info(record_id, completion_id, space, opts = {})
|
|
314
|
+
if @api_client.config.debugging
|
|
315
|
+
@api_client.config.logger.debug 'Calling API: InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links ...'
|
|
316
|
+
end
|
|
317
|
+
# verify the required parameter 'record_id' is set
|
|
318
|
+
if @api_client.config.client_side_validation && record_id.nil?
|
|
319
|
+
fail ArgumentError, "Missing the required parameter 'record_id' when calling InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links"
|
|
320
|
+
end
|
|
321
|
+
# verify the required parameter 'completion_id' is set
|
|
322
|
+
if @api_client.config.client_side_validation && completion_id.nil?
|
|
323
|
+
fail ArgumentError, "Missing the required parameter 'completion_id' when calling InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links"
|
|
324
|
+
end
|
|
325
|
+
# verify the required parameter 'space' is set
|
|
326
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
327
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links"
|
|
328
|
+
end
|
|
329
|
+
# resource path
|
|
330
|
+
local_var_path = '/payment/invoice-reconciliation-record-invoice-links'
|
|
331
|
+
|
|
332
|
+
# query parameters
|
|
333
|
+
query_params = opts[:query_params] || {}
|
|
334
|
+
query_params[:'recordId'] = record_id
|
|
335
|
+
query_params[:'completionId'] = completion_id
|
|
336
|
+
query_params[:'amount'] = opts[:'amount'] if !opts[:'amount'].nil?
|
|
337
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
338
|
+
|
|
339
|
+
# header parameters
|
|
340
|
+
header_params = opts[:header_params] || {}
|
|
341
|
+
# HTTP header 'Accept' (if needed)
|
|
342
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
343
|
+
header_params[:'space'] = space
|
|
344
|
+
|
|
345
|
+
# form parameters
|
|
346
|
+
form_params = opts[:form_params] || {}
|
|
347
|
+
|
|
348
|
+
# connection timeout
|
|
349
|
+
connection_timeout = @api_client.config.timeout
|
|
350
|
+
|
|
351
|
+
# http body (model)
|
|
352
|
+
post_body = opts[:debug_body]
|
|
353
|
+
|
|
354
|
+
# return_type
|
|
355
|
+
return_type = opts[:debug_return_type] || 'InvoiceReconciliationRecordInvoiceLink'
|
|
356
|
+
|
|
357
|
+
new_options = opts.merge(
|
|
358
|
+
:operation => :"InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links",
|
|
359
|
+
:header_params => header_params,
|
|
360
|
+
:query_params => query_params,
|
|
361
|
+
:form_params => form_params,
|
|
362
|
+
:body => post_body,
|
|
363
|
+
:return_type => return_type
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
367
|
+
if @api_client.config.debugging
|
|
368
|
+
@api_client.config.logger.debug "API called: InvoiceReconciliationRecordInvoiceLinksService#post_payment_invoice_reconciliation_record_invoice_links\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
369
|
+
end
|
|
370
|
+
return data, status_code, headers
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
# Unlink an invoice
|
|
375
|
+
# Unlinks the invoice reconciliation record from the provided invoice completion.
|
|
376
|
+
# @param record_id [Integer] The ID of the invoice reconciliation record which should be unlinked.
|
|
377
|
+
# @param completion_id [Integer] The ID of the completion which should be unlinked.
|
|
378
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
379
|
+
# @param [Hash] opts the optional parameters
|
|
380
|
+
# @return [nil]
|
|
381
|
+
def post_payment_invoice_reconciliation_record_invoice_links_unlink(record_id, completion_id, space, opts = {})
|
|
382
|
+
post_payment_invoice_reconciliation_record_invoice_links_unlink_with_http_info(record_id, completion_id, space, opts)
|
|
383
|
+
nil
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# Unlink an invoice
|
|
387
|
+
# Unlinks the invoice reconciliation record from the provided invoice completion.
|
|
388
|
+
|
|
389
|
+
# @param record_id [Integer] The ID of the invoice reconciliation record which should be unlinked.
|
|
390
|
+
# @param completion_id [Integer] The ID of the completion which should be unlinked.
|
|
391
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
392
|
+
# @param [Hash] opts the optional parameters
|
|
393
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
394
|
+
def post_payment_invoice_reconciliation_record_invoice_links_unlink_with_http_info(record_id, completion_id, space, opts = {})
|
|
395
|
+
if @api_client.config.debugging
|
|
396
|
+
@api_client.config.logger.debug 'Calling API: InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links_unlink ...'
|
|
397
|
+
end
|
|
398
|
+
# verify the required parameter 'record_id' is set
|
|
399
|
+
if @api_client.config.client_side_validation && record_id.nil?
|
|
400
|
+
fail ArgumentError, "Missing the required parameter 'record_id' when calling InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links_unlink"
|
|
401
|
+
end
|
|
402
|
+
# verify the required parameter 'completion_id' is set
|
|
403
|
+
if @api_client.config.client_side_validation && completion_id.nil?
|
|
404
|
+
fail ArgumentError, "Missing the required parameter 'completion_id' when calling InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links_unlink"
|
|
405
|
+
end
|
|
406
|
+
# verify the required parameter 'space' is set
|
|
407
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
408
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links_unlink"
|
|
409
|
+
end
|
|
410
|
+
# resource path
|
|
411
|
+
local_var_path = '/payment/invoice-reconciliation-record-invoice-links/unlink'
|
|
412
|
+
|
|
413
|
+
# query parameters
|
|
414
|
+
query_params = opts[:query_params] || {}
|
|
415
|
+
query_params[:'recordId'] = record_id
|
|
416
|
+
query_params[:'completionId'] = completion_id
|
|
417
|
+
|
|
418
|
+
# header parameters
|
|
419
|
+
header_params = opts[:header_params] || {}
|
|
420
|
+
# HTTP header 'Accept' (if needed)
|
|
421
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
422
|
+
header_params[:'space'] = space
|
|
423
|
+
|
|
424
|
+
# form parameters
|
|
425
|
+
form_params = opts[:form_params] || {}
|
|
426
|
+
|
|
427
|
+
# connection timeout
|
|
428
|
+
connection_timeout = @api_client.config.timeout
|
|
429
|
+
|
|
430
|
+
# http body (model)
|
|
431
|
+
post_body = opts[:debug_body]
|
|
432
|
+
|
|
433
|
+
# return_type
|
|
434
|
+
return_type = opts[:debug_return_type]
|
|
435
|
+
|
|
436
|
+
new_options = opts.merge(
|
|
437
|
+
:operation => :"InvoiceReconciliationRecordInvoiceLinksService.post_payment_invoice_reconciliation_record_invoice_links_unlink",
|
|
438
|
+
:header_params => header_params,
|
|
439
|
+
:query_params => query_params,
|
|
440
|
+
:form_params => form_params,
|
|
441
|
+
:body => post_body,
|
|
442
|
+
:return_type => return_type
|
|
443
|
+
)
|
|
444
|
+
|
|
445
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
446
|
+
if @api_client.config.debugging
|
|
447
|
+
@api_client.config.logger.debug "API called: InvoiceReconciliationRecordInvoiceLinksService#post_payment_invoice_reconciliation_record_invoice_links_unlink\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
448
|
+
end
|
|
449
|
+
return data, status_code, headers
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
end
|
|
453
|
+
end
|