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,88 @@
|
|
|
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
|
+
# DateRangeCategoryTotalsResponseBody Model.
|
|
8
|
+
class DateRangeCategoryTotalsResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[DateRangeCategoryTotalsResponse]]
|
|
14
|
+
attr_accessor :date_range_category_totals
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['date_range_category_totals'] = 'date_range_category_totals'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
date_range_category_totals
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(date_range_category_totals: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
unless date_range_category_totals == SKIP
|
|
40
|
+
@date_range_category_totals =
|
|
41
|
+
date_range_category_totals
|
|
42
|
+
end
|
|
43
|
+
@additional_properties = additional_properties
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Creates an instance of the object from a hash.
|
|
47
|
+
def self.from_hash(hash)
|
|
48
|
+
return nil unless hash
|
|
49
|
+
|
|
50
|
+
# Extract variables from the hash.
|
|
51
|
+
# Parameter is an array, so we need to iterate through it
|
|
52
|
+
date_range_category_totals = nil
|
|
53
|
+
unless hash['date_range_category_totals'].nil?
|
|
54
|
+
date_range_category_totals = []
|
|
55
|
+
hash['date_range_category_totals'].each do |structure|
|
|
56
|
+
date_range_category_totals << (DateRangeCategoryTotalsResponse.from_hash(structure) if structure)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
date_range_category_totals = SKIP unless hash.key?('date_range_category_totals')
|
|
61
|
+
|
|
62
|
+
# Create a new hash for additional properties, removing known properties.
|
|
63
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
64
|
+
|
|
65
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
66
|
+
new_hash, proc { |value| value }
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
# Create object from extracted values.
|
|
70
|
+
DateRangeCategoryTotalsResponseBody.new(date_range_category_totals: date_range_category_totals,
|
|
71
|
+
additional_properties: additional_properties)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Provides a human-readable string representation of the object.
|
|
75
|
+
def to_s
|
|
76
|
+
class_name = self.class.name.split('::').last
|
|
77
|
+
"<#{class_name} date_range_category_totals: #{@date_range_category_totals},"\
|
|
78
|
+
" additional_properties: #{@additional_properties}>"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
82
|
+
def inspect
|
|
83
|
+
class_name = self.class.name.split('::').last
|
|
84
|
+
"<#{class_name} date_range_category_totals: #{@date_range_category_totals.inspect},"\
|
|
85
|
+
" additional_properties: #{@additional_properties}>"
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
# Enables widget-specific behavior.
|
|
8
|
+
class DeepLinkParams < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Only use this option if the `widget_type` is set to `spending_widget`.
|
|
13
|
+
# When used with the Legacy Spending Widget, used to filter by account.
|
|
14
|
+
# Contains an `account_guid` (string) optional param.
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :account_guid
|
|
17
|
+
|
|
18
|
+
# Only use this option if the `widget_type` is set to `spending_widget`.
|
|
19
|
+
# When used with the Legacy Spending widget, used to filter by date range.
|
|
20
|
+
# Set the `date_range` using `start_date` (string) and `end_date` (string).
|
|
21
|
+
# @return [DateRange]
|
|
22
|
+
attr_accessor :date_range
|
|
23
|
+
|
|
24
|
+
# Only use this option if the `widget_type` is set to
|
|
25
|
+
# `actionable_integration_widget`. Launches a deep link integration. Valid
|
|
26
|
+
# value is `direct-deposit`.
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :launch_integration
|
|
29
|
+
|
|
30
|
+
# When used with the Cash Flow, Settings, or Money Dashboard widget, sets
|
|
31
|
+
# the widget's default view. Valid value for Cash Flow or Money Dashboard
|
|
32
|
+
# Widgets is `manage_income.` Valid values for the Notifications section of
|
|
33
|
+
# the Settings Widget (`notifications_settings_widget`) are `accounts`,
|
|
34
|
+
# `budgets`, or `insights`.
|
|
35
|
+
# @return [String]
|
|
36
|
+
attr_accessor :view
|
|
37
|
+
|
|
38
|
+
# Only use this option if the `widget_type` is set to `master_widget`.
|
|
39
|
+
# Launches a specific view in the Master Widget. Valid values are
|
|
40
|
+
# `accounts`, `budgets`, `cash_flow`, `debts`, `finstrong`, `goals`,
|
|
41
|
+
# `insights`, `investments`, `networth`, `recurringtransactions`,
|
|
42
|
+
# `spending`, `transactions`, and `trends`.
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :widget
|
|
45
|
+
|
|
46
|
+
# A mapping from model property names to API property names.
|
|
47
|
+
def self.names
|
|
48
|
+
@_hash = {} if @_hash.nil?
|
|
49
|
+
@_hash['account_guid'] = 'account_guid'
|
|
50
|
+
@_hash['date_range'] = 'date_range'
|
|
51
|
+
@_hash['launch_integration'] = 'launch_integration'
|
|
52
|
+
@_hash['view'] = 'view'
|
|
53
|
+
@_hash['widget'] = 'widget'
|
|
54
|
+
@_hash
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# An array for optional fields
|
|
58
|
+
def self.optionals
|
|
59
|
+
%w[
|
|
60
|
+
account_guid
|
|
61
|
+
date_range
|
|
62
|
+
launch_integration
|
|
63
|
+
view
|
|
64
|
+
widget
|
|
65
|
+
]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# An array for nullable fields
|
|
69
|
+
def self.nullables
|
|
70
|
+
[]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def initialize(account_guid: SKIP, date_range: SKIP,
|
|
74
|
+
launch_integration: SKIP, view: SKIP, widget: SKIP,
|
|
75
|
+
additional_properties: nil)
|
|
76
|
+
# Add additional model properties to the instance
|
|
77
|
+
additional_properties = {} if additional_properties.nil?
|
|
78
|
+
|
|
79
|
+
@account_guid = account_guid unless account_guid == SKIP
|
|
80
|
+
@date_range = date_range unless date_range == SKIP
|
|
81
|
+
@launch_integration = launch_integration unless launch_integration == SKIP
|
|
82
|
+
@view = view unless view == SKIP
|
|
83
|
+
@widget = widget unless widget == SKIP
|
|
84
|
+
@additional_properties = additional_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Creates an instance of the object from a hash.
|
|
88
|
+
def self.from_hash(hash)
|
|
89
|
+
return nil unless hash
|
|
90
|
+
|
|
91
|
+
# Extract variables from the hash.
|
|
92
|
+
account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
|
|
93
|
+
date_range = DateRange.from_hash(hash['date_range']) if hash['date_range']
|
|
94
|
+
launch_integration =
|
|
95
|
+
hash.key?('launch_integration') ? hash['launch_integration'] : SKIP
|
|
96
|
+
view = hash.key?('view') ? hash['view'] : SKIP
|
|
97
|
+
widget = hash.key?('widget') ? hash['widget'] : SKIP
|
|
98
|
+
|
|
99
|
+
# Create a new hash for additional properties, removing known properties.
|
|
100
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
101
|
+
|
|
102
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
103
|
+
new_hash, proc { |value| value }
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
# Create object from extracted values.
|
|
107
|
+
DeepLinkParams.new(account_guid: account_guid,
|
|
108
|
+
date_range: date_range,
|
|
109
|
+
launch_integration: launch_integration,
|
|
110
|
+
view: view,
|
|
111
|
+
widget: widget,
|
|
112
|
+
additional_properties: additional_properties)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Provides a human-readable string representation of the object.
|
|
116
|
+
def to_s
|
|
117
|
+
class_name = self.class.name.split('::').last
|
|
118
|
+
"<#{class_name} account_guid: #{@account_guid}, date_range: #{@date_range},"\
|
|
119
|
+
" launch_integration: #{@launch_integration}, view: #{@view}, widget: #{@widget},"\
|
|
120
|
+
" additional_properties: #{@additional_properties}>"
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
124
|
+
def inspect
|
|
125
|
+
class_name = self.class.name.split('::').last
|
|
126
|
+
"<#{class_name} account_guid: #{@account_guid.inspect}, date_range: #{@date_range.inspect},"\
|
|
127
|
+
" launch_integration: #{@launch_integration.inspect}, view: #{@view.inspect}, widget:"\
|
|
128
|
+
" #{@widget.inspect}, additional_properties: #{@additional_properties}>"
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
@@ -0,0 +1,371 @@
|
|
|
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
|
+
# EnhanceTransactionResponse Model.
|
|
8
|
+
class EnhanceTransactionResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The monetary amount of the `transaction`.
|
|
13
|
+
# @return [Float]
|
|
14
|
+
attr_accessor :amount
|
|
15
|
+
|
|
16
|
+
# The method used to determine the category assigned to the transaction.
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :categorized_by
|
|
19
|
+
|
|
20
|
+
# The category of the `transaction`.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :category
|
|
23
|
+
|
|
24
|
+
# The unique identifier for the category. Defined by MX.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :category_guid
|
|
27
|
+
|
|
28
|
+
# The method used to describe the `transaction`.
|
|
29
|
+
# @return [Integer]
|
|
30
|
+
attr_accessor :described_by
|
|
31
|
+
|
|
32
|
+
# A human-readable version of the `original_description` field. This is
|
|
33
|
+
# provided by the MX Platform.
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :description
|
|
36
|
+
|
|
37
|
+
# The transaction type assigned by the partner.
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :extended_transaction_type
|
|
40
|
+
|
|
41
|
+
# The unique partner-defined identifier for the transaction.
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :id
|
|
44
|
+
|
|
45
|
+
# Indicates whether the transaction is a bill payment.
|
|
46
|
+
# @return [TrueClass | FalseClass]
|
|
47
|
+
attr_accessor :is_bill_pay
|
|
48
|
+
|
|
49
|
+
# Indicates whether the transaction is a direct deposit.
|
|
50
|
+
# @return [TrueClass | FalseClass]
|
|
51
|
+
attr_accessor :is_direct_deposit
|
|
52
|
+
|
|
53
|
+
# Indicates whether the transaction is an expense.
|
|
54
|
+
# @return [TrueClass | FalseClass]
|
|
55
|
+
attr_accessor :is_expense
|
|
56
|
+
|
|
57
|
+
# Indicates whether the transaction is a fee.
|
|
58
|
+
# @return [TrueClass | FalseClass]
|
|
59
|
+
attr_accessor :is_fee
|
|
60
|
+
|
|
61
|
+
# Indicates whether the transaction is income.
|
|
62
|
+
# @return [TrueClass | FalseClass]
|
|
63
|
+
attr_accessor :is_income
|
|
64
|
+
|
|
65
|
+
# Indicates whether the transaction is international. If the data provider
|
|
66
|
+
# determines it isn't international then it will be `false`. It will be
|
|
67
|
+
# `null` if the data provider does not have this information.
|
|
68
|
+
# @return [TrueClass | FalseClass]
|
|
69
|
+
attr_accessor :is_international
|
|
70
|
+
|
|
71
|
+
# Indicates whether the transaction is an overdraft fee.
|
|
72
|
+
# @return [TrueClass | FalseClass]
|
|
73
|
+
attr_accessor :is_overdraft_fee
|
|
74
|
+
|
|
75
|
+
# Indicates whether the transaction is a payroll advance.
|
|
76
|
+
# @return [TrueClass | FalseClass]
|
|
77
|
+
attr_accessor :is_payroll_advance
|
|
78
|
+
|
|
79
|
+
# Indicates whether the transaction is a subscription payment.
|
|
80
|
+
# @return [TrueClass | FalseClass]
|
|
81
|
+
attr_accessor :is_subscription
|
|
82
|
+
|
|
83
|
+
# This field contains additional descriptive information about the
|
|
84
|
+
# `transaction`.
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :memo
|
|
87
|
+
|
|
88
|
+
# The ISO 18245 category code for the `transaction`.
|
|
89
|
+
# @return [Integer]
|
|
90
|
+
attr_accessor :merchant_category_code
|
|
91
|
+
|
|
92
|
+
# The unique identifier for the merchant associated with this `transaction`.
|
|
93
|
+
# Defined by MX.
|
|
94
|
+
# @return [String]
|
|
95
|
+
attr_accessor :merchant_guid
|
|
96
|
+
|
|
97
|
+
# The unique identifier for the `merchant_location` associated with this
|
|
98
|
+
# `transaction`. Defined by MX.
|
|
99
|
+
# @return [String]
|
|
100
|
+
attr_accessor :merchant_location_guid
|
|
101
|
+
|
|
102
|
+
# The original description of the `transaction` as provided by our data
|
|
103
|
+
# feed.
|
|
104
|
+
# @return [String]
|
|
105
|
+
attr_accessor :original_description
|
|
106
|
+
|
|
107
|
+
# The unique identifier for the `top_level_category` associated with this
|
|
108
|
+
# `transaction`. Defined by MX.
|
|
109
|
+
# @return [String]
|
|
110
|
+
attr_accessor :top_level_category_guid
|
|
111
|
+
|
|
112
|
+
# The type of transaction. Can be either `CREDIT` or `DEBIT`.
|
|
113
|
+
# @return [Type]
|
|
114
|
+
attr_accessor :type
|
|
115
|
+
|
|
116
|
+
# The unique identifier for the user. Defined by MX.
|
|
117
|
+
# @return [String]
|
|
118
|
+
attr_accessor :user_guid
|
|
119
|
+
|
|
120
|
+
# A mapping from model property names to API property names.
|
|
121
|
+
def self.names
|
|
122
|
+
@_hash = {} if @_hash.nil?
|
|
123
|
+
@_hash['amount'] = 'amount'
|
|
124
|
+
@_hash['categorized_by'] = 'categorized_by'
|
|
125
|
+
@_hash['category'] = 'category'
|
|
126
|
+
@_hash['category_guid'] = 'category_guid'
|
|
127
|
+
@_hash['described_by'] = 'described_by'
|
|
128
|
+
@_hash['description'] = 'description'
|
|
129
|
+
@_hash['extended_transaction_type'] = 'extended_transaction_type'
|
|
130
|
+
@_hash['id'] = 'id'
|
|
131
|
+
@_hash['is_bill_pay'] = 'is_bill_pay'
|
|
132
|
+
@_hash['is_direct_deposit'] = 'is_direct_deposit'
|
|
133
|
+
@_hash['is_expense'] = 'is_expense'
|
|
134
|
+
@_hash['is_fee'] = 'is_fee'
|
|
135
|
+
@_hash['is_income'] = 'is_income'
|
|
136
|
+
@_hash['is_international'] = 'is_international'
|
|
137
|
+
@_hash['is_overdraft_fee'] = 'is_overdraft_fee'
|
|
138
|
+
@_hash['is_payroll_advance'] = 'is_payroll_advance'
|
|
139
|
+
@_hash['is_subscription'] = 'is_subscription'
|
|
140
|
+
@_hash['memo'] = 'memo'
|
|
141
|
+
@_hash['merchant_category_code'] = 'merchant_category_code'
|
|
142
|
+
@_hash['merchant_guid'] = 'merchant_guid'
|
|
143
|
+
@_hash['merchant_location_guid'] = 'merchant_location_guid'
|
|
144
|
+
@_hash['original_description'] = 'original_description'
|
|
145
|
+
@_hash['top_level_category_guid'] = 'top_level_category_guid'
|
|
146
|
+
@_hash['type'] = 'type'
|
|
147
|
+
@_hash['user_guid'] = 'user_guid'
|
|
148
|
+
@_hash
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# An array for optional fields
|
|
152
|
+
def self.optionals
|
|
153
|
+
%w[
|
|
154
|
+
amount
|
|
155
|
+
categorized_by
|
|
156
|
+
category
|
|
157
|
+
category_guid
|
|
158
|
+
described_by
|
|
159
|
+
description
|
|
160
|
+
extended_transaction_type
|
|
161
|
+
id
|
|
162
|
+
is_bill_pay
|
|
163
|
+
is_direct_deposit
|
|
164
|
+
is_expense
|
|
165
|
+
is_fee
|
|
166
|
+
is_income
|
|
167
|
+
is_international
|
|
168
|
+
is_overdraft_fee
|
|
169
|
+
is_payroll_advance
|
|
170
|
+
is_subscription
|
|
171
|
+
memo
|
|
172
|
+
merchant_category_code
|
|
173
|
+
merchant_guid
|
|
174
|
+
merchant_location_guid
|
|
175
|
+
original_description
|
|
176
|
+
top_level_category_guid
|
|
177
|
+
type
|
|
178
|
+
user_guid
|
|
179
|
+
]
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# An array for nullable fields
|
|
183
|
+
def self.nullables
|
|
184
|
+
%w[
|
|
185
|
+
amount
|
|
186
|
+
categorized_by
|
|
187
|
+
category
|
|
188
|
+
category_guid
|
|
189
|
+
described_by
|
|
190
|
+
description
|
|
191
|
+
extended_transaction_type
|
|
192
|
+
id
|
|
193
|
+
is_bill_pay
|
|
194
|
+
is_direct_deposit
|
|
195
|
+
is_expense
|
|
196
|
+
is_fee
|
|
197
|
+
is_income
|
|
198
|
+
is_overdraft_fee
|
|
199
|
+
is_payroll_advance
|
|
200
|
+
is_subscription
|
|
201
|
+
memo
|
|
202
|
+
merchant_category_code
|
|
203
|
+
merchant_guid
|
|
204
|
+
merchant_location_guid
|
|
205
|
+
original_description
|
|
206
|
+
top_level_category_guid
|
|
207
|
+
type
|
|
208
|
+
user_guid
|
|
209
|
+
]
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
def initialize(amount: SKIP, categorized_by: SKIP, category: SKIP,
|
|
213
|
+
category_guid: SKIP, described_by: SKIP, description: SKIP,
|
|
214
|
+
extended_transaction_type: SKIP, id: SKIP, is_bill_pay: SKIP,
|
|
215
|
+
is_direct_deposit: SKIP, is_expense: SKIP, is_fee: SKIP,
|
|
216
|
+
is_income: SKIP, is_international: SKIP,
|
|
217
|
+
is_overdraft_fee: SKIP, is_payroll_advance: SKIP,
|
|
218
|
+
is_subscription: SKIP, memo: SKIP,
|
|
219
|
+
merchant_category_code: SKIP, merchant_guid: SKIP,
|
|
220
|
+
merchant_location_guid: SKIP, original_description: SKIP,
|
|
221
|
+
top_level_category_guid: SKIP, type: SKIP, user_guid: SKIP,
|
|
222
|
+
additional_properties: nil)
|
|
223
|
+
# Add additional model properties to the instance
|
|
224
|
+
additional_properties = {} if additional_properties.nil?
|
|
225
|
+
|
|
226
|
+
@amount = amount unless amount == SKIP
|
|
227
|
+
@categorized_by = categorized_by unless categorized_by == SKIP
|
|
228
|
+
@category = category unless category == SKIP
|
|
229
|
+
@category_guid = category_guid unless category_guid == SKIP
|
|
230
|
+
@described_by = described_by unless described_by == SKIP
|
|
231
|
+
@description = description unless description == SKIP
|
|
232
|
+
unless extended_transaction_type == SKIP
|
|
233
|
+
@extended_transaction_type =
|
|
234
|
+
extended_transaction_type
|
|
235
|
+
end
|
|
236
|
+
@id = id unless id == SKIP
|
|
237
|
+
@is_bill_pay = is_bill_pay unless is_bill_pay == SKIP
|
|
238
|
+
@is_direct_deposit = is_direct_deposit unless is_direct_deposit == SKIP
|
|
239
|
+
@is_expense = is_expense unless is_expense == SKIP
|
|
240
|
+
@is_fee = is_fee unless is_fee == SKIP
|
|
241
|
+
@is_income = is_income unless is_income == SKIP
|
|
242
|
+
@is_international = is_international unless is_international == SKIP
|
|
243
|
+
@is_overdraft_fee = is_overdraft_fee unless is_overdraft_fee == SKIP
|
|
244
|
+
@is_payroll_advance = is_payroll_advance unless is_payroll_advance == SKIP
|
|
245
|
+
@is_subscription = is_subscription unless is_subscription == SKIP
|
|
246
|
+
@memo = memo unless memo == SKIP
|
|
247
|
+
@merchant_category_code = merchant_category_code unless merchant_category_code == SKIP
|
|
248
|
+
@merchant_guid = merchant_guid unless merchant_guid == SKIP
|
|
249
|
+
@merchant_location_guid = merchant_location_guid unless merchant_location_guid == SKIP
|
|
250
|
+
@original_description = original_description unless original_description == SKIP
|
|
251
|
+
@top_level_category_guid = top_level_category_guid unless top_level_category_guid == SKIP
|
|
252
|
+
@type = type unless type == SKIP
|
|
253
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
254
|
+
@additional_properties = additional_properties
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Creates an instance of the object from a hash.
|
|
258
|
+
def self.from_hash(hash)
|
|
259
|
+
return nil unless hash
|
|
260
|
+
|
|
261
|
+
# Extract variables from the hash.
|
|
262
|
+
amount = hash.key?('amount') ? hash['amount'] : SKIP
|
|
263
|
+
categorized_by =
|
|
264
|
+
hash.key?('categorized_by') ? hash['categorized_by'] : SKIP
|
|
265
|
+
category = hash.key?('category') ? hash['category'] : SKIP
|
|
266
|
+
category_guid = hash.key?('category_guid') ? hash['category_guid'] : SKIP
|
|
267
|
+
described_by = hash.key?('described_by') ? hash['described_by'] : SKIP
|
|
268
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
269
|
+
extended_transaction_type =
|
|
270
|
+
hash.key?('extended_transaction_type') ? hash['extended_transaction_type'] : SKIP
|
|
271
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
272
|
+
is_bill_pay = hash.key?('is_bill_pay') ? hash['is_bill_pay'] : SKIP
|
|
273
|
+
is_direct_deposit =
|
|
274
|
+
hash.key?('is_direct_deposit') ? hash['is_direct_deposit'] : SKIP
|
|
275
|
+
is_expense = hash.key?('is_expense') ? hash['is_expense'] : SKIP
|
|
276
|
+
is_fee = hash.key?('is_fee') ? hash['is_fee'] : SKIP
|
|
277
|
+
is_income = hash.key?('is_income') ? hash['is_income'] : SKIP
|
|
278
|
+
is_international =
|
|
279
|
+
hash.key?('is_international') ? hash['is_international'] : SKIP
|
|
280
|
+
is_overdraft_fee =
|
|
281
|
+
hash.key?('is_overdraft_fee') ? hash['is_overdraft_fee'] : SKIP
|
|
282
|
+
is_payroll_advance =
|
|
283
|
+
hash.key?('is_payroll_advance') ? hash['is_payroll_advance'] : SKIP
|
|
284
|
+
is_subscription =
|
|
285
|
+
hash.key?('is_subscription') ? hash['is_subscription'] : SKIP
|
|
286
|
+
memo = hash.key?('memo') ? hash['memo'] : SKIP
|
|
287
|
+
merchant_category_code =
|
|
288
|
+
hash.key?('merchant_category_code') ? hash['merchant_category_code'] : SKIP
|
|
289
|
+
merchant_guid = hash.key?('merchant_guid') ? hash['merchant_guid'] : SKIP
|
|
290
|
+
merchant_location_guid =
|
|
291
|
+
hash.key?('merchant_location_guid') ? hash['merchant_location_guid'] : SKIP
|
|
292
|
+
original_description =
|
|
293
|
+
hash.key?('original_description') ? hash['original_description'] : SKIP
|
|
294
|
+
top_level_category_guid =
|
|
295
|
+
hash.key?('top_level_category_guid') ? hash['top_level_category_guid'] : SKIP
|
|
296
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
297
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
298
|
+
|
|
299
|
+
# Create a new hash for additional properties, removing known properties.
|
|
300
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
301
|
+
|
|
302
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
303
|
+
new_hash, proc { |value| value }
|
|
304
|
+
)
|
|
305
|
+
|
|
306
|
+
# Create object from extracted values.
|
|
307
|
+
EnhanceTransactionResponse.new(amount: amount,
|
|
308
|
+
categorized_by: categorized_by,
|
|
309
|
+
category: category,
|
|
310
|
+
category_guid: category_guid,
|
|
311
|
+
described_by: described_by,
|
|
312
|
+
description: description,
|
|
313
|
+
extended_transaction_type: extended_transaction_type,
|
|
314
|
+
id: id,
|
|
315
|
+
is_bill_pay: is_bill_pay,
|
|
316
|
+
is_direct_deposit: is_direct_deposit,
|
|
317
|
+
is_expense: is_expense,
|
|
318
|
+
is_fee: is_fee,
|
|
319
|
+
is_income: is_income,
|
|
320
|
+
is_international: is_international,
|
|
321
|
+
is_overdraft_fee: is_overdraft_fee,
|
|
322
|
+
is_payroll_advance: is_payroll_advance,
|
|
323
|
+
is_subscription: is_subscription,
|
|
324
|
+
memo: memo,
|
|
325
|
+
merchant_category_code: merchant_category_code,
|
|
326
|
+
merchant_guid: merchant_guid,
|
|
327
|
+
merchant_location_guid: merchant_location_guid,
|
|
328
|
+
original_description: original_description,
|
|
329
|
+
top_level_category_guid: top_level_category_guid,
|
|
330
|
+
type: type,
|
|
331
|
+
user_guid: user_guid,
|
|
332
|
+
additional_properties: additional_properties)
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Provides a human-readable string representation of the object.
|
|
336
|
+
def to_s
|
|
337
|
+
class_name = self.class.name.split('::').last
|
|
338
|
+
"<#{class_name} amount: #{@amount}, categorized_by: #{@categorized_by}, category:"\
|
|
339
|
+
" #{@category}, category_guid: #{@category_guid}, described_by: #{@described_by},"\
|
|
340
|
+
" description: #{@description}, extended_transaction_type: #{@extended_transaction_type},"\
|
|
341
|
+
" id: #{@id}, is_bill_pay: #{@is_bill_pay}, is_direct_deposit: #{@is_direct_deposit},"\
|
|
342
|
+
" is_expense: #{@is_expense}, is_fee: #{@is_fee}, is_income: #{@is_income},"\
|
|
343
|
+
" is_international: #{@is_international}, is_overdraft_fee: #{@is_overdraft_fee},"\
|
|
344
|
+
" is_payroll_advance: #{@is_payroll_advance}, is_subscription: #{@is_subscription}, memo:"\
|
|
345
|
+
" #{@memo}, merchant_category_code: #{@merchant_category_code}, merchant_guid:"\
|
|
346
|
+
" #{@merchant_guid}, merchant_location_guid: #{@merchant_location_guid},"\
|
|
347
|
+
" original_description: #{@original_description}, top_level_category_guid:"\
|
|
348
|
+
" #{@top_level_category_guid}, type: #{@type}, user_guid: #{@user_guid},"\
|
|
349
|
+
" additional_properties: #{@additional_properties}>"
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
353
|
+
def inspect
|
|
354
|
+
class_name = self.class.name.split('::').last
|
|
355
|
+
"<#{class_name} amount: #{@amount.inspect}, categorized_by: #{@categorized_by.inspect},"\
|
|
356
|
+
" category: #{@category.inspect}, category_guid: #{@category_guid.inspect}, described_by:"\
|
|
357
|
+
" #{@described_by.inspect}, description: #{@description.inspect}, extended_transaction_type:"\
|
|
358
|
+
" #{@extended_transaction_type.inspect}, id: #{@id.inspect}, is_bill_pay:"\
|
|
359
|
+
" #{@is_bill_pay.inspect}, is_direct_deposit: #{@is_direct_deposit.inspect}, is_expense:"\
|
|
360
|
+
" #{@is_expense.inspect}, is_fee: #{@is_fee.inspect}, is_income: #{@is_income.inspect},"\
|
|
361
|
+
" is_international: #{@is_international.inspect}, is_overdraft_fee:"\
|
|
362
|
+
" #{@is_overdraft_fee.inspect}, is_payroll_advance: #{@is_payroll_advance.inspect},"\
|
|
363
|
+
" is_subscription: #{@is_subscription.inspect}, memo: #{@memo.inspect},"\
|
|
364
|
+
" merchant_category_code: #{@merchant_category_code.inspect}, merchant_guid:"\
|
|
365
|
+
" #{@merchant_guid.inspect}, merchant_location_guid: #{@merchant_location_guid.inspect},"\
|
|
366
|
+
" original_description: #{@original_description.inspect}, top_level_category_guid:"\
|
|
367
|
+
" #{@top_level_category_guid.inspect}, type: #{@type.inspect}, user_guid:"\
|
|
368
|
+
" #{@user_guid.inspect}, additional_properties: #{@additional_properties}>"
|
|
369
|
+
end
|
|
370
|
+
end
|
|
371
|
+
end
|