=begin #Brevo API #Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | OpenAPI spec version: 3.0.0 Contact: contact@brevo.com Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.19 =end require 'spec_helper' require 'json' # Unit tests for Brevo::DealsApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'DealsApi' do before do # run before each test @instance = Brevo::DealsApi.new end after do # run after each test end describe 'test an instance of DealsApi' do it 'should create an instance of DealsApi' do expect(@instance).to be_instance_of(Brevo::DealsApi) end end # unit tests for crm_attributes_deals_get # Get deal attributes # @param [Hash] opts the optional parameters # @return [DealAttributes] describe 'crm_attributes_deals_get test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for crm_deals_get # Get all deals # @param [Hash] opts the optional parameters # @option opts [String] :filters_attributes_deal_name Filter by attributes. If you have a filter for the owner on your end, please send it as filters[attributes.deal_owner] and utilize the account email for the filtering. # @option opts [String] :filters_linked_companies_ids Filter by linked companies ids # @option opts [String] :filters_linked_contacts_ids Filter by linked companies ids # @option opts [Integer] :offset Index of the first document of the page # @option opts [Integer] :limit Number of documents per page # @option opts [String] :sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed # @option opts [String] :sort_by The field used to sort field names. # @return [DealsList] describe 'crm_deals_get test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for crm_deals_id_delete # Delete a deal # @param id # @param [Hash] opts the optional parameters # @return [nil] describe 'crm_deals_id_delete test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for crm_deals_id_get # Get a deal # @param id # @param [Hash] opts the optional parameters # @return [Deal] describe 'crm_deals_id_get test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for crm_deals_id_patch # Update a deal # @param id # @param body Updated deal details. # @param [Hash] opts the optional parameters # @return [nil] describe 'crm_deals_id_patch test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for crm_deals_link_unlink_id_patch # Link and Unlink a deal with contacts and companies # @param id # @param body Linked / Unlinked contacts and companies ids. # @param [Hash] opts the optional parameters # @return [nil] describe 'crm_deals_link_unlink_id_patch test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for crm_deals_post # Create a deal # @param body Deal create data. # @param [Hash] opts the optional parameters # @return [InlineResponse2011] describe 'crm_deals_post test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for crm_pipeline_details_all_get # Get all pipelines # @param [Hash] opts the optional parameters # @return [Pipelines] describe 'crm_pipeline_details_all_get test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for crm_pipeline_details_get # Get pipeline stages # This endpoint is deprecated. Prefer /crm/pipeline/details/{pipelineID} instead. # @param [Hash] opts the optional parameters # @return [Pipeline] describe 'crm_pipeline_details_get test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for crm_pipeline_details_pipeline_id_get # Get a pipeline # @param pipeline_id # @param [Hash] opts the optional parameters # @return [Pipelines] describe 'crm_pipeline_details_pipeline_id_get test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end