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,338 @@
|
|
|
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
|
+
# InsightResponse Model.
|
|
8
|
+
class InsightResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The date and time when the insight was activated, represented in ISO 8601
|
|
13
|
+
# format with a timestamp.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :active_at
|
|
16
|
+
|
|
17
|
+
# The unique identifier for the client associated with the insight. Defined
|
|
18
|
+
# by MX.
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :client_guid
|
|
21
|
+
|
|
22
|
+
# The date and time the insight was created, represented in ISO 8601 format
|
|
23
|
+
# with a timestamp.
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :created_at
|
|
26
|
+
|
|
27
|
+
# The date and time when a call-to-action was clicked, represented in ISO
|
|
28
|
+
# 8601 format with a timestamp.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :cta_clicked_at
|
|
31
|
+
|
|
32
|
+
# The human-readable information being delivered to the end user.
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :description
|
|
35
|
+
|
|
36
|
+
# The unique identifier for the `insight`. Defined by MX.
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :guid
|
|
39
|
+
|
|
40
|
+
# Indicates whether there are accounts associated with the insight.
|
|
41
|
+
# @return [TrueClass | FalseClass]
|
|
42
|
+
attr_accessor :has_associated_accounts
|
|
43
|
+
|
|
44
|
+
# Indicates whether there are categories associated with the insight.
|
|
45
|
+
# @return [TrueClass | FalseClass]
|
|
46
|
+
attr_accessor :has_associated_categories
|
|
47
|
+
|
|
48
|
+
# Indicates whether there are merchants associated with the insight.
|
|
49
|
+
# @return [TrueClass | FalseClass]
|
|
50
|
+
attr_accessor :has_associated_merchants
|
|
51
|
+
|
|
52
|
+
# Indicates whether there are scheduled payments associated with the
|
|
53
|
+
# insight.
|
|
54
|
+
# @return [TrueClass | FalseClass]
|
|
55
|
+
attr_accessor :has_associated_scheduled_payments
|
|
56
|
+
|
|
57
|
+
# Indicates whether there are transactions associated with the insight.
|
|
58
|
+
# @return [TrueClass | FalseClass]
|
|
59
|
+
attr_accessor :has_associated_transactions
|
|
60
|
+
|
|
61
|
+
# Indicates whether the insight has been shown to the end user.
|
|
62
|
+
# @return [TrueClass | FalseClass]
|
|
63
|
+
attr_accessor :has_been_displayed
|
|
64
|
+
|
|
65
|
+
# Indicates whether the insight has been dismissed by the user.
|
|
66
|
+
# @return [TrueClass | FalseClass]
|
|
67
|
+
attr_accessor :is_dismissed
|
|
68
|
+
|
|
69
|
+
# A short call-to-action text for prompting user engagement.
|
|
70
|
+
# @return [String]
|
|
71
|
+
attr_accessor :micro_call_to_action
|
|
72
|
+
|
|
73
|
+
# A shorter version (300 characters or less) of `description`. This is the
|
|
74
|
+
# insight's description we display to the end user in the Micro Widget
|
|
75
|
+
# @return [String]
|
|
76
|
+
attr_accessor :micro_description
|
|
77
|
+
|
|
78
|
+
# A shorter version (60 characters or less) of `title`. This is the
|
|
79
|
+
# insight's title we display to the end user in the Micro Widget. For
|
|
80
|
+
# example, `Price Increase` or `Paycheck Deposit`.
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :micro_title
|
|
83
|
+
|
|
84
|
+
# A short label for the type of `insight` being delivered, for example,
|
|
85
|
+
# `SubscriptionPriceIncrease` or `MonthlyCategoryTotal`.
|
|
86
|
+
# @return [String]
|
|
87
|
+
attr_accessor :template
|
|
88
|
+
|
|
89
|
+
# The title for the specific `insight`, for example, `Price Increase` or
|
|
90
|
+
# `Paycheck Deposit`.
|
|
91
|
+
# @return [String]
|
|
92
|
+
attr_accessor :title
|
|
93
|
+
|
|
94
|
+
# The date and time the resource was last updated in ISO 8601 format with a
|
|
95
|
+
# timestamp.
|
|
96
|
+
# For categories, this field will always be `null` when `is_default` is
|
|
97
|
+
# `true`.
|
|
98
|
+
# @return [String]
|
|
99
|
+
attr_accessor :updated_at
|
|
100
|
+
|
|
101
|
+
# The unique identifier for the user. Defined by MX.
|
|
102
|
+
# @return [String]
|
|
103
|
+
attr_accessor :user_guid
|
|
104
|
+
|
|
105
|
+
# The unique partner-defined identifier for the user.
|
|
106
|
+
# @return [String]
|
|
107
|
+
attr_accessor :user_id
|
|
108
|
+
|
|
109
|
+
# A mapping from model property names to API property names.
|
|
110
|
+
def self.names
|
|
111
|
+
@_hash = {} if @_hash.nil?
|
|
112
|
+
@_hash['active_at'] = 'active_at'
|
|
113
|
+
@_hash['client_guid'] = 'client_guid'
|
|
114
|
+
@_hash['created_at'] = 'created_at'
|
|
115
|
+
@_hash['cta_clicked_at'] = 'cta_clicked_at'
|
|
116
|
+
@_hash['description'] = 'description'
|
|
117
|
+
@_hash['guid'] = 'guid'
|
|
118
|
+
@_hash['has_associated_accounts'] = 'has_associated_accounts'
|
|
119
|
+
@_hash['has_associated_categories'] = 'has_associated_categories'
|
|
120
|
+
@_hash['has_associated_merchants'] = 'has_associated_merchants'
|
|
121
|
+
@_hash['has_associated_scheduled_payments'] =
|
|
122
|
+
'has_associated_scheduled_payments'
|
|
123
|
+
@_hash['has_associated_transactions'] = 'has_associated_transactions'
|
|
124
|
+
@_hash['has_been_displayed'] = 'has_been_displayed'
|
|
125
|
+
@_hash['is_dismissed'] = 'is_dismissed'
|
|
126
|
+
@_hash['micro_call_to_action'] = 'micro_call_to_action'
|
|
127
|
+
@_hash['micro_description'] = 'micro_description'
|
|
128
|
+
@_hash['micro_title'] = 'micro_title'
|
|
129
|
+
@_hash['template'] = 'template'
|
|
130
|
+
@_hash['title'] = 'title'
|
|
131
|
+
@_hash['updated_at'] = 'updated_at'
|
|
132
|
+
@_hash['user_guid'] = 'user_guid'
|
|
133
|
+
@_hash['user_id'] = 'user_id'
|
|
134
|
+
@_hash
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# An array for optional fields
|
|
138
|
+
def self.optionals
|
|
139
|
+
%w[
|
|
140
|
+
active_at
|
|
141
|
+
client_guid
|
|
142
|
+
created_at
|
|
143
|
+
cta_clicked_at
|
|
144
|
+
description
|
|
145
|
+
guid
|
|
146
|
+
has_associated_accounts
|
|
147
|
+
has_associated_categories
|
|
148
|
+
has_associated_merchants
|
|
149
|
+
has_associated_scheduled_payments
|
|
150
|
+
has_associated_transactions
|
|
151
|
+
has_been_displayed
|
|
152
|
+
is_dismissed
|
|
153
|
+
micro_call_to_action
|
|
154
|
+
micro_description
|
|
155
|
+
micro_title
|
|
156
|
+
template
|
|
157
|
+
title
|
|
158
|
+
updated_at
|
|
159
|
+
user_guid
|
|
160
|
+
user_id
|
|
161
|
+
]
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# An array for nullable fields
|
|
165
|
+
def self.nullables
|
|
166
|
+
%w[
|
|
167
|
+
active_at
|
|
168
|
+
created_at
|
|
169
|
+
cta_clicked_at
|
|
170
|
+
description
|
|
171
|
+
guid
|
|
172
|
+
has_associated_accounts
|
|
173
|
+
has_associated_categories
|
|
174
|
+
has_associated_merchants
|
|
175
|
+
has_associated_scheduled_payments
|
|
176
|
+
has_associated_transactions
|
|
177
|
+
has_been_displayed
|
|
178
|
+
is_dismissed
|
|
179
|
+
micro_call_to_action
|
|
180
|
+
micro_description
|
|
181
|
+
micro_title
|
|
182
|
+
template
|
|
183
|
+
title
|
|
184
|
+
updated_at
|
|
185
|
+
]
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
def initialize(active_at: SKIP, client_guid: SKIP, created_at: SKIP,
|
|
189
|
+
cta_clicked_at: SKIP, description: SKIP, guid: SKIP,
|
|
190
|
+
has_associated_accounts: SKIP,
|
|
191
|
+
has_associated_categories: SKIP,
|
|
192
|
+
has_associated_merchants: SKIP,
|
|
193
|
+
has_associated_scheduled_payments: SKIP,
|
|
194
|
+
has_associated_transactions: SKIP, has_been_displayed: SKIP,
|
|
195
|
+
is_dismissed: SKIP, micro_call_to_action: SKIP,
|
|
196
|
+
micro_description: SKIP, micro_title: SKIP, template: SKIP,
|
|
197
|
+
title: SKIP, updated_at: SKIP, user_guid: SKIP,
|
|
198
|
+
user_id: SKIP, additional_properties: nil)
|
|
199
|
+
# Add additional model properties to the instance
|
|
200
|
+
additional_properties = {} if additional_properties.nil?
|
|
201
|
+
|
|
202
|
+
@active_at = active_at unless active_at == SKIP
|
|
203
|
+
@client_guid = client_guid unless client_guid == SKIP
|
|
204
|
+
@created_at = created_at unless created_at == SKIP
|
|
205
|
+
@cta_clicked_at = cta_clicked_at unless cta_clicked_at == SKIP
|
|
206
|
+
@description = description unless description == SKIP
|
|
207
|
+
@guid = guid unless guid == SKIP
|
|
208
|
+
@has_associated_accounts = has_associated_accounts unless has_associated_accounts == SKIP
|
|
209
|
+
unless has_associated_categories == SKIP
|
|
210
|
+
@has_associated_categories =
|
|
211
|
+
has_associated_categories
|
|
212
|
+
end
|
|
213
|
+
@has_associated_merchants = has_associated_merchants unless has_associated_merchants == SKIP
|
|
214
|
+
unless has_associated_scheduled_payments == SKIP
|
|
215
|
+
@has_associated_scheduled_payments =
|
|
216
|
+
has_associated_scheduled_payments
|
|
217
|
+
end
|
|
218
|
+
unless has_associated_transactions == SKIP
|
|
219
|
+
@has_associated_transactions =
|
|
220
|
+
has_associated_transactions
|
|
221
|
+
end
|
|
222
|
+
@has_been_displayed = has_been_displayed unless has_been_displayed == SKIP
|
|
223
|
+
@is_dismissed = is_dismissed unless is_dismissed == SKIP
|
|
224
|
+
@micro_call_to_action = micro_call_to_action unless micro_call_to_action == SKIP
|
|
225
|
+
@micro_description = micro_description unless micro_description == SKIP
|
|
226
|
+
@micro_title = micro_title unless micro_title == SKIP
|
|
227
|
+
@template = template unless template == SKIP
|
|
228
|
+
@title = title unless title == SKIP
|
|
229
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
230
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
231
|
+
@user_id = user_id unless user_id == SKIP
|
|
232
|
+
@additional_properties = additional_properties
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Creates an instance of the object from a hash.
|
|
236
|
+
def self.from_hash(hash)
|
|
237
|
+
return nil unless hash
|
|
238
|
+
|
|
239
|
+
# Extract variables from the hash.
|
|
240
|
+
active_at = hash.key?('active_at') ? hash['active_at'] : SKIP
|
|
241
|
+
client_guid = hash.key?('client_guid') ? hash['client_guid'] : SKIP
|
|
242
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
243
|
+
cta_clicked_at =
|
|
244
|
+
hash.key?('cta_clicked_at') ? hash['cta_clicked_at'] : SKIP
|
|
245
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
246
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
247
|
+
has_associated_accounts =
|
|
248
|
+
hash.key?('has_associated_accounts') ? hash['has_associated_accounts'] : SKIP
|
|
249
|
+
has_associated_categories =
|
|
250
|
+
hash.key?('has_associated_categories') ? hash['has_associated_categories'] : SKIP
|
|
251
|
+
has_associated_merchants =
|
|
252
|
+
hash.key?('has_associated_merchants') ? hash['has_associated_merchants'] : SKIP
|
|
253
|
+
has_associated_scheduled_payments =
|
|
254
|
+
hash.key?('has_associated_scheduled_payments') ? hash['has_associated_scheduled_payments'] : SKIP
|
|
255
|
+
has_associated_transactions =
|
|
256
|
+
hash.key?('has_associated_transactions') ? hash['has_associated_transactions'] : SKIP
|
|
257
|
+
has_been_displayed =
|
|
258
|
+
hash.key?('has_been_displayed') ? hash['has_been_displayed'] : SKIP
|
|
259
|
+
is_dismissed = hash.key?('is_dismissed') ? hash['is_dismissed'] : SKIP
|
|
260
|
+
micro_call_to_action =
|
|
261
|
+
hash.key?('micro_call_to_action') ? hash['micro_call_to_action'] : SKIP
|
|
262
|
+
micro_description =
|
|
263
|
+
hash.key?('micro_description') ? hash['micro_description'] : SKIP
|
|
264
|
+
micro_title = hash.key?('micro_title') ? hash['micro_title'] : SKIP
|
|
265
|
+
template = hash.key?('template') ? hash['template'] : SKIP
|
|
266
|
+
title = hash.key?('title') ? hash['title'] : SKIP
|
|
267
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
268
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
269
|
+
user_id = hash.key?('user_id') ? hash['user_id'] : SKIP
|
|
270
|
+
|
|
271
|
+
# Create a new hash for additional properties, removing known properties.
|
|
272
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
273
|
+
|
|
274
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
275
|
+
new_hash, proc { |value| value }
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
# Create object from extracted values.
|
|
279
|
+
InsightResponse.new(active_at: active_at,
|
|
280
|
+
client_guid: client_guid,
|
|
281
|
+
created_at: created_at,
|
|
282
|
+
cta_clicked_at: cta_clicked_at,
|
|
283
|
+
description: description,
|
|
284
|
+
guid: guid,
|
|
285
|
+
has_associated_accounts: has_associated_accounts,
|
|
286
|
+
has_associated_categories: has_associated_categories,
|
|
287
|
+
has_associated_merchants: has_associated_merchants,
|
|
288
|
+
has_associated_scheduled_payments: has_associated_scheduled_payments,
|
|
289
|
+
has_associated_transactions: has_associated_transactions,
|
|
290
|
+
has_been_displayed: has_been_displayed,
|
|
291
|
+
is_dismissed: is_dismissed,
|
|
292
|
+
micro_call_to_action: micro_call_to_action,
|
|
293
|
+
micro_description: micro_description,
|
|
294
|
+
micro_title: micro_title,
|
|
295
|
+
template: template,
|
|
296
|
+
title: title,
|
|
297
|
+
updated_at: updated_at,
|
|
298
|
+
user_guid: user_guid,
|
|
299
|
+
user_id: user_id,
|
|
300
|
+
additional_properties: additional_properties)
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# Provides a human-readable string representation of the object.
|
|
304
|
+
def to_s
|
|
305
|
+
class_name = self.class.name.split('::').last
|
|
306
|
+
"<#{class_name} active_at: #{@active_at}, client_guid: #{@client_guid}, created_at:"\
|
|
307
|
+
" #{@created_at}, cta_clicked_at: #{@cta_clicked_at}, description: #{@description}, guid:"\
|
|
308
|
+
" #{@guid}, has_associated_accounts: #{@has_associated_accounts}, has_associated_categories:"\
|
|
309
|
+
" #{@has_associated_categories}, has_associated_merchants: #{@has_associated_merchants},"\
|
|
310
|
+
" has_associated_scheduled_payments: #{@has_associated_scheduled_payments},"\
|
|
311
|
+
" has_associated_transactions: #{@has_associated_transactions}, has_been_displayed:"\
|
|
312
|
+
" #{@has_been_displayed}, is_dismissed: #{@is_dismissed}, micro_call_to_action:"\
|
|
313
|
+
" #{@micro_call_to_action}, micro_description: #{@micro_description}, micro_title:"\
|
|
314
|
+
" #{@micro_title}, template: #{@template}, title: #{@title}, updated_at: #{@updated_at},"\
|
|
315
|
+
" user_guid: #{@user_guid}, user_id: #{@user_id}, additional_properties:"\
|
|
316
|
+
" #{@additional_properties}>"
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
320
|
+
def inspect
|
|
321
|
+
class_name = self.class.name.split('::').last
|
|
322
|
+
"<#{class_name} active_at: #{@active_at.inspect}, client_guid: #{@client_guid.inspect},"\
|
|
323
|
+
" created_at: #{@created_at.inspect}, cta_clicked_at: #{@cta_clicked_at.inspect},"\
|
|
324
|
+
" description: #{@description.inspect}, guid: #{@guid.inspect}, has_associated_accounts:"\
|
|
325
|
+
" #{@has_associated_accounts.inspect}, has_associated_categories:"\
|
|
326
|
+
" #{@has_associated_categories.inspect}, has_associated_merchants:"\
|
|
327
|
+
" #{@has_associated_merchants.inspect}, has_associated_scheduled_payments:"\
|
|
328
|
+
" #{@has_associated_scheduled_payments.inspect}, has_associated_transactions:"\
|
|
329
|
+
" #{@has_associated_transactions.inspect}, has_been_displayed:"\
|
|
330
|
+
" #{@has_been_displayed.inspect}, is_dismissed: #{@is_dismissed.inspect},"\
|
|
331
|
+
" micro_call_to_action: #{@micro_call_to_action.inspect}, micro_description:"\
|
|
332
|
+
" #{@micro_description.inspect}, micro_title: #{@micro_title.inspect}, template:"\
|
|
333
|
+
" #{@template.inspect}, title: #{@title.inspect}, updated_at: #{@updated_at.inspect},"\
|
|
334
|
+
" user_guid: #{@user_guid.inspect}, user_id: #{@user_id.inspect}, additional_properties:"\
|
|
335
|
+
" #{@additional_properties}>"
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# InsightResponseBody Model.
|
|
8
|
+
class InsightResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [InsightResponse]
|
|
14
|
+
attr_accessor :insight
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['insight'] = 'insight'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
insight
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(insight: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@insight = insight unless insight == 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
|
+
insight = InsightResponse.from_hash(hash['insight']) if hash['insight']
|
|
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
|
+
InsightResponseBody.new(insight: insight,
|
|
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} insight: #{@insight}, 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} insight: #{@insight.inspect}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
# InsightUpdateRequest Model.
|
|
8
|
+
class InsightUpdateRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Indicates whether the insight has been shown to the end user.
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :has_been_displayed
|
|
15
|
+
|
|
16
|
+
# Indicates whether the insight has been dismissed by the user.
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :is_dismissed
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['has_been_displayed'] = 'has_been_displayed'
|
|
24
|
+
@_hash['is_dismissed'] = 'is_dismissed'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
has_been_displayed
|
|
32
|
+
is_dismissed
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(has_been_displayed: SKIP, is_dismissed: SKIP,
|
|
42
|
+
additional_properties: nil)
|
|
43
|
+
# Add additional model properties to the instance
|
|
44
|
+
additional_properties = {} if additional_properties.nil?
|
|
45
|
+
|
|
46
|
+
@has_been_displayed = has_been_displayed unless has_been_displayed == SKIP
|
|
47
|
+
@is_dismissed = is_dismissed unless is_dismissed == SKIP
|
|
48
|
+
@additional_properties = additional_properties
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Creates an instance of the object from a hash.
|
|
52
|
+
def self.from_hash(hash)
|
|
53
|
+
return nil unless hash
|
|
54
|
+
|
|
55
|
+
# Extract variables from the hash.
|
|
56
|
+
has_been_displayed =
|
|
57
|
+
hash.key?('has_been_displayed') ? hash['has_been_displayed'] : SKIP
|
|
58
|
+
is_dismissed = hash.key?('is_dismissed') ? hash['is_dismissed'] : SKIP
|
|
59
|
+
|
|
60
|
+
# Create a new hash for additional properties, removing known properties.
|
|
61
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
62
|
+
|
|
63
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
64
|
+
new_hash, proc { |value| value }
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# Create object from extracted values.
|
|
68
|
+
InsightUpdateRequest.new(has_been_displayed: has_been_displayed,
|
|
69
|
+
is_dismissed: is_dismissed,
|
|
70
|
+
additional_properties: additional_properties)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Provides a human-readable string representation of the object.
|
|
74
|
+
def to_s
|
|
75
|
+
class_name = self.class.name.split('::').last
|
|
76
|
+
"<#{class_name} has_been_displayed: #{@has_been_displayed}, is_dismissed: #{@is_dismissed},"\
|
|
77
|
+
" additional_properties: #{@additional_properties}>"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
81
|
+
def inspect
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} has_been_displayed: #{@has_been_displayed.inspect}, is_dismissed:"\
|
|
84
|
+
" #{@is_dismissed.inspect}, additional_properties: #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# InsightUpdateRequestBody Model.
|
|
8
|
+
class InsightUpdateRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [InsightUpdateRequest]
|
|
14
|
+
attr_accessor :insight
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['insight'] = 'insight'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
insight
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(insight: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@insight = insight unless insight == 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
|
+
insight = InsightUpdateRequest.from_hash(hash['insight']) if hash['insight']
|
|
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
|
+
InsightUpdateRequestBody.new(insight: insight,
|
|
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} insight: #{@insight}, 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} insight: #{@insight.inspect}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# InsightsResponseBody Model.
|
|
8
|
+
class InsightsResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[InsightResponse]]
|
|
14
|
+
attr_accessor :insights
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [PaginationResponse]
|
|
18
|
+
attr_accessor :pagination
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['insights'] = 'insights'
|
|
24
|
+
@_hash['pagination'] = 'pagination'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
insights
|
|
32
|
+
pagination
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(insights: SKIP, pagination: SKIP, additional_properties: nil)
|
|
42
|
+
# Add additional model properties to the instance
|
|
43
|
+
additional_properties = {} if additional_properties.nil?
|
|
44
|
+
|
|
45
|
+
@insights = insights unless insights == SKIP
|
|
46
|
+
@pagination = pagination unless pagination == SKIP
|
|
47
|
+
@additional_properties = additional_properties
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Creates an instance of the object from a hash.
|
|
51
|
+
def self.from_hash(hash)
|
|
52
|
+
return nil unless hash
|
|
53
|
+
|
|
54
|
+
# Extract variables from the hash.
|
|
55
|
+
# Parameter is an array, so we need to iterate through it
|
|
56
|
+
insights = nil
|
|
57
|
+
unless hash['insights'].nil?
|
|
58
|
+
insights = []
|
|
59
|
+
hash['insights'].each do |structure|
|
|
60
|
+
insights << (InsightResponse.from_hash(structure) if structure)
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
insights = SKIP unless hash.key?('insights')
|
|
65
|
+
pagination = PaginationResponse.from_hash(hash['pagination']) if hash['pagination']
|
|
66
|
+
|
|
67
|
+
# Create a new hash for additional properties, removing known properties.
|
|
68
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
69
|
+
|
|
70
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
71
|
+
new_hash, proc { |value| value }
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
# Create object from extracted values.
|
|
75
|
+
InsightsResponseBody.new(insights: insights,
|
|
76
|
+
pagination: pagination,
|
|
77
|
+
additional_properties: additional_properties)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a human-readable string representation of the object.
|
|
81
|
+
def to_s
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} insights: #{@insights}, pagination: #{@pagination}, additional_properties:"\
|
|
84
|
+
" #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
88
|
+
def inspect
|
|
89
|
+
class_name = self.class.name.split('::').last
|
|
90
|
+
"<#{class_name} insights: #{@insights.inspect}, pagination: #{@pagination.inspect},"\
|
|
91
|
+
" additional_properties: #{@additional_properties}>"
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|