=begin #MX Platform API #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. The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech Generator version: 7.8.0 =end require 'spec_helper' require 'json' # Unit tests for MxPlatformRuby::BudgetsApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'BudgetsApi' do before do # run before each test @api_instance = MxPlatformRuby::BudgetsApi.new end after do # run after each test end describe 'test an instance of BudgetsApi' do it 'should create an instance of BudgetsApi' do expect(@api_instance).to be_instance_of(MxPlatformRuby::BudgetsApi) end end # unit tests for users_user_guid_budgets_budget_guid_delete # Delete a budget # Delete a budget. # @param user_guid The unique identifier for the budget. Defined by MX. # @param budget_guid The unique identifier for the budget. Defined by MX. # @param [Hash] opts the optional parameters # @return [nil] describe 'users_user_guid_budgets_budget_guid_delete test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end # unit tests for users_user_guid_budgets_budget_guid_get # Read a specific budget # Read a specific budget. # @param budget_guid The unique identifier for the budget. Defined by MX. # @param user_guid The unique identifier for the budget. Defined by MX. # @param [Hash] opts the optional parameters # @return [BudgetResponseBody] describe 'users_user_guid_budgets_budget_guid_get test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end # unit tests for users_user_guid_budgets_budget_guid_put # Update a specific budget # Update a specific budget. # @param user_guid The unique identifier for the budget. Defined by MX. # @param budget_guid The unique identifier for the budget. Defined by MX. # @param [Hash] opts the optional parameters # @option opts [BudgetUpdateRequestBody] :budget_update_request_body # @return [BudgetResponseBody] describe 'users_user_guid_budgets_budget_guid_put test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end # unit tests for users_user_guid_budgets_generate_post # Auto-generate budgets # This endpoint will automatically create budgets for several categories based on existing transactions; these budgets are returned as an array. Specifically, budgets will only be generated if the `user` has at least one `transaction` in a given category during each of the two previous calendar months. For example, if the request is made on March 6, and there is at least one \"Bills & Utilities\" `transaction` in both January and February, a budget will be generated for \"Bills & Utilities.\" If there are two \"Bills & Utilities\" transactions in February but none in January, no budget will be generated for that category. If budgets already exist for particular categories, new budgets will be generated and returned based on the available transactions. If one or more budgets remain unchanged, they will nevertheless be returned in the response. If no transaction data for the `user` meet the above criteria, a `422 Unprocessable Entity` error will be returned with status code 4221 along with the message, `There aren't enough transactions to automatically create any budgets`. # @param user_guid The unique identifier for the user. Defined by MX. # @param [Hash] opts the optional parameters # @return [BudgetResponseBody] describe 'users_user_guid_budgets_generate_post test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end # unit tests for users_user_guid_budgets_get # List all budgets # List all budgets # @param user_guid The unique identifier for the user. Defined by MX. # @param [Hash] opts the optional parameters # @return [BudgetResponseBody] describe 'users_user_guid_budgets_get test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end # unit tests for users_user_guid_budgets_post # Create a budget # Create a budget. This endpoint accepts the optional `MX-Skip-Webhook` header and `skip_webhook` parameter. You cannot create a duplicate budget. For example, if you attempt to create a budget for \"Gas\", but that budget already exist, the request will fail. You can retrieve a list of all existing categories by using the List Categories endpoint. # @param user_guid The unique identifier for the user. Defined by MX. # @param budget_create_request_body # @param [Hash] opts the optional parameters # @return [BudgetResponseBody] describe 'users_user_guid_budgets_post test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end