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,183 @@
|
|
|
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
|
+
# PaymentAccount Model.
|
|
8
|
+
class PaymentAccount < 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 banking account number associated with a particular account.
|
|
17
|
+
# @return [Object]
|
|
18
|
+
attr_accessor :account_number
|
|
19
|
+
|
|
20
|
+
# The type of account. Some account types may include subtypes.
|
|
21
|
+
# @return [AccountType]
|
|
22
|
+
attr_accessor :account_type
|
|
23
|
+
|
|
24
|
+
# The balance that is available for use in asset accounts like checking and
|
|
25
|
+
# savings.
|
|
26
|
+
# `PENDING` transactions are typically (not always) taken into account with
|
|
27
|
+
# the available balance.
|
|
28
|
+
# `available_balance` will usually be a positive value for all account
|
|
29
|
+
# types, determined in the same way as the balance field.
|
|
30
|
+
# @return [Float]
|
|
31
|
+
attr_accessor :available_balance
|
|
32
|
+
|
|
33
|
+
# The current balance of the account.
|
|
34
|
+
# `PENDING` transactions are typically not taken into account with the
|
|
35
|
+
# current balance, but this may not always be the case.
|
|
36
|
+
#
|
|
37
|
+
# The balance will usually be a positive value for all account types.
|
|
38
|
+
# Asset-type accounts (`CHECKING`, `SAVINGS`, `INVESTMENT`) may have a
|
|
39
|
+
# negative balance if they are in overdraft.
|
|
40
|
+
# Debt-type accounts (`CREDIT_CARD`, `LOAN`, `LINE_OF_CREDIT`, `MORTGAGE`)
|
|
41
|
+
# may have a negative balance if they are overpaid.
|
|
42
|
+
# @return [Float]
|
|
43
|
+
attr_accessor :balance
|
|
44
|
+
|
|
45
|
+
# The date and time the resource was created, represented in ISO 8601 format
|
|
46
|
+
# with a timestamp.
|
|
47
|
+
# @return [String]
|
|
48
|
+
attr_accessor :created_at
|
|
49
|
+
|
|
50
|
+
# The routing number for the `account`.
|
|
51
|
+
# @return [Object]
|
|
52
|
+
attr_accessor :routing_number
|
|
53
|
+
|
|
54
|
+
# The five-digit number identifying the branch of a Canadian financial
|
|
55
|
+
# institution.
|
|
56
|
+
# @return [Object]
|
|
57
|
+
attr_accessor :transit_number
|
|
58
|
+
|
|
59
|
+
# The date and time the resource was last updated in ISO 8601 format with a
|
|
60
|
+
# timestamp.
|
|
61
|
+
# For categories, this field will always be `null` when `is_default` is
|
|
62
|
+
# `true`.
|
|
63
|
+
# @return [String]
|
|
64
|
+
attr_accessor :updated_at
|
|
65
|
+
|
|
66
|
+
# A mapping from model property names to API property names.
|
|
67
|
+
def self.names
|
|
68
|
+
@_hash = {} if @_hash.nil?
|
|
69
|
+
@_hash['account_name'] = 'account_name'
|
|
70
|
+
@_hash['account_number'] = 'account_number'
|
|
71
|
+
@_hash['account_type'] = 'account_type'
|
|
72
|
+
@_hash['available_balance'] = 'available_balance'
|
|
73
|
+
@_hash['balance'] = 'balance'
|
|
74
|
+
@_hash['created_at'] = 'created_at'
|
|
75
|
+
@_hash['routing_number'] = 'routing_number'
|
|
76
|
+
@_hash['transit_number'] = 'transit_number'
|
|
77
|
+
@_hash['updated_at'] = 'updated_at'
|
|
78
|
+
@_hash
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# An array for optional fields
|
|
82
|
+
def self.optionals
|
|
83
|
+
%w[
|
|
84
|
+
account_name
|
|
85
|
+
account_number
|
|
86
|
+
account_type
|
|
87
|
+
available_balance
|
|
88
|
+
balance
|
|
89
|
+
created_at
|
|
90
|
+
routing_number
|
|
91
|
+
transit_number
|
|
92
|
+
updated_at
|
|
93
|
+
]
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# An array for nullable fields
|
|
97
|
+
def self.nullables
|
|
98
|
+
%w[
|
|
99
|
+
account_type
|
|
100
|
+
updated_at
|
|
101
|
+
]
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def initialize(account_name: SKIP, account_number: SKIP, account_type: SKIP,
|
|
105
|
+
available_balance: SKIP, balance: SKIP, created_at: SKIP,
|
|
106
|
+
routing_number: SKIP, transit_number: SKIP, updated_at: SKIP,
|
|
107
|
+
additional_properties: nil)
|
|
108
|
+
# Add additional model properties to the instance
|
|
109
|
+
additional_properties = {} if additional_properties.nil?
|
|
110
|
+
|
|
111
|
+
@account_name = account_name unless account_name == SKIP
|
|
112
|
+
@account_number = account_number unless account_number == SKIP
|
|
113
|
+
@account_type = account_type unless account_type == SKIP
|
|
114
|
+
@available_balance = available_balance unless available_balance == SKIP
|
|
115
|
+
@balance = balance unless balance == SKIP
|
|
116
|
+
@created_at = created_at unless created_at == SKIP
|
|
117
|
+
@routing_number = routing_number unless routing_number == SKIP
|
|
118
|
+
@transit_number = transit_number unless transit_number == SKIP
|
|
119
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
120
|
+
@additional_properties = additional_properties
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Creates an instance of the object from a hash.
|
|
124
|
+
def self.from_hash(hash)
|
|
125
|
+
return nil unless hash
|
|
126
|
+
|
|
127
|
+
# Extract variables from the hash.
|
|
128
|
+
account_name = hash.key?('account_name') ? hash['account_name'] : SKIP
|
|
129
|
+
account_number =
|
|
130
|
+
hash.key?('account_number') ? hash['account_number'] : SKIP
|
|
131
|
+
account_type = hash.key?('account_type') ? hash['account_type'] : SKIP
|
|
132
|
+
available_balance =
|
|
133
|
+
hash.key?('available_balance') ? hash['available_balance'] : SKIP
|
|
134
|
+
balance = hash.key?('balance') ? hash['balance'] : SKIP
|
|
135
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
136
|
+
routing_number =
|
|
137
|
+
hash.key?('routing_number') ? hash['routing_number'] : SKIP
|
|
138
|
+
transit_number =
|
|
139
|
+
hash.key?('transit_number') ? hash['transit_number'] : SKIP
|
|
140
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
141
|
+
|
|
142
|
+
# Create a new hash for additional properties, removing known properties.
|
|
143
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
144
|
+
|
|
145
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
146
|
+
new_hash, proc { |value| value }
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
# Create object from extracted values.
|
|
150
|
+
PaymentAccount.new(account_name: account_name,
|
|
151
|
+
account_number: account_number,
|
|
152
|
+
account_type: account_type,
|
|
153
|
+
available_balance: available_balance,
|
|
154
|
+
balance: balance,
|
|
155
|
+
created_at: created_at,
|
|
156
|
+
routing_number: routing_number,
|
|
157
|
+
transit_number: transit_number,
|
|
158
|
+
updated_at: updated_at,
|
|
159
|
+
additional_properties: additional_properties)
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Provides a human-readable string representation of the object.
|
|
163
|
+
def to_s
|
|
164
|
+
class_name = self.class.name.split('::').last
|
|
165
|
+
"<#{class_name} account_name: #{@account_name}, account_number: #{@account_number},"\
|
|
166
|
+
" account_type: #{@account_type}, available_balance: #{@available_balance}, balance:"\
|
|
167
|
+
" #{@balance}, created_at: #{@created_at}, routing_number: #{@routing_number},"\
|
|
168
|
+
" transit_number: #{@transit_number}, updated_at: #{@updated_at}, additional_properties:"\
|
|
169
|
+
" #{@additional_properties}>"
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
173
|
+
def inspect
|
|
174
|
+
class_name = self.class.name.split('::').last
|
|
175
|
+
"<#{class_name} account_name: #{@account_name.inspect}, account_number:"\
|
|
176
|
+
" #{@account_number.inspect}, account_type: #{@account_type.inspect}, available_balance:"\
|
|
177
|
+
" #{@available_balance.inspect}, balance: #{@balance.inspect}, created_at:"\
|
|
178
|
+
" #{@created_at.inspect}, routing_number: #{@routing_number.inspect}, transit_number:"\
|
|
179
|
+
" #{@transit_number.inspect}, updated_at: #{@updated_at.inspect}, additional_properties:"\
|
|
180
|
+
" #{@additional_properties}>"
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
end
|
|
@@ -0,0 +1,213 @@
|
|
|
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
|
+
# PaymentAccount1 Model.
|
|
8
|
+
class PaymentAccount1 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The unique identifier for an account. Defined by MX.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :account_guid
|
|
15
|
+
|
|
16
|
+
# The unique identifier for the member. Defined by MX.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :member_guid
|
|
19
|
+
|
|
20
|
+
# The unique identifier for the user. Defined by MX.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :user_guid
|
|
23
|
+
|
|
24
|
+
# The human-readable name for the account.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :account_name
|
|
27
|
+
|
|
28
|
+
# The banking account number associated with a particular account.
|
|
29
|
+
# @return [Object]
|
|
30
|
+
attr_accessor :account_number
|
|
31
|
+
|
|
32
|
+
# The type of account. Some account types may include subtypes.
|
|
33
|
+
# @return [AccountType]
|
|
34
|
+
attr_accessor :account_type
|
|
35
|
+
|
|
36
|
+
# The balance that is available for use in asset accounts like checking and
|
|
37
|
+
# savings.
|
|
38
|
+
# `PENDING` transactions are typically (not always) taken into account with
|
|
39
|
+
# the available balance.
|
|
40
|
+
# `available_balance` will usually be a positive value for all account
|
|
41
|
+
# types, determined in the same way as the balance field.
|
|
42
|
+
# @return [Float]
|
|
43
|
+
attr_accessor :available_balance
|
|
44
|
+
|
|
45
|
+
# The current balance of the account.
|
|
46
|
+
# `PENDING` transactions are typically not taken into account with the
|
|
47
|
+
# current balance, but this may not always be the case.
|
|
48
|
+
#
|
|
49
|
+
# The balance will usually be a positive value for all account types.
|
|
50
|
+
# Asset-type accounts (`CHECKING`, `SAVINGS`, `INVESTMENT`) may have a
|
|
51
|
+
# negative balance if they are in overdraft.
|
|
52
|
+
# Debt-type accounts (`CREDIT_CARD`, `LOAN`, `LINE_OF_CREDIT`, `MORTGAGE`)
|
|
53
|
+
# may have a negative balance if they are overpaid.
|
|
54
|
+
# @return [Float]
|
|
55
|
+
attr_accessor :balance
|
|
56
|
+
|
|
57
|
+
# The date and time the resource was created, represented in ISO 8601 format
|
|
58
|
+
# with a timestamp.
|
|
59
|
+
# @return [String]
|
|
60
|
+
attr_accessor :created_at
|
|
61
|
+
|
|
62
|
+
# The routing number for the `account`.
|
|
63
|
+
# @return [Object]
|
|
64
|
+
attr_accessor :routing_number
|
|
65
|
+
|
|
66
|
+
# The five-digit number identifying the branch of a Canadian financial
|
|
67
|
+
# institution.
|
|
68
|
+
# @return [Object]
|
|
69
|
+
attr_accessor :transit_number
|
|
70
|
+
|
|
71
|
+
# The date and time the resource was last updated in ISO 8601 format with a
|
|
72
|
+
# timestamp.
|
|
73
|
+
# For categories, this field will always be `null` when `is_default` is
|
|
74
|
+
# `true`.
|
|
75
|
+
# @return [String]
|
|
76
|
+
attr_accessor :updated_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_guid'] = 'account_guid'
|
|
82
|
+
@_hash['member_guid'] = 'member_guid'
|
|
83
|
+
@_hash['user_guid'] = 'user_guid'
|
|
84
|
+
@_hash['account_name'] = 'account_name'
|
|
85
|
+
@_hash['account_number'] = 'account_number'
|
|
86
|
+
@_hash['account_type'] = 'account_type'
|
|
87
|
+
@_hash['available_balance'] = 'available_balance'
|
|
88
|
+
@_hash['balance'] = 'balance'
|
|
89
|
+
@_hash['created_at'] = 'created_at'
|
|
90
|
+
@_hash['routing_number'] = 'routing_number'
|
|
91
|
+
@_hash['transit_number'] = 'transit_number'
|
|
92
|
+
@_hash['updated_at'] = 'updated_at'
|
|
93
|
+
@_hash
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# An array for optional fields
|
|
97
|
+
def self.optionals
|
|
98
|
+
%w[
|
|
99
|
+
account_guid
|
|
100
|
+
member_guid
|
|
101
|
+
user_guid
|
|
102
|
+
account_name
|
|
103
|
+
account_number
|
|
104
|
+
account_type
|
|
105
|
+
available_balance
|
|
106
|
+
balance
|
|
107
|
+
created_at
|
|
108
|
+
routing_number
|
|
109
|
+
transit_number
|
|
110
|
+
updated_at
|
|
111
|
+
]
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# An array for nullable fields
|
|
115
|
+
def self.nullables
|
|
116
|
+
%w[
|
|
117
|
+
account_type
|
|
118
|
+
updated_at
|
|
119
|
+
]
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
def initialize(account_guid: SKIP, member_guid: SKIP, user_guid: SKIP,
|
|
123
|
+
account_name: SKIP, account_number: SKIP, account_type: SKIP,
|
|
124
|
+
available_balance: SKIP, balance: SKIP, created_at: SKIP,
|
|
125
|
+
routing_number: SKIP, transit_number: SKIP, updated_at: SKIP,
|
|
126
|
+
additional_properties: nil)
|
|
127
|
+
# Add additional model properties to the instance
|
|
128
|
+
additional_properties = {} if additional_properties.nil?
|
|
129
|
+
|
|
130
|
+
@account_guid = account_guid unless account_guid == SKIP
|
|
131
|
+
@member_guid = member_guid unless member_guid == SKIP
|
|
132
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
133
|
+
@account_name = account_name unless account_name == SKIP
|
|
134
|
+
@account_number = account_number unless account_number == SKIP
|
|
135
|
+
@account_type = account_type unless account_type == SKIP
|
|
136
|
+
@available_balance = available_balance unless available_balance == SKIP
|
|
137
|
+
@balance = balance unless balance == SKIP
|
|
138
|
+
@created_at = created_at unless created_at == SKIP
|
|
139
|
+
@routing_number = routing_number unless routing_number == SKIP
|
|
140
|
+
@transit_number = transit_number unless transit_number == SKIP
|
|
141
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
142
|
+
@additional_properties = additional_properties
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Creates an instance of the object from a hash.
|
|
146
|
+
def self.from_hash(hash)
|
|
147
|
+
return nil unless hash
|
|
148
|
+
|
|
149
|
+
# Extract variables from the hash.
|
|
150
|
+
account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
|
|
151
|
+
member_guid = hash.key?('member_guid') ? hash['member_guid'] : SKIP
|
|
152
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
153
|
+
account_name = hash.key?('account_name') ? hash['account_name'] : SKIP
|
|
154
|
+
account_number =
|
|
155
|
+
hash.key?('account_number') ? hash['account_number'] : SKIP
|
|
156
|
+
account_type = hash.key?('account_type') ? hash['account_type'] : SKIP
|
|
157
|
+
available_balance =
|
|
158
|
+
hash.key?('available_balance') ? hash['available_balance'] : SKIP
|
|
159
|
+
balance = hash.key?('balance') ? hash['balance'] : SKIP
|
|
160
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
161
|
+
routing_number =
|
|
162
|
+
hash.key?('routing_number') ? hash['routing_number'] : SKIP
|
|
163
|
+
transit_number =
|
|
164
|
+
hash.key?('transit_number') ? hash['transit_number'] : SKIP
|
|
165
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
166
|
+
|
|
167
|
+
# Create a new hash for additional properties, removing known properties.
|
|
168
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
169
|
+
|
|
170
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
171
|
+
new_hash, proc { |value| value }
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
# Create object from extracted values.
|
|
175
|
+
PaymentAccount1.new(account_guid: account_guid,
|
|
176
|
+
member_guid: member_guid,
|
|
177
|
+
user_guid: user_guid,
|
|
178
|
+
account_name: account_name,
|
|
179
|
+
account_number: account_number,
|
|
180
|
+
account_type: account_type,
|
|
181
|
+
available_balance: available_balance,
|
|
182
|
+
balance: balance,
|
|
183
|
+
created_at: created_at,
|
|
184
|
+
routing_number: routing_number,
|
|
185
|
+
transit_number: transit_number,
|
|
186
|
+
updated_at: updated_at,
|
|
187
|
+
additional_properties: additional_properties)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Provides a human-readable string representation of the object.
|
|
191
|
+
def to_s
|
|
192
|
+
class_name = self.class.name.split('::').last
|
|
193
|
+
"<#{class_name} account_guid: #{@account_guid}, member_guid: #{@member_guid}, user_guid:"\
|
|
194
|
+
" #{@user_guid}, account_name: #{@account_name}, account_number: #{@account_number},"\
|
|
195
|
+
" account_type: #{@account_type}, available_balance: #{@available_balance}, balance:"\
|
|
196
|
+
" #{@balance}, created_at: #{@created_at}, routing_number: #{@routing_number},"\
|
|
197
|
+
" transit_number: #{@transit_number}, updated_at: #{@updated_at}, additional_properties:"\
|
|
198
|
+
" #{@additional_properties}>"
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
202
|
+
def inspect
|
|
203
|
+
class_name = self.class.name.split('::').last
|
|
204
|
+
"<#{class_name} account_guid: #{@account_guid.inspect}, member_guid:"\
|
|
205
|
+
" #{@member_guid.inspect}, user_guid: #{@user_guid.inspect}, account_name:"\
|
|
206
|
+
" #{@account_name.inspect}, account_number: #{@account_number.inspect}, account_type:"\
|
|
207
|
+
" #{@account_type.inspect}, available_balance: #{@available_balance.inspect}, balance:"\
|
|
208
|
+
" #{@balance.inspect}, created_at: #{@created_at.inspect}, routing_number:"\
|
|
209
|
+
" #{@routing_number.inspect}, transit_number: #{@transit_number.inspect}, updated_at:"\
|
|
210
|
+
" #{@updated_at.inspect}, additional_properties: #{@additional_properties}>"
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
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
|
+
# PaymentAccountBody Model.
|
|
8
|
+
class PaymentAccountBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [PaymentAccount1]
|
|
14
|
+
attr_accessor :payment_account
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['payment_account'] = 'payment_account'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
payment_account
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(payment_account: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@payment_account = payment_account unless payment_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
|
+
payment_account = PaymentAccount1.from_hash(hash['payment_account']) if
|
|
49
|
+
hash['payment_account']
|
|
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
|
+
PaymentAccountBody.new(payment_account: payment_account,
|
|
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} payment_account: #{@payment_account}, 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} payment_account: #{@payment_account.inspect}, additional_properties:"\
|
|
74
|
+
" #{@additional_properties}>"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
# ProcessorAccountNumber Model.
|
|
8
|
+
class ProcessorAccountNumber < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The banking account number associated with a particular account.
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :account_number
|
|
15
|
+
|
|
16
|
+
# The unique identifier for the account number. Defined by MX.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :guid
|
|
19
|
+
|
|
20
|
+
# The three-digit number identifying a Canadian banking institution.
|
|
21
|
+
# @return [Object]
|
|
22
|
+
attr_accessor :institution_number
|
|
23
|
+
|
|
24
|
+
# The guarantor of the student loan.
|
|
25
|
+
# @return [Object]
|
|
26
|
+
attr_accessor :loan_guarantor
|
|
27
|
+
|
|
28
|
+
# The reference number for the student loan.
|
|
29
|
+
# @return [Object]
|
|
30
|
+
attr_accessor :loan_reference_number
|
|
31
|
+
|
|
32
|
+
# Indicates whether the account number has passed validation.
|
|
33
|
+
# @return [Object]
|
|
34
|
+
attr_accessor :passed_validation
|
|
35
|
+
|
|
36
|
+
# The routing number for the `account`.
|
|
37
|
+
# @return [Integer]
|
|
38
|
+
attr_accessor :routing_number
|
|
39
|
+
|
|
40
|
+
# The sequence number for the account.
|
|
41
|
+
# @return [Object]
|
|
42
|
+
attr_accessor :sequence_number
|
|
43
|
+
|
|
44
|
+
# The five-digit number identifying the branch of a Canadian financial
|
|
45
|
+
# institution.
|
|
46
|
+
# @return [Object]
|
|
47
|
+
attr_accessor :transit_number
|
|
48
|
+
|
|
49
|
+
# A mapping from model property names to API property names.
|
|
50
|
+
def self.names
|
|
51
|
+
@_hash = {} if @_hash.nil?
|
|
52
|
+
@_hash['account_number'] = 'account_number'
|
|
53
|
+
@_hash['guid'] = 'guid'
|
|
54
|
+
@_hash['institution_number'] = 'institution_number'
|
|
55
|
+
@_hash['loan_guarantor'] = 'loan_guarantor'
|
|
56
|
+
@_hash['loan_reference_number'] = 'loan_reference_number'
|
|
57
|
+
@_hash['passed_validation'] = 'passed_validation'
|
|
58
|
+
@_hash['routing_number'] = 'routing_number'
|
|
59
|
+
@_hash['sequence_number'] = 'sequence_number'
|
|
60
|
+
@_hash['transit_number'] = 'transit_number'
|
|
61
|
+
@_hash
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# An array for optional fields
|
|
65
|
+
def self.optionals
|
|
66
|
+
%w[
|
|
67
|
+
account_number
|
|
68
|
+
guid
|
|
69
|
+
institution_number
|
|
70
|
+
loan_guarantor
|
|
71
|
+
loan_reference_number
|
|
72
|
+
passed_validation
|
|
73
|
+
routing_number
|
|
74
|
+
sequence_number
|
|
75
|
+
transit_number
|
|
76
|
+
]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# An array for nullable fields
|
|
80
|
+
def self.nullables
|
|
81
|
+
[]
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def initialize(account_number: SKIP, guid: SKIP, institution_number: SKIP,
|
|
85
|
+
loan_guarantor: SKIP, loan_reference_number: SKIP,
|
|
86
|
+
passed_validation: SKIP, routing_number: SKIP,
|
|
87
|
+
sequence_number: SKIP, transit_number: SKIP,
|
|
88
|
+
additional_properties: nil)
|
|
89
|
+
# Add additional model properties to the instance
|
|
90
|
+
additional_properties = {} if additional_properties.nil?
|
|
91
|
+
|
|
92
|
+
@account_number = account_number unless account_number == SKIP
|
|
93
|
+
@guid = guid unless guid == SKIP
|
|
94
|
+
@institution_number = institution_number unless institution_number == SKIP
|
|
95
|
+
@loan_guarantor = loan_guarantor unless loan_guarantor == SKIP
|
|
96
|
+
@loan_reference_number = loan_reference_number unless loan_reference_number == SKIP
|
|
97
|
+
@passed_validation = passed_validation unless passed_validation == SKIP
|
|
98
|
+
@routing_number = routing_number unless routing_number == SKIP
|
|
99
|
+
@sequence_number = sequence_number unless sequence_number == SKIP
|
|
100
|
+
@transit_number = transit_number unless transit_number == SKIP
|
|
101
|
+
@additional_properties = additional_properties
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Creates an instance of the object from a hash.
|
|
105
|
+
def self.from_hash(hash)
|
|
106
|
+
return nil unless hash
|
|
107
|
+
|
|
108
|
+
# Extract variables from the hash.
|
|
109
|
+
account_number =
|
|
110
|
+
hash.key?('account_number') ? hash['account_number'] : SKIP
|
|
111
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
112
|
+
institution_number =
|
|
113
|
+
hash.key?('institution_number') ? hash['institution_number'] : SKIP
|
|
114
|
+
loan_guarantor =
|
|
115
|
+
hash.key?('loan_guarantor') ? hash['loan_guarantor'] : SKIP
|
|
116
|
+
loan_reference_number =
|
|
117
|
+
hash.key?('loan_reference_number') ? hash['loan_reference_number'] : SKIP
|
|
118
|
+
passed_validation =
|
|
119
|
+
hash.key?('passed_validation') ? hash['passed_validation'] : SKIP
|
|
120
|
+
routing_number =
|
|
121
|
+
hash.key?('routing_number') ? hash['routing_number'] : SKIP
|
|
122
|
+
sequence_number =
|
|
123
|
+
hash.key?('sequence_number') ? hash['sequence_number'] : SKIP
|
|
124
|
+
transit_number =
|
|
125
|
+
hash.key?('transit_number') ? hash['transit_number'] : SKIP
|
|
126
|
+
|
|
127
|
+
# Create a new hash for additional properties, removing known properties.
|
|
128
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
129
|
+
|
|
130
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
131
|
+
new_hash, proc { |value| value }
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
# Create object from extracted values.
|
|
135
|
+
ProcessorAccountNumber.new(account_number: account_number,
|
|
136
|
+
guid: guid,
|
|
137
|
+
institution_number: institution_number,
|
|
138
|
+
loan_guarantor: loan_guarantor,
|
|
139
|
+
loan_reference_number: loan_reference_number,
|
|
140
|
+
passed_validation: passed_validation,
|
|
141
|
+
routing_number: routing_number,
|
|
142
|
+
sequence_number: sequence_number,
|
|
143
|
+
transit_number: transit_number,
|
|
144
|
+
additional_properties: additional_properties)
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Provides a human-readable string representation of the object.
|
|
148
|
+
def to_s
|
|
149
|
+
class_name = self.class.name.split('::').last
|
|
150
|
+
"<#{class_name} account_number: #{@account_number}, guid: #{@guid}, institution_number:"\
|
|
151
|
+
" #{@institution_number}, loan_guarantor: #{@loan_guarantor}, loan_reference_number:"\
|
|
152
|
+
" #{@loan_reference_number}, passed_validation: #{@passed_validation}, routing_number:"\
|
|
153
|
+
" #{@routing_number}, sequence_number: #{@sequence_number}, transit_number:"\
|
|
154
|
+
" #{@transit_number}, additional_properties: #{@additional_properties}>"
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
158
|
+
def inspect
|
|
159
|
+
class_name = self.class.name.split('::').last
|
|
160
|
+
"<#{class_name} account_number: #{@account_number.inspect}, guid: #{@guid.inspect},"\
|
|
161
|
+
" institution_number: #{@institution_number.inspect}, loan_guarantor:"\
|
|
162
|
+
" #{@loan_guarantor.inspect}, loan_reference_number: #{@loan_reference_number.inspect},"\
|
|
163
|
+
" passed_validation: #{@passed_validation.inspect}, routing_number:"\
|
|
164
|
+
" #{@routing_number.inspect}, sequence_number: #{@sequence_number.inspect}, transit_number:"\
|
|
165
|
+
" #{@transit_number.inspect}, additional_properties: #{@additional_properties}>"
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|