apimatic-mx-apis-sdk 0.0.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 +7 -0
- data/LICENSE +28 -0
- data/README.md +207 -0
- data/bin/console +15 -0
- data/lib/mx_platform_api/api_helper.rb +10 -0
- data/lib/mx_platform_api/apis/accounts_api.rb +619 -0
- data/lib/mx_platform_api/apis/ach_return_api.rb +115 -0
- data/lib/mx_platform_api/apis/base_api.rb +67 -0
- data/lib/mx_platform_api/apis/budgets_api.rb +212 -0
- data/lib/mx_platform_api/apis/categories_api.rb +377 -0
- data/lib/mx_platform_api/apis/goals_api.rb +223 -0
- data/lib/mx_platform_api/apis/insights_api.rb +415 -0
- data/lib/mx_platform_api/apis/institutions_api.rb +159 -0
- data/lib/mx_platform_api/apis/investment_holdings_api.rb +191 -0
- data/lib/mx_platform_api/apis/jobs_api.rb +48 -0
- data/lib/mx_platform_api/apis/managed_data_deprecated_api.rb +773 -0
- data/lib/mx_platform_api/apis/members_api.rb +639 -0
- data/lib/mx_platform_api/apis/merchants_api.rb +98 -0
- data/lib/mx_platform_api/apis/microdeposits_api.rb +219 -0
- data/lib/mx_platform_api/apis/monthly_cash_flow_profile_api.rb +75 -0
- data/lib/mx_platform_api/apis/notifications_api.rb +115 -0
- data/lib/mx_platform_api/apis/processor_token_api.rb +141 -0
- data/lib/mx_platform_api/apis/rewards_api.rb +149 -0
- data/lib/mx_platform_api/apis/spending_plan_api.rb +621 -0
- data/lib/mx_platform_api/apis/statements_api.rb +165 -0
- data/lib/mx_platform_api/apis/taggings_api.rb +184 -0
- data/lib/mx_platform_api/apis/tags_api.rb +185 -0
- data/lib/mx_platform_api/apis/transaction_rules_api.rb +163 -0
- data/lib/mx_platform_api/apis/transactions_api.rb +1223 -0
- data/lib/mx_platform_api/apis/users_api.rb +188 -0
- data/lib/mx_platform_api/apis/verifiable_credentials_api.rb +114 -0
- data/lib/mx_platform_api/apis/widgets_api.rb +135 -0
- data/lib/mx_platform_api/client.rb +225 -0
- data/lib/mx_platform_api/configuration.rb +182 -0
- data/lib/mx_platform_api/exceptions/api_exception.rb +21 -0
- data/lib/mx_platform_api/http/api_response.rb +19 -0
- data/lib/mx_platform_api/http/auth/basic_auth.rb +62 -0
- data/lib/mx_platform_api/http/auth/bearer_auth.rb +53 -0
- data/lib/mx_platform_api/http/http_call_back.rb +10 -0
- data/lib/mx_platform_api/http/http_method_enum.rb +10 -0
- data/lib/mx_platform_api/http/http_request.rb +10 -0
- data/lib/mx_platform_api/http/http_response.rb +10 -0
- data/lib/mx_platform_api/http/proxy_settings.rb +22 -0
- data/lib/mx_platform_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/mx_platform_api/logging/sdk_logger.rb +17 -0
- data/lib/mx_platform_api/models/account_create_request.rb +309 -0
- data/lib/mx_platform_api/models/account_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/account_number.rb +199 -0
- data/lib/mx_platform_api/models/account_number_response.rb +215 -0
- data/lib/mx_platform_api/models/account_numbers_response_body.rb +95 -0
- data/lib/mx_platform_api/models/account_owner.rb +186 -0
- data/lib/mx_platform_api/models/account_owner_response.rb +219 -0
- data/lib/mx_platform_api/models/account_owners_response_body.rb +95 -0
- data/lib/mx_platform_api/models/account_ownership.rb +45 -0
- data/lib/mx_platform_api/models/account_response.rb +814 -0
- data/lib/mx_platform_api/models/account_response_body.rb +75 -0
- data/lib/mx_platform_api/models/account_type.rb +80 -0
- data/lib/mx_platform_api/models/account_type1.rb +80 -0
- data/lib/mx_platform_api/models/account_update_request.rb +301 -0
- data/lib/mx_platform_api/models/account_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/accounts_merge_request.rb +75 -0
- data/lib/mx_platform_api/models/accounts_merge_request_body.rb +75 -0
- data/lib/mx_platform_api/models/accounts_response_body.rb +94 -0
- data/lib/mx_platform_api/models/ach_response.rb +424 -0
- data/lib/mx_platform_api/models/ach_return_create_request.rb +256 -0
- data/lib/mx_platform_api/models/ach_return_create_request_body.rb +76 -0
- data/lib/mx_platform_api/models/ach_return_response_body.rb +76 -0
- data/lib/mx_platform_api/models/ach_returns_response_body.rb +95 -0
- data/lib/mx_platform_api/models/authorization_code_request.rb +77 -0
- data/lib/mx_platform_api/models/authorization_code_request_body.rb +77 -0
- data/lib/mx_platform_api/models/authorization_code_response.rb +76 -0
- data/lib/mx_platform_api/models/authorization_code_response_body.rb +77 -0
- data/lib/mx_platform_api/models/base_model.rb +110 -0
- data/lib/mx_platform_api/models/budget_create_request.rb +115 -0
- data/lib/mx_platform_api/models/budget_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/budget_response.rb +246 -0
- data/lib/mx_platform_api/models/budget_response_body.rb +75 -0
- data/lib/mx_platform_api/models/budget_update_request.rb +96 -0
- data/lib/mx_platform_api/models/budget_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/categories_response_body.rb +95 -0
- data/lib/mx_platform_api/models/category_create_request.rb +93 -0
- data/lib/mx_platform_api/models/category_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/category_response.rb +160 -0
- data/lib/mx_platform_api/models/category_response_body.rb +75 -0
- data/lib/mx_platform_api/models/category_update_request.rb +85 -0
- data/lib/mx_platform_api/models/category_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/challenge_response.rb +159 -0
- data/lib/mx_platform_api/models/challenges_response_body.rb +95 -0
- data/lib/mx_platform_api/models/channel.rb +47 -0
- data/lib/mx_platform_api/models/classification.rb +85 -0
- data/lib/mx_platform_api/models/color_scheme.rb +43 -0
- data/lib/mx_platform_api/models/connection_status.rb +118 -0
- data/lib/mx_platform_api/models/credential_request.rb +85 -0
- data/lib/mx_platform_api/models/credential_response.rb +133 -0
- data/lib/mx_platform_api/models/credentials_response_body.rb +95 -0
- data/lib/mx_platform_api/models/credit_card_product.rb +276 -0
- data/lib/mx_platform_api/models/credit_card_product_response.rb +77 -0
- data/lib/mx_platform_api/models/data_request.rb +76 -0
- data/lib/mx_platform_api/models/date_range.rb +87 -0
- data/lib/mx_platform_api/models/date_range_category_totals_response.rb +115 -0
- data/lib/mx_platform_api/models/date_range_category_totals_response_body.rb +88 -0
- data/lib/mx_platform_api/models/deep_link_params.rb +131 -0
- data/lib/mx_platform_api/models/enhance_transaction_response.rb +371 -0
- data/lib/mx_platform_api/models/enhance_transactions_request.rb +143 -0
- data/lib/mx_platform_api/models/enhance_transactions_request_body.rb +85 -0
- data/lib/mx_platform_api/models/enhance_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/error.rb +106 -0
- data/lib/mx_platform_api/models/federal_insurance_status.rb +42 -0
- data/lib/mx_platform_api/models/geolocation.rb +108 -0
- data/lib/mx_platform_api/models/goal_request.rb +179 -0
- data/lib/mx_platform_api/models/goal_request_body.rb +74 -0
- data/lib/mx_platform_api/models/goal_response.rb +241 -0
- data/lib/mx_platform_api/models/goal_response_body.rb +74 -0
- data/lib/mx_platform_api/models/goal_type_name.rb +36 -0
- data/lib/mx_platform_api/models/goals_response.rb +241 -0
- data/lib/mx_platform_api/models/goals_response_body.rb +94 -0
- data/lib/mx_platform_api/models/image_option_response.rb +110 -0
- data/lib/mx_platform_api/models/insight_response.rb +338 -0
- data/lib/mx_platform_api/models/insight_response_body.rb +75 -0
- data/lib/mx_platform_api/models/insight_update_request.rb +87 -0
- data/lib/mx_platform_api/models/insight_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/insights_response_body.rb +94 -0
- data/lib/mx_platform_api/models/institution_response.rb +290 -0
- data/lib/mx_platform_api/models/institution_response_body.rb +76 -0
- data/lib/mx_platform_api/models/institutions_response_body.rb +95 -0
- data/lib/mx_platform_api/models/investment_holding_response.rb +513 -0
- data/lib/mx_platform_api/models/investment_holding_response_body.rb +77 -0
- data/lib/mx_platform_api/models/investment_holdings_deactivation.rb +85 -0
- data/lib/mx_platform_api/models/investment_holdings_response_body.rb +95 -0
- data/lib/mx_platform_api/models/iso_country_code.rb +36 -0
- data/lib/mx_platform_api/models/item_type.rb +52 -0
- data/lib/mx_platform_api/models/job_response.rb +203 -0
- data/lib/mx_platform_api/models/job_response_body.rb +74 -0
- data/lib/mx_platform_api/models/managed_account_create_request.rb +422 -0
- data/lib/mx_platform_api/models/managed_account_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_account_update_request.rb +428 -0
- data/lib/mx_platform_api/models/managed_account_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_member_create_request.rb +105 -0
- data/lib/mx_platform_api/models/managed_member_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_member_update_request.rb +95 -0
- data/lib/mx_platform_api/models/managed_member_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_transaction_create_request.rb +282 -0
- data/lib/mx_platform_api/models/managed_transaction_create_request_body.rb +77 -0
- data/lib/mx_platform_api/models/managed_transaction_update_request.rb +289 -0
- data/lib/mx_platform_api/models/managed_transaction_update_request_body.rb +77 -0
- data/lib/mx_platform_api/models/member_create_request.rb +154 -0
- data/lib/mx_platform_api/models/member_create_request_body.rb +152 -0
- data/lib/mx_platform_api/models/member_elements.rb +96 -0
- data/lib/mx_platform_api/models/member_response.rb +406 -0
- data/lib/mx_platform_api/models/member_response_body.rb +75 -0
- data/lib/mx_platform_api/models/member_response_with_job_error.rb +406 -0
- data/lib/mx_platform_api/models/member_response_with_job_error_body.rb +75 -0
- data/lib/mx_platform_api/models/member_resume_request.rb +85 -0
- data/lib/mx_platform_api/models/member_resume_request_body.rb +75 -0
- data/lib/mx_platform_api/models/member_status_response.rb +236 -0
- data/lib/mx_platform_api/models/member_status_response_body.rb +75 -0
- data/lib/mx_platform_api/models/member_update_request.rb +133 -0
- data/lib/mx_platform_api/models/member_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/members_response_body.rb +94 -0
- data/lib/mx_platform_api/models/merchant.rb +105 -0
- data/lib/mx_platform_api/models/merchant_location_response.rb +208 -0
- data/lib/mx_platform_api/models/merchant_location_response_body.rb +77 -0
- data/lib/mx_platform_api/models/merchant_response.rb +136 -0
- data/lib/mx_platform_api/models/merchant_response_body.rb +75 -0
- data/lib/mx_platform_api/models/merchants_response_body.rb +95 -0
- data/lib/mx_platform_api/models/micro_deposit.rb +223 -0
- data/lib/mx_platform_api/models/microdeposit_elements.rb +141 -0
- data/lib/mx_platform_api/models/microdeposit_request_body.rb +77 -0
- data/lib/mx_platform_api/models/microdeposit_response.rb +149 -0
- data/lib/mx_platform_api/models/microdeposit_response_body.rb +85 -0
- data/lib/mx_platform_api/models/microdeposit_verify_request.rb +88 -0
- data/lib/mx_platform_api/models/microdeposit_verify_request_body.rb +77 -0
- data/lib/mx_platform_api/models/microdeposits_response_body.rb +95 -0
- data/lib/mx_platform_api/models/monthly_account_balance.rb +123 -0
- data/lib/mx_platform_api/models/monthly_account_balances_response_body.rb +85 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_profile_request.rb +95 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_profile_request_body.rb +81 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_response.rb +157 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_response_body.rb +81 -0
- data/lib/mx_platform_api/models/notification_request.rb +83 -0
- data/lib/mx_platform_api/models/notification_request_body.rb +76 -0
- data/lib/mx_platform_api/models/notification_response.rb +204 -0
- data/lib/mx_platform_api/models/notification_response_body.rb +76 -0
- data/lib/mx_platform_api/models/notifications_response_body.rb +85 -0
- data/lib/mx_platform_api/models/oauth_window_response.rb +91 -0
- data/lib/mx_platform_api/models/oauth_window_response_body.rb +75 -0
- data/lib/mx_platform_api/models/option_response.rb +99 -0
- data/lib/mx_platform_api/models/pagination_response.rb +106 -0
- data/lib/mx_platform_api/models/parent_class.rb +84 -0
- data/lib/mx_platform_api/models/payment_account.rb +183 -0
- data/lib/mx_platform_api/models/payment_account1.rb +213 -0
- data/lib/mx_platform_api/models/payment_account_body.rb +77 -0
- data/lib/mx_platform_api/models/processor_account_number.rb +168 -0
- data/lib/mx_platform_api/models/processor_account_number_body.rb +85 -0
- data/lib/mx_platform_api/models/processor_owner.rb +155 -0
- data/lib/mx_platform_api/models/processor_owner_body.rb +95 -0
- data/lib/mx_platform_api/models/property_type.rb +69 -0
- data/lib/mx_platform_api/models/recurrence_type.rb +26 -0
- data/lib/mx_platform_api/models/repeating_transaction.rb +102 -0
- data/lib/mx_platform_api/models/repeating_transaction_response.rb +203 -0
- data/lib/mx_platform_api/models/repeating_transaction_type.rb +44 -0
- data/lib/mx_platform_api/models/repeating_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/reposition_request.rb +82 -0
- data/lib/mx_platform_api/models/reposition_request_body.rb +84 -0
- data/lib/mx_platform_api/models/reposition_response_body.rb +84 -0
- data/lib/mx_platform_api/models/reward.rb +187 -0
- data/lib/mx_platform_api/models/reward_elements.rb +156 -0
- data/lib/mx_platform_api/models/reward_response_body.rb +75 -0
- data/lib/mx_platform_api/models/rewards_response_body.rb +94 -0
- data/lib/mx_platform_api/models/scheduled_payment_response.rb +208 -0
- data/lib/mx_platform_api/models/scheduled_payments_response_body.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_account_response.rb +142 -0
- data/lib/mx_platform_api/models/spending_plan_accounts_response.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_item_create_request_body.rb +124 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_item_response.rb +224 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_items_response_body.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_response.rb +162 -0
- data/lib/mx_platform_api/models/spending_plan_iterations_response.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_response.rb +129 -0
- data/lib/mx_platform_api/models/spending_plans_response_body.rb +95 -0
- data/lib/mx_platform_api/models/split_transaction_request.rb +106 -0
- data/lib/mx_platform_api/models/split_transaction_request_body.rb +75 -0
- data/lib/mx_platform_api/models/split_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/statement_response.rb +157 -0
- data/lib/mx_platform_api/models/statement_response_body.rb +76 -0
- data/lib/mx_platform_api/models/statements_response_body.rb +95 -0
- data/lib/mx_platform_api/models/status.rb +36 -0
- data/lib/mx_platform_api/models/style.rb +74 -0
- data/lib/mx_platform_api/models/supported_product.rb +56 -0
- data/lib/mx_platform_api/models/supported_product1.rb +52 -0
- data/lib/mx_platform_api/models/tag_create_request.rb +72 -0
- data/lib/mx_platform_api/models/tag_create_request_body.rb +74 -0
- data/lib/mx_platform_api/models/tag_response.rb +99 -0
- data/lib/mx_platform_api/models/tag_response_body.rb +74 -0
- data/lib/mx_platform_api/models/tag_update_request.rb +72 -0
- data/lib/mx_platform_api/models/tag_update_request_body.rb +74 -0
- data/lib/mx_platform_api/models/tagging_create_request.rb +83 -0
- data/lib/mx_platform_api/models/tagging_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/tagging_response.rb +130 -0
- data/lib/mx_platform_api/models/tagging_response_body.rb +75 -0
- data/lib/mx_platform_api/models/tagging_update_request.rb +73 -0
- data/lib/mx_platform_api/models/tagging_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/taggings_response_body.rb +94 -0
- data/lib/mx_platform_api/models/tags_response_body.rb +94 -0
- data/lib/mx_platform_api/models/token_request_body.rb +75 -0
- data/lib/mx_platform_api/models/token_response.rb +114 -0
- data/lib/mx_platform_api/models/token_response_body.rb +84 -0
- data/lib/mx_platform_api/models/track_type_name.rb +44 -0
- data/lib/mx_platform_api/models/transaction_create_request.rb +192 -0
- data/lib/mx_platform_api/models/transaction_create_request_body.rb +76 -0
- data/lib/mx_platform_api/models/transaction_create_response_body.rb +595 -0
- data/lib/mx_platform_api/models/transaction_includes_response.rb +643 -0
- data/lib/mx_platform_api/models/transaction_response.rb +597 -0
- data/lib/mx_platform_api/models/transaction_response_body.rb +76 -0
- data/lib/mx_platform_api/models/transaction_rule_create_request.rb +98 -0
- data/lib/mx_platform_api/models/transaction_rule_create_request_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rule_response.rb +152 -0
- data/lib/mx_platform_api/models/transaction_rule_response_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rule_update_request.rb +103 -0
- data/lib/mx_platform_api/models/transaction_rule_update_request_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rules_response_body.rb +95 -0
- data/lib/mx_platform_api/models/transaction_type.rb +36 -0
- data/lib/mx_platform_api/models/transaction_update_request.rb +74 -0
- data/lib/mx_platform_api/models/transaction_update_request_body.rb +76 -0
- data/lib/mx_platform_api/models/transactions_response_body.rb +95 -0
- data/lib/mx_platform_api/models/transactions_response_body_includes.rb +95 -0
- data/lib/mx_platform_api/models/type.rb +36 -0
- data/lib/mx_platform_api/models/update_goal_request.rb +185 -0
- data/lib/mx_platform_api/models/update_goal_request_body.rb +74 -0
- data/lib/mx_platform_api/models/use_case.rb +36 -0
- data/lib/mx_platform_api/models/user_create_request.rb +105 -0
- data/lib/mx_platform_api/models/user_create_request_body.rb +74 -0
- data/lib/mx_platform_api/models/user_response.rb +119 -0
- data/lib/mx_platform_api/models/user_response_body.rb +74 -0
- data/lib/mx_platform_api/models/user_update_request.rb +105 -0
- data/lib/mx_platform_api/models/user_update_request_body.rb +74 -0
- data/lib/mx_platform_api/models/users_response_body.rb +94 -0
- data/lib/mx_platform_api/models/users_widget_urls_request.rb +76 -0
- data/lib/mx_platform_api/models/vc_response.rb +77 -0
- data/lib/mx_platform_api/models/widget_request.rb +466 -0
- data/lib/mx_platform_api/models/widget_response.rb +100 -0
- data/lib/mx_platform_api/models/widget_response_body.rb +76 -0
- data/lib/mx_platform_api/models/widget_type.rb +149 -0
- data/lib/mx_platform_api/utilities/date_time_helper.rb +11 -0
- data/lib/mx_platform_api/utilities/file_wrapper.rb +28 -0
- data/lib/mx_platform_api.rb +313 -0
- metadata +370 -0
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# AccountsApi
|
|
8
|
+
class AccountsApi < BaseApi
|
|
9
|
+
# This endpoint returns a list of all the accounts associated with the
|
|
10
|
+
# specified `user`.
|
|
11
|
+
# :::warning Account Numbers
|
|
12
|
+
# This request will not return the full account number. It may return the
|
|
13
|
+
# last four digits of the account number if that information has been
|
|
14
|
+
# provided during aggregation. If you need the full account number, please
|
|
15
|
+
# refer to [List account numbers by
|
|
16
|
+
# member](/api-reference/platform-api/reference/list-account-numbers-by-memb
|
|
17
|
+
# er/) or [List account numbers by
|
|
18
|
+
# account](/api-reference/platform-api/reference/list-account-numbers-by-acc
|
|
19
|
+
# ount/).
|
|
20
|
+
# :::
|
|
21
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
22
|
+
# version.
|
|
23
|
+
# @param [String] accept Required parameter: Specifies the media type
|
|
24
|
+
# expected in the response.
|
|
25
|
+
# @param [String] user_identifier Required parameter: Use either the user
|
|
26
|
+
# `id` you defined or the MX-defined user `guid`. See [MX-Defined GUIDs vs
|
|
27
|
+
# IDs Defined by
|
|
28
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-d
|
|
29
|
+
# efined-by-you).
|
|
30
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
31
|
+
# current page.
|
|
32
|
+
# @param [TrueClass | FalseClass] member_is_managed_by_user Optional
|
|
33
|
+
# parameter: List only accounts whose member is managed by the user.
|
|
34
|
+
# @param [TrueClass | FalseClass] is_manual Optional parameter: List only
|
|
35
|
+
# accounts that were manually created.
|
|
36
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
37
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
38
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
39
|
+
# value of `25` will be used instead.
|
|
40
|
+
# @param [String] use_case Optional parameter: The use case associated with
|
|
41
|
+
# the member. Valid values are `PFM` and `MONEY_MOVEMENT`. For example, you
|
|
42
|
+
# can append either `?use_case=PFM` or `?use_case=MONEY_MOVEMENT`.
|
|
43
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
44
|
+
def list_user_accounts(accept_version,
|
|
45
|
+
accept,
|
|
46
|
+
user_identifier,
|
|
47
|
+
page: nil,
|
|
48
|
+
member_is_managed_by_user: nil,
|
|
49
|
+
is_manual: nil,
|
|
50
|
+
records_per_page: nil,
|
|
51
|
+
use_case: nil)
|
|
52
|
+
@api_call
|
|
53
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
54
|
+
'/users/{user_identifier}/accounts',
|
|
55
|
+
Server::DEFAULT)
|
|
56
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
57
|
+
.is_required(true))
|
|
58
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
59
|
+
.is_required(true))
|
|
60
|
+
.template_param(new_parameter(user_identifier, key: 'user_identifier')
|
|
61
|
+
.is_required(true)
|
|
62
|
+
.should_encode(true))
|
|
63
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
64
|
+
.query_param(new_parameter(member_is_managed_by_user, key: 'member_is_managed_by_user'))
|
|
65
|
+
.query_param(new_parameter(is_manual, key: 'is_manual'))
|
|
66
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
67
|
+
.query_param(new_parameter(use_case, key: 'use_case'))
|
|
68
|
+
.auth(Single.new('basicAuth')))
|
|
69
|
+
.response(new_response_handler
|
|
70
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
71
|
+
.deserialize_into(AccountsResponseBody.method(:from_hash))
|
|
72
|
+
.is_api_response(true))
|
|
73
|
+
.execute
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# This endpoint can only be used to create manual accounts. Creating a
|
|
77
|
+
# manual account will automatically create it under the Manual Institution
|
|
78
|
+
# member. Since a manual account has no credentials tied to the member, the
|
|
79
|
+
# account will never aggregate or include data from a data feed.
|
|
80
|
+
# :::warning
|
|
81
|
+
# You must use the user `guid` when setting `user_identifier` in the path.
|
|
82
|
+
# :::
|
|
83
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
84
|
+
# version.
|
|
85
|
+
# @param [String] user_identifier Required parameter: Use either the user
|
|
86
|
+
# `id` you defined or the MX-defined user `guid`. See [MX-Defined GUIDs vs
|
|
87
|
+
# IDs Defined by
|
|
88
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-d
|
|
89
|
+
# efined-by-you).
|
|
90
|
+
# @param [AccountCreateRequestBody] body Required parameter: Manual account
|
|
91
|
+
# object to be created.
|
|
92
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
93
|
+
def create_manual_account(accept_version,
|
|
94
|
+
user_identifier,
|
|
95
|
+
body)
|
|
96
|
+
@api_call
|
|
97
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
98
|
+
'/users/{user_identifier}/accounts',
|
|
99
|
+
Server::DEFAULT)
|
|
100
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
101
|
+
.is_required(true))
|
|
102
|
+
.template_param(new_parameter(user_identifier, key: 'user_identifier')
|
|
103
|
+
.is_required(true)
|
|
104
|
+
.should_encode(true))
|
|
105
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
106
|
+
.body_param(new_parameter(body)
|
|
107
|
+
.is_required(true))
|
|
108
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
109
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
110
|
+
.auth(Single.new('basicAuth')))
|
|
111
|
+
.response(new_response_handler
|
|
112
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
113
|
+
.deserialize_into(AccountResponseBody.method(:from_hash))
|
|
114
|
+
.is_api_response(true))
|
|
115
|
+
.execute
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# This endpoint returns the specified `account` resource.
|
|
119
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
120
|
+
# version.
|
|
121
|
+
# @param [String] account_guid Required parameter: The unique id for an
|
|
122
|
+
# `account`.
|
|
123
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
124
|
+
# `user`, beginning with the prefix `USR-`.
|
|
125
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
126
|
+
def read_account(accept_version,
|
|
127
|
+
account_guid,
|
|
128
|
+
user_guid)
|
|
129
|
+
@api_call
|
|
130
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
131
|
+
'/users/{user_guid}/accounts/{account_guid}',
|
|
132
|
+
Server::DEFAULT)
|
|
133
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
134
|
+
.is_required(true))
|
|
135
|
+
.template_param(new_parameter(account_guid, key: 'account_guid')
|
|
136
|
+
.is_required(true)
|
|
137
|
+
.should_encode(true))
|
|
138
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
139
|
+
.is_required(true)
|
|
140
|
+
.should_encode(true))
|
|
141
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
142
|
+
.auth(Single.new('basicAuth')))
|
|
143
|
+
.response(new_response_handler
|
|
144
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
145
|
+
.deserialize_into(AccountResponseBody.method(:from_hash))
|
|
146
|
+
.is_api_response(true))
|
|
147
|
+
.execute
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# This endpoint deletes accounts that were manually created. The API will
|
|
151
|
+
# respond with an empty object and a status of `204 No Content`.
|
|
152
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
153
|
+
# version.
|
|
154
|
+
# @param [String] account_guid Required parameter: The unique id for an
|
|
155
|
+
# `account`.
|
|
156
|
+
# @param [String] accept Required parameter: Specifies the media type
|
|
157
|
+
# expected in the response.
|
|
158
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
159
|
+
# `user`, beginning with the prefix `USR-`.
|
|
160
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
161
|
+
def delete_manual_account(accept_version,
|
|
162
|
+
account_guid,
|
|
163
|
+
accept,
|
|
164
|
+
user_guid)
|
|
165
|
+
@api_call
|
|
166
|
+
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
167
|
+
'/users/{user_guid}/accounts/{account_guid}',
|
|
168
|
+
Server::DEFAULT)
|
|
169
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
170
|
+
.is_required(true))
|
|
171
|
+
.template_param(new_parameter(account_guid, key: 'account_guid')
|
|
172
|
+
.is_required(true)
|
|
173
|
+
.should_encode(true))
|
|
174
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
175
|
+
.is_required(true))
|
|
176
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
177
|
+
.is_required(true)
|
|
178
|
+
.should_encode(true))
|
|
179
|
+
.auth(Single.new('basicAuth')))
|
|
180
|
+
.response(new_response_handler
|
|
181
|
+
.is_response_void(true)
|
|
182
|
+
.is_api_response(true))
|
|
183
|
+
.execute
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# This endpoint returns a list of account numbers associated with the
|
|
187
|
+
# specified `account`.
|
|
188
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
189
|
+
# version.
|
|
190
|
+
# @param [String] account_identifier Required parameter: Use either the
|
|
191
|
+
# account `id` you defined or the MX-defined account `guid`. See [MX-Defined
|
|
192
|
+
# GUIDs vs IDs Defined by
|
|
193
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-de
|
|
194
|
+
# fined-by-you).
|
|
195
|
+
# @param [String] user_identifier Required parameter: Use either the user
|
|
196
|
+
# `id` you defined or the MX-defined user `guid`. See [MX-Defined GUIDs vs
|
|
197
|
+
# IDs Defined by
|
|
198
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-d
|
|
199
|
+
# efined-by-you).
|
|
200
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
201
|
+
# current page.
|
|
202
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
203
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
204
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
205
|
+
# value of `25` will be used instead.
|
|
206
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
207
|
+
def list_account_numbers_by_account(accept_version,
|
|
208
|
+
account_identifier,
|
|
209
|
+
user_identifier,
|
|
210
|
+
page: nil,
|
|
211
|
+
records_per_page: nil)
|
|
212
|
+
@api_call
|
|
213
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
214
|
+
'/users/{user_identifier}/accounts/{account_identifier}/account_numbers',
|
|
215
|
+
Server::DEFAULT)
|
|
216
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
217
|
+
.is_required(true))
|
|
218
|
+
.template_param(new_parameter(account_identifier, key: 'account_identifier')
|
|
219
|
+
.is_required(true)
|
|
220
|
+
.should_encode(true))
|
|
221
|
+
.template_param(new_parameter(user_identifier, key: 'user_identifier')
|
|
222
|
+
.is_required(true)
|
|
223
|
+
.should_encode(true))
|
|
224
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
225
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
226
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
227
|
+
.auth(Single.new('basicAuth')))
|
|
228
|
+
.response(new_response_handler
|
|
229
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
230
|
+
.deserialize_into(AccountNumbersResponseBody.method(:from_hash))
|
|
231
|
+
.is_api_response(true))
|
|
232
|
+
.execute
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# This endpoint is used to delete existing data and block new data from
|
|
236
|
+
# being stored on the specified account. This may be necessary to comply
|
|
237
|
+
# with certain rules, regulations, or standards. This endpoint also:
|
|
238
|
+
# - Immediately and permanently deletes most data from the account object.
|
|
239
|
+
# Certain information is retained that is necessary for MX to prevent the
|
|
240
|
+
# account from being re-added.
|
|
241
|
+
# - Prevents MX from creating or storing any additional data associated with
|
|
242
|
+
# the account, for example transactions, holdings, statements, and so on.
|
|
243
|
+
# - Immediately and permanently deletes all data associated with the
|
|
244
|
+
# account, for example transactions, holdings, statements, etc.
|
|
245
|
+
# This action is scoped to the member the account belongs to. This means
|
|
246
|
+
# that if the real world account is connected or reconnected via another
|
|
247
|
+
# member, the block will have no effect on that account.
|
|
248
|
+
# This action cannot be taken on accounts where `is_manual` is `true`.
|
|
249
|
+
# Objects deleted as a result of blocking an account will issue a webhook
|
|
250
|
+
# for that object with the action set to deleted. For example, account
|
|
251
|
+
# deleted, transaction deleted, and so on. There is no special webhook or
|
|
252
|
+
# action for blocking.
|
|
253
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
254
|
+
# version.
|
|
255
|
+
# @param [String] account_guid Required parameter: The unique id for an
|
|
256
|
+
# `account`.
|
|
257
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
258
|
+
# `user`, beginning with the prefix `USR-`.
|
|
259
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
260
|
+
def block_account(accept_version,
|
|
261
|
+
account_guid,
|
|
262
|
+
user_guid)
|
|
263
|
+
@api_call
|
|
264
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
265
|
+
'/users/{user_guid}/accounts/{account_guid}/block',
|
|
266
|
+
Server::DEFAULT)
|
|
267
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
268
|
+
.is_required(true))
|
|
269
|
+
.template_param(new_parameter(account_guid, key: 'account_guid')
|
|
270
|
+
.is_required(true)
|
|
271
|
+
.should_encode(true))
|
|
272
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
273
|
+
.is_required(true)
|
|
274
|
+
.should_encode(true))
|
|
275
|
+
.auth(Single.new('basicAuth')))
|
|
276
|
+
.response(new_response_handler
|
|
277
|
+
.is_response_void(true)
|
|
278
|
+
.is_api_response(true))
|
|
279
|
+
.execute
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Merge two or more financial accounts that an end user has identified as
|
|
283
|
+
# duplicates.
|
|
284
|
+
# Provide at least two account GUIDs belonging to the same user.
|
|
285
|
+
# :::danger
|
|
286
|
+
# The response will return a single consolidated account. Any other accounts
|
|
287
|
+
# you provided that were not included in the response will be deleted.
|
|
288
|
+
# This is a destructive action and can't be undone.
|
|
289
|
+
# :::
|
|
290
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
291
|
+
# version.
|
|
292
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
293
|
+
# `user`, beginning with the prefix `USR-`.
|
|
294
|
+
# @param [AccountsMergeRequestBody] body Required parameter: TODO: type
|
|
295
|
+
# description here
|
|
296
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
297
|
+
def merge_accounts(accept_version,
|
|
298
|
+
user_guid,
|
|
299
|
+
body)
|
|
300
|
+
@api_call
|
|
301
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
302
|
+
'/users/{user_guid}/accounts/merge',
|
|
303
|
+
Server::DEFAULT)
|
|
304
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
305
|
+
.is_required(true))
|
|
306
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
307
|
+
.is_required(true)
|
|
308
|
+
.should_encode(true))
|
|
309
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
310
|
+
.body_param(new_parameter(body)
|
|
311
|
+
.is_required(true))
|
|
312
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
313
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
314
|
+
.auth(Single.new('basicAuth')))
|
|
315
|
+
.response(new_response_handler
|
|
316
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
317
|
+
.deserialize_into(AccountResponseBody.method(:from_hash))
|
|
318
|
+
.is_api_response(true))
|
|
319
|
+
.execute
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Use this endpoint to list all monthly account balances associated with an
|
|
323
|
+
# account GUID. Setting `from_date` returns account balances starting from
|
|
324
|
+
# the set month. Setting `to_date` returns account balances ending with the
|
|
325
|
+
# set month.
|
|
326
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
327
|
+
# version.
|
|
328
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
329
|
+
# `user`, beginning with the prefix `USR-`.
|
|
330
|
+
# @param [String] account_guid Required parameter: The unique id for an
|
|
331
|
+
# `account`.
|
|
332
|
+
# @param [String] from_date Required parameter: Filter transactions from
|
|
333
|
+
# this date. This only supports ISO 8601 format without timestamp
|
|
334
|
+
# (YYYY-MM-DD). Defaults to 120 days ago if not provided.
|
|
335
|
+
# @param [String] to_date Required parameter: Filter transactions to this
|
|
336
|
+
# date (at midnight). This only supports ISO 8601 format without timestamp
|
|
337
|
+
# (YYYY-MM-DD). Defaults to 5 days forward from the day the request is made
|
|
338
|
+
# to capture pending transactions.
|
|
339
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
340
|
+
def list_account_balances_by_month(accept_version,
|
|
341
|
+
user_guid,
|
|
342
|
+
account_guid,
|
|
343
|
+
from_date,
|
|
344
|
+
to_date)
|
|
345
|
+
@api_call
|
|
346
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
347
|
+
'/users/{user_guid}/accounts/{account_guid}/monthly_account_balances',
|
|
348
|
+
Server::DEFAULT)
|
|
349
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
350
|
+
.is_required(true))
|
|
351
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
352
|
+
.is_required(true)
|
|
353
|
+
.should_encode(true))
|
|
354
|
+
.template_param(new_parameter(account_guid, key: 'account_guid')
|
|
355
|
+
.is_required(true)
|
|
356
|
+
.should_encode(true))
|
|
357
|
+
.query_param(new_parameter(from_date, key: 'from_date')
|
|
358
|
+
.is_required(true))
|
|
359
|
+
.query_param(new_parameter(to_date, key: 'to_date')
|
|
360
|
+
.is_required(true))
|
|
361
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
362
|
+
.auth(Single.new('basicAuth')))
|
|
363
|
+
.response(new_response_handler
|
|
364
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
365
|
+
.deserialize_into(MonthlyAccountBalancesResponseBody.method(:from_hash))
|
|
366
|
+
.is_api_response(true))
|
|
367
|
+
.execute
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# This endpoint returns a list of account numbers associated with the
|
|
371
|
+
# specified `member`.
|
|
372
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
373
|
+
# version.
|
|
374
|
+
# @param [String] member_guid Required parameter: The unique id for a
|
|
375
|
+
# `member`.
|
|
376
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
377
|
+
# `user`, beginning with the prefix `USR-`.
|
|
378
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
379
|
+
# current page.
|
|
380
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
381
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
382
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
383
|
+
# value of `25` will be used instead.
|
|
384
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
385
|
+
def list_account_numbers_by_member(accept_version,
|
|
386
|
+
member_guid,
|
|
387
|
+
user_guid,
|
|
388
|
+
page: nil,
|
|
389
|
+
records_per_page: nil)
|
|
390
|
+
@api_call
|
|
391
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
392
|
+
'/users/{user_guid}/members/{member_guid}/account_numbers',
|
|
393
|
+
Server::DEFAULT)
|
|
394
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
395
|
+
.is_required(true))
|
|
396
|
+
.template_param(new_parameter(member_guid, key: 'member_guid')
|
|
397
|
+
.is_required(true)
|
|
398
|
+
.should_encode(true))
|
|
399
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
400
|
+
.is_required(true)
|
|
401
|
+
.should_encode(true))
|
|
402
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
403
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
404
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
405
|
+
.auth(Single.new('basicAuth')))
|
|
406
|
+
.response(new_response_handler
|
|
407
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
408
|
+
.deserialize_into(AccountNumbersResponseBody.method(:from_hash))
|
|
409
|
+
.is_api_response(true))
|
|
410
|
+
.execute
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# This endpoint returns an array with information about every account
|
|
414
|
+
# associated with a particular member.
|
|
415
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
416
|
+
# version.
|
|
417
|
+
# @param [String] member_identifier Required parameter: Use either the
|
|
418
|
+
# member `id` you defined or the MX-defined member `guid`. See [MX-Defined
|
|
419
|
+
# GUIDs vs IDs Defined by
|
|
420
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-de
|
|
421
|
+
# fined-by-you).
|
|
422
|
+
# @param [String] user_identifier Required parameter: Use either the user
|
|
423
|
+
# `id` you defined or the MX-defined user `guid`. See [MX-Defined GUIDs vs
|
|
424
|
+
# IDs Defined by
|
|
425
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-d
|
|
426
|
+
# efined-by-you).
|
|
427
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
428
|
+
# current page.
|
|
429
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
430
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
431
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
432
|
+
# value of `25` will be used instead.
|
|
433
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
434
|
+
def list_account_owners_by_member(accept_version,
|
|
435
|
+
member_identifier,
|
|
436
|
+
user_identifier,
|
|
437
|
+
page: nil,
|
|
438
|
+
records_per_page: nil)
|
|
439
|
+
@api_call
|
|
440
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
441
|
+
'/users/{user_identifier}/members/{member_identifier}/account_owners',
|
|
442
|
+
Server::DEFAULT)
|
|
443
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
444
|
+
.is_required(true))
|
|
445
|
+
.template_param(new_parameter(member_identifier, key: 'member_identifier')
|
|
446
|
+
.is_required(true)
|
|
447
|
+
.should_encode(true))
|
|
448
|
+
.template_param(new_parameter(user_identifier, key: 'user_identifier')
|
|
449
|
+
.is_required(true)
|
|
450
|
+
.should_encode(true))
|
|
451
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
452
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
453
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
454
|
+
.auth(Single.new('basicAuth')))
|
|
455
|
+
.response(new_response_handler
|
|
456
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
457
|
+
.deserialize_into(AccountOwnersResponseBody.method(:from_hash))
|
|
458
|
+
.is_api_response(true))
|
|
459
|
+
.execute
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# This endpoint returns a list of all the accounts associated with the
|
|
463
|
+
# specified `member`.
|
|
464
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
465
|
+
# version.
|
|
466
|
+
# @param [String] user_identifier Required parameter: Use either the user
|
|
467
|
+
# `id` you defined or the MX-defined user `guid`. See [MX-Defined GUIDs vs
|
|
468
|
+
# IDs Defined by
|
|
469
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-d
|
|
470
|
+
# efined-by-you).
|
|
471
|
+
# @param [String] member_identifier Required parameter: Use either the
|
|
472
|
+
# member `id` you defined or the MX-defined member `guid`. See [MX-Defined
|
|
473
|
+
# GUIDs vs IDs Defined by
|
|
474
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-de
|
|
475
|
+
# fined-by-you).
|
|
476
|
+
# @param [TrueClass | FalseClass] member_is_managed_by_user Optional
|
|
477
|
+
# parameter: List only accounts whose member is managed by the user.
|
|
478
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
479
|
+
# current page.
|
|
480
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
481
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
482
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
483
|
+
# value of `25` will be used instead.
|
|
484
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
485
|
+
def list_member_accounts(accept_version,
|
|
486
|
+
user_identifier,
|
|
487
|
+
member_identifier,
|
|
488
|
+
member_is_managed_by_user: nil,
|
|
489
|
+
page: nil,
|
|
490
|
+
records_per_page: nil)
|
|
491
|
+
@api_call
|
|
492
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
493
|
+
'/users/{user_identifier}/members/{member_identifier}/accounts',
|
|
494
|
+
Server::DEFAULT)
|
|
495
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
496
|
+
.is_required(true))
|
|
497
|
+
.template_param(new_parameter(user_identifier, key: 'user_identifier')
|
|
498
|
+
.is_required(true)
|
|
499
|
+
.should_encode(true))
|
|
500
|
+
.template_param(new_parameter(member_identifier, key: 'member_identifier')
|
|
501
|
+
.is_required(true)
|
|
502
|
+
.should_encode(true))
|
|
503
|
+
.query_param(new_parameter(member_is_managed_by_user, key: 'member_is_managed_by_user'))
|
|
504
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
505
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
506
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
507
|
+
.auth(Single.new('basicAuth')))
|
|
508
|
+
.response(new_response_handler
|
|
509
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
510
|
+
.deserialize_into(AccountsResponseBody.method(:from_hash))
|
|
511
|
+
.is_api_response(true))
|
|
512
|
+
.execute
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
# This endpoint allows you to read the attributes of an `account` resource.
|
|
516
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
517
|
+
# version.
|
|
518
|
+
# @param [String] account_identifier Required parameter: Use either the
|
|
519
|
+
# account `id` you defined or the MX-defined account `guid`. See [MX-Defined
|
|
520
|
+
# GUIDs vs IDs Defined by
|
|
521
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-de
|
|
522
|
+
# fined-by-you).
|
|
523
|
+
# @param [String] member_identifier Required parameter: Use either the
|
|
524
|
+
# member `id` you defined or the MX-defined member `guid`. See [MX-Defined
|
|
525
|
+
# GUIDs vs IDs Defined by
|
|
526
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-de
|
|
527
|
+
# fined-by-you).
|
|
528
|
+
# @param [String] user_identifier Required parameter: Use either the user
|
|
529
|
+
# `id` you defined or the MX-defined user `guid`. See [MX-Defined GUIDs vs
|
|
530
|
+
# IDs Defined by
|
|
531
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-d
|
|
532
|
+
# efined-by-you).
|
|
533
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
534
|
+
def read_account_by_member(accept_version,
|
|
535
|
+
account_identifier,
|
|
536
|
+
member_identifier,
|
|
537
|
+
user_identifier)
|
|
538
|
+
@api_call
|
|
539
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
540
|
+
'/users/{user_identifier}/members/{member_identifier}/accounts/{account_identifier}',
|
|
541
|
+
Server::DEFAULT)
|
|
542
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
543
|
+
.is_required(true))
|
|
544
|
+
.template_param(new_parameter(account_identifier, key: 'account_identifier')
|
|
545
|
+
.is_required(true)
|
|
546
|
+
.should_encode(true))
|
|
547
|
+
.template_param(new_parameter(member_identifier, key: 'member_identifier')
|
|
548
|
+
.is_required(true)
|
|
549
|
+
.should_encode(true))
|
|
550
|
+
.template_param(new_parameter(user_identifier, key: 'user_identifier')
|
|
551
|
+
.is_required(true)
|
|
552
|
+
.should_encode(true))
|
|
553
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
554
|
+
.auth(Single.new('basicAuth')))
|
|
555
|
+
.response(new_response_handler
|
|
556
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
557
|
+
.deserialize_into(AccountResponseBody.method(:from_hash))
|
|
558
|
+
.is_api_response(true))
|
|
559
|
+
.execute
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
# This endpoint allows you to update certain attributes of an `account`
|
|
563
|
+
# resource, including manual accounts. For manual accounts, you can update
|
|
564
|
+
# every field listed. For aggregated accounts, you can only update
|
|
565
|
+
# `is_business`, `is_hidden` and `metadata`.
|
|
566
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
567
|
+
# version.
|
|
568
|
+
# @param [String] account_identifier Required parameter: Use either the
|
|
569
|
+
# account `id` you defined or the MX-defined account `guid`. See [MX-Defined
|
|
570
|
+
# GUIDs vs IDs Defined by
|
|
571
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-de
|
|
572
|
+
# fined-by-you).
|
|
573
|
+
# @param [String] member_identifier Required parameter: Use either the
|
|
574
|
+
# member `id` you defined or the MX-defined member `guid`. See [MX-Defined
|
|
575
|
+
# GUIDs vs IDs Defined by
|
|
576
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-de
|
|
577
|
+
# fined-by-you).
|
|
578
|
+
# @param [String] user_identifier Required parameter: Use either the user
|
|
579
|
+
# `id` you defined or the MX-defined user `guid`. See [MX-Defined GUIDs vs
|
|
580
|
+
# IDs Defined by
|
|
581
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-d
|
|
582
|
+
# efined-by-you).
|
|
583
|
+
# @param [AccountUpdateRequestBody] body Required parameter: TODO: type
|
|
584
|
+
# description here
|
|
585
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
586
|
+
def update_account_by_member(accept_version,
|
|
587
|
+
account_identifier,
|
|
588
|
+
member_identifier,
|
|
589
|
+
user_identifier,
|
|
590
|
+
body)
|
|
591
|
+
@api_call
|
|
592
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
593
|
+
'/users/{user_identifier}/members/{member_identifier}/accounts/{account_identifier}',
|
|
594
|
+
Server::DEFAULT)
|
|
595
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
596
|
+
.is_required(true))
|
|
597
|
+
.template_param(new_parameter(account_identifier, key: 'account_identifier')
|
|
598
|
+
.is_required(true)
|
|
599
|
+
.should_encode(true))
|
|
600
|
+
.template_param(new_parameter(member_identifier, key: 'member_identifier')
|
|
601
|
+
.is_required(true)
|
|
602
|
+
.should_encode(true))
|
|
603
|
+
.template_param(new_parameter(user_identifier, key: 'user_identifier')
|
|
604
|
+
.is_required(true)
|
|
605
|
+
.should_encode(true))
|
|
606
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
607
|
+
.body_param(new_parameter(body)
|
|
608
|
+
.is_required(true))
|
|
609
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
610
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
611
|
+
.auth(Single.new('basicAuth')))
|
|
612
|
+
.response(new_response_handler
|
|
613
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
614
|
+
.deserialize_into(AccountResponseBody.method(:from_hash))
|
|
615
|
+
.is_api_response(true))
|
|
616
|
+
.execute
|
|
617
|
+
end
|
|
618
|
+
end
|
|
619
|
+
end
|