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,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
|
+
# AccountResponseBody Model.
|
|
8
|
+
class AccountResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [AccountResponse]
|
|
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 = AccountResponse.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
|
+
AccountResponseBody.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,80 @@
|
|
|
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
|
+
# The type of account. Some account types may include subtypes.
|
|
8
|
+
class AccountType
|
|
9
|
+
ACCOUNT_TYPE = [
|
|
10
|
+
# TODO: Write general description for ANY
|
|
11
|
+
ANY = 'ANY'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for CASH
|
|
14
|
+
CASH = 'CASH'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for CHECKING
|
|
17
|
+
CHECKING = 'CHECKING'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for CHECKING_LINE_OF_CREDIT
|
|
20
|
+
CHECKING_LINE_OF_CREDIT = 'CHECKING_LINE_OF_CREDIT'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for CREDIT_CARD
|
|
23
|
+
CREDIT_CARD = 'CREDIT_CARD'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for LOAN
|
|
26
|
+
LOAN = 'LOAN'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for LINE_OF_CREDIT
|
|
29
|
+
LINE_OF_CREDIT = 'LINE_OF_CREDIT'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for SAVINGS
|
|
32
|
+
SAVINGS = 'SAVINGS'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for INVESTMENT
|
|
35
|
+
INVESTMENT = 'INVESTMENT'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for MORTGAGE
|
|
38
|
+
MORTGAGE = 'MORTGAGE'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for INSURANCE
|
|
41
|
+
INSURANCE = 'INSURANCE'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for PREPAID
|
|
44
|
+
PREPAID = 'PREPAID'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for PROPERTY
|
|
47
|
+
PROPERTY = 'PROPERTY'.freeze
|
|
48
|
+
].freeze
|
|
49
|
+
|
|
50
|
+
def self.validate(value)
|
|
51
|
+
return false if value.nil?
|
|
52
|
+
|
|
53
|
+
ACCOUNT_TYPE.include?(value)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def self.from_value(value, default_value = ANY)
|
|
57
|
+
return default_value if value.nil?
|
|
58
|
+
|
|
59
|
+
str = value.to_s.strip
|
|
60
|
+
|
|
61
|
+
case str.downcase
|
|
62
|
+
when 'any' then ANY
|
|
63
|
+
when 'cash' then CASH
|
|
64
|
+
when 'checking' then CHECKING
|
|
65
|
+
when 'checking_line_of_credit' then CHECKING_LINE_OF_CREDIT
|
|
66
|
+
when 'credit_card' then CREDIT_CARD
|
|
67
|
+
when 'loan' then LOAN
|
|
68
|
+
when 'line_of_credit' then LINE_OF_CREDIT
|
|
69
|
+
when 'savings' then SAVINGS
|
|
70
|
+
when 'investment' then INVESTMENT
|
|
71
|
+
when 'mortgage' then MORTGAGE
|
|
72
|
+
when 'insurance' then INSURANCE
|
|
73
|
+
when 'prepaid' then PREPAID
|
|
74
|
+
when 'property' then PROPERTY
|
|
75
|
+
else
|
|
76
|
+
default_value
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
# The type of account. Some account types may include subtypes.
|
|
8
|
+
class AccountType1
|
|
9
|
+
ACCOUNT_TYPE1 = [
|
|
10
|
+
# TODO: Write general description for ANY
|
|
11
|
+
ANY = 'ANY'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for CASH
|
|
14
|
+
CASH = 'CASH'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for CHECKING
|
|
17
|
+
CHECKING = 'CHECKING'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for CHECKING_LINE_OF_CREDIT
|
|
20
|
+
CHECKING_LINE_OF_CREDIT = 'CHECKING_LINE_OF_CREDIT'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for CREDIT_CARD
|
|
23
|
+
CREDIT_CARD = 'CREDIT_CARD'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for LOAN
|
|
26
|
+
LOAN = 'LOAN'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for LINE_OF_CREDIT
|
|
29
|
+
LINE_OF_CREDIT = 'LINE_OF_CREDIT'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for SAVINGS
|
|
32
|
+
SAVINGS = 'SAVINGS'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for INVESTMENT
|
|
35
|
+
INVESTMENT = 'INVESTMENT'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for MORTGAGE
|
|
38
|
+
MORTGAGE = 'MORTGAGE'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for INSURANCE
|
|
41
|
+
INSURANCE = 'INSURANCE'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for PREPAID
|
|
44
|
+
PREPAID = 'PREPAID'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for PROPERTY
|
|
47
|
+
PROPERTY = 'PROPERTY'.freeze
|
|
48
|
+
].freeze
|
|
49
|
+
|
|
50
|
+
def self.validate(value)
|
|
51
|
+
return false if value.nil?
|
|
52
|
+
|
|
53
|
+
ACCOUNT_TYPE1.include?(value)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def self.from_value(value, default_value = ANY)
|
|
57
|
+
return default_value if value.nil?
|
|
58
|
+
|
|
59
|
+
str = value.to_s.strip
|
|
60
|
+
|
|
61
|
+
case str.downcase
|
|
62
|
+
when 'any' then ANY
|
|
63
|
+
when 'cash' then CASH
|
|
64
|
+
when 'checking' then CHECKING
|
|
65
|
+
when 'checking_line_of_credit' then CHECKING_LINE_OF_CREDIT
|
|
66
|
+
when 'credit_card' then CREDIT_CARD
|
|
67
|
+
when 'loan' then LOAN
|
|
68
|
+
when 'line_of_credit' then LINE_OF_CREDIT
|
|
69
|
+
when 'savings' then SAVINGS
|
|
70
|
+
when 'investment' then INVESTMENT
|
|
71
|
+
when 'mortgage' then MORTGAGE
|
|
72
|
+
when 'insurance' then INSURANCE
|
|
73
|
+
when 'prepaid' then PREPAID
|
|
74
|
+
when 'property' then PROPERTY
|
|
75
|
+
else
|
|
76
|
+
default_value
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,301 @@
|
|
|
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
|
+
# AccountUpdateRequest Model.
|
|
8
|
+
class AccountUpdateRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Can only be updated for manual accounts.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :account_subtype
|
|
15
|
+
|
|
16
|
+
# The type of account. Some account types may include subtypes.
|
|
17
|
+
# @return [AccountType]
|
|
18
|
+
attr_accessor :account_type
|
|
19
|
+
|
|
20
|
+
# Can only be updated for manual accounts. The annual percentage rate
|
|
21
|
+
# associated with the `account`.
|
|
22
|
+
# @return [Float]
|
|
23
|
+
attr_accessor :apr
|
|
24
|
+
|
|
25
|
+
# Can only be updated for manual accounts. The annual percentage yield
|
|
26
|
+
# associated with the `account`.
|
|
27
|
+
# @return [Float]
|
|
28
|
+
attr_accessor :apy
|
|
29
|
+
|
|
30
|
+
# Can only be updated for manual accounts.
|
|
31
|
+
# The balance that is available for use in asset accounts like checking and
|
|
32
|
+
# savings.
|
|
33
|
+
# @return [Float]
|
|
34
|
+
attr_accessor :available_balance
|
|
35
|
+
|
|
36
|
+
# Can only be updated for manual accounts. The current balance of the
|
|
37
|
+
# account.
|
|
38
|
+
# @return [Float]
|
|
39
|
+
attr_accessor :balance
|
|
40
|
+
|
|
41
|
+
# Can only be updated for manual accounts. The sum of money paid to the
|
|
42
|
+
# policyholder or annuity holder in the event the policy is voluntarily
|
|
43
|
+
# terminated before it matures, or the insured event occurs.
|
|
44
|
+
# @return [Float]
|
|
45
|
+
attr_accessor :cash_surrender_value
|
|
46
|
+
|
|
47
|
+
# Can only be updated for manual accounts. The credit limit associated with
|
|
48
|
+
# the `account`.
|
|
49
|
+
# @return [Float]
|
|
50
|
+
attr_accessor :credit_limit
|
|
51
|
+
|
|
52
|
+
# Can only be updated for manual accounts. The three-character ISO 4217
|
|
53
|
+
# currency code, for example, `USD`.
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :currency_code
|
|
56
|
+
|
|
57
|
+
# Can only be updated for manual accounts. The amount paid to the
|
|
58
|
+
# beneficiary of the account upon death of the account owner.
|
|
59
|
+
# @return [Integer]
|
|
60
|
+
attr_accessor :death_benefit
|
|
61
|
+
|
|
62
|
+
# Can only be updated for manual accounts.
|
|
63
|
+
# @return [Float]
|
|
64
|
+
attr_accessor :interest_rate
|
|
65
|
+
|
|
66
|
+
# Can be updated for manual accounts and aggregated accounts.
|
|
67
|
+
# @return [TrueClass | FalseClass]
|
|
68
|
+
attr_accessor :is_business
|
|
69
|
+
|
|
70
|
+
# Can only be updated for manual accounts.
|
|
71
|
+
# @return [TrueClass | FalseClass]
|
|
72
|
+
attr_accessor :is_closed
|
|
73
|
+
|
|
74
|
+
# Can be updated for manual accounts and aggregated accounts.
|
|
75
|
+
# @return [TrueClass | FalseClass]
|
|
76
|
+
attr_accessor :is_hidden
|
|
77
|
+
|
|
78
|
+
# Can only be updated for manual accounts.
|
|
79
|
+
# @return [Float]
|
|
80
|
+
attr_accessor :loan_amount
|
|
81
|
+
|
|
82
|
+
# Can only be updated for manual accounts.
|
|
83
|
+
# @return [String]
|
|
84
|
+
attr_accessor :metadata
|
|
85
|
+
|
|
86
|
+
# Can only be updated for manual accounts.
|
|
87
|
+
# @return [String]
|
|
88
|
+
attr_accessor :name
|
|
89
|
+
|
|
90
|
+
# Can only be updated for manual accounts.
|
|
91
|
+
# @return [String]
|
|
92
|
+
attr_accessor :nickname
|
|
93
|
+
|
|
94
|
+
# Can only be updated for manual accounts.
|
|
95
|
+
# @return [Float]
|
|
96
|
+
attr_accessor :original_balance
|
|
97
|
+
|
|
98
|
+
# Can only be updated for manual accounts.
|
|
99
|
+
# @return [String]
|
|
100
|
+
attr_accessor :property_type
|
|
101
|
+
|
|
102
|
+
# If set to `true`, prevents sending an account webhook for the update if
|
|
103
|
+
# that webhook type is enabled for you.
|
|
104
|
+
# @return [TrueClass | FalseClass]
|
|
105
|
+
attr_accessor :skip_webhook
|
|
106
|
+
|
|
107
|
+
# A mapping from model property names to API property names.
|
|
108
|
+
def self.names
|
|
109
|
+
@_hash = {} if @_hash.nil?
|
|
110
|
+
@_hash['account_subtype'] = 'account_subtype'
|
|
111
|
+
@_hash['account_type'] = 'account_type'
|
|
112
|
+
@_hash['apr'] = 'apr'
|
|
113
|
+
@_hash['apy'] = 'apy'
|
|
114
|
+
@_hash['available_balance'] = 'available_balance'
|
|
115
|
+
@_hash['balance'] = 'balance'
|
|
116
|
+
@_hash['cash_surrender_value'] = 'cash_surrender_value'
|
|
117
|
+
@_hash['credit_limit'] = 'credit_limit'
|
|
118
|
+
@_hash['currency_code'] = 'currency_code'
|
|
119
|
+
@_hash['death_benefit'] = 'death_benefit'
|
|
120
|
+
@_hash['interest_rate'] = 'interest_rate'
|
|
121
|
+
@_hash['is_business'] = 'is_business'
|
|
122
|
+
@_hash['is_closed'] = 'is_closed'
|
|
123
|
+
@_hash['is_hidden'] = 'is_hidden'
|
|
124
|
+
@_hash['loan_amount'] = 'loan_amount'
|
|
125
|
+
@_hash['metadata'] = 'metadata'
|
|
126
|
+
@_hash['name'] = 'name'
|
|
127
|
+
@_hash['nickname'] = 'nickname'
|
|
128
|
+
@_hash['original_balance'] = 'original_balance'
|
|
129
|
+
@_hash['property_type'] = 'property_type'
|
|
130
|
+
@_hash['skip_webhook'] = 'skip_webhook'
|
|
131
|
+
@_hash
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# An array for optional fields
|
|
135
|
+
def self.optionals
|
|
136
|
+
%w[
|
|
137
|
+
account_subtype
|
|
138
|
+
account_type
|
|
139
|
+
apr
|
|
140
|
+
apy
|
|
141
|
+
available_balance
|
|
142
|
+
balance
|
|
143
|
+
cash_surrender_value
|
|
144
|
+
credit_limit
|
|
145
|
+
currency_code
|
|
146
|
+
death_benefit
|
|
147
|
+
interest_rate
|
|
148
|
+
is_business
|
|
149
|
+
is_closed
|
|
150
|
+
is_hidden
|
|
151
|
+
loan_amount
|
|
152
|
+
metadata
|
|
153
|
+
name
|
|
154
|
+
nickname
|
|
155
|
+
original_balance
|
|
156
|
+
property_type
|
|
157
|
+
skip_webhook
|
|
158
|
+
]
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# An array for nullable fields
|
|
162
|
+
def self.nullables
|
|
163
|
+
%w[
|
|
164
|
+
account_subtype
|
|
165
|
+
account_type
|
|
166
|
+
apr
|
|
167
|
+
credit_limit
|
|
168
|
+
currency_code
|
|
169
|
+
]
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
def initialize(account_subtype: SKIP, account_type: SKIP, apr: SKIP,
|
|
173
|
+
apy: SKIP, available_balance: SKIP, balance: SKIP,
|
|
174
|
+
cash_surrender_value: SKIP, credit_limit: SKIP,
|
|
175
|
+
currency_code: SKIP, death_benefit: SKIP,
|
|
176
|
+
interest_rate: SKIP, is_business: SKIP, is_closed: SKIP,
|
|
177
|
+
is_hidden: SKIP, loan_amount: SKIP, metadata: SKIP,
|
|
178
|
+
name: SKIP, nickname: SKIP, original_balance: SKIP,
|
|
179
|
+
property_type: SKIP, skip_webhook: SKIP,
|
|
180
|
+
additional_properties: nil)
|
|
181
|
+
# Add additional model properties to the instance
|
|
182
|
+
additional_properties = {} if additional_properties.nil?
|
|
183
|
+
|
|
184
|
+
@account_subtype = account_subtype unless account_subtype == SKIP
|
|
185
|
+
@account_type = account_type unless account_type == SKIP
|
|
186
|
+
@apr = apr unless apr == SKIP
|
|
187
|
+
@apy = apy unless apy == SKIP
|
|
188
|
+
@available_balance = available_balance unless available_balance == SKIP
|
|
189
|
+
@balance = balance unless balance == SKIP
|
|
190
|
+
@cash_surrender_value = cash_surrender_value unless cash_surrender_value == SKIP
|
|
191
|
+
@credit_limit = credit_limit unless credit_limit == SKIP
|
|
192
|
+
@currency_code = currency_code unless currency_code == SKIP
|
|
193
|
+
@death_benefit = death_benefit unless death_benefit == SKIP
|
|
194
|
+
@interest_rate = interest_rate unless interest_rate == SKIP
|
|
195
|
+
@is_business = is_business unless is_business == SKIP
|
|
196
|
+
@is_closed = is_closed unless is_closed == SKIP
|
|
197
|
+
@is_hidden = is_hidden unless is_hidden == SKIP
|
|
198
|
+
@loan_amount = loan_amount unless loan_amount == SKIP
|
|
199
|
+
@metadata = metadata unless metadata == SKIP
|
|
200
|
+
@name = name unless name == SKIP
|
|
201
|
+
@nickname = nickname unless nickname == SKIP
|
|
202
|
+
@original_balance = original_balance unless original_balance == SKIP
|
|
203
|
+
@property_type = property_type unless property_type == SKIP
|
|
204
|
+
@skip_webhook = skip_webhook unless skip_webhook == SKIP
|
|
205
|
+
@additional_properties = additional_properties
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Creates an instance of the object from a hash.
|
|
209
|
+
def self.from_hash(hash)
|
|
210
|
+
return nil unless hash
|
|
211
|
+
|
|
212
|
+
# Extract variables from the hash.
|
|
213
|
+
account_subtype =
|
|
214
|
+
hash.key?('account_subtype') ? hash['account_subtype'] : SKIP
|
|
215
|
+
account_type = hash.key?('account_type') ? hash['account_type'] : SKIP
|
|
216
|
+
apr = hash.key?('apr') ? hash['apr'] : SKIP
|
|
217
|
+
apy = hash.key?('apy') ? hash['apy'] : SKIP
|
|
218
|
+
available_balance =
|
|
219
|
+
hash.key?('available_balance') ? hash['available_balance'] : SKIP
|
|
220
|
+
balance = hash.key?('balance') ? hash['balance'] : SKIP
|
|
221
|
+
cash_surrender_value =
|
|
222
|
+
hash.key?('cash_surrender_value') ? hash['cash_surrender_value'] : SKIP
|
|
223
|
+
credit_limit = hash.key?('credit_limit') ? hash['credit_limit'] : SKIP
|
|
224
|
+
currency_code = hash.key?('currency_code') ? hash['currency_code'] : SKIP
|
|
225
|
+
death_benefit = hash.key?('death_benefit') ? hash['death_benefit'] : SKIP
|
|
226
|
+
interest_rate = hash.key?('interest_rate') ? hash['interest_rate'] : SKIP
|
|
227
|
+
is_business = hash.key?('is_business') ? hash['is_business'] : SKIP
|
|
228
|
+
is_closed = hash.key?('is_closed') ? hash['is_closed'] : SKIP
|
|
229
|
+
is_hidden = hash.key?('is_hidden') ? hash['is_hidden'] : SKIP
|
|
230
|
+
loan_amount = hash.key?('loan_amount') ? hash['loan_amount'] : SKIP
|
|
231
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
232
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
233
|
+
nickname = hash.key?('nickname') ? hash['nickname'] : SKIP
|
|
234
|
+
original_balance =
|
|
235
|
+
hash.key?('original_balance') ? hash['original_balance'] : SKIP
|
|
236
|
+
property_type = hash.key?('property_type') ? hash['property_type'] : SKIP
|
|
237
|
+
skip_webhook = hash.key?('skip_webhook') ? hash['skip_webhook'] : SKIP
|
|
238
|
+
|
|
239
|
+
# Create a new hash for additional properties, removing known properties.
|
|
240
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
241
|
+
|
|
242
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
243
|
+
new_hash, proc { |value| value }
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
# Create object from extracted values.
|
|
247
|
+
AccountUpdateRequest.new(account_subtype: account_subtype,
|
|
248
|
+
account_type: account_type,
|
|
249
|
+
apr: apr,
|
|
250
|
+
apy: apy,
|
|
251
|
+
available_balance: available_balance,
|
|
252
|
+
balance: balance,
|
|
253
|
+
cash_surrender_value: cash_surrender_value,
|
|
254
|
+
credit_limit: credit_limit,
|
|
255
|
+
currency_code: currency_code,
|
|
256
|
+
death_benefit: death_benefit,
|
|
257
|
+
interest_rate: interest_rate,
|
|
258
|
+
is_business: is_business,
|
|
259
|
+
is_closed: is_closed,
|
|
260
|
+
is_hidden: is_hidden,
|
|
261
|
+
loan_amount: loan_amount,
|
|
262
|
+
metadata: metadata,
|
|
263
|
+
name: name,
|
|
264
|
+
nickname: nickname,
|
|
265
|
+
original_balance: original_balance,
|
|
266
|
+
property_type: property_type,
|
|
267
|
+
skip_webhook: skip_webhook,
|
|
268
|
+
additional_properties: additional_properties)
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Provides a human-readable string representation of the object.
|
|
272
|
+
def to_s
|
|
273
|
+
class_name = self.class.name.split('::').last
|
|
274
|
+
"<#{class_name} account_subtype: #{@account_subtype}, account_type: #{@account_type}, apr:"\
|
|
275
|
+
" #{@apr}, apy: #{@apy}, available_balance: #{@available_balance}, balance: #{@balance},"\
|
|
276
|
+
" cash_surrender_value: #{@cash_surrender_value}, credit_limit: #{@credit_limit},"\
|
|
277
|
+
" currency_code: #{@currency_code}, death_benefit: #{@death_benefit}, interest_rate:"\
|
|
278
|
+
" #{@interest_rate}, is_business: #{@is_business}, is_closed: #{@is_closed}, is_hidden:"\
|
|
279
|
+
" #{@is_hidden}, loan_amount: #{@loan_amount}, metadata: #{@metadata}, name: #{@name},"\
|
|
280
|
+
" nickname: #{@nickname}, original_balance: #{@original_balance}, property_type:"\
|
|
281
|
+
" #{@property_type}, skip_webhook: #{@skip_webhook}, additional_properties:"\
|
|
282
|
+
" #{@additional_properties}>"
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
286
|
+
def inspect
|
|
287
|
+
class_name = self.class.name.split('::').last
|
|
288
|
+
"<#{class_name} account_subtype: #{@account_subtype.inspect}, account_type:"\
|
|
289
|
+
" #{@account_type.inspect}, apr: #{@apr.inspect}, apy: #{@apy.inspect}, available_balance:"\
|
|
290
|
+
" #{@available_balance.inspect}, balance: #{@balance.inspect}, cash_surrender_value:"\
|
|
291
|
+
" #{@cash_surrender_value.inspect}, credit_limit: #{@credit_limit.inspect}, currency_code:"\
|
|
292
|
+
" #{@currency_code.inspect}, death_benefit: #{@death_benefit.inspect}, interest_rate:"\
|
|
293
|
+
" #{@interest_rate.inspect}, is_business: #{@is_business.inspect}, is_closed:"\
|
|
294
|
+
" #{@is_closed.inspect}, is_hidden: #{@is_hidden.inspect}, loan_amount:"\
|
|
295
|
+
" #{@loan_amount.inspect}, metadata: #{@metadata.inspect}, name: #{@name.inspect}, nickname:"\
|
|
296
|
+
" #{@nickname.inspect}, original_balance: #{@original_balance.inspect}, property_type:"\
|
|
297
|
+
" #{@property_type.inspect}, skip_webhook: #{@skip_webhook.inspect}, additional_properties:"\
|
|
298
|
+
" #{@additional_properties}>"
|
|
299
|
+
end
|
|
300
|
+
end
|
|
301
|
+
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
|
+
# AccountUpdateRequestBody Model.
|
|
8
|
+
class AccountUpdateRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [AccountUpdateRequest]
|
|
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 = AccountUpdateRequest.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
|
+
AccountUpdateRequestBody.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,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
|
+
# AccountsMergeRequest Model.
|
|
8
|
+
class AccountsMergeRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# A list of account GUIDs to merge. Must include at least two GUIDs
|
|
13
|
+
# belonging to the same user.
|
|
14
|
+
# @return [Array[String]]
|
|
15
|
+
attr_accessor :account_guids
|
|
16
|
+
|
|
17
|
+
# A mapping from model property names to API property names.
|
|
18
|
+
def self.names
|
|
19
|
+
@_hash = {} if @_hash.nil?
|
|
20
|
+
@_hash['account_guids'] = 'account_guids'
|
|
21
|
+
@_hash
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# An array for optional fields
|
|
25
|
+
def self.optionals
|
|
26
|
+
[]
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# An array for nullable fields
|
|
30
|
+
def self.nullables
|
|
31
|
+
[]
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def initialize(account_guids:, additional_properties: nil)
|
|
35
|
+
# Add additional model properties to the instance
|
|
36
|
+
additional_properties = {} if additional_properties.nil?
|
|
37
|
+
|
|
38
|
+
@account_guids = account_guids
|
|
39
|
+
@additional_properties = additional_properties
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Creates an instance of the object from a hash.
|
|
43
|
+
def self.from_hash(hash)
|
|
44
|
+
return nil unless hash
|
|
45
|
+
|
|
46
|
+
# Extract variables from the hash.
|
|
47
|
+
account_guids = hash.key?('account_guids') ? hash['account_guids'] : nil
|
|
48
|
+
|
|
49
|
+
# Create a new hash for additional properties, removing known properties.
|
|
50
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
51
|
+
|
|
52
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
53
|
+
new_hash, proc { |value| value }
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
# Create object from extracted values.
|
|
57
|
+
AccountsMergeRequest.new(account_guids: account_guids,
|
|
58
|
+
additional_properties: additional_properties)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Provides a human-readable string representation of the object.
|
|
62
|
+
def to_s
|
|
63
|
+
class_name = self.class.name.split('::').last
|
|
64
|
+
"<#{class_name} account_guids: #{@account_guids}, additional_properties:"\
|
|
65
|
+
" #{@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_guids: #{@account_guids.inspect}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|