=begin #Accounting Extension #These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot 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::Extensions::Accounting::InvoiceApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'InvoiceApi' do before do # run before each test @api_instance = Hubspot::Crm::Extensions::Accounting::InvoiceApi.new end after do # run after each test end describe 'test an instance of InvoiceApi' do it 'should create an instance of InvoiceApi' do expect(@api_instance).to be_instance_of(Hubspot::Crm::Extensions::Accounting::InvoiceApi) end end # unit tests for create_payment # Records an invoice payment # Records an payment against an invoice. # @param invoice_id The ID of the invoice. This is the invoice ID from the external accounting system. # @param invoice_create_payment_request The payment information # @param [Hash] opts the optional parameters # @option opts [String] :account_id The ID of the account that the invoice belongs to. This is the account ID from the external accounting system. # @return [InvoiceUpdateResponse] describe 'create_payment 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 get_by_id # Get invoice data # Returns invoice data for an Accounting account from the specified ID # @param invoice_id The ID of the invoice. This is the invoice ID from the external accounting system. # @param account_id The ID of the account that the invoice belongs to. This is the account ID from the external accounting system. # @param [Hash] opts the optional parameters # @return [InvoiceReadResponse] describe 'get_by_id 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 an invoice # Updates an Invoice by the given ID. # @param invoice_id The ID of the invoice. This is the invoice ID from the external accounting system. # @param account_id The ID of the account that the invoice belongs to. This is the account ID from the external accounting system. # @param invoice_update_request The invoice data to update # @param [Hash] opts the optional parameters # @return [InvoiceUpdateResponse] 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