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,276 @@
|
|
|
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
|
+
# CreditCardProduct Model.
|
|
8
|
+
class CreditCardProduct < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The annual fee associated with the `credit_card_product`.
|
|
13
|
+
# @return [Float]
|
|
14
|
+
attr_accessor :annual_fee
|
|
15
|
+
|
|
16
|
+
# The duration of an introductory rate on balance transfers, given in
|
|
17
|
+
# months.
|
|
18
|
+
# @return [Integer]
|
|
19
|
+
attr_accessor :duration_of_introductory_rate_on_balance_transfer
|
|
20
|
+
|
|
21
|
+
# The duration of an introductory rate on balance transfers, given in
|
|
22
|
+
# months.
|
|
23
|
+
# @return [Integer]
|
|
24
|
+
attr_accessor :duration_of_introductory_rate_on_purchases
|
|
25
|
+
|
|
26
|
+
# Unique identifier for the account. Defined by MX.
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :guid
|
|
29
|
+
|
|
30
|
+
# Indicates if the credit card product has cashback rewards.
|
|
31
|
+
# @return [TrueClass | FalseClass]
|
|
32
|
+
attr_accessor :has_cashback_rewards
|
|
33
|
+
|
|
34
|
+
# This indicates whether the credit card offers a rewards system that is
|
|
35
|
+
# different than standard cashback or travel rewards.
|
|
36
|
+
# @return [TrueClass | FalseClass]
|
|
37
|
+
attr_accessor :has_other_rewards
|
|
38
|
+
|
|
39
|
+
# This indicates whether the credit card offers travel rewards.
|
|
40
|
+
# @return [TrueClass | FalseClass]
|
|
41
|
+
attr_accessor :has_travel_rewards
|
|
42
|
+
|
|
43
|
+
# This indicates whether the credit card offers a limited time period where
|
|
44
|
+
# a membership fee is waived.
|
|
45
|
+
# @return [TrueClass | FalseClass]
|
|
46
|
+
attr_accessor :has_zero_introductory_annual_fee
|
|
47
|
+
|
|
48
|
+
# This indicates whether the credit card offers a zero percent introductory
|
|
49
|
+
# rate.
|
|
50
|
+
# @return [TrueClass | FalseClass]
|
|
51
|
+
attr_accessor :has_zero_percent_introductory_rate
|
|
52
|
+
|
|
53
|
+
# This indicates that the credit card offers a zero percent rate when
|
|
54
|
+
# transferring a balance from a different credit card.
|
|
55
|
+
# @return [TrueClass | FalseClass]
|
|
56
|
+
attr_accessor :has_zero_percent_introductory_rate_on_balance_transfer
|
|
57
|
+
|
|
58
|
+
# This indicates whether the financial institution is still accepting
|
|
59
|
+
# applicants for the credit card.
|
|
60
|
+
# @return [TrueClass | FalseClass]
|
|
61
|
+
attr_accessor :is_accepting_applicants
|
|
62
|
+
|
|
63
|
+
# This indicates whether the credit card is still supported by the financial
|
|
64
|
+
# institution.
|
|
65
|
+
# @return [TrueClass | FalseClass]
|
|
66
|
+
attr_accessor :is_active_credit_card_product
|
|
67
|
+
|
|
68
|
+
# This indicates whether the credit card is associated with a small
|
|
69
|
+
# business.
|
|
70
|
+
# @return [TrueClass | FalseClass]
|
|
71
|
+
attr_accessor :is_small_business_card
|
|
72
|
+
|
|
73
|
+
# The name associated with the `credit_card_product`.
|
|
74
|
+
# @return [String]
|
|
75
|
+
attr_accessor :name
|
|
76
|
+
|
|
77
|
+
# A mapping from model property names to API property names.
|
|
78
|
+
def self.names
|
|
79
|
+
@_hash = {} if @_hash.nil?
|
|
80
|
+
@_hash['annual_fee'] = 'annual_fee'
|
|
81
|
+
@_hash['duration_of_introductory_rate_on_balance_transfer'] =
|
|
82
|
+
'duration_of_introductory_rate_on_balance_transfer'
|
|
83
|
+
@_hash['duration_of_introductory_rate_on_purchases'] =
|
|
84
|
+
'duration_of_introductory_rate_on_purchases'
|
|
85
|
+
@_hash['guid'] = 'guid'
|
|
86
|
+
@_hash['has_cashback_rewards'] = 'has_cashback_rewards'
|
|
87
|
+
@_hash['has_other_rewards'] = 'has_other_rewards'
|
|
88
|
+
@_hash['has_travel_rewards'] = 'has_travel_rewards'
|
|
89
|
+
@_hash['has_zero_introductory_annual_fee'] =
|
|
90
|
+
'has_zero_introductory_annual_fee'
|
|
91
|
+
@_hash['has_zero_percent_introductory_rate'] =
|
|
92
|
+
'has_zero_percent_introductory_rate'
|
|
93
|
+
@_hash['has_zero_percent_introductory_rate_on_balance_transfer'] =
|
|
94
|
+
'has_zero_percent_introductory_rate_on_balance_transfer'
|
|
95
|
+
@_hash['is_accepting_applicants'] = 'is_accepting_applicants'
|
|
96
|
+
@_hash['is_active_credit_card_product'] =
|
|
97
|
+
'is_active_credit_card_product'
|
|
98
|
+
@_hash['is_small_business_card'] = 'is_small_business_card'
|
|
99
|
+
@_hash['name'] = 'name'
|
|
100
|
+
@_hash
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# An array for optional fields
|
|
104
|
+
def self.optionals
|
|
105
|
+
%w[
|
|
106
|
+
annual_fee
|
|
107
|
+
duration_of_introductory_rate_on_balance_transfer
|
|
108
|
+
duration_of_introductory_rate_on_purchases
|
|
109
|
+
guid
|
|
110
|
+
has_cashback_rewards
|
|
111
|
+
has_other_rewards
|
|
112
|
+
has_travel_rewards
|
|
113
|
+
has_zero_introductory_annual_fee
|
|
114
|
+
has_zero_percent_introductory_rate
|
|
115
|
+
has_zero_percent_introductory_rate_on_balance_transfer
|
|
116
|
+
is_accepting_applicants
|
|
117
|
+
is_active_credit_card_product
|
|
118
|
+
is_small_business_card
|
|
119
|
+
name
|
|
120
|
+
]
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# An array for nullable fields
|
|
124
|
+
def self.nullables
|
|
125
|
+
%w[
|
|
126
|
+
duration_of_introductory_rate_on_balance_transfer
|
|
127
|
+
duration_of_introductory_rate_on_purchases
|
|
128
|
+
]
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def initialize(annual_fee: SKIP,
|
|
132
|
+
duration_of_introductory_rate_on_balance_transfer: SKIP,
|
|
133
|
+
duration_of_introductory_rate_on_purchases: SKIP, guid: SKIP,
|
|
134
|
+
has_cashback_rewards: SKIP, has_other_rewards: SKIP,
|
|
135
|
+
has_travel_rewards: SKIP,
|
|
136
|
+
has_zero_introductory_annual_fee: SKIP,
|
|
137
|
+
has_zero_percent_introductory_rate: SKIP,
|
|
138
|
+
has_zero_percent_introductory_rate_on_balance_transfer: SKIP,
|
|
139
|
+
is_accepting_applicants: SKIP,
|
|
140
|
+
is_active_credit_card_product: SKIP,
|
|
141
|
+
is_small_business_card: SKIP, name: SKIP,
|
|
142
|
+
additional_properties: nil)
|
|
143
|
+
# Add additional model properties to the instance
|
|
144
|
+
additional_properties = {} if additional_properties.nil?
|
|
145
|
+
|
|
146
|
+
@annual_fee = annual_fee unless annual_fee == SKIP
|
|
147
|
+
unless duration_of_introductory_rate_on_balance_transfer == SKIP
|
|
148
|
+
@duration_of_introductory_rate_on_balance_transfer =
|
|
149
|
+
duration_of_introductory_rate_on_balance_transfer
|
|
150
|
+
end
|
|
151
|
+
unless duration_of_introductory_rate_on_purchases == SKIP
|
|
152
|
+
@duration_of_introductory_rate_on_purchases =
|
|
153
|
+
duration_of_introductory_rate_on_purchases
|
|
154
|
+
end
|
|
155
|
+
@guid = guid unless guid == SKIP
|
|
156
|
+
@has_cashback_rewards = has_cashback_rewards unless has_cashback_rewards == SKIP
|
|
157
|
+
@has_other_rewards = has_other_rewards unless has_other_rewards == SKIP
|
|
158
|
+
@has_travel_rewards = has_travel_rewards unless has_travel_rewards == SKIP
|
|
159
|
+
unless has_zero_introductory_annual_fee == SKIP
|
|
160
|
+
@has_zero_introductory_annual_fee =
|
|
161
|
+
has_zero_introductory_annual_fee
|
|
162
|
+
end
|
|
163
|
+
unless has_zero_percent_introductory_rate == SKIP
|
|
164
|
+
@has_zero_percent_introductory_rate =
|
|
165
|
+
has_zero_percent_introductory_rate
|
|
166
|
+
end
|
|
167
|
+
unless has_zero_percent_introductory_rate_on_balance_transfer == SKIP
|
|
168
|
+
@has_zero_percent_introductory_rate_on_balance_transfer =
|
|
169
|
+
has_zero_percent_introductory_rate_on_balance_transfer
|
|
170
|
+
end
|
|
171
|
+
@is_accepting_applicants = is_accepting_applicants unless is_accepting_applicants == SKIP
|
|
172
|
+
unless is_active_credit_card_product == SKIP
|
|
173
|
+
@is_active_credit_card_product =
|
|
174
|
+
is_active_credit_card_product
|
|
175
|
+
end
|
|
176
|
+
@is_small_business_card = is_small_business_card unless is_small_business_card == SKIP
|
|
177
|
+
@name = name unless name == SKIP
|
|
178
|
+
@additional_properties = additional_properties
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Creates an instance of the object from a hash.
|
|
182
|
+
def self.from_hash(hash)
|
|
183
|
+
return nil unless hash
|
|
184
|
+
|
|
185
|
+
# Extract variables from the hash.
|
|
186
|
+
annual_fee = hash.key?('annual_fee') ? hash['annual_fee'] : SKIP
|
|
187
|
+
duration_of_introductory_rate_on_balance_transfer =
|
|
188
|
+
hash.key?('duration_of_introductory_rate_on_balance_transfer') ? hash['duration_of_introductory_rate_on_balance_transfer'] : SKIP
|
|
189
|
+
duration_of_introductory_rate_on_purchases =
|
|
190
|
+
hash.key?('duration_of_introductory_rate_on_purchases') ? hash['duration_of_introductory_rate_on_purchases'] : SKIP
|
|
191
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
192
|
+
has_cashback_rewards =
|
|
193
|
+
hash.key?('has_cashback_rewards') ? hash['has_cashback_rewards'] : SKIP
|
|
194
|
+
has_other_rewards =
|
|
195
|
+
hash.key?('has_other_rewards') ? hash['has_other_rewards'] : SKIP
|
|
196
|
+
has_travel_rewards =
|
|
197
|
+
hash.key?('has_travel_rewards') ? hash['has_travel_rewards'] : SKIP
|
|
198
|
+
has_zero_introductory_annual_fee =
|
|
199
|
+
hash.key?('has_zero_introductory_annual_fee') ? hash['has_zero_introductory_annual_fee'] : SKIP
|
|
200
|
+
has_zero_percent_introductory_rate =
|
|
201
|
+
hash.key?('has_zero_percent_introductory_rate') ? hash['has_zero_percent_introductory_rate'] : SKIP
|
|
202
|
+
has_zero_percent_introductory_rate_on_balance_transfer =
|
|
203
|
+
hash.key?('has_zero_percent_introductory_rate_on_balance_transfer') ? hash['has_zero_percent_introductory_rate_on_balance_transfer'] : SKIP
|
|
204
|
+
is_accepting_applicants =
|
|
205
|
+
hash.key?('is_accepting_applicants') ? hash['is_accepting_applicants'] : SKIP
|
|
206
|
+
is_active_credit_card_product =
|
|
207
|
+
hash.key?('is_active_credit_card_product') ? hash['is_active_credit_card_product'] : SKIP
|
|
208
|
+
is_small_business_card =
|
|
209
|
+
hash.key?('is_small_business_card') ? hash['is_small_business_card'] : SKIP
|
|
210
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
211
|
+
|
|
212
|
+
# Create a new hash for additional properties, removing known properties.
|
|
213
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
214
|
+
|
|
215
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
216
|
+
new_hash, proc { |value| value }
|
|
217
|
+
)
|
|
218
|
+
|
|
219
|
+
# Create object from extracted values.
|
|
220
|
+
CreditCardProduct.new(annual_fee: annual_fee,
|
|
221
|
+
duration_of_introductory_rate_on_balance_transfer: duration_of_introductory_rate_on_balance_transfer,
|
|
222
|
+
duration_of_introductory_rate_on_purchases: duration_of_introductory_rate_on_purchases,
|
|
223
|
+
guid: guid,
|
|
224
|
+
has_cashback_rewards: has_cashback_rewards,
|
|
225
|
+
has_other_rewards: has_other_rewards,
|
|
226
|
+
has_travel_rewards: has_travel_rewards,
|
|
227
|
+
has_zero_introductory_annual_fee: has_zero_introductory_annual_fee,
|
|
228
|
+
has_zero_percent_introductory_rate: has_zero_percent_introductory_rate,
|
|
229
|
+
has_zero_percent_introductory_rate_on_balance_transfer: has_zero_percent_introductory_rate_on_balance_transfer,
|
|
230
|
+
is_accepting_applicants: is_accepting_applicants,
|
|
231
|
+
is_active_credit_card_product: is_active_credit_card_product,
|
|
232
|
+
is_small_business_card: is_small_business_card,
|
|
233
|
+
name: name,
|
|
234
|
+
additional_properties: additional_properties)
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Provides a human-readable string representation of the object.
|
|
238
|
+
def to_s
|
|
239
|
+
class_name = self.class.name.split('::').last
|
|
240
|
+
"<#{class_name} annual_fee: #{@annual_fee},"\
|
|
241
|
+
' duration_of_introductory_rate_on_balance_transfer:'\
|
|
242
|
+
" #{@duration_of_introductory_rate_on_balance_transfer},"\
|
|
243
|
+
' duration_of_introductory_rate_on_purchases:'\
|
|
244
|
+
" #{@duration_of_introductory_rate_on_purchases}, guid: #{@guid}, has_cashback_rewards:"\
|
|
245
|
+
" #{@has_cashback_rewards}, has_other_rewards: #{@has_other_rewards}, has_travel_rewards:"\
|
|
246
|
+
" #{@has_travel_rewards}, has_zero_introductory_annual_fee:"\
|
|
247
|
+
" #{@has_zero_introductory_annual_fee}, has_zero_percent_introductory_rate:"\
|
|
248
|
+
" #{@has_zero_percent_introductory_rate},"\
|
|
249
|
+
' has_zero_percent_introductory_rate_on_balance_transfer:'\
|
|
250
|
+
" #{@has_zero_percent_introductory_rate_on_balance_transfer}, is_accepting_applicants:"\
|
|
251
|
+
" #{@is_accepting_applicants}, is_active_credit_card_product:"\
|
|
252
|
+
" #{@is_active_credit_card_product}, is_small_business_card: #{@is_small_business_card},"\
|
|
253
|
+
" name: #{@name}, additional_properties: #{@additional_properties}>"
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
257
|
+
def inspect
|
|
258
|
+
class_name = self.class.name.split('::').last
|
|
259
|
+
"<#{class_name} annual_fee: #{@annual_fee.inspect},"\
|
|
260
|
+
' duration_of_introductory_rate_on_balance_transfer:'\
|
|
261
|
+
" #{@duration_of_introductory_rate_on_balance_transfer.inspect},"\
|
|
262
|
+
' duration_of_introductory_rate_on_purchases:'\
|
|
263
|
+
" #{@duration_of_introductory_rate_on_purchases.inspect}, guid: #{@guid.inspect},"\
|
|
264
|
+
" has_cashback_rewards: #{@has_cashback_rewards.inspect}, has_other_rewards:"\
|
|
265
|
+
" #{@has_other_rewards.inspect}, has_travel_rewards: #{@has_travel_rewards.inspect},"\
|
|
266
|
+
" has_zero_introductory_annual_fee: #{@has_zero_introductory_annual_fee.inspect},"\
|
|
267
|
+
" has_zero_percent_introductory_rate: #{@has_zero_percent_introductory_rate.inspect},"\
|
|
268
|
+
' has_zero_percent_introductory_rate_on_balance_transfer:'\
|
|
269
|
+
" #{@has_zero_percent_introductory_rate_on_balance_transfer.inspect},"\
|
|
270
|
+
" is_accepting_applicants: #{@is_accepting_applicants.inspect},"\
|
|
271
|
+
" is_active_credit_card_product: #{@is_active_credit_card_product.inspect},"\
|
|
272
|
+
" is_small_business_card: #{@is_small_business_card.inspect}, name: #{@name.inspect},"\
|
|
273
|
+
" additional_properties: #{@additional_properties}>"
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
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
|
+
# CreditCardProductResponse Model.
|
|
8
|
+
class CreditCardProductResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [CreditCardProduct]
|
|
14
|
+
attr_accessor :credit_card_product
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['credit_card_product'] = 'credit_card_product'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
credit_card_product
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(credit_card_product: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@credit_card_product = credit_card_product unless credit_card_product == 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
|
+
credit_card_product = CreditCardProduct.from_hash(hash['credit_card_product']) if
|
|
49
|
+
hash['credit_card_product']
|
|
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
|
+
CreditCardProductResponse.new(credit_card_product: credit_card_product,
|
|
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} credit_card_product: #{@credit_card_product}, 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} credit_card_product: #{@credit_card_product.inspect},"\
|
|
74
|
+
" additional_properties: #{@additional_properties}>"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# Contains a products array that specifies the products you want to aggregate.
|
|
8
|
+
class DataRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Contains the products you want to aggregate upon a successful connection.
|
|
13
|
+
# For accepted products, see [Defining
|
|
14
|
+
# Products](/products/connectivity/overview/intro-to-unified-product-orderin
|
|
15
|
+
# g/#defining-products).
|
|
16
|
+
# @return [Array[SupportedProduct]]
|
|
17
|
+
attr_accessor :products
|
|
18
|
+
|
|
19
|
+
# A mapping from model property names to API property names.
|
|
20
|
+
def self.names
|
|
21
|
+
@_hash = {} if @_hash.nil?
|
|
22
|
+
@_hash['products'] = 'products'
|
|
23
|
+
@_hash
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# An array for optional fields
|
|
27
|
+
def self.optionals
|
|
28
|
+
[]
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# An array for nullable fields
|
|
32
|
+
def self.nullables
|
|
33
|
+
[]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def initialize(products:, additional_properties: nil)
|
|
37
|
+
# Add additional model properties to the instance
|
|
38
|
+
additional_properties = {} if additional_properties.nil?
|
|
39
|
+
|
|
40
|
+
@products = products
|
|
41
|
+
@additional_properties = additional_properties
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Creates an instance of the object from a hash.
|
|
45
|
+
def self.from_hash(hash)
|
|
46
|
+
return nil unless hash
|
|
47
|
+
|
|
48
|
+
# Extract variables from the hash.
|
|
49
|
+
products = hash.key?('products') ? hash['products'] : nil
|
|
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
|
+
DataRequest.new(products: products,
|
|
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} products: #{@products}, additional_properties: #{@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} products: #{@products.inspect}, additional_properties:"\
|
|
73
|
+
" #{@additional_properties}>"
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# Only use this option if the `widget_type` is set to `spending_widget`. When
|
|
8
|
+
# used with the Legacy Spending widget, used to filter by date range. Set the
|
|
9
|
+
# `date_range` using `start_date` (string) and `end_date` (string).
|
|
10
|
+
class DateRange < BaseModel
|
|
11
|
+
SKIP = Object.new
|
|
12
|
+
private_constant :SKIP
|
|
13
|
+
|
|
14
|
+
# The start date of the range in `YYYY-MM-DD` format.
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :start_date
|
|
17
|
+
|
|
18
|
+
# The end date of the range in `YYYY-MM-DD` format.
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :end_date
|
|
21
|
+
|
|
22
|
+
# A mapping from model property names to API property names.
|
|
23
|
+
def self.names
|
|
24
|
+
@_hash = {} if @_hash.nil?
|
|
25
|
+
@_hash['start_date'] = 'start_date'
|
|
26
|
+
@_hash['end_date'] = 'end_date'
|
|
27
|
+
@_hash
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for optional fields
|
|
31
|
+
def self.optionals
|
|
32
|
+
%w[
|
|
33
|
+
start_date
|
|
34
|
+
end_date
|
|
35
|
+
]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for nullable fields
|
|
39
|
+
def self.nullables
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def initialize(start_date: SKIP, end_date: SKIP, additional_properties: nil)
|
|
44
|
+
# Add additional model properties to the instance
|
|
45
|
+
additional_properties = {} if additional_properties.nil?
|
|
46
|
+
|
|
47
|
+
@start_date = start_date unless start_date == SKIP
|
|
48
|
+
@end_date = end_date unless end_date == SKIP
|
|
49
|
+
@additional_properties = additional_properties
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Creates an instance of the object from a hash.
|
|
53
|
+
def self.from_hash(hash)
|
|
54
|
+
return nil unless hash
|
|
55
|
+
|
|
56
|
+
# Extract variables from the hash.
|
|
57
|
+
start_date = hash.key?('start_date') ? hash['start_date'] : SKIP
|
|
58
|
+
end_date = hash.key?('end_date') ? hash['end_date'] : SKIP
|
|
59
|
+
|
|
60
|
+
# Create a new hash for additional properties, removing known properties.
|
|
61
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
62
|
+
|
|
63
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
64
|
+
new_hash, proc { |value| value }
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# Create object from extracted values.
|
|
68
|
+
DateRange.new(start_date: start_date,
|
|
69
|
+
end_date: end_date,
|
|
70
|
+
additional_properties: additional_properties)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Provides a human-readable string representation of the object.
|
|
74
|
+
def to_s
|
|
75
|
+
class_name = self.class.name.split('::').last
|
|
76
|
+
"<#{class_name} start_date: #{@start_date}, end_date: #{@end_date}, additional_properties:"\
|
|
77
|
+
" #{@additional_properties}>"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
81
|
+
def inspect
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} start_date: #{@start_date.inspect}, end_date: #{@end_date.inspect},"\
|
|
84
|
+
" additional_properties: #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
# DateRangeCategoryTotalsResponse Model.
|
|
8
|
+
class DateRangeCategoryTotalsResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The unique identifier for the category. Defined by MX.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :category_guid
|
|
15
|
+
|
|
16
|
+
# The Unix timestamp for the end date of the date range.
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :end_date
|
|
19
|
+
|
|
20
|
+
# The Unix timestamp for the start date of the date range.
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
attr_accessor :start_date
|
|
23
|
+
|
|
24
|
+
# The total amount for the category within the date range.
|
|
25
|
+
# @return [Float]
|
|
26
|
+
attr_accessor :total
|
|
27
|
+
|
|
28
|
+
# The unique identifier for the user. Defined by MX.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :user_guid
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['category_guid'] = 'category_guid'
|
|
36
|
+
@_hash['end_date'] = 'end_date'
|
|
37
|
+
@_hash['start_date'] = 'start_date'
|
|
38
|
+
@_hash['total'] = 'total'
|
|
39
|
+
@_hash['user_guid'] = 'user_guid'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
%w[
|
|
46
|
+
category_guid
|
|
47
|
+
end_date
|
|
48
|
+
start_date
|
|
49
|
+
total
|
|
50
|
+
user_guid
|
|
51
|
+
]
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# An array for nullable fields
|
|
55
|
+
def self.nullables
|
|
56
|
+
[]
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def initialize(category_guid: SKIP, end_date: SKIP, start_date: SKIP,
|
|
60
|
+
total: SKIP, user_guid: SKIP, additional_properties: nil)
|
|
61
|
+
# Add additional model properties to the instance
|
|
62
|
+
additional_properties = {} if additional_properties.nil?
|
|
63
|
+
|
|
64
|
+
@category_guid = category_guid unless category_guid == SKIP
|
|
65
|
+
@end_date = end_date unless end_date == SKIP
|
|
66
|
+
@start_date = start_date unless start_date == SKIP
|
|
67
|
+
@total = total unless total == SKIP
|
|
68
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
69
|
+
@additional_properties = additional_properties
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Creates an instance of the object from a hash.
|
|
73
|
+
def self.from_hash(hash)
|
|
74
|
+
return nil unless hash
|
|
75
|
+
|
|
76
|
+
# Extract variables from the hash.
|
|
77
|
+
category_guid = hash.key?('category_guid') ? hash['category_guid'] : SKIP
|
|
78
|
+
end_date = hash.key?('end_date') ? hash['end_date'] : SKIP
|
|
79
|
+
start_date = hash.key?('start_date') ? hash['start_date'] : SKIP
|
|
80
|
+
total = hash.key?('total') ? hash['total'] : SKIP
|
|
81
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
82
|
+
|
|
83
|
+
# Create a new hash for additional properties, removing known properties.
|
|
84
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
85
|
+
|
|
86
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
87
|
+
new_hash, proc { |value| value }
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
# Create object from extracted values.
|
|
91
|
+
DateRangeCategoryTotalsResponse.new(category_guid: category_guid,
|
|
92
|
+
end_date: end_date,
|
|
93
|
+
start_date: start_date,
|
|
94
|
+
total: total,
|
|
95
|
+
user_guid: user_guid,
|
|
96
|
+
additional_properties: additional_properties)
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Provides a human-readable string representation of the object.
|
|
100
|
+
def to_s
|
|
101
|
+
class_name = self.class.name.split('::').last
|
|
102
|
+
"<#{class_name} category_guid: #{@category_guid}, end_date: #{@end_date}, start_date:"\
|
|
103
|
+
" #{@start_date}, total: #{@total}, user_guid: #{@user_guid}, additional_properties:"\
|
|
104
|
+
" #{@additional_properties}>"
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
108
|
+
def inspect
|
|
109
|
+
class_name = self.class.name.split('::').last
|
|
110
|
+
"<#{class_name} category_guid: #{@category_guid.inspect}, end_date: #{@end_date.inspect},"\
|
|
111
|
+
" start_date: #{@start_date.inspect}, total: #{@total.inspect}, user_guid:"\
|
|
112
|
+
" #{@user_guid.inspect}, additional_properties: #{@additional_properties}>"
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|