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,191 @@
|
|
|
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
|
+
# InvestmentHoldingsApi
|
|
8
|
+
class InvestmentHoldingsApi < BaseApi
|
|
9
|
+
# This endpoint lists all holdings associated with the specified member.
|
|
10
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
11
|
+
# version.
|
|
12
|
+
# @param [String] member_guid Required parameter: The unique id for a
|
|
13
|
+
# `member`.
|
|
14
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
15
|
+
# `user`, beginning with the prefix `USR-`.
|
|
16
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
17
|
+
# current page.
|
|
18
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
19
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
20
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
21
|
+
# value of `25` will be used instead.
|
|
22
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
23
|
+
def list_holdings_by_member(accept_version,
|
|
24
|
+
member_guid,
|
|
25
|
+
user_guid,
|
|
26
|
+
page: nil,
|
|
27
|
+
records_per_page: nil)
|
|
28
|
+
@api_call
|
|
29
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
30
|
+
'/users/{user_guid}/members/{member_guid}/investment_holdings',
|
|
31
|
+
Server::DEFAULT)
|
|
32
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
33
|
+
.is_required(true))
|
|
34
|
+
.template_param(new_parameter(member_guid, key: 'member_guid')
|
|
35
|
+
.is_required(true)
|
|
36
|
+
.should_encode(true))
|
|
37
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
38
|
+
.is_required(true)
|
|
39
|
+
.should_encode(true))
|
|
40
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
41
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
42
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
43
|
+
.auth(Single.new('basicAuth')))
|
|
44
|
+
.response(new_response_handler
|
|
45
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
46
|
+
.deserialize_into(InvestmentHoldingsResponseBody.method(:from_hash))
|
|
47
|
+
.is_api_response(true))
|
|
48
|
+
.execute
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# This endpoint lists all holdings associated with the user across all
|
|
52
|
+
# accounts.
|
|
53
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
54
|
+
# version.
|
|
55
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
56
|
+
# `user`, beginning with the prefix `USR-`.
|
|
57
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
58
|
+
# current page.
|
|
59
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
60
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
61
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
62
|
+
# value of `25` will be used instead.
|
|
63
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
64
|
+
def list_holdings(accept_version,
|
|
65
|
+
user_guid,
|
|
66
|
+
page: nil,
|
|
67
|
+
records_per_page: nil)
|
|
68
|
+
@api_call
|
|
69
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
70
|
+
'/users/{user_guid}/investment_holdings',
|
|
71
|
+
Server::DEFAULT)
|
|
72
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
73
|
+
.is_required(true))
|
|
74
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
75
|
+
.is_required(true)
|
|
76
|
+
.should_encode(true))
|
|
77
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
78
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
79
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
80
|
+
.auth(Single.new('basicAuth')))
|
|
81
|
+
.response(new_response_handler
|
|
82
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
83
|
+
.deserialize_into(InvestmentHoldingsResponseBody.method(:from_hash))
|
|
84
|
+
.is_api_response(true))
|
|
85
|
+
.execute
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Use this endpoint to read the attributes of a specific `holding`.
|
|
89
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
90
|
+
# version.
|
|
91
|
+
# @param [String] holding_guid Required parameter: The unique id for a
|
|
92
|
+
# `holding`.
|
|
93
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
94
|
+
# `user`, beginning with the prefix `USR-`.
|
|
95
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
96
|
+
def read_holding(accept_version,
|
|
97
|
+
holding_guid,
|
|
98
|
+
user_guid)
|
|
99
|
+
@api_call
|
|
100
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
101
|
+
'/users/{user_guid}/investment_holdings/{holding_guid}',
|
|
102
|
+
Server::DEFAULT)
|
|
103
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
104
|
+
.is_required(true))
|
|
105
|
+
.template_param(new_parameter(holding_guid, key: 'holding_guid')
|
|
106
|
+
.is_required(true)
|
|
107
|
+
.should_encode(true))
|
|
108
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
109
|
+
.is_required(true)
|
|
110
|
+
.should_encode(true))
|
|
111
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
112
|
+
.auth(Single.new('basicAuth')))
|
|
113
|
+
.response(new_response_handler
|
|
114
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
115
|
+
.deserialize_into(InvestmentHoldingResponseBody.method(:from_hash))
|
|
116
|
+
.is_api_response(true))
|
|
117
|
+
.execute
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# This endpoint lists all holdings associated with the particular account
|
|
121
|
+
# defined.
|
|
122
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
123
|
+
# version.
|
|
124
|
+
# @param [String] account_guid Required parameter: The unique id for an
|
|
125
|
+
# `account`.
|
|
126
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
127
|
+
# `user`, beginning with the prefix `USR-`.
|
|
128
|
+
# @param [Integer] page Optional parameter: Results are paginated. Specify
|
|
129
|
+
# current page.
|
|
130
|
+
# @param [Integer] records_per_page Optional parameter: This specifies the
|
|
131
|
+
# number of records to be returned on each page. Defaults to `25`. The valid
|
|
132
|
+
# range is from `10` to `1000`. If the value exceeds `1000`, the default
|
|
133
|
+
# value of `25` will be used instead.
|
|
134
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
135
|
+
def list_holdings_by_account(accept_version,
|
|
136
|
+
account_guid,
|
|
137
|
+
user_guid,
|
|
138
|
+
page: nil,
|
|
139
|
+
records_per_page: nil)
|
|
140
|
+
@api_call
|
|
141
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
142
|
+
'/users/{user_guid}/accounts/{account_guid}/investment_holdings',
|
|
143
|
+
Server::DEFAULT)
|
|
144
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
145
|
+
.is_required(true))
|
|
146
|
+
.template_param(new_parameter(account_guid, key: 'account_guid')
|
|
147
|
+
.is_required(true)
|
|
148
|
+
.should_encode(true))
|
|
149
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
150
|
+
.is_required(true)
|
|
151
|
+
.should_encode(true))
|
|
152
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
153
|
+
.query_param(new_parameter(records_per_page, key: 'records_per_page'))
|
|
154
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
155
|
+
.auth(Single.new('basicAuth')))
|
|
156
|
+
.response(new_response_handler
|
|
157
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
158
|
+
.deserialize_into(InvestmentHoldingsResponseBody.method(:from_hash))
|
|
159
|
+
.is_api_response(true))
|
|
160
|
+
.execute
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# This endpoint deactivates the specific user from the
|
|
164
|
+
# `/investment_holdings` product. To reactivate a user, use any of the
|
|
165
|
+
# current `/investment_holding` endpoints.
|
|
166
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
167
|
+
# version.
|
|
168
|
+
# @param [String] user_guid Required parameter: The unique identifier for a
|
|
169
|
+
# `user`, beginning with the prefix `USR-`.
|
|
170
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
171
|
+
def deactivate_user(accept_version,
|
|
172
|
+
user_guid)
|
|
173
|
+
@api_call
|
|
174
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
175
|
+
'/users/{user_guid}/investment_holdings_deactivate',
|
|
176
|
+
Server::DEFAULT)
|
|
177
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
178
|
+
.is_required(true))
|
|
179
|
+
.template_param(new_parameter(user_guid, key: 'user_guid')
|
|
180
|
+
.is_required(true)
|
|
181
|
+
.should_encode(true))
|
|
182
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
183
|
+
.auth(Single.new('basicAuth')))
|
|
184
|
+
.response(new_response_handler
|
|
185
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
186
|
+
.deserialize_into(InvestmentHoldingsDeactivation.method(:from_hash))
|
|
187
|
+
.is_api_response(true))
|
|
188
|
+
.execute
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
# JobsApi
|
|
8
|
+
class JobsApi < BaseApi
|
|
9
|
+
# Use this endpoint to read the attributes of a specific job.
|
|
10
|
+
# :::warning
|
|
11
|
+
# New implementations shouldn't use this endpoint. It is maintained for
|
|
12
|
+
# compatibility with our Nexus API only.
|
|
13
|
+
# :::
|
|
14
|
+
# @param [String] accept_version Required parameter: MX Platform API
|
|
15
|
+
# version.
|
|
16
|
+
# @param [String] user_identifier Required parameter: Use either the user
|
|
17
|
+
# `id` you defined or the MX-defined user `guid`. See [MX-Defined GUIDs vs
|
|
18
|
+
# IDs Defined by
|
|
19
|
+
# You](/products/connectivity/overview/held-data/#mx-defined-guids-vs-ids-d
|
|
20
|
+
# efined-by-you).
|
|
21
|
+
# @param [String] job_guid Required parameter: The unique identifier for the
|
|
22
|
+
# job. Defined by MX.
|
|
23
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
24
|
+
def read_job(accept_version,
|
|
25
|
+
user_identifier,
|
|
26
|
+
job_guid)
|
|
27
|
+
@api_call
|
|
28
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
29
|
+
'/users/{user_identifier}/jobs/{job_guid}',
|
|
30
|
+
Server::DEFAULT)
|
|
31
|
+
.header_param(new_parameter(accept_version, key: 'Accept-Version')
|
|
32
|
+
.is_required(true))
|
|
33
|
+
.template_param(new_parameter(user_identifier, key: 'user_identifier')
|
|
34
|
+
.is_required(true)
|
|
35
|
+
.should_encode(true))
|
|
36
|
+
.template_param(new_parameter(job_guid, key: 'job_guid')
|
|
37
|
+
.is_required(true)
|
|
38
|
+
.should_encode(true))
|
|
39
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
40
|
+
.auth(Single.new('basicAuth')))
|
|
41
|
+
.response(new_response_handler
|
|
42
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
43
|
+
.deserialize_into(JobResponseBody.method(:from_hash))
|
|
44
|
+
.is_api_response(true))
|
|
45
|
+
.execute
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|