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,208 @@
|
|
|
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
|
+
# ScheduledPaymentResponse Model.
|
|
8
|
+
class ScheduledPaymentResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The monetary amount of the `transaction`.
|
|
13
|
+
# @return [Float]
|
|
14
|
+
attr_accessor :amount
|
|
15
|
+
|
|
16
|
+
# The date and time the scheduled payment was created, represented in ISO
|
|
17
|
+
# 8601 format with a timestamp.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :created_at
|
|
20
|
+
|
|
21
|
+
# A human-readable description of the `scheduled_payment`, for example,
|
|
22
|
+
# Power bill.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :description
|
|
25
|
+
|
|
26
|
+
# The unique identifier for the scheduled payment. Defined by MX.
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :guid
|
|
29
|
+
|
|
30
|
+
# Indicates whether the `scheduled_payment` has been paid or not. This field
|
|
31
|
+
# is only applicable to one-time transactions.
|
|
32
|
+
# @return [TrueClass | FalseClass]
|
|
33
|
+
attr_accessor :is_completed
|
|
34
|
+
|
|
35
|
+
# Deprecated. If required, reach out to MX to discuss an alternative.
|
|
36
|
+
# @return [TrueClass | FalseClass]
|
|
37
|
+
attr_accessor :is_recurring
|
|
38
|
+
|
|
39
|
+
# The unique identifier for the merchant. Defined by MX.
|
|
40
|
+
# @return [String]
|
|
41
|
+
attr_accessor :merchant_guid
|
|
42
|
+
|
|
43
|
+
# The date on which the payment is scheduled to occur, given in ISO 8601
|
|
44
|
+
# format without a timestamp.
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :occurs_on
|
|
47
|
+
|
|
48
|
+
# The day of the month where the next payment is expected to occur.
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
attr_accessor :recurrence_day
|
|
51
|
+
|
|
52
|
+
# The type of recurrence schedule.
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :recurrence_type
|
|
55
|
+
|
|
56
|
+
# The type of transaction. Can be either `CREDIT` or `DEBIT`.
|
|
57
|
+
# @return [TransactionType]
|
|
58
|
+
attr_accessor :transaction_type
|
|
59
|
+
|
|
60
|
+
# The date and time the resource was last updated in ISO 8601 format with a
|
|
61
|
+
# timestamp.
|
|
62
|
+
# For categories, this field will always be `null` when `is_default` is
|
|
63
|
+
# `true`.
|
|
64
|
+
# @return [String]
|
|
65
|
+
attr_accessor :updated_at
|
|
66
|
+
|
|
67
|
+
# The unique identifier for the user. Defined by MX.
|
|
68
|
+
# @return [String]
|
|
69
|
+
attr_accessor :user_guid
|
|
70
|
+
|
|
71
|
+
# A mapping from model property names to API property names.
|
|
72
|
+
def self.names
|
|
73
|
+
@_hash = {} if @_hash.nil?
|
|
74
|
+
@_hash['amount'] = 'amount'
|
|
75
|
+
@_hash['created_at'] = 'created_at'
|
|
76
|
+
@_hash['description'] = 'description'
|
|
77
|
+
@_hash['guid'] = 'guid'
|
|
78
|
+
@_hash['is_completed'] = 'is_completed'
|
|
79
|
+
@_hash['is_recurring'] = 'is_recurring'
|
|
80
|
+
@_hash['merchant_guid'] = 'merchant_guid'
|
|
81
|
+
@_hash['occurs_on'] = 'occurs_on'
|
|
82
|
+
@_hash['recurrence_day'] = 'recurrence_day'
|
|
83
|
+
@_hash['recurrence_type'] = 'recurrence_type'
|
|
84
|
+
@_hash['transaction_type'] = 'transaction_type'
|
|
85
|
+
@_hash['updated_at'] = 'updated_at'
|
|
86
|
+
@_hash['user_guid'] = 'user_guid'
|
|
87
|
+
@_hash
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# An array for optional fields
|
|
91
|
+
def self.optionals
|
|
92
|
+
%w[
|
|
93
|
+
amount
|
|
94
|
+
created_at
|
|
95
|
+
description
|
|
96
|
+
guid
|
|
97
|
+
is_completed
|
|
98
|
+
is_recurring
|
|
99
|
+
merchant_guid
|
|
100
|
+
occurs_on
|
|
101
|
+
recurrence_day
|
|
102
|
+
recurrence_type
|
|
103
|
+
transaction_type
|
|
104
|
+
updated_at
|
|
105
|
+
user_guid
|
|
106
|
+
]
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# An array for nullable fields
|
|
110
|
+
def self.nullables
|
|
111
|
+
[]
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def initialize(amount: SKIP, created_at: SKIP, description: SKIP,
|
|
115
|
+
guid: SKIP, is_completed: SKIP, is_recurring: SKIP,
|
|
116
|
+
merchant_guid: SKIP, occurs_on: SKIP, recurrence_day: SKIP,
|
|
117
|
+
recurrence_type: SKIP, transaction_type: SKIP,
|
|
118
|
+
updated_at: SKIP, user_guid: SKIP,
|
|
119
|
+
additional_properties: nil)
|
|
120
|
+
# Add additional model properties to the instance
|
|
121
|
+
additional_properties = {} if additional_properties.nil?
|
|
122
|
+
|
|
123
|
+
@amount = amount unless amount == SKIP
|
|
124
|
+
@created_at = created_at unless created_at == SKIP
|
|
125
|
+
@description = description unless description == SKIP
|
|
126
|
+
@guid = guid unless guid == SKIP
|
|
127
|
+
@is_completed = is_completed unless is_completed == SKIP
|
|
128
|
+
@is_recurring = is_recurring unless is_recurring == SKIP
|
|
129
|
+
@merchant_guid = merchant_guid unless merchant_guid == SKIP
|
|
130
|
+
@occurs_on = occurs_on unless occurs_on == SKIP
|
|
131
|
+
@recurrence_day = recurrence_day unless recurrence_day == SKIP
|
|
132
|
+
@recurrence_type = recurrence_type unless recurrence_type == SKIP
|
|
133
|
+
@transaction_type = transaction_type unless transaction_type == SKIP
|
|
134
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
135
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
136
|
+
@additional_properties = additional_properties
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Creates an instance of the object from a hash.
|
|
140
|
+
def self.from_hash(hash)
|
|
141
|
+
return nil unless hash
|
|
142
|
+
|
|
143
|
+
# Extract variables from the hash.
|
|
144
|
+
amount = hash.key?('amount') ? hash['amount'] : SKIP
|
|
145
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
146
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
147
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
148
|
+
is_completed = hash.key?('is_completed') ? hash['is_completed'] : SKIP
|
|
149
|
+
is_recurring = hash.key?('is_recurring') ? hash['is_recurring'] : SKIP
|
|
150
|
+
merchant_guid = hash.key?('merchant_guid') ? hash['merchant_guid'] : SKIP
|
|
151
|
+
occurs_on = hash.key?('occurs_on') ? hash['occurs_on'] : SKIP
|
|
152
|
+
recurrence_day =
|
|
153
|
+
hash.key?('recurrence_day') ? hash['recurrence_day'] : SKIP
|
|
154
|
+
recurrence_type =
|
|
155
|
+
hash.key?('recurrence_type') ? hash['recurrence_type'] : SKIP
|
|
156
|
+
transaction_type =
|
|
157
|
+
hash.key?('transaction_type') ? hash['transaction_type'] : SKIP
|
|
158
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
159
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
160
|
+
|
|
161
|
+
# Create a new hash for additional properties, removing known properties.
|
|
162
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
163
|
+
|
|
164
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
165
|
+
new_hash, proc { |value| value }
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
# Create object from extracted values.
|
|
169
|
+
ScheduledPaymentResponse.new(amount: amount,
|
|
170
|
+
created_at: created_at,
|
|
171
|
+
description: description,
|
|
172
|
+
guid: guid,
|
|
173
|
+
is_completed: is_completed,
|
|
174
|
+
is_recurring: is_recurring,
|
|
175
|
+
merchant_guid: merchant_guid,
|
|
176
|
+
occurs_on: occurs_on,
|
|
177
|
+
recurrence_day: recurrence_day,
|
|
178
|
+
recurrence_type: recurrence_type,
|
|
179
|
+
transaction_type: transaction_type,
|
|
180
|
+
updated_at: updated_at,
|
|
181
|
+
user_guid: user_guid,
|
|
182
|
+
additional_properties: additional_properties)
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Provides a human-readable string representation of the object.
|
|
186
|
+
def to_s
|
|
187
|
+
class_name = self.class.name.split('::').last
|
|
188
|
+
"<#{class_name} amount: #{@amount}, created_at: #{@created_at}, description:"\
|
|
189
|
+
" #{@description}, guid: #{@guid}, is_completed: #{@is_completed}, is_recurring:"\
|
|
190
|
+
" #{@is_recurring}, merchant_guid: #{@merchant_guid}, occurs_on: #{@occurs_on},"\
|
|
191
|
+
" recurrence_day: #{@recurrence_day}, recurrence_type: #{@recurrence_type},"\
|
|
192
|
+
" transaction_type: #{@transaction_type}, updated_at: #{@updated_at}, user_guid:"\
|
|
193
|
+
" #{@user_guid}, additional_properties: #{@additional_properties}>"
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
197
|
+
def inspect
|
|
198
|
+
class_name = self.class.name.split('::').last
|
|
199
|
+
"<#{class_name} amount: #{@amount.inspect}, created_at: #{@created_at.inspect},"\
|
|
200
|
+
" description: #{@description.inspect}, guid: #{@guid.inspect}, is_completed:"\
|
|
201
|
+
" #{@is_completed.inspect}, is_recurring: #{@is_recurring.inspect}, merchant_guid:"\
|
|
202
|
+
" #{@merchant_guid.inspect}, occurs_on: #{@occurs_on.inspect}, recurrence_day:"\
|
|
203
|
+
" #{@recurrence_day.inspect}, recurrence_type: #{@recurrence_type.inspect},"\
|
|
204
|
+
" transaction_type: #{@transaction_type.inspect}, updated_at: #{@updated_at.inspect},"\
|
|
205
|
+
" user_guid: #{@user_guid.inspect}, additional_properties: #{@additional_properties}>"
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
# ScheduledPaymentsResponseBody Model.
|
|
8
|
+
class ScheduledPaymentsResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[ScheduledPaymentResponse]]
|
|
14
|
+
attr_accessor :scheduled_payments
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [PaginationResponse]
|
|
18
|
+
attr_accessor :pagination
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['scheduled_payments'] = 'scheduled_payments'
|
|
24
|
+
@_hash['pagination'] = 'pagination'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
scheduled_payments
|
|
32
|
+
pagination
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(scheduled_payments: SKIP, pagination: SKIP,
|
|
42
|
+
additional_properties: nil)
|
|
43
|
+
# Add additional model properties to the instance
|
|
44
|
+
additional_properties = {} if additional_properties.nil?
|
|
45
|
+
|
|
46
|
+
@scheduled_payments = scheduled_payments unless scheduled_payments == SKIP
|
|
47
|
+
@pagination = pagination unless pagination == SKIP
|
|
48
|
+
@additional_properties = additional_properties
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Creates an instance of the object from a hash.
|
|
52
|
+
def self.from_hash(hash)
|
|
53
|
+
return nil unless hash
|
|
54
|
+
|
|
55
|
+
# Extract variables from the hash.
|
|
56
|
+
# Parameter is an array, so we need to iterate through it
|
|
57
|
+
scheduled_payments = nil
|
|
58
|
+
unless hash['scheduled_payments'].nil?
|
|
59
|
+
scheduled_payments = []
|
|
60
|
+
hash['scheduled_payments'].each do |structure|
|
|
61
|
+
scheduled_payments << (ScheduledPaymentResponse.from_hash(structure) if structure)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
scheduled_payments = SKIP unless hash.key?('scheduled_payments')
|
|
66
|
+
pagination = PaginationResponse.from_hash(hash['pagination']) if hash['pagination']
|
|
67
|
+
|
|
68
|
+
# Create a new hash for additional properties, removing known properties.
|
|
69
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
70
|
+
|
|
71
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
72
|
+
new_hash, proc { |value| value }
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
# Create object from extracted values.
|
|
76
|
+
ScheduledPaymentsResponseBody.new(scheduled_payments: scheduled_payments,
|
|
77
|
+
pagination: pagination,
|
|
78
|
+
additional_properties: additional_properties)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Provides a human-readable string representation of the object.
|
|
82
|
+
def to_s
|
|
83
|
+
class_name = self.class.name.split('::').last
|
|
84
|
+
"<#{class_name} scheduled_payments: #{@scheduled_payments}, pagination: #{@pagination},"\
|
|
85
|
+
" additional_properties: #{@additional_properties}>"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
89
|
+
def inspect
|
|
90
|
+
class_name = self.class.name.split('::').last
|
|
91
|
+
"<#{class_name} scheduled_payments: #{@scheduled_payments.inspect}, pagination:"\
|
|
92
|
+
" #{@pagination.inspect}, additional_properties: #{@additional_properties}>"
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
# SpendingPlanAccountResponse Model.
|
|
8
|
+
class SpendingPlanAccountResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The unique identifier for an account. Defined by MX.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :account_guid
|
|
15
|
+
|
|
16
|
+
# The unique identifier for the client associated with the insight. Defined
|
|
17
|
+
# by MX.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :client_guid
|
|
20
|
+
|
|
21
|
+
# The date and time the spending plan account was created, represented in
|
|
22
|
+
# ISO 8601 format with a timestamp.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :created_at
|
|
25
|
+
|
|
26
|
+
# The unique identifier for the spending plan account. Defined by MX.
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :guid
|
|
29
|
+
|
|
30
|
+
# The unique identifier for the spending plan. Defined by MX.
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :spending_plan_guid
|
|
33
|
+
|
|
34
|
+
# The date and time the resource was last updated in ISO 8601 format with a
|
|
35
|
+
# timestamp.
|
|
36
|
+
# For categories, this field will always be `null` when `is_default` is
|
|
37
|
+
# `true`.
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :updated_at
|
|
40
|
+
|
|
41
|
+
# The unique identifier for the user. Defined by MX.
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :user_guid
|
|
44
|
+
|
|
45
|
+
# A mapping from model property names to API property names.
|
|
46
|
+
def self.names
|
|
47
|
+
@_hash = {} if @_hash.nil?
|
|
48
|
+
@_hash['account_guid'] = 'account_guid'
|
|
49
|
+
@_hash['client_guid'] = 'client_guid'
|
|
50
|
+
@_hash['created_at'] = 'created_at'
|
|
51
|
+
@_hash['guid'] = 'guid'
|
|
52
|
+
@_hash['spending_plan_guid'] = 'spending_plan_guid'
|
|
53
|
+
@_hash['updated_at'] = 'updated_at'
|
|
54
|
+
@_hash['user_guid'] = 'user_guid'
|
|
55
|
+
@_hash
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# An array for optional fields
|
|
59
|
+
def self.optionals
|
|
60
|
+
%w[
|
|
61
|
+
account_guid
|
|
62
|
+
client_guid
|
|
63
|
+
created_at
|
|
64
|
+
guid
|
|
65
|
+
spending_plan_guid
|
|
66
|
+
updated_at
|
|
67
|
+
user_guid
|
|
68
|
+
]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# An array for nullable fields
|
|
72
|
+
def self.nullables
|
|
73
|
+
[]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def initialize(account_guid: SKIP, client_guid: SKIP, created_at: SKIP,
|
|
77
|
+
guid: SKIP, spending_plan_guid: SKIP, updated_at: SKIP,
|
|
78
|
+
user_guid: SKIP, additional_properties: nil)
|
|
79
|
+
# Add additional model properties to the instance
|
|
80
|
+
additional_properties = {} if additional_properties.nil?
|
|
81
|
+
|
|
82
|
+
@account_guid = account_guid unless account_guid == SKIP
|
|
83
|
+
@client_guid = client_guid unless client_guid == SKIP
|
|
84
|
+
@created_at = created_at unless created_at == SKIP
|
|
85
|
+
@guid = guid unless guid == SKIP
|
|
86
|
+
@spending_plan_guid = spending_plan_guid unless spending_plan_guid == SKIP
|
|
87
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
88
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
89
|
+
@additional_properties = additional_properties
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Creates an instance of the object from a hash.
|
|
93
|
+
def self.from_hash(hash)
|
|
94
|
+
return nil unless hash
|
|
95
|
+
|
|
96
|
+
# Extract variables from the hash.
|
|
97
|
+
account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
|
|
98
|
+
client_guid = hash.key?('client_guid') ? hash['client_guid'] : SKIP
|
|
99
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
100
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
101
|
+
spending_plan_guid =
|
|
102
|
+
hash.key?('spending_plan_guid') ? hash['spending_plan_guid'] : SKIP
|
|
103
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
104
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
105
|
+
|
|
106
|
+
# Create a new hash for additional properties, removing known properties.
|
|
107
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
108
|
+
|
|
109
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
110
|
+
new_hash, proc { |value| value }
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
# Create object from extracted values.
|
|
114
|
+
SpendingPlanAccountResponse.new(account_guid: account_guid,
|
|
115
|
+
client_guid: client_guid,
|
|
116
|
+
created_at: created_at,
|
|
117
|
+
guid: guid,
|
|
118
|
+
spending_plan_guid: spending_plan_guid,
|
|
119
|
+
updated_at: updated_at,
|
|
120
|
+
user_guid: user_guid,
|
|
121
|
+
additional_properties: additional_properties)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Provides a human-readable string representation of the object.
|
|
125
|
+
def to_s
|
|
126
|
+
class_name = self.class.name.split('::').last
|
|
127
|
+
"<#{class_name} account_guid: #{@account_guid}, client_guid: #{@client_guid}, created_at:"\
|
|
128
|
+
" #{@created_at}, guid: #{@guid}, spending_plan_guid: #{@spending_plan_guid}, updated_at:"\
|
|
129
|
+
" #{@updated_at}, user_guid: #{@user_guid}, additional_properties:"\
|
|
130
|
+
" #{@additional_properties}>"
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
134
|
+
def inspect
|
|
135
|
+
class_name = self.class.name.split('::').last
|
|
136
|
+
"<#{class_name} account_guid: #{@account_guid.inspect}, client_guid:"\
|
|
137
|
+
" #{@client_guid.inspect}, created_at: #{@created_at.inspect}, guid: #{@guid.inspect},"\
|
|
138
|
+
" spending_plan_guid: #{@spending_plan_guid.inspect}, updated_at: #{@updated_at.inspect},"\
|
|
139
|
+
" user_guid: #{@user_guid.inspect}, additional_properties: #{@additional_properties}>"
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
# SpendingPlanAccountsResponse Model.
|
|
8
|
+
class SpendingPlanAccountsResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[SpendingPlanAccountResponse]]
|
|
14
|
+
attr_accessor :spending_plan_accounts
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [PaginationResponse]
|
|
18
|
+
attr_accessor :pagination
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['spending_plan_accounts'] = 'spending_plan_accounts'
|
|
24
|
+
@_hash['pagination'] = 'pagination'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
spending_plan_accounts
|
|
32
|
+
pagination
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(spending_plan_accounts: SKIP, pagination: SKIP,
|
|
42
|
+
additional_properties: nil)
|
|
43
|
+
# Add additional model properties to the instance
|
|
44
|
+
additional_properties = {} if additional_properties.nil?
|
|
45
|
+
|
|
46
|
+
@spending_plan_accounts = spending_plan_accounts unless spending_plan_accounts == SKIP
|
|
47
|
+
@pagination = pagination unless pagination == SKIP
|
|
48
|
+
@additional_properties = additional_properties
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Creates an instance of the object from a hash.
|
|
52
|
+
def self.from_hash(hash)
|
|
53
|
+
return nil unless hash
|
|
54
|
+
|
|
55
|
+
# Extract variables from the hash.
|
|
56
|
+
# Parameter is an array, so we need to iterate through it
|
|
57
|
+
spending_plan_accounts = nil
|
|
58
|
+
unless hash['spending_plan_accounts'].nil?
|
|
59
|
+
spending_plan_accounts = []
|
|
60
|
+
hash['spending_plan_accounts'].each do |structure|
|
|
61
|
+
spending_plan_accounts << (SpendingPlanAccountResponse.from_hash(structure) if structure)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
spending_plan_accounts = SKIP unless hash.key?('spending_plan_accounts')
|
|
66
|
+
pagination = PaginationResponse.from_hash(hash['pagination']) if hash['pagination']
|
|
67
|
+
|
|
68
|
+
# Create a new hash for additional properties, removing known properties.
|
|
69
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
70
|
+
|
|
71
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
72
|
+
new_hash, proc { |value| value }
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
# Create object from extracted values.
|
|
76
|
+
SpendingPlanAccountsResponse.new(spending_plan_accounts: spending_plan_accounts,
|
|
77
|
+
pagination: pagination,
|
|
78
|
+
additional_properties: additional_properties)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Provides a human-readable string representation of the object.
|
|
82
|
+
def to_s
|
|
83
|
+
class_name = self.class.name.split('::').last
|
|
84
|
+
"<#{class_name} spending_plan_accounts: #{@spending_plan_accounts}, pagination:"\
|
|
85
|
+
" #{@pagination}, additional_properties: #{@additional_properties}>"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
89
|
+
def inspect
|
|
90
|
+
class_name = self.class.name.split('::').last
|
|
91
|
+
"<#{class_name} spending_plan_accounts: #{@spending_plan_accounts.inspect}, pagination:"\
|
|
92
|
+
" #{@pagination.inspect}, additional_properties: #{@additional_properties}>"
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -0,0 +1,124 @@
|
|
|
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
|
+
# SpendingPlanIterationItemCreateRequestBody Model.
|
|
8
|
+
class SpendingPlanIterationItemCreateRequestBody < 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 type of transaction grouping for the spending plan `iteration_item` (0
|
|
17
|
+
# = `RECURRING_EXPENSE`, 1 = `PLANNED_EXPENSE`, 2 = `OTHER_EXPENSE`, 3 =
|
|
18
|
+
# `INCOME`).
|
|
19
|
+
# @return [Float]
|
|
20
|
+
attr_accessor :item_type
|
|
21
|
+
|
|
22
|
+
# The total amount planned for a spending plan `iteration_item`.
|
|
23
|
+
# @return [Float]
|
|
24
|
+
attr_accessor :planned_amount
|
|
25
|
+
|
|
26
|
+
# The unique identifier for the `scheduled_payment_guid` associated with the
|
|
27
|
+
# spending plan `iteration_item`. Defined by MX.
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :scheduled_payment_guid
|
|
30
|
+
|
|
31
|
+
# The unique identifier for the `top_level_category_guid` associated with
|
|
32
|
+
# the spending plan `iteration_item`. Defined by MX.
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :top_level_category_guid
|
|
35
|
+
|
|
36
|
+
# A mapping from model property names to API property names.
|
|
37
|
+
def self.names
|
|
38
|
+
@_hash = {} if @_hash.nil?
|
|
39
|
+
@_hash['category_guid'] = 'category_guid'
|
|
40
|
+
@_hash['item_type'] = 'item_type'
|
|
41
|
+
@_hash['planned_amount'] = 'planned_amount'
|
|
42
|
+
@_hash['scheduled_payment_guid'] = 'scheduled_payment_guid'
|
|
43
|
+
@_hash['top_level_category_guid'] = 'top_level_category_guid'
|
|
44
|
+
@_hash
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# An array for optional fields
|
|
48
|
+
def self.optionals
|
|
49
|
+
%w[
|
|
50
|
+
category_guid
|
|
51
|
+
item_type
|
|
52
|
+
scheduled_payment_guid
|
|
53
|
+
top_level_category_guid
|
|
54
|
+
]
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# An array for nullable fields
|
|
58
|
+
def self.nullables
|
|
59
|
+
[]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def initialize(planned_amount:, category_guid: SKIP, item_type: SKIP,
|
|
63
|
+
scheduled_payment_guid: SKIP, top_level_category_guid: SKIP,
|
|
64
|
+
additional_properties: nil)
|
|
65
|
+
# Add additional model properties to the instance
|
|
66
|
+
additional_properties = {} if additional_properties.nil?
|
|
67
|
+
|
|
68
|
+
@category_guid = category_guid unless category_guid == SKIP
|
|
69
|
+
@item_type = item_type unless item_type == SKIP
|
|
70
|
+
@planned_amount = planned_amount
|
|
71
|
+
@scheduled_payment_guid = scheduled_payment_guid unless scheduled_payment_guid == SKIP
|
|
72
|
+
@top_level_category_guid = top_level_category_guid unless top_level_category_guid == SKIP
|
|
73
|
+
@additional_properties = additional_properties
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Creates an instance of the object from a hash.
|
|
77
|
+
def self.from_hash(hash)
|
|
78
|
+
return nil unless hash
|
|
79
|
+
|
|
80
|
+
# Extract variables from the hash.
|
|
81
|
+
planned_amount =
|
|
82
|
+
hash.key?('planned_amount') ? hash['planned_amount'] : nil
|
|
83
|
+
category_guid = hash.key?('category_guid') ? hash['category_guid'] : SKIP
|
|
84
|
+
item_type = hash.key?('item_type') ? hash['item_type'] : SKIP
|
|
85
|
+
scheduled_payment_guid =
|
|
86
|
+
hash.key?('scheduled_payment_guid') ? hash['scheduled_payment_guid'] : SKIP
|
|
87
|
+
top_level_category_guid =
|
|
88
|
+
hash.key?('top_level_category_guid') ? hash['top_level_category_guid'] : SKIP
|
|
89
|
+
|
|
90
|
+
# Create a new hash for additional properties, removing known properties.
|
|
91
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
92
|
+
|
|
93
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
94
|
+
new_hash, proc { |value| value }
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
# Create object from extracted values.
|
|
98
|
+
SpendingPlanIterationItemCreateRequestBody.new(planned_amount: planned_amount,
|
|
99
|
+
category_guid: category_guid,
|
|
100
|
+
item_type: item_type,
|
|
101
|
+
scheduled_payment_guid: scheduled_payment_guid,
|
|
102
|
+
top_level_category_guid: top_level_category_guid,
|
|
103
|
+
additional_properties: additional_properties)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Provides a human-readable string representation of the object.
|
|
107
|
+
def to_s
|
|
108
|
+
class_name = self.class.name.split('::').last
|
|
109
|
+
"<#{class_name} category_guid: #{@category_guid}, item_type: #{@item_type}, planned_amount:"\
|
|
110
|
+
" #{@planned_amount}, scheduled_payment_guid: #{@scheduled_payment_guid},"\
|
|
111
|
+
" top_level_category_guid: #{@top_level_category_guid}, additional_properties:"\
|
|
112
|
+
" #{@additional_properties}>"
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
116
|
+
def inspect
|
|
117
|
+
class_name = self.class.name.split('::').last
|
|
118
|
+
"<#{class_name} category_guid: #{@category_guid.inspect}, item_type: #{@item_type.inspect},"\
|
|
119
|
+
" planned_amount: #{@planned_amount.inspect}, scheduled_payment_guid:"\
|
|
120
|
+
" #{@scheduled_payment_guid.inspect}, top_level_category_guid:"\
|
|
121
|
+
" #{@top_level_category_guid.inspect}, additional_properties: #{@additional_properties}>"
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|