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,309 @@
|
|
|
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
|
+
# AccountCreateRequest Model.
|
|
8
|
+
class AccountCreateRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The account's subtype, for example, `PLAN_401_K`, `MONEY_MARKET`, or
|
|
13
|
+
# `HOME_EQUITY`. Each subtype belongs to an account `type`. For a full list
|
|
14
|
+
# of account subtypes and types, see
|
|
15
|
+
# [Accounts](/api-reference/platform-api/reference/account-types).
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :account_subtype
|
|
18
|
+
|
|
19
|
+
# The type of account. Some account types may include subtypes.
|
|
20
|
+
# @return [AccountType]
|
|
21
|
+
attr_accessor :account_type
|
|
22
|
+
|
|
23
|
+
# The annual percentage rate associated with the `account`.
|
|
24
|
+
# @return [Float]
|
|
25
|
+
attr_accessor :apr
|
|
26
|
+
|
|
27
|
+
# The annual percentage yield associated with the `account`.
|
|
28
|
+
# @return [Float]
|
|
29
|
+
attr_accessor :apy
|
|
30
|
+
|
|
31
|
+
# The balance that is available for use in asset accounts like checking and
|
|
32
|
+
# savings.
|
|
33
|
+
# `PENDING` transactions are typically (not always) taken into account with
|
|
34
|
+
# the available balance.
|
|
35
|
+
# `available_balance` will usually be a positive value for all account
|
|
36
|
+
# types, determined in the same way as the balance field.
|
|
37
|
+
# @return [Float]
|
|
38
|
+
attr_accessor :available_balance
|
|
39
|
+
|
|
40
|
+
# The current balance of the account.
|
|
41
|
+
# `PENDING` transactions are typically not taken into account with the
|
|
42
|
+
# current balance, but this may not always be the case.
|
|
43
|
+
#
|
|
44
|
+
# The balance will usually be a positive value for all account types.
|
|
45
|
+
# Asset-type accounts (`CHECKING`, `SAVINGS`, `INVESTMENT`) may have a
|
|
46
|
+
# negative balance if they are in overdraft.
|
|
47
|
+
# Debt-type accounts (`CREDIT_CARD`, `LOAN`, `LINE_OF_CREDIT`, `MORTGAGE`)
|
|
48
|
+
# may have a negative balance if they are overpaid.
|
|
49
|
+
# @return [Float]
|
|
50
|
+
attr_accessor :balance
|
|
51
|
+
|
|
52
|
+
# The sum of money paid to the policyholder or annuity holder in the event
|
|
53
|
+
# the policy is voluntarily terminated before it matures, or the insured
|
|
54
|
+
# event occurs.
|
|
55
|
+
# @return [Float]
|
|
56
|
+
attr_accessor :cash_surrender_value
|
|
57
|
+
|
|
58
|
+
# The credit limit associated with the `account`.
|
|
59
|
+
# @return [Float]
|
|
60
|
+
attr_accessor :credit_limit
|
|
61
|
+
|
|
62
|
+
# The three-character ISO 4217 currency code, for example, `USD`.
|
|
63
|
+
# @return [String]
|
|
64
|
+
attr_accessor :currency_code
|
|
65
|
+
|
|
66
|
+
# The amount paid to the beneficiary of the account upon death of the
|
|
67
|
+
# account owner.
|
|
68
|
+
# @return [Integer]
|
|
69
|
+
attr_accessor :death_benefit
|
|
70
|
+
|
|
71
|
+
# The interest rate associated with the account.
|
|
72
|
+
# @return [Float]
|
|
73
|
+
attr_accessor :interest_rate
|
|
74
|
+
|
|
75
|
+
# Indicates whether the account is a business account.
|
|
76
|
+
# @return [TrueClass | FalseClass]
|
|
77
|
+
attr_accessor :is_business
|
|
78
|
+
|
|
79
|
+
# Indicates whether an account has been closed. Closed accounts will no
|
|
80
|
+
# longer update balance or transaction information.
|
|
81
|
+
# @return [TrueClass | FalseClass]
|
|
82
|
+
attr_accessor :is_closed
|
|
83
|
+
|
|
84
|
+
# Indicates whether the account is hidden. Hidden accounts can still have an
|
|
85
|
+
# active balance and receive transactions. Defaults to `false`.
|
|
86
|
+
# @return [TrueClass | FalseClass]
|
|
87
|
+
attr_accessor :is_hidden
|
|
88
|
+
|
|
89
|
+
# The amount of the loan associated with the `account`.
|
|
90
|
+
# @return [Float]
|
|
91
|
+
attr_accessor :loan_amount
|
|
92
|
+
|
|
93
|
+
# Additional information you can store about the `account`.
|
|
94
|
+
# @return [String]
|
|
95
|
+
attr_accessor :metadata
|
|
96
|
+
|
|
97
|
+
# The human-readable name for the `account`.
|
|
98
|
+
# @return [String]
|
|
99
|
+
attr_accessor :name
|
|
100
|
+
|
|
101
|
+
# An alternate name for the `account`.
|
|
102
|
+
# @return [String]
|
|
103
|
+
attr_accessor :nickname
|
|
104
|
+
|
|
105
|
+
# The original balance associated with the `account`. This will always be
|
|
106
|
+
# positive.
|
|
107
|
+
# @return [Float]
|
|
108
|
+
attr_accessor :original_balance
|
|
109
|
+
|
|
110
|
+
# Subtype if the account type is `PROPERTY`. This field should be ignored
|
|
111
|
+
# unless the type is set to `PROPERTY`.
|
|
112
|
+
# @return [PropertyType]
|
|
113
|
+
attr_accessor :property_type
|
|
114
|
+
|
|
115
|
+
# If set to `true`, prevents sending an account webhook for the update if
|
|
116
|
+
# that webhook type is enabled for you.
|
|
117
|
+
# @return [TrueClass | FalseClass]
|
|
118
|
+
attr_accessor :skip_webhook
|
|
119
|
+
|
|
120
|
+
# A mapping from model property names to API property names.
|
|
121
|
+
def self.names
|
|
122
|
+
@_hash = {} if @_hash.nil?
|
|
123
|
+
@_hash['account_subtype'] = 'account_subtype'
|
|
124
|
+
@_hash['account_type'] = 'account_type'
|
|
125
|
+
@_hash['apr'] = 'apr'
|
|
126
|
+
@_hash['apy'] = 'apy'
|
|
127
|
+
@_hash['available_balance'] = 'available_balance'
|
|
128
|
+
@_hash['balance'] = 'balance'
|
|
129
|
+
@_hash['cash_surrender_value'] = 'cash_surrender_value'
|
|
130
|
+
@_hash['credit_limit'] = 'credit_limit'
|
|
131
|
+
@_hash['currency_code'] = 'currency_code'
|
|
132
|
+
@_hash['death_benefit'] = 'death_benefit'
|
|
133
|
+
@_hash['interest_rate'] = 'interest_rate'
|
|
134
|
+
@_hash['is_business'] = 'is_business'
|
|
135
|
+
@_hash['is_closed'] = 'is_closed'
|
|
136
|
+
@_hash['is_hidden'] = 'is_hidden'
|
|
137
|
+
@_hash['loan_amount'] = 'loan_amount'
|
|
138
|
+
@_hash['metadata'] = 'metadata'
|
|
139
|
+
@_hash['name'] = 'name'
|
|
140
|
+
@_hash['nickname'] = 'nickname'
|
|
141
|
+
@_hash['original_balance'] = 'original_balance'
|
|
142
|
+
@_hash['property_type'] = 'property_type'
|
|
143
|
+
@_hash['skip_webhook'] = 'skip_webhook'
|
|
144
|
+
@_hash
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# An array for optional fields
|
|
148
|
+
def self.optionals
|
|
149
|
+
%w[
|
|
150
|
+
account_subtype
|
|
151
|
+
apr
|
|
152
|
+
apy
|
|
153
|
+
available_balance
|
|
154
|
+
balance
|
|
155
|
+
cash_surrender_value
|
|
156
|
+
credit_limit
|
|
157
|
+
currency_code
|
|
158
|
+
death_benefit
|
|
159
|
+
interest_rate
|
|
160
|
+
is_business
|
|
161
|
+
is_closed
|
|
162
|
+
is_hidden
|
|
163
|
+
loan_amount
|
|
164
|
+
metadata
|
|
165
|
+
nickname
|
|
166
|
+
original_balance
|
|
167
|
+
property_type
|
|
168
|
+
skip_webhook
|
|
169
|
+
]
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# An array for nullable fields
|
|
173
|
+
def self.nullables
|
|
174
|
+
%w[
|
|
175
|
+
account_subtype
|
|
176
|
+
account_type
|
|
177
|
+
currency_code
|
|
178
|
+
]
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
def initialize(account_type:, name:, account_subtype: SKIP, apr: SKIP,
|
|
182
|
+
apy: SKIP, available_balance: SKIP, balance: SKIP,
|
|
183
|
+
cash_surrender_value: SKIP, credit_limit: SKIP,
|
|
184
|
+
currency_code: SKIP, death_benefit: SKIP,
|
|
185
|
+
interest_rate: SKIP, is_business: SKIP, is_closed: SKIP,
|
|
186
|
+
is_hidden: SKIP, loan_amount: SKIP, metadata: SKIP,
|
|
187
|
+
nickname: SKIP, original_balance: SKIP, property_type: SKIP,
|
|
188
|
+
skip_webhook: SKIP, additional_properties: nil)
|
|
189
|
+
# Add additional model properties to the instance
|
|
190
|
+
additional_properties = {} if additional_properties.nil?
|
|
191
|
+
|
|
192
|
+
@account_subtype = account_subtype unless account_subtype == SKIP
|
|
193
|
+
@account_type = account_type
|
|
194
|
+
@apr = apr unless apr == SKIP
|
|
195
|
+
@apy = apy unless apy == SKIP
|
|
196
|
+
@available_balance = available_balance unless available_balance == SKIP
|
|
197
|
+
@balance = balance unless balance == SKIP
|
|
198
|
+
@cash_surrender_value = cash_surrender_value unless cash_surrender_value == SKIP
|
|
199
|
+
@credit_limit = credit_limit unless credit_limit == SKIP
|
|
200
|
+
@currency_code = currency_code unless currency_code == SKIP
|
|
201
|
+
@death_benefit = death_benefit unless death_benefit == SKIP
|
|
202
|
+
@interest_rate = interest_rate unless interest_rate == SKIP
|
|
203
|
+
@is_business = is_business unless is_business == SKIP
|
|
204
|
+
@is_closed = is_closed unless is_closed == SKIP
|
|
205
|
+
@is_hidden = is_hidden unless is_hidden == SKIP
|
|
206
|
+
@loan_amount = loan_amount unless loan_amount == SKIP
|
|
207
|
+
@metadata = metadata unless metadata == SKIP
|
|
208
|
+
@name = name
|
|
209
|
+
@nickname = nickname unless nickname == SKIP
|
|
210
|
+
@original_balance = original_balance unless original_balance == SKIP
|
|
211
|
+
@property_type = property_type unless property_type == SKIP
|
|
212
|
+
@skip_webhook = skip_webhook unless skip_webhook == SKIP
|
|
213
|
+
@additional_properties = additional_properties
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Creates an instance of the object from a hash.
|
|
217
|
+
def self.from_hash(hash)
|
|
218
|
+
return nil unless hash
|
|
219
|
+
|
|
220
|
+
# Extract variables from the hash.
|
|
221
|
+
account_type = hash.key?('account_type') ? hash['account_type'] : nil
|
|
222
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
223
|
+
account_subtype =
|
|
224
|
+
hash.key?('account_subtype') ? hash['account_subtype'] : SKIP
|
|
225
|
+
apr = hash.key?('apr') ? hash['apr'] : SKIP
|
|
226
|
+
apy = hash.key?('apy') ? hash['apy'] : SKIP
|
|
227
|
+
available_balance =
|
|
228
|
+
hash.key?('available_balance') ? hash['available_balance'] : SKIP
|
|
229
|
+
balance = hash.key?('balance') ? hash['balance'] : SKIP
|
|
230
|
+
cash_surrender_value =
|
|
231
|
+
hash.key?('cash_surrender_value') ? hash['cash_surrender_value'] : SKIP
|
|
232
|
+
credit_limit = hash.key?('credit_limit') ? hash['credit_limit'] : SKIP
|
|
233
|
+
currency_code = hash.key?('currency_code') ? hash['currency_code'] : SKIP
|
|
234
|
+
death_benefit = hash.key?('death_benefit') ? hash['death_benefit'] : SKIP
|
|
235
|
+
interest_rate = hash.key?('interest_rate') ? hash['interest_rate'] : SKIP
|
|
236
|
+
is_business = hash.key?('is_business') ? hash['is_business'] : SKIP
|
|
237
|
+
is_closed = hash.key?('is_closed') ? hash['is_closed'] : SKIP
|
|
238
|
+
is_hidden = hash.key?('is_hidden') ? hash['is_hidden'] : SKIP
|
|
239
|
+
loan_amount = hash.key?('loan_amount') ? hash['loan_amount'] : SKIP
|
|
240
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
241
|
+
nickname = hash.key?('nickname') ? hash['nickname'] : SKIP
|
|
242
|
+
original_balance =
|
|
243
|
+
hash.key?('original_balance') ? hash['original_balance'] : SKIP
|
|
244
|
+
property_type = hash.key?('property_type') ? hash['property_type'] : SKIP
|
|
245
|
+
skip_webhook = hash.key?('skip_webhook') ? hash['skip_webhook'] : SKIP
|
|
246
|
+
|
|
247
|
+
# Create a new hash for additional properties, removing known properties.
|
|
248
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
249
|
+
|
|
250
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
251
|
+
new_hash, proc { |value| value }
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
# Create object from extracted values.
|
|
255
|
+
AccountCreateRequest.new(account_type: account_type,
|
|
256
|
+
name: name,
|
|
257
|
+
account_subtype: account_subtype,
|
|
258
|
+
apr: apr,
|
|
259
|
+
apy: apy,
|
|
260
|
+
available_balance: available_balance,
|
|
261
|
+
balance: balance,
|
|
262
|
+
cash_surrender_value: cash_surrender_value,
|
|
263
|
+
credit_limit: credit_limit,
|
|
264
|
+
currency_code: currency_code,
|
|
265
|
+
death_benefit: death_benefit,
|
|
266
|
+
interest_rate: interest_rate,
|
|
267
|
+
is_business: is_business,
|
|
268
|
+
is_closed: is_closed,
|
|
269
|
+
is_hidden: is_hidden,
|
|
270
|
+
loan_amount: loan_amount,
|
|
271
|
+
metadata: metadata,
|
|
272
|
+
nickname: nickname,
|
|
273
|
+
original_balance: original_balance,
|
|
274
|
+
property_type: property_type,
|
|
275
|
+
skip_webhook: skip_webhook,
|
|
276
|
+
additional_properties: additional_properties)
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Provides a human-readable string representation of the object.
|
|
280
|
+
def to_s
|
|
281
|
+
class_name = self.class.name.split('::').last
|
|
282
|
+
"<#{class_name} account_subtype: #{@account_subtype}, account_type: #{@account_type}, apr:"\
|
|
283
|
+
" #{@apr}, apy: #{@apy}, available_balance: #{@available_balance}, balance: #{@balance},"\
|
|
284
|
+
" cash_surrender_value: #{@cash_surrender_value}, credit_limit: #{@credit_limit},"\
|
|
285
|
+
" currency_code: #{@currency_code}, death_benefit: #{@death_benefit}, interest_rate:"\
|
|
286
|
+
" #{@interest_rate}, is_business: #{@is_business}, is_closed: #{@is_closed}, is_hidden:"\
|
|
287
|
+
" #{@is_hidden}, loan_amount: #{@loan_amount}, metadata: #{@metadata}, name: #{@name},"\
|
|
288
|
+
" nickname: #{@nickname}, original_balance: #{@original_balance}, property_type:"\
|
|
289
|
+
" #{@property_type}, skip_webhook: #{@skip_webhook}, additional_properties:"\
|
|
290
|
+
" #{@additional_properties}>"
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
294
|
+
def inspect
|
|
295
|
+
class_name = self.class.name.split('::').last
|
|
296
|
+
"<#{class_name} account_subtype: #{@account_subtype.inspect}, account_type:"\
|
|
297
|
+
" #{@account_type.inspect}, apr: #{@apr.inspect}, apy: #{@apy.inspect}, available_balance:"\
|
|
298
|
+
" #{@available_balance.inspect}, balance: #{@balance.inspect}, cash_surrender_value:"\
|
|
299
|
+
" #{@cash_surrender_value.inspect}, credit_limit: #{@credit_limit.inspect}, currency_code:"\
|
|
300
|
+
" #{@currency_code.inspect}, death_benefit: #{@death_benefit.inspect}, interest_rate:"\
|
|
301
|
+
" #{@interest_rate.inspect}, is_business: #{@is_business.inspect}, is_closed:"\
|
|
302
|
+
" #{@is_closed.inspect}, is_hidden: #{@is_hidden.inspect}, loan_amount:"\
|
|
303
|
+
" #{@loan_amount.inspect}, metadata: #{@metadata.inspect}, name: #{@name.inspect}, nickname:"\
|
|
304
|
+
" #{@nickname.inspect}, original_balance: #{@original_balance.inspect}, property_type:"\
|
|
305
|
+
" #{@property_type.inspect}, skip_webhook: #{@skip_webhook.inspect}, additional_properties:"\
|
|
306
|
+
" #{@additional_properties}>"
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
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
|
+
# AccountCreateRequestBody Model.
|
|
8
|
+
class AccountCreateRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [AccountCreateRequest]
|
|
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 = AccountCreateRequest.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
|
+
AccountCreateRequestBody.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
|
|
@@ -0,0 +1,199 @@
|
|
|
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
|
+
# AccountNumber Model.
|
|
8
|
+
class AccountNumber < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The unique identifier for an account. Defined by MX.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :account_guid
|
|
15
|
+
|
|
16
|
+
# The unique identifier for the member. Defined by MX.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :member_guid
|
|
19
|
+
|
|
20
|
+
# The unique identifier for the user. Defined by MX.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :user_guid
|
|
23
|
+
|
|
24
|
+
# The banking account number associated with a particular account.
|
|
25
|
+
# @return [Integer]
|
|
26
|
+
attr_accessor :account_number
|
|
27
|
+
|
|
28
|
+
# The unique identifier for the account number. Defined by MX.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :guid
|
|
31
|
+
|
|
32
|
+
# The three-digit number identifying a Canadian banking institution.
|
|
33
|
+
# @return [Object]
|
|
34
|
+
attr_accessor :institution_number
|
|
35
|
+
|
|
36
|
+
# The guarantor of the student loan.
|
|
37
|
+
# @return [Object]
|
|
38
|
+
attr_accessor :loan_guarantor
|
|
39
|
+
|
|
40
|
+
# The reference number for the student loan.
|
|
41
|
+
# @return [Object]
|
|
42
|
+
attr_accessor :loan_reference_number
|
|
43
|
+
|
|
44
|
+
# Indicates whether the account number has passed validation.
|
|
45
|
+
# @return [Object]
|
|
46
|
+
attr_accessor :passed_validation
|
|
47
|
+
|
|
48
|
+
# The routing number for the `account`.
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
attr_accessor :routing_number
|
|
51
|
+
|
|
52
|
+
# The sequence number for the account.
|
|
53
|
+
# @return [Object]
|
|
54
|
+
attr_accessor :sequence_number
|
|
55
|
+
|
|
56
|
+
# The five-digit number identifying the branch of a Canadian financial
|
|
57
|
+
# institution.
|
|
58
|
+
# @return [Object]
|
|
59
|
+
attr_accessor :transit_number
|
|
60
|
+
|
|
61
|
+
# A mapping from model property names to API property names.
|
|
62
|
+
def self.names
|
|
63
|
+
@_hash = {} if @_hash.nil?
|
|
64
|
+
@_hash['account_guid'] = 'account_guid'
|
|
65
|
+
@_hash['member_guid'] = 'member_guid'
|
|
66
|
+
@_hash['user_guid'] = 'user_guid'
|
|
67
|
+
@_hash['account_number'] = 'account_number'
|
|
68
|
+
@_hash['guid'] = 'guid'
|
|
69
|
+
@_hash['institution_number'] = 'institution_number'
|
|
70
|
+
@_hash['loan_guarantor'] = 'loan_guarantor'
|
|
71
|
+
@_hash['loan_reference_number'] = 'loan_reference_number'
|
|
72
|
+
@_hash['passed_validation'] = 'passed_validation'
|
|
73
|
+
@_hash['routing_number'] = 'routing_number'
|
|
74
|
+
@_hash['sequence_number'] = 'sequence_number'
|
|
75
|
+
@_hash['transit_number'] = 'transit_number'
|
|
76
|
+
@_hash
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# An array for optional fields
|
|
80
|
+
def self.optionals
|
|
81
|
+
%w[
|
|
82
|
+
account_guid
|
|
83
|
+
member_guid
|
|
84
|
+
user_guid
|
|
85
|
+
account_number
|
|
86
|
+
guid
|
|
87
|
+
institution_number
|
|
88
|
+
loan_guarantor
|
|
89
|
+
loan_reference_number
|
|
90
|
+
passed_validation
|
|
91
|
+
routing_number
|
|
92
|
+
sequence_number
|
|
93
|
+
transit_number
|
|
94
|
+
]
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# An array for nullable fields
|
|
98
|
+
def self.nullables
|
|
99
|
+
[]
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def initialize(account_guid: SKIP, member_guid: SKIP, user_guid: SKIP,
|
|
103
|
+
account_number: SKIP, guid: SKIP, institution_number: SKIP,
|
|
104
|
+
loan_guarantor: SKIP, loan_reference_number: SKIP,
|
|
105
|
+
passed_validation: SKIP, routing_number: SKIP,
|
|
106
|
+
sequence_number: SKIP, transit_number: SKIP,
|
|
107
|
+
additional_properties: nil)
|
|
108
|
+
# Add additional model properties to the instance
|
|
109
|
+
additional_properties = {} if additional_properties.nil?
|
|
110
|
+
|
|
111
|
+
@account_guid = account_guid unless account_guid == SKIP
|
|
112
|
+
@member_guid = member_guid unless member_guid == SKIP
|
|
113
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
114
|
+
@account_number = account_number unless account_number == SKIP
|
|
115
|
+
@guid = guid unless guid == SKIP
|
|
116
|
+
@institution_number = institution_number unless institution_number == SKIP
|
|
117
|
+
@loan_guarantor = loan_guarantor unless loan_guarantor == SKIP
|
|
118
|
+
@loan_reference_number = loan_reference_number unless loan_reference_number == SKIP
|
|
119
|
+
@passed_validation = passed_validation unless passed_validation == SKIP
|
|
120
|
+
@routing_number = routing_number unless routing_number == SKIP
|
|
121
|
+
@sequence_number = sequence_number unless sequence_number == SKIP
|
|
122
|
+
@transit_number = transit_number unless transit_number == SKIP
|
|
123
|
+
@additional_properties = additional_properties
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Creates an instance of the object from a hash.
|
|
127
|
+
def self.from_hash(hash)
|
|
128
|
+
return nil unless hash
|
|
129
|
+
|
|
130
|
+
# Extract variables from the hash.
|
|
131
|
+
account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
|
|
132
|
+
member_guid = hash.key?('member_guid') ? hash['member_guid'] : SKIP
|
|
133
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
134
|
+
account_number =
|
|
135
|
+
hash.key?('account_number') ? hash['account_number'] : SKIP
|
|
136
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
137
|
+
institution_number =
|
|
138
|
+
hash.key?('institution_number') ? hash['institution_number'] : SKIP
|
|
139
|
+
loan_guarantor =
|
|
140
|
+
hash.key?('loan_guarantor') ? hash['loan_guarantor'] : SKIP
|
|
141
|
+
loan_reference_number =
|
|
142
|
+
hash.key?('loan_reference_number') ? hash['loan_reference_number'] : SKIP
|
|
143
|
+
passed_validation =
|
|
144
|
+
hash.key?('passed_validation') ? hash['passed_validation'] : SKIP
|
|
145
|
+
routing_number =
|
|
146
|
+
hash.key?('routing_number') ? hash['routing_number'] : SKIP
|
|
147
|
+
sequence_number =
|
|
148
|
+
hash.key?('sequence_number') ? hash['sequence_number'] : SKIP
|
|
149
|
+
transit_number =
|
|
150
|
+
hash.key?('transit_number') ? hash['transit_number'] : SKIP
|
|
151
|
+
|
|
152
|
+
# Create a new hash for additional properties, removing known properties.
|
|
153
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
154
|
+
|
|
155
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
156
|
+
new_hash, proc { |value| value }
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
# Create object from extracted values.
|
|
160
|
+
AccountNumber.new(account_guid: account_guid,
|
|
161
|
+
member_guid: member_guid,
|
|
162
|
+
user_guid: user_guid,
|
|
163
|
+
account_number: account_number,
|
|
164
|
+
guid: guid,
|
|
165
|
+
institution_number: institution_number,
|
|
166
|
+
loan_guarantor: loan_guarantor,
|
|
167
|
+
loan_reference_number: loan_reference_number,
|
|
168
|
+
passed_validation: passed_validation,
|
|
169
|
+
routing_number: routing_number,
|
|
170
|
+
sequence_number: sequence_number,
|
|
171
|
+
transit_number: transit_number,
|
|
172
|
+
additional_properties: additional_properties)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Provides a human-readable string representation of the object.
|
|
176
|
+
def to_s
|
|
177
|
+
class_name = self.class.name.split('::').last
|
|
178
|
+
"<#{class_name} account_guid: #{@account_guid}, member_guid: #{@member_guid}, user_guid:"\
|
|
179
|
+
" #{@user_guid}, account_number: #{@account_number}, guid: #{@guid}, institution_number:"\
|
|
180
|
+
" #{@institution_number}, loan_guarantor: #{@loan_guarantor}, loan_reference_number:"\
|
|
181
|
+
" #{@loan_reference_number}, passed_validation: #{@passed_validation}, routing_number:"\
|
|
182
|
+
" #{@routing_number}, sequence_number: #{@sequence_number}, transit_number:"\
|
|
183
|
+
" #{@transit_number}, additional_properties: #{@additional_properties}>"
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
187
|
+
def inspect
|
|
188
|
+
class_name = self.class.name.split('::').last
|
|
189
|
+
"<#{class_name} account_guid: #{@account_guid.inspect}, member_guid:"\
|
|
190
|
+
" #{@member_guid.inspect}, user_guid: #{@user_guid.inspect}, account_number:"\
|
|
191
|
+
" #{@account_number.inspect}, guid: #{@guid.inspect}, institution_number:"\
|
|
192
|
+
" #{@institution_number.inspect}, loan_guarantor: #{@loan_guarantor.inspect},"\
|
|
193
|
+
" loan_reference_number: #{@loan_reference_number.inspect}, passed_validation:"\
|
|
194
|
+
" #{@passed_validation.inspect}, routing_number: #{@routing_number.inspect},"\
|
|
195
|
+
" sequence_number: #{@sequence_number.inspect}, transit_number: #{@transit_number.inspect},"\
|
|
196
|
+
" additional_properties: #{@additional_properties}>"
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|