=begin #CRM Objects #CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.1 =end require 'spec_helper' require 'json' # Unit tests for Hubspot::Crm::Objects::BatchApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'BatchApi' do before do # run before each test @api_instance = Hubspot::Crm::Objects::BatchApi.new end after do # run after each test end describe 'test an instance of BatchApi' do it 'should create an instance of BatchApi' do expect(@api_instance).to be_instance_of(Hubspot::Crm::Objects::BatchApi) end end # unit tests for archive # Archive a batch of objects by ID # Archive a list of objects given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent). # @param object_type # @param batch_input_simple_public_object_id # @param [Hash] opts the optional parameters # @return [nil] describe 'archive 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 create # Create a batch of objects # Create a batch of objects. This follows the same rules as creating an individual object. # @param object_type # @param batch_input_simple_public_object_input # @param [Hash] opts the optional parameters # @return [BatchResponseSimplePublicObject] describe 'create 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 read # Read a batch of objects by internal ID, or unique property values # Read a list of objects given a collection of IDs. Use the `properties` request body property to control which properties are returned. # @param object_type # @param batch_read_input_simple_public_object_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :archived Whether to return only results that have been archived. # @return [BatchResponseSimplePublicObject] describe 'read 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 update # Update a batch of objects # Perform a partial upate on a batch of objects. This follows the same rules as performing partial updates on an individual object. # @param object_type # @param batch_input_simple_public_object_batch_input # @param [Hash] opts the optional parameters # @return [BatchResponseSimplePublicObject] describe 'update test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end