mx-platform-ruby 1.10.0 → 1.10.1
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 +1 -1
- data/docs/ACHResponse.md +74 -0
- data/docs/ACHReturnCreateRequest.md +48 -0
- data/docs/ACHReturnCreateRequestBody.md +18 -0
- data/docs/ACHReturnResponseBody.md +18 -0
- data/docs/{HoldingsResponseBody.md → ACHReturnsResponseBody.md} +4 -4
- data/docs/AccountCreateRequest.md +9 -9
- data/docs/AccountNumberResponse.md +3 -3
- data/docs/AccountResponse.md +37 -37
- data/docs/AccountUpdateRequest.md +30 -30
- data/docs/AccountsApi.md +780 -0
- data/docs/AchReturnApi.md +234 -0
- data/docs/AuthorizationCodeResponseBody.md +1 -1
- data/docs/BudgetResponse.md +1 -1
- data/docs/BudgetsApi.md +115 -115
- data/docs/CategoriesApi.md +600 -0
- data/docs/CategoryCreateRequest.md +1 -1
- data/docs/CategoryResponse.md +1 -1
- data/docs/ConnectWidgetRequest.md +5 -3
- data/docs/CreditCardProduct.md +1 -1
- data/docs/GoalResponse.md +1 -1
- data/docs/GoalsApi.md +117 -113
- data/docs/GoalsResponse.md +1 -1
- data/docs/ImageOptionResponse.md +0 -2
- data/docs/InsightResponse.md +3 -1
- data/docs/InsightResponseBody.md +1 -1
- data/docs/InsightUpdateRequestBody.md +18 -0
- data/docs/InsightsApi.md +170 -91
- data/docs/InstitutionResponse.md +15 -7
- data/docs/InstitutionsApi.md +319 -0
- data/docs/InvestmentHoldingResponse.md +90 -0
- data/docs/InvestmentHoldingResponseBody.md +18 -0
- data/docs/InvestmentHoldingsApi.md +386 -0
- data/docs/InvestmentHoldingsDeactivation.md +20 -0
- data/docs/InvestmentHoldingsResponseBody.md +20 -0
- data/docs/ManagedAccountCreateRequest.md +15 -15
- data/docs/ManagedAccountUpdateRequest.md +14 -14
- data/docs/ManagedDataApi.md +1228 -0
- data/docs/ManagedTransactionCreateRequest.md +1 -1
- data/docs/MemberCreateRequest.md +5 -3
- data/docs/MemberCreateRequestBody.md +3 -3
- data/docs/MemberElements.md +22 -0
- data/docs/MemberResponse.md +1 -3
- data/docs/MemberStatusResponse.md +2 -2
- data/docs/MemberUpdateRequest.md +4 -2
- data/docs/MembersApi.md +997 -0
- data/docs/MerchantsApi.md +226 -0
- data/docs/{MicrodepositRequest.md → MicrodepositElements.md} +7 -7
- data/docs/MicrodepositRequestBody.md +1 -1
- data/docs/MicrodepositResponse.md +0 -14
- data/docs/MicrodepositResponseBody.md +1 -1
- data/docs/MicrodepositResponseBodyMicroDepositInner.md +44 -0
- data/docs/MicrodepositVerifyRequest.md +4 -4
- data/docs/MicrodepositsApi.md +153 -82
- data/docs/MonthlyCashFlowProfileApi.md +151 -0
- data/docs/MonthlyCashFlowResponse.md +3 -3
- data/docs/NotificationResponse.md +36 -0
- data/docs/NotificationResponseBody.md +18 -0
- data/docs/NotificationsApi.md +236 -0
- data/docs/NotificationsResponseBody.md +18 -0
- data/docs/OptionResponse.md +0 -2
- data/docs/PaymentAccount.md +34 -0
- data/docs/PaymentAccountBody.md +18 -0
- data/docs/PaymentAccountBodyPaymentAccount.md +40 -0
- data/docs/PaymentProcessorAuthorizationCodeRequest.md +3 -3
- data/docs/ProcessorAccountNumber.md +34 -0
- data/docs/ProcessorAccountNumberBody.md +18 -0
- data/docs/ProcessorAccountNumberBodyAccountNumbersInner.md +40 -0
- data/docs/ProcessorOwner.md +34 -0
- data/docs/ProcessorOwnerBody.md +20 -0
- data/docs/ProcessorOwnerBodyAccountOwnersInner.md +40 -0
- data/docs/ProcessorTokenApi.md +490 -0
- data/docs/RepeatingTransactionResponse.md +40 -0
- data/docs/RepeatingTransactionsResponseBody.md +18 -0
- data/docs/{RewardsResponse.md → RewardElements.md} +3 -9
- data/docs/RewardResponseBody.md +1 -1
- data/docs/RewardsApi.md +299 -0
- data/docs/RewardsResponseBody.md +1 -1
- data/docs/{RewardResponse.md → RewardsResponseBodyRewardsInner.md} +8 -8
- data/docs/ScheduledPaymentsResponseBody.md +3 -3
- data/docs/SpendingPlanApi.md +142 -63
- data/docs/SpendingPlanIterationItemResponse.md +5 -5
- data/docs/StatementsApi.md +309 -0
- data/docs/StatementsResponseBody.md +3 -3
- data/docs/TaggingsApi.md +377 -0
- data/docs/TaggingsResponseBody.md +3 -3
- data/docs/TagsApi.md +379 -0
- data/docs/TagsResponseBody.md +3 -3
- data/docs/TokenRequestBody.md +18 -0
- data/docs/TokenResponse.md +24 -0
- data/docs/TokenResponseBody.md +18 -0
- data/docs/TransactionIncludesResponse.md +112 -0
- data/docs/TransactionIncludesResponseAllOfClassification.md +20 -0
- data/docs/TransactionIncludesResponseAllOfGeolocation.md +24 -0
- data/docs/TransactionIncludesResponseAllOfMerchant.md +24 -0
- data/docs/TransactionIncludesResponseAllOfRepeatingTransaction.md +22 -0
- data/docs/TransactionResponse.md +38 -36
- data/docs/TransactionRulesApi.md +305 -0
- data/docs/TransactionRulesResponseBody.md +3 -3
- data/docs/TransactionUpdateRequest.md +7 -1
- data/docs/TransactionsApi.md +1232 -14
- data/docs/TransactionsResponseBody.md +3 -3
- data/docs/TransactionsResponseBodyIncludes.md +20 -0
- data/docs/UsersApi.md +375 -0
- data/docs/UsersResponseBody.md +3 -3
- data/docs/VCResponse.md +18 -0
- data/docs/VerifiableCredentialsApi.md +232 -0
- data/docs/WidgetRequest.md +31 -23
- data/docs/WidgetsApi.md +244 -0
- data/lib/mx-platform-ruby/api/accounts_api.rb +781 -0
- data/lib/mx-platform-ruby/api/ach_return_api.rb +231 -0
- data/lib/mx-platform-ruby/api/budgets_api.rb +131 -131
- data/lib/mx-platform-ruby/api/categories_api.rb +576 -0
- data/lib/mx-platform-ruby/api/goals_api.rb +148 -134
- data/lib/mx-platform-ruby/api/insights_api.rb +162 -87
- data/lib/mx-platform-ruby/api/institutions_api.rb +301 -0
- data/lib/mx-platform-ruby/api/investment_holdings_api.rb +373 -0
- data/lib/mx-platform-ruby/api/managed_data_api.rb +1265 -0
- data/lib/mx-platform-ruby/api/members_api.rb +977 -0
- data/lib/mx-platform-ruby/api/merchants_api.rb +214 -0
- data/lib/mx-platform-ruby/api/microdeposits_api.rb +159 -96
- data/lib/mx-platform-ruby/api/monthly_cash_flow_profile_api.rb +159 -0
- data/lib/mx-platform-ruby/api/notifications_api.rb +243 -0
- data/lib/mx-platform-ruby/api/processor_token_api.rb +450 -0
- data/lib/mx-platform-ruby/api/rewards_api.rb +298 -0
- data/lib/mx-platform-ruby/api/spending_plan_api.rb +139 -64
- data/lib/mx-platform-ruby/api/statements_api.rb +316 -0
- data/lib/mx-platform-ruby/api/taggings_api.rb +381 -0
- data/lib/mx-platform-ruby/api/tags_api.rb +388 -0
- data/lib/mx-platform-ruby/api/transaction_rules_api.rb +314 -0
- data/lib/mx-platform-ruby/api/transactions_api.rb +1237 -15
- data/lib/mx-platform-ruby/api/users_api.rb +367 -0
- data/lib/mx-platform-ruby/api/verifiable_credentials_api.rb +235 -0
- data/lib/mx-platform-ruby/api/widgets_api.rb +260 -0
- data/lib/mx-platform-ruby/api_client.rb +2 -2
- data/lib/mx-platform-ruby/api_error.rb +2 -2
- data/lib/mx-platform-ruby/configuration.rb +12 -5
- 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 +13 -13
- 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 +23 -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/ach_response.rb +485 -0
- data/lib/mx-platform-ruby/models/ach_return_create_request.rb +400 -0
- data/lib/mx-platform-ruby/models/ach_return_create_request_body.rb +214 -0
- data/lib/mx-platform-ruby/models/ach_return_response_body.rb +214 -0
- data/lib/mx-platform-ruby/models/{holdings_response_body.rb → ach_returns_response_body.rb} +13 -13
- 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 +4 -6
- 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 +9 -2
- data/lib/mx-platform-ruby/models/category_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/category_response.rb +3 -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 +13 -3
- 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 +4 -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/image_option_response.rb +3 -13
- data/lib/mx-platform-ruby/models/insight_response.rb +13 -3
- data/lib/mx-platform-ruby/models/insight_response_body.rb +4 -6
- data/lib/mx-platform-ruby/models/insight_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/{tax_document_response_body.rb → insight_update_request_body.rb} +12 -12
- data/lib/mx-platform-ruby/models/insights_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/institution_response.rb +35 -3
- 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/investment_holding_response.rb +575 -0
- data/lib/mx-platform-ruby/models/investment_holding_response_body.rb +214 -0
- data/lib/mx-platform-ruby/models/investment_holdings_deactivation.rb +225 -0
- data/lib/mx-platform-ruby/models/investment_holdings_response_body.rb +225 -0
- data/lib/mx-platform-ruby/models/managed_account_create_request.rb +9 -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 +9 -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 +40 -6
- data/lib/mx-platform-ruby/models/member_create_request_body.rb +3 -2
- data/lib/mx-platform-ruby/models/member_elements.rb +232 -0
- data/lib/mx-platform-ruby/models/member_response.rb +3 -13
- 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 +13 -13
- data/lib/mx-platform-ruby/models/member_status_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_update_request.rb +40 -6
- 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 → microdeposit_elements.rb} +29 -29
- data/lib/mx-platform-ruby/models/microdeposit_request_body.rb +3 -3
- data/lib/mx-platform-ruby/models/microdeposit_response.rb +5 -66
- data/lib/mx-platform-ruby/models/microdeposit_response_body.rb +6 -4
- data/lib/mx-platform-ruby/models/microdeposit_response_body_micro_deposit_inner.rb +362 -0
- data/lib/mx-platform-ruby/models/microdeposit_verify_request.rb +4 -4
- 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 +4 -3
- data/lib/mx-platform-ruby/models/monthly_cash_flow_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/notification_response.rb +305 -0
- data/lib/mx-platform-ruby/models/{tax_documents_response_body.rb → notification_response_body.rb} +12 -23
- data/lib/mx-platform-ruby/models/notifications_response_body.rb +216 -0
- 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 +3 -13
- data/lib/mx-platform-ruby/models/pagination_response.rb +2 -2
- data/lib/mx-platform-ruby/models/{tax_document_response.rb → payment_account.rb} +66 -76
- data/lib/mx-platform-ruby/models/payment_account_body.rb +214 -0
- data/lib/mx-platform-ruby/models/payment_account_body_payment_account.rb +330 -0
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request.rb +23 -5
- 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/processor_account_number.rb +292 -0
- data/lib/mx-platform-ruby/models/processor_account_number_body.rb +216 -0
- data/lib/mx-platform-ruby/models/processor_account_number_body_account_numbers_inner.rb +327 -0
- data/lib/mx-platform-ruby/models/processor_owner.rb +295 -0
- data/lib/mx-platform-ruby/models/processor_owner_body.rb +225 -0
- data/lib/mx-platform-ruby/models/processor_owner_body_account_owners_inner.rb +330 -0
- data/lib/mx-platform-ruby/models/{holding_response.rb → repeating_transaction_response.rb} +100 -135
- data/lib/mx-platform-ruby/models/repeating_transactions_response_body.rb +216 -0
- 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/{rewards_response.rb → reward_elements.rb} +9 -36
- data/lib/mx-platform-ruby/models/reward_response_body.rb +3 -3
- data/lib/mx-platform-ruby/models/rewards_response_body.rb +3 -3
- data/lib/mx-platform-ruby/models/{reward_response.rb → rewards_response_body_rewards_inner.rb} +35 -27
- data/lib/mx-platform-ruby/models/scheduled_payment_response.rb +2 -2
- data/lib/mx-platform-ruby/models/scheduled_payments_response_body.rb +15 -15
- 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 +15 -15
- 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 +15 -15
- data/lib/mx-platform-ruby/models/tags_response_body.rb +15 -15
- data/lib/mx-platform-ruby/models/{holding_response_body.rb → token_request_body.rb} +12 -12
- data/lib/mx-platform-ruby/models/token_response.rb +241 -0
- data/lib/mx-platform-ruby/models/token_response_body.rb +216 -0
- 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_includes_response.rb +692 -0
- data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_classification.rb +257 -0
- data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_geolocation.rb +241 -0
- data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_merchant.rb +241 -0
- data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_repeating_transaction.rb +278 -0
- data/lib/mx-platform-ruby/models/transaction_response.rb +13 -3
- 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 +15 -15
- data/lib/mx-platform-ruby/models/transaction_update_request.rb +30 -10
- data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transactions_response_body.rb +15 -15
- data/lib/mx-platform-ruby/models/transactions_response_body_includes.rb +225 -0
- 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 +15 -15
- data/lib/mx-platform-ruby/models/vc_response.rb +214 -0
- data/lib/mx-platform-ruby/models/widget_request.rb +89 -3
- 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 +3 -3
- data/lib/mx-platform-ruby.rb +60 -12
- data/mx-platform-ruby.gemspec +2 -2
- data/openapi/config.yml +1 -1
- data/spec/api/accounts_api_spec.rb +182 -0
- data/spec/api/ach_return_api_spec.rb +77 -0
- data/spec/api/budgets_api_spec.rb +38 -38
- data/spec/api/categories_api_spec.rb +141 -0
- data/spec/api/goals_api_spec.rb +42 -40
- data/spec/api/insights_api_spec.rb +53 -38
- data/spec/api/institutions_api_spec.rb +94 -0
- data/spec/api/investment_holdings_api_spec.rb +104 -0
- data/spec/api/managed_data_api_spec.rb +267 -0
- data/spec/api/members_api_spec.rb +218 -0
- data/spec/api/merchants_api_spec.rb +73 -0
- data/spec/api/microdeposits_api_spec.rb +40 -28
- data/spec/api/monthly_cash_flow_profile_api_spec.rb +60 -0
- data/spec/api/notifications_api_spec.rb +78 -0
- data/spec/api/processor_token_api_spec.rb +115 -0
- data/spec/api/rewards_api_spec.rb +87 -0
- data/spec/api/spending_plan_api_spec.rb +48 -33
- data/spec/api/statements_api_spec.rb +91 -0
- data/spec/api/taggings_api_spec.rb +102 -0
- data/spec/api/tags_api_spec.rb +103 -0
- data/spec/api/transaction_rules_api_spec.rb +89 -0
- data/spec/api/transactions_api_spec.rb +258 -6
- data/spec/api/users_api_spec.rb +101 -0
- data/spec/api/verifiable_credentials_api_spec.rb +76 -0
- data/spec/api/widgets_api_spec.rb +81 -0
- data/spec/models/account_create_request_body_spec.rb +2 -2
- data/spec/models/account_create_request_spec.rb +2 -2
- data/spec/models/account_number_response_spec.rb +5 -5
- data/spec/models/account_numbers_response_body_spec.rb +2 -2
- data/spec/models/account_owner_response_spec.rb +2 -2
- data/spec/models/account_owners_response_body_spec.rb +2 -2
- data/spec/models/account_response_body_spec.rb +2 -2
- data/spec/models/account_response_spec.rb +2 -2
- data/spec/models/account_update_request_body_spec.rb +2 -2
- data/spec/models/account_update_request_spec.rb +2 -2
- data/spec/models/accounts_response_body_spec.rb +2 -2
- data/spec/models/ach_response_spec.rb +204 -0
- data/spec/models/ach_return_create_request_body_spec.rb +36 -0
- data/spec/models/{holding_response_spec.rb → ach_return_create_request_spec.rb} +22 -40
- data/spec/models/ach_return_response_body_spec.rb +36 -0
- data/spec/models/{tax_documents_response_body_spec.rb → ach_returns_response_body_spec.rb} +10 -10
- data/spec/models/authorization_code_request_body_spec.rb +2 -2
- data/spec/models/authorization_code_request_spec.rb +2 -2
- data/spec/models/authorization_code_response_body_spec.rb +2 -2
- data/spec/models/authorization_code_response_spec.rb +2 -2
- data/spec/models/budget_create_request_body_spec.rb +2 -2
- data/spec/models/budget_create_request_spec.rb +2 -2
- data/spec/models/budget_response_body_spec.rb +2 -2
- data/spec/models/budget_response_spec.rb +2 -2
- data/spec/models/budget_update_request_body_spec.rb +2 -2
- data/spec/models/budget_update_request_spec.rb +2 -2
- data/spec/models/categories_response_body_spec.rb +2 -2
- data/spec/models/category_create_request_body_spec.rb +2 -2
- data/spec/models/category_create_request_spec.rb +2 -2
- data/spec/models/category_response_body_spec.rb +2 -2
- data/spec/models/category_response_spec.rb +2 -2
- data/spec/models/category_update_request_body_spec.rb +2 -2
- data/spec/models/category_update_request_spec.rb +2 -2
- data/spec/models/challenge_response_spec.rb +2 -2
- data/spec/models/challenges_response_body_spec.rb +2 -2
- data/spec/models/connect_widget_request_body_spec.rb +2 -2
- data/spec/models/connect_widget_request_spec.rb +8 -2
- data/spec/models/connect_widget_response_body_spec.rb +2 -2
- data/spec/models/connect_widget_response_spec.rb +2 -2
- data/spec/models/credential_request_spec.rb +2 -2
- data/spec/models/credential_response_spec.rb +2 -2
- data/spec/models/credentials_response_body_spec.rb +2 -2
- data/spec/models/credit_card_product_response_spec.rb +2 -2
- data/spec/models/credit_card_product_spec.rb +2 -2
- data/spec/models/enhance_transaction_response_spec.rb +2 -2
- data/spec/models/enhance_transactions_request_body_spec.rb +2 -2
- data/spec/models/enhance_transactions_request_spec.rb +2 -2
- data/spec/models/enhance_transactions_response_body_spec.rb +2 -2
- data/spec/models/goal_request_body_spec.rb +2 -2
- data/spec/models/goal_request_spec.rb +2 -2
- data/spec/models/goal_response_body_spec.rb +2 -2
- data/spec/models/goal_response_spec.rb +2 -2
- data/spec/models/goals_response_body_spec.rb +2 -2
- data/spec/models/goals_response_spec.rb +2 -2
- data/spec/models/image_option_response_spec.rb +2 -8
- data/spec/models/insight_response_body_spec.rb +2 -2
- data/spec/models/insight_response_spec.rb +8 -2
- data/spec/models/insight_update_request_body_spec.rb +36 -0
- data/spec/models/insight_update_request_spec.rb +2 -2
- data/spec/models/insights_response_body_spec.rb +2 -2
- data/spec/models/institution_response_body_spec.rb +2 -2
- data/spec/models/institution_response_spec.rb +20 -2
- data/spec/models/institutions_response_body_spec.rb +2 -2
- data/spec/models/investment_holding_response_body_spec.rb +36 -0
- data/spec/models/investment_holding_response_spec.rb +252 -0
- data/spec/models/investment_holdings_deactivation_spec.rb +42 -0
- data/spec/models/investment_holdings_response_body_spec.rb +42 -0
- data/spec/models/managed_account_create_request_body_spec.rb +2 -2
- data/spec/models/managed_account_create_request_spec.rb +2 -2
- data/spec/models/managed_account_update_request_body_spec.rb +2 -2
- data/spec/models/managed_account_update_request_spec.rb +2 -2
- data/spec/models/managed_member_create_request_body_spec.rb +2 -2
- data/spec/models/managed_member_create_request_spec.rb +2 -2
- data/spec/models/managed_member_update_request_body_spec.rb +2 -2
- data/spec/models/managed_member_update_request_spec.rb +2 -2
- data/spec/models/managed_transaction_create_request_body_spec.rb +2 -2
- data/spec/models/managed_transaction_create_request_spec.rb +2 -2
- data/spec/models/managed_transaction_update_request_body_spec.rb +2 -2
- data/spec/models/managed_transaction_update_request_spec.rb +2 -2
- data/spec/models/member_create_request_body_spec.rb +2 -2
- data/spec/models/member_create_request_spec.rb +12 -2
- data/spec/models/member_elements_spec.rb +48 -0
- data/spec/models/member_response_body_spec.rb +2 -2
- data/spec/models/member_response_spec.rb +2 -8
- data/spec/models/member_resume_request_body_spec.rb +2 -2
- data/spec/models/member_resume_request_spec.rb +2 -2
- data/spec/models/member_status_response_body_spec.rb +2 -2
- data/spec/models/member_status_response_spec.rb +4 -4
- data/spec/models/member_update_request_body_spec.rb +2 -2
- data/spec/models/member_update_request_spec.rb +12 -2
- data/spec/models/members_response_body_spec.rb +2 -2
- data/spec/models/merchant_location_response_body_spec.rb +2 -2
- data/spec/models/merchant_location_response_spec.rb +2 -2
- data/spec/models/merchant_response_body_spec.rb +2 -2
- data/spec/models/merchant_response_spec.rb +2 -2
- data/spec/models/merchants_response_body_spec.rb +2 -2
- data/spec/models/{microdeposit_request_spec.rb → microdeposit_elements_spec.rb} +15 -15
- data/spec/models/microdeposit_request_body_spec.rb +2 -2
- data/spec/models/microdeposit_response_body_micro_deposit_inner_spec.rb +114 -0
- data/spec/models/microdeposit_response_body_spec.rb +2 -2
- data/spec/models/microdeposit_response_spec.rb +2 -44
- data/spec/models/microdeposit_verify_request_body_spec.rb +2 -2
- data/spec/models/microdeposit_verify_request_spec.rb +2 -2
- data/spec/models/microdeposits_response_body_spec.rb +2 -2
- data/spec/models/monthly_cash_flow_profile_request_body_spec.rb +2 -2
- data/spec/models/monthly_cash_flow_profile_request_spec.rb +2 -2
- data/spec/models/monthly_cash_flow_response_body_spec.rb +2 -2
- data/spec/models/monthly_cash_flow_response_spec.rb +2 -2
- data/spec/models/notification_response_body_spec.rb +36 -0
- data/spec/models/{tax_document_response_spec.rb → notification_response_spec.rb} +18 -18
- data/spec/models/notifications_response_body_spec.rb +36 -0
- data/spec/models/o_auth_window_response_body_spec.rb +2 -2
- data/spec/models/o_auth_window_response_spec.rb +2 -2
- data/spec/models/option_response_spec.rb +2 -8
- data/spec/models/pagination_response_spec.rb +2 -2
- data/spec/models/{reward_response_spec.rb → payment_account_body_payment_account_spec.rb} +24 -18
- data/spec/models/payment_account_body_spec.rb +36 -0
- data/spec/models/payment_account_spec.rb +84 -0
- data/spec/models/payment_processor_authorization_code_request_body_spec.rb +2 -2
- data/spec/models/payment_processor_authorization_code_request_spec.rb +2 -2
- data/spec/models/payment_processor_authorization_code_response_body_spec.rb +2 -2
- data/spec/models/payment_processor_authorization_code_response_spec.rb +2 -2
- data/spec/models/processor_account_number_body_account_numbers_inner_spec.rb +102 -0
- data/spec/models/processor_account_number_body_spec.rb +36 -0
- data/spec/models/processor_account_number_spec.rb +84 -0
- data/spec/models/processor_owner_body_account_owners_inner_spec.rb +102 -0
- data/spec/models/{holdings_response_body_spec.rb → processor_owner_body_spec.rb} +9 -9
- data/spec/models/processor_owner_spec.rb +84 -0
- data/spec/models/repeating_transaction_response_spec.rb +110 -0
- data/spec/models/repeating_transactions_response_body_spec.rb +36 -0
- data/spec/models/reposition_request_body_spec.rb +2 -2
- data/spec/models/reposition_request_spec.rb +2 -2
- data/spec/models/reposition_response_body_spec.rb +2 -2
- data/spec/models/reward_elements_spec.rb +78 -0
- data/spec/models/reward_response_body_spec.rb +2 -2
- data/spec/models/{rewards_response_spec.rb → rewards_response_body_rewards_inner_spec.rb} +18 -18
- data/spec/models/rewards_response_body_spec.rb +2 -2
- data/spec/models/scheduled_payment_response_spec.rb +2 -2
- data/spec/models/scheduled_payments_response_body_spec.rb +4 -4
- data/spec/models/spending_plan_account_response_spec.rb +2 -2
- data/spec/models/spending_plan_accounts_response_spec.rb +2 -2
- data/spec/models/spending_plan_iteration_item_create_request_body_spec.rb +2 -2
- data/spec/models/spending_plan_iteration_item_response_spec.rb +2 -2
- data/spec/models/spending_plan_iteration_items_response_body_spec.rb +2 -2
- data/spec/models/spending_plan_iteration_response_spec.rb +2 -2
- data/spec/models/spending_plan_iterations_response_spec.rb +2 -2
- data/spec/models/spending_plan_response_spec.rb +2 -2
- data/spec/models/spending_plans_response_body_spec.rb +2 -2
- data/spec/models/split_transaction_request_body_spec.rb +2 -2
- data/spec/models/split_transaction_request_spec.rb +2 -2
- data/spec/models/split_transactions_response_body_spec.rb +2 -2
- data/spec/models/statement_response_body_spec.rb +2 -2
- data/spec/models/statement_response_spec.rb +2 -2
- data/spec/models/statements_response_body_spec.rb +4 -4
- data/spec/models/tag_create_request_body_spec.rb +2 -2
- data/spec/models/tag_create_request_spec.rb +2 -2
- data/spec/models/tag_response_body_spec.rb +2 -2
- data/spec/models/tag_response_spec.rb +2 -2
- data/spec/models/tag_update_request_body_spec.rb +2 -2
- data/spec/models/tag_update_request_spec.rb +2 -2
- data/spec/models/tagging_create_request_body_spec.rb +2 -2
- data/spec/models/tagging_create_request_spec.rb +2 -2
- data/spec/models/tagging_response_body_spec.rb +2 -2
- data/spec/models/tagging_response_spec.rb +2 -2
- data/spec/models/tagging_update_request_body_spec.rb +2 -2
- data/spec/models/tagging_update_request_spec.rb +2 -2
- data/spec/models/taggings_response_body_spec.rb +4 -4
- data/spec/models/tags_response_body_spec.rb +4 -4
- data/spec/models/{tax_document_response_body_spec.rb → token_request_body_spec.rb} +9 -9
- data/spec/models/token_response_body_spec.rb +36 -0
- data/spec/models/token_response_spec.rb +54 -0
- data/spec/models/transaction_create_request_body_spec.rb +2 -2
- data/spec/models/transaction_create_request_spec.rb +2 -2
- data/spec/models/transaction_create_response_body_spec.rb +2 -2
- data/spec/models/transaction_includes_response_all_of_classification_spec.rb +46 -0
- data/spec/models/transaction_includes_response_all_of_geolocation_spec.rb +54 -0
- data/spec/models/transaction_includes_response_all_of_merchant_spec.rb +54 -0
- data/spec/models/transaction_includes_response_all_of_repeating_transaction_spec.rb +56 -0
- data/spec/models/transaction_includes_response_spec.rb +318 -0
- data/spec/models/transaction_response_body_spec.rb +2 -2
- data/spec/models/transaction_response_spec.rb +8 -2
- data/spec/models/transaction_rule_create_request_body_spec.rb +2 -2
- data/spec/models/transaction_rule_create_request_spec.rb +2 -2
- data/spec/models/transaction_rule_response_body_spec.rb +2 -2
- data/spec/models/transaction_rule_response_spec.rb +2 -2
- data/spec/models/transaction_rule_update_request_body_spec.rb +2 -2
- data/spec/models/transaction_rule_update_request_spec.rb +2 -2
- data/spec/models/transaction_rules_response_body_spec.rb +4 -4
- data/spec/models/transaction_update_request_body_spec.rb +2 -2
- data/spec/models/transaction_update_request_spec.rb +20 -2
- data/spec/models/transactions_response_body_includes_spec.rb +42 -0
- data/spec/models/transactions_response_body_spec.rb +4 -4
- data/spec/models/update_goal_request_body_spec.rb +2 -2
- data/spec/models/update_goal_request_spec.rb +2 -2
- data/spec/models/user_create_request_body_spec.rb +2 -2
- data/spec/models/user_create_request_spec.rb +2 -2
- data/spec/models/user_response_body_spec.rb +2 -2
- data/spec/models/user_response_spec.rb +2 -2
- data/spec/models/user_update_request_body_spec.rb +2 -2
- data/spec/models/user_update_request_spec.rb +2 -2
- data/spec/models/users_response_body_spec.rb +4 -4
- data/spec/models/{holding_response_body_spec.rb → vc_response_spec.rb} +9 -9
- data/spec/models/widget_request_body_spec.rb +2 -2
- data/spec/models/widget_request_spec.rb +30 -2
- data/spec/models/widget_response_body_spec.rb +2 -2
- data/spec/models/widget_response_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +233 -41
- data/docs/HoldingResponse.md +0 -54
- data/docs/HoldingResponseBody.md +0 -18
- data/docs/MxPlatformApi.md +0 -8065
- data/docs/TaxDocumentResponse.md +0 -36
- data/docs/TaxDocumentResponseBody.md +0 -18
- data/docs/TaxDocumentsResponseBody.md +0 -20
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +0 -7795
- data/spec/api/mx_platform_api_spec.rb +0 -1519
|
@@ -0,0 +1,781 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#MX Platform API
|
|
3
|
+
|
|
4
|
+
#The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. Just getting started? See our [use case guides](/use-cases/).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 20111101
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.8.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module MxPlatformRuby
|
|
16
|
+
class AccountsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create manual account
|
|
23
|
+
# This endpoint can only be used to create manual accounts. Creating a manual account will automatically create it under the Manual Institution member. Since a manual account has no credentials tied to the member, the account will never aggregate or include data from a data feed..
|
|
24
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
25
|
+
# @param account_create_request_body [AccountCreateRequestBody] Manual account object to be created.
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [AccountResponseBody]
|
|
28
|
+
def create_manual_account(user_guid, account_create_request_body, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_manual_account_with_http_info(user_guid, account_create_request_body, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Create manual account
|
|
34
|
+
# This endpoint can only be used to create manual accounts. Creating a manual account will automatically create it under the Manual Institution member. Since a manual account has no credentials tied to the member, the account will never aggregate or include data from a data feed..
|
|
35
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
36
|
+
# @param account_create_request_body [AccountCreateRequestBody] Manual account object to be created.
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
|
39
|
+
def create_manual_account_with_http_info(user_guid, account_create_request_body, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.create_manual_account ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'user_guid' is set
|
|
44
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.create_manual_account"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'account_create_request_body' is set
|
|
48
|
+
if @api_client.config.client_side_validation && account_create_request_body.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'account_create_request_body' when calling AccountsApi.create_manual_account"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/users/{user_guid}/accounts'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = opts[:header_params] || {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
|
61
|
+
# HTTP header 'Content-Type'
|
|
62
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
63
|
+
if !content_type.nil?
|
|
64
|
+
header_params['Content-Type'] = content_type
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = opts[:form_params] || {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(account_create_request_body)
|
|
72
|
+
|
|
73
|
+
# return_type
|
|
74
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
|
75
|
+
|
|
76
|
+
# auth_names
|
|
77
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
78
|
+
|
|
79
|
+
new_options = opts.merge(
|
|
80
|
+
:operation => :"AccountsApi.create_manual_account",
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => return_type
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
90
|
+
if @api_client.config.debugging
|
|
91
|
+
@api_client.config.logger.debug "API called: AccountsApi#create_manual_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
92
|
+
end
|
|
93
|
+
return data, status_code, headers
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete manual account
|
|
97
|
+
# This endpoint deletes accounts that were manually created. The API will respond with an empty object and a status of `204 No Content`.
|
|
98
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
99
|
+
# @param accept [String] Specifies the media type expected in the response.
|
|
100
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @return [nil]
|
|
103
|
+
def delete_manual_account(account_guid, accept, user_guid, opts = {})
|
|
104
|
+
delete_manual_account_with_http_info(account_guid, accept, user_guid, opts)
|
|
105
|
+
nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Delete manual account
|
|
109
|
+
# This endpoint deletes accounts that were manually created. The API will respond with an empty object and a status of `204 No Content`.
|
|
110
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
111
|
+
# @param accept [String] Specifies the media type expected in the response.
|
|
112
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
113
|
+
# @param [Hash] opts the optional parameters
|
|
114
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
115
|
+
def delete_manual_account_with_http_info(account_guid, accept, user_guid, opts = {})
|
|
116
|
+
if @api_client.config.debugging
|
|
117
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.delete_manual_account ...'
|
|
118
|
+
end
|
|
119
|
+
# verify the required parameter 'account_guid' is set
|
|
120
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
|
121
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling AccountsApi.delete_manual_account"
|
|
122
|
+
end
|
|
123
|
+
# verify the required parameter 'accept' is set
|
|
124
|
+
if @api_client.config.client_side_validation && accept.nil?
|
|
125
|
+
fail ArgumentError, "Missing the required parameter 'accept' when calling AccountsApi.delete_manual_account"
|
|
126
|
+
end
|
|
127
|
+
# verify the required parameter 'user_guid' is set
|
|
128
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
129
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.delete_manual_account"
|
|
130
|
+
end
|
|
131
|
+
# resource path
|
|
132
|
+
local_var_path = '/users/{user_guid}/accounts/{account_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
133
|
+
|
|
134
|
+
# query parameters
|
|
135
|
+
query_params = opts[:query_params] || {}
|
|
136
|
+
|
|
137
|
+
# header parameters
|
|
138
|
+
header_params = opts[:header_params] || {}
|
|
139
|
+
header_params[:'Accept'] = accept
|
|
140
|
+
|
|
141
|
+
# form parameters
|
|
142
|
+
form_params = opts[:form_params] || {}
|
|
143
|
+
|
|
144
|
+
# http body (model)
|
|
145
|
+
post_body = opts[:debug_body]
|
|
146
|
+
|
|
147
|
+
# return_type
|
|
148
|
+
return_type = opts[:debug_return_type]
|
|
149
|
+
|
|
150
|
+
# auth_names
|
|
151
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
152
|
+
|
|
153
|
+
new_options = opts.merge(
|
|
154
|
+
:operation => :"AccountsApi.delete_manual_account",
|
|
155
|
+
:header_params => header_params,
|
|
156
|
+
:query_params => query_params,
|
|
157
|
+
:form_params => form_params,
|
|
158
|
+
:body => post_body,
|
|
159
|
+
:auth_names => auth_names,
|
|
160
|
+
:return_type => return_type
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
164
|
+
if @api_client.config.debugging
|
|
165
|
+
@api_client.config.logger.debug "API called: AccountsApi#delete_manual_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
166
|
+
end
|
|
167
|
+
return data, status_code, headers
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# List account numbers by account
|
|
171
|
+
# This endpoint returns a list of account numbers associated with the specified `account`.
|
|
172
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
173
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
174
|
+
# @param [Hash] opts the optional parameters
|
|
175
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
176
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
177
|
+
# @return [AccountNumbersResponseBody]
|
|
178
|
+
def list_account_numbers_by_account(account_guid, user_guid, opts = {})
|
|
179
|
+
data, _status_code, _headers = list_account_numbers_by_account_with_http_info(account_guid, user_guid, opts)
|
|
180
|
+
data
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# List account numbers by account
|
|
184
|
+
# This endpoint returns a list of account numbers associated with the specified `account`.
|
|
185
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
186
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
187
|
+
# @param [Hash] opts the optional parameters
|
|
188
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
189
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
190
|
+
# @return [Array<(AccountNumbersResponseBody, Integer, Hash)>] AccountNumbersResponseBody data, response status code and response headers
|
|
191
|
+
def list_account_numbers_by_account_with_http_info(account_guid, user_guid, opts = {})
|
|
192
|
+
if @api_client.config.debugging
|
|
193
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.list_account_numbers_by_account ...'
|
|
194
|
+
end
|
|
195
|
+
# verify the required parameter 'account_guid' is set
|
|
196
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
|
197
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling AccountsApi.list_account_numbers_by_account"
|
|
198
|
+
end
|
|
199
|
+
# verify the required parameter 'user_guid' is set
|
|
200
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
201
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.list_account_numbers_by_account"
|
|
202
|
+
end
|
|
203
|
+
# resource path
|
|
204
|
+
local_var_path = '/users/{user_guid}/accounts/{account_guid}/account_numbers'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
205
|
+
|
|
206
|
+
# query parameters
|
|
207
|
+
query_params = opts[:query_params] || {}
|
|
208
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
209
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
210
|
+
|
|
211
|
+
# header parameters
|
|
212
|
+
header_params = opts[:header_params] || {}
|
|
213
|
+
# HTTP header 'Accept' (if needed)
|
|
214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
|
215
|
+
|
|
216
|
+
# form parameters
|
|
217
|
+
form_params = opts[:form_params] || {}
|
|
218
|
+
|
|
219
|
+
# http body (model)
|
|
220
|
+
post_body = opts[:debug_body]
|
|
221
|
+
|
|
222
|
+
# return_type
|
|
223
|
+
return_type = opts[:debug_return_type] || 'AccountNumbersResponseBody'
|
|
224
|
+
|
|
225
|
+
# auth_names
|
|
226
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
227
|
+
|
|
228
|
+
new_options = opts.merge(
|
|
229
|
+
:operation => :"AccountsApi.list_account_numbers_by_account",
|
|
230
|
+
:header_params => header_params,
|
|
231
|
+
:query_params => query_params,
|
|
232
|
+
:form_params => form_params,
|
|
233
|
+
:body => post_body,
|
|
234
|
+
:auth_names => auth_names,
|
|
235
|
+
:return_type => return_type
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
239
|
+
if @api_client.config.debugging
|
|
240
|
+
@api_client.config.logger.debug "API called: AccountsApi#list_account_numbers_by_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
241
|
+
end
|
|
242
|
+
return data, status_code, headers
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# List account numbers by member
|
|
246
|
+
# This endpoint returns a list of account numbers associated with the specified `member`.
|
|
247
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
248
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
249
|
+
# @param [Hash] opts the optional parameters
|
|
250
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
251
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
252
|
+
# @return [AccountNumbersResponseBody]
|
|
253
|
+
def list_account_numbers_by_member(member_guid, user_guid, opts = {})
|
|
254
|
+
data, _status_code, _headers = list_account_numbers_by_member_with_http_info(member_guid, user_guid, opts)
|
|
255
|
+
data
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# List account numbers by member
|
|
259
|
+
# This endpoint returns a list of account numbers associated with the specified `member`.
|
|
260
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
261
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
262
|
+
# @param [Hash] opts the optional parameters
|
|
263
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
264
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
265
|
+
# @return [Array<(AccountNumbersResponseBody, Integer, Hash)>] AccountNumbersResponseBody data, response status code and response headers
|
|
266
|
+
def list_account_numbers_by_member_with_http_info(member_guid, user_guid, opts = {})
|
|
267
|
+
if @api_client.config.debugging
|
|
268
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.list_account_numbers_by_member ...'
|
|
269
|
+
end
|
|
270
|
+
# verify the required parameter 'member_guid' is set
|
|
271
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
272
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling AccountsApi.list_account_numbers_by_member"
|
|
273
|
+
end
|
|
274
|
+
# verify the required parameter 'user_guid' is set
|
|
275
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
276
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.list_account_numbers_by_member"
|
|
277
|
+
end
|
|
278
|
+
# resource path
|
|
279
|
+
local_var_path = '/users/{user_guid}/members/{member_guid}/account_numbers'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
280
|
+
|
|
281
|
+
# query parameters
|
|
282
|
+
query_params = opts[:query_params] || {}
|
|
283
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
284
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
285
|
+
|
|
286
|
+
# header parameters
|
|
287
|
+
header_params = opts[:header_params] || {}
|
|
288
|
+
# HTTP header 'Accept' (if needed)
|
|
289
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
|
290
|
+
|
|
291
|
+
# form parameters
|
|
292
|
+
form_params = opts[:form_params] || {}
|
|
293
|
+
|
|
294
|
+
# http body (model)
|
|
295
|
+
post_body = opts[:debug_body]
|
|
296
|
+
|
|
297
|
+
# return_type
|
|
298
|
+
return_type = opts[:debug_return_type] || 'AccountNumbersResponseBody'
|
|
299
|
+
|
|
300
|
+
# auth_names
|
|
301
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
302
|
+
|
|
303
|
+
new_options = opts.merge(
|
|
304
|
+
:operation => :"AccountsApi.list_account_numbers_by_member",
|
|
305
|
+
:header_params => header_params,
|
|
306
|
+
:query_params => query_params,
|
|
307
|
+
:form_params => form_params,
|
|
308
|
+
:body => post_body,
|
|
309
|
+
:auth_names => auth_names,
|
|
310
|
+
:return_type => return_type
|
|
311
|
+
)
|
|
312
|
+
|
|
313
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
314
|
+
if @api_client.config.debugging
|
|
315
|
+
@api_client.config.logger.debug "API called: AccountsApi#list_account_numbers_by_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
316
|
+
end
|
|
317
|
+
return data, status_code, headers
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# List account owners by member
|
|
321
|
+
# This endpoint returns an array with information about every account associated with a particular member.
|
|
322
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
323
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
324
|
+
# @param [Hash] opts the optional parameters
|
|
325
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
326
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
327
|
+
# @return [AccountOwnersResponseBody]
|
|
328
|
+
def list_account_owners_by_member(member_guid, user_guid, opts = {})
|
|
329
|
+
data, _status_code, _headers = list_account_owners_by_member_with_http_info(member_guid, user_guid, opts)
|
|
330
|
+
data
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# List account owners by member
|
|
334
|
+
# This endpoint returns an array with information about every account associated with a particular member.
|
|
335
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
336
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
337
|
+
# @param [Hash] opts the optional parameters
|
|
338
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
339
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
340
|
+
# @return [Array<(AccountOwnersResponseBody, Integer, Hash)>] AccountOwnersResponseBody data, response status code and response headers
|
|
341
|
+
def list_account_owners_by_member_with_http_info(member_guid, user_guid, opts = {})
|
|
342
|
+
if @api_client.config.debugging
|
|
343
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.list_account_owners_by_member ...'
|
|
344
|
+
end
|
|
345
|
+
# verify the required parameter 'member_guid' is set
|
|
346
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
347
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling AccountsApi.list_account_owners_by_member"
|
|
348
|
+
end
|
|
349
|
+
# verify the required parameter 'user_guid' is set
|
|
350
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
351
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.list_account_owners_by_member"
|
|
352
|
+
end
|
|
353
|
+
# resource path
|
|
354
|
+
local_var_path = '/users/{user_guid}/members/{member_guid}/account_owners'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
355
|
+
|
|
356
|
+
# query parameters
|
|
357
|
+
query_params = opts[:query_params] || {}
|
|
358
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
359
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
360
|
+
|
|
361
|
+
# header parameters
|
|
362
|
+
header_params = opts[:header_params] || {}
|
|
363
|
+
# HTTP header 'Accept' (if needed)
|
|
364
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
|
365
|
+
|
|
366
|
+
# form parameters
|
|
367
|
+
form_params = opts[:form_params] || {}
|
|
368
|
+
|
|
369
|
+
# http body (model)
|
|
370
|
+
post_body = opts[:debug_body]
|
|
371
|
+
|
|
372
|
+
# return_type
|
|
373
|
+
return_type = opts[:debug_return_type] || 'AccountOwnersResponseBody'
|
|
374
|
+
|
|
375
|
+
# auth_names
|
|
376
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
377
|
+
|
|
378
|
+
new_options = opts.merge(
|
|
379
|
+
:operation => :"AccountsApi.list_account_owners_by_member",
|
|
380
|
+
:header_params => header_params,
|
|
381
|
+
:query_params => query_params,
|
|
382
|
+
:form_params => form_params,
|
|
383
|
+
:body => post_body,
|
|
384
|
+
:auth_names => auth_names,
|
|
385
|
+
:return_type => return_type
|
|
386
|
+
)
|
|
387
|
+
|
|
388
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
389
|
+
if @api_client.config.debugging
|
|
390
|
+
@api_client.config.logger.debug "API called: AccountsApi#list_account_owners_by_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
391
|
+
end
|
|
392
|
+
return data, status_code, headers
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# List accounts by member
|
|
396
|
+
# This endpoint returns a list of all the accounts associated with the specified `member`.
|
|
397
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
398
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
399
|
+
# @param [Hash] opts the optional parameters
|
|
400
|
+
# @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
|
|
401
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
402
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
403
|
+
# @return [AccountsResponseBody]
|
|
404
|
+
def list_member_accounts(user_guid, member_guid, opts = {})
|
|
405
|
+
data, _status_code, _headers = list_member_accounts_with_http_info(user_guid, member_guid, opts)
|
|
406
|
+
data
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# List accounts by member
|
|
410
|
+
# This endpoint returns a list of all the accounts associated with the specified `member`.
|
|
411
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
412
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
413
|
+
# @param [Hash] opts the optional parameters
|
|
414
|
+
# @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
|
|
415
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
416
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
417
|
+
# @return [Array<(AccountsResponseBody, Integer, Hash)>] AccountsResponseBody data, response status code and response headers
|
|
418
|
+
def list_member_accounts_with_http_info(user_guid, member_guid, opts = {})
|
|
419
|
+
if @api_client.config.debugging
|
|
420
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.list_member_accounts ...'
|
|
421
|
+
end
|
|
422
|
+
# verify the required parameter 'user_guid' is set
|
|
423
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
424
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.list_member_accounts"
|
|
425
|
+
end
|
|
426
|
+
# verify the required parameter 'member_guid' is set
|
|
427
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
428
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling AccountsApi.list_member_accounts"
|
|
429
|
+
end
|
|
430
|
+
# resource path
|
|
431
|
+
local_var_path = '/users/{user_guid}/members/{member_guid}/accounts'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s))
|
|
432
|
+
|
|
433
|
+
# query parameters
|
|
434
|
+
query_params = opts[:query_params] || {}
|
|
435
|
+
query_params[:'member_is_managed_by_user'] = opts[:'member_is_managed_by_user'] if !opts[:'member_is_managed_by_user'].nil?
|
|
436
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
437
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
438
|
+
|
|
439
|
+
# header parameters
|
|
440
|
+
header_params = opts[:header_params] || {}
|
|
441
|
+
# HTTP header 'Accept' (if needed)
|
|
442
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
|
443
|
+
|
|
444
|
+
# form parameters
|
|
445
|
+
form_params = opts[:form_params] || {}
|
|
446
|
+
|
|
447
|
+
# http body (model)
|
|
448
|
+
post_body = opts[:debug_body]
|
|
449
|
+
|
|
450
|
+
# return_type
|
|
451
|
+
return_type = opts[:debug_return_type] || 'AccountsResponseBody'
|
|
452
|
+
|
|
453
|
+
# auth_names
|
|
454
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
455
|
+
|
|
456
|
+
new_options = opts.merge(
|
|
457
|
+
:operation => :"AccountsApi.list_member_accounts",
|
|
458
|
+
:header_params => header_params,
|
|
459
|
+
:query_params => query_params,
|
|
460
|
+
:form_params => form_params,
|
|
461
|
+
:body => post_body,
|
|
462
|
+
:auth_names => auth_names,
|
|
463
|
+
:return_type => return_type
|
|
464
|
+
)
|
|
465
|
+
|
|
466
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
467
|
+
if @api_client.config.debugging
|
|
468
|
+
@api_client.config.logger.debug "API called: AccountsApi#list_member_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
469
|
+
end
|
|
470
|
+
return data, status_code, headers
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# List accounts
|
|
474
|
+
# This endpoint returns a list of all the accounts associated with the specified `user`. :::warning This request will not return the full account number. It may return the last four digits of the account number if that information has been provided during aggregation. If you need the full account number, please refer to [List account numbers by member](https://docs.mx.com/api-reference/platform-api/reference/list-account-numbers-by-member/), [List account numbers by account](https://docs.mx.com/api-reference/platform-api/reference/list-account-numbers-by-account/), or the [Fetch Account and Routing Numbers](https://docs.mx.com/products/connectivity/instant-account-verification/fetch-account-routing-number-api/#4-read-the-account-numbers) guide. :::
|
|
475
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
476
|
+
# @param [Hash] opts the optional parameters
|
|
477
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
478
|
+
# @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
|
|
479
|
+
# @option opts [Boolean] :is_manual List only accounts that were manually created.
|
|
480
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
481
|
+
# @option opts [String] :use_case The use case associated with the member. Valid values are `PFM` and `MONEY_MOVEMENT`. For example, you can append either `?use_case=PFM` or `?use_case=MONEY_MOVEMENT`.
|
|
482
|
+
# @return [AccountsResponseBody]
|
|
483
|
+
def list_user_accounts(user_guid, opts = {})
|
|
484
|
+
data, _status_code, _headers = list_user_accounts_with_http_info(user_guid, opts)
|
|
485
|
+
data
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# List accounts
|
|
489
|
+
# This endpoint returns a list of all the accounts associated with the specified `user`. :::warning This request will not return the full account number. It may return the last four digits of the account number if that information has been provided during aggregation. If you need the full account number, please refer to [List account numbers by member](https://docs.mx.com/api-reference/platform-api/reference/list-account-numbers-by-member/), [List account numbers by account](https://docs.mx.com/api-reference/platform-api/reference/list-account-numbers-by-account/), or the [Fetch Account and Routing Numbers](https://docs.mx.com/products/connectivity/instant-account-verification/fetch-account-routing-number-api/#4-read-the-account-numbers) guide. :::
|
|
490
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
491
|
+
# @param [Hash] opts the optional parameters
|
|
492
|
+
# @option opts [Integer] :page Results are paginated. Specify current page.
|
|
493
|
+
# @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
|
|
494
|
+
# @option opts [Boolean] :is_manual List only accounts that were manually created.
|
|
495
|
+
# @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to `25`. The valid range is from `10` to `1000`. If the value exceeds `1000`, the default value of `25` will be used instead.
|
|
496
|
+
# @option opts [String] :use_case The use case associated with the member. Valid values are `PFM` and `MONEY_MOVEMENT`. For example, you can append either `?use_case=PFM` or `?use_case=MONEY_MOVEMENT`.
|
|
497
|
+
# @return [Array<(AccountsResponseBody, Integer, Hash)>] AccountsResponseBody data, response status code and response headers
|
|
498
|
+
def list_user_accounts_with_http_info(user_guid, opts = {})
|
|
499
|
+
if @api_client.config.debugging
|
|
500
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.list_user_accounts ...'
|
|
501
|
+
end
|
|
502
|
+
# verify the required parameter 'user_guid' is set
|
|
503
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
504
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.list_user_accounts"
|
|
505
|
+
end
|
|
506
|
+
# resource path
|
|
507
|
+
local_var_path = '/users/{user_guid}/accounts'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
508
|
+
|
|
509
|
+
# query parameters
|
|
510
|
+
query_params = opts[:query_params] || {}
|
|
511
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
512
|
+
query_params[:'member_is_managed_by_user'] = opts[:'member_is_managed_by_user'] if !opts[:'member_is_managed_by_user'].nil?
|
|
513
|
+
query_params[:'is_manual'] = opts[:'is_manual'] if !opts[:'is_manual'].nil?
|
|
514
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
515
|
+
query_params[:'use_case'] = opts[:'use_case'] if !opts[:'use_case'].nil?
|
|
516
|
+
|
|
517
|
+
# header parameters
|
|
518
|
+
header_params = opts[:header_params] || {}
|
|
519
|
+
# HTTP header 'Accept' (if needed)
|
|
520
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
|
521
|
+
|
|
522
|
+
# form parameters
|
|
523
|
+
form_params = opts[:form_params] || {}
|
|
524
|
+
|
|
525
|
+
# http body (model)
|
|
526
|
+
post_body = opts[:debug_body]
|
|
527
|
+
|
|
528
|
+
# return_type
|
|
529
|
+
return_type = opts[:debug_return_type] || 'AccountsResponseBody'
|
|
530
|
+
|
|
531
|
+
# auth_names
|
|
532
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
533
|
+
|
|
534
|
+
new_options = opts.merge(
|
|
535
|
+
:operation => :"AccountsApi.list_user_accounts",
|
|
536
|
+
:header_params => header_params,
|
|
537
|
+
:query_params => query_params,
|
|
538
|
+
:form_params => form_params,
|
|
539
|
+
:body => post_body,
|
|
540
|
+
:auth_names => auth_names,
|
|
541
|
+
:return_type => return_type
|
|
542
|
+
)
|
|
543
|
+
|
|
544
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
545
|
+
if @api_client.config.debugging
|
|
546
|
+
@api_client.config.logger.debug "API called: AccountsApi#list_user_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
547
|
+
end
|
|
548
|
+
return data, status_code, headers
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
# Read account
|
|
552
|
+
# This endpoint returns the specified `account` resource.
|
|
553
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
554
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
555
|
+
# @param [Hash] opts the optional parameters
|
|
556
|
+
# @return [AccountResponseBody]
|
|
557
|
+
def read_account(account_guid, user_guid, opts = {})
|
|
558
|
+
data, _status_code, _headers = read_account_with_http_info(account_guid, user_guid, opts)
|
|
559
|
+
data
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
# Read account
|
|
563
|
+
# This endpoint returns the specified `account` resource.
|
|
564
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
565
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
566
|
+
# @param [Hash] opts the optional parameters
|
|
567
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
|
568
|
+
def read_account_with_http_info(account_guid, user_guid, opts = {})
|
|
569
|
+
if @api_client.config.debugging
|
|
570
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.read_account ...'
|
|
571
|
+
end
|
|
572
|
+
# verify the required parameter 'account_guid' is set
|
|
573
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
|
574
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling AccountsApi.read_account"
|
|
575
|
+
end
|
|
576
|
+
# verify the required parameter 'user_guid' is set
|
|
577
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
578
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.read_account"
|
|
579
|
+
end
|
|
580
|
+
# resource path
|
|
581
|
+
local_var_path = '/users/{user_guid}/accounts/{account_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
582
|
+
|
|
583
|
+
# query parameters
|
|
584
|
+
query_params = opts[:query_params] || {}
|
|
585
|
+
|
|
586
|
+
# header parameters
|
|
587
|
+
header_params = opts[:header_params] || {}
|
|
588
|
+
# HTTP header 'Accept' (if needed)
|
|
589
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
|
590
|
+
|
|
591
|
+
# form parameters
|
|
592
|
+
form_params = opts[:form_params] || {}
|
|
593
|
+
|
|
594
|
+
# http body (model)
|
|
595
|
+
post_body = opts[:debug_body]
|
|
596
|
+
|
|
597
|
+
# return_type
|
|
598
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
|
599
|
+
|
|
600
|
+
# auth_names
|
|
601
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
602
|
+
|
|
603
|
+
new_options = opts.merge(
|
|
604
|
+
:operation => :"AccountsApi.read_account",
|
|
605
|
+
:header_params => header_params,
|
|
606
|
+
:query_params => query_params,
|
|
607
|
+
:form_params => form_params,
|
|
608
|
+
:body => post_body,
|
|
609
|
+
:auth_names => auth_names,
|
|
610
|
+
:return_type => return_type
|
|
611
|
+
)
|
|
612
|
+
|
|
613
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
614
|
+
if @api_client.config.debugging
|
|
615
|
+
@api_client.config.logger.debug "API called: AccountsApi#read_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
616
|
+
end
|
|
617
|
+
return data, status_code, headers
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
# Read account by member
|
|
621
|
+
# This endpoint allows you to read the attributes of an `account` resource.
|
|
622
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
623
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
624
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
625
|
+
# @param [Hash] opts the optional parameters
|
|
626
|
+
# @return [AccountResponseBody]
|
|
627
|
+
def read_account_by_member(account_guid, member_guid, user_guid, opts = {})
|
|
628
|
+
data, _status_code, _headers = read_account_by_member_with_http_info(account_guid, member_guid, user_guid, opts)
|
|
629
|
+
data
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
# Read account by member
|
|
633
|
+
# This endpoint allows you to read the attributes of an `account` resource.
|
|
634
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
635
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
636
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
637
|
+
# @param [Hash] opts the optional parameters
|
|
638
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
|
639
|
+
def read_account_by_member_with_http_info(account_guid, member_guid, user_guid, opts = {})
|
|
640
|
+
if @api_client.config.debugging
|
|
641
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.read_account_by_member ...'
|
|
642
|
+
end
|
|
643
|
+
# verify the required parameter 'account_guid' is set
|
|
644
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
|
645
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling AccountsApi.read_account_by_member"
|
|
646
|
+
end
|
|
647
|
+
# verify the required parameter 'member_guid' is set
|
|
648
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
649
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling AccountsApi.read_account_by_member"
|
|
650
|
+
end
|
|
651
|
+
# verify the required parameter 'user_guid' is set
|
|
652
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
653
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.read_account_by_member"
|
|
654
|
+
end
|
|
655
|
+
# resource path
|
|
656
|
+
local_var_path = '/users/{user_guid}/members/{member_guid}/accounts/{account_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
657
|
+
|
|
658
|
+
# query parameters
|
|
659
|
+
query_params = opts[:query_params] || {}
|
|
660
|
+
|
|
661
|
+
# header parameters
|
|
662
|
+
header_params = opts[:header_params] || {}
|
|
663
|
+
# HTTP header 'Accept' (if needed)
|
|
664
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
|
665
|
+
|
|
666
|
+
# form parameters
|
|
667
|
+
form_params = opts[:form_params] || {}
|
|
668
|
+
|
|
669
|
+
# http body (model)
|
|
670
|
+
post_body = opts[:debug_body]
|
|
671
|
+
|
|
672
|
+
# return_type
|
|
673
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
|
674
|
+
|
|
675
|
+
# auth_names
|
|
676
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
677
|
+
|
|
678
|
+
new_options = opts.merge(
|
|
679
|
+
:operation => :"AccountsApi.read_account_by_member",
|
|
680
|
+
:header_params => header_params,
|
|
681
|
+
:query_params => query_params,
|
|
682
|
+
:form_params => form_params,
|
|
683
|
+
:body => post_body,
|
|
684
|
+
:auth_names => auth_names,
|
|
685
|
+
:return_type => return_type
|
|
686
|
+
)
|
|
687
|
+
|
|
688
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
689
|
+
if @api_client.config.debugging
|
|
690
|
+
@api_client.config.logger.debug "API called: AccountsApi#read_account_by_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
691
|
+
end
|
|
692
|
+
return data, status_code, headers
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
# Update account by member
|
|
696
|
+
# This endpoint allows you to update certain attributes of an `account` resource, including manual accounts. For manual accounts, you can update every field listed. For aggregated accounts, you can only update `is_business`, `is_hidden` and `metadata`.
|
|
697
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
698
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
699
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
700
|
+
# @param account_update_request_body [AccountUpdateRequestBody]
|
|
701
|
+
# @param [Hash] opts the optional parameters
|
|
702
|
+
# @return [AccountResponseBody]
|
|
703
|
+
def update_account_by_member(account_guid, member_guid, user_guid, account_update_request_body, opts = {})
|
|
704
|
+
data, _status_code, _headers = update_account_by_member_with_http_info(account_guid, member_guid, user_guid, account_update_request_body, opts)
|
|
705
|
+
data
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
# Update account by member
|
|
709
|
+
# This endpoint allows you to update certain attributes of an `account` resource, including manual accounts. For manual accounts, you can update every field listed. For aggregated accounts, you can only update `is_business`, `is_hidden` and `metadata`.
|
|
710
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
711
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
712
|
+
# @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
|
|
713
|
+
# @param account_update_request_body [AccountUpdateRequestBody]
|
|
714
|
+
# @param [Hash] opts the optional parameters
|
|
715
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
|
716
|
+
def update_account_by_member_with_http_info(account_guid, member_guid, user_guid, account_update_request_body, opts = {})
|
|
717
|
+
if @api_client.config.debugging
|
|
718
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.update_account_by_member ...'
|
|
719
|
+
end
|
|
720
|
+
# verify the required parameter 'account_guid' is set
|
|
721
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
|
722
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling AccountsApi.update_account_by_member"
|
|
723
|
+
end
|
|
724
|
+
# verify the required parameter 'member_guid' is set
|
|
725
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
726
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling AccountsApi.update_account_by_member"
|
|
727
|
+
end
|
|
728
|
+
# verify the required parameter 'user_guid' is set
|
|
729
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
730
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling AccountsApi.update_account_by_member"
|
|
731
|
+
end
|
|
732
|
+
# verify the required parameter 'account_update_request_body' is set
|
|
733
|
+
if @api_client.config.client_side_validation && account_update_request_body.nil?
|
|
734
|
+
fail ArgumentError, "Missing the required parameter 'account_update_request_body' when calling AccountsApi.update_account_by_member"
|
|
735
|
+
end
|
|
736
|
+
# resource path
|
|
737
|
+
local_var_path = '/users/{user_guid}/members/{member_guid}/accounts/{account_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
738
|
+
|
|
739
|
+
# query parameters
|
|
740
|
+
query_params = opts[:query_params] || {}
|
|
741
|
+
|
|
742
|
+
# header parameters
|
|
743
|
+
header_params = opts[:header_params] || {}
|
|
744
|
+
# HTTP header 'Accept' (if needed)
|
|
745
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
|
|
746
|
+
# HTTP header 'Content-Type'
|
|
747
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
748
|
+
if !content_type.nil?
|
|
749
|
+
header_params['Content-Type'] = content_type
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
# form parameters
|
|
753
|
+
form_params = opts[:form_params] || {}
|
|
754
|
+
|
|
755
|
+
# http body (model)
|
|
756
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(account_update_request_body)
|
|
757
|
+
|
|
758
|
+
# return_type
|
|
759
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
|
760
|
+
|
|
761
|
+
# auth_names
|
|
762
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
763
|
+
|
|
764
|
+
new_options = opts.merge(
|
|
765
|
+
:operation => :"AccountsApi.update_account_by_member",
|
|
766
|
+
:header_params => header_params,
|
|
767
|
+
:query_params => query_params,
|
|
768
|
+
:form_params => form_params,
|
|
769
|
+
:body => post_body,
|
|
770
|
+
:auth_names => auth_names,
|
|
771
|
+
:return_type => return_type
|
|
772
|
+
)
|
|
773
|
+
|
|
774
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
775
|
+
if @api_client.config.debugging
|
|
776
|
+
@api_client.config.logger.debug "API called: AccountsApi#update_account_by_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
777
|
+
end
|
|
778
|
+
return data, status_code, headers
|
|
779
|
+
end
|
|
780
|
+
end
|
|
781
|
+
end
|