wallee-ruby-sdk 6.4.0 → 8.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 +44 -37
- data/README.md +480 -122
- 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/{express_checkout_shipping_address_change_request.rb → boarding_strategy_information_request.rb} +22 -14
- data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_payment_data.rb → charge_attempt_lookup_result.rb} +16 -18
- data/lib/wallee-ruby-sdk/models/charge_attempt_projection.rb +569 -0
- data/lib/wallee-ruby-sdk/models/create_fulfillment_request.rb +266 -0
- 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/dunning_case_level_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/express_checkout_session.rb +116 -19
- data/lib/wallee-ruby-sdk/models/express_checkout_session_create.rb +127 -9
- data/lib/wallee-ruby-sdk/models/{express_checkout_create_response.rb → express_checkout_session_create_response.rb} +18 -25
- data/lib/wallee-ruby-sdk/models/express_checkout_session_process_request.rb +329 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_request.rb → express_checkout_session_process_response.rb} +11 -11
- data/lib/wallee-ruby-sdk/models/express_checkout_shipping_option.rb +30 -18
- 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 +53 -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/{payment_terminal_update.rb → invoice_reconciliation_record_invoice_link.rb} +55 -54
- 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/invoice_reconciliation_record_type.rb +255 -0
- 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_application_submit_request_dto.rb +232 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_submitted_dto.rb +273 -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/{express_checkout_shipping_address_change_response.rb → merchant_related_persons_dto.rb} +22 -20
- 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/{bogus_express_checkout_approval_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -10
- 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/{abstract_payment_terminal_update.rb → payment_terminal_update_request.rb} +27 -26
- 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_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/{user_space_role.rb → rest_member.rb} +50 -37
- data/lib/wallee-ruby-sdk/models/{express_checkout_approval_response.rb → rest_o_auth_client_secret.rb} +19 -17
- data/lib/wallee-ruby-sdk/models/rest_o_auth_client_secret_created.rb +289 -0
- 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/{express_checkout_shipping_method_change_response.rb → role_ref.rb} +18 -18
- 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 +13 -1
- 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_partial_update_request.rb +250 -0
- data/lib/wallee-ruby-sdk/models/subscription_product_dto.rb +239 -0
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +45 -22
- 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_amounts.rb +257 -0
- 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/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 +285 -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/{express_checkout_service.rb → express_checkout_session_service.rb} +68 -82
- 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 +485 -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 +484 -31
- 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 +22 -22
- 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 +124 -21
- data/wallee-ruby-sdk.gemspec +3 -3
- metadata +962 -841
- data/lib/wallee-ruby-sdk/service/application_users_roles_service.rb +0 -478
- data/lib/wallee-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
- 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,485 @@
|
|
|
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 MerchantApplicationsService
|
|
27
|
+
attr_accessor :api_client
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def initialize(api_client = ApiClient.default)
|
|
31
|
+
@api_client = api_client
|
|
32
|
+
end
|
|
33
|
+
# Retrieve a merchant application by account
|
|
34
|
+
# Returns the merchant application for the account specified in the account header.
|
|
35
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [Array<String>] :expand
|
|
38
|
+
# @return [MerchantApplicationDataDto]
|
|
39
|
+
def get_onboarding_merchant_applications_by_account(account, opts = {})
|
|
40
|
+
data, _status_code, _headers = get_onboarding_merchant_applications_by_account_with_http_info(account, opts)
|
|
41
|
+
data
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Retrieve a merchant application by account
|
|
45
|
+
# Returns the merchant application for the account specified in the account header.
|
|
46
|
+
|
|
47
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
48
|
+
# @param [Hash] opts the optional parameters
|
|
49
|
+
# @option opts [Array<String>] :expand
|
|
50
|
+
# @return [Array<(MerchantApplicationDataDto, Integer, Hash)>] MerchantApplicationDataDto data, response status code and response headers
|
|
51
|
+
def get_onboarding_merchant_applications_by_account_with_http_info(account, opts = {})
|
|
52
|
+
if @api_client.config.debugging
|
|
53
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.get_onboarding_merchant_applications_by_account ...'
|
|
54
|
+
end
|
|
55
|
+
# verify the required parameter 'account' is set
|
|
56
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.get_onboarding_merchant_applications_by_account"
|
|
58
|
+
end
|
|
59
|
+
# resource path
|
|
60
|
+
local_var_path = '/onboarding/merchant-applications/by-account'
|
|
61
|
+
|
|
62
|
+
# query parameters
|
|
63
|
+
query_params = opts[:query_params] || {}
|
|
64
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
65
|
+
|
|
66
|
+
# header parameters
|
|
67
|
+
header_params = opts[:header_params] || {}
|
|
68
|
+
# HTTP header 'Accept' (if needed)
|
|
69
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
70
|
+
header_params[:'account'] = account
|
|
71
|
+
|
|
72
|
+
# form parameters
|
|
73
|
+
form_params = opts[:form_params] || {}
|
|
74
|
+
|
|
75
|
+
# connection timeout
|
|
76
|
+
connection_timeout = @api_client.config.timeout
|
|
77
|
+
|
|
78
|
+
# http body (model)
|
|
79
|
+
post_body = opts[:debug_body]
|
|
80
|
+
|
|
81
|
+
# return_type
|
|
82
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationDataDto'
|
|
83
|
+
|
|
84
|
+
new_options = opts.merge(
|
|
85
|
+
:operation => :"MerchantApplicationsService.get_onboarding_merchant_applications_by_account",
|
|
86
|
+
:header_params => header_params,
|
|
87
|
+
:query_params => query_params,
|
|
88
|
+
:form_params => form_params,
|
|
89
|
+
:body => post_body,
|
|
90
|
+
:return_type => return_type
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
94
|
+
if @api_client.config.debugging
|
|
95
|
+
@api_client.config.logger.debug "API called: MerchantApplicationsService#get_onboarding_merchant_applications_by_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
96
|
+
end
|
|
97
|
+
return data, status_code, headers
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
# Retrieve a merchant application status
|
|
102
|
+
# @param id [Integer]
|
|
103
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [Array<String>] :expand
|
|
106
|
+
# @return [MerchantApplicationStatusDto]
|
|
107
|
+
def get_onboarding_merchant_applications_id_status(id, account, opts = {})
|
|
108
|
+
data, _status_code, _headers = get_onboarding_merchant_applications_id_status_with_http_info(id, account, opts)
|
|
109
|
+
data
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Retrieve a merchant application status
|
|
113
|
+
|
|
114
|
+
# @param id [Integer]
|
|
115
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @option opts [Array<String>] :expand
|
|
118
|
+
# @return [Array<(MerchantApplicationStatusDto, Integer, Hash)>] MerchantApplicationStatusDto data, response status code and response headers
|
|
119
|
+
def get_onboarding_merchant_applications_id_status_with_http_info(id, account, opts = {})
|
|
120
|
+
if @api_client.config.debugging
|
|
121
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.get_onboarding_merchant_applications_id_status ...'
|
|
122
|
+
end
|
|
123
|
+
# verify the required parameter 'id' is set
|
|
124
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
125
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantApplicationsService.get_onboarding_merchant_applications_id_status"
|
|
126
|
+
end
|
|
127
|
+
# verify the required parameter 'account' is set
|
|
128
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
129
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.get_onboarding_merchant_applications_id_status"
|
|
130
|
+
end
|
|
131
|
+
# resource path
|
|
132
|
+
local_var_path = '/onboarding/merchant-applications/{id}/status'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
133
|
+
|
|
134
|
+
# query parameters
|
|
135
|
+
query_params = opts[:query_params] || {}
|
|
136
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
137
|
+
|
|
138
|
+
# header parameters
|
|
139
|
+
header_params = opts[:header_params] || {}
|
|
140
|
+
# HTTP header 'Accept' (if needed)
|
|
141
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
142
|
+
header_params[:'account'] = account
|
|
143
|
+
|
|
144
|
+
# form parameters
|
|
145
|
+
form_params = opts[:form_params] || {}
|
|
146
|
+
|
|
147
|
+
# connection timeout
|
|
148
|
+
connection_timeout = @api_client.config.timeout
|
|
149
|
+
|
|
150
|
+
# http body (model)
|
|
151
|
+
post_body = opts[:debug_body]
|
|
152
|
+
|
|
153
|
+
# return_type
|
|
154
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationStatusDto'
|
|
155
|
+
|
|
156
|
+
new_options = opts.merge(
|
|
157
|
+
:operation => :"MerchantApplicationsService.get_onboarding_merchant_applications_id_status",
|
|
158
|
+
:header_params => header_params,
|
|
159
|
+
:query_params => query_params,
|
|
160
|
+
:form_params => form_params,
|
|
161
|
+
:body => post_body,
|
|
162
|
+
:return_type => return_type
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
166
|
+
if @api_client.config.debugging
|
|
167
|
+
@api_client.config.logger.debug "API called: MerchantApplicationsService#get_onboarding_merchant_applications_id_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
168
|
+
end
|
|
169
|
+
return data, status_code, headers
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
# Return merchant application submission URL
|
|
174
|
+
# Returns the URL where the merchant can review the application and complete the submission.
|
|
175
|
+
# @param id [Integer]
|
|
176
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @return [String]
|
|
179
|
+
def get_onboarding_merchant_applications_id_submission_url(id, account, opts = {})
|
|
180
|
+
data, _status_code, _headers = get_onboarding_merchant_applications_id_submission_url_with_http_info(id, account, opts)
|
|
181
|
+
data
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Return merchant application submission URL
|
|
185
|
+
# Returns the URL where the merchant can review the application and complete the submission.
|
|
186
|
+
|
|
187
|
+
# @param id [Integer]
|
|
188
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
189
|
+
# @param [Hash] opts the optional parameters
|
|
190
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
191
|
+
def get_onboarding_merchant_applications_id_submission_url_with_http_info(id, account, opts = {})
|
|
192
|
+
if @api_client.config.debugging
|
|
193
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.get_onboarding_merchant_applications_id_submission_url ...'
|
|
194
|
+
end
|
|
195
|
+
# verify the required parameter 'id' is set
|
|
196
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
197
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantApplicationsService.get_onboarding_merchant_applications_id_submission_url"
|
|
198
|
+
end
|
|
199
|
+
# verify the required parameter 'account' is set
|
|
200
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
201
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.get_onboarding_merchant_applications_id_submission_url"
|
|
202
|
+
end
|
|
203
|
+
# resource path
|
|
204
|
+
local_var_path = '/onboarding/merchant-applications/{id}/submission-url'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
205
|
+
|
|
206
|
+
# query parameters
|
|
207
|
+
query_params = opts[:query_params] || {}
|
|
208
|
+
|
|
209
|
+
# header parameters
|
|
210
|
+
header_params = opts[:header_params] || {}
|
|
211
|
+
# HTTP header 'Accept' (if needed)
|
|
212
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json']) unless header_params['Accept']
|
|
213
|
+
header_params[:'account'] = account
|
|
214
|
+
|
|
215
|
+
# form parameters
|
|
216
|
+
form_params = opts[:form_params] || {}
|
|
217
|
+
|
|
218
|
+
# connection timeout
|
|
219
|
+
connection_timeout = @api_client.config.timeout
|
|
220
|
+
|
|
221
|
+
# http body (model)
|
|
222
|
+
post_body = opts[:debug_body]
|
|
223
|
+
|
|
224
|
+
# return_type
|
|
225
|
+
return_type = opts[:debug_return_type] || 'String'
|
|
226
|
+
|
|
227
|
+
new_options = opts.merge(
|
|
228
|
+
:operation => :"MerchantApplicationsService.get_onboarding_merchant_applications_id_submission_url",
|
|
229
|
+
:header_params => header_params,
|
|
230
|
+
:query_params => query_params,
|
|
231
|
+
:form_params => form_params,
|
|
232
|
+
:body => post_body,
|
|
233
|
+
:return_type => return_type
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
237
|
+
if @api_client.config.debugging
|
|
238
|
+
@api_client.config.logger.debug "API called: MerchantApplicationsService#get_onboarding_merchant_applications_id_submission_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
239
|
+
end
|
|
240
|
+
return data, status_code, headers
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
# Update a merchant application
|
|
245
|
+
# @param id [Integer]
|
|
246
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
247
|
+
# @param merchant_application_data_dto [MerchantApplicationDataDto]
|
|
248
|
+
# @param [Hash] opts the optional parameters
|
|
249
|
+
# @option opts [Array<String>] :expand
|
|
250
|
+
# @return [MerchantApplicationDataDto]
|
|
251
|
+
def patch_onboarding_merchant_applications_id(id, account, merchant_application_data_dto, opts = {})
|
|
252
|
+
data, _status_code, _headers = patch_onboarding_merchant_applications_id_with_http_info(id, account, merchant_application_data_dto, opts)
|
|
253
|
+
data
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Update a merchant application
|
|
257
|
+
|
|
258
|
+
# @param id [Integer]
|
|
259
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
260
|
+
# @param merchant_application_data_dto [MerchantApplicationDataDto]
|
|
261
|
+
# @param [Hash] opts the optional parameters
|
|
262
|
+
# @option opts [Array<String>] :expand
|
|
263
|
+
# @return [Array<(MerchantApplicationDataDto, Integer, Hash)>] MerchantApplicationDataDto data, response status code and response headers
|
|
264
|
+
def patch_onboarding_merchant_applications_id_with_http_info(id, account, merchant_application_data_dto, opts = {})
|
|
265
|
+
if @api_client.config.debugging
|
|
266
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.patch_onboarding_merchant_applications_id ...'
|
|
267
|
+
end
|
|
268
|
+
# verify the required parameter 'id' is set
|
|
269
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
270
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantApplicationsService.patch_onboarding_merchant_applications_id"
|
|
271
|
+
end
|
|
272
|
+
# verify the required parameter 'account' is set
|
|
273
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
274
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.patch_onboarding_merchant_applications_id"
|
|
275
|
+
end
|
|
276
|
+
# verify the required parameter 'merchant_application_data_dto' is set
|
|
277
|
+
if @api_client.config.client_side_validation && merchant_application_data_dto.nil?
|
|
278
|
+
fail ArgumentError, "Missing the required parameter 'merchant_application_data_dto' when calling MerchantApplicationsService.patch_onboarding_merchant_applications_id"
|
|
279
|
+
end
|
|
280
|
+
# resource path
|
|
281
|
+
local_var_path = '/onboarding/merchant-applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
282
|
+
|
|
283
|
+
# query parameters
|
|
284
|
+
query_params = opts[:query_params] || {}
|
|
285
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
286
|
+
|
|
287
|
+
# header parameters
|
|
288
|
+
header_params = opts[:header_params] || {}
|
|
289
|
+
# HTTP header 'Accept' (if needed)
|
|
290
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
291
|
+
# HTTP header 'Content-Type'
|
|
292
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
293
|
+
if !content_type.nil?
|
|
294
|
+
header_params['Content-Type'] = content_type
|
|
295
|
+
end
|
|
296
|
+
header_params[:'account'] = account
|
|
297
|
+
|
|
298
|
+
# form parameters
|
|
299
|
+
form_params = opts[:form_params] || {}
|
|
300
|
+
|
|
301
|
+
# connection timeout
|
|
302
|
+
connection_timeout = @api_client.config.timeout
|
|
303
|
+
|
|
304
|
+
# http body (model)
|
|
305
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(merchant_application_data_dto)
|
|
306
|
+
|
|
307
|
+
# return_type
|
|
308
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationDataDto'
|
|
309
|
+
|
|
310
|
+
new_options = opts.merge(
|
|
311
|
+
:operation => :"MerchantApplicationsService.patch_onboarding_merchant_applications_id",
|
|
312
|
+
:header_params => header_params,
|
|
313
|
+
:query_params => query_params,
|
|
314
|
+
:form_params => form_params,
|
|
315
|
+
:body => post_body,
|
|
316
|
+
:return_type => return_type
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
data, status_code, headers = @api_client.call_api(:PATCH.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
320
|
+
if @api_client.config.debugging
|
|
321
|
+
@api_client.config.logger.debug "API called: MerchantApplicationsService#patch_onboarding_merchant_applications_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
322
|
+
end
|
|
323
|
+
return data, status_code, headers
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
# Create a merchant application
|
|
328
|
+
# Creates a merchant application. The request body is optional. Send an empty body to create a draft application, or send the full application payload to create it with initial data
|
|
329
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
330
|
+
# @param [Hash] opts the optional parameters
|
|
331
|
+
# @option opts [Array<String>] :expand
|
|
332
|
+
# @option opts [MerchantApplicationDataDto] :merchant_application_data_dto
|
|
333
|
+
# @return [MerchantApplicationDataDto]
|
|
334
|
+
def post_onboarding_merchant_applications(account, opts = {})
|
|
335
|
+
data, _status_code, _headers = post_onboarding_merchant_applications_with_http_info(account, opts)
|
|
336
|
+
data
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Create a merchant application
|
|
340
|
+
# Creates a merchant application. The request body is optional. Send an empty body to create a draft application, or send the full application payload to create it with initial data
|
|
341
|
+
|
|
342
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
343
|
+
# @param [Hash] opts the optional parameters
|
|
344
|
+
# @option opts [Array<String>] :expand
|
|
345
|
+
# @option opts [MerchantApplicationDataDto] :merchant_application_data_dto
|
|
346
|
+
# @return [Array<(MerchantApplicationDataDto, Integer, Hash)>] MerchantApplicationDataDto data, response status code and response headers
|
|
347
|
+
def post_onboarding_merchant_applications_with_http_info(account, opts = {})
|
|
348
|
+
if @api_client.config.debugging
|
|
349
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.post_onboarding_merchant_applications ...'
|
|
350
|
+
end
|
|
351
|
+
# verify the required parameter 'account' is set
|
|
352
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
353
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.post_onboarding_merchant_applications"
|
|
354
|
+
end
|
|
355
|
+
# resource path
|
|
356
|
+
local_var_path = '/onboarding/merchant-applications'
|
|
357
|
+
|
|
358
|
+
# query parameters
|
|
359
|
+
query_params = opts[:query_params] || {}
|
|
360
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
361
|
+
|
|
362
|
+
# header parameters
|
|
363
|
+
header_params = opts[:header_params] || {}
|
|
364
|
+
# HTTP header 'Accept' (if needed)
|
|
365
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
366
|
+
# HTTP header 'Content-Type'
|
|
367
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
368
|
+
if !content_type.nil?
|
|
369
|
+
header_params['Content-Type'] = content_type
|
|
370
|
+
end
|
|
371
|
+
header_params[:'account'] = account
|
|
372
|
+
|
|
373
|
+
# form parameters
|
|
374
|
+
form_params = opts[:form_params] || {}
|
|
375
|
+
|
|
376
|
+
# connection timeout
|
|
377
|
+
connection_timeout = @api_client.config.timeout
|
|
378
|
+
|
|
379
|
+
# http body (model)
|
|
380
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'merchant_application_data_dto'])
|
|
381
|
+
|
|
382
|
+
# return_type
|
|
383
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationDataDto'
|
|
384
|
+
|
|
385
|
+
new_options = opts.merge(
|
|
386
|
+
:operation => :"MerchantApplicationsService.post_onboarding_merchant_applications",
|
|
387
|
+
:header_params => header_params,
|
|
388
|
+
:query_params => query_params,
|
|
389
|
+
:form_params => form_params,
|
|
390
|
+
:body => post_body,
|
|
391
|
+
:return_type => return_type
|
|
392
|
+
)
|
|
393
|
+
|
|
394
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
395
|
+
if @api_client.config.debugging
|
|
396
|
+
@api_client.config.logger.debug "API called: MerchantApplicationsService#post_onboarding_merchant_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
397
|
+
end
|
|
398
|
+
return data, status_code, headers
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
# Submit a merchant application and create an organization
|
|
403
|
+
# @param id [Integer]
|
|
404
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
405
|
+
# @param merchant_application_submit_request_dto [MerchantApplicationSubmitRequestDto]
|
|
406
|
+
# @param [Hash] opts the optional parameters
|
|
407
|
+
# @option opts [Array<String>] :expand
|
|
408
|
+
# @return [MerchantApplicationSubmittedDto]
|
|
409
|
+
def post_onboarding_merchant_applications_id_submit(id, account, merchant_application_submit_request_dto, opts = {})
|
|
410
|
+
data, _status_code, _headers = post_onboarding_merchant_applications_id_submit_with_http_info(id, account, merchant_application_submit_request_dto, opts)
|
|
411
|
+
data
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Submit a merchant application and create an organization
|
|
415
|
+
|
|
416
|
+
# @param id [Integer]
|
|
417
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
418
|
+
# @param merchant_application_submit_request_dto [MerchantApplicationSubmitRequestDto]
|
|
419
|
+
# @param [Hash] opts the optional parameters
|
|
420
|
+
# @option opts [Array<String>] :expand
|
|
421
|
+
# @return [Array<(MerchantApplicationSubmittedDto, Integer, Hash)>] MerchantApplicationSubmittedDto data, response status code and response headers
|
|
422
|
+
def post_onboarding_merchant_applications_id_submit_with_http_info(id, account, merchant_application_submit_request_dto, opts = {})
|
|
423
|
+
if @api_client.config.debugging
|
|
424
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.post_onboarding_merchant_applications_id_submit ...'
|
|
425
|
+
end
|
|
426
|
+
# verify the required parameter 'id' is set
|
|
427
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
428
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantApplicationsService.post_onboarding_merchant_applications_id_submit"
|
|
429
|
+
end
|
|
430
|
+
# verify the required parameter 'account' is set
|
|
431
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
432
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.post_onboarding_merchant_applications_id_submit"
|
|
433
|
+
end
|
|
434
|
+
# verify the required parameter 'merchant_application_submit_request_dto' is set
|
|
435
|
+
if @api_client.config.client_side_validation && merchant_application_submit_request_dto.nil?
|
|
436
|
+
fail ArgumentError, "Missing the required parameter 'merchant_application_submit_request_dto' when calling MerchantApplicationsService.post_onboarding_merchant_applications_id_submit"
|
|
437
|
+
end
|
|
438
|
+
# resource path
|
|
439
|
+
local_var_path = '/onboarding/merchant-applications/{id}/submit'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
440
|
+
|
|
441
|
+
# query parameters
|
|
442
|
+
query_params = opts[:query_params] || {}
|
|
443
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
444
|
+
|
|
445
|
+
# header parameters
|
|
446
|
+
header_params = opts[:header_params] || {}
|
|
447
|
+
# HTTP header 'Accept' (if needed)
|
|
448
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
449
|
+
# HTTP header 'Content-Type'
|
|
450
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
451
|
+
if !content_type.nil?
|
|
452
|
+
header_params['Content-Type'] = content_type
|
|
453
|
+
end
|
|
454
|
+
header_params[:'account'] = account
|
|
455
|
+
|
|
456
|
+
# form parameters
|
|
457
|
+
form_params = opts[:form_params] || {}
|
|
458
|
+
|
|
459
|
+
# connection timeout
|
|
460
|
+
connection_timeout = @api_client.config.timeout
|
|
461
|
+
|
|
462
|
+
# http body (model)
|
|
463
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(merchant_application_submit_request_dto)
|
|
464
|
+
|
|
465
|
+
# return_type
|
|
466
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationSubmittedDto'
|
|
467
|
+
|
|
468
|
+
new_options = opts.merge(
|
|
469
|
+
:operation => :"MerchantApplicationsService.post_onboarding_merchant_applications_id_submit",
|
|
470
|
+
:header_params => header_params,
|
|
471
|
+
:query_params => query_params,
|
|
472
|
+
:form_params => form_params,
|
|
473
|
+
:body => post_body,
|
|
474
|
+
:return_type => return_type
|
|
475
|
+
)
|
|
476
|
+
|
|
477
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
478
|
+
if @api_client.config.debugging
|
|
479
|
+
@api_client.config.logger.debug "API called: MerchantApplicationsService#post_onboarding_merchant_applications_id_submit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
480
|
+
end
|
|
481
|
+
return data, status_code, headers
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
end
|
|
485
|
+
end
|