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,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
|
+
# UsersWidgetUrlsRequest Model.
|
|
8
|
+
class UsersWidgetUrlsRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [WidgetRequest]
|
|
14
|
+
attr_accessor :widget_url
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['widget_url'] = 'widget_url'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
widget_url
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(widget_url: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@widget_url = widget_url unless widget_url == 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
|
+
widget_url = WidgetRequest.from_hash(hash['widget_url']) if hash['widget_url']
|
|
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
|
+
UsersWidgetUrlsRequest.new(widget_url: widget_url,
|
|
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} widget_url: #{@widget_url}, 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} widget_url: #{@widget_url.inspect}, additional_properties:"\
|
|
73
|
+
" #{@additional_properties}>"
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
# VcResponse Model.
|
|
8
|
+
class VcResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The MX-issued verifiable credential.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :verifiable_credential
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['verifiable_credential'] = 'verifiableCredential'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
verifiable_credential
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(verifiable_credential: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@verifiable_credential = verifiable_credential unless verifiable_credential == 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
|
+
verifiable_credential =
|
|
49
|
+
hash.key?('verifiableCredential') ? hash['verifiableCredential'] : SKIP
|
|
50
|
+
|
|
51
|
+
# Create a new hash for additional properties, removing known properties.
|
|
52
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
53
|
+
|
|
54
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
55
|
+
new_hash, proc { |value| value }
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
# Create object from extracted values.
|
|
59
|
+
VcResponse.new(verifiable_credential: verifiable_credential,
|
|
60
|
+
additional_properties: additional_properties)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Provides a human-readable string representation of the object.
|
|
64
|
+
def to_s
|
|
65
|
+
class_name = self.class.name.split('::').last
|
|
66
|
+
"<#{class_name} verifiable_credential: #{@verifiable_credential}, additional_properties:"\
|
|
67
|
+
" #{@additional_properties}>"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
71
|
+
def inspect
|
|
72
|
+
class_name = self.class.name.split('::').last
|
|
73
|
+
"<#{class_name} verifiable_credential: #{@verifiable_credential.inspect},"\
|
|
74
|
+
" additional_properties: #{@additional_properties}>"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,466 @@
|
|
|
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
|
+
# WidgetRequest Model.
|
|
8
|
+
class WidgetRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Only use this option if the `widget_type` is set to `connect_widget`.
|
|
13
|
+
# This determines the redirect destination at the end of OAuth when used
|
|
14
|
+
# with `is_mobile_webview: true` or `oauth_referral_source: 'APP'`.
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :client_redirect_url
|
|
17
|
+
|
|
18
|
+
# This option can be passed to any `widget_type` but will not affect [legacy
|
|
19
|
+
# PFM widgets](/products/experience/pfm/legacy-widget-overviews/).
|
|
20
|
+
# Load the widget with the specified `color_scheme`; options are `light`,
|
|
21
|
+
# `dark`, and `browser` (respects user's browser setting). Defaults to
|
|
22
|
+
# `light`.
|
|
23
|
+
# @return [ColorScheme]
|
|
24
|
+
attr_accessor :color_scheme
|
|
25
|
+
|
|
26
|
+
# Only use this option if the `widget_type` is set to `connect_widget`.
|
|
27
|
+
# Load the widget into the credential view for the specified institution.
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :current_institution_code
|
|
30
|
+
|
|
31
|
+
# Only use this option if the `widget_type` is set to `connect_widget`.
|
|
32
|
+
# Load the widget into the credential view for the specified institution.
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :current_institution_guid
|
|
35
|
+
|
|
36
|
+
# Only use this option if the `widget_type` is set to `connect_widget`.
|
|
37
|
+
# Load the widget into a specific member that contains an error or requires
|
|
38
|
+
# multifactor authentication. The widget will determine the best view to
|
|
39
|
+
# load based on the member's current state.
|
|
40
|
+
# This option takes precedence over `current_institution_code` and
|
|
41
|
+
# `current_institution_guid`.
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :current_member_guid
|
|
44
|
+
|
|
45
|
+
# Only use this option if the `widget_type` is set to `connect_widget`. This
|
|
46
|
+
# loads the Connect Widget to whichever step the microdeposit process is
|
|
47
|
+
# currently in, which may be the verify amounts step, an error state, and so
|
|
48
|
+
# on. This field is required if attempting to load a specific microdeposit
|
|
49
|
+
# for end users to enter amounts.
|
|
50
|
+
# @return [String]
|
|
51
|
+
attr_accessor :current_microdeposit_guid
|
|
52
|
+
|
|
53
|
+
# Contains a products array that specifies the products you want to
|
|
54
|
+
# aggregate.
|
|
55
|
+
# @return [DataRequest]
|
|
56
|
+
attr_accessor :data_request
|
|
57
|
+
|
|
58
|
+
# Enables widget-specific behavior.
|
|
59
|
+
# @return [DeepLinkParams]
|
|
60
|
+
attr_accessor :deep_link_params
|
|
61
|
+
|
|
62
|
+
# Only use this option if the `widget_type` is set to `connect_widget`. This
|
|
63
|
+
# determines whether background aggregation is enabled or disabled for the
|
|
64
|
+
# `member` created by the Connect Widget. Defaults to `false` in
|
|
65
|
+
# `aggregation` mode and `true` in `verification` mode. A global default for
|
|
66
|
+
# all members can be set by reaching out to MX.
|
|
67
|
+
# @return [TrueClass | FalseClass]
|
|
68
|
+
attr_accessor :disable_background_agg
|
|
69
|
+
|
|
70
|
+
# Only use this option if the `widget_type` is set to `connect_widget`.
|
|
71
|
+
# When set to `true`, the institution search feature in the Connect Widget
|
|
72
|
+
# will be disabled and end users will not be able to navigate to it.
|
|
73
|
+
# Defaults to `false`.
|
|
74
|
+
# This option must be used with `current_institution_code`,
|
|
75
|
+
# `current_institution_guid`, or `current_member_guid`.
|
|
76
|
+
# @return [TrueClass | FalseClass]
|
|
77
|
+
attr_accessor :disable_institution_search
|
|
78
|
+
|
|
79
|
+
# Only use this option if the `widget_type` is set to `connect_widget`. This
|
|
80
|
+
# indicates whether OAuth app2app behavior is enabled for institutions that
|
|
81
|
+
# support it. Defaults to `true`. When set to `false`, the widget will
|
|
82
|
+
# **not** direct the end user to the institution's mobile application. This
|
|
83
|
+
# setting is not persistent. This setting currently only affects Chase
|
|
84
|
+
# institutions.
|
|
85
|
+
# @return [TrueClass | FalseClass]
|
|
86
|
+
attr_accessor :enable_app2app
|
|
87
|
+
|
|
88
|
+
# Use `data_request.products` instead to set your products.
|
|
89
|
+
# Only use this option if the `widget_type` is set to `connect_widget`. This
|
|
90
|
+
# determines whether account owner identification data (AOI, previously
|
|
91
|
+
# called "identity verification") aggregates after the data that's specified
|
|
92
|
+
# by the `mode` finishes aggregating. Defaults to `false`. This can be set
|
|
93
|
+
# in either `aggregation` or `verification` mode. Setting this to `true`
|
|
94
|
+
# will produce the following behaviors:
|
|
95
|
+
# - The widget will only search for and display institutions that support
|
|
96
|
+
# the data the `mode` (`aggregation` or `verification`) is aggregating and
|
|
97
|
+
# AOI.
|
|
98
|
+
# - The member connected postMessage event will not be sent until both
|
|
99
|
+
# aggregations are complete.
|
|
100
|
+
# @return [TrueClass | FalseClass]
|
|
101
|
+
attr_accessor :include_identity
|
|
102
|
+
|
|
103
|
+
# Use `data_request.products` instead to set your products.
|
|
104
|
+
# Only use this option if the `widget_type` is set to `connect_widget`. This
|
|
105
|
+
# determines whether transaction data are retrieved. Defaults to `true` in
|
|
106
|
+
# `aggregation` mode and `false` in `verification` mode. This can be set in
|
|
107
|
+
# either aggregation or verification mode. This option does not affect
|
|
108
|
+
# future foreground or background aggregations.
|
|
109
|
+
# @return [TrueClass | FalseClass]
|
|
110
|
+
attr_accessor :include_transactions
|
|
111
|
+
|
|
112
|
+
# Only use this option if the `widget_type` is set to `pulse_widget`. Set
|
|
113
|
+
# this to the insight guid you want to appear at the top of the insights
|
|
114
|
+
# feed.
|
|
115
|
+
# @return [String]
|
|
116
|
+
attr_accessor :insight_guid
|
|
117
|
+
|
|
118
|
+
# An array of strings that filters institutions in the widget by the
|
|
119
|
+
# specified country code. Acceptable codes include `US`, `CA`, and `MX`
|
|
120
|
+
# (Mexico).
|
|
121
|
+
# @return [Array[String]]
|
|
122
|
+
attr_accessor :iso_country_code
|
|
123
|
+
|
|
124
|
+
# This option is for every `widget_type`. This configures the widget to
|
|
125
|
+
# render in a mobile WebView. JavaScript event postMessages are replaced
|
|
126
|
+
# with URL updates.
|
|
127
|
+
# @return [TrueClass | FalseClass]
|
|
128
|
+
attr_accessor :is_mobile_webview
|
|
129
|
+
|
|
130
|
+
# Only use this option if the `widget_type` is set to
|
|
131
|
+
# `micro_pulse_carousel_widget`. Set this to a unique value for each
|
|
132
|
+
# instance of the Micro Widget. This lets us collect unique data for each
|
|
133
|
+
# instance of the widget.
|
|
134
|
+
# @return [String]
|
|
135
|
+
attr_accessor :microwidget_instance_id
|
|
136
|
+
|
|
137
|
+
# Sets the language of the widget.
|
|
138
|
+
# If you're requesting the Connect or Connections Widgets, you must use the
|
|
139
|
+
# Accept-Language header.
|
|
140
|
+
# @return [String]
|
|
141
|
+
attr_accessor :locale
|
|
142
|
+
|
|
143
|
+
# Use `data_request.products` instead to set your products.
|
|
144
|
+
# Only use this option if the `widget_type` is set to `connect_widget`.
|
|
145
|
+
# `mode` is the most important option for the Connect Widget. This
|
|
146
|
+
# determines what kind of process Connect will run, which affects how you
|
|
147
|
+
# should set many other options. Defaults to `aggregation`. `aggregation`
|
|
148
|
+
# mode retrieves account and transaction data; in other words, this runs a
|
|
149
|
+
# standard aggregation. `verification` mode retrieves account numbers and
|
|
150
|
+
# routing/transit numbers; in other words, it runs an Instant Account
|
|
151
|
+
# Verification (IAV). By default, verification mode does not retrieve
|
|
152
|
+
# transaction data; this default can be modified with secondary options. By
|
|
153
|
+
# default, background aggregation is disabled for all members created in
|
|
154
|
+
# verification mode; this default can be modified with secondary options.
|
|
155
|
+
# @return [String]
|
|
156
|
+
attr_accessor :mode
|
|
157
|
+
|
|
158
|
+
# Only use this option if the `widget_type` is set to `connect_widget`. This
|
|
159
|
+
# determines how MX will respond to the result of an OAuth flow. When set to
|
|
160
|
+
# `APP`, MX will redirect to the URI specified in the
|
|
161
|
+
# `ui_message_webview_url_scheme`. When set to `BROWSER`, MX will send a
|
|
162
|
+
# postMessage but not redirect. If `is_mobile_webview` is `true`, this
|
|
163
|
+
# defaults to `APP`. If false, it defaults to `BROWSER`.
|
|
164
|
+
# @return [String]
|
|
165
|
+
attr_accessor :oauth_referral_source
|
|
166
|
+
|
|
167
|
+
# Contains fields to customize the appearance of a widget.
|
|
168
|
+
# @return [Style]
|
|
169
|
+
attr_accessor :style
|
|
170
|
+
|
|
171
|
+
# This option is for all `widget_type`s. This determines which version of
|
|
172
|
+
# postMessage events are triggered. Defaults to 4. All new implementations
|
|
173
|
+
# must use version 4. Prior versions are deprecated.
|
|
174
|
+
# @return [Integer]
|
|
175
|
+
attr_accessor :ui_message_version
|
|
176
|
+
|
|
177
|
+
# Only use this option if the `widget_type` is set to `connect_widget`. This
|
|
178
|
+
# is a client-defined scheme used in OAuth redirects in WebViews; also used
|
|
179
|
+
# in URL updates when these replace postMessages in WebViews. Defaults to
|
|
180
|
+
# `mx`.
|
|
181
|
+
# @return [String]
|
|
182
|
+
attr_accessor :ui_message_webview_url_scheme
|
|
183
|
+
|
|
184
|
+
# Only use this option if the `widget_type` is set to `connect_widget`. Load
|
|
185
|
+
# the widget into a view that allows them to update the current member.
|
|
186
|
+
# Optionally used with `current_member_guid`. This option should be used
|
|
187
|
+
# sparingly. The best practice is to use `current_member_guid` and let the
|
|
188
|
+
# widget resolve the issue.
|
|
189
|
+
# @return [TrueClass | FalseClass]
|
|
190
|
+
attr_accessor :update_credentials
|
|
191
|
+
|
|
192
|
+
# The use case that will be associated with any members created through the
|
|
193
|
+
# widget. Valid values are `PFM` and/or `MONEY_MOVEMENT`. This is
|
|
194
|
+
# **required** if you've met with MX and have opted in to using this field.
|
|
195
|
+
# @return [Array[UseCase]]
|
|
196
|
+
attr_accessor :use_cases
|
|
197
|
+
|
|
198
|
+
# This determines which widget URL you'll receive.
|
|
199
|
+
# See [Widget Types](/api-reference/platform-api/reference/widgets) for a
|
|
200
|
+
# list of potential values. Additional request parameters may only apply to
|
|
201
|
+
# some widget types.
|
|
202
|
+
# @return [String]
|
|
203
|
+
attr_accessor :widget_type
|
|
204
|
+
|
|
205
|
+
# A mapping from model property names to API property names.
|
|
206
|
+
def self.names
|
|
207
|
+
@_hash = {} if @_hash.nil?
|
|
208
|
+
@_hash['client_redirect_url'] = 'client_redirect_url'
|
|
209
|
+
@_hash['color_scheme'] = 'color_scheme'
|
|
210
|
+
@_hash['current_institution_code'] = 'current_institution_code'
|
|
211
|
+
@_hash['current_institution_guid'] = 'current_institution_guid'
|
|
212
|
+
@_hash['current_member_guid'] = 'current_member_guid'
|
|
213
|
+
@_hash['current_microdeposit_guid'] = 'current_microdeposit_guid'
|
|
214
|
+
@_hash['data_request'] = 'data_request'
|
|
215
|
+
@_hash['deep_link_params'] = 'deep_link_params'
|
|
216
|
+
@_hash['disable_background_agg'] = 'disable_background_agg'
|
|
217
|
+
@_hash['disable_institution_search'] = 'disable_institution_search'
|
|
218
|
+
@_hash['enable_app2app'] = 'enable_app2app'
|
|
219
|
+
@_hash['include_identity'] = 'include_identity'
|
|
220
|
+
@_hash['include_transactions'] = 'include_transactions'
|
|
221
|
+
@_hash['insight_guid'] = 'insight_guid'
|
|
222
|
+
@_hash['iso_country_code'] = 'iso_country_code'
|
|
223
|
+
@_hash['is_mobile_webview'] = 'is_mobile_webview'
|
|
224
|
+
@_hash['microwidget_instance_id'] = 'microwidget_instance_id'
|
|
225
|
+
@_hash['locale'] = 'locale'
|
|
226
|
+
@_hash['mode'] = 'mode'
|
|
227
|
+
@_hash['oauth_referral_source'] = 'oauth_referral_source'
|
|
228
|
+
@_hash['style'] = 'style'
|
|
229
|
+
@_hash['ui_message_version'] = 'ui_message_version'
|
|
230
|
+
@_hash['ui_message_webview_url_scheme'] =
|
|
231
|
+
'ui_message_webview_url_scheme'
|
|
232
|
+
@_hash['update_credentials'] = 'update_credentials'
|
|
233
|
+
@_hash['use_cases'] = 'use_cases'
|
|
234
|
+
@_hash['widget_type'] = 'widget_type'
|
|
235
|
+
@_hash
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# An array for optional fields
|
|
239
|
+
def self.optionals
|
|
240
|
+
%w[
|
|
241
|
+
client_redirect_url
|
|
242
|
+
color_scheme
|
|
243
|
+
current_institution_code
|
|
244
|
+
current_institution_guid
|
|
245
|
+
current_member_guid
|
|
246
|
+
current_microdeposit_guid
|
|
247
|
+
data_request
|
|
248
|
+
deep_link_params
|
|
249
|
+
disable_background_agg
|
|
250
|
+
disable_institution_search
|
|
251
|
+
enable_app2app
|
|
252
|
+
include_identity
|
|
253
|
+
include_transactions
|
|
254
|
+
insight_guid
|
|
255
|
+
iso_country_code
|
|
256
|
+
is_mobile_webview
|
|
257
|
+
microwidget_instance_id
|
|
258
|
+
locale
|
|
259
|
+
mode
|
|
260
|
+
oauth_referral_source
|
|
261
|
+
style
|
|
262
|
+
ui_message_version
|
|
263
|
+
ui_message_webview_url_scheme
|
|
264
|
+
update_credentials
|
|
265
|
+
use_cases
|
|
266
|
+
]
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# An array for nullable fields
|
|
270
|
+
def self.nullables
|
|
271
|
+
%w[
|
|
272
|
+
color_scheme
|
|
273
|
+
current_institution_code
|
|
274
|
+
current_member_guid
|
|
275
|
+
disable_institution_search
|
|
276
|
+
insight_guid
|
|
277
|
+
microwidget_instance_id
|
|
278
|
+
]
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
def initialize(widget_type:, client_redirect_url: SKIP, color_scheme: SKIP,
|
|
282
|
+
current_institution_code: SKIP,
|
|
283
|
+
current_institution_guid: SKIP, current_member_guid: SKIP,
|
|
284
|
+
current_microdeposit_guid: SKIP, data_request: SKIP,
|
|
285
|
+
deep_link_params: SKIP, disable_background_agg: SKIP,
|
|
286
|
+
disable_institution_search: SKIP, enable_app2app: SKIP,
|
|
287
|
+
include_identity: SKIP, include_transactions: SKIP,
|
|
288
|
+
insight_guid: SKIP, iso_country_code: SKIP,
|
|
289
|
+
is_mobile_webview: SKIP, microwidget_instance_id: SKIP,
|
|
290
|
+
locale: SKIP, mode: SKIP, oauth_referral_source: SKIP,
|
|
291
|
+
style: SKIP, ui_message_version: SKIP,
|
|
292
|
+
ui_message_webview_url_scheme: SKIP,
|
|
293
|
+
update_credentials: SKIP, use_cases: SKIP,
|
|
294
|
+
additional_properties: nil)
|
|
295
|
+
# Add additional model properties to the instance
|
|
296
|
+
additional_properties = {} if additional_properties.nil?
|
|
297
|
+
|
|
298
|
+
@client_redirect_url = client_redirect_url unless client_redirect_url == SKIP
|
|
299
|
+
@color_scheme = color_scheme unless color_scheme == SKIP
|
|
300
|
+
@current_institution_code = current_institution_code unless current_institution_code == SKIP
|
|
301
|
+
@current_institution_guid = current_institution_guid unless current_institution_guid == SKIP
|
|
302
|
+
@current_member_guid = current_member_guid unless current_member_guid == SKIP
|
|
303
|
+
unless current_microdeposit_guid == SKIP
|
|
304
|
+
@current_microdeposit_guid =
|
|
305
|
+
current_microdeposit_guid
|
|
306
|
+
end
|
|
307
|
+
@data_request = data_request unless data_request == SKIP
|
|
308
|
+
@deep_link_params = deep_link_params unless deep_link_params == SKIP
|
|
309
|
+
@disable_background_agg = disable_background_agg unless disable_background_agg == SKIP
|
|
310
|
+
unless disable_institution_search == SKIP
|
|
311
|
+
@disable_institution_search =
|
|
312
|
+
disable_institution_search
|
|
313
|
+
end
|
|
314
|
+
@enable_app2app = enable_app2app unless enable_app2app == SKIP
|
|
315
|
+
@include_identity = include_identity unless include_identity == SKIP
|
|
316
|
+
@include_transactions = include_transactions unless include_transactions == SKIP
|
|
317
|
+
@insight_guid = insight_guid unless insight_guid == SKIP
|
|
318
|
+
@iso_country_code = iso_country_code unless iso_country_code == SKIP
|
|
319
|
+
@is_mobile_webview = is_mobile_webview unless is_mobile_webview == SKIP
|
|
320
|
+
@microwidget_instance_id = microwidget_instance_id unless microwidget_instance_id == SKIP
|
|
321
|
+
@locale = locale unless locale == SKIP
|
|
322
|
+
@mode = mode unless mode == SKIP
|
|
323
|
+
@oauth_referral_source = oauth_referral_source unless oauth_referral_source == SKIP
|
|
324
|
+
@style = style unless style == SKIP
|
|
325
|
+
@ui_message_version = ui_message_version unless ui_message_version == SKIP
|
|
326
|
+
unless ui_message_webview_url_scheme == SKIP
|
|
327
|
+
@ui_message_webview_url_scheme =
|
|
328
|
+
ui_message_webview_url_scheme
|
|
329
|
+
end
|
|
330
|
+
@update_credentials = update_credentials unless update_credentials == SKIP
|
|
331
|
+
@use_cases = use_cases unless use_cases == SKIP
|
|
332
|
+
@widget_type = widget_type
|
|
333
|
+
@additional_properties = additional_properties
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Creates an instance of the object from a hash.
|
|
337
|
+
def self.from_hash(hash)
|
|
338
|
+
return nil unless hash
|
|
339
|
+
|
|
340
|
+
# Extract variables from the hash.
|
|
341
|
+
widget_type = hash.key?('widget_type') ? hash['widget_type'] : nil
|
|
342
|
+
client_redirect_url =
|
|
343
|
+
hash.key?('client_redirect_url') ? hash['client_redirect_url'] : SKIP
|
|
344
|
+
color_scheme = hash.key?('color_scheme') ? hash['color_scheme'] : SKIP
|
|
345
|
+
current_institution_code =
|
|
346
|
+
hash.key?('current_institution_code') ? hash['current_institution_code'] : SKIP
|
|
347
|
+
current_institution_guid =
|
|
348
|
+
hash.key?('current_institution_guid') ? hash['current_institution_guid'] : SKIP
|
|
349
|
+
current_member_guid =
|
|
350
|
+
hash.key?('current_member_guid') ? hash['current_member_guid'] : SKIP
|
|
351
|
+
current_microdeposit_guid =
|
|
352
|
+
hash.key?('current_microdeposit_guid') ? hash['current_microdeposit_guid'] : SKIP
|
|
353
|
+
data_request = DataRequest.from_hash(hash['data_request']) if hash['data_request']
|
|
354
|
+
deep_link_params = DeepLinkParams.from_hash(hash['deep_link_params']) if
|
|
355
|
+
hash['deep_link_params']
|
|
356
|
+
disable_background_agg =
|
|
357
|
+
hash.key?('disable_background_agg') ? hash['disable_background_agg'] : SKIP
|
|
358
|
+
disable_institution_search =
|
|
359
|
+
hash.key?('disable_institution_search') ? hash['disable_institution_search'] : SKIP
|
|
360
|
+
enable_app2app =
|
|
361
|
+
hash.key?('enable_app2app') ? hash['enable_app2app'] : SKIP
|
|
362
|
+
include_identity =
|
|
363
|
+
hash.key?('include_identity') ? hash['include_identity'] : SKIP
|
|
364
|
+
include_transactions =
|
|
365
|
+
hash.key?('include_transactions') ? hash['include_transactions'] : SKIP
|
|
366
|
+
insight_guid = hash.key?('insight_guid') ? hash['insight_guid'] : SKIP
|
|
367
|
+
iso_country_code =
|
|
368
|
+
hash.key?('iso_country_code') ? hash['iso_country_code'] : SKIP
|
|
369
|
+
is_mobile_webview =
|
|
370
|
+
hash.key?('is_mobile_webview') ? hash['is_mobile_webview'] : SKIP
|
|
371
|
+
microwidget_instance_id =
|
|
372
|
+
hash.key?('microwidget_instance_id') ? hash['microwidget_instance_id'] : SKIP
|
|
373
|
+
locale = hash.key?('locale') ? hash['locale'] : SKIP
|
|
374
|
+
mode = hash.key?('mode') ? hash['mode'] : SKIP
|
|
375
|
+
oauth_referral_source =
|
|
376
|
+
hash.key?('oauth_referral_source') ? hash['oauth_referral_source'] : SKIP
|
|
377
|
+
style = Style.from_hash(hash['style']) if hash['style']
|
|
378
|
+
ui_message_version =
|
|
379
|
+
hash.key?('ui_message_version') ? hash['ui_message_version'] : SKIP
|
|
380
|
+
ui_message_webview_url_scheme =
|
|
381
|
+
hash.key?('ui_message_webview_url_scheme') ? hash['ui_message_webview_url_scheme'] : SKIP
|
|
382
|
+
update_credentials =
|
|
383
|
+
hash.key?('update_credentials') ? hash['update_credentials'] : SKIP
|
|
384
|
+
use_cases = hash.key?('use_cases') ? hash['use_cases'] : SKIP
|
|
385
|
+
|
|
386
|
+
# Create a new hash for additional properties, removing known properties.
|
|
387
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
388
|
+
|
|
389
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
390
|
+
new_hash, proc { |value| value }
|
|
391
|
+
)
|
|
392
|
+
|
|
393
|
+
# Create object from extracted values.
|
|
394
|
+
WidgetRequest.new(widget_type: widget_type,
|
|
395
|
+
client_redirect_url: client_redirect_url,
|
|
396
|
+
color_scheme: color_scheme,
|
|
397
|
+
current_institution_code: current_institution_code,
|
|
398
|
+
current_institution_guid: current_institution_guid,
|
|
399
|
+
current_member_guid: current_member_guid,
|
|
400
|
+
current_microdeposit_guid: current_microdeposit_guid,
|
|
401
|
+
data_request: data_request,
|
|
402
|
+
deep_link_params: deep_link_params,
|
|
403
|
+
disable_background_agg: disable_background_agg,
|
|
404
|
+
disable_institution_search: disable_institution_search,
|
|
405
|
+
enable_app2app: enable_app2app,
|
|
406
|
+
include_identity: include_identity,
|
|
407
|
+
include_transactions: include_transactions,
|
|
408
|
+
insight_guid: insight_guid,
|
|
409
|
+
iso_country_code: iso_country_code,
|
|
410
|
+
is_mobile_webview: is_mobile_webview,
|
|
411
|
+
microwidget_instance_id: microwidget_instance_id,
|
|
412
|
+
locale: locale,
|
|
413
|
+
mode: mode,
|
|
414
|
+
oauth_referral_source: oauth_referral_source,
|
|
415
|
+
style: style,
|
|
416
|
+
ui_message_version: ui_message_version,
|
|
417
|
+
ui_message_webview_url_scheme: ui_message_webview_url_scheme,
|
|
418
|
+
update_credentials: update_credentials,
|
|
419
|
+
use_cases: use_cases,
|
|
420
|
+
additional_properties: additional_properties)
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Provides a human-readable string representation of the object.
|
|
424
|
+
def to_s
|
|
425
|
+
class_name = self.class.name.split('::').last
|
|
426
|
+
"<#{class_name} client_redirect_url: #{@client_redirect_url}, color_scheme:"\
|
|
427
|
+
" #{@color_scheme}, current_institution_code: #{@current_institution_code},"\
|
|
428
|
+
" current_institution_guid: #{@current_institution_guid}, current_member_guid:"\
|
|
429
|
+
" #{@current_member_guid}, current_microdeposit_guid: #{@current_microdeposit_guid},"\
|
|
430
|
+
" data_request: #{@data_request}, deep_link_params: #{@deep_link_params},"\
|
|
431
|
+
" disable_background_agg: #{@disable_background_agg}, disable_institution_search:"\
|
|
432
|
+
" #{@disable_institution_search}, enable_app2app: #{@enable_app2app}, include_identity:"\
|
|
433
|
+
" #{@include_identity}, include_transactions: #{@include_transactions}, insight_guid:"\
|
|
434
|
+
" #{@insight_guid}, iso_country_code: #{@iso_country_code}, is_mobile_webview:"\
|
|
435
|
+
" #{@is_mobile_webview}, microwidget_instance_id: #{@microwidget_instance_id}, locale:"\
|
|
436
|
+
" #{@locale}, mode: #{@mode}, oauth_referral_source: #{@oauth_referral_source}, style:"\
|
|
437
|
+
" #{@style}, ui_message_version: #{@ui_message_version}, ui_message_webview_url_scheme:"\
|
|
438
|
+
" #{@ui_message_webview_url_scheme}, update_credentials: #{@update_credentials}, use_cases:"\
|
|
439
|
+
" #{@use_cases}, widget_type: #{@widget_type}, additional_properties:"\
|
|
440
|
+
" #{@additional_properties}>"
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
444
|
+
def inspect
|
|
445
|
+
class_name = self.class.name.split('::').last
|
|
446
|
+
"<#{class_name} client_redirect_url: #{@client_redirect_url.inspect}, color_scheme:"\
|
|
447
|
+
" #{@color_scheme.inspect}, current_institution_code: #{@current_institution_code.inspect},"\
|
|
448
|
+
" current_institution_guid: #{@current_institution_guid.inspect}, current_member_guid:"\
|
|
449
|
+
" #{@current_member_guid.inspect}, current_microdeposit_guid:"\
|
|
450
|
+
" #{@current_microdeposit_guid.inspect}, data_request: #{@data_request.inspect},"\
|
|
451
|
+
" deep_link_params: #{@deep_link_params.inspect}, disable_background_agg:"\
|
|
452
|
+
" #{@disable_background_agg.inspect}, disable_institution_search:"\
|
|
453
|
+
" #{@disable_institution_search.inspect}, enable_app2app: #{@enable_app2app.inspect},"\
|
|
454
|
+
" include_identity: #{@include_identity.inspect}, include_transactions:"\
|
|
455
|
+
" #{@include_transactions.inspect}, insight_guid: #{@insight_guid.inspect},"\
|
|
456
|
+
" iso_country_code: #{@iso_country_code.inspect}, is_mobile_webview:"\
|
|
457
|
+
" #{@is_mobile_webview.inspect}, microwidget_instance_id:"\
|
|
458
|
+
" #{@microwidget_instance_id.inspect}, locale: #{@locale.inspect}, mode: #{@mode.inspect},"\
|
|
459
|
+
" oauth_referral_source: #{@oauth_referral_source.inspect}, style: #{@style.inspect},"\
|
|
460
|
+
" ui_message_version: #{@ui_message_version.inspect}, ui_message_webview_url_scheme:"\
|
|
461
|
+
" #{@ui_message_webview_url_scheme.inspect}, update_credentials:"\
|
|
462
|
+
" #{@update_credentials.inspect}, use_cases: #{@use_cases.inspect}, widget_type:"\
|
|
463
|
+
" #{@widget_type.inspect}, additional_properties: #{@additional_properties}>"
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
end
|