=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::EmailData
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe FattureInCloud_Ruby_Sdk::EmailData do
instance = FattureInCloud_Ruby_Sdk::EmailData.new
instance.recipient_email = "mary.red@example.com"
instance.cc_email = "m.rossi@exxample.com"
instance.subject = "Nostra pro forma nr. 1"
instance.body = "Gentile Mario Rossi
per vedere la nostra pro forma di o per scaricarne una copia in versione PDF prema sul bottone sottoastante.
{{allegati}}
Cordiali saluti
Mario Rossi"
instance.document_exists = true
instance.delivery_note_exists = false
instance.attachment_exists = false
instance.accompanying_invoice_exists = false
instance.default_attach_pdf = false
instance.default_sender_email = {
id: 0,
email: "no-reply@fattureincloud.it"
},
instance.sender_emails_list = [
{
id: 0,
email: "no-reply@fattureincloud.it"
},
{
id: 888,
email: "mariorossi@fattureincloud.it"
}
]
describe 'test an instance of EmailData' do
it 'should create an instance of EmailData' do
expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::EmailData)
end
end
describe 'test attribute "recipient_email"' do
it 'should work' do
expect(instance.recipient_email).to be_a_kind_of(String)
end
end
describe 'test attribute "default_sender_email"' do
it 'should work' do
expect(instance.default_sender_email).to be_a_kind_of(Object)
end
end
describe 'test attribute "sender_emails_list"' do
it 'should work' do
expect(instance.sender_emails_list).to be_a_kind_of(Object)
end
end
describe 'test attribute "cc_email"' do
it 'should work' do
expect(instance.cc_email).to be_a_kind_of(String)
end
end
describe 'test attribute "subject"' do
it 'should work' do
expect(instance.subject).to be_a_kind_of(String)
end
end
describe 'test attribute "body"' do
it 'should work' do
expect(instance.body).to be_a_kind_of(String)
end
end
describe 'test attribute "document_exists"' do
it 'should work' do
expect(instance.document_exists).to be(true).or be(false)
end
end
describe 'test attribute "delivery_note_exists"' do
it 'should work' do
expect(instance.delivery_note_exists).to be(true).or be(false)
end
end
describe 'test attribute "attachment_exists"' do
it 'should work' do
expect(instance.attachment_exists).to be(true).or be(false)
end
end
describe 'test attribute "accompanying_invoice_exists"' do
it 'should work' do
expect(instance.accompanying_invoice_exists).to be(true).or be(false)
end
end
describe 'test attribute "default_attach_pdf"' do
it 'should work' do
expect(instance.default_attach_pdf).to be(true).or be(false)
end
end
end