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,157 @@
|
|
|
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
|
+
# MonthlyCashFlowResponse Model.
|
|
8
|
+
class MonthlyCashFlowResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Unique identifier for the monthly cash flow profile. Defined by MX.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :guid
|
|
15
|
+
|
|
16
|
+
# Unique identifier for the user the monthly cash flow profile is attached
|
|
17
|
+
# to. Defined by MX.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :user_guid
|
|
20
|
+
|
|
21
|
+
# The amount of the budgeted income for the user.
|
|
22
|
+
# @return [Float]
|
|
23
|
+
attr_accessor :budgeted_income
|
|
24
|
+
|
|
25
|
+
# The amount of the budgeted expenses for the user.
|
|
26
|
+
# @return [Float]
|
|
27
|
+
attr_accessor :budgeted_expenses
|
|
28
|
+
|
|
29
|
+
# The monthly dollar amount allocated for goals.
|
|
30
|
+
# @return [Float]
|
|
31
|
+
attr_accessor :goals_contribution
|
|
32
|
+
|
|
33
|
+
# The estimated monthly dollar amount allocated for goals calculated from
|
|
34
|
+
# income and budgets.
|
|
35
|
+
# @return [Float]
|
|
36
|
+
attr_accessor :estimated_goals_contribution
|
|
37
|
+
|
|
38
|
+
# Indicates if the user uses estimated goals contribution.
|
|
39
|
+
# @return [TrueClass | FalseClass]
|
|
40
|
+
attr_accessor :uses_estimated_goals_contribution
|
|
41
|
+
|
|
42
|
+
# A mapping from model property names to API property names.
|
|
43
|
+
def self.names
|
|
44
|
+
@_hash = {} if @_hash.nil?
|
|
45
|
+
@_hash['guid'] = 'guid'
|
|
46
|
+
@_hash['user_guid'] = 'user_guid'
|
|
47
|
+
@_hash['budgeted_income'] = 'budgeted_income'
|
|
48
|
+
@_hash['budgeted_expenses'] = 'budgeted_expenses'
|
|
49
|
+
@_hash['goals_contribution'] = 'goals_contribution'
|
|
50
|
+
@_hash['estimated_goals_contribution'] = 'estimated_goals_contribution'
|
|
51
|
+
@_hash['uses_estimated_goals_contribution'] =
|
|
52
|
+
'uses_estimated_goals_contribution'
|
|
53
|
+
@_hash
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# An array for optional fields
|
|
57
|
+
def self.optionals
|
|
58
|
+
%w[
|
|
59
|
+
guid
|
|
60
|
+
user_guid
|
|
61
|
+
budgeted_income
|
|
62
|
+
budgeted_expenses
|
|
63
|
+
goals_contribution
|
|
64
|
+
estimated_goals_contribution
|
|
65
|
+
uses_estimated_goals_contribution
|
|
66
|
+
]
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# An array for nullable fields
|
|
70
|
+
def self.nullables
|
|
71
|
+
%w[
|
|
72
|
+
estimated_goals_contribution
|
|
73
|
+
]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def initialize(guid: SKIP, user_guid: SKIP, budgeted_income: SKIP,
|
|
77
|
+
budgeted_expenses: SKIP, goals_contribution: SKIP,
|
|
78
|
+
estimated_goals_contribution: SKIP,
|
|
79
|
+
uses_estimated_goals_contribution: SKIP,
|
|
80
|
+
additional_properties: nil)
|
|
81
|
+
# Add additional model properties to the instance
|
|
82
|
+
additional_properties = {} if additional_properties.nil?
|
|
83
|
+
|
|
84
|
+
@guid = guid unless guid == SKIP
|
|
85
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
86
|
+
@budgeted_income = budgeted_income unless budgeted_income == SKIP
|
|
87
|
+
@budgeted_expenses = budgeted_expenses unless budgeted_expenses == SKIP
|
|
88
|
+
@goals_contribution = goals_contribution unless goals_contribution == SKIP
|
|
89
|
+
unless estimated_goals_contribution == SKIP
|
|
90
|
+
@estimated_goals_contribution =
|
|
91
|
+
estimated_goals_contribution
|
|
92
|
+
end
|
|
93
|
+
unless uses_estimated_goals_contribution == SKIP
|
|
94
|
+
@uses_estimated_goals_contribution =
|
|
95
|
+
uses_estimated_goals_contribution
|
|
96
|
+
end
|
|
97
|
+
@additional_properties = additional_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Creates an instance of the object from a hash.
|
|
101
|
+
def self.from_hash(hash)
|
|
102
|
+
return nil unless hash
|
|
103
|
+
|
|
104
|
+
# Extract variables from the hash.
|
|
105
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
106
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
107
|
+
budgeted_income =
|
|
108
|
+
hash.key?('budgeted_income') ? hash['budgeted_income'] : SKIP
|
|
109
|
+
budgeted_expenses =
|
|
110
|
+
hash.key?('budgeted_expenses') ? hash['budgeted_expenses'] : SKIP
|
|
111
|
+
goals_contribution =
|
|
112
|
+
hash.key?('goals_contribution') ? hash['goals_contribution'] : SKIP
|
|
113
|
+
estimated_goals_contribution =
|
|
114
|
+
hash.key?('estimated_goals_contribution') ? hash['estimated_goals_contribution'] : SKIP
|
|
115
|
+
uses_estimated_goals_contribution =
|
|
116
|
+
hash.key?('uses_estimated_goals_contribution') ? hash['uses_estimated_goals_contribution'] : SKIP
|
|
117
|
+
|
|
118
|
+
# Create a new hash for additional properties, removing known properties.
|
|
119
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
120
|
+
|
|
121
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
122
|
+
new_hash, proc { |value| value }
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
# Create object from extracted values.
|
|
126
|
+
MonthlyCashFlowResponse.new(guid: guid,
|
|
127
|
+
user_guid: user_guid,
|
|
128
|
+
budgeted_income: budgeted_income,
|
|
129
|
+
budgeted_expenses: budgeted_expenses,
|
|
130
|
+
goals_contribution: goals_contribution,
|
|
131
|
+
estimated_goals_contribution: estimated_goals_contribution,
|
|
132
|
+
uses_estimated_goals_contribution: uses_estimated_goals_contribution,
|
|
133
|
+
additional_properties: additional_properties)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Provides a human-readable string representation of the object.
|
|
137
|
+
def to_s
|
|
138
|
+
class_name = self.class.name.split('::').last
|
|
139
|
+
"<#{class_name} guid: #{@guid}, user_guid: #{@user_guid}, budgeted_income:"\
|
|
140
|
+
" #{@budgeted_income}, budgeted_expenses: #{@budgeted_expenses}, goals_contribution:"\
|
|
141
|
+
" #{@goals_contribution}, estimated_goals_contribution: #{@estimated_goals_contribution},"\
|
|
142
|
+
" uses_estimated_goals_contribution: #{@uses_estimated_goals_contribution},"\
|
|
143
|
+
" additional_properties: #{@additional_properties}>"
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
147
|
+
def inspect
|
|
148
|
+
class_name = self.class.name.split('::').last
|
|
149
|
+
"<#{class_name} guid: #{@guid.inspect}, user_guid: #{@user_guid.inspect}, budgeted_income:"\
|
|
150
|
+
" #{@budgeted_income.inspect}, budgeted_expenses: #{@budgeted_expenses.inspect},"\
|
|
151
|
+
" goals_contribution: #{@goals_contribution.inspect}, estimated_goals_contribution:"\
|
|
152
|
+
" #{@estimated_goals_contribution.inspect}, uses_estimated_goals_contribution:"\
|
|
153
|
+
" #{@uses_estimated_goals_contribution.inspect}, additional_properties:"\
|
|
154
|
+
" #{@additional_properties}>"
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
# MonthlyCashFlowResponseBody Model.
|
|
8
|
+
class MonthlyCashFlowResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [MonthlyCashFlowResponse]
|
|
14
|
+
attr_accessor :monthly_cash_flow_profile
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['monthly_cash_flow_profile'] = 'monthly_cash_flow_profile'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
monthly_cash_flow_profile
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(monthly_cash_flow_profile: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
unless monthly_cash_flow_profile == SKIP
|
|
40
|
+
@monthly_cash_flow_profile =
|
|
41
|
+
monthly_cash_flow_profile
|
|
42
|
+
end
|
|
43
|
+
@additional_properties = additional_properties
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Creates an instance of the object from a hash.
|
|
47
|
+
def self.from_hash(hash)
|
|
48
|
+
return nil unless hash
|
|
49
|
+
|
|
50
|
+
# Extract variables from the hash.
|
|
51
|
+
if hash['monthly_cash_flow_profile']
|
|
52
|
+
monthly_cash_flow_profile = MonthlyCashFlowResponse.from_hash(hash['monthly_cash_flow_profile'])
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Create a new hash for additional properties, removing known properties.
|
|
56
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
57
|
+
|
|
58
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
59
|
+
new_hash, proc { |value| value }
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
# Create object from extracted values.
|
|
63
|
+
MonthlyCashFlowResponseBody.new(monthly_cash_flow_profile: monthly_cash_flow_profile,
|
|
64
|
+
additional_properties: additional_properties)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Provides a human-readable string representation of the object.
|
|
68
|
+
def to_s
|
|
69
|
+
class_name = self.class.name.split('::').last
|
|
70
|
+
"<#{class_name} monthly_cash_flow_profile: #{@monthly_cash_flow_profile},"\
|
|
71
|
+
" additional_properties: #{@additional_properties}>"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
75
|
+
def inspect
|
|
76
|
+
class_name = self.class.name.split('::').last
|
|
77
|
+
"<#{class_name} monthly_cash_flow_profile: #{@monthly_cash_flow_profile.inspect},"\
|
|
78
|
+
" additional_properties: #{@additional_properties}>"
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
# NotificationRequest Model.
|
|
8
|
+
class NotificationRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The main body of the notification text sent to the user.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :content
|
|
15
|
+
|
|
16
|
+
# The notification summary text. Usually the same text used for “in-app” or
|
|
17
|
+
# SMS notifications.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :subject
|
|
20
|
+
|
|
21
|
+
# A mapping from model property names to API property names.
|
|
22
|
+
def self.names
|
|
23
|
+
@_hash = {} if @_hash.nil?
|
|
24
|
+
@_hash['content'] = 'content'
|
|
25
|
+
@_hash['subject'] = 'subject'
|
|
26
|
+
@_hash
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# An array for optional fields
|
|
30
|
+
def self.optionals
|
|
31
|
+
[]
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# An array for nullable fields
|
|
35
|
+
def self.nullables
|
|
36
|
+
[]
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def initialize(content:, subject:, additional_properties: nil)
|
|
40
|
+
# Add additional model properties to the instance
|
|
41
|
+
additional_properties = {} if additional_properties.nil?
|
|
42
|
+
|
|
43
|
+
@content = content
|
|
44
|
+
@subject = subject
|
|
45
|
+
@additional_properties = additional_properties
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Creates an instance of the object from a hash.
|
|
49
|
+
def self.from_hash(hash)
|
|
50
|
+
return nil unless hash
|
|
51
|
+
|
|
52
|
+
# Extract variables from the hash.
|
|
53
|
+
content = hash.key?('content') ? hash['content'] : nil
|
|
54
|
+
subject = hash.key?('subject') ? hash['subject'] : nil
|
|
55
|
+
|
|
56
|
+
# Create a new hash for additional properties, removing known properties.
|
|
57
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
58
|
+
|
|
59
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
60
|
+
new_hash, proc { |value| value }
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
# Create object from extracted values.
|
|
64
|
+
NotificationRequest.new(content: content,
|
|
65
|
+
subject: subject,
|
|
66
|
+
additional_properties: additional_properties)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Provides a human-readable string representation of the object.
|
|
70
|
+
def to_s
|
|
71
|
+
class_name = self.class.name.split('::').last
|
|
72
|
+
"<#{class_name} content: #{@content}, subject: #{@subject}, additional_properties:"\
|
|
73
|
+
" #{@additional_properties}>"
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
77
|
+
def inspect
|
|
78
|
+
class_name = self.class.name.split('::').last
|
|
79
|
+
"<#{class_name} content: #{@content.inspect}, subject: #{@subject.inspect},"\
|
|
80
|
+
" additional_properties: #{@additional_properties}>"
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
# NotificationRequestBody Model.
|
|
8
|
+
class NotificationRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [NotificationRequest]
|
|
14
|
+
attr_accessor :notification
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['notification'] = 'notification'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
notification
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(notification: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@notification = notification unless notification == 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
|
+
notification = NotificationRequest.from_hash(hash['notification']) if hash['notification']
|
|
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
|
+
NotificationRequestBody.new(notification: notification,
|
|
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} notification: #{@notification}, additional_properties:"\
|
|
66
|
+
" #{@additional_properties}>"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
70
|
+
def inspect
|
|
71
|
+
class_name = self.class.name.split('::').last
|
|
72
|
+
"<#{class_name} notification: #{@notification.inspect}, additional_properties:"\
|
|
73
|
+
" #{@additional_properties}>"
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,204 @@
|
|
|
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
|
+
# NotificationResponse Model.
|
|
8
|
+
class NotificationResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The way the notification will be delivered to the user.
|
|
13
|
+
# All notifications created through the API will be of notification type
|
|
14
|
+
# `API_NOTIFICATION`, channel `PUSH`, and will not be associated to an
|
|
15
|
+
# entity. No other channels are supported.
|
|
16
|
+
# @return [Channel]
|
|
17
|
+
attr_accessor :channel
|
|
18
|
+
|
|
19
|
+
# The main body of the notification text sent to the user.
|
|
20
|
+
# @return [String]
|
|
21
|
+
attr_accessor :content
|
|
22
|
+
|
|
23
|
+
# The date and time the notification was created, represented in ISO 8601
|
|
24
|
+
# format with a timestamp.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :created_at
|
|
27
|
+
|
|
28
|
+
# The unique identifier for objects that directly trigger a notification.
|
|
29
|
+
# For example, `TRANSACTION_FEE_CHARGE` and `TRANSACTION_EXPENSE_LARGE`
|
|
30
|
+
# notification types will have a transaction guid in this field.
|
|
31
|
+
# @return [Object]
|
|
32
|
+
attr_accessor :deep_link_guid
|
|
33
|
+
|
|
34
|
+
# Date and time the notification was delivered, represented in ISO 8601
|
|
35
|
+
# format with timestamp.
|
|
36
|
+
# @return [Object]
|
|
37
|
+
attr_accessor :delivered_at
|
|
38
|
+
|
|
39
|
+
# The unique identifier of the entity that the notification is attached to.
|
|
40
|
+
# @return [Object]
|
|
41
|
+
attr_accessor :entity_guid
|
|
42
|
+
|
|
43
|
+
# Unique identifier for the notification. Defined by MX.
|
|
44
|
+
# @return [Object]
|
|
45
|
+
attr_accessor :guid
|
|
46
|
+
|
|
47
|
+
# Indicates if the notification has been delivered to the user.
|
|
48
|
+
# @return [Object]
|
|
49
|
+
attr_accessor :has_been_delivered
|
|
50
|
+
|
|
51
|
+
# Indicates if the notification has been viewed by the user.
|
|
52
|
+
# @return [Object]
|
|
53
|
+
attr_accessor :has_been_viewed
|
|
54
|
+
|
|
55
|
+
# The type of notification. See [Notification
|
|
56
|
+
# Types](/api-reference/platform-api/reference/notifications-fields#notifica
|
|
57
|
+
# tion-types).
|
|
58
|
+
# @return [Object]
|
|
59
|
+
attr_accessor :notification_type
|
|
60
|
+
|
|
61
|
+
# The notification summary text. Usually the same text used for “in-app” or
|
|
62
|
+
# SMS notifications.
|
|
63
|
+
# @return [Object]
|
|
64
|
+
attr_accessor :subject
|
|
65
|
+
|
|
66
|
+
# The notification summary text. Usually the same text used for “in-app” or
|
|
67
|
+
# SMS notifications.
|
|
68
|
+
# @return [Object]
|
|
69
|
+
attr_accessor :threshold
|
|
70
|
+
|
|
71
|
+
# A mapping from model property names to API property names.
|
|
72
|
+
def self.names
|
|
73
|
+
@_hash = {} if @_hash.nil?
|
|
74
|
+
@_hash['channel'] = 'channel'
|
|
75
|
+
@_hash['content'] = 'content'
|
|
76
|
+
@_hash['created_at'] = 'created_at'
|
|
77
|
+
@_hash['deep_link_guid'] = 'deep_link_guid'
|
|
78
|
+
@_hash['delivered_at'] = 'delivered_at'
|
|
79
|
+
@_hash['entity_guid'] = 'entity_guid'
|
|
80
|
+
@_hash['guid'] = 'guid'
|
|
81
|
+
@_hash['has_been_delivered'] = 'has_been_delivered'
|
|
82
|
+
@_hash['has_been_viewed'] = 'has_been_viewed'
|
|
83
|
+
@_hash['notification_type'] = 'notification_type'
|
|
84
|
+
@_hash['subject'] = 'subject'
|
|
85
|
+
@_hash['threshold'] = 'threshold'
|
|
86
|
+
@_hash
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# An array for optional fields
|
|
90
|
+
def self.optionals
|
|
91
|
+
%w[
|
|
92
|
+
channel
|
|
93
|
+
content
|
|
94
|
+
created_at
|
|
95
|
+
deep_link_guid
|
|
96
|
+
delivered_at
|
|
97
|
+
entity_guid
|
|
98
|
+
guid
|
|
99
|
+
has_been_delivered
|
|
100
|
+
has_been_viewed
|
|
101
|
+
notification_type
|
|
102
|
+
subject
|
|
103
|
+
threshold
|
|
104
|
+
]
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# An array for nullable fields
|
|
108
|
+
def self.nullables
|
|
109
|
+
%w[
|
|
110
|
+
channel
|
|
111
|
+
]
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def initialize(channel: SKIP, content: SKIP, created_at: SKIP,
|
|
115
|
+
deep_link_guid: SKIP, delivered_at: SKIP, entity_guid: SKIP,
|
|
116
|
+
guid: SKIP, has_been_delivered: SKIP, has_been_viewed: SKIP,
|
|
117
|
+
notification_type: SKIP, subject: SKIP, threshold: SKIP,
|
|
118
|
+
additional_properties: nil)
|
|
119
|
+
# Add additional model properties to the instance
|
|
120
|
+
additional_properties = {} if additional_properties.nil?
|
|
121
|
+
|
|
122
|
+
@channel = channel unless channel == SKIP
|
|
123
|
+
@content = content unless content == SKIP
|
|
124
|
+
@created_at = created_at unless created_at == SKIP
|
|
125
|
+
@deep_link_guid = deep_link_guid unless deep_link_guid == SKIP
|
|
126
|
+
@delivered_at = delivered_at unless delivered_at == SKIP
|
|
127
|
+
@entity_guid = entity_guid unless entity_guid == SKIP
|
|
128
|
+
@guid = guid unless guid == SKIP
|
|
129
|
+
@has_been_delivered = has_been_delivered unless has_been_delivered == SKIP
|
|
130
|
+
@has_been_viewed = has_been_viewed unless has_been_viewed == SKIP
|
|
131
|
+
@notification_type = notification_type unless notification_type == SKIP
|
|
132
|
+
@subject = subject unless subject == SKIP
|
|
133
|
+
@threshold = threshold unless threshold == SKIP
|
|
134
|
+
@additional_properties = additional_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Creates an instance of the object from a hash.
|
|
138
|
+
def self.from_hash(hash)
|
|
139
|
+
return nil unless hash
|
|
140
|
+
|
|
141
|
+
# Extract variables from the hash.
|
|
142
|
+
channel = hash.key?('channel') ? hash['channel'] : SKIP
|
|
143
|
+
content = hash.key?('content') ? hash['content'] : SKIP
|
|
144
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
145
|
+
deep_link_guid =
|
|
146
|
+
hash.key?('deep_link_guid') ? hash['deep_link_guid'] : SKIP
|
|
147
|
+
delivered_at = hash.key?('delivered_at') ? hash['delivered_at'] : SKIP
|
|
148
|
+
entity_guid = hash.key?('entity_guid') ? hash['entity_guid'] : SKIP
|
|
149
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
150
|
+
has_been_delivered =
|
|
151
|
+
hash.key?('has_been_delivered') ? hash['has_been_delivered'] : SKIP
|
|
152
|
+
has_been_viewed =
|
|
153
|
+
hash.key?('has_been_viewed') ? hash['has_been_viewed'] : SKIP
|
|
154
|
+
notification_type =
|
|
155
|
+
hash.key?('notification_type') ? hash['notification_type'] : SKIP
|
|
156
|
+
subject = hash.key?('subject') ? hash['subject'] : SKIP
|
|
157
|
+
threshold = hash.key?('threshold') ? hash['threshold'] : SKIP
|
|
158
|
+
|
|
159
|
+
# Create a new hash for additional properties, removing known properties.
|
|
160
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
161
|
+
|
|
162
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
163
|
+
new_hash, proc { |value| value }
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
# Create object from extracted values.
|
|
167
|
+
NotificationResponse.new(channel: channel,
|
|
168
|
+
content: content,
|
|
169
|
+
created_at: created_at,
|
|
170
|
+
deep_link_guid: deep_link_guid,
|
|
171
|
+
delivered_at: delivered_at,
|
|
172
|
+
entity_guid: entity_guid,
|
|
173
|
+
guid: guid,
|
|
174
|
+
has_been_delivered: has_been_delivered,
|
|
175
|
+
has_been_viewed: has_been_viewed,
|
|
176
|
+
notification_type: notification_type,
|
|
177
|
+
subject: subject,
|
|
178
|
+
threshold: threshold,
|
|
179
|
+
additional_properties: additional_properties)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Provides a human-readable string representation of the object.
|
|
183
|
+
def to_s
|
|
184
|
+
class_name = self.class.name.split('::').last
|
|
185
|
+
"<#{class_name} channel: #{@channel}, content: #{@content}, created_at: #{@created_at},"\
|
|
186
|
+
" deep_link_guid: #{@deep_link_guid}, delivered_at: #{@delivered_at}, entity_guid:"\
|
|
187
|
+
" #{@entity_guid}, guid: #{@guid}, has_been_delivered: #{@has_been_delivered},"\
|
|
188
|
+
" has_been_viewed: #{@has_been_viewed}, notification_type: #{@notification_type}, subject:"\
|
|
189
|
+
" #{@subject}, threshold: #{@threshold}, additional_properties: #{@additional_properties}>"
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
193
|
+
def inspect
|
|
194
|
+
class_name = self.class.name.split('::').last
|
|
195
|
+
"<#{class_name} channel: #{@channel.inspect}, content: #{@content.inspect}, created_at:"\
|
|
196
|
+
" #{@created_at.inspect}, deep_link_guid: #{@deep_link_guid.inspect}, delivered_at:"\
|
|
197
|
+
" #{@delivered_at.inspect}, entity_guid: #{@entity_guid.inspect}, guid: #{@guid.inspect},"\
|
|
198
|
+
" has_been_delivered: #{@has_been_delivered.inspect}, has_been_viewed:"\
|
|
199
|
+
" #{@has_been_viewed.inspect}, notification_type: #{@notification_type.inspect}, subject:"\
|
|
200
|
+
" #{@subject.inspect}, threshold: #{@threshold.inspect}, additional_properties:"\
|
|
201
|
+
" #{@additional_properties}>"
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
# NotificationResponseBody Model.
|
|
8
|
+
class NotificationResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [NotificationResponse]
|
|
14
|
+
attr_accessor :notification
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['notification'] = 'notification'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
notification
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(notification: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@notification = notification unless notification == 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
|
+
notification = NotificationResponse.from_hash(hash['notification']) if hash['notification']
|
|
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
|
+
NotificationResponseBody.new(notification: notification,
|
|
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} notification: #{@notification}, additional_properties:"\
|
|
66
|
+
" #{@additional_properties}>"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
70
|
+
def inspect
|
|
71
|
+
class_name = self.class.name.split('::').last
|
|
72
|
+
"<#{class_name} notification: #{@notification.inspect}, additional_properties:"\
|
|
73
|
+
" #{@additional_properties}>"
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|