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,289 @@
|
|
|
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
|
+
# ManagedTransactionUpdateRequest Model.
|
|
8
|
+
class ManagedTransactionUpdateRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The monetary amount of the `transaction`.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :amount
|
|
15
|
+
|
|
16
|
+
# The category of the `transaction`.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :category
|
|
19
|
+
|
|
20
|
+
# The check number for the `transaction`.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :check_number_string
|
|
23
|
+
|
|
24
|
+
# The three-character ISO 4217 currency code, for example, `USD`.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :currency_code
|
|
27
|
+
|
|
28
|
+
# A human-readable version of the `original_description` field.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :description
|
|
31
|
+
|
|
32
|
+
# The unique partner-defined identifier for the `transaction`.
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :id
|
|
35
|
+
|
|
36
|
+
# Indicates whether the transaction is international. If the data provider
|
|
37
|
+
# determines it isn't international then it will be `false`. It will be
|
|
38
|
+
# `null` if the data provider does not have this information.
|
|
39
|
+
# @return [TrueClass | FalseClass]
|
|
40
|
+
attr_accessor :is_international
|
|
41
|
+
|
|
42
|
+
# The latitude of the location where the transaction occurred. The number is
|
|
43
|
+
# a signed decimal (for example, Rio de Janeiro's latitude is -22.9027800
|
|
44
|
+
# and Tokyo's latitude is 35.689488).
|
|
45
|
+
# @return [Float]
|
|
46
|
+
attr_accessor :latitude
|
|
47
|
+
|
|
48
|
+
# A human-readable description of the transaction, provided in a local
|
|
49
|
+
# language.
|
|
50
|
+
# @return [String]
|
|
51
|
+
attr_accessor :localized_description
|
|
52
|
+
|
|
53
|
+
# Additional descriptive information about the transaction, provided in a
|
|
54
|
+
# local language.
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :localized_memo
|
|
57
|
+
|
|
58
|
+
# The longitude of the location where the transaction occurred. The number
|
|
59
|
+
# is a signed decimal (for example, Rio de Janeiro's longitude is
|
|
60
|
+
# -43.2075000 and Tokyo's longitude is 139.691706).
|
|
61
|
+
# @return [Float]
|
|
62
|
+
attr_accessor :longitude
|
|
63
|
+
|
|
64
|
+
# Additional information about the `transaction`.
|
|
65
|
+
# @return [String]
|
|
66
|
+
attr_accessor :memo
|
|
67
|
+
|
|
68
|
+
# The ISO 18245 category code for the transaction.
|
|
69
|
+
# @return [Integer]
|
|
70
|
+
attr_accessor :merchant_category_code
|
|
71
|
+
|
|
72
|
+
# The unique identifier for the merchant. Defined by MX.
|
|
73
|
+
# @return [String]
|
|
74
|
+
attr_accessor :merchant_guid
|
|
75
|
+
|
|
76
|
+
# The unique identifier for the merchant location. Defined by MX.
|
|
77
|
+
# @return [String]
|
|
78
|
+
attr_accessor :merchant_location_guid
|
|
79
|
+
|
|
80
|
+
# Additional information you can store about the `transaction`.
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :metadata
|
|
83
|
+
|
|
84
|
+
# The date and time the transaction was posted to the account.
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :posted_at
|
|
87
|
+
|
|
88
|
+
# The status of the transaction. Can be either `POSTED` or `PENDING`.
|
|
89
|
+
# @return [Status]
|
|
90
|
+
attr_accessor :status
|
|
91
|
+
|
|
92
|
+
# The date and time the transaction took place.
|
|
93
|
+
# @return [String]
|
|
94
|
+
attr_accessor :transacted_at
|
|
95
|
+
|
|
96
|
+
# The type of transaction. Can be either `CREDIT` or `DEBIT`.
|
|
97
|
+
# @return [Type]
|
|
98
|
+
attr_accessor :type
|
|
99
|
+
|
|
100
|
+
# A mapping from model property names to API property names.
|
|
101
|
+
def self.names
|
|
102
|
+
@_hash = {} if @_hash.nil?
|
|
103
|
+
@_hash['amount'] = 'amount'
|
|
104
|
+
@_hash['category'] = 'category'
|
|
105
|
+
@_hash['check_number_string'] = 'check_number_string'
|
|
106
|
+
@_hash['currency_code'] = 'currency_code'
|
|
107
|
+
@_hash['description'] = 'description'
|
|
108
|
+
@_hash['id'] = 'id'
|
|
109
|
+
@_hash['is_international'] = 'is_international'
|
|
110
|
+
@_hash['latitude'] = 'latitude'
|
|
111
|
+
@_hash['localized_description'] = 'localized_description'
|
|
112
|
+
@_hash['localized_memo'] = 'localized_memo'
|
|
113
|
+
@_hash['longitude'] = 'longitude'
|
|
114
|
+
@_hash['memo'] = 'memo'
|
|
115
|
+
@_hash['merchant_category_code'] = 'merchant_category_code'
|
|
116
|
+
@_hash['merchant_guid'] = 'merchant_guid'
|
|
117
|
+
@_hash['merchant_location_guid'] = 'merchant_location_guid'
|
|
118
|
+
@_hash['metadata'] = 'metadata'
|
|
119
|
+
@_hash['posted_at'] = 'posted_at'
|
|
120
|
+
@_hash['status'] = 'status'
|
|
121
|
+
@_hash['transacted_at'] = 'transacted_at'
|
|
122
|
+
@_hash['type'] = 'type'
|
|
123
|
+
@_hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# An array for optional fields
|
|
127
|
+
def self.optionals
|
|
128
|
+
%w[
|
|
129
|
+
amount
|
|
130
|
+
category
|
|
131
|
+
check_number_string
|
|
132
|
+
currency_code
|
|
133
|
+
description
|
|
134
|
+
id
|
|
135
|
+
is_international
|
|
136
|
+
latitude
|
|
137
|
+
localized_description
|
|
138
|
+
localized_memo
|
|
139
|
+
longitude
|
|
140
|
+
memo
|
|
141
|
+
merchant_category_code
|
|
142
|
+
merchant_guid
|
|
143
|
+
merchant_location_guid
|
|
144
|
+
metadata
|
|
145
|
+
posted_at
|
|
146
|
+
status
|
|
147
|
+
transacted_at
|
|
148
|
+
type
|
|
149
|
+
]
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# An array for nullable fields
|
|
153
|
+
def self.nullables
|
|
154
|
+
%w[
|
|
155
|
+
amount
|
|
156
|
+
category
|
|
157
|
+
check_number_string
|
|
158
|
+
currency_code
|
|
159
|
+
]
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
def initialize(amount: SKIP, category: SKIP, check_number_string: SKIP,
|
|
163
|
+
currency_code: SKIP, description: SKIP, id: SKIP,
|
|
164
|
+
is_international: SKIP, latitude: SKIP,
|
|
165
|
+
localized_description: SKIP, localized_memo: SKIP,
|
|
166
|
+
longitude: SKIP, memo: SKIP, merchant_category_code: SKIP,
|
|
167
|
+
merchant_guid: SKIP, merchant_location_guid: SKIP,
|
|
168
|
+
metadata: SKIP, posted_at: SKIP, status: SKIP,
|
|
169
|
+
transacted_at: SKIP, type: SKIP, additional_properties: nil)
|
|
170
|
+
# Add additional model properties to the instance
|
|
171
|
+
additional_properties = {} if additional_properties.nil?
|
|
172
|
+
|
|
173
|
+
@amount = amount unless amount == SKIP
|
|
174
|
+
@category = category unless category == SKIP
|
|
175
|
+
@check_number_string = check_number_string unless check_number_string == SKIP
|
|
176
|
+
@currency_code = currency_code unless currency_code == SKIP
|
|
177
|
+
@description = description unless description == SKIP
|
|
178
|
+
@id = id unless id == SKIP
|
|
179
|
+
@is_international = is_international unless is_international == SKIP
|
|
180
|
+
@latitude = latitude unless latitude == SKIP
|
|
181
|
+
@localized_description = localized_description unless localized_description == SKIP
|
|
182
|
+
@localized_memo = localized_memo unless localized_memo == SKIP
|
|
183
|
+
@longitude = longitude unless longitude == SKIP
|
|
184
|
+
@memo = memo unless memo == SKIP
|
|
185
|
+
@merchant_category_code = merchant_category_code unless merchant_category_code == SKIP
|
|
186
|
+
@merchant_guid = merchant_guid unless merchant_guid == SKIP
|
|
187
|
+
@merchant_location_guid = merchant_location_guid unless merchant_location_guid == SKIP
|
|
188
|
+
@metadata = metadata unless metadata == SKIP
|
|
189
|
+
@posted_at = posted_at unless posted_at == SKIP
|
|
190
|
+
@status = status unless status == SKIP
|
|
191
|
+
@transacted_at = transacted_at unless transacted_at == SKIP
|
|
192
|
+
@type = type unless type == SKIP
|
|
193
|
+
@additional_properties = additional_properties
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Creates an instance of the object from a hash.
|
|
197
|
+
def self.from_hash(hash)
|
|
198
|
+
return nil unless hash
|
|
199
|
+
|
|
200
|
+
# Extract variables from the hash.
|
|
201
|
+
amount = hash.key?('amount') ? hash['amount'] : SKIP
|
|
202
|
+
category = hash.key?('category') ? hash['category'] : SKIP
|
|
203
|
+
check_number_string =
|
|
204
|
+
hash.key?('check_number_string') ? hash['check_number_string'] : SKIP
|
|
205
|
+
currency_code = hash.key?('currency_code') ? hash['currency_code'] : SKIP
|
|
206
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
207
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
208
|
+
is_international =
|
|
209
|
+
hash.key?('is_international') ? hash['is_international'] : SKIP
|
|
210
|
+
latitude = hash.key?('latitude') ? hash['latitude'] : SKIP
|
|
211
|
+
localized_description =
|
|
212
|
+
hash.key?('localized_description') ? hash['localized_description'] : SKIP
|
|
213
|
+
localized_memo =
|
|
214
|
+
hash.key?('localized_memo') ? hash['localized_memo'] : SKIP
|
|
215
|
+
longitude = hash.key?('longitude') ? hash['longitude'] : SKIP
|
|
216
|
+
memo = hash.key?('memo') ? hash['memo'] : SKIP
|
|
217
|
+
merchant_category_code =
|
|
218
|
+
hash.key?('merchant_category_code') ? hash['merchant_category_code'] : SKIP
|
|
219
|
+
merchant_guid = hash.key?('merchant_guid') ? hash['merchant_guid'] : SKIP
|
|
220
|
+
merchant_location_guid =
|
|
221
|
+
hash.key?('merchant_location_guid') ? hash['merchant_location_guid'] : SKIP
|
|
222
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
223
|
+
posted_at = hash.key?('posted_at') ? hash['posted_at'] : SKIP
|
|
224
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
225
|
+
transacted_at = hash.key?('transacted_at') ? hash['transacted_at'] : SKIP
|
|
226
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
227
|
+
|
|
228
|
+
# Create a new hash for additional properties, removing known properties.
|
|
229
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
230
|
+
|
|
231
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
232
|
+
new_hash, proc { |value| value }
|
|
233
|
+
)
|
|
234
|
+
|
|
235
|
+
# Create object from extracted values.
|
|
236
|
+
ManagedTransactionUpdateRequest.new(amount: amount,
|
|
237
|
+
category: category,
|
|
238
|
+
check_number_string: check_number_string,
|
|
239
|
+
currency_code: currency_code,
|
|
240
|
+
description: description,
|
|
241
|
+
id: id,
|
|
242
|
+
is_international: is_international,
|
|
243
|
+
latitude: latitude,
|
|
244
|
+
localized_description: localized_description,
|
|
245
|
+
localized_memo: localized_memo,
|
|
246
|
+
longitude: longitude,
|
|
247
|
+
memo: memo,
|
|
248
|
+
merchant_category_code: merchant_category_code,
|
|
249
|
+
merchant_guid: merchant_guid,
|
|
250
|
+
merchant_location_guid: merchant_location_guid,
|
|
251
|
+
metadata: metadata,
|
|
252
|
+
posted_at: posted_at,
|
|
253
|
+
status: status,
|
|
254
|
+
transacted_at: transacted_at,
|
|
255
|
+
type: type,
|
|
256
|
+
additional_properties: additional_properties)
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Provides a human-readable string representation of the object.
|
|
260
|
+
def to_s
|
|
261
|
+
class_name = self.class.name.split('::').last
|
|
262
|
+
"<#{class_name} amount: #{@amount}, category: #{@category}, check_number_string:"\
|
|
263
|
+
" #{@check_number_string}, currency_code: #{@currency_code}, description: #{@description},"\
|
|
264
|
+
" id: #{@id}, is_international: #{@is_international}, latitude: #{@latitude},"\
|
|
265
|
+
" localized_description: #{@localized_description}, localized_memo: #{@localized_memo},"\
|
|
266
|
+
" longitude: #{@longitude}, memo: #{@memo}, merchant_category_code:"\
|
|
267
|
+
" #{@merchant_category_code}, merchant_guid: #{@merchant_guid}, merchant_location_guid:"\
|
|
268
|
+
" #{@merchant_location_guid}, metadata: #{@metadata}, posted_at: #{@posted_at}, status:"\
|
|
269
|
+
" #{@status}, transacted_at: #{@transacted_at}, type: #{@type}, additional_properties:"\
|
|
270
|
+
" #{@additional_properties}>"
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
274
|
+
def inspect
|
|
275
|
+
class_name = self.class.name.split('::').last
|
|
276
|
+
"<#{class_name} amount: #{@amount.inspect}, category: #{@category.inspect},"\
|
|
277
|
+
" check_number_string: #{@check_number_string.inspect}, currency_code:"\
|
|
278
|
+
" #{@currency_code.inspect}, description: #{@description.inspect}, id: #{@id.inspect},"\
|
|
279
|
+
" is_international: #{@is_international.inspect}, latitude: #{@latitude.inspect},"\
|
|
280
|
+
" localized_description: #{@localized_description.inspect}, localized_memo:"\
|
|
281
|
+
" #{@localized_memo.inspect}, longitude: #{@longitude.inspect}, memo: #{@memo.inspect},"\
|
|
282
|
+
" merchant_category_code: #{@merchant_category_code.inspect}, merchant_guid:"\
|
|
283
|
+
" #{@merchant_guid.inspect}, merchant_location_guid: #{@merchant_location_guid.inspect},"\
|
|
284
|
+
" metadata: #{@metadata.inspect}, posted_at: #{@posted_at.inspect}, status:"\
|
|
285
|
+
" #{@status.inspect}, transacted_at: #{@transacted_at.inspect}, type: #{@type.inspect},"\
|
|
286
|
+
" additional_properties: #{@additional_properties}>"
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
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
|
+
# ManagedTransactionUpdateRequestBody Model.
|
|
8
|
+
class ManagedTransactionUpdateRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [ManagedTransactionUpdateRequest]
|
|
14
|
+
attr_accessor :transaction
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['transaction'] = 'transaction'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
transaction
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(transaction: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@transaction = transaction unless transaction == 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
|
+
transaction = ManagedTransactionUpdateRequest.from_hash(hash['transaction']) if
|
|
49
|
+
hash['transaction']
|
|
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
|
+
ManagedTransactionUpdateRequestBody.new(transaction: transaction,
|
|
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} transaction: #{@transaction}, 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} transaction: #{@transaction.inspect}, additional_properties:"\
|
|
74
|
+
" #{@additional_properties}>"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
# MemberCreateRequest Model.
|
|
8
|
+
class MemberCreateRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Indicates whether background aggregation is disabled for the `member`.
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :background_aggregation_is_disabled
|
|
15
|
+
|
|
16
|
+
# Indicates whether background aggregation is disabled for the `member`.
|
|
17
|
+
# @return [Array[CredentialRequest]]
|
|
18
|
+
attr_accessor :credentials
|
|
19
|
+
|
|
20
|
+
# The unique partner-defined identifier for the member.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :id
|
|
23
|
+
|
|
24
|
+
# The code identifying a financial institution.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :institution_code
|
|
27
|
+
|
|
28
|
+
# Indicates whether the member uses OAuth to authenticate. Defaults to
|
|
29
|
+
# `false`.
|
|
30
|
+
# @return [TrueClass | FalseClass]
|
|
31
|
+
attr_accessor :is_oauth
|
|
32
|
+
|
|
33
|
+
# Additional information you can store about the `member`.
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :metadata
|
|
36
|
+
|
|
37
|
+
# The use case associated with the member. Valid values are `PFM` and/or
|
|
38
|
+
# `MONEY_MOVEMENT`. Only set this if you've met with MX and have opted in to
|
|
39
|
+
# using this field.
|
|
40
|
+
# @return [Array[UseCase]]
|
|
41
|
+
attr_accessor :use_cases
|
|
42
|
+
|
|
43
|
+
# A mapping from model property names to API property names.
|
|
44
|
+
def self.names
|
|
45
|
+
@_hash = {} if @_hash.nil?
|
|
46
|
+
@_hash['background_aggregation_is_disabled'] =
|
|
47
|
+
'background_aggregation_is_disabled'
|
|
48
|
+
@_hash['credentials'] = 'credentials'
|
|
49
|
+
@_hash['id'] = 'id'
|
|
50
|
+
@_hash['institution_code'] = 'institution_code'
|
|
51
|
+
@_hash['is_oauth'] = 'is_oauth'
|
|
52
|
+
@_hash['metadata'] = 'metadata'
|
|
53
|
+
@_hash['use_cases'] = 'use_cases'
|
|
54
|
+
@_hash
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# An array for optional fields
|
|
58
|
+
def self.optionals
|
|
59
|
+
%w[
|
|
60
|
+
background_aggregation_is_disabled
|
|
61
|
+
id
|
|
62
|
+
is_oauth
|
|
63
|
+
metadata
|
|
64
|
+
use_cases
|
|
65
|
+
]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# An array for nullable fields
|
|
69
|
+
def self.nullables
|
|
70
|
+
[]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def initialize(credentials:, institution_code:,
|
|
74
|
+
background_aggregation_is_disabled: SKIP, id: SKIP,
|
|
75
|
+
is_oauth: SKIP, metadata: SKIP, use_cases: SKIP,
|
|
76
|
+
additional_properties: nil)
|
|
77
|
+
# Add additional model properties to the instance
|
|
78
|
+
additional_properties = {} if additional_properties.nil?
|
|
79
|
+
|
|
80
|
+
unless background_aggregation_is_disabled == SKIP
|
|
81
|
+
@background_aggregation_is_disabled =
|
|
82
|
+
background_aggregation_is_disabled
|
|
83
|
+
end
|
|
84
|
+
@credentials = credentials
|
|
85
|
+
@id = id unless id == SKIP
|
|
86
|
+
@institution_code = institution_code
|
|
87
|
+
@is_oauth = is_oauth unless is_oauth == SKIP
|
|
88
|
+
@metadata = metadata unless metadata == SKIP
|
|
89
|
+
@use_cases = use_cases unless use_cases == SKIP
|
|
90
|
+
@additional_properties = additional_properties
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Creates an instance of the object from a hash.
|
|
94
|
+
def self.from_hash(hash)
|
|
95
|
+
return nil unless hash
|
|
96
|
+
|
|
97
|
+
# Extract variables from the hash.
|
|
98
|
+
# Parameter is an array, so we need to iterate through it
|
|
99
|
+
credentials = nil
|
|
100
|
+
unless hash['credentials'].nil?
|
|
101
|
+
credentials = []
|
|
102
|
+
hash['credentials'].each do |structure|
|
|
103
|
+
credentials << (CredentialRequest.from_hash(structure) if structure)
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
credentials = nil unless hash.key?('credentials')
|
|
108
|
+
institution_code =
|
|
109
|
+
hash.key?('institution_code') ? hash['institution_code'] : nil
|
|
110
|
+
background_aggregation_is_disabled =
|
|
111
|
+
hash.key?('background_aggregation_is_disabled') ? hash['background_aggregation_is_disabled'] : SKIP
|
|
112
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
113
|
+
is_oauth = hash.key?('is_oauth') ? hash['is_oauth'] : SKIP
|
|
114
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
115
|
+
use_cases = hash.key?('use_cases') ? hash['use_cases'] : SKIP
|
|
116
|
+
|
|
117
|
+
# Create a new hash for additional properties, removing known properties.
|
|
118
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
119
|
+
|
|
120
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
121
|
+
new_hash, proc { |value| value }
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
# Create object from extracted values.
|
|
125
|
+
MemberCreateRequest.new(credentials: credentials,
|
|
126
|
+
institution_code: institution_code,
|
|
127
|
+
background_aggregation_is_disabled: background_aggregation_is_disabled,
|
|
128
|
+
id: id,
|
|
129
|
+
is_oauth: is_oauth,
|
|
130
|
+
metadata: metadata,
|
|
131
|
+
use_cases: use_cases,
|
|
132
|
+
additional_properties: additional_properties)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Provides a human-readable string representation of the object.
|
|
136
|
+
def to_s
|
|
137
|
+
class_name = self.class.name.split('::').last
|
|
138
|
+
"<#{class_name} background_aggregation_is_disabled: #{@background_aggregation_is_disabled},"\
|
|
139
|
+
" credentials: #{@credentials}, id: #{@id}, institution_code: #{@institution_code},"\
|
|
140
|
+
" is_oauth: #{@is_oauth}, metadata: #{@metadata}, use_cases: #{@use_cases},"\
|
|
141
|
+
" additional_properties: #{@additional_properties}>"
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
145
|
+
def inspect
|
|
146
|
+
class_name = self.class.name.split('::').last
|
|
147
|
+
"<#{class_name} background_aggregation_is_disabled:"\
|
|
148
|
+
" #{@background_aggregation_is_disabled.inspect}, credentials: #{@credentials.inspect}, id:"\
|
|
149
|
+
" #{@id.inspect}, institution_code: #{@institution_code.inspect}, is_oauth:"\
|
|
150
|
+
" #{@is_oauth.inspect}, metadata: #{@metadata.inspect}, use_cases: #{@use_cases.inspect},"\
|
|
151
|
+
" additional_properties: #{@additional_properties}>"
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
@@ -0,0 +1,152 @@
|
|
|
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
|
+
# MemberCreateRequestBody Model.
|
|
8
|
+
class MemberCreateRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# This determines the redirect destination at the end of OAuth when used
|
|
13
|
+
# with `is_mobile_webview: true` or `oauth_referral_source: 'APP'`.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :client_redirect_url
|
|
16
|
+
|
|
17
|
+
# Contains a products array that specifies the products you want to
|
|
18
|
+
# aggregate.
|
|
19
|
+
# @return [DataRequest]
|
|
20
|
+
attr_accessor :data_request
|
|
21
|
+
|
|
22
|
+
# This indicates whether OAuth app2app behavior is enabled for institutions
|
|
23
|
+
# that support it. Defaults to `true`. When set to `false`, any
|
|
24
|
+
# `oauth_window_uri` generated will **not** direct the end user to the
|
|
25
|
+
# institution's mobile application. This setting is not persistent. This
|
|
26
|
+
# setting currently only affects Chase institutions.
|
|
27
|
+
# @return [TrueClass | FalseClass]
|
|
28
|
+
attr_accessor :enable_app2app
|
|
29
|
+
|
|
30
|
+
# This indicates whether OAuth app2app behavior is enabled for institutions
|
|
31
|
+
# that support it. Defaults to `true`. When set to `false`, any
|
|
32
|
+
# `oauth_window_uri` generated will **not** direct the end user to the
|
|
33
|
+
# institution's mobile application. This setting is not persistent. This
|
|
34
|
+
# setting currently only affects Chase institutions.
|
|
35
|
+
# @return [MemberCreateRequest]
|
|
36
|
+
attr_accessor :member
|
|
37
|
+
|
|
38
|
+
# This indicates whether OAuth app2app behavior is enabled for institutions
|
|
39
|
+
# that support it. Defaults to `true`. When set to `false`, any
|
|
40
|
+
# `oauth_window_uri` generated will **not** direct the end user to the
|
|
41
|
+
# institution's mobile application. This setting is not persistent. This
|
|
42
|
+
# setting currently only affects Chase institutions.
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :referral_source
|
|
45
|
+
|
|
46
|
+
# A client-defined scheme used in OAuth redirects in WebViews. Defaults to
|
|
47
|
+
# `mx`.
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :ui_message_webview_url_scheme
|
|
50
|
+
|
|
51
|
+
# A mapping from model property names to API property names.
|
|
52
|
+
def self.names
|
|
53
|
+
@_hash = {} if @_hash.nil?
|
|
54
|
+
@_hash['client_redirect_url'] = 'client_redirect_url'
|
|
55
|
+
@_hash['data_request'] = 'data_request'
|
|
56
|
+
@_hash['enable_app2app'] = 'enable_app2app'
|
|
57
|
+
@_hash['member'] = 'member'
|
|
58
|
+
@_hash['referral_source'] = 'referral_source'
|
|
59
|
+
@_hash['ui_message_webview_url_scheme'] =
|
|
60
|
+
'ui_message_webview_url_scheme'
|
|
61
|
+
@_hash
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# An array for optional fields
|
|
65
|
+
def self.optionals
|
|
66
|
+
%w[
|
|
67
|
+
client_redirect_url
|
|
68
|
+
data_request
|
|
69
|
+
enable_app2app
|
|
70
|
+
member
|
|
71
|
+
referral_source
|
|
72
|
+
ui_message_webview_url_scheme
|
|
73
|
+
]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# An array for nullable fields
|
|
77
|
+
def self.nullables
|
|
78
|
+
[]
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def initialize(client_redirect_url: SKIP, data_request: SKIP,
|
|
82
|
+
enable_app2app: SKIP, member: SKIP, referral_source: SKIP,
|
|
83
|
+
ui_message_webview_url_scheme: SKIP,
|
|
84
|
+
additional_properties: nil)
|
|
85
|
+
# Add additional model properties to the instance
|
|
86
|
+
additional_properties = {} if additional_properties.nil?
|
|
87
|
+
|
|
88
|
+
@client_redirect_url = client_redirect_url unless client_redirect_url == SKIP
|
|
89
|
+
@data_request = data_request unless data_request == SKIP
|
|
90
|
+
@enable_app2app = enable_app2app unless enable_app2app == SKIP
|
|
91
|
+
@member = member unless member == SKIP
|
|
92
|
+
@referral_source = referral_source unless referral_source == SKIP
|
|
93
|
+
unless ui_message_webview_url_scheme == SKIP
|
|
94
|
+
@ui_message_webview_url_scheme =
|
|
95
|
+
ui_message_webview_url_scheme
|
|
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
|
+
client_redirect_url =
|
|
106
|
+
hash.key?('client_redirect_url') ? hash['client_redirect_url'] : SKIP
|
|
107
|
+
data_request = DataRequest.from_hash(hash['data_request']) if hash['data_request']
|
|
108
|
+
enable_app2app =
|
|
109
|
+
hash.key?('enable_app2app') ? hash['enable_app2app'] : SKIP
|
|
110
|
+
member = MemberCreateRequest.from_hash(hash['member']) if hash['member']
|
|
111
|
+
referral_source =
|
|
112
|
+
hash.key?('referral_source') ? hash['referral_source'] : SKIP
|
|
113
|
+
ui_message_webview_url_scheme =
|
|
114
|
+
hash.key?('ui_message_webview_url_scheme') ? hash['ui_message_webview_url_scheme'] : SKIP
|
|
115
|
+
|
|
116
|
+
# Create a new hash for additional properties, removing known properties.
|
|
117
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
118
|
+
|
|
119
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
120
|
+
new_hash, proc { |value| value }
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
# Create object from extracted values.
|
|
124
|
+
MemberCreateRequestBody.new(client_redirect_url: client_redirect_url,
|
|
125
|
+
data_request: data_request,
|
|
126
|
+
enable_app2app: enable_app2app,
|
|
127
|
+
member: member,
|
|
128
|
+
referral_source: referral_source,
|
|
129
|
+
ui_message_webview_url_scheme: ui_message_webview_url_scheme,
|
|
130
|
+
additional_properties: additional_properties)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Provides a human-readable string representation of the object.
|
|
134
|
+
def to_s
|
|
135
|
+
class_name = self.class.name.split('::').last
|
|
136
|
+
"<#{class_name} client_redirect_url: #{@client_redirect_url}, data_request:"\
|
|
137
|
+
" #{@data_request}, enable_app2app: #{@enable_app2app}, member: #{@member}, referral_source:"\
|
|
138
|
+
" #{@referral_source}, ui_message_webview_url_scheme: #{@ui_message_webview_url_scheme},"\
|
|
139
|
+
" additional_properties: #{@additional_properties}>"
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
143
|
+
def inspect
|
|
144
|
+
class_name = self.class.name.split('::').last
|
|
145
|
+
"<#{class_name} client_redirect_url: #{@client_redirect_url.inspect}, data_request:"\
|
|
146
|
+
" #{@data_request.inspect}, enable_app2app: #{@enable_app2app.inspect}, member:"\
|
|
147
|
+
" #{@member.inspect}, referral_source: #{@referral_source.inspect},"\
|
|
148
|
+
" ui_message_webview_url_scheme: #{@ui_message_webview_url_scheme.inspect},"\
|
|
149
|
+
" additional_properties: #{@additional_properties}>"
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|