=begin #Fatture in Cloud API v2 - API Reference #Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. The version of the OpenAPI document: 2.0.7 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.3.0 =end require 'spec_helper' require 'json' require 'date' # Unit tests for FattureInCloud_Ruby_Sdk::IssuedDocumentItemsListItem # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FattureInCloud_Ruby_Sdk::IssuedDocumentItemsListItem do instance = FattureInCloud_Ruby_Sdk::IssuedDocumentItemsListItem.new instance.product_id = 12345 instance.code = "cod3" instance.name = "prod 1" instance.description = "product number uan" instance.category = "cat5" instance.qty = 44 instance.measure = "very big" instance.net_price = 10.0 instance.gross_price = 12.2 instance.not_taxable = false instance.apply_withholding_taxes = true instance.discount = 0 instance.discount_highlight = true instance.in_ddt = false instance.stock = 89 instance.vat = { id: 21 }, instance.ei_raw = { prop: true } describe 'test an instance of IssuedDocumentItemsListItem' do it 'should create an instance of IssuedDocumentItemsListItem' do expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::IssuedDocumentItemsListItem) end end describe 'test attribute "product_id"' do it 'should work' do expect(instance.product_id).to be_a_kind_of(Numeric) end end describe 'test attribute "code"' do it 'should work' do expect(instance.code).to be_a_kind_of(String) end end describe 'test attribute "name"' do it 'should work' do expect(instance.name).to be_a_kind_of(String) end end describe 'test attribute "description"' do it 'should work' do expect(instance.description).to be_a_kind_of(String) end end describe 'test attribute "category"' do it 'should work' do expect(instance.category).to be_a_kind_of(String) end end describe 'test attribute "qty"' do it 'should work' do expect(instance.qty).to be_a_kind_of(Numeric) end end describe 'test attribute "measure"' do it 'should work' do expect(instance.measure).to be_a_kind_of(String) end end describe 'test attribute "net_price"' do it 'should work' do expect(instance.net_price).to be_a_kind_of(Float) end end describe 'test attribute "gross_price"' do it 'should work' do expect(instance.gross_price).to be_a_kind_of(Float) end end describe 'test attribute "vat"' do it 'should work' do expect(instance.vat).to be_a_kind_of(Object) end end describe 'test attribute "not_taxable"' do it 'should work' do expect(instance.not_taxable).to be(true).or be(false) end end describe 'test attribute "apply_withholding_taxes"' do it 'should work' do expect(instance.apply_withholding_taxes).to be(true).or be(false) end end describe 'test attribute "discount"' do it 'should work' do expect(instance.discount).to be_a_kind_of(Numeric) end end describe 'test attribute "discount_highlight"' do it 'should work' do expect(instance.discount_highlight).to be(true).or be(false) end end describe 'test attribute "in_ddt"' do it 'should work' do expect(instance.in_ddt).to be(true).or be(false) end end describe 'test attribute "stock"' do it 'should work' do expect(instance.stock).to be_a_kind_of(Numeric) end end describe 'test attribute "ei_raw"' do it 'should work' do expect(instance.ei_raw).to be_a_kind_of(Object) end end end