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,179 @@
|
|
|
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
|
+
# GoalRequest Model.
|
|
8
|
+
class GoalRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The unique identifier for an account.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :account_guid
|
|
15
|
+
|
|
16
|
+
# The amount of the `goal`.
|
|
17
|
+
# @return [Float]
|
|
18
|
+
attr_accessor :amount
|
|
19
|
+
|
|
20
|
+
# The type of goal. Can be `SAVE_AMOUNT` or `PAYOFF`.
|
|
21
|
+
# @return [GoalTypeName]
|
|
22
|
+
attr_accessor :goal_type_name
|
|
23
|
+
|
|
24
|
+
# The category of the `goal`.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :meta_type_name
|
|
27
|
+
|
|
28
|
+
# The name of the `goal`.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :name
|
|
31
|
+
|
|
32
|
+
# Date and time the `goal` was completed, represented in ISO 8601 format
|
|
33
|
+
# with a timestamp.
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :completed_at
|
|
36
|
+
|
|
37
|
+
# Determines if the `goal` has been spent.
|
|
38
|
+
# @return [TrueClass | FalseClass]
|
|
39
|
+
attr_accessor :has_been_spent
|
|
40
|
+
|
|
41
|
+
# Determines if the `goal` is complete.
|
|
42
|
+
# @return [TrueClass | FalseClass]
|
|
43
|
+
attr_accessor :is_complete
|
|
44
|
+
|
|
45
|
+
# Additional information you can store about the `goal`.
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :metadata
|
|
48
|
+
|
|
49
|
+
# The priority of the goal in relation to multiple goals.
|
|
50
|
+
# @return [Integer]
|
|
51
|
+
attr_accessor :position
|
|
52
|
+
|
|
53
|
+
# Date and time the `goal` is to complete. Intended for users to set their
|
|
54
|
+
# own goal completion dates.
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :targeted_to_complete_at
|
|
57
|
+
|
|
58
|
+
# A mapping from model property names to API property names.
|
|
59
|
+
def self.names
|
|
60
|
+
@_hash = {} if @_hash.nil?
|
|
61
|
+
@_hash['account_guid'] = 'account_guid'
|
|
62
|
+
@_hash['amount'] = 'amount'
|
|
63
|
+
@_hash['goal_type_name'] = 'goal_type_name'
|
|
64
|
+
@_hash['meta_type_name'] = 'meta_type_name'
|
|
65
|
+
@_hash['name'] = 'name'
|
|
66
|
+
@_hash['completed_at'] = 'completed_at'
|
|
67
|
+
@_hash['has_been_spent'] = 'has_been_spent'
|
|
68
|
+
@_hash['is_complete'] = 'is_complete'
|
|
69
|
+
@_hash['metadata'] = 'metadata'
|
|
70
|
+
@_hash['position'] = 'position'
|
|
71
|
+
@_hash['targeted_to_complete_at'] = 'targeted_to_complete_at'
|
|
72
|
+
@_hash
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# An array for optional fields
|
|
76
|
+
def self.optionals
|
|
77
|
+
%w[
|
|
78
|
+
completed_at
|
|
79
|
+
has_been_spent
|
|
80
|
+
is_complete
|
|
81
|
+
metadata
|
|
82
|
+
position
|
|
83
|
+
targeted_to_complete_at
|
|
84
|
+
]
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# An array for nullable fields
|
|
88
|
+
def self.nullables
|
|
89
|
+
%w[
|
|
90
|
+
goal_type_name
|
|
91
|
+
]
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def initialize(account_guid:, amount:, goal_type_name:, meta_type_name:,
|
|
95
|
+
name:, completed_at: SKIP, has_been_spent: SKIP,
|
|
96
|
+
is_complete: SKIP, metadata: SKIP, position: SKIP,
|
|
97
|
+
targeted_to_complete_at: SKIP, additional_properties: nil)
|
|
98
|
+
# Add additional model properties to the instance
|
|
99
|
+
additional_properties = {} if additional_properties.nil?
|
|
100
|
+
|
|
101
|
+
@account_guid = account_guid
|
|
102
|
+
@amount = amount
|
|
103
|
+
@goal_type_name = goal_type_name
|
|
104
|
+
@meta_type_name = meta_type_name
|
|
105
|
+
@name = name
|
|
106
|
+
@completed_at = completed_at unless completed_at == SKIP
|
|
107
|
+
@has_been_spent = has_been_spent unless has_been_spent == SKIP
|
|
108
|
+
@is_complete = is_complete unless is_complete == SKIP
|
|
109
|
+
@metadata = metadata unless metadata == SKIP
|
|
110
|
+
@position = position unless position == SKIP
|
|
111
|
+
@targeted_to_complete_at = targeted_to_complete_at unless targeted_to_complete_at == SKIP
|
|
112
|
+
@additional_properties = additional_properties
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Creates an instance of the object from a hash.
|
|
116
|
+
def self.from_hash(hash)
|
|
117
|
+
return nil unless hash
|
|
118
|
+
|
|
119
|
+
# Extract variables from the hash.
|
|
120
|
+
account_guid = hash.key?('account_guid') ? hash['account_guid'] : nil
|
|
121
|
+
amount = hash.key?('amount') ? hash['amount'] : nil
|
|
122
|
+
goal_type_name =
|
|
123
|
+
hash.key?('goal_type_name') ? hash['goal_type_name'] : nil
|
|
124
|
+
meta_type_name =
|
|
125
|
+
hash.key?('meta_type_name') ? hash['meta_type_name'] : nil
|
|
126
|
+
name = hash.key?('name') ? hash['name'] : nil
|
|
127
|
+
completed_at = hash.key?('completed_at') ? hash['completed_at'] : SKIP
|
|
128
|
+
has_been_spent =
|
|
129
|
+
hash.key?('has_been_spent') ? hash['has_been_spent'] : SKIP
|
|
130
|
+
is_complete = hash.key?('is_complete') ? hash['is_complete'] : SKIP
|
|
131
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
132
|
+
position = hash.key?('position') ? hash['position'] : SKIP
|
|
133
|
+
targeted_to_complete_at =
|
|
134
|
+
hash.key?('targeted_to_complete_at') ? hash['targeted_to_complete_at'] : SKIP
|
|
135
|
+
|
|
136
|
+
# Create a new hash for additional properties, removing known properties.
|
|
137
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
138
|
+
|
|
139
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
140
|
+
new_hash, proc { |value| value }
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
# Create object from extracted values.
|
|
144
|
+
GoalRequest.new(account_guid: account_guid,
|
|
145
|
+
amount: amount,
|
|
146
|
+
goal_type_name: goal_type_name,
|
|
147
|
+
meta_type_name: meta_type_name,
|
|
148
|
+
name: name,
|
|
149
|
+
completed_at: completed_at,
|
|
150
|
+
has_been_spent: has_been_spent,
|
|
151
|
+
is_complete: is_complete,
|
|
152
|
+
metadata: metadata,
|
|
153
|
+
position: position,
|
|
154
|
+
targeted_to_complete_at: targeted_to_complete_at,
|
|
155
|
+
additional_properties: additional_properties)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Provides a human-readable string representation of the object.
|
|
159
|
+
def to_s
|
|
160
|
+
class_name = self.class.name.split('::').last
|
|
161
|
+
"<#{class_name} account_guid: #{@account_guid}, amount: #{@amount}, goal_type_name:"\
|
|
162
|
+
" #{@goal_type_name}, meta_type_name: #{@meta_type_name}, name: #{@name}, completed_at:"\
|
|
163
|
+
" #{@completed_at}, has_been_spent: #{@has_been_spent}, is_complete: #{@is_complete},"\
|
|
164
|
+
" metadata: #{@metadata}, position: #{@position}, targeted_to_complete_at:"\
|
|
165
|
+
" #{@targeted_to_complete_at}, additional_properties: #{@additional_properties}>"
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
169
|
+
def inspect
|
|
170
|
+
class_name = self.class.name.split('::').last
|
|
171
|
+
"<#{class_name} account_guid: #{@account_guid.inspect}, amount: #{@amount.inspect},"\
|
|
172
|
+
" goal_type_name: #{@goal_type_name.inspect}, meta_type_name: #{@meta_type_name.inspect},"\
|
|
173
|
+
" name: #{@name.inspect}, completed_at: #{@completed_at.inspect}, has_been_spent:"\
|
|
174
|
+
" #{@has_been_spent.inspect}, is_complete: #{@is_complete.inspect}, metadata:"\
|
|
175
|
+
" #{@metadata.inspect}, position: #{@position.inspect}, targeted_to_complete_at:"\
|
|
176
|
+
" #{@targeted_to_complete_at.inspect}, additional_properties: #{@additional_properties}>"
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
# GoalRequestBody Model.
|
|
8
|
+
class GoalRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [GoalRequest]
|
|
14
|
+
attr_accessor :goal
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['goal'] = 'goal'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
goal
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(goal: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@goal = goal unless goal == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
goal = GoalRequest.from_hash(hash['goal']) if hash['goal']
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
GoalRequestBody.new(goal: goal,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} goal: #{@goal}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} goal: #{@goal.inspect}, additional_properties: #{@additional_properties}>"
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,241 @@
|
|
|
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
|
+
# GoalResponse Model.
|
|
8
|
+
class GoalResponse < 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 amount of the `goal`.
|
|
17
|
+
# @return [Float]
|
|
18
|
+
attr_accessor :amount
|
|
19
|
+
|
|
20
|
+
# Date and time the `goal` was completed, represented in ISO 8601 format
|
|
21
|
+
# with a timestamp.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :completed_at
|
|
24
|
+
|
|
25
|
+
# The current amount of the `goal`.
|
|
26
|
+
# @return [Float]
|
|
27
|
+
attr_accessor :current_amount
|
|
28
|
+
|
|
29
|
+
# The type of goal. Can be `SAVE_AMOUNT` or `PAYOFF`.
|
|
30
|
+
# @return [GoalTypeName]
|
|
31
|
+
attr_accessor :goal_type_name
|
|
32
|
+
|
|
33
|
+
# Unique identifier for the goal. Defined by MX.
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :guid
|
|
36
|
+
|
|
37
|
+
# Determines if the goal has been spent.
|
|
38
|
+
# @return [TrueClass | FalseClass]
|
|
39
|
+
attr_accessor :has_been_spent
|
|
40
|
+
|
|
41
|
+
# Determines if the goal is complete.
|
|
42
|
+
# @return [TrueClass | FalseClass]
|
|
43
|
+
attr_accessor :is_complete
|
|
44
|
+
|
|
45
|
+
# Additional information you stored about the `goal`.
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :metadata
|
|
48
|
+
|
|
49
|
+
# The category of the `goal`.
|
|
50
|
+
# @return [String]
|
|
51
|
+
attr_accessor :meta_type_name
|
|
52
|
+
|
|
53
|
+
# The name of the `goal`.
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :name
|
|
56
|
+
|
|
57
|
+
# The priority of the `goal` in relation to multiple goals.
|
|
58
|
+
# @return [Integer]
|
|
59
|
+
attr_accessor :position
|
|
60
|
+
|
|
61
|
+
# Date and time the `goal` is projected to be completed.
|
|
62
|
+
# @return [String]
|
|
63
|
+
attr_accessor :projected_to_complete_at
|
|
64
|
+
|
|
65
|
+
# Date and time the `goal` is to complete. Intended for users to set their
|
|
66
|
+
# own goal completion dates.
|
|
67
|
+
# @return [String]
|
|
68
|
+
attr_accessor :targeted_to_complete_at
|
|
69
|
+
|
|
70
|
+
# The track of the `goal`.
|
|
71
|
+
# @return [TrackTypeName]
|
|
72
|
+
attr_accessor :track_type_name
|
|
73
|
+
|
|
74
|
+
# The unique identifier for the the user. Defined by MX.
|
|
75
|
+
# @return [String]
|
|
76
|
+
attr_accessor :user_guid
|
|
77
|
+
|
|
78
|
+
# A mapping from model property names to API property names.
|
|
79
|
+
def self.names
|
|
80
|
+
@_hash = {} if @_hash.nil?
|
|
81
|
+
@_hash['account_guid'] = 'account_guid'
|
|
82
|
+
@_hash['amount'] = 'amount'
|
|
83
|
+
@_hash['completed_at'] = 'completed_at'
|
|
84
|
+
@_hash['current_amount'] = 'current_amount'
|
|
85
|
+
@_hash['goal_type_name'] = 'goal_type_name'
|
|
86
|
+
@_hash['guid'] = 'guid'
|
|
87
|
+
@_hash['has_been_spent'] = 'has_been_spent'
|
|
88
|
+
@_hash['is_complete'] = 'is_complete'
|
|
89
|
+
@_hash['metadata'] = 'metadata'
|
|
90
|
+
@_hash['meta_type_name'] = 'meta_type_name'
|
|
91
|
+
@_hash['name'] = 'name'
|
|
92
|
+
@_hash['position'] = 'position'
|
|
93
|
+
@_hash['projected_to_complete_at'] = 'projected_to_complete_at'
|
|
94
|
+
@_hash['targeted_to_complete_at'] = 'targeted_to_complete_at'
|
|
95
|
+
@_hash['track_type_name'] = 'track_type_name'
|
|
96
|
+
@_hash['user_guid'] = 'user_guid'
|
|
97
|
+
@_hash
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# An array for optional fields
|
|
101
|
+
def self.optionals
|
|
102
|
+
%w[
|
|
103
|
+
account_guid
|
|
104
|
+
amount
|
|
105
|
+
completed_at
|
|
106
|
+
current_amount
|
|
107
|
+
goal_type_name
|
|
108
|
+
guid
|
|
109
|
+
has_been_spent
|
|
110
|
+
is_complete
|
|
111
|
+
metadata
|
|
112
|
+
meta_type_name
|
|
113
|
+
name
|
|
114
|
+
position
|
|
115
|
+
projected_to_complete_at
|
|
116
|
+
targeted_to_complete_at
|
|
117
|
+
track_type_name
|
|
118
|
+
user_guid
|
|
119
|
+
]
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# An array for nullable fields
|
|
123
|
+
def self.nullables
|
|
124
|
+
%w[
|
|
125
|
+
goal_type_name
|
|
126
|
+
]
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
def initialize(account_guid: SKIP, amount: SKIP, completed_at: SKIP,
|
|
130
|
+
current_amount: SKIP, goal_type_name: SKIP, guid: SKIP,
|
|
131
|
+
has_been_spent: SKIP, is_complete: SKIP, metadata: SKIP,
|
|
132
|
+
meta_type_name: SKIP, name: SKIP, position: SKIP,
|
|
133
|
+
projected_to_complete_at: SKIP,
|
|
134
|
+
targeted_to_complete_at: SKIP, track_type_name: SKIP,
|
|
135
|
+
user_guid: SKIP, additional_properties: nil)
|
|
136
|
+
# Add additional model properties to the instance
|
|
137
|
+
additional_properties = {} if additional_properties.nil?
|
|
138
|
+
|
|
139
|
+
@account_guid = account_guid unless account_guid == SKIP
|
|
140
|
+
@amount = amount unless amount == SKIP
|
|
141
|
+
@completed_at = completed_at unless completed_at == SKIP
|
|
142
|
+
@current_amount = current_amount unless current_amount == SKIP
|
|
143
|
+
@goal_type_name = goal_type_name unless goal_type_name == SKIP
|
|
144
|
+
@guid = guid unless guid == SKIP
|
|
145
|
+
@has_been_spent = has_been_spent unless has_been_spent == SKIP
|
|
146
|
+
@is_complete = is_complete unless is_complete == SKIP
|
|
147
|
+
@metadata = metadata unless metadata == SKIP
|
|
148
|
+
@meta_type_name = meta_type_name unless meta_type_name == SKIP
|
|
149
|
+
@name = name unless name == SKIP
|
|
150
|
+
@position = position unless position == SKIP
|
|
151
|
+
@projected_to_complete_at = projected_to_complete_at unless projected_to_complete_at == SKIP
|
|
152
|
+
@targeted_to_complete_at = targeted_to_complete_at unless targeted_to_complete_at == SKIP
|
|
153
|
+
@track_type_name = track_type_name unless track_type_name == SKIP
|
|
154
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
155
|
+
@additional_properties = additional_properties
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Creates an instance of the object from a hash.
|
|
159
|
+
def self.from_hash(hash)
|
|
160
|
+
return nil unless hash
|
|
161
|
+
|
|
162
|
+
# Extract variables from the hash.
|
|
163
|
+
account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
|
|
164
|
+
amount = hash.key?('amount') ? hash['amount'] : SKIP
|
|
165
|
+
completed_at = hash.key?('completed_at') ? hash['completed_at'] : SKIP
|
|
166
|
+
current_amount =
|
|
167
|
+
hash.key?('current_amount') ? hash['current_amount'] : SKIP
|
|
168
|
+
goal_type_name =
|
|
169
|
+
hash.key?('goal_type_name') ? hash['goal_type_name'] : SKIP
|
|
170
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
171
|
+
has_been_spent =
|
|
172
|
+
hash.key?('has_been_spent') ? hash['has_been_spent'] : SKIP
|
|
173
|
+
is_complete = hash.key?('is_complete') ? hash['is_complete'] : SKIP
|
|
174
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
175
|
+
meta_type_name =
|
|
176
|
+
hash.key?('meta_type_name') ? hash['meta_type_name'] : SKIP
|
|
177
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
178
|
+
position = hash.key?('position') ? hash['position'] : SKIP
|
|
179
|
+
projected_to_complete_at =
|
|
180
|
+
hash.key?('projected_to_complete_at') ? hash['projected_to_complete_at'] : SKIP
|
|
181
|
+
targeted_to_complete_at =
|
|
182
|
+
hash.key?('targeted_to_complete_at') ? hash['targeted_to_complete_at'] : SKIP
|
|
183
|
+
track_type_name =
|
|
184
|
+
hash.key?('track_type_name') ? hash['track_type_name'] : SKIP
|
|
185
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
186
|
+
|
|
187
|
+
# Create a new hash for additional properties, removing known properties.
|
|
188
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
189
|
+
|
|
190
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
191
|
+
new_hash, proc { |value| value }
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
# Create object from extracted values.
|
|
195
|
+
GoalResponse.new(account_guid: account_guid,
|
|
196
|
+
amount: amount,
|
|
197
|
+
completed_at: completed_at,
|
|
198
|
+
current_amount: current_amount,
|
|
199
|
+
goal_type_name: goal_type_name,
|
|
200
|
+
guid: guid,
|
|
201
|
+
has_been_spent: has_been_spent,
|
|
202
|
+
is_complete: is_complete,
|
|
203
|
+
metadata: metadata,
|
|
204
|
+
meta_type_name: meta_type_name,
|
|
205
|
+
name: name,
|
|
206
|
+
position: position,
|
|
207
|
+
projected_to_complete_at: projected_to_complete_at,
|
|
208
|
+
targeted_to_complete_at: targeted_to_complete_at,
|
|
209
|
+
track_type_name: track_type_name,
|
|
210
|
+
user_guid: user_guid,
|
|
211
|
+
additional_properties: additional_properties)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Provides a human-readable string representation of the object.
|
|
215
|
+
def to_s
|
|
216
|
+
class_name = self.class.name.split('::').last
|
|
217
|
+
"<#{class_name} account_guid: #{@account_guid}, amount: #{@amount}, completed_at:"\
|
|
218
|
+
" #{@completed_at}, current_amount: #{@current_amount}, goal_type_name: #{@goal_type_name},"\
|
|
219
|
+
" guid: #{@guid}, has_been_spent: #{@has_been_spent}, is_complete: #{@is_complete},"\
|
|
220
|
+
" metadata: #{@metadata}, meta_type_name: #{@meta_type_name}, name: #{@name}, position:"\
|
|
221
|
+
" #{@position}, projected_to_complete_at: #{@projected_to_complete_at},"\
|
|
222
|
+
" targeted_to_complete_at: #{@targeted_to_complete_at}, track_type_name:"\
|
|
223
|
+
" #{@track_type_name}, user_guid: #{@user_guid}, additional_properties:"\
|
|
224
|
+
" #{@additional_properties}>"
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
228
|
+
def inspect
|
|
229
|
+
class_name = self.class.name.split('::').last
|
|
230
|
+
"<#{class_name} account_guid: #{@account_guid.inspect}, amount: #{@amount.inspect},"\
|
|
231
|
+
" completed_at: #{@completed_at.inspect}, current_amount: #{@current_amount.inspect},"\
|
|
232
|
+
" goal_type_name: #{@goal_type_name.inspect}, guid: #{@guid.inspect}, has_been_spent:"\
|
|
233
|
+
" #{@has_been_spent.inspect}, is_complete: #{@is_complete.inspect}, metadata:"\
|
|
234
|
+
" #{@metadata.inspect}, meta_type_name: #{@meta_type_name.inspect}, name: #{@name.inspect},"\
|
|
235
|
+
" position: #{@position.inspect}, projected_to_complete_at:"\
|
|
236
|
+
" #{@projected_to_complete_at.inspect}, targeted_to_complete_at:"\
|
|
237
|
+
" #{@targeted_to_complete_at.inspect}, track_type_name: #{@track_type_name.inspect},"\
|
|
238
|
+
" user_guid: #{@user_guid.inspect}, additional_properties: #{@additional_properties}>"
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
# GoalResponseBody Model.
|
|
8
|
+
class GoalResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [GoalResponse]
|
|
14
|
+
attr_accessor :goal
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['goal'] = 'goal'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
goal
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(goal: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@goal = goal unless goal == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
goal = GoalResponse.from_hash(hash['goal']) if hash['goal']
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
GoalResponseBody.new(goal: goal,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} goal: #{@goal}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} goal: #{@goal.inspect}, additional_properties: #{@additional_properties}>"
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
# The type of goal. Can be `SAVE_AMOUNT` or `PAYOFF`.
|
|
8
|
+
class GoalTypeName
|
|
9
|
+
GOAL_TYPE_NAME = [
|
|
10
|
+
# TODO: Write general description for SAVE_AMOUNT
|
|
11
|
+
SAVE_AMOUNT = 'SAVE_AMOUNT'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for PAYOFF
|
|
14
|
+
PAYOFF = 'PAYOFF'.freeze
|
|
15
|
+
].freeze
|
|
16
|
+
|
|
17
|
+
def self.validate(value)
|
|
18
|
+
return false if value.nil?
|
|
19
|
+
|
|
20
|
+
GOAL_TYPE_NAME.include?(value)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from_value(value, default_value = SAVE_AMOUNT)
|
|
24
|
+
return default_value if value.nil?
|
|
25
|
+
|
|
26
|
+
str = value.to_s.strip
|
|
27
|
+
|
|
28
|
+
case str.downcase
|
|
29
|
+
when 'save_amount' then SAVE_AMOUNT
|
|
30
|
+
when 'payoff' then PAYOFF
|
|
31
|
+
else
|
|
32
|
+
default_value
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|