postfinancecheckout-ruby-sdk 6.4.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +38 -31
- data/LICENSE +1 -1
- data/README.md +376 -129
- data/lib/postfinancecheckout-ruby-sdk/api_client.rb +1 -1
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_role_update.rb +13 -1
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
- data/lib/postfinancecheckout-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
- data/lib/postfinancecheckout-ruby-sdk/models/bank_payment_type.rb +50 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{abstract_payment_terminal_update.rb → basic_address.rb} +46 -30
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_address_change_request.rb → boarding_strategy_information_request.rb} +22 -14
- data/lib/postfinancecheckout-ruby-sdk/models/{bogus_express_checkout_payment_data.rb → charge_attempt_lookup_result.rb} +16 -18
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_projection.rb +560 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_option.rb → create_fulfillment_request.rb} +25 -50
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_days_range.rb +60 -0
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_destination.rb +51 -0
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_case_level.rb +403 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{user_account_role_list_response.rb → dunning_case_level_list_response.rb} +4 -4
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_session_state.rb → dunning_case_level_state.rb} +7 -7
- data/lib/postfinancecheckout-ruby-sdk/models/fulfillment.rb +428 -0
- data/lib/postfinancecheckout-ruby-sdk/models/fulfillment_search_response.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/fulfillment_state.rb +52 -0
- data/lib/postfinancecheckout-ruby-sdk/models/identity_info.rb +279 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_processor.rb +51 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{user_account_role.rb → invoice_reconciliation_record_invoice_link.rb} +40 -43
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement.rb +463 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
- data/lib/postfinancecheckout-ruby-sdk/models/legal_form.rb +83 -0
- data/lib/postfinancecheckout-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
- data/lib/postfinancecheckout-ruby-sdk/models/merchant_application_state.rb +50 -0
- data/lib/postfinancecheckout-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
- data/lib/postfinancecheckout-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
- data/lib/postfinancecheckout-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
- data/lib/postfinancecheckout-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
- data/lib/postfinancecheckout-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
- data/lib/postfinancecheckout-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_address_change_response.rb → merchant_related_persons_dto.rb} +22 -20
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_method_change_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -11
- data/lib/postfinancecheckout-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb} +57 -72
- data/lib/postfinancecheckout-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal.rb +37 -1
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location.rb +1 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_create_response.rb → payout_account_info.rb} +31 -22
- data/lib/postfinancecheckout-ruby-sdk/models/person_salutation.rb +54 -0
- data/lib/postfinancecheckout-ruby-sdk/models/pricing_history_dto.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee.rb +11 -1
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee_update.rb +11 -1
- data/lib/postfinancecheckout-ruby-sdk/models/refund_days_range.rb +51 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_percentage_range.rb +56 -0
- data/lib/postfinancecheckout-ruby-sdk/models/related_person.rb +329 -0
- data/lib/postfinancecheckout-ruby-sdk/models/representative_info.rb +239 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
- data/lib/postfinancecheckout-ruby-sdk/models/role.rb +13 -1
- data/lib/postfinancecheckout-ruby-sdk/models/role_create.rb +13 -1
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_method_change_response.rb → role_ref.rb} +18 -18
- data/lib/postfinancecheckout-ruby-sdk/models/role_update.rb +13 -1
- data/lib/postfinancecheckout-ruby-sdk/models/sales_channel.rb +15 -230
- data/lib/postfinancecheckout-ruby-sdk/models/scope.rb +13 -1
- data/lib/postfinancecheckout-ruby-sdk/models/setter.rb +618 -0
- data/lib/postfinancecheckout-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_approval_response.rb → sole_proprietorship_info.rb} +16 -25
- data/lib/postfinancecheckout-ruby-sdk/models/{user_space_role_list_response.rb → state_list_response.rb} +4 -4
- data/lib/postfinancecheckout-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
- data/lib/postfinancecheckout-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
- data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_session_create.rb → subscription_component_group_configuration_request.rb} +23 -37
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_dto.rb +239 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_update_request.rb +22 -45
- data/lib/postfinancecheckout-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
- data/lib/postfinancecheckout-ruby-sdk/models/{bogus_express_checkout_approval_request.rb → tracking_number_request.rb} +10 -10
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_overview.rb +1144 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_projection.rb +1135 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership.rb +357 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
- data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
- data/lib/postfinancecheckout-ruby-sdk/models/wallet_type.rb +40 -1
- data/lib/postfinancecheckout-ruby-sdk/models/web_ui_account_theme.rb +230 -0
- data/lib/postfinancecheckout-ruby-sdk/service/accounts_service.rb +16 -9
- data/lib/postfinancecheckout-ruby-sdk/service/analytics_queries_service.rb +8 -8
- data/lib/postfinancecheckout-ruby-sdk/service/bank_accounts_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/bank_transactions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
- data/lib/postfinancecheckout-ruby-sdk/service/charge_attempts_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
- data/lib/postfinancecheckout-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/charge_flows_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/countries_service.rb +15 -6
- data/lib/postfinancecheckout-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/customer_addresses_service.rb +7 -7
- data/lib/postfinancecheckout-ruby-sdk/service/customer_comments_service.rb +8 -8
- data/lib/postfinancecheckout-ruby-sdk/service/customers_service.rb +11 -11
- data/lib/postfinancecheckout-ruby-sdk/service/delivery_indications_service.rb +5 -5
- data/lib/postfinancecheckout-ruby-sdk/service/document_templates_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
- data/lib/postfinancecheckout-ruby-sdk/service/dunning_cases_service.rb +5 -5
- data/lib/postfinancecheckout-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/dunning_flows_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/fulfillments_service.rb +355 -0
- data/lib/postfinancecheckout-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
- data/lib/postfinancecheckout-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
- data/lib/postfinancecheckout-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
- data/lib/postfinancecheckout-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
- data/lib/postfinancecheckout-ruby-sdk/service/join_partnership_service.rb +586 -0
- data/lib/postfinancecheckout-ruby-sdk/service/manual_tasks_service.rb +5 -5
- data/lib/postfinancecheckout-ruby-sdk/service/members_service.rb +215 -0
- data/lib/postfinancecheckout-ruby-sdk/service/merchant_applications_service.rb +334 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/payment_links_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
- data/lib/postfinancecheckout-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
- data/lib/postfinancecheckout-ruby-sdk/service/payment_terminals_service.rb +475 -22
- data/lib/postfinancecheckout-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/refund_comments_service.rb +8 -8
- data/lib/postfinancecheckout-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/refunds_service.rb +7 -7
- data/lib/postfinancecheckout-ruby-sdk/service/spaces_service.rb +10 -3
- data/lib/postfinancecheckout-ruby-sdk/service/subscribers_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_charges_service.rb +5 -5
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_metrics_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_components_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_products_service.rb +6 -6
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_versions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/subscriptions_service.rb +13 -13
- data/lib/postfinancecheckout-ruby-sdk/service/terminal_locations_service.rb +276 -0
- data/lib/postfinancecheckout-ruby-sdk/service/token_versions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/tokens_service.rb +8 -8
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_comments_service.rb +8 -8
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_completions_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_invoices_service.rb +86 -8
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_voids_service.rb +3 -3
- data/lib/postfinancecheckout-ruby-sdk/service/transactions_service.rb +179 -37
- data/lib/postfinancecheckout-ruby-sdk/service/web_apps_service.rb +2 -2
- data/lib/postfinancecheckout-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
- data/lib/postfinancecheckout-ruby-sdk/service/webhook_listeners_service.rb +9 -9
- data/lib/postfinancecheckout-ruby-sdk/service/webhook_urls_service.rb +9 -9
- data/lib/postfinancecheckout-ruby-sdk/version.rb +1 -1
- data/lib/postfinancecheckout-ruby-sdk.rb +99 -25
- metadata +101 -27
- data/lib/postfinancecheckout-ruby-sdk/service/application_users_roles_service.rb +0 -478
- data/lib/postfinancecheckout-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
- data/lib/postfinancecheckout-ruby-sdk/service/express_checkout_service.rb +0 -269
- data/lib/postfinancecheckout-ruby-sdk/service/human_users_roles_service.rb +0 -478
- data/lib/postfinancecheckout-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
# PostFinance Ruby SDK
|
|
3
|
+
#
|
|
4
|
+
# This library allows to interact with the PostFinance payment service.
|
|
5
|
+
#
|
|
6
|
+
# Copyright owner: Wallee AG
|
|
7
|
+
# Website: https://www.postfinance.ch/en/private.html
|
|
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 PostfinancecheckoutRubySdk
|
|
26
|
+
class MembersService
|
|
27
|
+
attr_accessor :api_client
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def initialize(api_client = ApiClient.default)
|
|
31
|
+
@api_client = api_client
|
|
32
|
+
end
|
|
33
|
+
# List all members of the account
|
|
34
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<RestMember>]
|
|
37
|
+
def get_members_account(account, opts = {})
|
|
38
|
+
data, _status_code, _headers = get_members_account_with_http_info(account, opts)
|
|
39
|
+
data
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# List all members of the account
|
|
43
|
+
|
|
44
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
45
|
+
# @param [Hash] opts the optional parameters
|
|
46
|
+
# @return [Array<(Array<RestMember>, Integer, Hash)>] Array<RestMember> data, response status code and response headers
|
|
47
|
+
def get_members_account_with_http_info(account, opts = {})
|
|
48
|
+
if @api_client.config.debugging
|
|
49
|
+
@api_client.config.logger.debug 'Calling API: MembersService.get_members_account ...'
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'account' is set
|
|
52
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MembersService.get_members_account"
|
|
54
|
+
end
|
|
55
|
+
# resource path
|
|
56
|
+
local_var_path = '/members/account'
|
|
57
|
+
|
|
58
|
+
# query parameters
|
|
59
|
+
query_params = opts[:query_params] || {}
|
|
60
|
+
|
|
61
|
+
# header parameters
|
|
62
|
+
header_params = opts[:header_params] || {}
|
|
63
|
+
# HTTP header 'Accept' (if needed)
|
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
65
|
+
header_params[:'account'] = account
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = opts[:form_params] || {}
|
|
69
|
+
|
|
70
|
+
# connection timeout
|
|
71
|
+
connection_timeout = @api_client.config.timeout
|
|
72
|
+
|
|
73
|
+
# http body (model)
|
|
74
|
+
post_body = opts[:debug_body]
|
|
75
|
+
|
|
76
|
+
# return_type
|
|
77
|
+
return_type = opts[:debug_return_type] || 'Array<RestMember>'
|
|
78
|
+
|
|
79
|
+
new_options = opts.merge(
|
|
80
|
+
:operation => :"MembersService.get_members_account",
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:return_type => return_type
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
89
|
+
if @api_client.config.debugging
|
|
90
|
+
@api_client.config.logger.debug "API called: MembersService#get_members_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
91
|
+
end
|
|
92
|
+
return data, status_code, headers
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
# List all members of the scope
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [Array<RestMember>]
|
|
99
|
+
def get_members_scope(opts = {})
|
|
100
|
+
data, _status_code, _headers = get_members_scope_with_http_info(opts)
|
|
101
|
+
data
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# List all members of the scope
|
|
105
|
+
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [Array<(Array<RestMember>, Integer, Hash)>] Array<RestMember> data, response status code and response headers
|
|
108
|
+
def get_members_scope_with_http_info(opts = {})
|
|
109
|
+
if @api_client.config.debugging
|
|
110
|
+
@api_client.config.logger.debug 'Calling API: MembersService.get_members_scope ...'
|
|
111
|
+
end
|
|
112
|
+
# resource path
|
|
113
|
+
local_var_path = '/members/scope'
|
|
114
|
+
|
|
115
|
+
# query parameters
|
|
116
|
+
query_params = opts[:query_params] || {}
|
|
117
|
+
|
|
118
|
+
# header parameters
|
|
119
|
+
header_params = opts[:header_params] || {}
|
|
120
|
+
# HTTP header 'Accept' (if needed)
|
|
121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
122
|
+
|
|
123
|
+
# form parameters
|
|
124
|
+
form_params = opts[:form_params] || {}
|
|
125
|
+
|
|
126
|
+
# connection timeout
|
|
127
|
+
connection_timeout = @api_client.config.timeout
|
|
128
|
+
|
|
129
|
+
# http body (model)
|
|
130
|
+
post_body = opts[:debug_body]
|
|
131
|
+
|
|
132
|
+
# return_type
|
|
133
|
+
return_type = opts[:debug_return_type] || 'Array<RestMember>'
|
|
134
|
+
|
|
135
|
+
new_options = opts.merge(
|
|
136
|
+
:operation => :"MembersService.get_members_scope",
|
|
137
|
+
:header_params => header_params,
|
|
138
|
+
:query_params => query_params,
|
|
139
|
+
:form_params => form_params,
|
|
140
|
+
:body => post_body,
|
|
141
|
+
:return_type => return_type
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
145
|
+
if @api_client.config.debugging
|
|
146
|
+
@api_client.config.logger.debug "API called: MembersService#get_members_scope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
147
|
+
end
|
|
148
|
+
return data, status_code, headers
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
# List all members of the space
|
|
153
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
154
|
+
# @param [Hash] opts the optional parameters
|
|
155
|
+
# @return [Array<RestMember>]
|
|
156
|
+
def get_members_space(space, opts = {})
|
|
157
|
+
data, _status_code, _headers = get_members_space_with_http_info(space, opts)
|
|
158
|
+
data
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# List all members of the space
|
|
162
|
+
|
|
163
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
164
|
+
# @param [Hash] opts the optional parameters
|
|
165
|
+
# @return [Array<(Array<RestMember>, Integer, Hash)>] Array<RestMember> data, response status code and response headers
|
|
166
|
+
def get_members_space_with_http_info(space, opts = {})
|
|
167
|
+
if @api_client.config.debugging
|
|
168
|
+
@api_client.config.logger.debug 'Calling API: MembersService.get_members_space ...'
|
|
169
|
+
end
|
|
170
|
+
# verify the required parameter 'space' is set
|
|
171
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
172
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling MembersService.get_members_space"
|
|
173
|
+
end
|
|
174
|
+
# resource path
|
|
175
|
+
local_var_path = '/members/space'
|
|
176
|
+
|
|
177
|
+
# query parameters
|
|
178
|
+
query_params = opts[:query_params] || {}
|
|
179
|
+
|
|
180
|
+
# header parameters
|
|
181
|
+
header_params = opts[:header_params] || {}
|
|
182
|
+
# HTTP header 'Accept' (if needed)
|
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
184
|
+
header_params[:'space'] = space
|
|
185
|
+
|
|
186
|
+
# form parameters
|
|
187
|
+
form_params = opts[:form_params] || {}
|
|
188
|
+
|
|
189
|
+
# connection timeout
|
|
190
|
+
connection_timeout = @api_client.config.timeout
|
|
191
|
+
|
|
192
|
+
# http body (model)
|
|
193
|
+
post_body = opts[:debug_body]
|
|
194
|
+
|
|
195
|
+
# return_type
|
|
196
|
+
return_type = opts[:debug_return_type] || 'Array<RestMember>'
|
|
197
|
+
|
|
198
|
+
new_options = opts.merge(
|
|
199
|
+
:operation => :"MembersService.get_members_space",
|
|
200
|
+
:header_params => header_params,
|
|
201
|
+
:query_params => query_params,
|
|
202
|
+
:form_params => form_params,
|
|
203
|
+
:body => post_body,
|
|
204
|
+
:return_type => return_type
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
208
|
+
if @api_client.config.debugging
|
|
209
|
+
@api_client.config.logger.debug "API called: MembersService#get_members_space\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
210
|
+
end
|
|
211
|
+
return data, status_code, headers
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
end
|
|
215
|
+
end
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
# PostFinance Ruby SDK
|
|
3
|
+
#
|
|
4
|
+
# This library allows to interact with the PostFinance payment service.
|
|
5
|
+
#
|
|
6
|
+
# Copyright owner: Wallee AG
|
|
7
|
+
# Website: https://www.postfinance.ch/en/private.html
|
|
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 PostfinancecheckoutRubySdk
|
|
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 status
|
|
34
|
+
# @param id [Integer]
|
|
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 [MerchantApplicationStatusDto]
|
|
39
|
+
def get_onboarding_merchant_applications_id_status(id, account, opts = {})
|
|
40
|
+
data, _status_code, _headers = get_onboarding_merchant_applications_id_status_with_http_info(id, account, opts)
|
|
41
|
+
data
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Retrieve a merchant application status
|
|
45
|
+
|
|
46
|
+
# @param id [Integer]
|
|
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<(MerchantApplicationStatusDto, Integer, Hash)>] MerchantApplicationStatusDto data, response status code and response headers
|
|
51
|
+
def get_onboarding_merchant_applications_id_status_with_http_info(id, account, opts = {})
|
|
52
|
+
if @api_client.config.debugging
|
|
53
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.get_onboarding_merchant_applications_id_status ...'
|
|
54
|
+
end
|
|
55
|
+
# verify the required parameter 'id' is set
|
|
56
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantApplicationsService.get_onboarding_merchant_applications_id_status"
|
|
58
|
+
end
|
|
59
|
+
# verify the required parameter 'account' is set
|
|
60
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
61
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.get_onboarding_merchant_applications_id_status"
|
|
62
|
+
end
|
|
63
|
+
# resource path
|
|
64
|
+
local_var_path = '/onboarding/merchant-applications/{id}/status'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
65
|
+
|
|
66
|
+
# query parameters
|
|
67
|
+
query_params = opts[:query_params] || {}
|
|
68
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
69
|
+
|
|
70
|
+
# header parameters
|
|
71
|
+
header_params = opts[:header_params] || {}
|
|
72
|
+
# HTTP header 'Accept' (if needed)
|
|
73
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
74
|
+
header_params[:'account'] = account
|
|
75
|
+
|
|
76
|
+
# form parameters
|
|
77
|
+
form_params = opts[:form_params] || {}
|
|
78
|
+
|
|
79
|
+
# connection timeout
|
|
80
|
+
connection_timeout = @api_client.config.timeout
|
|
81
|
+
|
|
82
|
+
# http body (model)
|
|
83
|
+
post_body = opts[:debug_body]
|
|
84
|
+
|
|
85
|
+
# return_type
|
|
86
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationStatusDto'
|
|
87
|
+
|
|
88
|
+
new_options = opts.merge(
|
|
89
|
+
:operation => :"MerchantApplicationsService.get_onboarding_merchant_applications_id_status",
|
|
90
|
+
:header_params => header_params,
|
|
91
|
+
:query_params => query_params,
|
|
92
|
+
:form_params => form_params,
|
|
93
|
+
:body => post_body,
|
|
94
|
+
:return_type => return_type
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
98
|
+
if @api_client.config.debugging
|
|
99
|
+
@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}"
|
|
100
|
+
end
|
|
101
|
+
return data, status_code, headers
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# Return merchant application submission URL
|
|
106
|
+
# Returns the URL where the merchant can review the application and complete the submission.
|
|
107
|
+
# @param id [Integer]
|
|
108
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
109
|
+
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @return [String]
|
|
111
|
+
def get_onboarding_merchant_applications_id_submission_url(id, account, opts = {})
|
|
112
|
+
data, _status_code, _headers = get_onboarding_merchant_applications_id_submission_url_with_http_info(id, account, opts)
|
|
113
|
+
data
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Return merchant application submission URL
|
|
117
|
+
# Returns the URL where the merchant can review the application and complete the submission.
|
|
118
|
+
|
|
119
|
+
# @param id [Integer]
|
|
120
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
121
|
+
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
123
|
+
def get_onboarding_merchant_applications_id_submission_url_with_http_info(id, account, opts = {})
|
|
124
|
+
if @api_client.config.debugging
|
|
125
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.get_onboarding_merchant_applications_id_submission_url ...'
|
|
126
|
+
end
|
|
127
|
+
# verify the required parameter 'id' is set
|
|
128
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
129
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantApplicationsService.get_onboarding_merchant_applications_id_submission_url"
|
|
130
|
+
end
|
|
131
|
+
# verify the required parameter 'account' is set
|
|
132
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
133
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.get_onboarding_merchant_applications_id_submission_url"
|
|
134
|
+
end
|
|
135
|
+
# resource path
|
|
136
|
+
local_var_path = '/onboarding/merchant-applications/{id}/submission-url'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
137
|
+
|
|
138
|
+
# query parameters
|
|
139
|
+
query_params = opts[:query_params] || {}
|
|
140
|
+
|
|
141
|
+
# header parameters
|
|
142
|
+
header_params = opts[:header_params] || {}
|
|
143
|
+
# HTTP header 'Accept' (if needed)
|
|
144
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json']) unless header_params['Accept']
|
|
145
|
+
header_params[:'account'] = account
|
|
146
|
+
|
|
147
|
+
# form parameters
|
|
148
|
+
form_params = opts[:form_params] || {}
|
|
149
|
+
|
|
150
|
+
# connection timeout
|
|
151
|
+
connection_timeout = @api_client.config.timeout
|
|
152
|
+
|
|
153
|
+
# http body (model)
|
|
154
|
+
post_body = opts[:debug_body]
|
|
155
|
+
|
|
156
|
+
# return_type
|
|
157
|
+
return_type = opts[:debug_return_type] || 'String'
|
|
158
|
+
|
|
159
|
+
new_options = opts.merge(
|
|
160
|
+
:operation => :"MerchantApplicationsService.get_onboarding_merchant_applications_id_submission_url",
|
|
161
|
+
:header_params => header_params,
|
|
162
|
+
:query_params => query_params,
|
|
163
|
+
:form_params => form_params,
|
|
164
|
+
:body => post_body,
|
|
165
|
+
:return_type => return_type
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
169
|
+
if @api_client.config.debugging
|
|
170
|
+
@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}"
|
|
171
|
+
end
|
|
172
|
+
return data, status_code, headers
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
# Update a merchant application
|
|
177
|
+
# @param id [Integer]
|
|
178
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
179
|
+
# @param merchant_application_data_dto [MerchantApplicationDataDto]
|
|
180
|
+
# @param [Hash] opts the optional parameters
|
|
181
|
+
# @option opts [Array<String>] :expand
|
|
182
|
+
# @return [MerchantApplicationDataDto]
|
|
183
|
+
def patch_onboarding_merchant_applications_id(id, account, merchant_application_data_dto, opts = {})
|
|
184
|
+
data, _status_code, _headers = patch_onboarding_merchant_applications_id_with_http_info(id, account, merchant_application_data_dto, opts)
|
|
185
|
+
data
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Update a merchant application
|
|
189
|
+
|
|
190
|
+
# @param id [Integer]
|
|
191
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
192
|
+
# @param merchant_application_data_dto [MerchantApplicationDataDto]
|
|
193
|
+
# @param [Hash] opts the optional parameters
|
|
194
|
+
# @option opts [Array<String>] :expand
|
|
195
|
+
# @return [Array<(MerchantApplicationDataDto, Integer, Hash)>] MerchantApplicationDataDto data, response status code and response headers
|
|
196
|
+
def patch_onboarding_merchant_applications_id_with_http_info(id, account, merchant_application_data_dto, opts = {})
|
|
197
|
+
if @api_client.config.debugging
|
|
198
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.patch_onboarding_merchant_applications_id ...'
|
|
199
|
+
end
|
|
200
|
+
# verify the required parameter 'id' is set
|
|
201
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
202
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantApplicationsService.patch_onboarding_merchant_applications_id"
|
|
203
|
+
end
|
|
204
|
+
# verify the required parameter 'account' is set
|
|
205
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
206
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.patch_onboarding_merchant_applications_id"
|
|
207
|
+
end
|
|
208
|
+
# verify the required parameter 'merchant_application_data_dto' is set
|
|
209
|
+
if @api_client.config.client_side_validation && merchant_application_data_dto.nil?
|
|
210
|
+
fail ArgumentError, "Missing the required parameter 'merchant_application_data_dto' when calling MerchantApplicationsService.patch_onboarding_merchant_applications_id"
|
|
211
|
+
end
|
|
212
|
+
# resource path
|
|
213
|
+
local_var_path = '/onboarding/merchant-applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
214
|
+
|
|
215
|
+
# query parameters
|
|
216
|
+
query_params = opts[:query_params] || {}
|
|
217
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
218
|
+
|
|
219
|
+
# header parameters
|
|
220
|
+
header_params = opts[:header_params] || {}
|
|
221
|
+
# HTTP header 'Accept' (if needed)
|
|
222
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
223
|
+
# HTTP header 'Content-Type'
|
|
224
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
225
|
+
if !content_type.nil?
|
|
226
|
+
header_params['Content-Type'] = content_type
|
|
227
|
+
end
|
|
228
|
+
header_params[:'account'] = account
|
|
229
|
+
|
|
230
|
+
# form parameters
|
|
231
|
+
form_params = opts[:form_params] || {}
|
|
232
|
+
|
|
233
|
+
# connection timeout
|
|
234
|
+
connection_timeout = @api_client.config.timeout
|
|
235
|
+
|
|
236
|
+
# http body (model)
|
|
237
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(merchant_application_data_dto)
|
|
238
|
+
|
|
239
|
+
# return_type
|
|
240
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationDataDto'
|
|
241
|
+
|
|
242
|
+
new_options = opts.merge(
|
|
243
|
+
:operation => :"MerchantApplicationsService.patch_onboarding_merchant_applications_id",
|
|
244
|
+
:header_params => header_params,
|
|
245
|
+
:query_params => query_params,
|
|
246
|
+
:form_params => form_params,
|
|
247
|
+
:body => post_body,
|
|
248
|
+
:return_type => return_type
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
data, status_code, headers = @api_client.call_api(:PATCH.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
252
|
+
if @api_client.config.debugging
|
|
253
|
+
@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}"
|
|
254
|
+
end
|
|
255
|
+
return data, status_code, headers
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
# Create a merchant application
|
|
260
|
+
# 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
|
|
261
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
262
|
+
# @param [Hash] opts the optional parameters
|
|
263
|
+
# @option opts [Array<String>] :expand
|
|
264
|
+
# @option opts [MerchantApplicationDataDto] :merchant_application_data_dto
|
|
265
|
+
# @return [MerchantApplicationDataDto]
|
|
266
|
+
def post_onboarding_merchant_applications(account, opts = {})
|
|
267
|
+
data, _status_code, _headers = post_onboarding_merchant_applications_with_http_info(account, opts)
|
|
268
|
+
data
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Create a merchant application
|
|
272
|
+
# 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
|
|
273
|
+
|
|
274
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
275
|
+
# @param [Hash] opts the optional parameters
|
|
276
|
+
# @option opts [Array<String>] :expand
|
|
277
|
+
# @option opts [MerchantApplicationDataDto] :merchant_application_data_dto
|
|
278
|
+
# @return [Array<(MerchantApplicationDataDto, Integer, Hash)>] MerchantApplicationDataDto data, response status code and response headers
|
|
279
|
+
def post_onboarding_merchant_applications_with_http_info(account, opts = {})
|
|
280
|
+
if @api_client.config.debugging
|
|
281
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.post_onboarding_merchant_applications ...'
|
|
282
|
+
end
|
|
283
|
+
# verify the required parameter 'account' is set
|
|
284
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
285
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.post_onboarding_merchant_applications"
|
|
286
|
+
end
|
|
287
|
+
# resource path
|
|
288
|
+
local_var_path = '/onboarding/merchant-applications'
|
|
289
|
+
|
|
290
|
+
# query parameters
|
|
291
|
+
query_params = opts[:query_params] || {}
|
|
292
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
293
|
+
|
|
294
|
+
# header parameters
|
|
295
|
+
header_params = opts[:header_params] || {}
|
|
296
|
+
# HTTP header 'Accept' (if needed)
|
|
297
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
298
|
+
# HTTP header 'Content-Type'
|
|
299
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
300
|
+
if !content_type.nil?
|
|
301
|
+
header_params['Content-Type'] = content_type
|
|
302
|
+
end
|
|
303
|
+
header_params[:'account'] = account
|
|
304
|
+
|
|
305
|
+
# form parameters
|
|
306
|
+
form_params = opts[:form_params] || {}
|
|
307
|
+
|
|
308
|
+
# connection timeout
|
|
309
|
+
connection_timeout = @api_client.config.timeout
|
|
310
|
+
|
|
311
|
+
# http body (model)
|
|
312
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'merchant_application_data_dto'])
|
|
313
|
+
|
|
314
|
+
# return_type
|
|
315
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationDataDto'
|
|
316
|
+
|
|
317
|
+
new_options = opts.merge(
|
|
318
|
+
:operation => :"MerchantApplicationsService.post_onboarding_merchant_applications",
|
|
319
|
+
:header_params => header_params,
|
|
320
|
+
:query_params => query_params,
|
|
321
|
+
:form_params => form_params,
|
|
322
|
+
:body => post_body,
|
|
323
|
+
:return_type => return_type
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
327
|
+
if @api_client.config.debugging
|
|
328
|
+
@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}"
|
|
329
|
+
end
|
|
330
|
+
return data, status_code, headers
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
end
|
|
334
|
+
end
|
|
@@ -70,7 +70,7 @@ module PostfinancecheckoutRubySdk
|
|
|
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 PostfinancecheckoutRubySdk
|
|
|
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] || {}
|
|
@@ -236,7 +236,7 @@ module PostfinancecheckoutRubySdk
|
|
|
236
236
|
header_params = opts[:header_params] || {}
|
|
237
237
|
# HTTP header 'Accept' (if needed)
|
|
238
238
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
239
|
-
header_params[:'
|
|
239
|
+
header_params[:'space'] = space
|
|
240
240
|
|
|
241
241
|
# form parameters
|
|
242
242
|
form_params = opts[:form_params] || {}
|
|
@@ -326,7 +326,7 @@ module PostfinancecheckoutRubySdk
|
|
|
326
326
|
header_params = opts[:header_params] || {}
|
|
327
327
|
# HTTP header 'Accept' (if needed)
|
|
328
328
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
329
|
-
header_params[:'
|
|
329
|
+
header_params[:'space'] = space
|
|
330
330
|
|
|
331
331
|
# form parameters
|
|
332
332
|
form_params = opts[:form_params] || {}
|
|
@@ -409,7 +409,7 @@ module PostfinancecheckoutRubySdk
|
|
|
409
409
|
if !content_type.nil?
|
|
410
410
|
header_params['Content-Type'] = content_type
|
|
411
411
|
end
|
|
412
|
-
header_params[:'
|
|
412
|
+
header_params[:'space'] = space
|
|
413
413
|
|
|
414
414
|
# form parameters
|
|
415
415
|
form_params = opts[:form_params] || {}
|
|
@@ -486,7 +486,7 @@ module PostfinancecheckoutRubySdk
|
|
|
486
486
|
if !content_type.nil?
|
|
487
487
|
header_params['Content-Type'] = content_type
|
|
488
488
|
end
|
|
489
|
-
header_params[:'
|
|
489
|
+
header_params[:'space'] = space
|
|
490
490
|
|
|
491
491
|
# form parameters
|
|
492
492
|
form_params = opts[:form_params] || {}
|
|
@@ -70,7 +70,7 @@ module PostfinancecheckoutRubySdk
|
|
|
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 PostfinancecheckoutRubySdk
|
|
|
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] || {}
|
|
@@ -236,7 +236,7 @@ module PostfinancecheckoutRubySdk
|
|
|
236
236
|
header_params = opts[:header_params] || {}
|
|
237
237
|
# HTTP header 'Accept' (if needed)
|
|
238
238
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
239
|
-
header_params[:'
|
|
239
|
+
header_params[:'space'] = space
|
|
240
240
|
|
|
241
241
|
# form parameters
|
|
242
242
|
form_params = opts[:form_params] || {}
|
|
@@ -326,7 +326,7 @@ module PostfinancecheckoutRubySdk
|
|
|
326
326
|
header_params = opts[:header_params] || {}
|
|
327
327
|
# HTTP header 'Accept' (if needed)
|
|
328
328
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
329
|
-
header_params[:'
|
|
329
|
+
header_params[:'space'] = space
|
|
330
330
|
|
|
331
331
|
# form parameters
|
|
332
332
|
form_params = opts[:form_params] || {}
|
|
@@ -409,7 +409,7 @@ module PostfinancecheckoutRubySdk
|
|
|
409
409
|
if !content_type.nil?
|
|
410
410
|
header_params['Content-Type'] = content_type
|
|
411
411
|
end
|
|
412
|
-
header_params[:'
|
|
412
|
+
header_params[:'space'] = space
|
|
413
413
|
|
|
414
414
|
# form parameters
|
|
415
415
|
form_params = opts[:form_params] || {}
|
|
@@ -486,7 +486,7 @@ module PostfinancecheckoutRubySdk
|
|
|
486
486
|
if !content_type.nil?
|
|
487
487
|
header_params['Content-Type'] = content_type
|
|
488
488
|
end
|
|
489
|
-
header_params[:'
|
|
489
|
+
header_params[:'space'] = space
|
|
490
490
|
|
|
491
491
|
# form parameters
|
|
492
492
|
form_params = opts[:form_params] || {}
|