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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#MX Platform API
|
|
3
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.
|
|
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
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 20111101
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.8.0
|
|
@@ -23,6 +23,13 @@ module MxPlatformRuby
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :instructional_text
|
|
25
25
|
|
|
26
|
+
# An array of instructional steps that may contain html elements.
|
|
27
|
+
attr_accessor :instructional_text_steps
|
|
28
|
+
|
|
29
|
+
attr_accessor :is_disabled_by_client
|
|
30
|
+
|
|
31
|
+
attr_accessor :iso_country_code
|
|
32
|
+
|
|
26
33
|
attr_accessor :medium_logo_url
|
|
27
34
|
|
|
28
35
|
attr_accessor :name
|
|
@@ -52,6 +59,9 @@ module MxPlatformRuby
|
|
|
52
59
|
:'forgot_password_url' => :'forgot_password_url',
|
|
53
60
|
:'forgot_username_url' => :'forgot_username_url',
|
|
54
61
|
:'instructional_text' => :'instructional_text',
|
|
62
|
+
:'instructional_text_steps' => :'instructional_text_steps',
|
|
63
|
+
:'is_disabled_by_client' => :'is_disabled_by_client',
|
|
64
|
+
:'iso_country_code' => :'iso_country_code',
|
|
55
65
|
:'medium_logo_url' => :'medium_logo_url',
|
|
56
66
|
:'name' => :'name',
|
|
57
67
|
:'small_logo_url' => :'small_logo_url',
|
|
@@ -78,6 +88,9 @@ module MxPlatformRuby
|
|
|
78
88
|
:'forgot_password_url' => :'String',
|
|
79
89
|
:'forgot_username_url' => :'String',
|
|
80
90
|
:'instructional_text' => :'String',
|
|
91
|
+
:'instructional_text_steps' => :'Array<String>',
|
|
92
|
+
:'is_disabled_by_client' => :'Boolean',
|
|
93
|
+
:'iso_country_code' => :'String',
|
|
81
94
|
:'medium_logo_url' => :'String',
|
|
82
95
|
:'name' => :'String',
|
|
83
96
|
:'small_logo_url' => :'String',
|
|
@@ -99,6 +112,8 @@ module MxPlatformRuby
|
|
|
99
112
|
:'forgot_password_url',
|
|
100
113
|
:'forgot_username_url',
|
|
101
114
|
:'instructional_text',
|
|
115
|
+
:'instructional_text_steps',
|
|
116
|
+
:'is_disabled_by_client',
|
|
102
117
|
:'medium_logo_url',
|
|
103
118
|
:'name',
|
|
104
119
|
:'small_logo_url',
|
|
@@ -144,6 +159,20 @@ module MxPlatformRuby
|
|
|
144
159
|
self.instructional_text = attributes[:'instructional_text']
|
|
145
160
|
end
|
|
146
161
|
|
|
162
|
+
if attributes.key?(:'instructional_text_steps')
|
|
163
|
+
if (value = attributes[:'instructional_text_steps']).is_a?(Array)
|
|
164
|
+
self.instructional_text_steps = value
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'is_disabled_by_client')
|
|
169
|
+
self.is_disabled_by_client = attributes[:'is_disabled_by_client']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'iso_country_code')
|
|
173
|
+
self.iso_country_code = attributes[:'iso_country_code']
|
|
174
|
+
end
|
|
175
|
+
|
|
147
176
|
if attributes.key?(:'medium_logo_url')
|
|
148
177
|
self.medium_logo_url = attributes[:'medium_logo_url']
|
|
149
178
|
end
|
|
@@ -213,6 +242,9 @@ module MxPlatformRuby
|
|
|
213
242
|
forgot_password_url == o.forgot_password_url &&
|
|
214
243
|
forgot_username_url == o.forgot_username_url &&
|
|
215
244
|
instructional_text == o.instructional_text &&
|
|
245
|
+
instructional_text_steps == o.instructional_text_steps &&
|
|
246
|
+
is_disabled_by_client == o.is_disabled_by_client &&
|
|
247
|
+
iso_country_code == o.iso_country_code &&
|
|
216
248
|
medium_logo_url == o.medium_logo_url &&
|
|
217
249
|
name == o.name &&
|
|
218
250
|
small_logo_url == o.small_logo_url &&
|
|
@@ -235,7 +267,7 @@ module MxPlatformRuby
|
|
|
235
267
|
# Calculates hash code according to all attributes.
|
|
236
268
|
# @return [Integer] Hash code
|
|
237
269
|
def hash
|
|
238
|
-
[code, forgot_password_url, forgot_username_url, instructional_text, medium_logo_url, name, small_logo_url, supports_account_identification, supports_account_statement, supports_account_verification, supports_oauth, supports_tax_document, supports_transaction_history, trouble_signing_in_url, url].hash
|
|
270
|
+
[code, forgot_password_url, forgot_username_url, instructional_text, instructional_text_steps, is_disabled_by_client, iso_country_code, medium_logo_url, name, small_logo_url, supports_account_identification, supports_account_statement, supports_account_verification, supports_oauth, supports_tax_document, supports_transaction_history, trouble_signing_in_url, url].hash
|
|
239
271
|
end
|
|
240
272
|
|
|
241
273
|
# Builds the object from hash
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#MX Platform API
|
|
3
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.
|
|
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
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 20111101
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.8.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#MX Platform API
|
|
3
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.
|
|
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
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 20111101
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.8.0
|
|
@@ -0,0 +1,575 @@
|
|
|
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 InvestmentHoldingResponse
|
|
18
|
+
attr_accessor :account_guid
|
|
19
|
+
|
|
20
|
+
attr_accessor :cost_basis
|
|
21
|
+
|
|
22
|
+
attr_accessor :coupon_yield
|
|
23
|
+
|
|
24
|
+
attr_accessor :currency_code
|
|
25
|
+
|
|
26
|
+
attr_accessor :current_price
|
|
27
|
+
|
|
28
|
+
attr_accessor :daily_change
|
|
29
|
+
|
|
30
|
+
attr_accessor :description
|
|
31
|
+
|
|
32
|
+
attr_accessor :expiration
|
|
33
|
+
|
|
34
|
+
attr_accessor :face_value
|
|
35
|
+
|
|
36
|
+
attr_accessor :frequency
|
|
37
|
+
|
|
38
|
+
attr_accessor :guid
|
|
39
|
+
|
|
40
|
+
attr_accessor :market_value
|
|
41
|
+
|
|
42
|
+
attr_accessor :maturity_date
|
|
43
|
+
|
|
44
|
+
attr_accessor :percentage_change
|
|
45
|
+
|
|
46
|
+
attr_accessor :purchase_price
|
|
47
|
+
|
|
48
|
+
attr_accessor :quantity
|
|
49
|
+
|
|
50
|
+
attr_accessor :rate
|
|
51
|
+
|
|
52
|
+
attr_accessor :strike_price
|
|
53
|
+
|
|
54
|
+
attr_accessor :symbol
|
|
55
|
+
|
|
56
|
+
attr_accessor :term
|
|
57
|
+
|
|
58
|
+
attr_accessor :today_ugl_amount
|
|
59
|
+
|
|
60
|
+
attr_accessor :today_ugl_percentage
|
|
61
|
+
|
|
62
|
+
attr_accessor :total_ugl_amount
|
|
63
|
+
|
|
64
|
+
attr_accessor :total_ugl_percentage
|
|
65
|
+
|
|
66
|
+
attr_accessor :unvested_quantity
|
|
67
|
+
|
|
68
|
+
attr_accessor :unvested_value
|
|
69
|
+
|
|
70
|
+
attr_accessor :user_guid
|
|
71
|
+
|
|
72
|
+
attr_accessor :vested_quantity
|
|
73
|
+
|
|
74
|
+
attr_accessor :vested_value
|
|
75
|
+
|
|
76
|
+
attr_accessor :created_at
|
|
77
|
+
|
|
78
|
+
attr_accessor :current_price_as_of
|
|
79
|
+
|
|
80
|
+
attr_accessor :issue_date
|
|
81
|
+
|
|
82
|
+
attr_accessor :vesting_start_date
|
|
83
|
+
|
|
84
|
+
attr_accessor :vesting_end_date
|
|
85
|
+
|
|
86
|
+
attr_accessor :put_or_call
|
|
87
|
+
|
|
88
|
+
attr_accessor :holding_type
|
|
89
|
+
|
|
90
|
+
attr_accessor :term_unit
|
|
91
|
+
|
|
92
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
93
|
+
def self.attribute_map
|
|
94
|
+
{
|
|
95
|
+
:'account_guid' => :'account_guid',
|
|
96
|
+
:'cost_basis' => :'cost_basis',
|
|
97
|
+
:'coupon_yield' => :'coupon_yield',
|
|
98
|
+
:'currency_code' => :'currency_code',
|
|
99
|
+
:'current_price' => :'current_price',
|
|
100
|
+
:'daily_change' => :'daily_change',
|
|
101
|
+
:'description' => :'description',
|
|
102
|
+
:'expiration' => :'expiration',
|
|
103
|
+
:'face_value' => :'face_value',
|
|
104
|
+
:'frequency' => :'frequency',
|
|
105
|
+
:'guid' => :'guid',
|
|
106
|
+
:'market_value' => :'market_value',
|
|
107
|
+
:'maturity_date' => :'maturity_date',
|
|
108
|
+
:'percentage_change' => :'percentage_change',
|
|
109
|
+
:'purchase_price' => :'purchase_price',
|
|
110
|
+
:'quantity' => :'quantity',
|
|
111
|
+
:'rate' => :'rate',
|
|
112
|
+
:'strike_price' => :'strike_price',
|
|
113
|
+
:'symbol' => :'symbol',
|
|
114
|
+
:'term' => :'term',
|
|
115
|
+
:'today_ugl_amount' => :'today_ugl_amount',
|
|
116
|
+
:'today_ugl_percentage' => :'today_ugl_percentage',
|
|
117
|
+
:'total_ugl_amount' => :'total_ugl_amount',
|
|
118
|
+
:'total_ugl_percentage' => :'total_ugl_percentage',
|
|
119
|
+
:'unvested_quantity' => :'unvested_quantity',
|
|
120
|
+
:'unvested_value' => :'unvested_value',
|
|
121
|
+
:'user_guid' => :'user_guid',
|
|
122
|
+
:'vested_quantity' => :'vested_quantity',
|
|
123
|
+
:'vested_value' => :'vested_value',
|
|
124
|
+
:'created_at' => :'created_at',
|
|
125
|
+
:'current_price_as_of' => :'current_price_as_of',
|
|
126
|
+
:'issue_date' => :'issue_date',
|
|
127
|
+
:'vesting_start_date' => :'vesting_start_date',
|
|
128
|
+
:'vesting_end_date' => :'vesting_end_date',
|
|
129
|
+
:'put_or_call' => :'put_or_call',
|
|
130
|
+
:'holding_type' => :'holding_type',
|
|
131
|
+
:'term_unit' => :'term_unit'
|
|
132
|
+
}
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Returns all the JSON keys this model knows about
|
|
136
|
+
def self.acceptable_attributes
|
|
137
|
+
attribute_map.values
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Attribute type mapping.
|
|
141
|
+
def self.openapi_types
|
|
142
|
+
{
|
|
143
|
+
:'account_guid' => :'String',
|
|
144
|
+
:'cost_basis' => :'Float',
|
|
145
|
+
:'coupon_yield' => :'String',
|
|
146
|
+
:'currency_code' => :'String',
|
|
147
|
+
:'current_price' => :'Float',
|
|
148
|
+
:'daily_change' => :'Float',
|
|
149
|
+
:'description' => :'String',
|
|
150
|
+
:'expiration' => :'String',
|
|
151
|
+
:'face_value' => :'Float',
|
|
152
|
+
:'frequency' => :'String',
|
|
153
|
+
:'guid' => :'String',
|
|
154
|
+
:'market_value' => :'Float',
|
|
155
|
+
:'maturity_date' => :'String',
|
|
156
|
+
:'percentage_change' => :'Float',
|
|
157
|
+
:'purchase_price' => :'Float',
|
|
158
|
+
:'quantity' => :'String',
|
|
159
|
+
:'rate' => :'Float',
|
|
160
|
+
:'strike_price' => :'Float',
|
|
161
|
+
:'symbol' => :'String',
|
|
162
|
+
:'term' => :'String',
|
|
163
|
+
:'today_ugl_amount' => :'Float',
|
|
164
|
+
:'today_ugl_percentage' => :'Float',
|
|
165
|
+
:'total_ugl_amount' => :'Float',
|
|
166
|
+
:'total_ugl_percentage' => :'Float',
|
|
167
|
+
:'unvested_quantity' => :'Float',
|
|
168
|
+
:'unvested_value' => :'Float',
|
|
169
|
+
:'user_guid' => :'String',
|
|
170
|
+
:'vested_quantity' => :'Float',
|
|
171
|
+
:'vested_value' => :'Float',
|
|
172
|
+
:'created_at' => :'String',
|
|
173
|
+
:'current_price_as_of' => :'String',
|
|
174
|
+
:'issue_date' => :'String',
|
|
175
|
+
:'vesting_start_date' => :'String',
|
|
176
|
+
:'vesting_end_date' => :'String',
|
|
177
|
+
:'put_or_call' => :'String',
|
|
178
|
+
:'holding_type' => :'String',
|
|
179
|
+
:'term_unit' => :'String'
|
|
180
|
+
}
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# List of attributes with nullable: true
|
|
184
|
+
def self.openapi_nullable
|
|
185
|
+
Set.new([
|
|
186
|
+
:'account_guid',
|
|
187
|
+
:'cost_basis',
|
|
188
|
+
:'coupon_yield',
|
|
189
|
+
:'currency_code',
|
|
190
|
+
:'current_price',
|
|
191
|
+
:'daily_change',
|
|
192
|
+
:'description',
|
|
193
|
+
:'expiration',
|
|
194
|
+
:'face_value',
|
|
195
|
+
:'frequency',
|
|
196
|
+
:'guid',
|
|
197
|
+
:'market_value',
|
|
198
|
+
:'maturity_date',
|
|
199
|
+
:'percentage_change',
|
|
200
|
+
:'purchase_price',
|
|
201
|
+
:'quantity',
|
|
202
|
+
:'rate',
|
|
203
|
+
:'strike_price',
|
|
204
|
+
:'symbol',
|
|
205
|
+
:'term',
|
|
206
|
+
:'today_ugl_amount',
|
|
207
|
+
:'today_ugl_percentage',
|
|
208
|
+
:'total_ugl_amount',
|
|
209
|
+
:'total_ugl_percentage',
|
|
210
|
+
:'unvested_quantity',
|
|
211
|
+
:'unvested_value',
|
|
212
|
+
:'user_guid',
|
|
213
|
+
:'vested_quantity',
|
|
214
|
+
:'vested_value',
|
|
215
|
+
:'created_at',
|
|
216
|
+
:'current_price_as_of',
|
|
217
|
+
:'issue_date',
|
|
218
|
+
:'vesting_start_date',
|
|
219
|
+
:'vesting_end_date',
|
|
220
|
+
:'put_or_call',
|
|
221
|
+
:'holding_type',
|
|
222
|
+
:'term_unit'
|
|
223
|
+
])
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Initializes the object
|
|
227
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
228
|
+
def initialize(attributes = {})
|
|
229
|
+
if (!attributes.is_a?(Hash))
|
|
230
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::InvestmentHoldingResponse` initialize method"
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
234
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
235
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
236
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::InvestmentHoldingResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
237
|
+
end
|
|
238
|
+
h[k.to_sym] = v
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'account_guid')
|
|
242
|
+
self.account_guid = attributes[:'account_guid']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'cost_basis')
|
|
246
|
+
self.cost_basis = attributes[:'cost_basis']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'coupon_yield')
|
|
250
|
+
self.coupon_yield = attributes[:'coupon_yield']
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if attributes.key?(:'currency_code')
|
|
254
|
+
self.currency_code = attributes[:'currency_code']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'current_price')
|
|
258
|
+
self.current_price = attributes[:'current_price']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'daily_change')
|
|
262
|
+
self.daily_change = attributes[:'daily_change']
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
if attributes.key?(:'description')
|
|
266
|
+
self.description = attributes[:'description']
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
if attributes.key?(:'expiration')
|
|
270
|
+
self.expiration = attributes[:'expiration']
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'face_value')
|
|
274
|
+
self.face_value = attributes[:'face_value']
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if attributes.key?(:'frequency')
|
|
278
|
+
self.frequency = attributes[:'frequency']
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'guid')
|
|
282
|
+
self.guid = attributes[:'guid']
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'market_value')
|
|
286
|
+
self.market_value = attributes[:'market_value']
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if attributes.key?(:'maturity_date')
|
|
290
|
+
self.maturity_date = attributes[:'maturity_date']
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
if attributes.key?(:'percentage_change')
|
|
294
|
+
self.percentage_change = attributes[:'percentage_change']
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if attributes.key?(:'purchase_price')
|
|
298
|
+
self.purchase_price = attributes[:'purchase_price']
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
if attributes.key?(:'quantity')
|
|
302
|
+
self.quantity = attributes[:'quantity']
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if attributes.key?(:'rate')
|
|
306
|
+
self.rate = attributes[:'rate']
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
if attributes.key?(:'strike_price')
|
|
310
|
+
self.strike_price = attributes[:'strike_price']
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
if attributes.key?(:'symbol')
|
|
314
|
+
self.symbol = attributes[:'symbol']
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'term')
|
|
318
|
+
self.term = attributes[:'term']
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'today_ugl_amount')
|
|
322
|
+
self.today_ugl_amount = attributes[:'today_ugl_amount']
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if attributes.key?(:'today_ugl_percentage')
|
|
326
|
+
self.today_ugl_percentage = attributes[:'today_ugl_percentage']
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
if attributes.key?(:'total_ugl_amount')
|
|
330
|
+
self.total_ugl_amount = attributes[:'total_ugl_amount']
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if attributes.key?(:'total_ugl_percentage')
|
|
334
|
+
self.total_ugl_percentage = attributes[:'total_ugl_percentage']
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if attributes.key?(:'unvested_quantity')
|
|
338
|
+
self.unvested_quantity = attributes[:'unvested_quantity']
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
if attributes.key?(:'unvested_value')
|
|
342
|
+
self.unvested_value = attributes[:'unvested_value']
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
if attributes.key?(:'user_guid')
|
|
346
|
+
self.user_guid = attributes[:'user_guid']
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
if attributes.key?(:'vested_quantity')
|
|
350
|
+
self.vested_quantity = attributes[:'vested_quantity']
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
if attributes.key?(:'vested_value')
|
|
354
|
+
self.vested_value = attributes[:'vested_value']
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if attributes.key?(:'created_at')
|
|
358
|
+
self.created_at = attributes[:'created_at']
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
if attributes.key?(:'current_price_as_of')
|
|
362
|
+
self.current_price_as_of = attributes[:'current_price_as_of']
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
if attributes.key?(:'issue_date')
|
|
366
|
+
self.issue_date = attributes[:'issue_date']
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
if attributes.key?(:'vesting_start_date')
|
|
370
|
+
self.vesting_start_date = attributes[:'vesting_start_date']
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
if attributes.key?(:'vesting_end_date')
|
|
374
|
+
self.vesting_end_date = attributes[:'vesting_end_date']
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
if attributes.key?(:'put_or_call')
|
|
378
|
+
self.put_or_call = attributes[:'put_or_call']
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
if attributes.key?(:'holding_type')
|
|
382
|
+
self.holding_type = attributes[:'holding_type']
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
if attributes.key?(:'term_unit')
|
|
386
|
+
self.term_unit = attributes[:'term_unit']
|
|
387
|
+
end
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
391
|
+
# @return Array for valid properties with the reasons
|
|
392
|
+
def list_invalid_properties
|
|
393
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
394
|
+
invalid_properties = Array.new
|
|
395
|
+
invalid_properties
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# Check to see if the all the properties in the model are valid
|
|
399
|
+
# @return true if the model is valid
|
|
400
|
+
def valid?
|
|
401
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
402
|
+
true
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Checks equality by comparing each attribute.
|
|
406
|
+
# @param [Object] Object to be compared
|
|
407
|
+
def ==(o)
|
|
408
|
+
return true if self.equal?(o)
|
|
409
|
+
self.class == o.class &&
|
|
410
|
+
account_guid == o.account_guid &&
|
|
411
|
+
cost_basis == o.cost_basis &&
|
|
412
|
+
coupon_yield == o.coupon_yield &&
|
|
413
|
+
currency_code == o.currency_code &&
|
|
414
|
+
current_price == o.current_price &&
|
|
415
|
+
daily_change == o.daily_change &&
|
|
416
|
+
description == o.description &&
|
|
417
|
+
expiration == o.expiration &&
|
|
418
|
+
face_value == o.face_value &&
|
|
419
|
+
frequency == o.frequency &&
|
|
420
|
+
guid == o.guid &&
|
|
421
|
+
market_value == o.market_value &&
|
|
422
|
+
maturity_date == o.maturity_date &&
|
|
423
|
+
percentage_change == o.percentage_change &&
|
|
424
|
+
purchase_price == o.purchase_price &&
|
|
425
|
+
quantity == o.quantity &&
|
|
426
|
+
rate == o.rate &&
|
|
427
|
+
strike_price == o.strike_price &&
|
|
428
|
+
symbol == o.symbol &&
|
|
429
|
+
term == o.term &&
|
|
430
|
+
today_ugl_amount == o.today_ugl_amount &&
|
|
431
|
+
today_ugl_percentage == o.today_ugl_percentage &&
|
|
432
|
+
total_ugl_amount == o.total_ugl_amount &&
|
|
433
|
+
total_ugl_percentage == o.total_ugl_percentage &&
|
|
434
|
+
unvested_quantity == o.unvested_quantity &&
|
|
435
|
+
unvested_value == o.unvested_value &&
|
|
436
|
+
user_guid == o.user_guid &&
|
|
437
|
+
vested_quantity == o.vested_quantity &&
|
|
438
|
+
vested_value == o.vested_value &&
|
|
439
|
+
created_at == o.created_at &&
|
|
440
|
+
current_price_as_of == o.current_price_as_of &&
|
|
441
|
+
issue_date == o.issue_date &&
|
|
442
|
+
vesting_start_date == o.vesting_start_date &&
|
|
443
|
+
vesting_end_date == o.vesting_end_date &&
|
|
444
|
+
put_or_call == o.put_or_call &&
|
|
445
|
+
holding_type == o.holding_type &&
|
|
446
|
+
term_unit == o.term_unit
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# @see the `==` method
|
|
450
|
+
# @param [Object] Object to be compared
|
|
451
|
+
def eql?(o)
|
|
452
|
+
self == o
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# Calculates hash code according to all attributes.
|
|
456
|
+
# @return [Integer] Hash code
|
|
457
|
+
def hash
|
|
458
|
+
[account_guid, cost_basis, coupon_yield, currency_code, current_price, daily_change, description, expiration, face_value, frequency, guid, market_value, maturity_date, percentage_change, purchase_price, quantity, rate, strike_price, symbol, term, today_ugl_amount, today_ugl_percentage, total_ugl_amount, total_ugl_percentage, unvested_quantity, unvested_value, user_guid, vested_quantity, vested_value, created_at, current_price_as_of, issue_date, vesting_start_date, vesting_end_date, put_or_call, holding_type, term_unit].hash
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Builds the object from hash
|
|
462
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
463
|
+
# @return [Object] Returns the model itself
|
|
464
|
+
def self.build_from_hash(attributes)
|
|
465
|
+
return nil unless attributes.is_a?(Hash)
|
|
466
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
467
|
+
transformed_hash = {}
|
|
468
|
+
openapi_types.each_pair do |key, type|
|
|
469
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
470
|
+
transformed_hash["#{key}"] = nil
|
|
471
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
472
|
+
# check to ensure the input is an array given that the attribute
|
|
473
|
+
# is documented as an array but the input is not
|
|
474
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
475
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
476
|
+
end
|
|
477
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
478
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
479
|
+
end
|
|
480
|
+
end
|
|
481
|
+
new(transformed_hash)
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
# Deserializes the data based on type
|
|
485
|
+
# @param string type Data type
|
|
486
|
+
# @param string value Value to be deserialized
|
|
487
|
+
# @return [Object] Deserialized data
|
|
488
|
+
def self._deserialize(type, value)
|
|
489
|
+
case type.to_sym
|
|
490
|
+
when :Time
|
|
491
|
+
Time.parse(value)
|
|
492
|
+
when :Date
|
|
493
|
+
Date.parse(value)
|
|
494
|
+
when :String
|
|
495
|
+
value.to_s
|
|
496
|
+
when :Integer
|
|
497
|
+
value.to_i
|
|
498
|
+
when :Float
|
|
499
|
+
value.to_f
|
|
500
|
+
when :Boolean
|
|
501
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
502
|
+
true
|
|
503
|
+
else
|
|
504
|
+
false
|
|
505
|
+
end
|
|
506
|
+
when :Object
|
|
507
|
+
# generic object (usually a Hash), return directly
|
|
508
|
+
value
|
|
509
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
510
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
511
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
512
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
513
|
+
k_type = Regexp.last_match[:k_type]
|
|
514
|
+
v_type = Regexp.last_match[:v_type]
|
|
515
|
+
{}.tap do |hash|
|
|
516
|
+
value.each do |k, v|
|
|
517
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
518
|
+
end
|
|
519
|
+
end
|
|
520
|
+
else # model
|
|
521
|
+
# models (e.g. Pet) or oneOf
|
|
522
|
+
klass = MxPlatformRuby.const_get(type)
|
|
523
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
524
|
+
end
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
# Returns the string representation of the object
|
|
528
|
+
# @return [String] String presentation of the object
|
|
529
|
+
def to_s
|
|
530
|
+
to_hash.to_s
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
534
|
+
# @return [Hash] Returns the object in the form of hash
|
|
535
|
+
def to_body
|
|
536
|
+
to_hash
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
# Returns the object in the form of hash
|
|
540
|
+
# @return [Hash] Returns the object in the form of hash
|
|
541
|
+
def to_hash
|
|
542
|
+
hash = {}
|
|
543
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
544
|
+
value = self.send(attr)
|
|
545
|
+
if value.nil?
|
|
546
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
547
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
hash[param] = _to_hash(value)
|
|
551
|
+
end
|
|
552
|
+
hash
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# Outputs non-array value in the form of hash
|
|
556
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
557
|
+
# @param [Object] value Any valid value
|
|
558
|
+
# @return [Hash] Returns the value in the form of hash
|
|
559
|
+
def _to_hash(value)
|
|
560
|
+
if value.is_a?(Array)
|
|
561
|
+
value.compact.map { |v| _to_hash(v) }
|
|
562
|
+
elsif value.is_a?(Hash)
|
|
563
|
+
{}.tap do |hash|
|
|
564
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
565
|
+
end
|
|
566
|
+
elsif value.respond_to? :to_hash
|
|
567
|
+
value.to_hash
|
|
568
|
+
else
|
|
569
|
+
value
|
|
570
|
+
end
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
end
|