Moved data classes to model subpackage
This commit is contained in:
parent
e0b4550cd3
commit
dcc4e233aa
|
@ -9,6 +9,9 @@ import jakarta.mail.Store
|
|||
import jakarta.mail.event.MessageCountAdapter
|
||||
import jakarta.mail.event.MessageCountEvent
|
||||
import kotlinx.coroutines.*
|
||||
import net.codinux.invoicing.email.model.EmailAccount
|
||||
import net.codinux.invoicing.email.model.EmailAttachmentWithEInvoice
|
||||
import net.codinux.invoicing.email.model.EmailWithInvoice
|
||||
import net.codinux.invoicing.model.Invoice
|
||||
import net.codinux.invoicing.reader.EInvoiceReader
|
||||
import net.codinux.log.logger
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package net.codinux.invoicing.email
|
||||
|
||||
import net.codinux.invoicing.email.model.EmailWithInvoice
|
||||
|
||||
open class FetchEmailsOptions(
|
||||
val downloadMessageBody: Boolean = false,
|
||||
val emailFolderName: String = "INBOX",
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package net.codinux.invoicing.email
|
||||
|
||||
import net.codinux.invoicing.email.model.EmailWithInvoice
|
||||
|
||||
data class FetchEmailsResult(
|
||||
val emails: List<EmailWithInvoice>,
|
||||
val overallError: Throwable?,
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package net.codinux.invoicing.email
|
||||
|
||||
import net.codinux.invoicing.email.model.EmailWithInvoice
|
||||
|
||||
open class ListenForNewMailsOptions(
|
||||
downloadMessageBody: Boolean = false,
|
||||
emailFolderName: String = "INBOX",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package net.codinux.invoicing.email
|
||||
package net.codinux.invoicing.email.model
|
||||
|
||||
class EmailAccount(
|
||||
val username: String,
|
|
@ -1,4 +1,4 @@
|
|||
package net.codinux.invoicing.email
|
||||
package net.codinux.invoicing.email.model
|
||||
|
||||
import net.codinux.invoicing.model.Invoice
|
||||
import java.io.File
|
|
@ -1,4 +1,4 @@
|
|||
package net.codinux.invoicing.email
|
||||
package net.codinux.invoicing.email.model
|
||||
|
||||
import java.time.Instant
|
||||
import java.time.ZoneId
|
|
@ -1,7 +1,7 @@
|
|||
package net.codinux.invoicing
|
||||
|
||||
import net.codinux.invoicing.creation.EInvoiceCreator
|
||||
import net.codinux.invoicing.email.EmailAccount
|
||||
import net.codinux.invoicing.email.model.EmailAccount
|
||||
import net.codinux.invoicing.email.EmailsFetcher
|
||||
import net.codinux.invoicing.model.Invoice
|
||||
import net.codinux.invoicing.model.InvoiceItem
|
||||
|
|
|
@ -3,6 +3,7 @@ package net.codinux.invoicing.email
|
|||
import assertk.assertThat
|
||||
import assertk.assertions.isEmpty
|
||||
import assertk.assertions.isNotEmpty
|
||||
import net.codinux.invoicing.email.model.EmailAccount
|
||||
import org.junit.jupiter.api.Test
|
||||
import kotlin.test.Ignore
|
||||
|
||||
|
|
Loading…
Reference in New Issue