apimatic-mx-apis-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +207 -0
- data/bin/console +15 -0
- data/lib/mx_platform_api/api_helper.rb +10 -0
- data/lib/mx_platform_api/apis/accounts_api.rb +619 -0
- data/lib/mx_platform_api/apis/ach_return_api.rb +115 -0
- data/lib/mx_platform_api/apis/base_api.rb +67 -0
- data/lib/mx_platform_api/apis/budgets_api.rb +212 -0
- data/lib/mx_platform_api/apis/categories_api.rb +377 -0
- data/lib/mx_platform_api/apis/goals_api.rb +223 -0
- data/lib/mx_platform_api/apis/insights_api.rb +415 -0
- data/lib/mx_platform_api/apis/institutions_api.rb +159 -0
- data/lib/mx_platform_api/apis/investment_holdings_api.rb +191 -0
- data/lib/mx_platform_api/apis/jobs_api.rb +48 -0
- data/lib/mx_platform_api/apis/managed_data_deprecated_api.rb +773 -0
- data/lib/mx_platform_api/apis/members_api.rb +639 -0
- data/lib/mx_platform_api/apis/merchants_api.rb +98 -0
- data/lib/mx_platform_api/apis/microdeposits_api.rb +219 -0
- data/lib/mx_platform_api/apis/monthly_cash_flow_profile_api.rb +75 -0
- data/lib/mx_platform_api/apis/notifications_api.rb +115 -0
- data/lib/mx_platform_api/apis/processor_token_api.rb +141 -0
- data/lib/mx_platform_api/apis/rewards_api.rb +149 -0
- data/lib/mx_platform_api/apis/spending_plan_api.rb +621 -0
- data/lib/mx_platform_api/apis/statements_api.rb +165 -0
- data/lib/mx_platform_api/apis/taggings_api.rb +184 -0
- data/lib/mx_platform_api/apis/tags_api.rb +185 -0
- data/lib/mx_platform_api/apis/transaction_rules_api.rb +163 -0
- data/lib/mx_platform_api/apis/transactions_api.rb +1223 -0
- data/lib/mx_platform_api/apis/users_api.rb +188 -0
- data/lib/mx_platform_api/apis/verifiable_credentials_api.rb +114 -0
- data/lib/mx_platform_api/apis/widgets_api.rb +135 -0
- data/lib/mx_platform_api/client.rb +225 -0
- data/lib/mx_platform_api/configuration.rb +182 -0
- data/lib/mx_platform_api/exceptions/api_exception.rb +21 -0
- data/lib/mx_platform_api/http/api_response.rb +19 -0
- data/lib/mx_platform_api/http/auth/basic_auth.rb +62 -0
- data/lib/mx_platform_api/http/auth/bearer_auth.rb +53 -0
- data/lib/mx_platform_api/http/http_call_back.rb +10 -0
- data/lib/mx_platform_api/http/http_method_enum.rb +10 -0
- data/lib/mx_platform_api/http/http_request.rb +10 -0
- data/lib/mx_platform_api/http/http_response.rb +10 -0
- data/lib/mx_platform_api/http/proxy_settings.rb +22 -0
- data/lib/mx_platform_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/mx_platform_api/logging/sdk_logger.rb +17 -0
- data/lib/mx_platform_api/models/account_create_request.rb +309 -0
- data/lib/mx_platform_api/models/account_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/account_number.rb +199 -0
- data/lib/mx_platform_api/models/account_number_response.rb +215 -0
- data/lib/mx_platform_api/models/account_numbers_response_body.rb +95 -0
- data/lib/mx_platform_api/models/account_owner.rb +186 -0
- data/lib/mx_platform_api/models/account_owner_response.rb +219 -0
- data/lib/mx_platform_api/models/account_owners_response_body.rb +95 -0
- data/lib/mx_platform_api/models/account_ownership.rb +45 -0
- data/lib/mx_platform_api/models/account_response.rb +814 -0
- data/lib/mx_platform_api/models/account_response_body.rb +75 -0
- data/lib/mx_platform_api/models/account_type.rb +80 -0
- data/lib/mx_platform_api/models/account_type1.rb +80 -0
- data/lib/mx_platform_api/models/account_update_request.rb +301 -0
- data/lib/mx_platform_api/models/account_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/accounts_merge_request.rb +75 -0
- data/lib/mx_platform_api/models/accounts_merge_request_body.rb +75 -0
- data/lib/mx_platform_api/models/accounts_response_body.rb +94 -0
- data/lib/mx_platform_api/models/ach_response.rb +424 -0
- data/lib/mx_platform_api/models/ach_return_create_request.rb +256 -0
- data/lib/mx_platform_api/models/ach_return_create_request_body.rb +76 -0
- data/lib/mx_platform_api/models/ach_return_response_body.rb +76 -0
- data/lib/mx_platform_api/models/ach_returns_response_body.rb +95 -0
- data/lib/mx_platform_api/models/authorization_code_request.rb +77 -0
- data/lib/mx_platform_api/models/authorization_code_request_body.rb +77 -0
- data/lib/mx_platform_api/models/authorization_code_response.rb +76 -0
- data/lib/mx_platform_api/models/authorization_code_response_body.rb +77 -0
- data/lib/mx_platform_api/models/base_model.rb +110 -0
- data/lib/mx_platform_api/models/budget_create_request.rb +115 -0
- data/lib/mx_platform_api/models/budget_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/budget_response.rb +246 -0
- data/lib/mx_platform_api/models/budget_response_body.rb +75 -0
- data/lib/mx_platform_api/models/budget_update_request.rb +96 -0
- data/lib/mx_platform_api/models/budget_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/categories_response_body.rb +95 -0
- data/lib/mx_platform_api/models/category_create_request.rb +93 -0
- data/lib/mx_platform_api/models/category_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/category_response.rb +160 -0
- data/lib/mx_platform_api/models/category_response_body.rb +75 -0
- data/lib/mx_platform_api/models/category_update_request.rb +85 -0
- data/lib/mx_platform_api/models/category_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/challenge_response.rb +159 -0
- data/lib/mx_platform_api/models/challenges_response_body.rb +95 -0
- data/lib/mx_platform_api/models/channel.rb +47 -0
- data/lib/mx_platform_api/models/classification.rb +85 -0
- data/lib/mx_platform_api/models/color_scheme.rb +43 -0
- data/lib/mx_platform_api/models/connection_status.rb +118 -0
- data/lib/mx_platform_api/models/credential_request.rb +85 -0
- data/lib/mx_platform_api/models/credential_response.rb +133 -0
- data/lib/mx_platform_api/models/credentials_response_body.rb +95 -0
- data/lib/mx_platform_api/models/credit_card_product.rb +276 -0
- data/lib/mx_platform_api/models/credit_card_product_response.rb +77 -0
- data/lib/mx_platform_api/models/data_request.rb +76 -0
- data/lib/mx_platform_api/models/date_range.rb +87 -0
- data/lib/mx_platform_api/models/date_range_category_totals_response.rb +115 -0
- data/lib/mx_platform_api/models/date_range_category_totals_response_body.rb +88 -0
- data/lib/mx_platform_api/models/deep_link_params.rb +131 -0
- data/lib/mx_platform_api/models/enhance_transaction_response.rb +371 -0
- data/lib/mx_platform_api/models/enhance_transactions_request.rb +143 -0
- data/lib/mx_platform_api/models/enhance_transactions_request_body.rb +85 -0
- data/lib/mx_platform_api/models/enhance_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/error.rb +106 -0
- data/lib/mx_platform_api/models/federal_insurance_status.rb +42 -0
- data/lib/mx_platform_api/models/geolocation.rb +108 -0
- data/lib/mx_platform_api/models/goal_request.rb +179 -0
- data/lib/mx_platform_api/models/goal_request_body.rb +74 -0
- data/lib/mx_platform_api/models/goal_response.rb +241 -0
- data/lib/mx_platform_api/models/goal_response_body.rb +74 -0
- data/lib/mx_platform_api/models/goal_type_name.rb +36 -0
- data/lib/mx_platform_api/models/goals_response.rb +241 -0
- data/lib/mx_platform_api/models/goals_response_body.rb +94 -0
- data/lib/mx_platform_api/models/image_option_response.rb +110 -0
- data/lib/mx_platform_api/models/insight_response.rb +338 -0
- data/lib/mx_platform_api/models/insight_response_body.rb +75 -0
- data/lib/mx_platform_api/models/insight_update_request.rb +87 -0
- data/lib/mx_platform_api/models/insight_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/insights_response_body.rb +94 -0
- data/lib/mx_platform_api/models/institution_response.rb +290 -0
- data/lib/mx_platform_api/models/institution_response_body.rb +76 -0
- data/lib/mx_platform_api/models/institutions_response_body.rb +95 -0
- data/lib/mx_platform_api/models/investment_holding_response.rb +513 -0
- data/lib/mx_platform_api/models/investment_holding_response_body.rb +77 -0
- data/lib/mx_platform_api/models/investment_holdings_deactivation.rb +85 -0
- data/lib/mx_platform_api/models/investment_holdings_response_body.rb +95 -0
- data/lib/mx_platform_api/models/iso_country_code.rb +36 -0
- data/lib/mx_platform_api/models/item_type.rb +52 -0
- data/lib/mx_platform_api/models/job_response.rb +203 -0
- data/lib/mx_platform_api/models/job_response_body.rb +74 -0
- data/lib/mx_platform_api/models/managed_account_create_request.rb +422 -0
- data/lib/mx_platform_api/models/managed_account_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_account_update_request.rb +428 -0
- data/lib/mx_platform_api/models/managed_account_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_member_create_request.rb +105 -0
- data/lib/mx_platform_api/models/managed_member_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_member_update_request.rb +95 -0
- data/lib/mx_platform_api/models/managed_member_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_transaction_create_request.rb +282 -0
- data/lib/mx_platform_api/models/managed_transaction_create_request_body.rb +77 -0
- data/lib/mx_platform_api/models/managed_transaction_update_request.rb +289 -0
- data/lib/mx_platform_api/models/managed_transaction_update_request_body.rb +77 -0
- data/lib/mx_platform_api/models/member_create_request.rb +154 -0
- data/lib/mx_platform_api/models/member_create_request_body.rb +152 -0
- data/lib/mx_platform_api/models/member_elements.rb +96 -0
- data/lib/mx_platform_api/models/member_response.rb +406 -0
- data/lib/mx_platform_api/models/member_response_body.rb +75 -0
- data/lib/mx_platform_api/models/member_response_with_job_error.rb +406 -0
- data/lib/mx_platform_api/models/member_response_with_job_error_body.rb +75 -0
- data/lib/mx_platform_api/models/member_resume_request.rb +85 -0
- data/lib/mx_platform_api/models/member_resume_request_body.rb +75 -0
- data/lib/mx_platform_api/models/member_status_response.rb +236 -0
- data/lib/mx_platform_api/models/member_status_response_body.rb +75 -0
- data/lib/mx_platform_api/models/member_update_request.rb +133 -0
- data/lib/mx_platform_api/models/member_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/members_response_body.rb +94 -0
- data/lib/mx_platform_api/models/merchant.rb +105 -0
- data/lib/mx_platform_api/models/merchant_location_response.rb +208 -0
- data/lib/mx_platform_api/models/merchant_location_response_body.rb +77 -0
- data/lib/mx_platform_api/models/merchant_response.rb +136 -0
- data/lib/mx_platform_api/models/merchant_response_body.rb +75 -0
- data/lib/mx_platform_api/models/merchants_response_body.rb +95 -0
- data/lib/mx_platform_api/models/micro_deposit.rb +223 -0
- data/lib/mx_platform_api/models/microdeposit_elements.rb +141 -0
- data/lib/mx_platform_api/models/microdeposit_request_body.rb +77 -0
- data/lib/mx_platform_api/models/microdeposit_response.rb +149 -0
- data/lib/mx_platform_api/models/microdeposit_response_body.rb +85 -0
- data/lib/mx_platform_api/models/microdeposit_verify_request.rb +88 -0
- data/lib/mx_platform_api/models/microdeposit_verify_request_body.rb +77 -0
- data/lib/mx_platform_api/models/microdeposits_response_body.rb +95 -0
- data/lib/mx_platform_api/models/monthly_account_balance.rb +123 -0
- data/lib/mx_platform_api/models/monthly_account_balances_response_body.rb +85 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_profile_request.rb +95 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_profile_request_body.rb +81 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_response.rb +157 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_response_body.rb +81 -0
- data/lib/mx_platform_api/models/notification_request.rb +83 -0
- data/lib/mx_platform_api/models/notification_request_body.rb +76 -0
- data/lib/mx_platform_api/models/notification_response.rb +204 -0
- data/lib/mx_platform_api/models/notification_response_body.rb +76 -0
- data/lib/mx_platform_api/models/notifications_response_body.rb +85 -0
- data/lib/mx_platform_api/models/oauth_window_response.rb +91 -0
- data/lib/mx_platform_api/models/oauth_window_response_body.rb +75 -0
- data/lib/mx_platform_api/models/option_response.rb +99 -0
- data/lib/mx_platform_api/models/pagination_response.rb +106 -0
- data/lib/mx_platform_api/models/parent_class.rb +84 -0
- data/lib/mx_platform_api/models/payment_account.rb +183 -0
- data/lib/mx_platform_api/models/payment_account1.rb +213 -0
- data/lib/mx_platform_api/models/payment_account_body.rb +77 -0
- data/lib/mx_platform_api/models/processor_account_number.rb +168 -0
- data/lib/mx_platform_api/models/processor_account_number_body.rb +85 -0
- data/lib/mx_platform_api/models/processor_owner.rb +155 -0
- data/lib/mx_platform_api/models/processor_owner_body.rb +95 -0
- data/lib/mx_platform_api/models/property_type.rb +69 -0
- data/lib/mx_platform_api/models/recurrence_type.rb +26 -0
- data/lib/mx_platform_api/models/repeating_transaction.rb +102 -0
- data/lib/mx_platform_api/models/repeating_transaction_response.rb +203 -0
- data/lib/mx_platform_api/models/repeating_transaction_type.rb +44 -0
- data/lib/mx_platform_api/models/repeating_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/reposition_request.rb +82 -0
- data/lib/mx_platform_api/models/reposition_request_body.rb +84 -0
- data/lib/mx_platform_api/models/reposition_response_body.rb +84 -0
- data/lib/mx_platform_api/models/reward.rb +187 -0
- data/lib/mx_platform_api/models/reward_elements.rb +156 -0
- data/lib/mx_platform_api/models/reward_response_body.rb +75 -0
- data/lib/mx_platform_api/models/rewards_response_body.rb +94 -0
- data/lib/mx_platform_api/models/scheduled_payment_response.rb +208 -0
- data/lib/mx_platform_api/models/scheduled_payments_response_body.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_account_response.rb +142 -0
- data/lib/mx_platform_api/models/spending_plan_accounts_response.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_item_create_request_body.rb +124 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_item_response.rb +224 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_items_response_body.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_response.rb +162 -0
- data/lib/mx_platform_api/models/spending_plan_iterations_response.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_response.rb +129 -0
- data/lib/mx_platform_api/models/spending_plans_response_body.rb +95 -0
- data/lib/mx_platform_api/models/split_transaction_request.rb +106 -0
- data/lib/mx_platform_api/models/split_transaction_request_body.rb +75 -0
- data/lib/mx_platform_api/models/split_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/statement_response.rb +157 -0
- data/lib/mx_platform_api/models/statement_response_body.rb +76 -0
- data/lib/mx_platform_api/models/statements_response_body.rb +95 -0
- data/lib/mx_platform_api/models/status.rb +36 -0
- data/lib/mx_platform_api/models/style.rb +74 -0
- data/lib/mx_platform_api/models/supported_product.rb +56 -0
- data/lib/mx_platform_api/models/supported_product1.rb +52 -0
- data/lib/mx_platform_api/models/tag_create_request.rb +72 -0
- data/lib/mx_platform_api/models/tag_create_request_body.rb +74 -0
- data/lib/mx_platform_api/models/tag_response.rb +99 -0
- data/lib/mx_platform_api/models/tag_response_body.rb +74 -0
- data/lib/mx_platform_api/models/tag_update_request.rb +72 -0
- data/lib/mx_platform_api/models/tag_update_request_body.rb +74 -0
- data/lib/mx_platform_api/models/tagging_create_request.rb +83 -0
- data/lib/mx_platform_api/models/tagging_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/tagging_response.rb +130 -0
- data/lib/mx_platform_api/models/tagging_response_body.rb +75 -0
- data/lib/mx_platform_api/models/tagging_update_request.rb +73 -0
- data/lib/mx_platform_api/models/tagging_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/taggings_response_body.rb +94 -0
- data/lib/mx_platform_api/models/tags_response_body.rb +94 -0
- data/lib/mx_platform_api/models/token_request_body.rb +75 -0
- data/lib/mx_platform_api/models/token_response.rb +114 -0
- data/lib/mx_platform_api/models/token_response_body.rb +84 -0
- data/lib/mx_platform_api/models/track_type_name.rb +44 -0
- data/lib/mx_platform_api/models/transaction_create_request.rb +192 -0
- data/lib/mx_platform_api/models/transaction_create_request_body.rb +76 -0
- data/lib/mx_platform_api/models/transaction_create_response_body.rb +595 -0
- data/lib/mx_platform_api/models/transaction_includes_response.rb +643 -0
- data/lib/mx_platform_api/models/transaction_response.rb +597 -0
- data/lib/mx_platform_api/models/transaction_response_body.rb +76 -0
- data/lib/mx_platform_api/models/transaction_rule_create_request.rb +98 -0
- data/lib/mx_platform_api/models/transaction_rule_create_request_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rule_response.rb +152 -0
- data/lib/mx_platform_api/models/transaction_rule_response_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rule_update_request.rb +103 -0
- data/lib/mx_platform_api/models/transaction_rule_update_request_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rules_response_body.rb +95 -0
- data/lib/mx_platform_api/models/transaction_type.rb +36 -0
- data/lib/mx_platform_api/models/transaction_update_request.rb +74 -0
- data/lib/mx_platform_api/models/transaction_update_request_body.rb +76 -0
- data/lib/mx_platform_api/models/transactions_response_body.rb +95 -0
- data/lib/mx_platform_api/models/transactions_response_body_includes.rb +95 -0
- data/lib/mx_platform_api/models/type.rb +36 -0
- data/lib/mx_platform_api/models/update_goal_request.rb +185 -0
- data/lib/mx_platform_api/models/update_goal_request_body.rb +74 -0
- data/lib/mx_platform_api/models/use_case.rb +36 -0
- data/lib/mx_platform_api/models/user_create_request.rb +105 -0
- data/lib/mx_platform_api/models/user_create_request_body.rb +74 -0
- data/lib/mx_platform_api/models/user_response.rb +119 -0
- data/lib/mx_platform_api/models/user_response_body.rb +74 -0
- data/lib/mx_platform_api/models/user_update_request.rb +105 -0
- data/lib/mx_platform_api/models/user_update_request_body.rb +74 -0
- data/lib/mx_platform_api/models/users_response_body.rb +94 -0
- data/lib/mx_platform_api/models/users_widget_urls_request.rb +76 -0
- data/lib/mx_platform_api/models/vc_response.rb +77 -0
- data/lib/mx_platform_api/models/widget_request.rb +466 -0
- data/lib/mx_platform_api/models/widget_response.rb +100 -0
- data/lib/mx_platform_api/models/widget_response_body.rb +76 -0
- data/lib/mx_platform_api/models/widget_type.rb +149 -0
- data/lib/mx_platform_api/utilities/date_time_helper.rb +11 -0
- data/lib/mx_platform_api/utilities/file_wrapper.rb +28 -0
- data/lib/mx_platform_api.rb +313 -0
- metadata +370 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# AccountsMergeRequestBody Model.
|
|
8
|
+
class AccountsMergeRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [AccountsMergeRequest]
|
|
14
|
+
attr_accessor :account
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['account'] = 'account'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
account
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(account: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@account = account unless account == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
account = AccountsMergeRequest.from_hash(hash['account']) if hash['account']
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
AccountsMergeRequestBody.new(account: account,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} account: #{@account}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} account: #{@account.inspect}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
# AccountsResponseBody Model.
|
|
8
|
+
class AccountsResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[AccountResponse]]
|
|
14
|
+
attr_accessor :accounts
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [PaginationResponse]
|
|
18
|
+
attr_accessor :pagination
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['accounts'] = 'accounts'
|
|
24
|
+
@_hash['pagination'] = 'pagination'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
accounts
|
|
32
|
+
pagination
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(accounts: SKIP, pagination: SKIP, additional_properties: nil)
|
|
42
|
+
# Add additional model properties to the instance
|
|
43
|
+
additional_properties = {} if additional_properties.nil?
|
|
44
|
+
|
|
45
|
+
@accounts = accounts unless accounts == SKIP
|
|
46
|
+
@pagination = pagination unless pagination == SKIP
|
|
47
|
+
@additional_properties = additional_properties
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Creates an instance of the object from a hash.
|
|
51
|
+
def self.from_hash(hash)
|
|
52
|
+
return nil unless hash
|
|
53
|
+
|
|
54
|
+
# Extract variables from the hash.
|
|
55
|
+
# Parameter is an array, so we need to iterate through it
|
|
56
|
+
accounts = nil
|
|
57
|
+
unless hash['accounts'].nil?
|
|
58
|
+
accounts = []
|
|
59
|
+
hash['accounts'].each do |structure|
|
|
60
|
+
accounts << (AccountResponse.from_hash(structure) if structure)
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
accounts = SKIP unless hash.key?('accounts')
|
|
65
|
+
pagination = PaginationResponse.from_hash(hash['pagination']) if hash['pagination']
|
|
66
|
+
|
|
67
|
+
# Create a new hash for additional properties, removing known properties.
|
|
68
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
69
|
+
|
|
70
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
71
|
+
new_hash, proc { |value| value }
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
# Create object from extracted values.
|
|
75
|
+
AccountsResponseBody.new(accounts: accounts,
|
|
76
|
+
pagination: pagination,
|
|
77
|
+
additional_properties: additional_properties)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a human-readable string representation of the object.
|
|
81
|
+
def to_s
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} accounts: #{@accounts}, pagination: #{@pagination}, additional_properties:"\
|
|
84
|
+
" #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
88
|
+
def inspect
|
|
89
|
+
class_name = self.class.name.split('::').last
|
|
90
|
+
"<#{class_name} accounts: #{@accounts.inspect}, pagination: #{@pagination.inspect},"\
|
|
91
|
+
" additional_properties: #{@additional_properties}>"
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,424 @@
|
|
|
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
|
+
# AchResponse Model.
|
|
8
|
+
class AchResponse < 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 last 4 digits of the account number used for the transaction by the
|
|
17
|
+
# Originating Depository Financial Institution (ODFI).
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :account_number_last_four
|
|
20
|
+
|
|
21
|
+
# The type of account. Some account types may include subtypes.
|
|
22
|
+
# @return [AccountType]
|
|
23
|
+
attr_accessor :account_type
|
|
24
|
+
|
|
25
|
+
# The date and time when the transaction was initiated by the Originating
|
|
26
|
+
# Depository Financial Institution (ODFI) in ISO 8601 format without
|
|
27
|
+
# timestamp.
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :ach_initiated_at
|
|
30
|
+
|
|
31
|
+
# The unique identifier for the client associated with the insight. Defined
|
|
32
|
+
# by MX.
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :client_guid
|
|
35
|
+
|
|
36
|
+
# The account number correction reported by the RDFI. Populate only if the
|
|
37
|
+
# `resolution_code` is `NOTICE_OF_CHANGE`.
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :corrected_account_number
|
|
40
|
+
|
|
41
|
+
# The routing number correction reported by the RDFI. Populated only if the
|
|
42
|
+
# `resolution_code` is `NOTICE_OF_CHANGE`. Must be a valid 9-digit routing
|
|
43
|
+
# number format.
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :corrected_routing_number
|
|
46
|
+
|
|
47
|
+
# The date and time the ACH return was created, represented in ISO 8601
|
|
48
|
+
# format with a timestamp.
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :created_at
|
|
51
|
+
|
|
52
|
+
# The unique identifier for the ACH return record. Defined by MX.
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :guid
|
|
55
|
+
|
|
56
|
+
# Client-defined identifier for this specific return submission. Allows you
|
|
57
|
+
# to track and reference your requests.
|
|
58
|
+
# @return [String]
|
|
59
|
+
attr_accessor :id
|
|
60
|
+
|
|
61
|
+
# The unique identifier for an institution. Defined by MX.
|
|
62
|
+
# @return [String]
|
|
63
|
+
attr_accessor :institution_guid
|
|
64
|
+
|
|
65
|
+
# Notes added by Product Support during investigation of the ACH return.
|
|
66
|
+
# @return [String]
|
|
67
|
+
attr_accessor :investigation_notes
|
|
68
|
+
|
|
69
|
+
# The unique identifier for the member. Defined by MX.
|
|
70
|
+
# @return [String]
|
|
71
|
+
attr_accessor :member_guid
|
|
72
|
+
|
|
73
|
+
# Any errors that occurred during processing.
|
|
74
|
+
# @return [String]
|
|
75
|
+
attr_accessor :processing_errors
|
|
76
|
+
|
|
77
|
+
# A short, machine-readable code that categorizes the type of resolution or
|
|
78
|
+
# reason for the status. See [Resolution
|
|
79
|
+
# Codes](/api-reference/platform-api/reference/ach-return-fields#resolution-
|
|
80
|
+
# codes) for a complete list.
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :resolution_code
|
|
83
|
+
|
|
84
|
+
# A more detailed, human-readable message providing context and next steps
|
|
85
|
+
# related to the `return_status` and `resolution_code`.
|
|
86
|
+
# @return [String]
|
|
87
|
+
attr_accessor :resolution_detail
|
|
88
|
+
|
|
89
|
+
# Date and time when the return was marked as resolved.
|
|
90
|
+
# @return [String]
|
|
91
|
+
attr_accessor :resolved_status_at
|
|
92
|
+
|
|
93
|
+
# The associated ACH return codes and notice of change codes (for example,
|
|
94
|
+
# R02, R03, R04, R05, R20, NOC). See [Return
|
|
95
|
+
# Codes](/api-reference/platform-api/reference/ach-return-fields#return-code
|
|
96
|
+
# s) for a complete list
|
|
97
|
+
# @return [String]
|
|
98
|
+
attr_accessor :return_code
|
|
99
|
+
|
|
100
|
+
# Notes that you set to inform MX on internal ACH processing.
|
|
101
|
+
# @return [String]
|
|
102
|
+
attr_accessor :return_notes
|
|
103
|
+
|
|
104
|
+
# Incorrect account number used in the ACH transaction.
|
|
105
|
+
# @return [String]
|
|
106
|
+
attr_accessor :return_account_number
|
|
107
|
+
|
|
108
|
+
# Incorrect routing number used in the ACH transaction.
|
|
109
|
+
# @return [String]
|
|
110
|
+
attr_accessor :return_routing_number
|
|
111
|
+
|
|
112
|
+
# The current processing status of the ACH return. See [Return
|
|
113
|
+
# Status](/api-reference/platform-api/reference/ach-return-fields#return-sta
|
|
114
|
+
# tus) for a complete list of statuses.
|
|
115
|
+
# @return [String]
|
|
116
|
+
attr_accessor :return_status
|
|
117
|
+
|
|
118
|
+
# The date and time when the return was reported by the Receiving Financial
|
|
119
|
+
# Depository Institution (RDFI) in ISO 8601 format without timestamp.
|
|
120
|
+
# @return [String]
|
|
121
|
+
attr_accessor :returned_at
|
|
122
|
+
|
|
123
|
+
# The three-letter SEC code (Standard Entry Class Code) describing how a
|
|
124
|
+
# payment was authorized (for example, `WEB`). See [SEC
|
|
125
|
+
# Codes](/api-reference/platform-api/reference/ach-return-fields#sec-codes)
|
|
126
|
+
# for a complete list.
|
|
127
|
+
# @return [String]
|
|
128
|
+
attr_accessor :sec_code
|
|
129
|
+
|
|
130
|
+
# Date and time when MX started processing the return.
|
|
131
|
+
# @return [String]
|
|
132
|
+
attr_accessor :started_processing_at
|
|
133
|
+
|
|
134
|
+
# Date and time when the record was submitted through the API.
|
|
135
|
+
# @return [String]
|
|
136
|
+
attr_accessor :submitted_at
|
|
137
|
+
|
|
138
|
+
# The amount of the transaction.
|
|
139
|
+
# @return [Float]
|
|
140
|
+
attr_accessor :transaction_amount
|
|
141
|
+
|
|
142
|
+
# Date and time when the ACH return record was last updated.
|
|
143
|
+
# @return [String]
|
|
144
|
+
attr_accessor :updated_at
|
|
145
|
+
|
|
146
|
+
# The unique identifier for the user. Defined by MX.
|
|
147
|
+
# @return [String]
|
|
148
|
+
attr_accessor :user_guid
|
|
149
|
+
|
|
150
|
+
# A mapping from model property names to API property names.
|
|
151
|
+
def self.names
|
|
152
|
+
@_hash = {} if @_hash.nil?
|
|
153
|
+
@_hash['account_guid'] = 'account_guid'
|
|
154
|
+
@_hash['account_number_last_four'] = 'account_number_last_four'
|
|
155
|
+
@_hash['account_type'] = 'account_type'
|
|
156
|
+
@_hash['ach_initiated_at'] = 'ach_initiated_at'
|
|
157
|
+
@_hash['client_guid'] = 'client_guid'
|
|
158
|
+
@_hash['corrected_account_number'] = 'corrected_account_number'
|
|
159
|
+
@_hash['corrected_routing_number'] = 'corrected_routing_number'
|
|
160
|
+
@_hash['created_at'] = 'created_at'
|
|
161
|
+
@_hash['guid'] = 'guid'
|
|
162
|
+
@_hash['id'] = 'id'
|
|
163
|
+
@_hash['institution_guid'] = 'institution_guid'
|
|
164
|
+
@_hash['investigation_notes'] = 'investigation_notes'
|
|
165
|
+
@_hash['member_guid'] = 'member_guid'
|
|
166
|
+
@_hash['processing_errors'] = 'processing_errors'
|
|
167
|
+
@_hash['resolution_code'] = 'resolution_code'
|
|
168
|
+
@_hash['resolution_detail'] = 'resolution_detail'
|
|
169
|
+
@_hash['resolved_status_at'] = 'resolved_status_at'
|
|
170
|
+
@_hash['return_code'] = 'return_code'
|
|
171
|
+
@_hash['return_notes'] = 'return_notes'
|
|
172
|
+
@_hash['return_account_number'] = 'return_account_number'
|
|
173
|
+
@_hash['return_routing_number'] = 'return_routing_number'
|
|
174
|
+
@_hash['return_status'] = 'return_status'
|
|
175
|
+
@_hash['returned_at'] = 'returned_at'
|
|
176
|
+
@_hash['sec_code'] = 'sec_code'
|
|
177
|
+
@_hash['started_processing_at'] = 'started_processing_at'
|
|
178
|
+
@_hash['submitted_at'] = 'submitted_at'
|
|
179
|
+
@_hash['transaction_amount'] = 'transaction_amount'
|
|
180
|
+
@_hash['updated_at'] = 'updated_at'
|
|
181
|
+
@_hash['user_guid'] = 'user_guid'
|
|
182
|
+
@_hash
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# An array for optional fields
|
|
186
|
+
def self.optionals
|
|
187
|
+
%w[
|
|
188
|
+
account_guid
|
|
189
|
+
account_number_last_four
|
|
190
|
+
account_type
|
|
191
|
+
ach_initiated_at
|
|
192
|
+
client_guid
|
|
193
|
+
corrected_account_number
|
|
194
|
+
corrected_routing_number
|
|
195
|
+
created_at
|
|
196
|
+
guid
|
|
197
|
+
id
|
|
198
|
+
institution_guid
|
|
199
|
+
investigation_notes
|
|
200
|
+
member_guid
|
|
201
|
+
processing_errors
|
|
202
|
+
resolution_code
|
|
203
|
+
resolution_detail
|
|
204
|
+
resolved_status_at
|
|
205
|
+
return_code
|
|
206
|
+
return_notes
|
|
207
|
+
return_account_number
|
|
208
|
+
return_routing_number
|
|
209
|
+
return_status
|
|
210
|
+
returned_at
|
|
211
|
+
sec_code
|
|
212
|
+
started_processing_at
|
|
213
|
+
submitted_at
|
|
214
|
+
transaction_amount
|
|
215
|
+
updated_at
|
|
216
|
+
user_guid
|
|
217
|
+
]
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# An array for nullable fields
|
|
221
|
+
def self.nullables
|
|
222
|
+
%w[
|
|
223
|
+
account_number_last_four
|
|
224
|
+
account_type
|
|
225
|
+
ach_initiated_at
|
|
226
|
+
corrected_account_number
|
|
227
|
+
corrected_routing_number
|
|
228
|
+
investigation_notes
|
|
229
|
+
processing_errors
|
|
230
|
+
resolution_code
|
|
231
|
+
resolution_detail
|
|
232
|
+
resolved_status_at
|
|
233
|
+
return_notes
|
|
234
|
+
return_account_number
|
|
235
|
+
return_routing_number
|
|
236
|
+
return_status
|
|
237
|
+
returned_at
|
|
238
|
+
sec_code
|
|
239
|
+
started_processing_at
|
|
240
|
+
submitted_at
|
|
241
|
+
transaction_amount
|
|
242
|
+
]
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
def initialize(account_guid: SKIP, account_number_last_four: SKIP,
|
|
246
|
+
account_type: SKIP, ach_initiated_at: SKIP,
|
|
247
|
+
client_guid: SKIP, corrected_account_number: SKIP,
|
|
248
|
+
corrected_routing_number: SKIP, created_at: SKIP, guid: SKIP,
|
|
249
|
+
id: SKIP, institution_guid: SKIP, investigation_notes: SKIP,
|
|
250
|
+
member_guid: SKIP, processing_errors: SKIP,
|
|
251
|
+
resolution_code: SKIP, resolution_detail: SKIP,
|
|
252
|
+
resolved_status_at: SKIP, return_code: SKIP,
|
|
253
|
+
return_notes: SKIP, return_account_number: SKIP,
|
|
254
|
+
return_routing_number: SKIP, return_status: SKIP,
|
|
255
|
+
returned_at: SKIP, sec_code: SKIP,
|
|
256
|
+
started_processing_at: SKIP, submitted_at: SKIP,
|
|
257
|
+
transaction_amount: SKIP, updated_at: SKIP, user_guid: SKIP,
|
|
258
|
+
additional_properties: nil)
|
|
259
|
+
# Add additional model properties to the instance
|
|
260
|
+
additional_properties = {} if additional_properties.nil?
|
|
261
|
+
|
|
262
|
+
@account_guid = account_guid unless account_guid == SKIP
|
|
263
|
+
@account_number_last_four = account_number_last_four unless account_number_last_four == SKIP
|
|
264
|
+
@account_type = account_type unless account_type == SKIP
|
|
265
|
+
@ach_initiated_at = ach_initiated_at unless ach_initiated_at == SKIP
|
|
266
|
+
@client_guid = client_guid unless client_guid == SKIP
|
|
267
|
+
@corrected_account_number = corrected_account_number unless corrected_account_number == SKIP
|
|
268
|
+
@corrected_routing_number = corrected_routing_number unless corrected_routing_number == SKIP
|
|
269
|
+
@created_at = created_at unless created_at == SKIP
|
|
270
|
+
@guid = guid unless guid == SKIP
|
|
271
|
+
@id = id unless id == SKIP
|
|
272
|
+
@institution_guid = institution_guid unless institution_guid == SKIP
|
|
273
|
+
@investigation_notes = investigation_notes unless investigation_notes == SKIP
|
|
274
|
+
@member_guid = member_guid unless member_guid == SKIP
|
|
275
|
+
@processing_errors = processing_errors unless processing_errors == SKIP
|
|
276
|
+
@resolution_code = resolution_code unless resolution_code == SKIP
|
|
277
|
+
@resolution_detail = resolution_detail unless resolution_detail == SKIP
|
|
278
|
+
@resolved_status_at = resolved_status_at unless resolved_status_at == SKIP
|
|
279
|
+
@return_code = return_code unless return_code == SKIP
|
|
280
|
+
@return_notes = return_notes unless return_notes == SKIP
|
|
281
|
+
@return_account_number = return_account_number unless return_account_number == SKIP
|
|
282
|
+
@return_routing_number = return_routing_number unless return_routing_number == SKIP
|
|
283
|
+
@return_status = return_status unless return_status == SKIP
|
|
284
|
+
@returned_at = returned_at unless returned_at == SKIP
|
|
285
|
+
@sec_code = sec_code unless sec_code == SKIP
|
|
286
|
+
@started_processing_at = started_processing_at unless started_processing_at == SKIP
|
|
287
|
+
@submitted_at = submitted_at unless submitted_at == SKIP
|
|
288
|
+
@transaction_amount = transaction_amount unless transaction_amount == SKIP
|
|
289
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
290
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
291
|
+
@additional_properties = additional_properties
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Creates an instance of the object from a hash.
|
|
295
|
+
def self.from_hash(hash)
|
|
296
|
+
return nil unless hash
|
|
297
|
+
|
|
298
|
+
# Extract variables from the hash.
|
|
299
|
+
account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
|
|
300
|
+
account_number_last_four =
|
|
301
|
+
hash.key?('account_number_last_four') ? hash['account_number_last_four'] : SKIP
|
|
302
|
+
account_type = hash.key?('account_type') ? hash['account_type'] : SKIP
|
|
303
|
+
ach_initiated_at =
|
|
304
|
+
hash.key?('ach_initiated_at') ? hash['ach_initiated_at'] : SKIP
|
|
305
|
+
client_guid = hash.key?('client_guid') ? hash['client_guid'] : SKIP
|
|
306
|
+
corrected_account_number =
|
|
307
|
+
hash.key?('corrected_account_number') ? hash['corrected_account_number'] : SKIP
|
|
308
|
+
corrected_routing_number =
|
|
309
|
+
hash.key?('corrected_routing_number') ? hash['corrected_routing_number'] : SKIP
|
|
310
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
311
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
312
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
313
|
+
institution_guid =
|
|
314
|
+
hash.key?('institution_guid') ? hash['institution_guid'] : SKIP
|
|
315
|
+
investigation_notes =
|
|
316
|
+
hash.key?('investigation_notes') ? hash['investigation_notes'] : SKIP
|
|
317
|
+
member_guid = hash.key?('member_guid') ? hash['member_guid'] : SKIP
|
|
318
|
+
processing_errors =
|
|
319
|
+
hash.key?('processing_errors') ? hash['processing_errors'] : SKIP
|
|
320
|
+
resolution_code =
|
|
321
|
+
hash.key?('resolution_code') ? hash['resolution_code'] : SKIP
|
|
322
|
+
resolution_detail =
|
|
323
|
+
hash.key?('resolution_detail') ? hash['resolution_detail'] : SKIP
|
|
324
|
+
resolved_status_at =
|
|
325
|
+
hash.key?('resolved_status_at') ? hash['resolved_status_at'] : SKIP
|
|
326
|
+
return_code = hash.key?('return_code') ? hash['return_code'] : SKIP
|
|
327
|
+
return_notes = hash.key?('return_notes') ? hash['return_notes'] : SKIP
|
|
328
|
+
return_account_number =
|
|
329
|
+
hash.key?('return_account_number') ? hash['return_account_number'] : SKIP
|
|
330
|
+
return_routing_number =
|
|
331
|
+
hash.key?('return_routing_number') ? hash['return_routing_number'] : SKIP
|
|
332
|
+
return_status = hash.key?('return_status') ? hash['return_status'] : SKIP
|
|
333
|
+
returned_at = hash.key?('returned_at') ? hash['returned_at'] : SKIP
|
|
334
|
+
sec_code = hash.key?('sec_code') ? hash['sec_code'] : SKIP
|
|
335
|
+
started_processing_at =
|
|
336
|
+
hash.key?('started_processing_at') ? hash['started_processing_at'] : SKIP
|
|
337
|
+
submitted_at = hash.key?('submitted_at') ? hash['submitted_at'] : SKIP
|
|
338
|
+
transaction_amount =
|
|
339
|
+
hash.key?('transaction_amount') ? hash['transaction_amount'] : SKIP
|
|
340
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
341
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
342
|
+
|
|
343
|
+
# Create a new hash for additional properties, removing known properties.
|
|
344
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
345
|
+
|
|
346
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
347
|
+
new_hash, proc { |value| value }
|
|
348
|
+
)
|
|
349
|
+
|
|
350
|
+
# Create object from extracted values.
|
|
351
|
+
AchResponse.new(account_guid: account_guid,
|
|
352
|
+
account_number_last_four: account_number_last_four,
|
|
353
|
+
account_type: account_type,
|
|
354
|
+
ach_initiated_at: ach_initiated_at,
|
|
355
|
+
client_guid: client_guid,
|
|
356
|
+
corrected_account_number: corrected_account_number,
|
|
357
|
+
corrected_routing_number: corrected_routing_number,
|
|
358
|
+
created_at: created_at,
|
|
359
|
+
guid: guid,
|
|
360
|
+
id: id,
|
|
361
|
+
institution_guid: institution_guid,
|
|
362
|
+
investigation_notes: investigation_notes,
|
|
363
|
+
member_guid: member_guid,
|
|
364
|
+
processing_errors: processing_errors,
|
|
365
|
+
resolution_code: resolution_code,
|
|
366
|
+
resolution_detail: resolution_detail,
|
|
367
|
+
resolved_status_at: resolved_status_at,
|
|
368
|
+
return_code: return_code,
|
|
369
|
+
return_notes: return_notes,
|
|
370
|
+
return_account_number: return_account_number,
|
|
371
|
+
return_routing_number: return_routing_number,
|
|
372
|
+
return_status: return_status,
|
|
373
|
+
returned_at: returned_at,
|
|
374
|
+
sec_code: sec_code,
|
|
375
|
+
started_processing_at: started_processing_at,
|
|
376
|
+
submitted_at: submitted_at,
|
|
377
|
+
transaction_amount: transaction_amount,
|
|
378
|
+
updated_at: updated_at,
|
|
379
|
+
user_guid: user_guid,
|
|
380
|
+
additional_properties: additional_properties)
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Provides a human-readable string representation of the object.
|
|
384
|
+
def to_s
|
|
385
|
+
class_name = self.class.name.split('::').last
|
|
386
|
+
"<#{class_name} account_guid: #{@account_guid}, account_number_last_four:"\
|
|
387
|
+
" #{@account_number_last_four}, account_type: #{@account_type}, ach_initiated_at:"\
|
|
388
|
+
" #{@ach_initiated_at}, client_guid: #{@client_guid}, corrected_account_number:"\
|
|
389
|
+
" #{@corrected_account_number}, corrected_routing_number: #{@corrected_routing_number},"\
|
|
390
|
+
" created_at: #{@created_at}, guid: #{@guid}, id: #{@id}, institution_guid:"\
|
|
391
|
+
" #{@institution_guid}, investigation_notes: #{@investigation_notes}, member_guid:"\
|
|
392
|
+
" #{@member_guid}, processing_errors: #{@processing_errors}, resolution_code:"\
|
|
393
|
+
" #{@resolution_code}, resolution_detail: #{@resolution_detail}, resolved_status_at:"\
|
|
394
|
+
" #{@resolved_status_at}, return_code: #{@return_code}, return_notes: #{@return_notes},"\
|
|
395
|
+
" return_account_number: #{@return_account_number}, return_routing_number:"\
|
|
396
|
+
" #{@return_routing_number}, return_status: #{@return_status}, returned_at: #{@returned_at},"\
|
|
397
|
+
" sec_code: #{@sec_code}, started_processing_at: #{@started_processing_at}, submitted_at:"\
|
|
398
|
+
" #{@submitted_at}, transaction_amount: #{@transaction_amount}, updated_at: #{@updated_at},"\
|
|
399
|
+
" user_guid: #{@user_guid}, additional_properties: #{@additional_properties}>"
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
403
|
+
def inspect
|
|
404
|
+
class_name = self.class.name.split('::').last
|
|
405
|
+
"<#{class_name} account_guid: #{@account_guid.inspect}, account_number_last_four:"\
|
|
406
|
+
" #{@account_number_last_four.inspect}, account_type: #{@account_type.inspect},"\
|
|
407
|
+
" ach_initiated_at: #{@ach_initiated_at.inspect}, client_guid: #{@client_guid.inspect},"\
|
|
408
|
+
" corrected_account_number: #{@corrected_account_number.inspect}, corrected_routing_number:"\
|
|
409
|
+
" #{@corrected_routing_number.inspect}, created_at: #{@created_at.inspect}, guid:"\
|
|
410
|
+
" #{@guid.inspect}, id: #{@id.inspect}, institution_guid: #{@institution_guid.inspect},"\
|
|
411
|
+
" investigation_notes: #{@investigation_notes.inspect}, member_guid:"\
|
|
412
|
+
" #{@member_guid.inspect}, processing_errors: #{@processing_errors.inspect},"\
|
|
413
|
+
" resolution_code: #{@resolution_code.inspect}, resolution_detail:"\
|
|
414
|
+
" #{@resolution_detail.inspect}, resolved_status_at: #{@resolved_status_at.inspect},"\
|
|
415
|
+
" return_code: #{@return_code.inspect}, return_notes: #{@return_notes.inspect},"\
|
|
416
|
+
" return_account_number: #{@return_account_number.inspect}, return_routing_number:"\
|
|
417
|
+
" #{@return_routing_number.inspect}, return_status: #{@return_status.inspect}, returned_at:"\
|
|
418
|
+
" #{@returned_at.inspect}, sec_code: #{@sec_code.inspect}, started_processing_at:"\
|
|
419
|
+
" #{@started_processing_at.inspect}, submitted_at: #{@submitted_at.inspect},"\
|
|
420
|
+
" transaction_amount: #{@transaction_amount.inspect}, updated_at: #{@updated_at.inspect},"\
|
|
421
|
+
" user_guid: #{@user_guid.inspect}, additional_properties: #{@additional_properties}>"
|
|
422
|
+
end
|
|
423
|
+
end
|
|
424
|
+
end
|