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,223 @@
|
|
|
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
|
+
# MicroDeposit Model.
|
|
8
|
+
class MicroDeposit < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The human-readable name for the account.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :account_name
|
|
15
|
+
|
|
16
|
+
# The account number associated with the account. This will typically be a
|
|
17
|
+
# masked or partial account number.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :account_number
|
|
20
|
+
|
|
21
|
+
# The type of account. Some account types may include subtypes.
|
|
22
|
+
# @return [AccountType]
|
|
23
|
+
attr_accessor :account_type
|
|
24
|
+
|
|
25
|
+
# The email address associated with the account.
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :email
|
|
28
|
+
|
|
29
|
+
# The account owner's first name. This may also include a middle name. This
|
|
30
|
+
# field will be `null` unless name splitting has been enabled. Contact MX to
|
|
31
|
+
# have this feature enabled.
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :first_name
|
|
34
|
+
|
|
35
|
+
# The last name of the account holder.
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :last_name
|
|
38
|
+
|
|
39
|
+
# The routing number for the `account`.
|
|
40
|
+
# @return [String]
|
|
41
|
+
attr_accessor :routing_number
|
|
42
|
+
|
|
43
|
+
# A message describing an error that occurred.
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :error_message
|
|
46
|
+
|
|
47
|
+
# The unique identifier for the microdeposit. Defined by MX.
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :guid
|
|
50
|
+
|
|
51
|
+
# The code identifying a financial institution.
|
|
52
|
+
# @return [String]
|
|
53
|
+
attr_accessor :institution_code
|
|
54
|
+
|
|
55
|
+
# An easy-to-read name for an institution. May be `null` for institutions
|
|
56
|
+
# that are not in the MX system.
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :institution_name
|
|
59
|
+
|
|
60
|
+
# The name of the current status. See [Microdeposit
|
|
61
|
+
# Statuses](/api-reference/platform-api/reference/microdeposits#microdeposit
|
|
62
|
+
# -statuseses).
|
|
63
|
+
# @return [String]
|
|
64
|
+
attr_accessor :status
|
|
65
|
+
|
|
66
|
+
# The date and time the resource was last updated in ISO 8601 format with a
|
|
67
|
+
# timestamp.
|
|
68
|
+
# For categories, this field will always be `null` when `is_default` is
|
|
69
|
+
# `true`.
|
|
70
|
+
# @return [String]
|
|
71
|
+
attr_accessor :updated_at
|
|
72
|
+
|
|
73
|
+
# The date and time at which the microdeposit status changed from
|
|
74
|
+
# `DEPOSITED` to `VERIFIED`.
|
|
75
|
+
# @return [String]
|
|
76
|
+
attr_accessor :verified_at
|
|
77
|
+
|
|
78
|
+
# A mapping from model property names to API property names.
|
|
79
|
+
def self.names
|
|
80
|
+
@_hash = {} if @_hash.nil?
|
|
81
|
+
@_hash['account_name'] = 'account_name'
|
|
82
|
+
@_hash['account_number'] = 'account_number'
|
|
83
|
+
@_hash['account_type'] = 'account_type'
|
|
84
|
+
@_hash['email'] = 'email'
|
|
85
|
+
@_hash['first_name'] = 'first_name'
|
|
86
|
+
@_hash['last_name'] = 'last_name'
|
|
87
|
+
@_hash['routing_number'] = 'routing_number'
|
|
88
|
+
@_hash['error_message'] = 'error_message'
|
|
89
|
+
@_hash['guid'] = 'guid'
|
|
90
|
+
@_hash['institution_code'] = 'institution_code'
|
|
91
|
+
@_hash['institution_name'] = 'institution_name'
|
|
92
|
+
@_hash['status'] = 'status'
|
|
93
|
+
@_hash['updated_at'] = 'updated_at'
|
|
94
|
+
@_hash['verified_at'] = 'verified_at'
|
|
95
|
+
@_hash
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# An array for optional fields
|
|
99
|
+
def self.optionals
|
|
100
|
+
%w[
|
|
101
|
+
account_name
|
|
102
|
+
email
|
|
103
|
+
first_name
|
|
104
|
+
last_name
|
|
105
|
+
error_message
|
|
106
|
+
guid
|
|
107
|
+
institution_code
|
|
108
|
+
institution_name
|
|
109
|
+
status
|
|
110
|
+
updated_at
|
|
111
|
+
verified_at
|
|
112
|
+
]
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# An array for nullable fields
|
|
116
|
+
def self.nullables
|
|
117
|
+
%w[
|
|
118
|
+
account_type
|
|
119
|
+
error_message
|
|
120
|
+
verified_at
|
|
121
|
+
]
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
def initialize(account_number:, account_type:, routing_number:,
|
|
125
|
+
account_name: SKIP, email: SKIP, first_name: SKIP,
|
|
126
|
+
last_name: SKIP, error_message: SKIP, guid: SKIP,
|
|
127
|
+
institution_code: SKIP, institution_name: SKIP, status: SKIP,
|
|
128
|
+
updated_at: SKIP, verified_at: SKIP,
|
|
129
|
+
additional_properties: nil)
|
|
130
|
+
# Add additional model properties to the instance
|
|
131
|
+
additional_properties = {} if additional_properties.nil?
|
|
132
|
+
|
|
133
|
+
@account_name = account_name unless account_name == SKIP
|
|
134
|
+
@account_number = account_number
|
|
135
|
+
@account_type = account_type
|
|
136
|
+
@email = email unless email == SKIP
|
|
137
|
+
@first_name = first_name unless first_name == SKIP
|
|
138
|
+
@last_name = last_name unless last_name == SKIP
|
|
139
|
+
@routing_number = routing_number
|
|
140
|
+
@error_message = error_message unless error_message == SKIP
|
|
141
|
+
@guid = guid unless guid == SKIP
|
|
142
|
+
@institution_code = institution_code unless institution_code == SKIP
|
|
143
|
+
@institution_name = institution_name unless institution_name == SKIP
|
|
144
|
+
@status = status unless status == SKIP
|
|
145
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
146
|
+
@verified_at = verified_at unless verified_at == SKIP
|
|
147
|
+
@additional_properties = additional_properties
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Creates an instance of the object from a hash.
|
|
151
|
+
def self.from_hash(hash)
|
|
152
|
+
return nil unless hash
|
|
153
|
+
|
|
154
|
+
# Extract variables from the hash.
|
|
155
|
+
account_number =
|
|
156
|
+
hash.key?('account_number') ? hash['account_number'] : nil
|
|
157
|
+
account_type = hash.key?('account_type') ? hash['account_type'] : nil
|
|
158
|
+
routing_number =
|
|
159
|
+
hash.key?('routing_number') ? hash['routing_number'] : nil
|
|
160
|
+
account_name = hash.key?('account_name') ? hash['account_name'] : SKIP
|
|
161
|
+
email = hash.key?('email') ? hash['email'] : SKIP
|
|
162
|
+
first_name = hash.key?('first_name') ? hash['first_name'] : SKIP
|
|
163
|
+
last_name = hash.key?('last_name') ? hash['last_name'] : SKIP
|
|
164
|
+
error_message = hash.key?('error_message') ? hash['error_message'] : SKIP
|
|
165
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
166
|
+
institution_code =
|
|
167
|
+
hash.key?('institution_code') ? hash['institution_code'] : SKIP
|
|
168
|
+
institution_name =
|
|
169
|
+
hash.key?('institution_name') ? hash['institution_name'] : SKIP
|
|
170
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
171
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
172
|
+
verified_at = hash.key?('verified_at') ? hash['verified_at'] : SKIP
|
|
173
|
+
|
|
174
|
+
# Create a new hash for additional properties, removing known properties.
|
|
175
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
176
|
+
|
|
177
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
178
|
+
new_hash, proc { |value| value }
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
# Create object from extracted values.
|
|
182
|
+
MicroDeposit.new(account_number: account_number,
|
|
183
|
+
account_type: account_type,
|
|
184
|
+
routing_number: routing_number,
|
|
185
|
+
account_name: account_name,
|
|
186
|
+
email: email,
|
|
187
|
+
first_name: first_name,
|
|
188
|
+
last_name: last_name,
|
|
189
|
+
error_message: error_message,
|
|
190
|
+
guid: guid,
|
|
191
|
+
institution_code: institution_code,
|
|
192
|
+
institution_name: institution_name,
|
|
193
|
+
status: status,
|
|
194
|
+
updated_at: updated_at,
|
|
195
|
+
verified_at: verified_at,
|
|
196
|
+
additional_properties: additional_properties)
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Provides a human-readable string representation of the object.
|
|
200
|
+
def to_s
|
|
201
|
+
class_name = self.class.name.split('::').last
|
|
202
|
+
"<#{class_name} account_name: #{@account_name}, account_number: #{@account_number},"\
|
|
203
|
+
" account_type: #{@account_type}, email: #{@email}, first_name: #{@first_name}, last_name:"\
|
|
204
|
+
" #{@last_name}, routing_number: #{@routing_number}, error_message: #{@error_message}, guid:"\
|
|
205
|
+
" #{@guid}, institution_code: #{@institution_code}, institution_name: #{@institution_name},"\
|
|
206
|
+
" status: #{@status}, updated_at: #{@updated_at}, verified_at: #{@verified_at},"\
|
|
207
|
+
" additional_properties: #{@additional_properties}>"
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
211
|
+
def inspect
|
|
212
|
+
class_name = self.class.name.split('::').last
|
|
213
|
+
"<#{class_name} account_name: #{@account_name.inspect}, account_number:"\
|
|
214
|
+
" #{@account_number.inspect}, account_type: #{@account_type.inspect}, email:"\
|
|
215
|
+
" #{@email.inspect}, first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\
|
|
216
|
+
" routing_number: #{@routing_number.inspect}, error_message: #{@error_message.inspect},"\
|
|
217
|
+
" guid: #{@guid.inspect}, institution_code: #{@institution_code.inspect}, institution_name:"\
|
|
218
|
+
" #{@institution_name.inspect}, status: #{@status.inspect}, updated_at:"\
|
|
219
|
+
" #{@updated_at.inspect}, verified_at: #{@verified_at.inspect}, additional_properties:"\
|
|
220
|
+
" #{@additional_properties}>"
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
end
|
|
@@ -0,0 +1,141 @@
|
|
|
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
|
+
# MicrodepositElements Model.
|
|
8
|
+
class MicrodepositElements < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The human-readable name for the account.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :account_name
|
|
15
|
+
|
|
16
|
+
# The account number associated with the account. This will typically be a
|
|
17
|
+
# masked or partial account number.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :account_number
|
|
20
|
+
|
|
21
|
+
# The type of account. Some account types may include subtypes.
|
|
22
|
+
# @return [AccountType]
|
|
23
|
+
attr_accessor :account_type
|
|
24
|
+
|
|
25
|
+
# The email address associated with the account.
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :email
|
|
28
|
+
|
|
29
|
+
# The account owner's first name. This may also include a middle name. This
|
|
30
|
+
# field will be `null` unless name splitting has been enabled. Contact MX to
|
|
31
|
+
# have this feature enabled.
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :first_name
|
|
34
|
+
|
|
35
|
+
# The last name of the account holder.
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :last_name
|
|
38
|
+
|
|
39
|
+
# The routing number for the `account`.
|
|
40
|
+
# @return [String]
|
|
41
|
+
attr_accessor :routing_number
|
|
42
|
+
|
|
43
|
+
# A mapping from model property names to API property names.
|
|
44
|
+
def self.names
|
|
45
|
+
@_hash = {} if @_hash.nil?
|
|
46
|
+
@_hash['account_name'] = 'account_name'
|
|
47
|
+
@_hash['account_number'] = 'account_number'
|
|
48
|
+
@_hash['account_type'] = 'account_type'
|
|
49
|
+
@_hash['email'] = 'email'
|
|
50
|
+
@_hash['first_name'] = 'first_name'
|
|
51
|
+
@_hash['last_name'] = 'last_name'
|
|
52
|
+
@_hash['routing_number'] = 'routing_number'
|
|
53
|
+
@_hash
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# An array for optional fields
|
|
57
|
+
def self.optionals
|
|
58
|
+
%w[
|
|
59
|
+
account_name
|
|
60
|
+
email
|
|
61
|
+
first_name
|
|
62
|
+
last_name
|
|
63
|
+
]
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# An array for nullable fields
|
|
67
|
+
def self.nullables
|
|
68
|
+
%w[
|
|
69
|
+
account_type
|
|
70
|
+
]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def initialize(account_number:, account_type:, routing_number:,
|
|
74
|
+
account_name: SKIP, email: SKIP, first_name: SKIP,
|
|
75
|
+
last_name: SKIP, additional_properties: nil)
|
|
76
|
+
# Add additional model properties to the instance
|
|
77
|
+
additional_properties = {} if additional_properties.nil?
|
|
78
|
+
|
|
79
|
+
@account_name = account_name unless account_name == SKIP
|
|
80
|
+
@account_number = account_number
|
|
81
|
+
@account_type = account_type
|
|
82
|
+
@email = email unless email == SKIP
|
|
83
|
+
@first_name = first_name unless first_name == SKIP
|
|
84
|
+
@last_name = last_name unless last_name == SKIP
|
|
85
|
+
@routing_number = routing_number
|
|
86
|
+
@additional_properties = additional_properties
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Creates an instance of the object from a hash.
|
|
90
|
+
def self.from_hash(hash)
|
|
91
|
+
return nil unless hash
|
|
92
|
+
|
|
93
|
+
# Extract variables from the hash.
|
|
94
|
+
account_number =
|
|
95
|
+
hash.key?('account_number') ? hash['account_number'] : nil
|
|
96
|
+
account_type = hash.key?('account_type') ? hash['account_type'] : nil
|
|
97
|
+
routing_number =
|
|
98
|
+
hash.key?('routing_number') ? hash['routing_number'] : nil
|
|
99
|
+
account_name = hash.key?('account_name') ? hash['account_name'] : SKIP
|
|
100
|
+
email = hash.key?('email') ? hash['email'] : SKIP
|
|
101
|
+
first_name = hash.key?('first_name') ? hash['first_name'] : SKIP
|
|
102
|
+
last_name = hash.key?('last_name') ? hash['last_name'] : SKIP
|
|
103
|
+
|
|
104
|
+
# Create a new hash for additional properties, removing known properties.
|
|
105
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
106
|
+
|
|
107
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
108
|
+
new_hash, proc { |value| value }
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
# Create object from extracted values.
|
|
112
|
+
MicrodepositElements.new(account_number: account_number,
|
|
113
|
+
account_type: account_type,
|
|
114
|
+
routing_number: routing_number,
|
|
115
|
+
account_name: account_name,
|
|
116
|
+
email: email,
|
|
117
|
+
first_name: first_name,
|
|
118
|
+
last_name: last_name,
|
|
119
|
+
additional_properties: additional_properties)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Provides a human-readable string representation of the object.
|
|
123
|
+
def to_s
|
|
124
|
+
class_name = self.class.name.split('::').last
|
|
125
|
+
"<#{class_name} account_name: #{@account_name}, account_number: #{@account_number},"\
|
|
126
|
+
" account_type: #{@account_type}, email: #{@email}, first_name: #{@first_name}, last_name:"\
|
|
127
|
+
" #{@last_name}, routing_number: #{@routing_number}, additional_properties:"\
|
|
128
|
+
" #{@additional_properties}>"
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
132
|
+
def inspect
|
|
133
|
+
class_name = self.class.name.split('::').last
|
|
134
|
+
"<#{class_name} account_name: #{@account_name.inspect}, account_number:"\
|
|
135
|
+
" #{@account_number.inspect}, account_type: #{@account_type.inspect}, email:"\
|
|
136
|
+
" #{@email.inspect}, first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\
|
|
137
|
+
" routing_number: #{@routing_number.inspect}, additional_properties:"\
|
|
138
|
+
" #{@additional_properties}>"
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
# MicrodepositRequestBody Model.
|
|
8
|
+
class MicrodepositRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [MicrodepositElements]
|
|
14
|
+
attr_accessor :micro_deposit
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['micro_deposit'] = 'micro_deposit'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
micro_deposit
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(micro_deposit: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@micro_deposit = micro_deposit unless micro_deposit == 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
|
+
micro_deposit = MicrodepositElements.from_hash(hash['micro_deposit']) if
|
|
49
|
+
hash['micro_deposit']
|
|
50
|
+
|
|
51
|
+
# Create a new hash for additional properties, removing known properties.
|
|
52
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
53
|
+
|
|
54
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
55
|
+
new_hash, proc { |value| value }
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
# Create object from extracted values.
|
|
59
|
+
MicrodepositRequestBody.new(micro_deposit: micro_deposit,
|
|
60
|
+
additional_properties: additional_properties)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Provides a human-readable string representation of the object.
|
|
64
|
+
def to_s
|
|
65
|
+
class_name = self.class.name.split('::').last
|
|
66
|
+
"<#{class_name} micro_deposit: #{@micro_deposit}, additional_properties:"\
|
|
67
|
+
" #{@additional_properties}>"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
71
|
+
def inspect
|
|
72
|
+
class_name = self.class.name.split('::').last
|
|
73
|
+
"<#{class_name} micro_deposit: #{@micro_deposit.inspect}, additional_properties:"\
|
|
74
|
+
" #{@additional_properties}>"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
# MicrodepositResponse Model.
|
|
8
|
+
class MicrodepositResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# A message describing an error that occurred.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :error_message
|
|
15
|
+
|
|
16
|
+
# The unique identifier for the microdeposit. Defined by MX.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :guid
|
|
19
|
+
|
|
20
|
+
# The code identifying a financial institution.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :institution_code
|
|
23
|
+
|
|
24
|
+
# An easy-to-read name for an institution. May be `null` for institutions
|
|
25
|
+
# that are not in the MX system.
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :institution_name
|
|
28
|
+
|
|
29
|
+
# The name of the current status. See [Microdeposit
|
|
30
|
+
# Statuses](/api-reference/platform-api/reference/microdeposits#microdeposit
|
|
31
|
+
# -statuseses).
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :status
|
|
34
|
+
|
|
35
|
+
# The date and time the resource was last updated in ISO 8601 format with a
|
|
36
|
+
# timestamp.
|
|
37
|
+
# For categories, this field will always be `null` when `is_default` is
|
|
38
|
+
# `true`.
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :updated_at
|
|
41
|
+
|
|
42
|
+
# The date and time at which the microdeposit status changed from
|
|
43
|
+
# `DEPOSITED` to `VERIFIED`.
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :verified_at
|
|
46
|
+
|
|
47
|
+
# A mapping from model property names to API property names.
|
|
48
|
+
def self.names
|
|
49
|
+
@_hash = {} if @_hash.nil?
|
|
50
|
+
@_hash['error_message'] = 'error_message'
|
|
51
|
+
@_hash['guid'] = 'guid'
|
|
52
|
+
@_hash['institution_code'] = 'institution_code'
|
|
53
|
+
@_hash['institution_name'] = 'institution_name'
|
|
54
|
+
@_hash['status'] = 'status'
|
|
55
|
+
@_hash['updated_at'] = 'updated_at'
|
|
56
|
+
@_hash['verified_at'] = 'verified_at'
|
|
57
|
+
@_hash
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# An array for optional fields
|
|
61
|
+
def self.optionals
|
|
62
|
+
%w[
|
|
63
|
+
error_message
|
|
64
|
+
guid
|
|
65
|
+
institution_code
|
|
66
|
+
institution_name
|
|
67
|
+
status
|
|
68
|
+
updated_at
|
|
69
|
+
verified_at
|
|
70
|
+
]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# An array for nullable fields
|
|
74
|
+
def self.nullables
|
|
75
|
+
%w[
|
|
76
|
+
error_message
|
|
77
|
+
verified_at
|
|
78
|
+
]
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def initialize(error_message: SKIP, guid: SKIP, institution_code: SKIP,
|
|
82
|
+
institution_name: SKIP, status: SKIP, updated_at: SKIP,
|
|
83
|
+
verified_at: SKIP, additional_properties: nil)
|
|
84
|
+
# Add additional model properties to the instance
|
|
85
|
+
additional_properties = {} if additional_properties.nil?
|
|
86
|
+
|
|
87
|
+
@error_message = error_message unless error_message == SKIP
|
|
88
|
+
@guid = guid unless guid == SKIP
|
|
89
|
+
@institution_code = institution_code unless institution_code == SKIP
|
|
90
|
+
@institution_name = institution_name unless institution_name == SKIP
|
|
91
|
+
@status = status unless status == SKIP
|
|
92
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
93
|
+
@verified_at = verified_at unless verified_at == SKIP
|
|
94
|
+
@additional_properties = additional_properties
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Creates an instance of the object from a hash.
|
|
98
|
+
def self.from_hash(hash)
|
|
99
|
+
return nil unless hash
|
|
100
|
+
|
|
101
|
+
# Extract variables from the hash.
|
|
102
|
+
error_message = hash.key?('error_message') ? hash['error_message'] : SKIP
|
|
103
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
104
|
+
institution_code =
|
|
105
|
+
hash.key?('institution_code') ? hash['institution_code'] : SKIP
|
|
106
|
+
institution_name =
|
|
107
|
+
hash.key?('institution_name') ? hash['institution_name'] : SKIP
|
|
108
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
109
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
110
|
+
verified_at = hash.key?('verified_at') ? hash['verified_at'] : SKIP
|
|
111
|
+
|
|
112
|
+
# Create a new hash for additional properties, removing known properties.
|
|
113
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
114
|
+
|
|
115
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
116
|
+
new_hash, proc { |value| value }
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
# Create object from extracted values.
|
|
120
|
+
MicrodepositResponse.new(error_message: error_message,
|
|
121
|
+
guid: guid,
|
|
122
|
+
institution_code: institution_code,
|
|
123
|
+
institution_name: institution_name,
|
|
124
|
+
status: status,
|
|
125
|
+
updated_at: updated_at,
|
|
126
|
+
verified_at: verified_at,
|
|
127
|
+
additional_properties: additional_properties)
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Provides a human-readable string representation of the object.
|
|
131
|
+
def to_s
|
|
132
|
+
class_name = self.class.name.split('::').last
|
|
133
|
+
"<#{class_name} error_message: #{@error_message}, guid: #{@guid}, institution_code:"\
|
|
134
|
+
" #{@institution_code}, institution_name: #{@institution_name}, status: #{@status},"\
|
|
135
|
+
" updated_at: #{@updated_at}, verified_at: #{@verified_at}, additional_properties:"\
|
|
136
|
+
" #{@additional_properties}>"
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
140
|
+
def inspect
|
|
141
|
+
class_name = self.class.name.split('::').last
|
|
142
|
+
"<#{class_name} error_message: #{@error_message.inspect}, guid: #{@guid.inspect},"\
|
|
143
|
+
" institution_code: #{@institution_code.inspect}, institution_name:"\
|
|
144
|
+
" #{@institution_name.inspect}, status: #{@status.inspect}, updated_at:"\
|
|
145
|
+
" #{@updated_at.inspect}, verified_at: #{@verified_at.inspect}, additional_properties:"\
|
|
146
|
+
" #{@additional_properties}>"
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
# MicrodepositResponseBody Model.
|
|
8
|
+
class MicrodepositResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[MicroDeposit]]
|
|
14
|
+
attr_accessor :micro_deposit
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['micro_deposit'] = 'micro_deposit'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
micro_deposit
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(micro_deposit: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@micro_deposit = micro_deposit unless micro_deposit == 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
|
+
# Parameter is an array, so we need to iterate through it
|
|
49
|
+
micro_deposit = nil
|
|
50
|
+
unless hash['micro_deposit'].nil?
|
|
51
|
+
micro_deposit = []
|
|
52
|
+
hash['micro_deposit'].each do |structure|
|
|
53
|
+
micro_deposit << (MicroDeposit.from_hash(structure) if structure)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
micro_deposit = SKIP unless hash.key?('micro_deposit')
|
|
58
|
+
|
|
59
|
+
# Create a new hash for additional properties, removing known properties.
|
|
60
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
61
|
+
|
|
62
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
63
|
+
new_hash, proc { |value| value }
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
# Create object from extracted values.
|
|
67
|
+
MicrodepositResponseBody.new(micro_deposit: micro_deposit,
|
|
68
|
+
additional_properties: additional_properties)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Provides a human-readable string representation of the object.
|
|
72
|
+
def to_s
|
|
73
|
+
class_name = self.class.name.split('::').last
|
|
74
|
+
"<#{class_name} micro_deposit: #{@micro_deposit}, additional_properties:"\
|
|
75
|
+
" #{@additional_properties}>"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
79
|
+
def inspect
|
|
80
|
+
class_name = self.class.name.split('::').last
|
|
81
|
+
"<#{class_name} micro_deposit: #{@micro_deposit.inspect}, additional_properties:"\
|
|
82
|
+
" #{@additional_properties}>"
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|