mx-platform-ruby 1.10.0 → 1.10.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 +4 -4
- data/Gemfile.lock +1 -1
- data/docs/ACHResponse.md +74 -0
- data/docs/ACHReturnCreateRequest.md +48 -0
- data/docs/ACHReturnCreateRequestBody.md +18 -0
- data/docs/ACHReturnResponseBody.md +18 -0
- data/docs/{HoldingsResponseBody.md → ACHReturnsResponseBody.md} +4 -4
- data/docs/AccountCreateRequest.md +9 -9
- data/docs/AccountNumberResponse.md +3 -3
- data/docs/AccountResponse.md +37 -37
- data/docs/AccountUpdateRequest.md +30 -30
- data/docs/AccountsApi.md +780 -0
- data/docs/AchReturnApi.md +234 -0
- data/docs/AuthorizationCodeResponseBody.md +1 -1
- data/docs/BudgetResponse.md +1 -1
- data/docs/BudgetsApi.md +115 -115
- data/docs/CategoriesApi.md +600 -0
- data/docs/CategoryCreateRequest.md +1 -1
- data/docs/CategoryResponse.md +1 -1
- data/docs/ConnectWidgetRequest.md +5 -3
- data/docs/CreditCardProduct.md +1 -1
- data/docs/GoalResponse.md +1 -1
- data/docs/GoalsApi.md +117 -113
- data/docs/GoalsResponse.md +1 -1
- data/docs/ImageOptionResponse.md +0 -2
- data/docs/InsightResponse.md +3 -1
- data/docs/InsightResponseBody.md +1 -1
- data/docs/InsightUpdateRequestBody.md +18 -0
- data/docs/InsightsApi.md +170 -91
- data/docs/InstitutionResponse.md +15 -7
- data/docs/InstitutionsApi.md +319 -0
- data/docs/InvestmentHoldingResponse.md +90 -0
- data/docs/InvestmentHoldingResponseBody.md +18 -0
- data/docs/InvestmentHoldingsApi.md +386 -0
- data/docs/InvestmentHoldingsDeactivation.md +20 -0
- data/docs/InvestmentHoldingsResponseBody.md +20 -0
- data/docs/ManagedAccountCreateRequest.md +15 -15
- data/docs/ManagedAccountUpdateRequest.md +14 -14
- data/docs/ManagedDataApi.md +1228 -0
- data/docs/ManagedTransactionCreateRequest.md +1 -1
- data/docs/MemberCreateRequest.md +5 -3
- data/docs/MemberCreateRequestBody.md +3 -3
- data/docs/MemberElements.md +22 -0
- data/docs/MemberResponse.md +1 -3
- data/docs/MemberStatusResponse.md +2 -2
- data/docs/MemberUpdateRequest.md +4 -2
- data/docs/MembersApi.md +997 -0
- data/docs/MerchantsApi.md +226 -0
- data/docs/{MicrodepositRequest.md → MicrodepositElements.md} +7 -7
- data/docs/MicrodepositRequestBody.md +1 -1
- data/docs/MicrodepositResponse.md +0 -14
- data/docs/MicrodepositResponseBody.md +1 -1
- data/docs/MicrodepositResponseBodyMicroDepositInner.md +44 -0
- data/docs/MicrodepositVerifyRequest.md +4 -4
- data/docs/MicrodepositsApi.md +153 -82
- data/docs/MonthlyCashFlowProfileApi.md +151 -0
- data/docs/MonthlyCashFlowResponse.md +3 -3
- data/docs/NotificationResponse.md +36 -0
- data/docs/NotificationResponseBody.md +18 -0
- data/docs/NotificationsApi.md +236 -0
- data/docs/NotificationsResponseBody.md +18 -0
- data/docs/OptionResponse.md +0 -2
- data/docs/PaymentAccount.md +34 -0
- data/docs/PaymentAccountBody.md +18 -0
- data/docs/PaymentAccountBodyPaymentAccount.md +40 -0
- data/docs/PaymentProcessorAuthorizationCodeRequest.md +3 -3
- data/docs/ProcessorAccountNumber.md +34 -0
- data/docs/ProcessorAccountNumberBody.md +18 -0
- data/docs/ProcessorAccountNumberBodyAccountNumbersInner.md +40 -0
- data/docs/ProcessorOwner.md +34 -0
- data/docs/ProcessorOwnerBody.md +20 -0
- data/docs/ProcessorOwnerBodyAccountOwnersInner.md +40 -0
- data/docs/ProcessorTokenApi.md +490 -0
- data/docs/RepeatingTransactionResponse.md +40 -0
- data/docs/RepeatingTransactionsResponseBody.md +18 -0
- data/docs/{RewardsResponse.md → RewardElements.md} +3 -9
- data/docs/RewardResponseBody.md +1 -1
- data/docs/RewardsApi.md +299 -0
- data/docs/RewardsResponseBody.md +1 -1
- data/docs/{RewardResponse.md → RewardsResponseBodyRewardsInner.md} +8 -8
- data/docs/ScheduledPaymentsResponseBody.md +3 -3
- data/docs/SpendingPlanApi.md +142 -63
- data/docs/SpendingPlanIterationItemResponse.md +5 -5
- data/docs/StatementsApi.md +309 -0
- data/docs/StatementsResponseBody.md +3 -3
- data/docs/TaggingsApi.md +377 -0
- data/docs/TaggingsResponseBody.md +3 -3
- data/docs/TagsApi.md +379 -0
- data/docs/TagsResponseBody.md +3 -3
- data/docs/TokenRequestBody.md +18 -0
- data/docs/TokenResponse.md +24 -0
- data/docs/TokenResponseBody.md +18 -0
- data/docs/TransactionIncludesResponse.md +112 -0
- data/docs/TransactionIncludesResponseAllOfClassification.md +20 -0
- data/docs/TransactionIncludesResponseAllOfGeolocation.md +24 -0
- data/docs/TransactionIncludesResponseAllOfMerchant.md +24 -0
- data/docs/TransactionIncludesResponseAllOfRepeatingTransaction.md +22 -0
- data/docs/TransactionResponse.md +38 -36
- data/docs/TransactionRulesApi.md +305 -0
- data/docs/TransactionRulesResponseBody.md +3 -3
- data/docs/TransactionUpdateRequest.md +7 -1
- data/docs/TransactionsApi.md +1232 -14
- data/docs/TransactionsResponseBody.md +3 -3
- data/docs/TransactionsResponseBodyIncludes.md +20 -0
- data/docs/UsersApi.md +375 -0
- data/docs/UsersResponseBody.md +3 -3
- data/docs/VCResponse.md +18 -0
- data/docs/VerifiableCredentialsApi.md +232 -0
- data/docs/WidgetRequest.md +31 -23
- data/docs/WidgetsApi.md +244 -0
- data/lib/mx-platform-ruby/api/accounts_api.rb +781 -0
- data/lib/mx-platform-ruby/api/ach_return_api.rb +231 -0
- data/lib/mx-platform-ruby/api/budgets_api.rb +131 -131
- data/lib/mx-platform-ruby/api/categories_api.rb +576 -0
- data/lib/mx-platform-ruby/api/goals_api.rb +148 -134
- data/lib/mx-platform-ruby/api/insights_api.rb +162 -87
- data/lib/mx-platform-ruby/api/institutions_api.rb +301 -0
- data/lib/mx-platform-ruby/api/investment_holdings_api.rb +373 -0
- data/lib/mx-platform-ruby/api/managed_data_api.rb +1265 -0
- data/lib/mx-platform-ruby/api/members_api.rb +977 -0
- data/lib/mx-platform-ruby/api/merchants_api.rb +214 -0
- data/lib/mx-platform-ruby/api/microdeposits_api.rb +159 -96
- data/lib/mx-platform-ruby/api/monthly_cash_flow_profile_api.rb +159 -0
- data/lib/mx-platform-ruby/api/notifications_api.rb +243 -0
- data/lib/mx-platform-ruby/api/processor_token_api.rb +450 -0
- data/lib/mx-platform-ruby/api/rewards_api.rb +298 -0
- data/lib/mx-platform-ruby/api/spending_plan_api.rb +139 -64
- data/lib/mx-platform-ruby/api/statements_api.rb +316 -0
- data/lib/mx-platform-ruby/api/taggings_api.rb +381 -0
- data/lib/mx-platform-ruby/api/tags_api.rb +388 -0
- data/lib/mx-platform-ruby/api/transaction_rules_api.rb +314 -0
- data/lib/mx-platform-ruby/api/transactions_api.rb +1237 -15
- data/lib/mx-platform-ruby/api/users_api.rb +367 -0
- data/lib/mx-platform-ruby/api/verifiable_credentials_api.rb +235 -0
- data/lib/mx-platform-ruby/api/widgets_api.rb +260 -0
- data/lib/mx-platform-ruby/api_client.rb +2 -2
- data/lib/mx-platform-ruby/api_error.rb +2 -2
- data/lib/mx-platform-ruby/configuration.rb +12 -5
- data/lib/mx-platform-ruby/models/account_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/account_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/account_number_response.rb +13 -13
- data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/account_owner_response.rb +2 -2
- data/lib/mx-platform-ruby/models/account_owners_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/account_response.rb +2 -2
- data/lib/mx-platform-ruby/models/account_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/account_update_request.rb +23 -2
- data/lib/mx-platform-ruby/models/account_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/accounts_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/ach_response.rb +485 -0
- data/lib/mx-platform-ruby/models/ach_return_create_request.rb +400 -0
- data/lib/mx-platform-ruby/models/ach_return_create_request_body.rb +214 -0
- data/lib/mx-platform-ruby/models/ach_return_response_body.rb +214 -0
- data/lib/mx-platform-ruby/models/{holdings_response_body.rb → ach_returns_response_body.rb} +13 -13
- data/lib/mx-platform-ruby/models/authorization_code_request.rb +2 -2
- data/lib/mx-platform-ruby/models/authorization_code_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/authorization_code_response.rb +2 -2
- data/lib/mx-platform-ruby/models/authorization_code_response_body.rb +4 -6
- data/lib/mx-platform-ruby/models/budget_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_response.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/budget_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/categories_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/category_create_request.rb +9 -2
- data/lib/mx-platform-ruby/models/category_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/category_response.rb +3 -2
- data/lib/mx-platform-ruby/models/category_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/category_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/category_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/challenge_response.rb +2 -2
- data/lib/mx-platform-ruby/models/challenges_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/connect_widget_request.rb +13 -3
- data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -2
- data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/credential_request.rb +2 -2
- data/lib/mx-platform-ruby/models/credential_response.rb +2 -2
- data/lib/mx-platform-ruby/models/credentials_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/credit_card_product.rb +4 -2
- data/lib/mx-platform-ruby/models/credit_card_product_response.rb +2 -2
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +2 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +2 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/goal_request.rb +2 -2
- data/lib/mx-platform-ruby/models/goal_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/goal_response.rb +2 -2
- data/lib/mx-platform-ruby/models/goal_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/goals_response.rb +2 -2
- data/lib/mx-platform-ruby/models/goals_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/image_option_response.rb +3 -13
- data/lib/mx-platform-ruby/models/insight_response.rb +13 -3
- data/lib/mx-platform-ruby/models/insight_response_body.rb +4 -6
- data/lib/mx-platform-ruby/models/insight_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/{tax_document_response_body.rb → insight_update_request_body.rb} +12 -12
- data/lib/mx-platform-ruby/models/insights_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/institution_response.rb +35 -3
- data/lib/mx-platform-ruby/models/institution_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/institutions_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/investment_holding_response.rb +575 -0
- data/lib/mx-platform-ruby/models/investment_holding_response_body.rb +214 -0
- data/lib/mx-platform-ruby/models/investment_holdings_deactivation.rb +225 -0
- data/lib/mx-platform-ruby/models/investment_holdings_response_body.rb +225 -0
- data/lib/mx-platform-ruby/models/managed_account_create_request.rb +9 -2
- data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_account_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_member_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_member_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +9 -2
- data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_create_request.rb +40 -6
- data/lib/mx-platform-ruby/models/member_create_request_body.rb +3 -2
- data/lib/mx-platform-ruby/models/member_elements.rb +232 -0
- data/lib/mx-platform-ruby/models/member_response.rb +3 -13
- data/lib/mx-platform-ruby/models/member_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_resume_request.rb +2 -2
- data/lib/mx-platform-ruby/models/member_resume_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_status_response.rb +13 -13
- data/lib/mx-platform-ruby/models/member_status_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/member_update_request.rb +40 -6
- data/lib/mx-platform-ruby/models/member_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/members_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +2 -2
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/merchant_response.rb +2 -2
- data/lib/mx-platform-ruby/models/merchant_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/merchants_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/{microdeposit_request.rb → microdeposit_elements.rb} +29 -29
- data/lib/mx-platform-ruby/models/microdeposit_request_body.rb +3 -3
- data/lib/mx-platform-ruby/models/microdeposit_response.rb +5 -66
- data/lib/mx-platform-ruby/models/microdeposit_response_body.rb +6 -4
- data/lib/mx-platform-ruby/models/microdeposit_response_body_micro_deposit_inner.rb +362 -0
- data/lib/mx-platform-ruby/models/microdeposit_verify_request.rb +4 -4
- data/lib/mx-platform-ruby/models/microdeposit_verify_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/microdeposits_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request.rb +2 -2
- data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/monthly_cash_flow_response.rb +4 -3
- data/lib/mx-platform-ruby/models/monthly_cash_flow_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/notification_response.rb +305 -0
- data/lib/mx-platform-ruby/models/{tax_documents_response_body.rb → notification_response_body.rb} +12 -23
- data/lib/mx-platform-ruby/models/notifications_response_body.rb +216 -0
- data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -2
- data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/option_response.rb +3 -13
- data/lib/mx-platform-ruby/models/pagination_response.rb +2 -2
- data/lib/mx-platform-ruby/models/{tax_document_response.rb → payment_account.rb} +66 -76
- data/lib/mx-platform-ruby/models/payment_account_body.rb +214 -0
- data/lib/mx-platform-ruby/models/payment_account_body_payment_account.rb +330 -0
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request.rb +23 -5
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response.rb +2 -2
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/processor_account_number.rb +292 -0
- data/lib/mx-platform-ruby/models/processor_account_number_body.rb +216 -0
- data/lib/mx-platform-ruby/models/processor_account_number_body_account_numbers_inner.rb +327 -0
- data/lib/mx-platform-ruby/models/processor_owner.rb +295 -0
- data/lib/mx-platform-ruby/models/processor_owner_body.rb +225 -0
- data/lib/mx-platform-ruby/models/processor_owner_body_account_owners_inner.rb +330 -0
- data/lib/mx-platform-ruby/models/{holding_response.rb → repeating_transaction_response.rb} +100 -135
- data/lib/mx-platform-ruby/models/repeating_transactions_response_body.rb +216 -0
- data/lib/mx-platform-ruby/models/reposition_request.rb +2 -2
- data/lib/mx-platform-ruby/models/reposition_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/reposition_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/{rewards_response.rb → reward_elements.rb} +9 -36
- data/lib/mx-platform-ruby/models/reward_response_body.rb +3 -3
- data/lib/mx-platform-ruby/models/rewards_response_body.rb +3 -3
- data/lib/mx-platform-ruby/models/{reward_response.rb → rewards_response_body_rewards_inner.rb} +35 -27
- data/lib/mx-platform-ruby/models/scheduled_payment_response.rb +2 -2
- data/lib/mx-platform-ruby/models/scheduled_payments_response_body.rb +15 -15
- data/lib/mx-platform-ruby/models/spending_plan_account_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_accounts_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iteration_item_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iteration_item_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iteration_items_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iteration_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_iterations_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plan_response.rb +2 -2
- data/lib/mx-platform-ruby/models/spending_plans_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/split_transaction_request.rb +2 -2
- data/lib/mx-platform-ruby/models/split_transaction_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/split_transactions_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/statement_response.rb +2 -2
- data/lib/mx-platform-ruby/models/statement_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/statements_response_body.rb +15 -15
- data/lib/mx-platform-ruby/models/tag_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_response.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/tag_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_response.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/taggings_response_body.rb +15 -15
- data/lib/mx-platform-ruby/models/tags_response_body.rb +15 -15
- data/lib/mx-platform-ruby/models/{holding_response_body.rb → token_request_body.rb} +12 -12
- data/lib/mx-platform-ruby/models/token_response.rb +241 -0
- data/lib/mx-platform-ruby/models/token_response_body.rb +216 -0
- data/lib/mx-platform-ruby/models/transaction_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_create_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_includes_response.rb +692 -0
- data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_classification.rb +257 -0
- data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_geolocation.rb +241 -0
- data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_merchant.rb +241 -0
- data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_repeating_transaction.rb +278 -0
- data/lib/mx-platform-ruby/models/transaction_response.rb +13 -3
- data/lib/mx-platform-ruby/models/transaction_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_response.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +15 -15
- data/lib/mx-platform-ruby/models/transaction_update_request.rb +30 -10
- data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/transactions_response_body.rb +15 -15
- data/lib/mx-platform-ruby/models/transactions_response_body_includes.rb +225 -0
- data/lib/mx-platform-ruby/models/update_goal_request.rb +2 -2
- data/lib/mx-platform-ruby/models/update_goal_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/user_create_request.rb +2 -2
- data/lib/mx-platform-ruby/models/user_create_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/user_response.rb +2 -2
- data/lib/mx-platform-ruby/models/user_response_body.rb +2 -2
- data/lib/mx-platform-ruby/models/user_update_request.rb +2 -2
- data/lib/mx-platform-ruby/models/user_update_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/users_response_body.rb +15 -15
- data/lib/mx-platform-ruby/models/vc_response.rb +214 -0
- data/lib/mx-platform-ruby/models/widget_request.rb +89 -3
- data/lib/mx-platform-ruby/models/widget_request_body.rb +2 -2
- data/lib/mx-platform-ruby/models/widget_response.rb +2 -2
- data/lib/mx-platform-ruby/models/widget_response_body.rb +2 -2
- data/lib/mx-platform-ruby/version.rb +3 -3
- data/lib/mx-platform-ruby.rb +60 -12
- data/mx-platform-ruby.gemspec +2 -2
- data/openapi/config.yml +1 -1
- data/spec/api/accounts_api_spec.rb +182 -0
- data/spec/api/ach_return_api_spec.rb +77 -0
- data/spec/api/budgets_api_spec.rb +38 -38
- data/spec/api/categories_api_spec.rb +141 -0
- data/spec/api/goals_api_spec.rb +42 -40
- data/spec/api/insights_api_spec.rb +53 -38
- data/spec/api/institutions_api_spec.rb +94 -0
- data/spec/api/investment_holdings_api_spec.rb +104 -0
- data/spec/api/managed_data_api_spec.rb +267 -0
- data/spec/api/members_api_spec.rb +218 -0
- data/spec/api/merchants_api_spec.rb +73 -0
- data/spec/api/microdeposits_api_spec.rb +40 -28
- data/spec/api/monthly_cash_flow_profile_api_spec.rb +60 -0
- data/spec/api/notifications_api_spec.rb +78 -0
- data/spec/api/processor_token_api_spec.rb +115 -0
- data/spec/api/rewards_api_spec.rb +87 -0
- data/spec/api/spending_plan_api_spec.rb +48 -33
- data/spec/api/statements_api_spec.rb +91 -0
- data/spec/api/taggings_api_spec.rb +102 -0
- data/spec/api/tags_api_spec.rb +103 -0
- data/spec/api/transaction_rules_api_spec.rb +89 -0
- data/spec/api/transactions_api_spec.rb +258 -6
- data/spec/api/users_api_spec.rb +101 -0
- data/spec/api/verifiable_credentials_api_spec.rb +76 -0
- data/spec/api/widgets_api_spec.rb +81 -0
- data/spec/models/account_create_request_body_spec.rb +2 -2
- data/spec/models/account_create_request_spec.rb +2 -2
- data/spec/models/account_number_response_spec.rb +5 -5
- data/spec/models/account_numbers_response_body_spec.rb +2 -2
- data/spec/models/account_owner_response_spec.rb +2 -2
- data/spec/models/account_owners_response_body_spec.rb +2 -2
- data/spec/models/account_response_body_spec.rb +2 -2
- data/spec/models/account_response_spec.rb +2 -2
- data/spec/models/account_update_request_body_spec.rb +2 -2
- data/spec/models/account_update_request_spec.rb +2 -2
- data/spec/models/accounts_response_body_spec.rb +2 -2
- data/spec/models/ach_response_spec.rb +204 -0
- data/spec/models/ach_return_create_request_body_spec.rb +36 -0
- data/spec/models/{holding_response_spec.rb → ach_return_create_request_spec.rb} +22 -40
- data/spec/models/ach_return_response_body_spec.rb +36 -0
- data/spec/models/{tax_documents_response_body_spec.rb → ach_returns_response_body_spec.rb} +10 -10
- data/spec/models/authorization_code_request_body_spec.rb +2 -2
- data/spec/models/authorization_code_request_spec.rb +2 -2
- data/spec/models/authorization_code_response_body_spec.rb +2 -2
- data/spec/models/authorization_code_response_spec.rb +2 -2
- data/spec/models/budget_create_request_body_spec.rb +2 -2
- data/spec/models/budget_create_request_spec.rb +2 -2
- data/spec/models/budget_response_body_spec.rb +2 -2
- data/spec/models/budget_response_spec.rb +2 -2
- data/spec/models/budget_update_request_body_spec.rb +2 -2
- data/spec/models/budget_update_request_spec.rb +2 -2
- data/spec/models/categories_response_body_spec.rb +2 -2
- data/spec/models/category_create_request_body_spec.rb +2 -2
- data/spec/models/category_create_request_spec.rb +2 -2
- data/spec/models/category_response_body_spec.rb +2 -2
- data/spec/models/category_response_spec.rb +2 -2
- data/spec/models/category_update_request_body_spec.rb +2 -2
- data/spec/models/category_update_request_spec.rb +2 -2
- data/spec/models/challenge_response_spec.rb +2 -2
- data/spec/models/challenges_response_body_spec.rb +2 -2
- data/spec/models/connect_widget_request_body_spec.rb +2 -2
- data/spec/models/connect_widget_request_spec.rb +8 -2
- data/spec/models/connect_widget_response_body_spec.rb +2 -2
- data/spec/models/connect_widget_response_spec.rb +2 -2
- data/spec/models/credential_request_spec.rb +2 -2
- data/spec/models/credential_response_spec.rb +2 -2
- data/spec/models/credentials_response_body_spec.rb +2 -2
- data/spec/models/credit_card_product_response_spec.rb +2 -2
- data/spec/models/credit_card_product_spec.rb +2 -2
- data/spec/models/enhance_transaction_response_spec.rb +2 -2
- data/spec/models/enhance_transactions_request_body_spec.rb +2 -2
- data/spec/models/enhance_transactions_request_spec.rb +2 -2
- data/spec/models/enhance_transactions_response_body_spec.rb +2 -2
- data/spec/models/goal_request_body_spec.rb +2 -2
- data/spec/models/goal_request_spec.rb +2 -2
- data/spec/models/goal_response_body_spec.rb +2 -2
- data/spec/models/goal_response_spec.rb +2 -2
- data/spec/models/goals_response_body_spec.rb +2 -2
- data/spec/models/goals_response_spec.rb +2 -2
- data/spec/models/image_option_response_spec.rb +2 -8
- data/spec/models/insight_response_body_spec.rb +2 -2
- data/spec/models/insight_response_spec.rb +8 -2
- data/spec/models/insight_update_request_body_spec.rb +36 -0
- data/spec/models/insight_update_request_spec.rb +2 -2
- data/spec/models/insights_response_body_spec.rb +2 -2
- data/spec/models/institution_response_body_spec.rb +2 -2
- data/spec/models/institution_response_spec.rb +20 -2
- data/spec/models/institutions_response_body_spec.rb +2 -2
- data/spec/models/investment_holding_response_body_spec.rb +36 -0
- data/spec/models/investment_holding_response_spec.rb +252 -0
- data/spec/models/investment_holdings_deactivation_spec.rb +42 -0
- data/spec/models/investment_holdings_response_body_spec.rb +42 -0
- data/spec/models/managed_account_create_request_body_spec.rb +2 -2
- data/spec/models/managed_account_create_request_spec.rb +2 -2
- data/spec/models/managed_account_update_request_body_spec.rb +2 -2
- data/spec/models/managed_account_update_request_spec.rb +2 -2
- data/spec/models/managed_member_create_request_body_spec.rb +2 -2
- data/spec/models/managed_member_create_request_spec.rb +2 -2
- data/spec/models/managed_member_update_request_body_spec.rb +2 -2
- data/spec/models/managed_member_update_request_spec.rb +2 -2
- data/spec/models/managed_transaction_create_request_body_spec.rb +2 -2
- data/spec/models/managed_transaction_create_request_spec.rb +2 -2
- data/spec/models/managed_transaction_update_request_body_spec.rb +2 -2
- data/spec/models/managed_transaction_update_request_spec.rb +2 -2
- data/spec/models/member_create_request_body_spec.rb +2 -2
- data/spec/models/member_create_request_spec.rb +12 -2
- data/spec/models/member_elements_spec.rb +48 -0
- data/spec/models/member_response_body_spec.rb +2 -2
- data/spec/models/member_response_spec.rb +2 -8
- data/spec/models/member_resume_request_body_spec.rb +2 -2
- data/spec/models/member_resume_request_spec.rb +2 -2
- data/spec/models/member_status_response_body_spec.rb +2 -2
- data/spec/models/member_status_response_spec.rb +4 -4
- data/spec/models/member_update_request_body_spec.rb +2 -2
- data/spec/models/member_update_request_spec.rb +12 -2
- data/spec/models/members_response_body_spec.rb +2 -2
- data/spec/models/merchant_location_response_body_spec.rb +2 -2
- data/spec/models/merchant_location_response_spec.rb +2 -2
- data/spec/models/merchant_response_body_spec.rb +2 -2
- data/spec/models/merchant_response_spec.rb +2 -2
- data/spec/models/merchants_response_body_spec.rb +2 -2
- data/spec/models/{microdeposit_request_spec.rb → microdeposit_elements_spec.rb} +15 -15
- data/spec/models/microdeposit_request_body_spec.rb +2 -2
- data/spec/models/microdeposit_response_body_micro_deposit_inner_spec.rb +114 -0
- data/spec/models/microdeposit_response_body_spec.rb +2 -2
- data/spec/models/microdeposit_response_spec.rb +2 -44
- data/spec/models/microdeposit_verify_request_body_spec.rb +2 -2
- data/spec/models/microdeposit_verify_request_spec.rb +2 -2
- data/spec/models/microdeposits_response_body_spec.rb +2 -2
- data/spec/models/monthly_cash_flow_profile_request_body_spec.rb +2 -2
- data/spec/models/monthly_cash_flow_profile_request_spec.rb +2 -2
- data/spec/models/monthly_cash_flow_response_body_spec.rb +2 -2
- data/spec/models/monthly_cash_flow_response_spec.rb +2 -2
- data/spec/models/notification_response_body_spec.rb +36 -0
- data/spec/models/{tax_document_response_spec.rb → notification_response_spec.rb} +18 -18
- data/spec/models/notifications_response_body_spec.rb +36 -0
- data/spec/models/o_auth_window_response_body_spec.rb +2 -2
- data/spec/models/o_auth_window_response_spec.rb +2 -2
- data/spec/models/option_response_spec.rb +2 -8
- data/spec/models/pagination_response_spec.rb +2 -2
- data/spec/models/{reward_response_spec.rb → payment_account_body_payment_account_spec.rb} +24 -18
- data/spec/models/payment_account_body_spec.rb +36 -0
- data/spec/models/payment_account_spec.rb +84 -0
- data/spec/models/payment_processor_authorization_code_request_body_spec.rb +2 -2
- data/spec/models/payment_processor_authorization_code_request_spec.rb +2 -2
- data/spec/models/payment_processor_authorization_code_response_body_spec.rb +2 -2
- data/spec/models/payment_processor_authorization_code_response_spec.rb +2 -2
- data/spec/models/processor_account_number_body_account_numbers_inner_spec.rb +102 -0
- data/spec/models/processor_account_number_body_spec.rb +36 -0
- data/spec/models/processor_account_number_spec.rb +84 -0
- data/spec/models/processor_owner_body_account_owners_inner_spec.rb +102 -0
- data/spec/models/{holdings_response_body_spec.rb → processor_owner_body_spec.rb} +9 -9
- data/spec/models/processor_owner_spec.rb +84 -0
- data/spec/models/repeating_transaction_response_spec.rb +110 -0
- data/spec/models/repeating_transactions_response_body_spec.rb +36 -0
- data/spec/models/reposition_request_body_spec.rb +2 -2
- data/spec/models/reposition_request_spec.rb +2 -2
- data/spec/models/reposition_response_body_spec.rb +2 -2
- data/spec/models/reward_elements_spec.rb +78 -0
- data/spec/models/reward_response_body_spec.rb +2 -2
- data/spec/models/{rewards_response_spec.rb → rewards_response_body_rewards_inner_spec.rb} +18 -18
- data/spec/models/rewards_response_body_spec.rb +2 -2
- data/spec/models/scheduled_payment_response_spec.rb +2 -2
- data/spec/models/scheduled_payments_response_body_spec.rb +4 -4
- data/spec/models/spending_plan_account_response_spec.rb +2 -2
- data/spec/models/spending_plan_accounts_response_spec.rb +2 -2
- data/spec/models/spending_plan_iteration_item_create_request_body_spec.rb +2 -2
- data/spec/models/spending_plan_iteration_item_response_spec.rb +2 -2
- data/spec/models/spending_plan_iteration_items_response_body_spec.rb +2 -2
- data/spec/models/spending_plan_iteration_response_spec.rb +2 -2
- data/spec/models/spending_plan_iterations_response_spec.rb +2 -2
- data/spec/models/spending_plan_response_spec.rb +2 -2
- data/spec/models/spending_plans_response_body_spec.rb +2 -2
- data/spec/models/split_transaction_request_body_spec.rb +2 -2
- data/spec/models/split_transaction_request_spec.rb +2 -2
- data/spec/models/split_transactions_response_body_spec.rb +2 -2
- data/spec/models/statement_response_body_spec.rb +2 -2
- data/spec/models/statement_response_spec.rb +2 -2
- data/spec/models/statements_response_body_spec.rb +4 -4
- data/spec/models/tag_create_request_body_spec.rb +2 -2
- data/spec/models/tag_create_request_spec.rb +2 -2
- data/spec/models/tag_response_body_spec.rb +2 -2
- data/spec/models/tag_response_spec.rb +2 -2
- data/spec/models/tag_update_request_body_spec.rb +2 -2
- data/spec/models/tag_update_request_spec.rb +2 -2
- data/spec/models/tagging_create_request_body_spec.rb +2 -2
- data/spec/models/tagging_create_request_spec.rb +2 -2
- data/spec/models/tagging_response_body_spec.rb +2 -2
- data/spec/models/tagging_response_spec.rb +2 -2
- data/spec/models/tagging_update_request_body_spec.rb +2 -2
- data/spec/models/tagging_update_request_spec.rb +2 -2
- data/spec/models/taggings_response_body_spec.rb +4 -4
- data/spec/models/tags_response_body_spec.rb +4 -4
- data/spec/models/{tax_document_response_body_spec.rb → token_request_body_spec.rb} +9 -9
- data/spec/models/token_response_body_spec.rb +36 -0
- data/spec/models/token_response_spec.rb +54 -0
- data/spec/models/transaction_create_request_body_spec.rb +2 -2
- data/spec/models/transaction_create_request_spec.rb +2 -2
- data/spec/models/transaction_create_response_body_spec.rb +2 -2
- data/spec/models/transaction_includes_response_all_of_classification_spec.rb +46 -0
- data/spec/models/transaction_includes_response_all_of_geolocation_spec.rb +54 -0
- data/spec/models/transaction_includes_response_all_of_merchant_spec.rb +54 -0
- data/spec/models/transaction_includes_response_all_of_repeating_transaction_spec.rb +56 -0
- data/spec/models/transaction_includes_response_spec.rb +318 -0
- data/spec/models/transaction_response_body_spec.rb +2 -2
- data/spec/models/transaction_response_spec.rb +8 -2
- data/spec/models/transaction_rule_create_request_body_spec.rb +2 -2
- data/spec/models/transaction_rule_create_request_spec.rb +2 -2
- data/spec/models/transaction_rule_response_body_spec.rb +2 -2
- data/spec/models/transaction_rule_response_spec.rb +2 -2
- data/spec/models/transaction_rule_update_request_body_spec.rb +2 -2
- data/spec/models/transaction_rule_update_request_spec.rb +2 -2
- data/spec/models/transaction_rules_response_body_spec.rb +4 -4
- data/spec/models/transaction_update_request_body_spec.rb +2 -2
- data/spec/models/transaction_update_request_spec.rb +20 -2
- data/spec/models/transactions_response_body_includes_spec.rb +42 -0
- data/spec/models/transactions_response_body_spec.rb +4 -4
- data/spec/models/update_goal_request_body_spec.rb +2 -2
- data/spec/models/update_goal_request_spec.rb +2 -2
- data/spec/models/user_create_request_body_spec.rb +2 -2
- data/spec/models/user_create_request_spec.rb +2 -2
- data/spec/models/user_response_body_spec.rb +2 -2
- data/spec/models/user_response_spec.rb +2 -2
- data/spec/models/user_update_request_body_spec.rb +2 -2
- data/spec/models/user_update_request_spec.rb +2 -2
- data/spec/models/users_response_body_spec.rb +4 -4
- data/spec/models/{holding_response_body_spec.rb → vc_response_spec.rb} +9 -9
- data/spec/models/widget_request_body_spec.rb +2 -2
- data/spec/models/widget_request_spec.rb +30 -2
- data/spec/models/widget_response_body_spec.rb +2 -2
- data/spec/models/widget_response_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +233 -41
- data/docs/HoldingResponse.md +0 -54
- data/docs/HoldingResponseBody.md +0 -18
- data/docs/MxPlatformApi.md +0 -8065
- data/docs/TaxDocumentResponse.md +0 -36
- data/docs/TaxDocumentResponseBody.md +0 -18
- data/docs/TaxDocumentsResponseBody.md +0 -20
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +0 -7795
- data/spec/api/mx_platform_api_spec.rb +0 -1519
|
@@ -0,0 +1,692 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#MX Platform API
|
|
3
|
+
|
|
4
|
+
#The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. Just getting started? See our [use case guides](/use-cases/).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 20111101
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.8.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module MxPlatformRuby
|
|
17
|
+
class TransactionIncludesResponse
|
|
18
|
+
attr_accessor :account_guid
|
|
19
|
+
|
|
20
|
+
attr_accessor :account_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :amount
|
|
23
|
+
|
|
24
|
+
attr_accessor :category
|
|
25
|
+
|
|
26
|
+
attr_accessor :category_guid
|
|
27
|
+
|
|
28
|
+
attr_accessor :check_number_string
|
|
29
|
+
|
|
30
|
+
attr_accessor :created_at
|
|
31
|
+
|
|
32
|
+
attr_accessor :currency_code
|
|
33
|
+
|
|
34
|
+
attr_accessor :date
|
|
35
|
+
|
|
36
|
+
attr_accessor :description
|
|
37
|
+
|
|
38
|
+
attr_accessor :extended_transaction_type
|
|
39
|
+
|
|
40
|
+
attr_accessor :guid
|
|
41
|
+
|
|
42
|
+
attr_accessor :id
|
|
43
|
+
|
|
44
|
+
attr_accessor :is_bill_pay
|
|
45
|
+
|
|
46
|
+
attr_accessor :is_direct_deposit
|
|
47
|
+
|
|
48
|
+
attr_accessor :is_expense
|
|
49
|
+
|
|
50
|
+
attr_accessor :is_fee
|
|
51
|
+
|
|
52
|
+
attr_accessor :is_income
|
|
53
|
+
|
|
54
|
+
attr_accessor :is_international
|
|
55
|
+
|
|
56
|
+
attr_accessor :is_manual
|
|
57
|
+
|
|
58
|
+
attr_accessor :is_overdraft_fee
|
|
59
|
+
|
|
60
|
+
attr_accessor :is_payroll_advance
|
|
61
|
+
|
|
62
|
+
attr_accessor :is_recurring
|
|
63
|
+
|
|
64
|
+
attr_accessor :is_subscription
|
|
65
|
+
|
|
66
|
+
attr_accessor :latitude
|
|
67
|
+
|
|
68
|
+
attr_accessor :localized_description
|
|
69
|
+
|
|
70
|
+
attr_accessor :localized_memo
|
|
71
|
+
|
|
72
|
+
attr_accessor :longitude
|
|
73
|
+
|
|
74
|
+
attr_accessor :member_guid
|
|
75
|
+
|
|
76
|
+
attr_accessor :member_is_managed_by_user
|
|
77
|
+
|
|
78
|
+
attr_accessor :memo
|
|
79
|
+
|
|
80
|
+
attr_accessor :merchant_category_code
|
|
81
|
+
|
|
82
|
+
attr_accessor :merchant_guid
|
|
83
|
+
|
|
84
|
+
attr_accessor :merchant_location_guid
|
|
85
|
+
|
|
86
|
+
attr_accessor :metadata
|
|
87
|
+
|
|
88
|
+
attr_accessor :original_description
|
|
89
|
+
|
|
90
|
+
attr_accessor :posted_at
|
|
91
|
+
|
|
92
|
+
attr_accessor :status
|
|
93
|
+
|
|
94
|
+
attr_accessor :top_level_category
|
|
95
|
+
|
|
96
|
+
attr_accessor :transacted_at
|
|
97
|
+
|
|
98
|
+
attr_accessor :type
|
|
99
|
+
|
|
100
|
+
attr_accessor :updated_at
|
|
101
|
+
|
|
102
|
+
attr_accessor :user_guid
|
|
103
|
+
|
|
104
|
+
attr_accessor :user_id
|
|
105
|
+
|
|
106
|
+
attr_accessor :classification
|
|
107
|
+
|
|
108
|
+
attr_accessor :geolocation
|
|
109
|
+
|
|
110
|
+
attr_accessor :merchant
|
|
111
|
+
|
|
112
|
+
attr_accessor :repeating_transaction
|
|
113
|
+
|
|
114
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
115
|
+
def self.attribute_map
|
|
116
|
+
{
|
|
117
|
+
:'account_guid' => :'account_guid',
|
|
118
|
+
:'account_id' => :'account_id',
|
|
119
|
+
:'amount' => :'amount',
|
|
120
|
+
:'category' => :'category',
|
|
121
|
+
:'category_guid' => :'category_guid',
|
|
122
|
+
:'check_number_string' => :'check_number_string',
|
|
123
|
+
:'created_at' => :'created_at',
|
|
124
|
+
:'currency_code' => :'currency_code',
|
|
125
|
+
:'date' => :'date',
|
|
126
|
+
:'description' => :'description',
|
|
127
|
+
:'extended_transaction_type' => :'extended_transaction_type',
|
|
128
|
+
:'guid' => :'guid',
|
|
129
|
+
:'id' => :'id',
|
|
130
|
+
:'is_bill_pay' => :'is_bill_pay',
|
|
131
|
+
:'is_direct_deposit' => :'is_direct_deposit',
|
|
132
|
+
:'is_expense' => :'is_expense',
|
|
133
|
+
:'is_fee' => :'is_fee',
|
|
134
|
+
:'is_income' => :'is_income',
|
|
135
|
+
:'is_international' => :'is_international',
|
|
136
|
+
:'is_manual' => :'is_manual',
|
|
137
|
+
:'is_overdraft_fee' => :'is_overdraft_fee',
|
|
138
|
+
:'is_payroll_advance' => :'is_payroll_advance',
|
|
139
|
+
:'is_recurring' => :'is_recurring',
|
|
140
|
+
:'is_subscription' => :'is_subscription',
|
|
141
|
+
:'latitude' => :'latitude',
|
|
142
|
+
:'localized_description' => :'localized_description',
|
|
143
|
+
:'localized_memo' => :'localized_memo',
|
|
144
|
+
:'longitude' => :'longitude',
|
|
145
|
+
:'member_guid' => :'member_guid',
|
|
146
|
+
:'member_is_managed_by_user' => :'member_is_managed_by_user',
|
|
147
|
+
:'memo' => :'memo',
|
|
148
|
+
:'merchant_category_code' => :'merchant_category_code',
|
|
149
|
+
:'merchant_guid' => :'merchant_guid',
|
|
150
|
+
:'merchant_location_guid' => :'merchant_location_guid',
|
|
151
|
+
:'metadata' => :'metadata',
|
|
152
|
+
:'original_description' => :'original_description',
|
|
153
|
+
:'posted_at' => :'posted_at',
|
|
154
|
+
:'status' => :'status',
|
|
155
|
+
:'top_level_category' => :'top_level_category',
|
|
156
|
+
:'transacted_at' => :'transacted_at',
|
|
157
|
+
:'type' => :'type',
|
|
158
|
+
:'updated_at' => :'updated_at',
|
|
159
|
+
:'user_guid' => :'user_guid',
|
|
160
|
+
:'user_id' => :'user_id',
|
|
161
|
+
:'classification' => :'classification',
|
|
162
|
+
:'geolocation' => :'geolocation',
|
|
163
|
+
:'merchant' => :'merchant',
|
|
164
|
+
:'repeating_transaction' => :'repeating_transaction'
|
|
165
|
+
}
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Returns all the JSON keys this model knows about
|
|
169
|
+
def self.acceptable_attributes
|
|
170
|
+
attribute_map.values
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Attribute type mapping.
|
|
174
|
+
def self.openapi_types
|
|
175
|
+
{
|
|
176
|
+
:'account_guid' => :'String',
|
|
177
|
+
:'account_id' => :'String',
|
|
178
|
+
:'amount' => :'Float',
|
|
179
|
+
:'category' => :'String',
|
|
180
|
+
:'category_guid' => :'String',
|
|
181
|
+
:'check_number_string' => :'String',
|
|
182
|
+
:'created_at' => :'String',
|
|
183
|
+
:'currency_code' => :'String',
|
|
184
|
+
:'date' => :'String',
|
|
185
|
+
:'description' => :'String',
|
|
186
|
+
:'extended_transaction_type' => :'String',
|
|
187
|
+
:'guid' => :'String',
|
|
188
|
+
:'id' => :'String',
|
|
189
|
+
:'is_bill_pay' => :'Boolean',
|
|
190
|
+
:'is_direct_deposit' => :'Boolean',
|
|
191
|
+
:'is_expense' => :'Boolean',
|
|
192
|
+
:'is_fee' => :'Boolean',
|
|
193
|
+
:'is_income' => :'Boolean',
|
|
194
|
+
:'is_international' => :'Boolean',
|
|
195
|
+
:'is_manual' => :'Boolean',
|
|
196
|
+
:'is_overdraft_fee' => :'Boolean',
|
|
197
|
+
:'is_payroll_advance' => :'Boolean',
|
|
198
|
+
:'is_recurring' => :'Boolean',
|
|
199
|
+
:'is_subscription' => :'Boolean',
|
|
200
|
+
:'latitude' => :'Float',
|
|
201
|
+
:'localized_description' => :'String',
|
|
202
|
+
:'localized_memo' => :'String',
|
|
203
|
+
:'longitude' => :'Float',
|
|
204
|
+
:'member_guid' => :'String',
|
|
205
|
+
:'member_is_managed_by_user' => :'Boolean',
|
|
206
|
+
:'memo' => :'String',
|
|
207
|
+
:'merchant_category_code' => :'Integer',
|
|
208
|
+
:'merchant_guid' => :'String',
|
|
209
|
+
:'merchant_location_guid' => :'String',
|
|
210
|
+
:'metadata' => :'String',
|
|
211
|
+
:'original_description' => :'String',
|
|
212
|
+
:'posted_at' => :'String',
|
|
213
|
+
:'status' => :'String',
|
|
214
|
+
:'top_level_category' => :'String',
|
|
215
|
+
:'transacted_at' => :'String',
|
|
216
|
+
:'type' => :'String',
|
|
217
|
+
:'updated_at' => :'String',
|
|
218
|
+
:'user_guid' => :'String',
|
|
219
|
+
:'user_id' => :'String',
|
|
220
|
+
:'classification' => :'TransactionIncludesResponseAllOfClassification',
|
|
221
|
+
:'geolocation' => :'TransactionIncludesResponseAllOfGeolocation',
|
|
222
|
+
:'merchant' => :'TransactionIncludesResponseAllOfMerchant',
|
|
223
|
+
:'repeating_transaction' => :'TransactionIncludesResponseAllOfRepeatingTransaction'
|
|
224
|
+
}
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# List of attributes with nullable: true
|
|
228
|
+
def self.openapi_nullable
|
|
229
|
+
Set.new([
|
|
230
|
+
:'account_guid',
|
|
231
|
+
:'account_id',
|
|
232
|
+
:'amount',
|
|
233
|
+
:'category',
|
|
234
|
+
:'category_guid',
|
|
235
|
+
:'check_number_string',
|
|
236
|
+
:'created_at',
|
|
237
|
+
:'currency_code',
|
|
238
|
+
:'date',
|
|
239
|
+
:'description',
|
|
240
|
+
:'extended_transaction_type',
|
|
241
|
+
:'guid',
|
|
242
|
+
:'id',
|
|
243
|
+
:'is_bill_pay',
|
|
244
|
+
:'is_direct_deposit',
|
|
245
|
+
:'is_expense',
|
|
246
|
+
:'is_fee',
|
|
247
|
+
:'is_income',
|
|
248
|
+
:'is_international',
|
|
249
|
+
:'is_manual',
|
|
250
|
+
:'is_overdraft_fee',
|
|
251
|
+
:'is_payroll_advance',
|
|
252
|
+
:'is_recurring',
|
|
253
|
+
:'is_subscription',
|
|
254
|
+
:'latitude',
|
|
255
|
+
:'localized_description',
|
|
256
|
+
:'localized_memo',
|
|
257
|
+
:'longitude',
|
|
258
|
+
:'member_guid',
|
|
259
|
+
:'member_is_managed_by_user',
|
|
260
|
+
:'memo',
|
|
261
|
+
:'merchant_category_code',
|
|
262
|
+
:'merchant_guid',
|
|
263
|
+
:'merchant_location_guid',
|
|
264
|
+
:'metadata',
|
|
265
|
+
:'original_description',
|
|
266
|
+
:'posted_at',
|
|
267
|
+
:'status',
|
|
268
|
+
:'top_level_category',
|
|
269
|
+
:'transacted_at',
|
|
270
|
+
:'type',
|
|
271
|
+
:'updated_at',
|
|
272
|
+
:'user_guid',
|
|
273
|
+
:'user_id',
|
|
274
|
+
:'classification',
|
|
275
|
+
:'geolocation',
|
|
276
|
+
:'merchant',
|
|
277
|
+
:'repeating_transaction'
|
|
278
|
+
])
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# List of class defined in allOf (OpenAPI v3)
|
|
282
|
+
def self.openapi_all_of
|
|
283
|
+
[
|
|
284
|
+
:'TransactionResponse'
|
|
285
|
+
]
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Initializes the object
|
|
289
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
290
|
+
def initialize(attributes = {})
|
|
291
|
+
if (!attributes.is_a?(Hash))
|
|
292
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::TransactionIncludesResponse` initialize method"
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
296
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
297
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
298
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::TransactionIncludesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
299
|
+
end
|
|
300
|
+
h[k.to_sym] = v
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if attributes.key?(:'account_guid')
|
|
304
|
+
self.account_guid = attributes[:'account_guid']
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if attributes.key?(:'account_id')
|
|
308
|
+
self.account_id = attributes[:'account_id']
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if attributes.key?(:'amount')
|
|
312
|
+
self.amount = attributes[:'amount']
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if attributes.key?(:'category')
|
|
316
|
+
self.category = attributes[:'category']
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if attributes.key?(:'category_guid')
|
|
320
|
+
self.category_guid = attributes[:'category_guid']
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
if attributes.key?(:'check_number_string')
|
|
324
|
+
self.check_number_string = attributes[:'check_number_string']
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if attributes.key?(:'created_at')
|
|
328
|
+
self.created_at = attributes[:'created_at']
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
if attributes.key?(:'currency_code')
|
|
332
|
+
self.currency_code = attributes[:'currency_code']
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
if attributes.key?(:'date')
|
|
336
|
+
self.date = attributes[:'date']
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
if attributes.key?(:'description')
|
|
340
|
+
self.description = attributes[:'description']
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
if attributes.key?(:'extended_transaction_type')
|
|
344
|
+
self.extended_transaction_type = attributes[:'extended_transaction_type']
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
if attributes.key?(:'guid')
|
|
348
|
+
self.guid = attributes[:'guid']
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
if attributes.key?(:'id')
|
|
352
|
+
self.id = attributes[:'id']
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
if attributes.key?(:'is_bill_pay')
|
|
356
|
+
self.is_bill_pay = attributes[:'is_bill_pay']
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
if attributes.key?(:'is_direct_deposit')
|
|
360
|
+
self.is_direct_deposit = attributes[:'is_direct_deposit']
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
if attributes.key?(:'is_expense')
|
|
364
|
+
self.is_expense = attributes[:'is_expense']
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
if attributes.key?(:'is_fee')
|
|
368
|
+
self.is_fee = attributes[:'is_fee']
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
if attributes.key?(:'is_income')
|
|
372
|
+
self.is_income = attributes[:'is_income']
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
if attributes.key?(:'is_international')
|
|
376
|
+
self.is_international = attributes[:'is_international']
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
if attributes.key?(:'is_manual')
|
|
380
|
+
self.is_manual = attributes[:'is_manual']
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
if attributes.key?(:'is_overdraft_fee')
|
|
384
|
+
self.is_overdraft_fee = attributes[:'is_overdraft_fee']
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
if attributes.key?(:'is_payroll_advance')
|
|
388
|
+
self.is_payroll_advance = attributes[:'is_payroll_advance']
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
if attributes.key?(:'is_recurring')
|
|
392
|
+
self.is_recurring = attributes[:'is_recurring']
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
if attributes.key?(:'is_subscription')
|
|
396
|
+
self.is_subscription = attributes[:'is_subscription']
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
if attributes.key?(:'latitude')
|
|
400
|
+
self.latitude = attributes[:'latitude']
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
if attributes.key?(:'localized_description')
|
|
404
|
+
self.localized_description = attributes[:'localized_description']
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
if attributes.key?(:'localized_memo')
|
|
408
|
+
self.localized_memo = attributes[:'localized_memo']
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
if attributes.key?(:'longitude')
|
|
412
|
+
self.longitude = attributes[:'longitude']
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
if attributes.key?(:'member_guid')
|
|
416
|
+
self.member_guid = attributes[:'member_guid']
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
if attributes.key?(:'member_is_managed_by_user')
|
|
420
|
+
self.member_is_managed_by_user = attributes[:'member_is_managed_by_user']
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
if attributes.key?(:'memo')
|
|
424
|
+
self.memo = attributes[:'memo']
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
if attributes.key?(:'merchant_category_code')
|
|
428
|
+
self.merchant_category_code = attributes[:'merchant_category_code']
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
if attributes.key?(:'merchant_guid')
|
|
432
|
+
self.merchant_guid = attributes[:'merchant_guid']
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
if attributes.key?(:'merchant_location_guid')
|
|
436
|
+
self.merchant_location_guid = attributes[:'merchant_location_guid']
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
if attributes.key?(:'metadata')
|
|
440
|
+
self.metadata = attributes[:'metadata']
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
if attributes.key?(:'original_description')
|
|
444
|
+
self.original_description = attributes[:'original_description']
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
if attributes.key?(:'posted_at')
|
|
448
|
+
self.posted_at = attributes[:'posted_at']
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
if attributes.key?(:'status')
|
|
452
|
+
self.status = attributes[:'status']
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
if attributes.key?(:'top_level_category')
|
|
456
|
+
self.top_level_category = attributes[:'top_level_category']
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
if attributes.key?(:'transacted_at')
|
|
460
|
+
self.transacted_at = attributes[:'transacted_at']
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
if attributes.key?(:'type')
|
|
464
|
+
self.type = attributes[:'type']
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
if attributes.key?(:'updated_at')
|
|
468
|
+
self.updated_at = attributes[:'updated_at']
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
if attributes.key?(:'user_guid')
|
|
472
|
+
self.user_guid = attributes[:'user_guid']
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
if attributes.key?(:'user_id')
|
|
476
|
+
self.user_id = attributes[:'user_id']
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
if attributes.key?(:'classification')
|
|
480
|
+
self.classification = attributes[:'classification']
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
if attributes.key?(:'geolocation')
|
|
484
|
+
self.geolocation = attributes[:'geolocation']
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
if attributes.key?(:'merchant')
|
|
488
|
+
self.merchant = attributes[:'merchant']
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
if attributes.key?(:'repeating_transaction')
|
|
492
|
+
self.repeating_transaction = attributes[:'repeating_transaction']
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
497
|
+
# @return Array for valid properties with the reasons
|
|
498
|
+
def list_invalid_properties
|
|
499
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
500
|
+
invalid_properties = Array.new
|
|
501
|
+
invalid_properties
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
# Check to see if the all the properties in the model are valid
|
|
505
|
+
# @return true if the model is valid
|
|
506
|
+
def valid?
|
|
507
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
508
|
+
true
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
# Checks equality by comparing each attribute.
|
|
512
|
+
# @param [Object] Object to be compared
|
|
513
|
+
def ==(o)
|
|
514
|
+
return true if self.equal?(o)
|
|
515
|
+
self.class == o.class &&
|
|
516
|
+
account_guid == o.account_guid &&
|
|
517
|
+
account_id == o.account_id &&
|
|
518
|
+
amount == o.amount &&
|
|
519
|
+
category == o.category &&
|
|
520
|
+
category_guid == o.category_guid &&
|
|
521
|
+
check_number_string == o.check_number_string &&
|
|
522
|
+
created_at == o.created_at &&
|
|
523
|
+
currency_code == o.currency_code &&
|
|
524
|
+
date == o.date &&
|
|
525
|
+
description == o.description &&
|
|
526
|
+
extended_transaction_type == o.extended_transaction_type &&
|
|
527
|
+
guid == o.guid &&
|
|
528
|
+
id == o.id &&
|
|
529
|
+
is_bill_pay == o.is_bill_pay &&
|
|
530
|
+
is_direct_deposit == o.is_direct_deposit &&
|
|
531
|
+
is_expense == o.is_expense &&
|
|
532
|
+
is_fee == o.is_fee &&
|
|
533
|
+
is_income == o.is_income &&
|
|
534
|
+
is_international == o.is_international &&
|
|
535
|
+
is_manual == o.is_manual &&
|
|
536
|
+
is_overdraft_fee == o.is_overdraft_fee &&
|
|
537
|
+
is_payroll_advance == o.is_payroll_advance &&
|
|
538
|
+
is_recurring == o.is_recurring &&
|
|
539
|
+
is_subscription == o.is_subscription &&
|
|
540
|
+
latitude == o.latitude &&
|
|
541
|
+
localized_description == o.localized_description &&
|
|
542
|
+
localized_memo == o.localized_memo &&
|
|
543
|
+
longitude == o.longitude &&
|
|
544
|
+
member_guid == o.member_guid &&
|
|
545
|
+
member_is_managed_by_user == o.member_is_managed_by_user &&
|
|
546
|
+
memo == o.memo &&
|
|
547
|
+
merchant_category_code == o.merchant_category_code &&
|
|
548
|
+
merchant_guid == o.merchant_guid &&
|
|
549
|
+
merchant_location_guid == o.merchant_location_guid &&
|
|
550
|
+
metadata == o.metadata &&
|
|
551
|
+
original_description == o.original_description &&
|
|
552
|
+
posted_at == o.posted_at &&
|
|
553
|
+
status == o.status &&
|
|
554
|
+
top_level_category == o.top_level_category &&
|
|
555
|
+
transacted_at == o.transacted_at &&
|
|
556
|
+
type == o.type &&
|
|
557
|
+
updated_at == o.updated_at &&
|
|
558
|
+
user_guid == o.user_guid &&
|
|
559
|
+
user_id == o.user_id &&
|
|
560
|
+
classification == o.classification &&
|
|
561
|
+
geolocation == o.geolocation &&
|
|
562
|
+
merchant == o.merchant &&
|
|
563
|
+
repeating_transaction == o.repeating_transaction
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
# @see the `==` method
|
|
567
|
+
# @param [Object] Object to be compared
|
|
568
|
+
def eql?(o)
|
|
569
|
+
self == o
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
# Calculates hash code according to all attributes.
|
|
573
|
+
# @return [Integer] Hash code
|
|
574
|
+
def hash
|
|
575
|
+
[account_guid, account_id, amount, category, category_guid, check_number_string, created_at, currency_code, date, description, extended_transaction_type, guid, id, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_manual, is_overdraft_fee, is_payroll_advance, is_recurring, is_subscription, latitude, localized_description, localized_memo, longitude, member_guid, member_is_managed_by_user, memo, merchant_category_code, merchant_guid, merchant_location_guid, metadata, original_description, posted_at, status, top_level_category, transacted_at, type, updated_at, user_guid, user_id, classification, geolocation, merchant, repeating_transaction].hash
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
# Builds the object from hash
|
|
579
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
580
|
+
# @return [Object] Returns the model itself
|
|
581
|
+
def self.build_from_hash(attributes)
|
|
582
|
+
return nil unless attributes.is_a?(Hash)
|
|
583
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
584
|
+
transformed_hash = {}
|
|
585
|
+
openapi_types.each_pair do |key, type|
|
|
586
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
587
|
+
transformed_hash["#{key}"] = nil
|
|
588
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
589
|
+
# check to ensure the input is an array given that the attribute
|
|
590
|
+
# is documented as an array but the input is not
|
|
591
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
592
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
593
|
+
end
|
|
594
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
595
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
596
|
+
end
|
|
597
|
+
end
|
|
598
|
+
new(transformed_hash)
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# Deserializes the data based on type
|
|
602
|
+
# @param string type Data type
|
|
603
|
+
# @param string value Value to be deserialized
|
|
604
|
+
# @return [Object] Deserialized data
|
|
605
|
+
def self._deserialize(type, value)
|
|
606
|
+
case type.to_sym
|
|
607
|
+
when :Time
|
|
608
|
+
Time.parse(value)
|
|
609
|
+
when :Date
|
|
610
|
+
Date.parse(value)
|
|
611
|
+
when :String
|
|
612
|
+
value.to_s
|
|
613
|
+
when :Integer
|
|
614
|
+
value.to_i
|
|
615
|
+
when :Float
|
|
616
|
+
value.to_f
|
|
617
|
+
when :Boolean
|
|
618
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
619
|
+
true
|
|
620
|
+
else
|
|
621
|
+
false
|
|
622
|
+
end
|
|
623
|
+
when :Object
|
|
624
|
+
# generic object (usually a Hash), return directly
|
|
625
|
+
value
|
|
626
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
627
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
628
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
629
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
630
|
+
k_type = Regexp.last_match[:k_type]
|
|
631
|
+
v_type = Regexp.last_match[:v_type]
|
|
632
|
+
{}.tap do |hash|
|
|
633
|
+
value.each do |k, v|
|
|
634
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
635
|
+
end
|
|
636
|
+
end
|
|
637
|
+
else # model
|
|
638
|
+
# models (e.g. Pet) or oneOf
|
|
639
|
+
klass = MxPlatformRuby.const_get(type)
|
|
640
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
641
|
+
end
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
# Returns the string representation of the object
|
|
645
|
+
# @return [String] String presentation of the object
|
|
646
|
+
def to_s
|
|
647
|
+
to_hash.to_s
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
651
|
+
# @return [Hash] Returns the object in the form of hash
|
|
652
|
+
def to_body
|
|
653
|
+
to_hash
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
# Returns the object in the form of hash
|
|
657
|
+
# @return [Hash] Returns the object in the form of hash
|
|
658
|
+
def to_hash
|
|
659
|
+
hash = {}
|
|
660
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
661
|
+
value = self.send(attr)
|
|
662
|
+
if value.nil?
|
|
663
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
664
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
hash[param] = _to_hash(value)
|
|
668
|
+
end
|
|
669
|
+
hash
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
# Outputs non-array value in the form of hash
|
|
673
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
674
|
+
# @param [Object] value Any valid value
|
|
675
|
+
# @return [Hash] Returns the value in the form of hash
|
|
676
|
+
def _to_hash(value)
|
|
677
|
+
if value.is_a?(Array)
|
|
678
|
+
value.compact.map { |v| _to_hash(v) }
|
|
679
|
+
elsif value.is_a?(Hash)
|
|
680
|
+
{}.tap do |hash|
|
|
681
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
682
|
+
end
|
|
683
|
+
elsif value.respond_to? :to_hash
|
|
684
|
+
value.to_hash
|
|
685
|
+
else
|
|
686
|
+
value
|
|
687
|
+
end
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
end
|