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