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
|
@@ -70,7 +70,7 @@ module WalleeRubySdk
|
|
|
70
70
|
header_params = opts[:header_params] || {}
|
|
71
71
|
# HTTP header 'Accept' (if needed)
|
|
72
72
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
73
|
-
header_params[:'
|
|
73
|
+
header_params[:'space'] = space
|
|
74
74
|
|
|
75
75
|
# form parameters
|
|
76
76
|
form_params = opts[:form_params] || {}
|
|
@@ -164,7 +164,7 @@ module WalleeRubySdk
|
|
|
164
164
|
header_params = opts[:header_params] || {}
|
|
165
165
|
# HTTP header 'Accept' (if needed)
|
|
166
166
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
167
|
-
header_params[:'
|
|
167
|
+
header_params[:'space'] = space
|
|
168
168
|
|
|
169
169
|
# form parameters
|
|
170
170
|
form_params = opts[:form_params] || {}
|
|
@@ -195,6 +195,102 @@ module WalleeRubySdk
|
|
|
195
195
|
end
|
|
196
196
|
|
|
197
197
|
|
|
198
|
+
# Search payment terminal activation status
|
|
199
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
200
|
+
# @param [Hash] opts the optional parameters
|
|
201
|
+
# @option opts [Boolean] :activation_code_active Filters payment terminals that have an active activation code
|
|
202
|
+
# @option opts [Integer] :configuration_id Filters payment terminals by their configuration ID
|
|
203
|
+
# @option opts [String] :environment Filters payment terminals by their environment (TEST/PRODUCTION)
|
|
204
|
+
# @option opts [Boolean] :has_activation_code Filters payment terminals that have an activation code
|
|
205
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
|
|
206
|
+
# @option opts [Integer] :location_id Filters payment terminals by their location ID
|
|
207
|
+
# @option opts [Integer] :offset A cursor for pagination, specifies the number of objects to skip.
|
|
208
|
+
# @return [PaymentTerminalActivationStatusDetailSearchResponse]
|
|
209
|
+
def get_payment_terminals_activation_status(space, opts = {})
|
|
210
|
+
data, _status_code, _headers = get_payment_terminals_activation_status_with_http_info(space, opts)
|
|
211
|
+
data
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Search payment terminal activation status
|
|
215
|
+
|
|
216
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
217
|
+
# @param [Hash] opts the optional parameters
|
|
218
|
+
# @option opts [Boolean] :activation_code_active Filters payment terminals that have an active activation code
|
|
219
|
+
# @option opts [Integer] :configuration_id Filters payment terminals by their configuration ID
|
|
220
|
+
# @option opts [String] :environment Filters payment terminals by their environment (TEST/PRODUCTION)
|
|
221
|
+
# @option opts [Boolean] :has_activation_code Filters payment terminals that have an activation code
|
|
222
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
|
|
223
|
+
# @option opts [Integer] :location_id Filters payment terminals by their location ID
|
|
224
|
+
# @option opts [Integer] :offset A cursor for pagination, specifies the number of objects to skip.
|
|
225
|
+
# @return [Array<(PaymentTerminalActivationStatusDetailSearchResponse, Integer, Hash)>] PaymentTerminalActivationStatusDetailSearchResponse data, response status code and response headers
|
|
226
|
+
def get_payment_terminals_activation_status_with_http_info(space, opts = {})
|
|
227
|
+
if @api_client.config.debugging
|
|
228
|
+
@api_client.config.logger.debug 'Calling API: PaymentTerminalsService.get_payment_terminals_activation_status ...'
|
|
229
|
+
end
|
|
230
|
+
# verify the required parameter 'space' is set
|
|
231
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
232
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling PaymentTerminalsService.get_payment_terminals_activation_status"
|
|
233
|
+
end
|
|
234
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
235
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PaymentTerminalsService.get_payment_terminals_activation_status, must be smaller than or equal to 100.'
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
239
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PaymentTerminalsService.get_payment_terminals_activation_status, must be greater than or equal to 1.'
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 10000
|
|
243
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PaymentTerminalsService.get_payment_terminals_activation_status, must be smaller than or equal to 10000.'
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# resource path
|
|
247
|
+
local_var_path = '/payment/terminals/activation-status'
|
|
248
|
+
|
|
249
|
+
# query parameters
|
|
250
|
+
query_params = opts[:query_params] || {}
|
|
251
|
+
query_params[:'activationCodeActive'] = opts[:'activation_code_active'] if !opts[:'activation_code_active'].nil?
|
|
252
|
+
query_params[:'configurationId'] = opts[:'configuration_id'] if !opts[:'configuration_id'].nil?
|
|
253
|
+
query_params[:'environment'] = opts[:'environment'] if !opts[:'environment'].nil?
|
|
254
|
+
query_params[:'hasActivationCode'] = opts[:'has_activation_code'] if !opts[:'has_activation_code'].nil?
|
|
255
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
256
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
257
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
258
|
+
|
|
259
|
+
# header parameters
|
|
260
|
+
header_params = opts[:header_params] || {}
|
|
261
|
+
# HTTP header 'Accept' (if needed)
|
|
262
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
263
|
+
header_params[:'space'] = space
|
|
264
|
+
|
|
265
|
+
# form parameters
|
|
266
|
+
form_params = opts[:form_params] || {}
|
|
267
|
+
|
|
268
|
+
# connection timeout
|
|
269
|
+
connection_timeout = @api_client.config.timeout
|
|
270
|
+
|
|
271
|
+
# http body (model)
|
|
272
|
+
post_body = opts[:debug_body]
|
|
273
|
+
|
|
274
|
+
# return_type
|
|
275
|
+
return_type = opts[:debug_return_type] || 'PaymentTerminalActivationStatusDetailSearchResponse'
|
|
276
|
+
|
|
277
|
+
new_options = opts.merge(
|
|
278
|
+
:operation => :"PaymentTerminalsService.get_payment_terminals_activation_status",
|
|
279
|
+
:header_params => header_params,
|
|
280
|
+
:query_params => query_params,
|
|
281
|
+
:form_params => form_params,
|
|
282
|
+
:body => post_body,
|
|
283
|
+
:return_type => return_type
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
287
|
+
if @api_client.config.debugging
|
|
288
|
+
@api_client.config.logger.debug "API called: PaymentTerminalsService#get_payment_terminals_activation_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
289
|
+
end
|
|
290
|
+
return data, status_code, headers
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
|
|
198
294
|
# Retrieve a payment terminal
|
|
199
295
|
# @param id [Integer]
|
|
200
296
|
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
@@ -236,7 +332,7 @@ module WalleeRubySdk
|
|
|
236
332
|
header_params = opts[:header_params] || {}
|
|
237
333
|
# HTTP header 'Accept' (if needed)
|
|
238
334
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
239
|
-
header_params[:'
|
|
335
|
+
header_params[:'space'] = space
|
|
240
336
|
|
|
241
337
|
# form parameters
|
|
242
338
|
form_params = opts[:form_params] || {}
|
|
@@ -315,7 +411,7 @@ module WalleeRubySdk
|
|
|
315
411
|
header_params = opts[:header_params] || {}
|
|
316
412
|
# HTTP header 'Accept' (if needed)
|
|
317
413
|
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json']) unless header_params['Accept']
|
|
318
|
-
header_params[:'
|
|
414
|
+
header_params[:'space'] = space
|
|
319
415
|
|
|
320
416
|
# form parameters
|
|
321
417
|
form_params = opts[:form_params] || {}
|
|
@@ -405,7 +501,7 @@ module WalleeRubySdk
|
|
|
405
501
|
header_params = opts[:header_params] || {}
|
|
406
502
|
# HTTP header 'Accept' (if needed)
|
|
407
503
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
408
|
-
header_params[:'
|
|
504
|
+
header_params[:'space'] = space
|
|
409
505
|
|
|
410
506
|
# form parameters
|
|
411
507
|
form_params = opts[:form_params] || {}
|
|
@@ -488,7 +584,7 @@ module WalleeRubySdk
|
|
|
488
584
|
if !content_type.nil?
|
|
489
585
|
header_params['Content-Type'] = content_type
|
|
490
586
|
end
|
|
491
|
-
header_params[:'
|
|
587
|
+
header_params[:'space'] = space
|
|
492
588
|
|
|
493
589
|
# form parameters
|
|
494
590
|
form_params = opts[:form_params] || {}
|
|
@@ -521,23 +617,23 @@ module WalleeRubySdk
|
|
|
521
617
|
|
|
522
618
|
# Create a payment terminal
|
|
523
619
|
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
524
|
-
# @param
|
|
620
|
+
# @param payment_terminal_creation_request [PaymentTerminalCreationRequest]
|
|
525
621
|
# @param [Hash] opts the optional parameters
|
|
526
622
|
# @option opts [Array<String>] :expand
|
|
527
623
|
# @return [PaymentTerminal]
|
|
528
|
-
def post_payment_terminals(space,
|
|
529
|
-
data, _status_code, _headers = post_payment_terminals_with_http_info(space,
|
|
624
|
+
def post_payment_terminals(space, payment_terminal_creation_request, opts = {})
|
|
625
|
+
data, _status_code, _headers = post_payment_terminals_with_http_info(space, payment_terminal_creation_request, opts)
|
|
530
626
|
data
|
|
531
627
|
end
|
|
532
628
|
|
|
533
629
|
# Create a payment terminal
|
|
534
630
|
|
|
535
631
|
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
536
|
-
# @param
|
|
632
|
+
# @param payment_terminal_creation_request [PaymentTerminalCreationRequest]
|
|
537
633
|
# @param [Hash] opts the optional parameters
|
|
538
634
|
# @option opts [Array<String>] :expand
|
|
539
635
|
# @return [Array<(PaymentTerminal, Integer, Hash)>] PaymentTerminal data, response status code and response headers
|
|
540
|
-
def post_payment_terminals_with_http_info(space,
|
|
636
|
+
def post_payment_terminals_with_http_info(space, payment_terminal_creation_request, opts = {})
|
|
541
637
|
if @api_client.config.debugging
|
|
542
638
|
@api_client.config.logger.debug 'Calling API: PaymentTerminalsService.post_payment_terminals ...'
|
|
543
639
|
end
|
|
@@ -545,9 +641,9 @@ module WalleeRubySdk
|
|
|
545
641
|
if @api_client.config.client_side_validation && space.nil?
|
|
546
642
|
fail ArgumentError, "Missing the required parameter 'space' when calling PaymentTerminalsService.post_payment_terminals"
|
|
547
643
|
end
|
|
548
|
-
# verify the required parameter '
|
|
549
|
-
if @api_client.config.client_side_validation &&
|
|
550
|
-
fail ArgumentError, "Missing the required parameter '
|
|
644
|
+
# verify the required parameter 'payment_terminal_creation_request' is set
|
|
645
|
+
if @api_client.config.client_side_validation && payment_terminal_creation_request.nil?
|
|
646
|
+
fail ArgumentError, "Missing the required parameter 'payment_terminal_creation_request' when calling PaymentTerminalsService.post_payment_terminals"
|
|
551
647
|
end
|
|
552
648
|
# resource path
|
|
553
649
|
local_var_path = '/payment/terminals'
|
|
@@ -565,7 +661,7 @@ module WalleeRubySdk
|
|
|
565
661
|
if !content_type.nil?
|
|
566
662
|
header_params['Content-Type'] = content_type
|
|
567
663
|
end
|
|
568
|
-
header_params[:'
|
|
664
|
+
header_params[:'space'] = space
|
|
569
665
|
|
|
570
666
|
# form parameters
|
|
571
667
|
form_params = opts[:form_params] || {}
|
|
@@ -574,7 +670,7 @@ module WalleeRubySdk
|
|
|
574
670
|
connection_timeout = @api_client.config.timeout
|
|
575
671
|
|
|
576
672
|
# http body (model)
|
|
577
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
673
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_terminal_creation_request)
|
|
578
674
|
|
|
579
675
|
# return_type
|
|
580
676
|
return_type = opts[:debug_return_type] || 'PaymentTerminal'
|
|
@@ -649,7 +745,7 @@ module WalleeRubySdk
|
|
|
649
745
|
header_params = opts[:header_params] || {}
|
|
650
746
|
# HTTP header 'Accept' (if needed)
|
|
651
747
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
652
|
-
header_params[:'
|
|
748
|
+
header_params[:'space'] = space
|
|
653
749
|
|
|
654
750
|
# form parameters
|
|
655
751
|
form_params = opts[:form_params] || {}
|
|
@@ -680,6 +776,147 @@ module WalleeRubySdk
|
|
|
680
776
|
end
|
|
681
777
|
|
|
682
778
|
|
|
779
|
+
# Refresh a physical terminal state by identifier
|
|
780
|
+
# @param identifier [String] The unique identifier of the terminal.
|
|
781
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
782
|
+
# @param [Hash] opts the optional parameters
|
|
783
|
+
# @option opts [Array<String>] :expand
|
|
784
|
+
# @return [PaymentTerminal]
|
|
785
|
+
def post_payment_terminals_by_identifier_identifier_refresh(identifier, space, opts = {})
|
|
786
|
+
data, _status_code, _headers = post_payment_terminals_by_identifier_identifier_refresh_with_http_info(identifier, space, opts)
|
|
787
|
+
data
|
|
788
|
+
end
|
|
789
|
+
|
|
790
|
+
# Refresh a physical terminal state by identifier
|
|
791
|
+
# Timeout for this request is: 30 seconds.
|
|
792
|
+
# @param identifier [String] The unique identifier of the terminal.
|
|
793
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
794
|
+
# @param [Hash] opts the optional parameters
|
|
795
|
+
# @option opts [Array<String>] :expand
|
|
796
|
+
# @return [Array<(PaymentTerminal, Integer, Hash)>] PaymentTerminal data, response status code and response headers
|
|
797
|
+
def post_payment_terminals_by_identifier_identifier_refresh_with_http_info(identifier, space, opts = {})
|
|
798
|
+
if @api_client.config.debugging
|
|
799
|
+
@api_client.config.logger.debug 'Calling API: PaymentTerminalsService.post_payment_terminals_by_identifier_identifier_refresh ...'
|
|
800
|
+
end
|
|
801
|
+
# verify the required parameter 'identifier' is set
|
|
802
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
803
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling PaymentTerminalsService.post_payment_terminals_by_identifier_identifier_refresh"
|
|
804
|
+
end
|
|
805
|
+
# verify the required parameter 'space' is set
|
|
806
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
807
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling PaymentTerminalsService.post_payment_terminals_by_identifier_identifier_refresh"
|
|
808
|
+
end
|
|
809
|
+
# resource path
|
|
810
|
+
local_var_path = '/payment/terminals/by-identifier/{identifier}/refresh'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
|
|
811
|
+
|
|
812
|
+
# query parameters
|
|
813
|
+
query_params = opts[:query_params] || {}
|
|
814
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
815
|
+
|
|
816
|
+
# header parameters
|
|
817
|
+
header_params = opts[:header_params] || {}
|
|
818
|
+
# HTTP header 'Accept' (if needed)
|
|
819
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
820
|
+
header_params[:'space'] = space
|
|
821
|
+
|
|
822
|
+
# form parameters
|
|
823
|
+
form_params = opts[:form_params] || {}
|
|
824
|
+
|
|
825
|
+
# connection timeout
|
|
826
|
+
connection_timeout = 30
|
|
827
|
+
|
|
828
|
+
# http body (model)
|
|
829
|
+
post_body = opts[:debug_body]
|
|
830
|
+
|
|
831
|
+
# return_type
|
|
832
|
+
return_type = opts[:debug_return_type] || 'PaymentTerminal'
|
|
833
|
+
|
|
834
|
+
new_options = opts.merge(
|
|
835
|
+
:operation => :"PaymentTerminalsService.post_payment_terminals_by_identifier_identifier_refresh",
|
|
836
|
+
:header_params => header_params,
|
|
837
|
+
:query_params => query_params,
|
|
838
|
+
:form_params => form_params,
|
|
839
|
+
:body => post_body,
|
|
840
|
+
:return_type => return_type
|
|
841
|
+
)
|
|
842
|
+
|
|
843
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
844
|
+
if @api_client.config.debugging
|
|
845
|
+
@api_client.config.logger.debug "API called: PaymentTerminalsService#post_payment_terminals_by_identifier_identifier_refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
846
|
+
end
|
|
847
|
+
return data, status_code, headers
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
# Remotely trigger the configuration by identifier
|
|
852
|
+
# @param identifier [String] The unique identifier of the terminal.
|
|
853
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
854
|
+
# @param [Hash] opts the optional parameters
|
|
855
|
+
# @return [nil]
|
|
856
|
+
def post_payment_terminals_by_identifier_identifier_trigger_configuration(identifier, space, opts = {})
|
|
857
|
+
post_payment_terminals_by_identifier_identifier_trigger_configuration_with_http_info(identifier, space, opts)
|
|
858
|
+
nil
|
|
859
|
+
end
|
|
860
|
+
|
|
861
|
+
# Remotely trigger the configuration by identifier
|
|
862
|
+
|
|
863
|
+
# @param identifier [String] The unique identifier of the terminal.
|
|
864
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
865
|
+
# @param [Hash] opts the optional parameters
|
|
866
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
867
|
+
def post_payment_terminals_by_identifier_identifier_trigger_configuration_with_http_info(identifier, space, opts = {})
|
|
868
|
+
if @api_client.config.debugging
|
|
869
|
+
@api_client.config.logger.debug 'Calling API: PaymentTerminalsService.post_payment_terminals_by_identifier_identifier_trigger_configuration ...'
|
|
870
|
+
end
|
|
871
|
+
# verify the required parameter 'identifier' is set
|
|
872
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
873
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling PaymentTerminalsService.post_payment_terminals_by_identifier_identifier_trigger_configuration"
|
|
874
|
+
end
|
|
875
|
+
# verify the required parameter 'space' is set
|
|
876
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
877
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling PaymentTerminalsService.post_payment_terminals_by_identifier_identifier_trigger_configuration"
|
|
878
|
+
end
|
|
879
|
+
# resource path
|
|
880
|
+
local_var_path = '/payment/terminals/by-identifier/{identifier}/trigger-configuration'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
|
|
881
|
+
|
|
882
|
+
# query parameters
|
|
883
|
+
query_params = opts[:query_params] || {}
|
|
884
|
+
|
|
885
|
+
# header parameters
|
|
886
|
+
header_params = opts[:header_params] || {}
|
|
887
|
+
# HTTP header 'Accept' (if needed)
|
|
888
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
889
|
+
header_params[:'space'] = space
|
|
890
|
+
|
|
891
|
+
# form parameters
|
|
892
|
+
form_params = opts[:form_params] || {}
|
|
893
|
+
|
|
894
|
+
# connection timeout
|
|
895
|
+
connection_timeout = @api_client.config.timeout
|
|
896
|
+
|
|
897
|
+
# http body (model)
|
|
898
|
+
post_body = opts[:debug_body]
|
|
899
|
+
|
|
900
|
+
# return_type
|
|
901
|
+
return_type = opts[:debug_return_type]
|
|
902
|
+
|
|
903
|
+
new_options = opts.merge(
|
|
904
|
+
:operation => :"PaymentTerminalsService.post_payment_terminals_by_identifier_identifier_trigger_configuration",
|
|
905
|
+
:header_params => header_params,
|
|
906
|
+
:query_params => query_params,
|
|
907
|
+
:form_params => form_params,
|
|
908
|
+
:body => post_body,
|
|
909
|
+
:return_type => return_type
|
|
910
|
+
)
|
|
911
|
+
|
|
912
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
913
|
+
if @api_client.config.debugging
|
|
914
|
+
@api_client.config.logger.debug "API called: PaymentTerminalsService#post_payment_terminals_by_identifier_identifier_trigger_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
915
|
+
end
|
|
916
|
+
return data, status_code, headers
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
|
|
683
920
|
# Remotely trigger the final balance by identifier
|
|
684
921
|
# @param identifier [String] The unique identifier of the terminal.
|
|
685
922
|
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
@@ -718,7 +955,7 @@ module WalleeRubySdk
|
|
|
718
955
|
header_params = opts[:header_params] || {}
|
|
719
956
|
# HTTP header 'Accept' (if needed)
|
|
720
957
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
721
|
-
header_params[:'
|
|
958
|
+
header_params[:'space'] = space
|
|
722
959
|
|
|
723
960
|
# form parameters
|
|
724
961
|
form_params = opts[:form_params] || {}
|
|
@@ -794,7 +1031,7 @@ module WalleeRubySdk
|
|
|
794
1031
|
header_params = opts[:header_params] || {}
|
|
795
1032
|
# HTTP header 'Accept' (if needed)
|
|
796
1033
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
797
|
-
header_params[:'
|
|
1034
|
+
header_params[:'space'] = space
|
|
798
1035
|
|
|
799
1036
|
# form parameters
|
|
800
1037
|
form_params = opts[:form_params] || {}
|
|
@@ -878,7 +1115,7 @@ module WalleeRubySdk
|
|
|
878
1115
|
header_params = opts[:header_params] || {}
|
|
879
1116
|
# HTTP header 'Accept' (if needed)
|
|
880
1117
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
881
|
-
header_params[:'
|
|
1118
|
+
header_params[:'space'] = space
|
|
882
1119
|
|
|
883
1120
|
# form parameters
|
|
884
1121
|
form_params = opts[:form_params] || {}
|
|
@@ -909,6 +1146,147 @@ module WalleeRubySdk
|
|
|
909
1146
|
end
|
|
910
1147
|
|
|
911
1148
|
|
|
1149
|
+
# Refresh a physical terminal state
|
|
1150
|
+
# @param id [Integer]
|
|
1151
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
1152
|
+
# @param [Hash] opts the optional parameters
|
|
1153
|
+
# @option opts [Array<String>] :expand
|
|
1154
|
+
# @return [PaymentTerminal]
|
|
1155
|
+
def post_payment_terminals_id_refresh(id, space, opts = {})
|
|
1156
|
+
data, _status_code, _headers = post_payment_terminals_id_refresh_with_http_info(id, space, opts)
|
|
1157
|
+
data
|
|
1158
|
+
end
|
|
1159
|
+
|
|
1160
|
+
# Refresh a physical terminal state
|
|
1161
|
+
# Timeout for this request is: 30 seconds.
|
|
1162
|
+
# @param id [Integer]
|
|
1163
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
1164
|
+
# @param [Hash] opts the optional parameters
|
|
1165
|
+
# @option opts [Array<String>] :expand
|
|
1166
|
+
# @return [Array<(PaymentTerminal, Integer, Hash)>] PaymentTerminal data, response status code and response headers
|
|
1167
|
+
def post_payment_terminals_id_refresh_with_http_info(id, space, opts = {})
|
|
1168
|
+
if @api_client.config.debugging
|
|
1169
|
+
@api_client.config.logger.debug 'Calling API: PaymentTerminalsService.post_payment_terminals_id_refresh ...'
|
|
1170
|
+
end
|
|
1171
|
+
# verify the required parameter 'id' is set
|
|
1172
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1173
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PaymentTerminalsService.post_payment_terminals_id_refresh"
|
|
1174
|
+
end
|
|
1175
|
+
# verify the required parameter 'space' is set
|
|
1176
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
1177
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling PaymentTerminalsService.post_payment_terminals_id_refresh"
|
|
1178
|
+
end
|
|
1179
|
+
# resource path
|
|
1180
|
+
local_var_path = '/payment/terminals/{id}/refresh'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1181
|
+
|
|
1182
|
+
# query parameters
|
|
1183
|
+
query_params = opts[:query_params] || {}
|
|
1184
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
1185
|
+
|
|
1186
|
+
# header parameters
|
|
1187
|
+
header_params = opts[:header_params] || {}
|
|
1188
|
+
# HTTP header 'Accept' (if needed)
|
|
1189
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1190
|
+
header_params[:'space'] = space
|
|
1191
|
+
|
|
1192
|
+
# form parameters
|
|
1193
|
+
form_params = opts[:form_params] || {}
|
|
1194
|
+
|
|
1195
|
+
# connection timeout
|
|
1196
|
+
connection_timeout = 30
|
|
1197
|
+
|
|
1198
|
+
# http body (model)
|
|
1199
|
+
post_body = opts[:debug_body]
|
|
1200
|
+
|
|
1201
|
+
# return_type
|
|
1202
|
+
return_type = opts[:debug_return_type] || 'PaymentTerminal'
|
|
1203
|
+
|
|
1204
|
+
new_options = opts.merge(
|
|
1205
|
+
:operation => :"PaymentTerminalsService.post_payment_terminals_id_refresh",
|
|
1206
|
+
:header_params => header_params,
|
|
1207
|
+
:query_params => query_params,
|
|
1208
|
+
:form_params => form_params,
|
|
1209
|
+
:body => post_body,
|
|
1210
|
+
:return_type => return_type
|
|
1211
|
+
)
|
|
1212
|
+
|
|
1213
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
1214
|
+
if @api_client.config.debugging
|
|
1215
|
+
@api_client.config.logger.debug "API called: PaymentTerminalsService#post_payment_terminals_id_refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
1216
|
+
end
|
|
1217
|
+
return data, status_code, headers
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
# Remotely trigger the configuration
|
|
1222
|
+
# @param id [Integer]
|
|
1223
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
1224
|
+
# @param [Hash] opts the optional parameters
|
|
1225
|
+
# @return [nil]
|
|
1226
|
+
def post_payment_terminals_id_trigger_configuration(id, space, opts = {})
|
|
1227
|
+
post_payment_terminals_id_trigger_configuration_with_http_info(id, space, opts)
|
|
1228
|
+
nil
|
|
1229
|
+
end
|
|
1230
|
+
|
|
1231
|
+
# Remotely trigger the configuration
|
|
1232
|
+
|
|
1233
|
+
# @param id [Integer]
|
|
1234
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
1235
|
+
# @param [Hash] opts the optional parameters
|
|
1236
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1237
|
+
def post_payment_terminals_id_trigger_configuration_with_http_info(id, space, opts = {})
|
|
1238
|
+
if @api_client.config.debugging
|
|
1239
|
+
@api_client.config.logger.debug 'Calling API: PaymentTerminalsService.post_payment_terminals_id_trigger_configuration ...'
|
|
1240
|
+
end
|
|
1241
|
+
# verify the required parameter 'id' is set
|
|
1242
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1243
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PaymentTerminalsService.post_payment_terminals_id_trigger_configuration"
|
|
1244
|
+
end
|
|
1245
|
+
# verify the required parameter 'space' is set
|
|
1246
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
1247
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling PaymentTerminalsService.post_payment_terminals_id_trigger_configuration"
|
|
1248
|
+
end
|
|
1249
|
+
# resource path
|
|
1250
|
+
local_var_path = '/payment/terminals/{id}/trigger-configuration'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1251
|
+
|
|
1252
|
+
# query parameters
|
|
1253
|
+
query_params = opts[:query_params] || {}
|
|
1254
|
+
|
|
1255
|
+
# header parameters
|
|
1256
|
+
header_params = opts[:header_params] || {}
|
|
1257
|
+
# HTTP header 'Accept' (if needed)
|
|
1258
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1259
|
+
header_params[:'space'] = space
|
|
1260
|
+
|
|
1261
|
+
# form parameters
|
|
1262
|
+
form_params = opts[:form_params] || {}
|
|
1263
|
+
|
|
1264
|
+
# connection timeout
|
|
1265
|
+
connection_timeout = @api_client.config.timeout
|
|
1266
|
+
|
|
1267
|
+
# http body (model)
|
|
1268
|
+
post_body = opts[:debug_body]
|
|
1269
|
+
|
|
1270
|
+
# return_type
|
|
1271
|
+
return_type = opts[:debug_return_type]
|
|
1272
|
+
|
|
1273
|
+
new_options = opts.merge(
|
|
1274
|
+
:operation => :"PaymentTerminalsService.post_payment_terminals_id_trigger_configuration",
|
|
1275
|
+
:header_params => header_params,
|
|
1276
|
+
:query_params => query_params,
|
|
1277
|
+
:form_params => form_params,
|
|
1278
|
+
:body => post_body,
|
|
1279
|
+
:return_type => return_type
|
|
1280
|
+
)
|
|
1281
|
+
|
|
1282
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
1283
|
+
if @api_client.config.debugging
|
|
1284
|
+
@api_client.config.logger.debug "API called: PaymentTerminalsService#post_payment_terminals_id_trigger_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
1285
|
+
end
|
|
1286
|
+
return data, status_code, headers
|
|
1287
|
+
end
|
|
1288
|
+
|
|
1289
|
+
|
|
912
1290
|
# Remotely trigger the final balance
|
|
913
1291
|
# @param id [Integer]
|
|
914
1292
|
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
@@ -947,7 +1325,7 @@ module WalleeRubySdk
|
|
|
947
1325
|
header_params = opts[:header_params] || {}
|
|
948
1326
|
# HTTP header 'Accept' (if needed)
|
|
949
1327
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
950
|
-
header_params[:'
|
|
1328
|
+
header_params[:'space'] = space
|
|
951
1329
|
|
|
952
1330
|
# form parameters
|
|
953
1331
|
form_params = opts[:form_params] || {}
|
|
@@ -1016,7 +1394,7 @@ module WalleeRubySdk
|
|
|
1016
1394
|
header_params = opts[:header_params] || {}
|
|
1017
1395
|
# HTTP header 'Accept' (if needed)
|
|
1018
1396
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1019
|
-
header_params[:'
|
|
1397
|
+
header_params[:'space'] = space
|
|
1020
1398
|
|
|
1021
1399
|
# form parameters
|
|
1022
1400
|
form_params = opts[:form_params] || {}
|
|
@@ -1046,5 +1424,80 @@ module WalleeRubySdk
|
|
|
1046
1424
|
return data, status_code, headers
|
|
1047
1425
|
end
|
|
1048
1426
|
|
|
1427
|
+
|
|
1428
|
+
# Revert terminal transaction
|
|
1429
|
+
# This function communicates with the payment terminal to cancel the authorization hold and remove the transaction from the current open batch. It must be executed before the settlement (Submission) occurs.
|
|
1430
|
+
# @param transaction_id [Integer]
|
|
1431
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
1432
|
+
# @param [Hash] opts the optional parameters
|
|
1433
|
+
# @option opts [Array<String>] :expand
|
|
1434
|
+
# @return [TransactionVoid]
|
|
1435
|
+
def post_payment_terminals_trigger_reversal(transaction_id, space, opts = {})
|
|
1436
|
+
data, _status_code, _headers = post_payment_terminals_trigger_reversal_with_http_info(transaction_id, space, opts)
|
|
1437
|
+
data
|
|
1438
|
+
end
|
|
1439
|
+
|
|
1440
|
+
# Revert terminal transaction
|
|
1441
|
+
# This function communicates with the payment terminal to cancel the authorization hold and remove the transaction from the current open batch. It must be executed before the settlement (Submission) occurs.
|
|
1442
|
+
# Timeout for this request is: 90 seconds.
|
|
1443
|
+
# @param transaction_id [Integer]
|
|
1444
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
1445
|
+
# @param [Hash] opts the optional parameters
|
|
1446
|
+
# @option opts [Array<String>] :expand
|
|
1447
|
+
# @return [Array<(TransactionVoid, Integer, Hash)>] TransactionVoid data, response status code and response headers
|
|
1448
|
+
def post_payment_terminals_trigger_reversal_with_http_info(transaction_id, space, opts = {})
|
|
1449
|
+
if @api_client.config.debugging
|
|
1450
|
+
@api_client.config.logger.debug 'Calling API: PaymentTerminalsService.post_payment_terminals_trigger_reversal ...'
|
|
1451
|
+
end
|
|
1452
|
+
# verify the required parameter 'transaction_id' is set
|
|
1453
|
+
if @api_client.config.client_side_validation && transaction_id.nil?
|
|
1454
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentTerminalsService.post_payment_terminals_trigger_reversal"
|
|
1455
|
+
end
|
|
1456
|
+
# verify the required parameter 'space' is set
|
|
1457
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
1458
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling PaymentTerminalsService.post_payment_terminals_trigger_reversal"
|
|
1459
|
+
end
|
|
1460
|
+
# resource path
|
|
1461
|
+
local_var_path = '/payment/terminals/trigger-reversal'
|
|
1462
|
+
|
|
1463
|
+
# query parameters
|
|
1464
|
+
query_params = opts[:query_params] || {}
|
|
1465
|
+
query_params[:'transactionId'] = transaction_id
|
|
1466
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
1467
|
+
|
|
1468
|
+
# header parameters
|
|
1469
|
+
header_params = opts[:header_params] || {}
|
|
1470
|
+
# HTTP header 'Accept' (if needed)
|
|
1471
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1472
|
+
header_params[:'space'] = space
|
|
1473
|
+
|
|
1474
|
+
# form parameters
|
|
1475
|
+
form_params = opts[:form_params] || {}
|
|
1476
|
+
|
|
1477
|
+
# connection timeout
|
|
1478
|
+
connection_timeout = 90
|
|
1479
|
+
|
|
1480
|
+
# http body (model)
|
|
1481
|
+
post_body = opts[:debug_body]
|
|
1482
|
+
|
|
1483
|
+
# return_type
|
|
1484
|
+
return_type = opts[:debug_return_type] || 'TransactionVoid'
|
|
1485
|
+
|
|
1486
|
+
new_options = opts.merge(
|
|
1487
|
+
:operation => :"PaymentTerminalsService.post_payment_terminals_trigger_reversal",
|
|
1488
|
+
:header_params => header_params,
|
|
1489
|
+
:query_params => query_params,
|
|
1490
|
+
:form_params => form_params,
|
|
1491
|
+
:body => post_body,
|
|
1492
|
+
:return_type => return_type
|
|
1493
|
+
)
|
|
1494
|
+
|
|
1495
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
1496
|
+
if @api_client.config.debugging
|
|
1497
|
+
@api_client.config.logger.debug "API called: PaymentTerminalsService#post_payment_terminals_trigger_reversal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
1498
|
+
end
|
|
1499
|
+
return data, status_code, headers
|
|
1500
|
+
end
|
|
1501
|
+
|
|
1049
1502
|
end
|
|
1050
1503
|
end
|