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,643 @@
|
|
|
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
|
+
# TransactionIncludesResponse Model.
|
|
8
|
+
class TransactionIncludesResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The unique identifier for an account. Defined by MX.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :account_guid
|
|
15
|
+
|
|
16
|
+
# The unique client-defined identifier for the account.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :account_id
|
|
19
|
+
|
|
20
|
+
# The monetary amount of the `transaction`.
|
|
21
|
+
# @return [Float]
|
|
22
|
+
attr_accessor :amount
|
|
23
|
+
|
|
24
|
+
# The category of the `transaction`.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :category
|
|
27
|
+
|
|
28
|
+
# The unique identifier for the category. Defined by MX.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :category_guid
|
|
31
|
+
|
|
32
|
+
# The check number for the `transaction`.
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :check_number_string
|
|
35
|
+
|
|
36
|
+
# The date and time the transaction was created, represented in ISO 8601
|
|
37
|
+
# format with a timestamp.
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :created_at
|
|
40
|
+
|
|
41
|
+
# The three-character ISO 4217 currency code, for example, `USD`.
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :currency_code
|
|
44
|
+
|
|
45
|
+
# The date on which the transaction took place. This is the field used when
|
|
46
|
+
# searching for transactions by date and is generally the same as
|
|
47
|
+
# `transacted_at`, but uses `posted_at` as a fallback.
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :date
|
|
50
|
+
|
|
51
|
+
# A human-readable description of the transaction.
|
|
52
|
+
# @return [String]
|
|
53
|
+
attr_accessor :description
|
|
54
|
+
|
|
55
|
+
# The transaction type assigned by the partner.
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :extended_transaction_type
|
|
58
|
+
|
|
59
|
+
# The unique identifier for the transaction. Defined by MX.
|
|
60
|
+
# @return [String]
|
|
61
|
+
attr_accessor :guid
|
|
62
|
+
|
|
63
|
+
# The unique partner-defined identifier for the transaction.
|
|
64
|
+
# @return [String]
|
|
65
|
+
attr_accessor :id
|
|
66
|
+
|
|
67
|
+
# Indicates whether the transaction is a bill payment.
|
|
68
|
+
# @return [TrueClass | FalseClass]
|
|
69
|
+
attr_accessor :is_bill_pay
|
|
70
|
+
|
|
71
|
+
# Indicates whether the transaction is a direct deposit.
|
|
72
|
+
# @return [TrueClass | FalseClass]
|
|
73
|
+
attr_accessor :is_direct_deposit
|
|
74
|
+
|
|
75
|
+
# Indicates whether the transaction is an expense.
|
|
76
|
+
# @return [TrueClass | FalseClass]
|
|
77
|
+
attr_accessor :is_expense
|
|
78
|
+
|
|
79
|
+
# Indicates whether the transaction is a fee.
|
|
80
|
+
# @return [TrueClass | FalseClass]
|
|
81
|
+
attr_accessor :is_fee
|
|
82
|
+
|
|
83
|
+
# Indicates whether the transaction is income.
|
|
84
|
+
# @return [TrueClass | FalseClass]
|
|
85
|
+
attr_accessor :is_income
|
|
86
|
+
|
|
87
|
+
# Indicates whether the transaction is international. If the data provider
|
|
88
|
+
# determines it isn't international then it will be `false`. It will be
|
|
89
|
+
# `null` if the data provider does not have this information.
|
|
90
|
+
# @return [TrueClass | FalseClass]
|
|
91
|
+
attr_accessor :is_international
|
|
92
|
+
|
|
93
|
+
# Indicates whether the transaction was manually created or belongs to a
|
|
94
|
+
# manual account.
|
|
95
|
+
# @return [TrueClass | FalseClass]
|
|
96
|
+
attr_accessor :is_manual
|
|
97
|
+
|
|
98
|
+
# Indicates whether the transaction is an overdraft fee.
|
|
99
|
+
# @return [TrueClass | FalseClass]
|
|
100
|
+
attr_accessor :is_overdraft_fee
|
|
101
|
+
|
|
102
|
+
# Indicates whether the transaction is a payroll advance.
|
|
103
|
+
# @return [TrueClass | FalseClass]
|
|
104
|
+
attr_accessor :is_payroll_advance
|
|
105
|
+
|
|
106
|
+
# Deprecated. If required, reach out to MX to discuss an alternative.
|
|
107
|
+
# @return [TrueClass | FalseClass]
|
|
108
|
+
attr_accessor :is_recurring
|
|
109
|
+
|
|
110
|
+
# Indicates whether the transaction is a subscription payment.
|
|
111
|
+
# @return [TrueClass | FalseClass]
|
|
112
|
+
attr_accessor :is_subscription
|
|
113
|
+
|
|
114
|
+
# The latitude of the location where the transaction occurred. The number is
|
|
115
|
+
# a signed decimal (for example, Rio de Janeiro's latitude is -22.9027800
|
|
116
|
+
# and Tokyo's latitude is 35.689488).
|
|
117
|
+
# @return [Float]
|
|
118
|
+
attr_accessor :latitude
|
|
119
|
+
|
|
120
|
+
# A human-readable description of the transaction, provided in a local
|
|
121
|
+
# language.
|
|
122
|
+
# @return [String]
|
|
123
|
+
attr_accessor :localized_description
|
|
124
|
+
|
|
125
|
+
# Additional descriptive information about the transaction, provided in a
|
|
126
|
+
# local language.
|
|
127
|
+
# @return [String]
|
|
128
|
+
attr_accessor :localized_memo
|
|
129
|
+
|
|
130
|
+
# The longitude of the location where the transaction occurred. The number
|
|
131
|
+
# is a signed decimal (for example, Rio de Janeiro's longitude is
|
|
132
|
+
# -43.2075000 and Tokyo's longitude is 139.691706).
|
|
133
|
+
# @return [Float]
|
|
134
|
+
attr_accessor :longitude
|
|
135
|
+
|
|
136
|
+
# The unique identifier for the member. Defined by MX.
|
|
137
|
+
# @return [String]
|
|
138
|
+
attr_accessor :member_guid
|
|
139
|
+
|
|
140
|
+
# This indicates whether the member is managed by the user or the MX
|
|
141
|
+
# partner. Members created with the managed member feature will have this
|
|
142
|
+
# field set to `false`.
|
|
143
|
+
# @return [TrueClass | FalseClass]
|
|
144
|
+
attr_accessor :member_is_managed_by_user
|
|
145
|
+
|
|
146
|
+
# Additional information about the transaction.
|
|
147
|
+
# @return [String]
|
|
148
|
+
attr_accessor :memo
|
|
149
|
+
|
|
150
|
+
# The ISO 18245 category code for the transaction.
|
|
151
|
+
# @return [Integer]
|
|
152
|
+
attr_accessor :merchant_category_code
|
|
153
|
+
|
|
154
|
+
# The unique identifier for the merchant. Defined by MX.
|
|
155
|
+
# @return [String]
|
|
156
|
+
attr_accessor :merchant_guid
|
|
157
|
+
|
|
158
|
+
# The unique identifier for the merchant location. Defined by MX.
|
|
159
|
+
# @return [String]
|
|
160
|
+
attr_accessor :merchant_location_guid
|
|
161
|
+
|
|
162
|
+
# Additional information you stored about the `transaction`.
|
|
163
|
+
# @return [String]
|
|
164
|
+
attr_accessor :metadata
|
|
165
|
+
|
|
166
|
+
# The original description of the transaction as provided by our data feed.
|
|
167
|
+
# @return [String]
|
|
168
|
+
attr_accessor :original_description
|
|
169
|
+
|
|
170
|
+
# The date and time the transaction was posted to the account.
|
|
171
|
+
# @return [String]
|
|
172
|
+
attr_accessor :posted_at
|
|
173
|
+
|
|
174
|
+
# The status of the transaction. Can be either `POSTED` or `PENDING`.
|
|
175
|
+
# @return [Status]
|
|
176
|
+
attr_accessor :status
|
|
177
|
+
|
|
178
|
+
# The parent category assigned to this transaction's category.
|
|
179
|
+
# @return [String]
|
|
180
|
+
attr_accessor :top_level_category
|
|
181
|
+
|
|
182
|
+
# The date and time the transaction took place.
|
|
183
|
+
# @return [String]
|
|
184
|
+
attr_accessor :transacted_at
|
|
185
|
+
|
|
186
|
+
# The type of transaction. Can be either `CREDIT` or `DEBIT`.
|
|
187
|
+
# @return [Type]
|
|
188
|
+
attr_accessor :type
|
|
189
|
+
|
|
190
|
+
# The date and time the resource was last updated in ISO 8601 format with a
|
|
191
|
+
# timestamp.
|
|
192
|
+
# For categories, this field will always be `null` when `is_default` is
|
|
193
|
+
# `true`.
|
|
194
|
+
# @return [String]
|
|
195
|
+
attr_accessor :updated_at
|
|
196
|
+
|
|
197
|
+
# The unique identifier for the user. Defined by MX.
|
|
198
|
+
# @return [String]
|
|
199
|
+
attr_accessor :user_guid
|
|
200
|
+
|
|
201
|
+
# The unique partner-defined identifier for the user.
|
|
202
|
+
# @return [String]
|
|
203
|
+
attr_accessor :user_id
|
|
204
|
+
|
|
205
|
+
# The unique partner-defined identifier for the user.
|
|
206
|
+
# @return [Classification]
|
|
207
|
+
attr_accessor :classification
|
|
208
|
+
|
|
209
|
+
# The unique partner-defined identifier for the user.
|
|
210
|
+
# @return [Geolocation]
|
|
211
|
+
attr_accessor :geolocation
|
|
212
|
+
|
|
213
|
+
# The unique partner-defined identifier for the user.
|
|
214
|
+
# @return [Merchant]
|
|
215
|
+
attr_accessor :merchant
|
|
216
|
+
|
|
217
|
+
# The unique partner-defined identifier for the user.
|
|
218
|
+
# @return [RepeatingTransaction]
|
|
219
|
+
attr_accessor :repeating_transaction
|
|
220
|
+
|
|
221
|
+
# A mapping from model property names to API property names.
|
|
222
|
+
def self.names
|
|
223
|
+
@_hash = {} if @_hash.nil?
|
|
224
|
+
@_hash['account_guid'] = 'account_guid'
|
|
225
|
+
@_hash['account_id'] = 'account_id'
|
|
226
|
+
@_hash['amount'] = 'amount'
|
|
227
|
+
@_hash['category'] = 'category'
|
|
228
|
+
@_hash['category_guid'] = 'category_guid'
|
|
229
|
+
@_hash['check_number_string'] = 'check_number_string'
|
|
230
|
+
@_hash['created_at'] = 'created_at'
|
|
231
|
+
@_hash['currency_code'] = 'currency_code'
|
|
232
|
+
@_hash['date'] = 'date'
|
|
233
|
+
@_hash['description'] = 'description'
|
|
234
|
+
@_hash['extended_transaction_type'] = 'extended_transaction_type'
|
|
235
|
+
@_hash['guid'] = 'guid'
|
|
236
|
+
@_hash['id'] = 'id'
|
|
237
|
+
@_hash['is_bill_pay'] = 'is_bill_pay'
|
|
238
|
+
@_hash['is_direct_deposit'] = 'is_direct_deposit'
|
|
239
|
+
@_hash['is_expense'] = 'is_expense'
|
|
240
|
+
@_hash['is_fee'] = 'is_fee'
|
|
241
|
+
@_hash['is_income'] = 'is_income'
|
|
242
|
+
@_hash['is_international'] = 'is_international'
|
|
243
|
+
@_hash['is_manual'] = 'is_manual'
|
|
244
|
+
@_hash['is_overdraft_fee'] = 'is_overdraft_fee'
|
|
245
|
+
@_hash['is_payroll_advance'] = 'is_payroll_advance'
|
|
246
|
+
@_hash['is_recurring'] = 'is_recurring'
|
|
247
|
+
@_hash['is_subscription'] = 'is_subscription'
|
|
248
|
+
@_hash['latitude'] = 'latitude'
|
|
249
|
+
@_hash['localized_description'] = 'localized_description'
|
|
250
|
+
@_hash['localized_memo'] = 'localized_memo'
|
|
251
|
+
@_hash['longitude'] = 'longitude'
|
|
252
|
+
@_hash['member_guid'] = 'member_guid'
|
|
253
|
+
@_hash['member_is_managed_by_user'] = 'member_is_managed_by_user'
|
|
254
|
+
@_hash['memo'] = 'memo'
|
|
255
|
+
@_hash['merchant_category_code'] = 'merchant_category_code'
|
|
256
|
+
@_hash['merchant_guid'] = 'merchant_guid'
|
|
257
|
+
@_hash['merchant_location_guid'] = 'merchant_location_guid'
|
|
258
|
+
@_hash['metadata'] = 'metadata'
|
|
259
|
+
@_hash['original_description'] = 'original_description'
|
|
260
|
+
@_hash['posted_at'] = 'posted_at'
|
|
261
|
+
@_hash['status'] = 'status'
|
|
262
|
+
@_hash['top_level_category'] = 'top_level_category'
|
|
263
|
+
@_hash['transacted_at'] = 'transacted_at'
|
|
264
|
+
@_hash['type'] = 'type'
|
|
265
|
+
@_hash['updated_at'] = 'updated_at'
|
|
266
|
+
@_hash['user_guid'] = 'user_guid'
|
|
267
|
+
@_hash['user_id'] = 'user_id'
|
|
268
|
+
@_hash['classification'] = 'classification'
|
|
269
|
+
@_hash['geolocation'] = 'geolocation'
|
|
270
|
+
@_hash['merchant'] = 'merchant'
|
|
271
|
+
@_hash['repeating_transaction'] = 'repeating_transaction'
|
|
272
|
+
@_hash
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# An array for optional fields
|
|
276
|
+
def self.optionals
|
|
277
|
+
%w[
|
|
278
|
+
account_guid
|
|
279
|
+
account_id
|
|
280
|
+
amount
|
|
281
|
+
category
|
|
282
|
+
category_guid
|
|
283
|
+
check_number_string
|
|
284
|
+
created_at
|
|
285
|
+
currency_code
|
|
286
|
+
date
|
|
287
|
+
description
|
|
288
|
+
extended_transaction_type
|
|
289
|
+
guid
|
|
290
|
+
id
|
|
291
|
+
is_bill_pay
|
|
292
|
+
is_direct_deposit
|
|
293
|
+
is_expense
|
|
294
|
+
is_fee
|
|
295
|
+
is_income
|
|
296
|
+
is_international
|
|
297
|
+
is_manual
|
|
298
|
+
is_overdraft_fee
|
|
299
|
+
is_payroll_advance
|
|
300
|
+
is_recurring
|
|
301
|
+
is_subscription
|
|
302
|
+
latitude
|
|
303
|
+
localized_description
|
|
304
|
+
localized_memo
|
|
305
|
+
longitude
|
|
306
|
+
member_guid
|
|
307
|
+
member_is_managed_by_user
|
|
308
|
+
memo
|
|
309
|
+
merchant_category_code
|
|
310
|
+
merchant_guid
|
|
311
|
+
merchant_location_guid
|
|
312
|
+
metadata
|
|
313
|
+
original_description
|
|
314
|
+
posted_at
|
|
315
|
+
status
|
|
316
|
+
top_level_category
|
|
317
|
+
transacted_at
|
|
318
|
+
type
|
|
319
|
+
updated_at
|
|
320
|
+
user_guid
|
|
321
|
+
user_id
|
|
322
|
+
classification
|
|
323
|
+
geolocation
|
|
324
|
+
merchant
|
|
325
|
+
repeating_transaction
|
|
326
|
+
]
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# An array for nullable fields
|
|
330
|
+
def self.nullables
|
|
331
|
+
%w[
|
|
332
|
+
account_id
|
|
333
|
+
amount
|
|
334
|
+
category
|
|
335
|
+
category_guid
|
|
336
|
+
check_number_string
|
|
337
|
+
created_at
|
|
338
|
+
currency_code
|
|
339
|
+
date
|
|
340
|
+
description
|
|
341
|
+
extended_transaction_type
|
|
342
|
+
guid
|
|
343
|
+
id
|
|
344
|
+
is_bill_pay
|
|
345
|
+
is_direct_deposit
|
|
346
|
+
is_expense
|
|
347
|
+
is_fee
|
|
348
|
+
is_income
|
|
349
|
+
is_manual
|
|
350
|
+
is_overdraft_fee
|
|
351
|
+
is_payroll_advance
|
|
352
|
+
is_recurring
|
|
353
|
+
is_subscription
|
|
354
|
+
latitude
|
|
355
|
+
localized_description
|
|
356
|
+
localized_memo
|
|
357
|
+
longitude
|
|
358
|
+
member_guid
|
|
359
|
+
member_is_managed_by_user
|
|
360
|
+
memo
|
|
361
|
+
merchant_category_code
|
|
362
|
+
merchant_guid
|
|
363
|
+
merchant_location_guid
|
|
364
|
+
metadata
|
|
365
|
+
original_description
|
|
366
|
+
posted_at
|
|
367
|
+
status
|
|
368
|
+
top_level_category
|
|
369
|
+
transacted_at
|
|
370
|
+
type
|
|
371
|
+
updated_at
|
|
372
|
+
user_guid
|
|
373
|
+
user_id
|
|
374
|
+
classification
|
|
375
|
+
geolocation
|
|
376
|
+
merchant
|
|
377
|
+
repeating_transaction
|
|
378
|
+
]
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
def initialize(account_guid: SKIP, account_id: SKIP, amount: SKIP,
|
|
382
|
+
category: SKIP, category_guid: SKIP,
|
|
383
|
+
check_number_string: SKIP, created_at: SKIP,
|
|
384
|
+
currency_code: SKIP, date: SKIP, description: SKIP,
|
|
385
|
+
extended_transaction_type: SKIP, guid: SKIP, id: SKIP,
|
|
386
|
+
is_bill_pay: SKIP, is_direct_deposit: SKIP, is_expense: SKIP,
|
|
387
|
+
is_fee: SKIP, is_income: SKIP, is_international: SKIP,
|
|
388
|
+
is_manual: SKIP, is_overdraft_fee: SKIP,
|
|
389
|
+
is_payroll_advance: SKIP, is_recurring: SKIP,
|
|
390
|
+
is_subscription: SKIP, latitude: SKIP,
|
|
391
|
+
localized_description: SKIP, localized_memo: SKIP,
|
|
392
|
+
longitude: SKIP, member_guid: SKIP,
|
|
393
|
+
member_is_managed_by_user: SKIP, memo: SKIP,
|
|
394
|
+
merchant_category_code: SKIP, merchant_guid: SKIP,
|
|
395
|
+
merchant_location_guid: SKIP, metadata: SKIP,
|
|
396
|
+
original_description: SKIP, posted_at: SKIP, status: SKIP,
|
|
397
|
+
top_level_category: SKIP, transacted_at: SKIP, type: SKIP,
|
|
398
|
+
updated_at: SKIP, user_guid: SKIP, user_id: SKIP,
|
|
399
|
+
classification: SKIP, geolocation: SKIP, merchant: SKIP,
|
|
400
|
+
repeating_transaction: SKIP, additional_properties: nil)
|
|
401
|
+
# Add additional model properties to the instance
|
|
402
|
+
additional_properties = {} if additional_properties.nil?
|
|
403
|
+
|
|
404
|
+
@account_guid = account_guid unless account_guid == SKIP
|
|
405
|
+
@account_id = account_id unless account_id == SKIP
|
|
406
|
+
@amount = amount unless amount == SKIP
|
|
407
|
+
@category = category unless category == SKIP
|
|
408
|
+
@category_guid = category_guid unless category_guid == SKIP
|
|
409
|
+
@check_number_string = check_number_string unless check_number_string == SKIP
|
|
410
|
+
@created_at = created_at unless created_at == SKIP
|
|
411
|
+
@currency_code = currency_code unless currency_code == SKIP
|
|
412
|
+
@date = date unless date == SKIP
|
|
413
|
+
@description = description unless description == SKIP
|
|
414
|
+
unless extended_transaction_type == SKIP
|
|
415
|
+
@extended_transaction_type =
|
|
416
|
+
extended_transaction_type
|
|
417
|
+
end
|
|
418
|
+
@guid = guid unless guid == SKIP
|
|
419
|
+
@id = id unless id == SKIP
|
|
420
|
+
@is_bill_pay = is_bill_pay unless is_bill_pay == SKIP
|
|
421
|
+
@is_direct_deposit = is_direct_deposit unless is_direct_deposit == SKIP
|
|
422
|
+
@is_expense = is_expense unless is_expense == SKIP
|
|
423
|
+
@is_fee = is_fee unless is_fee == SKIP
|
|
424
|
+
@is_income = is_income unless is_income == SKIP
|
|
425
|
+
@is_international = is_international unless is_international == SKIP
|
|
426
|
+
@is_manual = is_manual unless is_manual == SKIP
|
|
427
|
+
@is_overdraft_fee = is_overdraft_fee unless is_overdraft_fee == SKIP
|
|
428
|
+
@is_payroll_advance = is_payroll_advance unless is_payroll_advance == SKIP
|
|
429
|
+
@is_recurring = is_recurring unless is_recurring == SKIP
|
|
430
|
+
@is_subscription = is_subscription unless is_subscription == SKIP
|
|
431
|
+
@latitude = latitude unless latitude == SKIP
|
|
432
|
+
@localized_description = localized_description unless localized_description == SKIP
|
|
433
|
+
@localized_memo = localized_memo unless localized_memo == SKIP
|
|
434
|
+
@longitude = longitude unless longitude == SKIP
|
|
435
|
+
@member_guid = member_guid unless member_guid == SKIP
|
|
436
|
+
unless member_is_managed_by_user == SKIP
|
|
437
|
+
@member_is_managed_by_user =
|
|
438
|
+
member_is_managed_by_user
|
|
439
|
+
end
|
|
440
|
+
@memo = memo unless memo == SKIP
|
|
441
|
+
@merchant_category_code = merchant_category_code unless merchant_category_code == SKIP
|
|
442
|
+
@merchant_guid = merchant_guid unless merchant_guid == SKIP
|
|
443
|
+
@merchant_location_guid = merchant_location_guid unless merchant_location_guid == SKIP
|
|
444
|
+
@metadata = metadata unless metadata == SKIP
|
|
445
|
+
@original_description = original_description unless original_description == SKIP
|
|
446
|
+
@posted_at = posted_at unless posted_at == SKIP
|
|
447
|
+
@status = status unless status == SKIP
|
|
448
|
+
@top_level_category = top_level_category unless top_level_category == SKIP
|
|
449
|
+
@transacted_at = transacted_at unless transacted_at == SKIP
|
|
450
|
+
@type = type unless type == SKIP
|
|
451
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
452
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
453
|
+
@user_id = user_id unless user_id == SKIP
|
|
454
|
+
@classification = classification unless classification == SKIP
|
|
455
|
+
@geolocation = geolocation unless geolocation == SKIP
|
|
456
|
+
@merchant = merchant unless merchant == SKIP
|
|
457
|
+
@repeating_transaction = repeating_transaction unless repeating_transaction == SKIP
|
|
458
|
+
@additional_properties = additional_properties
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Creates an instance of the object from a hash.
|
|
462
|
+
def self.from_hash(hash)
|
|
463
|
+
return nil unless hash
|
|
464
|
+
|
|
465
|
+
# Extract variables from the hash.
|
|
466
|
+
account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
|
|
467
|
+
account_id = hash.key?('account_id') ? hash['account_id'] : SKIP
|
|
468
|
+
amount = hash.key?('amount') ? hash['amount'] : SKIP
|
|
469
|
+
category = hash.key?('category') ? hash['category'] : SKIP
|
|
470
|
+
category_guid = hash.key?('category_guid') ? hash['category_guid'] : SKIP
|
|
471
|
+
check_number_string =
|
|
472
|
+
hash.key?('check_number_string') ? hash['check_number_string'] : SKIP
|
|
473
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
474
|
+
currency_code = hash.key?('currency_code') ? hash['currency_code'] : SKIP
|
|
475
|
+
date = hash.key?('date') ? hash['date'] : SKIP
|
|
476
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
477
|
+
extended_transaction_type =
|
|
478
|
+
hash.key?('extended_transaction_type') ? hash['extended_transaction_type'] : SKIP
|
|
479
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
480
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
481
|
+
is_bill_pay = hash.key?('is_bill_pay') ? hash['is_bill_pay'] : SKIP
|
|
482
|
+
is_direct_deposit =
|
|
483
|
+
hash.key?('is_direct_deposit') ? hash['is_direct_deposit'] : SKIP
|
|
484
|
+
is_expense = hash.key?('is_expense') ? hash['is_expense'] : SKIP
|
|
485
|
+
is_fee = hash.key?('is_fee') ? hash['is_fee'] : SKIP
|
|
486
|
+
is_income = hash.key?('is_income') ? hash['is_income'] : SKIP
|
|
487
|
+
is_international =
|
|
488
|
+
hash.key?('is_international') ? hash['is_international'] : SKIP
|
|
489
|
+
is_manual = hash.key?('is_manual') ? hash['is_manual'] : SKIP
|
|
490
|
+
is_overdraft_fee =
|
|
491
|
+
hash.key?('is_overdraft_fee') ? hash['is_overdraft_fee'] : SKIP
|
|
492
|
+
is_payroll_advance =
|
|
493
|
+
hash.key?('is_payroll_advance') ? hash['is_payroll_advance'] : SKIP
|
|
494
|
+
is_recurring = hash.key?('is_recurring') ? hash['is_recurring'] : SKIP
|
|
495
|
+
is_subscription =
|
|
496
|
+
hash.key?('is_subscription') ? hash['is_subscription'] : SKIP
|
|
497
|
+
latitude = hash.key?('latitude') ? hash['latitude'] : SKIP
|
|
498
|
+
localized_description =
|
|
499
|
+
hash.key?('localized_description') ? hash['localized_description'] : SKIP
|
|
500
|
+
localized_memo =
|
|
501
|
+
hash.key?('localized_memo') ? hash['localized_memo'] : SKIP
|
|
502
|
+
longitude = hash.key?('longitude') ? hash['longitude'] : SKIP
|
|
503
|
+
member_guid = hash.key?('member_guid') ? hash['member_guid'] : SKIP
|
|
504
|
+
member_is_managed_by_user =
|
|
505
|
+
hash.key?('member_is_managed_by_user') ? hash['member_is_managed_by_user'] : SKIP
|
|
506
|
+
memo = hash.key?('memo') ? hash['memo'] : SKIP
|
|
507
|
+
merchant_category_code =
|
|
508
|
+
hash.key?('merchant_category_code') ? hash['merchant_category_code'] : SKIP
|
|
509
|
+
merchant_guid = hash.key?('merchant_guid') ? hash['merchant_guid'] : SKIP
|
|
510
|
+
merchant_location_guid =
|
|
511
|
+
hash.key?('merchant_location_guid') ? hash['merchant_location_guid'] : SKIP
|
|
512
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
513
|
+
original_description =
|
|
514
|
+
hash.key?('original_description') ? hash['original_description'] : SKIP
|
|
515
|
+
posted_at = hash.key?('posted_at') ? hash['posted_at'] : SKIP
|
|
516
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
517
|
+
top_level_category =
|
|
518
|
+
hash.key?('top_level_category') ? hash['top_level_category'] : SKIP
|
|
519
|
+
transacted_at = hash.key?('transacted_at') ? hash['transacted_at'] : SKIP
|
|
520
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
521
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
522
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
523
|
+
user_id = hash.key?('user_id') ? hash['user_id'] : SKIP
|
|
524
|
+
classification = Classification.from_hash(hash['classification']) if hash['classification']
|
|
525
|
+
geolocation = Geolocation.from_hash(hash['geolocation']) if hash['geolocation']
|
|
526
|
+
merchant = Merchant.from_hash(hash['merchant']) if hash['merchant']
|
|
527
|
+
repeating_transaction = RepeatingTransaction.from_hash(hash['repeating_transaction']) if
|
|
528
|
+
hash['repeating_transaction']
|
|
529
|
+
|
|
530
|
+
# Create a new hash for additional properties, removing known properties.
|
|
531
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
532
|
+
|
|
533
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
534
|
+
new_hash, proc { |value| value }
|
|
535
|
+
)
|
|
536
|
+
|
|
537
|
+
# Create object from extracted values.
|
|
538
|
+
TransactionIncludesResponse.new(account_guid: account_guid,
|
|
539
|
+
account_id: account_id,
|
|
540
|
+
amount: amount,
|
|
541
|
+
category: category,
|
|
542
|
+
category_guid: category_guid,
|
|
543
|
+
check_number_string: check_number_string,
|
|
544
|
+
created_at: created_at,
|
|
545
|
+
currency_code: currency_code,
|
|
546
|
+
date: date,
|
|
547
|
+
description: description,
|
|
548
|
+
extended_transaction_type: extended_transaction_type,
|
|
549
|
+
guid: guid,
|
|
550
|
+
id: id,
|
|
551
|
+
is_bill_pay: is_bill_pay,
|
|
552
|
+
is_direct_deposit: is_direct_deposit,
|
|
553
|
+
is_expense: is_expense,
|
|
554
|
+
is_fee: is_fee,
|
|
555
|
+
is_income: is_income,
|
|
556
|
+
is_international: is_international,
|
|
557
|
+
is_manual: is_manual,
|
|
558
|
+
is_overdraft_fee: is_overdraft_fee,
|
|
559
|
+
is_payroll_advance: is_payroll_advance,
|
|
560
|
+
is_recurring: is_recurring,
|
|
561
|
+
is_subscription: is_subscription,
|
|
562
|
+
latitude: latitude,
|
|
563
|
+
localized_description: localized_description,
|
|
564
|
+
localized_memo: localized_memo,
|
|
565
|
+
longitude: longitude,
|
|
566
|
+
member_guid: member_guid,
|
|
567
|
+
member_is_managed_by_user: member_is_managed_by_user,
|
|
568
|
+
memo: memo,
|
|
569
|
+
merchant_category_code: merchant_category_code,
|
|
570
|
+
merchant_guid: merchant_guid,
|
|
571
|
+
merchant_location_guid: merchant_location_guid,
|
|
572
|
+
metadata: metadata,
|
|
573
|
+
original_description: original_description,
|
|
574
|
+
posted_at: posted_at,
|
|
575
|
+
status: status,
|
|
576
|
+
top_level_category: top_level_category,
|
|
577
|
+
transacted_at: transacted_at,
|
|
578
|
+
type: type,
|
|
579
|
+
updated_at: updated_at,
|
|
580
|
+
user_guid: user_guid,
|
|
581
|
+
user_id: user_id,
|
|
582
|
+
classification: classification,
|
|
583
|
+
geolocation: geolocation,
|
|
584
|
+
merchant: merchant,
|
|
585
|
+
repeating_transaction: repeating_transaction,
|
|
586
|
+
additional_properties: additional_properties)
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
# Provides a human-readable string representation of the object.
|
|
590
|
+
def to_s
|
|
591
|
+
class_name = self.class.name.split('::').last
|
|
592
|
+
"<#{class_name} account_guid: #{@account_guid}, account_id: #{@account_id}, amount:"\
|
|
593
|
+
" #{@amount}, category: #{@category}, category_guid: #{@category_guid}, check_number_string:"\
|
|
594
|
+
" #{@check_number_string}, created_at: #{@created_at}, currency_code: #{@currency_code},"\
|
|
595
|
+
" date: #{@date}, description: #{@description}, extended_transaction_type:"\
|
|
596
|
+
" #{@extended_transaction_type}, guid: #{@guid}, id: #{@id}, is_bill_pay: #{@is_bill_pay},"\
|
|
597
|
+
" is_direct_deposit: #{@is_direct_deposit}, is_expense: #{@is_expense}, is_fee: #{@is_fee},"\
|
|
598
|
+
" is_income: #{@is_income}, is_international: #{@is_international}, is_manual:"\
|
|
599
|
+
" #{@is_manual}, is_overdraft_fee: #{@is_overdraft_fee}, is_payroll_advance:"\
|
|
600
|
+
" #{@is_payroll_advance}, is_recurring: #{@is_recurring}, is_subscription:"\
|
|
601
|
+
" #{@is_subscription}, latitude: #{@latitude}, localized_description:"\
|
|
602
|
+
" #{@localized_description}, localized_memo: #{@localized_memo}, longitude: #{@longitude},"\
|
|
603
|
+
" member_guid: #{@member_guid}, member_is_managed_by_user: #{@member_is_managed_by_user},"\
|
|
604
|
+
" memo: #{@memo}, merchant_category_code: #{@merchant_category_code}, merchant_guid:"\
|
|
605
|
+
" #{@merchant_guid}, merchant_location_guid: #{@merchant_location_guid}, metadata:"\
|
|
606
|
+
" #{@metadata}, original_description: #{@original_description}, posted_at: #{@posted_at},"\
|
|
607
|
+
" status: #{@status}, top_level_category: #{@top_level_category}, transacted_at:"\
|
|
608
|
+
" #{@transacted_at}, type: #{@type}, updated_at: #{@updated_at}, user_guid: #{@user_guid},"\
|
|
609
|
+
" user_id: #{@user_id}, classification: #{@classification}, geolocation: #{@geolocation},"\
|
|
610
|
+
" merchant: #{@merchant}, repeating_transaction: #{@repeating_transaction},"\
|
|
611
|
+
" additional_properties: #{@additional_properties}>"
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
615
|
+
def inspect
|
|
616
|
+
class_name = self.class.name.split('::').last
|
|
617
|
+
"<#{class_name} account_guid: #{@account_guid.inspect}, account_id: #{@account_id.inspect},"\
|
|
618
|
+
" amount: #{@amount.inspect}, category: #{@category.inspect}, category_guid:"\
|
|
619
|
+
" #{@category_guid.inspect}, check_number_string: #{@check_number_string.inspect},"\
|
|
620
|
+
" created_at: #{@created_at.inspect}, currency_code: #{@currency_code.inspect}, date:"\
|
|
621
|
+
" #{@date.inspect}, description: #{@description.inspect}, extended_transaction_type:"\
|
|
622
|
+
" #{@extended_transaction_type.inspect}, guid: #{@guid.inspect}, id: #{@id.inspect},"\
|
|
623
|
+
" is_bill_pay: #{@is_bill_pay.inspect}, is_direct_deposit: #{@is_direct_deposit.inspect},"\
|
|
624
|
+
" is_expense: #{@is_expense.inspect}, is_fee: #{@is_fee.inspect}, is_income:"\
|
|
625
|
+
" #{@is_income.inspect}, is_international: #{@is_international.inspect}, is_manual:"\
|
|
626
|
+
" #{@is_manual.inspect}, is_overdraft_fee: #{@is_overdraft_fee.inspect}, is_payroll_advance:"\
|
|
627
|
+
" #{@is_payroll_advance.inspect}, is_recurring: #{@is_recurring.inspect}, is_subscription:"\
|
|
628
|
+
" #{@is_subscription.inspect}, latitude: #{@latitude.inspect}, localized_description:"\
|
|
629
|
+
" #{@localized_description.inspect}, localized_memo: #{@localized_memo.inspect}, longitude:"\
|
|
630
|
+
" #{@longitude.inspect}, member_guid: #{@member_guid.inspect}, member_is_managed_by_user:"\
|
|
631
|
+
" #{@member_is_managed_by_user.inspect}, memo: #{@memo.inspect}, merchant_category_code:"\
|
|
632
|
+
" #{@merchant_category_code.inspect}, merchant_guid: #{@merchant_guid.inspect},"\
|
|
633
|
+
" merchant_location_guid: #{@merchant_location_guid.inspect}, metadata:"\
|
|
634
|
+
" #{@metadata.inspect}, original_description: #{@original_description.inspect}, posted_at:"\
|
|
635
|
+
" #{@posted_at.inspect}, status: #{@status.inspect}, top_level_category:"\
|
|
636
|
+
" #{@top_level_category.inspect}, transacted_at: #{@transacted_at.inspect}, type:"\
|
|
637
|
+
" #{@type.inspect}, updated_at: #{@updated_at.inspect}, user_guid: #{@user_guid.inspect},"\
|
|
638
|
+
" user_id: #{@user_id.inspect}, classification: #{@classification.inspect}, geolocation:"\
|
|
639
|
+
" #{@geolocation.inspect}, merchant: #{@merchant.inspect}, repeating_transaction:"\
|
|
640
|
+
" #{@repeating_transaction.inspect}, additional_properties: #{@additional_properties}>"
|
|
641
|
+
end
|
|
642
|
+
end
|
|
643
|
+
end
|