mx-platform-ruby 0.44.0 → 0.44.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -1
- data/lib/mx-platform-ruby/api/budgets_api.rb +6 -6
- data/lib/mx-platform-ruby/api/goals_api.rb +6 -6
- data/lib/mx-platform-ruby/api/insights_api.rb +10 -10
- data/lib/mx-platform-ruby/api/microdeposits_api.rb +5 -5
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +97 -97
- data/lib/mx-platform-ruby/api/spending_plan_api.rb +12 -12
- data/lib/mx-platform-ruby/api/transactions_api.rb +2 -2
- data/lib/mx-platform-ruby/api_client.rb +50 -41
- data/lib/mx-platform-ruby/api_error.rb +1 -1
- data/lib/mx-platform-ruby/configuration.rb +12 -1
- data/lib/mx-platform-ruby/models/account_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/account_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/account_number_response.rb +2 -2
- data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/account_owner_response.rb +2 -2
- data/lib/mx-platform-ruby/models/account_owners_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/account_response.rb +2 -2
- data/lib/mx-platform-ruby/models/account_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/account_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/account_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/accounts_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/authorization_code_request.rb +2 -2
- data/lib/mx-platform-ruby/models/authorization_code_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/authorization_code_response.rb +2 -2
- data/lib/mx-platform-ruby/models/authorization_code_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_response.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/categories_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/category_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/category_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/category_response.rb +2 -2
- data/lib/mx-platform-ruby/models/category_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/category_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/category_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/challenge_response.rb +2 -2
- data/lib/mx-platform-ruby/models/challenges_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/connect_widget_request.rb +2 -2
- data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -2
- data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/credential_request.rb +2 -2
- data/lib/mx-platform-ruby/models/credential_response.rb +2 -2
- data/lib/mx-platform-ruby/models/credentials_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/credit_card_product.rb +2 -2
- data/lib/mx-platform-ruby/models/credit_card_product_response.rb +2 -2
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +2 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +2 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/goal_request.rb +2 -2
- data/lib/mx-platform-ruby/models/goal_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/goal_response.rb +2 -2
- data/lib/mx-platform-ruby/models/goal_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/goals_response.rb +2 -2
- data/lib/mx-platform-ruby/models/goals_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/holding_response.rb +2 -2
- data/lib/mx-platform-ruby/models/holding_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/holdings_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/image_option_response.rb +2 -2
- data/lib/mx-platform-ruby/models/insight_response.rb +2 -2
- data/lib/mx-platform-ruby/models/insight_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/insight_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/insights_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/institution_response.rb +2 -2
- data/lib/mx-platform-ruby/models/institution_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/institutions_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_account_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_account_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_member_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_member_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/member_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_response.rb +2 -2
- data/lib/mx-platform-ruby/models/member_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_resume_request.rb +2 -2
- data/lib/mx-platform-ruby/models/member_resume_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_status_response.rb +2 -2
- data/lib/mx-platform-ruby/models/member_status_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/member_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/members_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +2 -2
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/merchant_response.rb +2 -2
- data/lib/mx-platform-ruby/models/merchant_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/merchants_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/microdeposit_request.rb +2 -2
- data/lib/mx-platform-ruby/models/microdeposit_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/microdeposit_response.rb +2 -2
- data/lib/mx-platform-ruby/models/microdeposit_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/microdeposit_verify_request.rb +2 -2
- data/lib/mx-platform-ruby/models/microdeposit_verify_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/microdeposits_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request.rb +2 -2
- data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/monthly_cash_flow_response.rb +2 -2
- data/lib/mx-platform-ruby/models/monthly_cash_flow_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -2
- data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/option_response.rb +2 -2
- data/lib/mx-platform-ruby/models/pagination_response.rb +2 -2
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request.rb +2 -2
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response.rb +2 -2
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/reposition_request.rb +2 -2
- data/lib/mx-platform-ruby/models/reposition_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/reposition_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/reward_response.rb +2 -2
- data/lib/mx-platform-ruby/models/reward_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/rewards_response.rb +2 -2
- data/lib/mx-platform-ruby/models/rewards_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/scheduled_payment_response.rb +2 -2
- data/lib/mx-platform-ruby/models/scheduled_payments_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_account_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_accounts_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iteration_item_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iteration_item_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iteration_items_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iteration_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iterations_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plans_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/split_transaction_request.rb +2 -2
- data/lib/mx-platform-ruby/models/split_transaction_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/split_transactions_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/statement_response.rb +2 -2
- data/lib/mx-platform-ruby/models/statement_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/statements_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_response.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_response.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/taggings_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tags_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tax_document_response.rb +2 -2
- data/lib/mx-platform-ruby/models/tax_document_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tax_documents_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_create_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_response.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_response.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transactions_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/update_goal_request.rb +2 -2
- data/lib/mx-platform-ruby/models/update_goal_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/user_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/user_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/user_response.rb +2 -2
- data/lib/mx-platform-ruby/models/user_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/user_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/user_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/users_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/widget_request.rb +2 -2
- data/lib/mx-platform-ruby/models/widget_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/widget_response.rb +2 -2
- data/lib/mx-platform-ruby/models/widget_response_body.rb +2 -2
- data/lib/mx-platform-ruby/version.rb +2 -2
- data/lib/mx-platform-ruby.rb +1 -1
- data/mx-platform-ruby.gemspec +3 -1
- data/openapi/config.yml +1 -1
- data/openapitools.json +1 -1
- data/spec/api/budgets_api_spec.rb +1 -1
- data/spec/api/goals_api_spec.rb +1 -1
- data/spec/api/insights_api_spec.rb +1 -1
- data/spec/api/microdeposits_api_spec.rb +1 -1
- data/spec/api/mx_platform_api_spec.rb +1 -1
- data/spec/api/spending_plan_api_spec.rb +1 -1
- data/spec/api/transactions_api_spec.rb +1 -1
- data/spec/models/account_create_request_body_spec.rb +4 -2
- data/spec/models/account_create_request_spec.rb +4 -2
- data/spec/models/account_number_response_spec.rb +4 -2
- data/spec/models/account_numbers_response_body_spec.rb +4 -2
- data/spec/models/account_owner_response_spec.rb +4 -2
- data/spec/models/account_owners_response_body_spec.rb +4 -2
- data/spec/models/account_response_body_spec.rb +4 -2
- data/spec/models/account_response_spec.rb +4 -2
- data/spec/models/account_update_request_body_spec.rb +4 -2
- data/spec/models/account_update_request_spec.rb +4 -2
- data/spec/models/accounts_response_body_spec.rb +4 -2
- data/spec/models/authorization_code_request_body_spec.rb +4 -2
- data/spec/models/authorization_code_request_spec.rb +4 -2
- data/spec/models/authorization_code_response_body_spec.rb +4 -2
- data/spec/models/authorization_code_response_spec.rb +4 -2
- data/spec/models/budget_create_request_body_spec.rb +4 -2
- data/spec/models/budget_create_request_spec.rb +4 -2
- data/spec/models/budget_response_body_spec.rb +4 -2
- data/spec/models/budget_response_spec.rb +4 -2
- data/spec/models/budget_update_request_body_spec.rb +4 -2
- data/spec/models/budget_update_request_spec.rb +4 -2
- data/spec/models/categories_response_body_spec.rb +4 -2
- data/spec/models/category_create_request_body_spec.rb +4 -2
- data/spec/models/category_create_request_spec.rb +4 -2
- data/spec/models/category_response_body_spec.rb +4 -2
- data/spec/models/category_response_spec.rb +4 -2
- data/spec/models/category_update_request_body_spec.rb +4 -2
- data/spec/models/category_update_request_spec.rb +4 -2
- data/spec/models/challenge_response_spec.rb +4 -2
- data/spec/models/challenges_response_body_spec.rb +4 -2
- data/spec/models/connect_widget_request_body_spec.rb +4 -2
- data/spec/models/connect_widget_request_spec.rb +4 -2
- data/spec/models/connect_widget_response_body_spec.rb +4 -2
- data/spec/models/connect_widget_response_spec.rb +4 -2
- data/spec/models/credential_request_spec.rb +4 -2
- data/spec/models/credential_response_spec.rb +4 -2
- data/spec/models/credentials_response_body_spec.rb +4 -2
- data/spec/models/credit_card_product_response_spec.rb +4 -2
- data/spec/models/credit_card_product_spec.rb +4 -2
- data/spec/models/enhance_transaction_response_spec.rb +4 -2
- data/spec/models/enhance_transactions_request_body_spec.rb +4 -2
- data/spec/models/enhance_transactions_request_spec.rb +4 -2
- data/spec/models/enhance_transactions_response_body_spec.rb +4 -2
- data/spec/models/goal_request_body_spec.rb +4 -2
- data/spec/models/goal_request_spec.rb +4 -2
- data/spec/models/goal_response_body_spec.rb +4 -2
- data/spec/models/goal_response_spec.rb +4 -2
- data/spec/models/goals_response_body_spec.rb +4 -2
- data/spec/models/goals_response_spec.rb +4 -2
- data/spec/models/holding_response_body_spec.rb +4 -2
- data/spec/models/holding_response_spec.rb +4 -2
- data/spec/models/holdings_response_body_spec.rb +4 -2
- data/spec/models/image_option_response_spec.rb +4 -2
- data/spec/models/insight_response_body_spec.rb +4 -2
- data/spec/models/insight_response_spec.rb +4 -2
- data/spec/models/insight_update_request_spec.rb +4 -2
- data/spec/models/insights_response_body_spec.rb +4 -2
- data/spec/models/institution_response_body_spec.rb +4 -2
- data/spec/models/institution_response_spec.rb +4 -2
- data/spec/models/institutions_response_body_spec.rb +4 -2
- data/spec/models/managed_account_create_request_body_spec.rb +4 -2
- data/spec/models/managed_account_create_request_spec.rb +4 -2
- data/spec/models/managed_account_update_request_body_spec.rb +4 -2
- data/spec/models/managed_account_update_request_spec.rb +4 -2
- data/spec/models/managed_member_create_request_body_spec.rb +4 -2
- data/spec/models/managed_member_create_request_spec.rb +4 -2
- data/spec/models/managed_member_update_request_body_spec.rb +4 -2
- data/spec/models/managed_member_update_request_spec.rb +4 -2
- data/spec/models/managed_transaction_create_request_body_spec.rb +4 -2
- data/spec/models/managed_transaction_create_request_spec.rb +4 -2
- data/spec/models/managed_transaction_update_request_body_spec.rb +4 -2
- data/spec/models/managed_transaction_update_request_spec.rb +4 -2
- data/spec/models/member_create_request_body_spec.rb +4 -2
- data/spec/models/member_create_request_spec.rb +4 -2
- data/spec/models/member_response_body_spec.rb +4 -2
- data/spec/models/member_response_spec.rb +4 -2
- data/spec/models/member_resume_request_body_spec.rb +4 -2
- data/spec/models/member_resume_request_spec.rb +4 -2
- data/spec/models/member_status_response_body_spec.rb +4 -2
- data/spec/models/member_status_response_spec.rb +4 -2
- data/spec/models/member_update_request_body_spec.rb +4 -2
- data/spec/models/member_update_request_spec.rb +4 -2
- data/spec/models/members_response_body_spec.rb +4 -2
- data/spec/models/merchant_location_response_body_spec.rb +4 -2
- data/spec/models/merchant_location_response_spec.rb +4 -2
- data/spec/models/merchant_response_body_spec.rb +4 -2
- data/spec/models/merchant_response_spec.rb +4 -2
- data/spec/models/merchants_response_body_spec.rb +4 -2
- data/spec/models/microdeposit_request_body_spec.rb +4 -2
- data/spec/models/microdeposit_request_spec.rb +4 -2
- data/spec/models/microdeposit_response_body_spec.rb +4 -2
- data/spec/models/microdeposit_response_spec.rb +4 -2
- data/spec/models/microdeposit_verify_request_body_spec.rb +4 -2
- data/spec/models/microdeposit_verify_request_spec.rb +4 -2
- data/spec/models/microdeposits_response_body_spec.rb +4 -2
- data/spec/models/monthly_cash_flow_profile_request_body_spec.rb +4 -2
- data/spec/models/monthly_cash_flow_profile_request_spec.rb +4 -2
- data/spec/models/monthly_cash_flow_response_body_spec.rb +4 -2
- data/spec/models/monthly_cash_flow_response_spec.rb +4 -2
- data/spec/models/o_auth_window_response_body_spec.rb +4 -2
- data/spec/models/o_auth_window_response_spec.rb +4 -2
- data/spec/models/option_response_spec.rb +4 -2
- data/spec/models/pagination_response_spec.rb +4 -2
- data/spec/models/payment_processor_authorization_code_request_body_spec.rb +4 -2
- data/spec/models/payment_processor_authorization_code_request_spec.rb +4 -2
- data/spec/models/payment_processor_authorization_code_response_body_spec.rb +4 -2
- data/spec/models/payment_processor_authorization_code_response_spec.rb +4 -2
- data/spec/models/reposition_request_body_spec.rb +4 -2
- data/spec/models/reposition_request_spec.rb +4 -2
- data/spec/models/reposition_response_body_spec.rb +4 -2
- data/spec/models/reward_response_body_spec.rb +4 -2
- data/spec/models/reward_response_spec.rb +4 -2
- data/spec/models/rewards_response_body_spec.rb +4 -2
- data/spec/models/rewards_response_spec.rb +4 -2
- data/spec/models/scheduled_payment_response_spec.rb +4 -2
- data/spec/models/scheduled_payments_response_body_spec.rb +4 -2
- data/spec/models/spending_plan_account_response_spec.rb +4 -2
- data/spec/models/spending_plan_accounts_response_spec.rb +4 -2
- data/spec/models/spending_plan_iteration_item_create_request_body_spec.rb +4 -2
- data/spec/models/spending_plan_iteration_item_response_spec.rb +4 -2
- data/spec/models/spending_plan_iteration_items_response_body_spec.rb +4 -2
- data/spec/models/spending_plan_iteration_response_spec.rb +4 -2
- data/spec/models/spending_plan_iterations_response_spec.rb +4 -2
- data/spec/models/spending_plan_response_spec.rb +4 -2
- data/spec/models/spending_plans_response_body_spec.rb +4 -2
- data/spec/models/split_transaction_request_body_spec.rb +4 -2
- data/spec/models/split_transaction_request_spec.rb +4 -2
- data/spec/models/split_transactions_response_body_spec.rb +4 -2
- data/spec/models/statement_response_body_spec.rb +4 -2
- data/spec/models/statement_response_spec.rb +4 -2
- data/spec/models/statements_response_body_spec.rb +4 -2
- data/spec/models/tag_create_request_body_spec.rb +4 -2
- data/spec/models/tag_create_request_spec.rb +4 -2
- data/spec/models/tag_response_body_spec.rb +4 -2
- data/spec/models/tag_response_spec.rb +4 -2
- data/spec/models/tag_update_request_body_spec.rb +4 -2
- data/spec/models/tag_update_request_spec.rb +4 -2
- data/spec/models/tagging_create_request_body_spec.rb +4 -2
- data/spec/models/tagging_create_request_spec.rb +4 -2
- data/spec/models/tagging_response_body_spec.rb +4 -2
- data/spec/models/tagging_response_spec.rb +4 -2
- data/spec/models/tagging_update_request_body_spec.rb +4 -2
- data/spec/models/tagging_update_request_spec.rb +4 -2
- data/spec/models/taggings_response_body_spec.rb +4 -2
- data/spec/models/tags_response_body_spec.rb +4 -2
- data/spec/models/tax_document_response_body_spec.rb +4 -2
- data/spec/models/tax_document_response_spec.rb +4 -2
- data/spec/models/tax_documents_response_body_spec.rb +4 -2
- data/spec/models/transaction_create_request_body_spec.rb +4 -2
- data/spec/models/transaction_create_request_spec.rb +4 -2
- data/spec/models/transaction_create_response_body_spec.rb +4 -2
- data/spec/models/transaction_response_body_spec.rb +4 -2
- data/spec/models/transaction_response_spec.rb +4 -2
- data/spec/models/transaction_rule_create_request_body_spec.rb +4 -2
- data/spec/models/transaction_rule_create_request_spec.rb +4 -2
- data/spec/models/transaction_rule_response_body_spec.rb +4 -2
- data/spec/models/transaction_rule_response_spec.rb +4 -2
- data/spec/models/transaction_rule_update_request_body_spec.rb +4 -2
- data/spec/models/transaction_rule_update_request_spec.rb +4 -2
- data/spec/models/transaction_rules_response_body_spec.rb +4 -2
- data/spec/models/transaction_update_request_body_spec.rb +4 -2
- data/spec/models/transaction_update_request_spec.rb +4 -2
- data/spec/models/transactions_response_body_spec.rb +4 -2
- data/spec/models/update_goal_request_body_spec.rb +4 -2
- data/spec/models/update_goal_request_spec.rb +4 -2
- data/spec/models/user_create_request_body_spec.rb +4 -2
- data/spec/models/user_create_request_spec.rb +4 -2
- data/spec/models/user_response_body_spec.rb +4 -2
- data/spec/models/user_response_spec.rb +4 -2
- data/spec/models/user_update_request_body_spec.rb +4 -2
- data/spec/models/user_update_request_spec.rb +4 -2
- data/spec/models/users_response_body_spec.rb +4 -2
- data/spec/models/widget_request_body_spec.rb +4 -2
- data/spec/models/widget_request_spec.rb +4 -2
- data/spec/models/widget_response_body_spec.rb +4 -2
- data/spec/models/widget_response_spec.rb +4 -2
- data/spec/spec_helper.rb +1 -1
- metadata +173 -163
- data/spec/api_client_spec.rb +0 -223
- data/spec/configuration_spec.rb +0 -82
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,7 +51,7 @@ module MxPlatformRuby
|
|
51
51
|
# header parameters
|
52
52
|
header_params = opts[:header_params] || {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = opts[:form_params] || {}
|
@@ -126,7 +126,7 @@ module MxPlatformRuby
|
|
126
126
|
# header parameters
|
127
127
|
header_params = opts[:header_params] || {}
|
128
128
|
# HTTP header 'Accept' (if needed)
|
129
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
130
130
|
# HTTP header 'Content-Type'
|
131
131
|
content_type = @api_client.select_header_content_type(['application/json'])
|
132
132
|
if !content_type.nil?
|
@@ -419,7 +419,7 @@ module MxPlatformRuby
|
|
419
419
|
# header parameters
|
420
420
|
header_params = opts[:header_params] || {}
|
421
421
|
# HTTP header 'Accept' (if needed)
|
422
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
422
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
423
423
|
|
424
424
|
# form parameters
|
425
425
|
form_params = opts[:form_params] || {}
|
@@ -494,7 +494,7 @@ module MxPlatformRuby
|
|
494
494
|
# header parameters
|
495
495
|
header_params = opts[:header_params] || {}
|
496
496
|
# HTTP header 'Accept' (if needed)
|
497
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
497
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
498
498
|
|
499
499
|
# form parameters
|
500
500
|
form_params = opts[:form_params] || {}
|
@@ -569,7 +569,7 @@ module MxPlatformRuby
|
|
569
569
|
# header parameters
|
570
570
|
header_params = opts[:header_params] || {}
|
571
571
|
# HTTP header 'Accept' (if needed)
|
572
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
573
573
|
|
574
574
|
# form parameters
|
575
575
|
form_params = opts[:form_params] || {}
|
@@ -638,7 +638,7 @@ module MxPlatformRuby
|
|
638
638
|
# header parameters
|
639
639
|
header_params = opts[:header_params] || {}
|
640
640
|
# HTTP header 'Accept' (if needed)
|
641
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
641
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
642
642
|
|
643
643
|
# form parameters
|
644
644
|
form_params = opts[:form_params] || {}
|
@@ -719,7 +719,7 @@ module MxPlatformRuby
|
|
719
719
|
# header parameters
|
720
720
|
header_params = opts[:header_params] || {}
|
721
721
|
# HTTP header 'Accept' (if needed)
|
722
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
722
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
723
723
|
|
724
724
|
# form parameters
|
725
725
|
form_params = opts[:form_params] || {}
|
@@ -800,7 +800,7 @@ module MxPlatformRuby
|
|
800
800
|
# header parameters
|
801
801
|
header_params = opts[:header_params] || {}
|
802
802
|
# HTTP header 'Accept' (if needed)
|
803
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
803
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
804
804
|
|
805
805
|
# form parameters
|
806
806
|
form_params = opts[:form_params] || {}
|
@@ -881,7 +881,7 @@ module MxPlatformRuby
|
|
881
881
|
# header parameters
|
882
882
|
header_params = opts[:header_params] || {}
|
883
883
|
# HTTP header 'Accept' (if needed)
|
884
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
884
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
885
885
|
|
886
886
|
# form parameters
|
887
887
|
form_params = opts[:form_params] || {}
|
@@ -956,7 +956,7 @@ module MxPlatformRuby
|
|
956
956
|
# header parameters
|
957
957
|
header_params = opts[:header_params] || {}
|
958
958
|
# HTTP header 'Accept' (if needed)
|
959
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
959
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
960
960
|
|
961
961
|
# form parameters
|
962
962
|
form_params = opts[:form_params] || {}
|
@@ -1037,7 +1037,7 @@ module MxPlatformRuby
|
|
1037
1037
|
# header parameters
|
1038
1038
|
header_params = opts[:header_params] || {}
|
1039
1039
|
# HTTP header 'Accept' (if needed)
|
1040
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
1040
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
1041
1041
|
# HTTP header 'Content-Type'
|
1042
1042
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1043
1043
|
if !content_type.nil?
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -63,7 +63,7 @@ module MxPlatformRuby
|
|
63
63
|
# header parameters
|
64
64
|
header_params = opts[:header_params] || {}
|
65
65
|
# HTTP header 'Accept' (if needed)
|
66
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
66
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
67
67
|
# HTTP header 'Content-Type'
|
68
68
|
content_type = @api_client.select_header_content_type(['application/json'])
|
69
69
|
if !content_type.nil?
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,6 +17,8 @@ require 'tempfile'
|
|
17
17
|
require 'time'
|
18
18
|
require 'faraday'
|
19
19
|
require 'faraday/multipart' if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new('2.0')
|
20
|
+
require 'marcel'
|
21
|
+
|
20
22
|
|
21
23
|
module MxPlatformRuby
|
22
24
|
class ApiClient
|
@@ -48,9 +50,11 @@ module MxPlatformRuby
|
|
48
50
|
# @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
|
49
51
|
# the data deserialized from response body (could be nil), response status code and response headers.
|
50
52
|
def call_api(http_method, path, opts = {})
|
53
|
+
stream = nil
|
51
54
|
begin
|
52
55
|
response = connection(opts).public_send(http_method.to_sym.downcase) do |req|
|
53
|
-
build_request(http_method, path, req, opts)
|
56
|
+
request = build_request(http_method, path, req, opts)
|
57
|
+
stream = download_file(request) if opts[:return_type] == 'File' || opts[:return_type] == 'Binary'
|
54
58
|
end
|
55
59
|
|
56
60
|
if config.debugging
|
@@ -75,7 +79,9 @@ module MxPlatformRuby
|
|
75
79
|
fail ApiError.new('Connection failed')
|
76
80
|
end
|
77
81
|
|
78
|
-
if opts[:return_type]
|
82
|
+
if opts[:return_type] == 'File' || opts[:return_type] == 'Binary'
|
83
|
+
data = deserialize_file(response, stream)
|
84
|
+
elsif opts[:return_type]
|
79
85
|
data = deserialize(response, opts[:return_type])
|
80
86
|
else
|
81
87
|
data = nil
|
@@ -117,7 +123,6 @@ module MxPlatformRuby
|
|
117
123
|
|
118
124
|
request.url url
|
119
125
|
request.params = query_params
|
120
|
-
download_file(request) if opts[:return_type] == 'File' || opts[:return_type] == 'Binary'
|
121
126
|
request
|
122
127
|
end
|
123
128
|
|
@@ -136,8 +141,7 @@ module MxPlatformRuby
|
|
136
141
|
form_params.each do |key, value|
|
137
142
|
case value
|
138
143
|
when ::File, ::Tempfile
|
139
|
-
|
140
|
-
data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
|
144
|
+
data[key] = Faraday::FilePart.new(value.path, Marcel::MimeType.for(Pathname.new(value.path)))
|
141
145
|
when ::Array, nil
|
142
146
|
# let Faraday handle Array and nil parameters
|
143
147
|
data[key] = value
|
@@ -154,12 +158,47 @@ module MxPlatformRuby
|
|
154
158
|
end
|
155
159
|
|
156
160
|
def download_file(request)
|
157
|
-
|
161
|
+
stream = []
|
158
162
|
|
159
163
|
# handle streaming Responses
|
160
164
|
request.options.on_data = Proc.new do |chunk, overall_received_bytes|
|
161
|
-
|
165
|
+
stream << chunk
|
166
|
+
end
|
167
|
+
|
168
|
+
stream
|
169
|
+
end
|
170
|
+
|
171
|
+
def deserialize_file(response, stream)
|
172
|
+
body = response.body
|
173
|
+
encoding = body.encoding
|
174
|
+
|
175
|
+
# reconstruct content
|
176
|
+
content = stream.join
|
177
|
+
content = content.unpack('m').join if response.headers['Content-Transfer-Encoding'] == 'binary'
|
178
|
+
content = content.force_encoding(encoding)
|
179
|
+
|
180
|
+
# return byte stream
|
181
|
+
return content if @config.return_binary_data == true
|
182
|
+
|
183
|
+
# return file instead of binary data
|
184
|
+
content_disposition = response.headers['Content-Disposition']
|
185
|
+
if content_disposition && content_disposition =~ /filename=/i
|
186
|
+
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
187
|
+
prefix = sanitize_filename(filename)
|
188
|
+
else
|
189
|
+
prefix = 'download-'
|
162
190
|
end
|
191
|
+
prefix = prefix + '-' unless prefix.end_with?('-')
|
192
|
+
|
193
|
+
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
194
|
+
tempfile.write(content)
|
195
|
+
tempfile.close
|
196
|
+
|
197
|
+
config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
198
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
199
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
200
|
+
"explicitly with `tempfile.delete`"
|
201
|
+
tempfile
|
163
202
|
end
|
164
203
|
|
165
204
|
def connection(opts)
|
@@ -216,7 +255,7 @@ module MxPlatformRuby
|
|
216
255
|
# @param [String] mime MIME
|
217
256
|
# @return [Boolean] True if the MIME is application/json
|
218
257
|
def json_mime?(mime)
|
219
|
-
(mime == '*/*') || !(mime =~
|
258
|
+
(mime == '*/*') || !(mime =~ /^Application\/.*json(?!p)(;.*)?/i).nil?
|
220
259
|
end
|
221
260
|
|
222
261
|
# Deserialize the response to the given return type.
|
@@ -225,40 +264,10 @@ module MxPlatformRuby
|
|
225
264
|
# @param [String] return_type some examples: "User", "Array<User>", "Hash<String, Integer>"
|
226
265
|
def deserialize(response, return_type)
|
227
266
|
body = response.body
|
228
|
-
|
229
|
-
# handle file downloading - return the File instance processed in request callbacks
|
230
|
-
# note that response body is empty when the file is written in chunks in request on_body callback
|
231
|
-
if return_type == 'File'
|
232
|
-
if @config.return_binary_data == true
|
233
|
-
# return byte stream
|
234
|
-
encoding = body.encoding
|
235
|
-
return @stream.join.force_encoding(encoding)
|
236
|
-
else
|
237
|
-
# return file instead of binary data
|
238
|
-
content_disposition = response.headers['Content-Disposition']
|
239
|
-
if content_disposition && content_disposition =~ /filename=/i
|
240
|
-
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
241
|
-
prefix = sanitize_filename(filename)
|
242
|
-
else
|
243
|
-
prefix = 'download-'
|
244
|
-
end
|
245
|
-
prefix = prefix + '-' unless prefix.end_with?('-')
|
246
|
-
encoding = body.encoding
|
247
|
-
@tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
248
|
-
@tempfile.write(@stream.join.force_encoding(encoding))
|
249
|
-
@tempfile.close
|
250
|
-
@config.logger.info "Temp file written to #{@tempfile.path}, please copy the file to a proper folder "\
|
251
|
-
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
252
|
-
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
253
|
-
"explicitly with `tempfile.delete`"
|
254
|
-
return @tempfile
|
255
|
-
end
|
256
|
-
end
|
257
|
-
|
258
267
|
return nil if body.nil? || body.empty?
|
259
268
|
|
260
269
|
# return response body directly for String return type
|
261
|
-
return body if return_type == 'String'
|
270
|
+
return body.to_s if return_type == 'String'
|
262
271
|
|
263
272
|
# ensuring a default content type
|
264
273
|
content_type = response.headers['Content-Type'] || 'application/json'
|
@@ -325,7 +334,7 @@ module MxPlatformRuby
|
|
325
334
|
# @param [String] filename the filename to be sanitized
|
326
335
|
# @return [String] the sanitized filename
|
327
336
|
def sanitize_filename(filename)
|
328
|
-
filename.
|
337
|
+
filename.split(/[\/\\]/).last
|
329
338
|
end
|
330
339
|
|
331
340
|
def build_request_url(path, opts = {})
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -79,6 +79,14 @@ module MxPlatformRuby
|
|
79
79
|
# @return [true, false]
|
80
80
|
attr_accessor :debugging
|
81
81
|
|
82
|
+
# Set this to ignore operation servers for the API client. This is useful when you need to
|
83
|
+
# send requests to a different server than the one specified in the OpenAPI document.
|
84
|
+
# Will default to the base url defined in the spec but can be overridden by setting
|
85
|
+
# `scheme`, `host`, `base_path` directly.
|
86
|
+
# Default to false.
|
87
|
+
# @return [true, false]
|
88
|
+
attr_accessor :ignore_operation_servers
|
89
|
+
|
82
90
|
# Defines the logger used for debugging.
|
83
91
|
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
84
92
|
#
|
@@ -170,6 +178,7 @@ module MxPlatformRuby
|
|
170
178
|
@return_binary_data = false
|
171
179
|
@params_encoder = nil
|
172
180
|
@debugging = false
|
181
|
+
@ignore_operation_servers = false
|
173
182
|
@inject_format = false
|
174
183
|
@force_ending_format = false
|
175
184
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
@@ -204,6 +213,7 @@ module MxPlatformRuby
|
|
204
213
|
|
205
214
|
# Returns base URL for specified operation based on server settings
|
206
215
|
def base_url(operation = nil)
|
216
|
+
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
|
207
217
|
if operation_server_settings.key?(operation) then
|
208
218
|
index = server_operation_index.fetch(operation, server_index)
|
209
219
|
server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
@@ -381,5 +391,6 @@ module MxPlatformRuby
|
|
381
391
|
end
|
382
392
|
end
|
383
393
|
end
|
394
|
+
|
384
395
|
end
|
385
396
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -353,7 +353,7 @@ module MxPlatformRuby
|
|
353
353
|
else # model
|
354
354
|
# models (e.g. Pet) or oneOf
|
355
355
|
klass = MxPlatformRuby.const_get(type)
|
356
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
356
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
357
357
|
end
|
358
358
|
end
|
359
359
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -159,7 +159,7 @@ module MxPlatformRuby
|
|
159
159
|
else # model
|
160
160
|
# models (e.g. Pet) or oneOf
|
161
161
|
klass = MxPlatformRuby.const_get(type)
|
162
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
162
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -270,7 +270,7 @@ module MxPlatformRuby
|
|
270
270
|
else # model
|
271
271
|
# models (e.g. Pet) or oneOf
|
272
272
|
klass = MxPlatformRuby.const_get(type)
|
273
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
273
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
274
274
|
end
|
275
275
|
end
|
276
276
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -170,7 +170,7 @@ module MxPlatformRuby
|
|
170
170
|
else # model
|
171
171
|
# models (e.g. Pet) or oneOf
|
172
172
|
klass = MxPlatformRuby.const_get(type)
|
173
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
173
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -290,7 +290,7 @@ module MxPlatformRuby
|
|
290
290
|
else # model
|
291
291
|
# models (e.g. Pet) or oneOf
|
292
292
|
klass = MxPlatformRuby.const_get(type)
|
293
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
293
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
294
294
|
end
|
295
295
|
end
|
296
296
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -170,7 +170,7 @@ module MxPlatformRuby
|
|
170
170
|
else # model
|
171
171
|
# models (e.g. Pet) or oneOf
|
172
172
|
klass = MxPlatformRuby.const_get(type)
|
173
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
173
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -729,7 +729,7 @@ module MxPlatformRuby
|
|
729
729
|
else # model
|
730
730
|
# models (e.g. Pet) or oneOf
|
731
731
|
klass = MxPlatformRuby.const_get(type)
|
732
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
732
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
733
733
|
end
|
734
734
|
end
|
735
735
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -159,7 +159,7 @@ module MxPlatformRuby
|
|
159
159
|
else # model
|
160
160
|
# models (e.g. Pet) or oneOf
|
161
161
|
klass = MxPlatformRuby.const_get(type)
|
162
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
162
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -339,7 +339,7 @@ module MxPlatformRuby
|
|
339
339
|
else # model
|
340
340
|
# models (e.g. Pet) or oneOf
|
341
341
|
klass = MxPlatformRuby.const_get(type)
|
342
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
342
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
343
343
|
end
|
344
344
|
end
|
345
345
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -159,7 +159,7 @@ module MxPlatformRuby
|
|
159
159
|
else # model
|
160
160
|
# models (e.g. Pet) or oneOf
|
161
161
|
klass = MxPlatformRuby.const_get(type)
|
162
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
162
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -170,7 +170,7 @@ module MxPlatformRuby
|
|
170
170
|
else # model
|
171
171
|
# models (e.g. Pet) or oneOf
|
172
172
|
klass = MxPlatformRuby.const_get(type)
|
173
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
173
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -160,7 +160,7 @@ module MxPlatformRuby
|
|
160
160
|
else # model
|
161
161
|
# models (e.g. Pet) or oneOf
|
162
162
|
klass = MxPlatformRuby.const_get(type)
|
163
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -159,7 +159,7 @@ module MxPlatformRuby
|
|
159
159
|
else # model
|
160
160
|
# models (e.g. Pet) or oneOf
|
161
161
|
klass = MxPlatformRuby.const_get(type)
|
162
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
162
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -160,7 +160,7 @@ module MxPlatformRuby
|
|
160
160
|
else # model
|
161
161
|
# models (e.g. Pet) or oneOf
|
162
162
|
klass = MxPlatformRuby.const_get(type)
|
163
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -161,7 +161,7 @@ module MxPlatformRuby
|
|
161
161
|
else # model
|
162
162
|
# models (e.g. Pet) or oneOf
|
163
163
|
klass = MxPlatformRuby.const_get(type)
|
164
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
165
165
|
end
|
166
166
|
end
|
167
167
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -214,7 +214,7 @@ module MxPlatformRuby
|
|
214
214
|
else # model
|
215
215
|
# models (e.g. Pet) or oneOf
|
216
216
|
klass = MxPlatformRuby.const_get(type)
|
217
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
217
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
218
|
end
|
219
219
|
end
|
220
220
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -159,7 +159,7 @@ module MxPlatformRuby
|
|
159
159
|
else # model
|
160
160
|
# models (e.g. Pet) or oneOf
|
161
161
|
klass = MxPlatformRuby.const_get(type)
|
162
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
162
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|