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,422 @@
|
|
|
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
|
+
# ManagedAccountCreateRequest Model.
|
|
8
|
+
class ManagedAccountCreateRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The account number associated with the account. This will typically be a
|
|
13
|
+
# masked or partial account number.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :account_number
|
|
16
|
+
|
|
17
|
+
# The annual percentage rate associated with the `account`.
|
|
18
|
+
# @return [Float]
|
|
19
|
+
attr_accessor :apr
|
|
20
|
+
|
|
21
|
+
# The annual percentage yield associated with the `account`.
|
|
22
|
+
# @return [Float]
|
|
23
|
+
attr_accessor :apy
|
|
24
|
+
|
|
25
|
+
# The balance that is available for use in asset accounts like checking and
|
|
26
|
+
# savings.
|
|
27
|
+
# `PENDING` transactions are typically (not always) taken into account with
|
|
28
|
+
# the available balance.
|
|
29
|
+
# `available_balance` will usually be a positive value for all account
|
|
30
|
+
# types, determined in the same way as the balance field.
|
|
31
|
+
# @return [Float]
|
|
32
|
+
attr_accessor :available_balance
|
|
33
|
+
|
|
34
|
+
# The amount of credit available for use in liability accounts like credit
|
|
35
|
+
# cards and lines of credit.
|
|
36
|
+
# `PENDING` transactions are typically (not always) taken into account with
|
|
37
|
+
# available credit.
|
|
38
|
+
# `available_credit` will usually be a positive value for all account types,
|
|
39
|
+
# determined in the same way as the `balance` field.
|
|
40
|
+
# @return [Float]
|
|
41
|
+
attr_accessor :available_credit
|
|
42
|
+
|
|
43
|
+
# The current balance of the account.
|
|
44
|
+
# `PENDING` transactions are typically not taken into account with the
|
|
45
|
+
# current balance, but this may not always be the case.
|
|
46
|
+
#
|
|
47
|
+
# The balance will usually be a positive value for all account types.
|
|
48
|
+
# Asset-type accounts (`CHECKING`, `SAVINGS`, `INVESTMENT`) may have a
|
|
49
|
+
# negative balance if they are in overdraft.
|
|
50
|
+
# Debt-type accounts (`CREDIT_CARD`, `LOAN`, `LINE_OF_CREDIT`, `MORTGAGE`)
|
|
51
|
+
# may have a negative balance if they are overpaid.
|
|
52
|
+
# @return [Float]
|
|
53
|
+
attr_accessor :balance
|
|
54
|
+
|
|
55
|
+
# Can only be updated for manual accounts. The sum of money paid to the
|
|
56
|
+
# policyholder or annuity holder in the event the policy is voluntarily
|
|
57
|
+
# terminated before it matures, or the insured event occurs.
|
|
58
|
+
# @return [Float]
|
|
59
|
+
attr_accessor :cash_surrender_value
|
|
60
|
+
|
|
61
|
+
# The credit limit associated with the `account`.
|
|
62
|
+
# @return [Float]
|
|
63
|
+
attr_accessor :credit_limit
|
|
64
|
+
|
|
65
|
+
# The three-character ISO 4217 currency code, for example, `USD`.
|
|
66
|
+
# @return [String]
|
|
67
|
+
attr_accessor :currency_code
|
|
68
|
+
|
|
69
|
+
# The day of the month the payment is due. For example, the 14th is passed
|
|
70
|
+
# as `14`.
|
|
71
|
+
# @return [Integer]
|
|
72
|
+
attr_accessor :day_payment_is_due
|
|
73
|
+
|
|
74
|
+
# The amount paid to the beneficiary of the account upon death of the
|
|
75
|
+
# account owner.
|
|
76
|
+
# @return [Integer]
|
|
77
|
+
attr_accessor :death_benefit
|
|
78
|
+
|
|
79
|
+
# The unique partner-defined identifier for the account.
|
|
80
|
+
# @return [String]
|
|
81
|
+
attr_accessor :id
|
|
82
|
+
|
|
83
|
+
# The interest rate associated with the account.
|
|
84
|
+
# @return [Float]
|
|
85
|
+
attr_accessor :interest_rate
|
|
86
|
+
|
|
87
|
+
# Indicates whether an account has been closed. Closed accounts will no
|
|
88
|
+
# longer update balance or transaction information.
|
|
89
|
+
# @return [TrueClass | FalseClass]
|
|
90
|
+
attr_accessor :is_closed
|
|
91
|
+
|
|
92
|
+
# Indicates whether the account is hidden. Hidden accounts can still have an
|
|
93
|
+
# active balance and receive transactions. Defaults to `false`.
|
|
94
|
+
# @return [TrueClass | FalseClass]
|
|
95
|
+
attr_accessor :is_hidden
|
|
96
|
+
|
|
97
|
+
# The amount of the most recent payment on the `account`.
|
|
98
|
+
# @return [Float]
|
|
99
|
+
attr_accessor :last_payment
|
|
100
|
+
|
|
101
|
+
# The date and time when the last payment was made, represented in ISO 8601
|
|
102
|
+
# format with a timestamp.
|
|
103
|
+
# @return [String]
|
|
104
|
+
attr_accessor :last_payment_at
|
|
105
|
+
|
|
106
|
+
# The amount of the loan associated with the `account`.
|
|
107
|
+
# @return [Float]
|
|
108
|
+
attr_accessor :loan_amount
|
|
109
|
+
|
|
110
|
+
# The date on which the `account` matures.
|
|
111
|
+
# @return [String]
|
|
112
|
+
attr_accessor :matures_on
|
|
113
|
+
|
|
114
|
+
# Additional information you can store about the `account`.
|
|
115
|
+
# @return [String]
|
|
116
|
+
attr_accessor :metadata
|
|
117
|
+
|
|
118
|
+
# The minimum balance associated with the `account`.
|
|
119
|
+
# @return [Float]
|
|
120
|
+
attr_accessor :minimum_balance
|
|
121
|
+
|
|
122
|
+
# The minimum payment required for an account. This can apply to any debt
|
|
123
|
+
# account.
|
|
124
|
+
# @return [Float]
|
|
125
|
+
attr_accessor :minimum_payment
|
|
126
|
+
|
|
127
|
+
# The name of the account.
|
|
128
|
+
# @return [String]
|
|
129
|
+
attr_accessor :name
|
|
130
|
+
|
|
131
|
+
# An alternate name for the `account`.
|
|
132
|
+
# @return [String]
|
|
133
|
+
attr_accessor :nickname
|
|
134
|
+
|
|
135
|
+
# The original balance associated with the `account`.
|
|
136
|
+
# @return [Float]
|
|
137
|
+
attr_accessor :original_balance
|
|
138
|
+
|
|
139
|
+
# The date and time at which the next payment is due on the `account`.
|
|
140
|
+
# @return [String]
|
|
141
|
+
attr_accessor :payment_due_at
|
|
142
|
+
|
|
143
|
+
# The payoff balance for a debt account. This will normally be a positive
|
|
144
|
+
# number.
|
|
145
|
+
# @return [Float]
|
|
146
|
+
attr_accessor :payoff_balance
|
|
147
|
+
|
|
148
|
+
# The routing number for the `account`.
|
|
149
|
+
# @return [String]
|
|
150
|
+
attr_accessor :routing_number
|
|
151
|
+
|
|
152
|
+
# The date on which the loan from a debt account started.
|
|
153
|
+
# @return [String]
|
|
154
|
+
attr_accessor :started_on
|
|
155
|
+
|
|
156
|
+
# The account's subtype, e.g., `PLAN_401_K`, `MONEY_MARKET`, or
|
|
157
|
+
# `HOME_EQUITY`.
|
|
158
|
+
# @return [String]
|
|
159
|
+
attr_accessor :subtype
|
|
160
|
+
|
|
161
|
+
# The general or parent type of the `account`.
|
|
162
|
+
# @return [String]
|
|
163
|
+
attr_accessor :type
|
|
164
|
+
|
|
165
|
+
# A mapping from model property names to API property names.
|
|
166
|
+
def self.names
|
|
167
|
+
@_hash = {} if @_hash.nil?
|
|
168
|
+
@_hash['account_number'] = 'account_number'
|
|
169
|
+
@_hash['apr'] = 'apr'
|
|
170
|
+
@_hash['apy'] = 'apy'
|
|
171
|
+
@_hash['available_balance'] = 'available_balance'
|
|
172
|
+
@_hash['available_credit'] = 'available_credit'
|
|
173
|
+
@_hash['balance'] = 'balance'
|
|
174
|
+
@_hash['cash_surrender_value'] = 'cash_surrender_value'
|
|
175
|
+
@_hash['credit_limit'] = 'credit_limit'
|
|
176
|
+
@_hash['currency_code'] = 'currency_code'
|
|
177
|
+
@_hash['day_payment_is_due'] = 'day_payment_is_due'
|
|
178
|
+
@_hash['death_benefit'] = 'death_benefit'
|
|
179
|
+
@_hash['id'] = 'id'
|
|
180
|
+
@_hash['interest_rate'] = 'interest_rate'
|
|
181
|
+
@_hash['is_closed'] = 'is_closed'
|
|
182
|
+
@_hash['is_hidden'] = 'is_hidden'
|
|
183
|
+
@_hash['last_payment'] = 'last_payment'
|
|
184
|
+
@_hash['last_payment_at'] = 'last_payment_at'
|
|
185
|
+
@_hash['loan_amount'] = 'loan_amount'
|
|
186
|
+
@_hash['matures_on'] = 'matures_on'
|
|
187
|
+
@_hash['metadata'] = 'metadata'
|
|
188
|
+
@_hash['minimum_balance'] = 'minimum_balance'
|
|
189
|
+
@_hash['minimum_payment'] = 'minimum_payment'
|
|
190
|
+
@_hash['name'] = 'name'
|
|
191
|
+
@_hash['nickname'] = 'nickname'
|
|
192
|
+
@_hash['original_balance'] = 'original_balance'
|
|
193
|
+
@_hash['payment_due_at'] = 'payment_due_at'
|
|
194
|
+
@_hash['payoff_balance'] = 'payoff_balance'
|
|
195
|
+
@_hash['routing_number'] = 'routing_number'
|
|
196
|
+
@_hash['started_on'] = 'started_on'
|
|
197
|
+
@_hash['subtype'] = 'subtype'
|
|
198
|
+
@_hash['type'] = 'type'
|
|
199
|
+
@_hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# An array for optional fields
|
|
203
|
+
def self.optionals
|
|
204
|
+
%w[
|
|
205
|
+
account_number
|
|
206
|
+
apr
|
|
207
|
+
apy
|
|
208
|
+
available_balance
|
|
209
|
+
available_credit
|
|
210
|
+
cash_surrender_value
|
|
211
|
+
credit_limit
|
|
212
|
+
currency_code
|
|
213
|
+
day_payment_is_due
|
|
214
|
+
death_benefit
|
|
215
|
+
interest_rate
|
|
216
|
+
is_closed
|
|
217
|
+
is_hidden
|
|
218
|
+
last_payment
|
|
219
|
+
last_payment_at
|
|
220
|
+
loan_amount
|
|
221
|
+
matures_on
|
|
222
|
+
metadata
|
|
223
|
+
minimum_balance
|
|
224
|
+
minimum_payment
|
|
225
|
+
nickname
|
|
226
|
+
original_balance
|
|
227
|
+
payment_due_at
|
|
228
|
+
payoff_balance
|
|
229
|
+
routing_number
|
|
230
|
+
started_on
|
|
231
|
+
subtype
|
|
232
|
+
]
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# An array for nullable fields
|
|
236
|
+
def self.nullables
|
|
237
|
+
%w[
|
|
238
|
+
available_credit
|
|
239
|
+
currency_code
|
|
240
|
+
day_payment_is_due
|
|
241
|
+
]
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
def initialize(balance:, id:, name:, type:, account_number: SKIP, apr: SKIP,
|
|
245
|
+
apy: SKIP, available_balance: SKIP, available_credit: SKIP,
|
|
246
|
+
cash_surrender_value: SKIP, credit_limit: SKIP,
|
|
247
|
+
currency_code: SKIP, day_payment_is_due: SKIP,
|
|
248
|
+
death_benefit: SKIP, interest_rate: SKIP, is_closed: SKIP,
|
|
249
|
+
is_hidden: SKIP, last_payment: SKIP, last_payment_at: SKIP,
|
|
250
|
+
loan_amount: SKIP, matures_on: SKIP, metadata: SKIP,
|
|
251
|
+
minimum_balance: SKIP, minimum_payment: SKIP, nickname: SKIP,
|
|
252
|
+
original_balance: SKIP, payment_due_at: SKIP,
|
|
253
|
+
payoff_balance: SKIP, routing_number: SKIP, started_on: SKIP,
|
|
254
|
+
subtype: SKIP, additional_properties: nil)
|
|
255
|
+
# Add additional model properties to the instance
|
|
256
|
+
additional_properties = {} if additional_properties.nil?
|
|
257
|
+
|
|
258
|
+
@account_number = account_number unless account_number == SKIP
|
|
259
|
+
@apr = apr unless apr == SKIP
|
|
260
|
+
@apy = apy unless apy == SKIP
|
|
261
|
+
@available_balance = available_balance unless available_balance == SKIP
|
|
262
|
+
@available_credit = available_credit unless available_credit == SKIP
|
|
263
|
+
@balance = balance
|
|
264
|
+
@cash_surrender_value = cash_surrender_value unless cash_surrender_value == SKIP
|
|
265
|
+
@credit_limit = credit_limit unless credit_limit == SKIP
|
|
266
|
+
@currency_code = currency_code unless currency_code == SKIP
|
|
267
|
+
@day_payment_is_due = day_payment_is_due unless day_payment_is_due == SKIP
|
|
268
|
+
@death_benefit = death_benefit unless death_benefit == SKIP
|
|
269
|
+
@id = id
|
|
270
|
+
@interest_rate = interest_rate unless interest_rate == SKIP
|
|
271
|
+
@is_closed = is_closed unless is_closed == SKIP
|
|
272
|
+
@is_hidden = is_hidden unless is_hidden == SKIP
|
|
273
|
+
@last_payment = last_payment unless last_payment == SKIP
|
|
274
|
+
@last_payment_at = last_payment_at unless last_payment_at == SKIP
|
|
275
|
+
@loan_amount = loan_amount unless loan_amount == SKIP
|
|
276
|
+
@matures_on = matures_on unless matures_on == SKIP
|
|
277
|
+
@metadata = metadata unless metadata == SKIP
|
|
278
|
+
@minimum_balance = minimum_balance unless minimum_balance == SKIP
|
|
279
|
+
@minimum_payment = minimum_payment unless minimum_payment == SKIP
|
|
280
|
+
@name = name
|
|
281
|
+
@nickname = nickname unless nickname == SKIP
|
|
282
|
+
@original_balance = original_balance unless original_balance == SKIP
|
|
283
|
+
@payment_due_at = payment_due_at unless payment_due_at == SKIP
|
|
284
|
+
@payoff_balance = payoff_balance unless payoff_balance == SKIP
|
|
285
|
+
@routing_number = routing_number unless routing_number == SKIP
|
|
286
|
+
@started_on = started_on unless started_on == SKIP
|
|
287
|
+
@subtype = subtype unless subtype == SKIP
|
|
288
|
+
@type = type
|
|
289
|
+
@additional_properties = additional_properties
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Creates an instance of the object from a hash.
|
|
293
|
+
def self.from_hash(hash)
|
|
294
|
+
return nil unless hash
|
|
295
|
+
|
|
296
|
+
# Extract variables from the hash.
|
|
297
|
+
balance = hash.key?('balance') ? hash['balance'] : nil
|
|
298
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
299
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
300
|
+
type = hash.key?('type') ? hash['type'] : nil
|
|
301
|
+
account_number =
|
|
302
|
+
hash.key?('account_number') ? hash['account_number'] : SKIP
|
|
303
|
+
apr = hash.key?('apr') ? hash['apr'] : SKIP
|
|
304
|
+
apy = hash.key?('apy') ? hash['apy'] : SKIP
|
|
305
|
+
available_balance =
|
|
306
|
+
hash.key?('available_balance') ? hash['available_balance'] : SKIP
|
|
307
|
+
available_credit =
|
|
308
|
+
hash.key?('available_credit') ? hash['available_credit'] : SKIP
|
|
309
|
+
cash_surrender_value =
|
|
310
|
+
hash.key?('cash_surrender_value') ? hash['cash_surrender_value'] : SKIP
|
|
311
|
+
credit_limit = hash.key?('credit_limit') ? hash['credit_limit'] : SKIP
|
|
312
|
+
currency_code = hash.key?('currency_code') ? hash['currency_code'] : SKIP
|
|
313
|
+
day_payment_is_due =
|
|
314
|
+
hash.key?('day_payment_is_due') ? hash['day_payment_is_due'] : SKIP
|
|
315
|
+
death_benefit = hash.key?('death_benefit') ? hash['death_benefit'] : SKIP
|
|
316
|
+
interest_rate = hash.key?('interest_rate') ? hash['interest_rate'] : SKIP
|
|
317
|
+
is_closed = hash.key?('is_closed') ? hash['is_closed'] : SKIP
|
|
318
|
+
is_hidden = hash.key?('is_hidden') ? hash['is_hidden'] : SKIP
|
|
319
|
+
last_payment = hash.key?('last_payment') ? hash['last_payment'] : SKIP
|
|
320
|
+
last_payment_at =
|
|
321
|
+
hash.key?('last_payment_at') ? hash['last_payment_at'] : SKIP
|
|
322
|
+
loan_amount = hash.key?('loan_amount') ? hash['loan_amount'] : SKIP
|
|
323
|
+
matures_on = hash.key?('matures_on') ? hash['matures_on'] : SKIP
|
|
324
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
325
|
+
minimum_balance =
|
|
326
|
+
hash.key?('minimum_balance') ? hash['minimum_balance'] : SKIP
|
|
327
|
+
minimum_payment =
|
|
328
|
+
hash.key?('minimum_payment') ? hash['minimum_payment'] : SKIP
|
|
329
|
+
nickname = hash.key?('nickname') ? hash['nickname'] : SKIP
|
|
330
|
+
original_balance =
|
|
331
|
+
hash.key?('original_balance') ? hash['original_balance'] : SKIP
|
|
332
|
+
payment_due_at =
|
|
333
|
+
hash.key?('payment_due_at') ? hash['payment_due_at'] : SKIP
|
|
334
|
+
payoff_balance =
|
|
335
|
+
hash.key?('payoff_balance') ? hash['payoff_balance'] : SKIP
|
|
336
|
+
routing_number =
|
|
337
|
+
hash.key?('routing_number') ? hash['routing_number'] : SKIP
|
|
338
|
+
started_on = hash.key?('started_on') ? hash['started_on'] : SKIP
|
|
339
|
+
subtype = hash.key?('subtype') ? hash['subtype'] : SKIP
|
|
340
|
+
|
|
341
|
+
# Create a new hash for additional properties, removing known properties.
|
|
342
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
343
|
+
|
|
344
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
345
|
+
new_hash, proc { |value| value }
|
|
346
|
+
)
|
|
347
|
+
|
|
348
|
+
# Create object from extracted values.
|
|
349
|
+
ManagedAccountCreateRequest.new(balance: balance,
|
|
350
|
+
id: id,
|
|
351
|
+
name: name,
|
|
352
|
+
type: type,
|
|
353
|
+
account_number: account_number,
|
|
354
|
+
apr: apr,
|
|
355
|
+
apy: apy,
|
|
356
|
+
available_balance: available_balance,
|
|
357
|
+
available_credit: available_credit,
|
|
358
|
+
cash_surrender_value: cash_surrender_value,
|
|
359
|
+
credit_limit: credit_limit,
|
|
360
|
+
currency_code: currency_code,
|
|
361
|
+
day_payment_is_due: day_payment_is_due,
|
|
362
|
+
death_benefit: death_benefit,
|
|
363
|
+
interest_rate: interest_rate,
|
|
364
|
+
is_closed: is_closed,
|
|
365
|
+
is_hidden: is_hidden,
|
|
366
|
+
last_payment: last_payment,
|
|
367
|
+
last_payment_at: last_payment_at,
|
|
368
|
+
loan_amount: loan_amount,
|
|
369
|
+
matures_on: matures_on,
|
|
370
|
+
metadata: metadata,
|
|
371
|
+
minimum_balance: minimum_balance,
|
|
372
|
+
minimum_payment: minimum_payment,
|
|
373
|
+
nickname: nickname,
|
|
374
|
+
original_balance: original_balance,
|
|
375
|
+
payment_due_at: payment_due_at,
|
|
376
|
+
payoff_balance: payoff_balance,
|
|
377
|
+
routing_number: routing_number,
|
|
378
|
+
started_on: started_on,
|
|
379
|
+
subtype: subtype,
|
|
380
|
+
additional_properties: additional_properties)
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Provides a human-readable string representation of the object.
|
|
384
|
+
def to_s
|
|
385
|
+
class_name = self.class.name.split('::').last
|
|
386
|
+
"<#{class_name} account_number: #{@account_number}, apr: #{@apr}, apy: #{@apy},"\
|
|
387
|
+
" available_balance: #{@available_balance}, available_credit: #{@available_credit}, balance:"\
|
|
388
|
+
" #{@balance}, cash_surrender_value: #{@cash_surrender_value}, credit_limit:"\
|
|
389
|
+
" #{@credit_limit}, currency_code: #{@currency_code}, day_payment_is_due:"\
|
|
390
|
+
" #{@day_payment_is_due}, death_benefit: #{@death_benefit}, id: #{@id}, interest_rate:"\
|
|
391
|
+
" #{@interest_rate}, is_closed: #{@is_closed}, is_hidden: #{@is_hidden}, last_payment:"\
|
|
392
|
+
" #{@last_payment}, last_payment_at: #{@last_payment_at}, loan_amount: #{@loan_amount},"\
|
|
393
|
+
" matures_on: #{@matures_on}, metadata: #{@metadata}, minimum_balance: #{@minimum_balance},"\
|
|
394
|
+
" minimum_payment: #{@minimum_payment}, name: #{@name}, nickname: #{@nickname},"\
|
|
395
|
+
" original_balance: #{@original_balance}, payment_due_at: #{@payment_due_at},"\
|
|
396
|
+
" payoff_balance: #{@payoff_balance}, routing_number: #{@routing_number}, started_on:"\
|
|
397
|
+
" #{@started_on}, subtype: #{@subtype}, type: #{@type}, additional_properties:"\
|
|
398
|
+
" #{@additional_properties}>"
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
402
|
+
def inspect
|
|
403
|
+
class_name = self.class.name.split('::').last
|
|
404
|
+
"<#{class_name} account_number: #{@account_number.inspect}, apr: #{@apr.inspect}, apy:"\
|
|
405
|
+
" #{@apy.inspect}, available_balance: #{@available_balance.inspect}, available_credit:"\
|
|
406
|
+
" #{@available_credit.inspect}, balance: #{@balance.inspect}, cash_surrender_value:"\
|
|
407
|
+
" #{@cash_surrender_value.inspect}, credit_limit: #{@credit_limit.inspect}, currency_code:"\
|
|
408
|
+
" #{@currency_code.inspect}, day_payment_is_due: #{@day_payment_is_due.inspect},"\
|
|
409
|
+
" death_benefit: #{@death_benefit.inspect}, id: #{@id.inspect}, interest_rate:"\
|
|
410
|
+
" #{@interest_rate.inspect}, is_closed: #{@is_closed.inspect}, is_hidden:"\
|
|
411
|
+
" #{@is_hidden.inspect}, last_payment: #{@last_payment.inspect}, last_payment_at:"\
|
|
412
|
+
" #{@last_payment_at.inspect}, loan_amount: #{@loan_amount.inspect}, matures_on:"\
|
|
413
|
+
" #{@matures_on.inspect}, metadata: #{@metadata.inspect}, minimum_balance:"\
|
|
414
|
+
" #{@minimum_balance.inspect}, minimum_payment: #{@minimum_payment.inspect}, name:"\
|
|
415
|
+
" #{@name.inspect}, nickname: #{@nickname.inspect}, original_balance:"\
|
|
416
|
+
" #{@original_balance.inspect}, payment_due_at: #{@payment_due_at.inspect}, payoff_balance:"\
|
|
417
|
+
" #{@payoff_balance.inspect}, routing_number: #{@routing_number.inspect}, started_on:"\
|
|
418
|
+
" #{@started_on.inspect}, subtype: #{@subtype.inspect}, type: #{@type.inspect},"\
|
|
419
|
+
" additional_properties: #{@additional_properties}>"
|
|
420
|
+
end
|
|
421
|
+
end
|
|
422
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
# ManagedAccountCreateRequestBody Model.
|
|
8
|
+
class ManagedAccountCreateRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [ManagedAccountCreateRequest]
|
|
14
|
+
attr_accessor :account
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['account'] = 'account'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
account
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(account: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@account = account unless account == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
account = ManagedAccountCreateRequest.from_hash(hash['account']) if hash['account']
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
ManagedAccountCreateRequestBody.new(account: account,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} account: #{@account}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} account: #{@account.inspect}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|