-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies && start updating APIs
- Loading branch information
Showing
48 changed files
with
545 additions
and
271 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/kotlin/io/github/smaugfm/lunchmoney/model/LunchmoneyTransactionChild.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@file:UseSerializers( | ||
LocalDateSerializer::class, | ||
BigDecimalSerializer::class, | ||
CurrencySerializer::class, | ||
InstantSerializer::class, | ||
) | ||
|
||
package io.github.smaugfm.lunchmoney.model | ||
|
||
import io.github.smaugfm.lunchmoney.serializer.BigDecimalSerializer | ||
import io.github.smaugfm.lunchmoney.serializer.CurrencySerializer | ||
import io.github.smaugfm.lunchmoney.serializer.InstantSerializer | ||
import io.github.smaugfm.lunchmoney.serializer.LocalDateSerializer | ||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.UseSerializers | ||
import java.math.BigDecimal | ||
import java.time.LocalDate | ||
import java.util.Currency | ||
|
||
@Serializable | ||
data class LunchmoneyTransactionChild( | ||
val id: Long, | ||
val date: LocalDate, | ||
val payee: String, | ||
val amount: BigDecimal, | ||
val currency: Currency, | ||
val formattedDate: LocalDate, | ||
val notes: String? = null, | ||
val assetId: Long? = null, | ||
val plaidAccountId: Long? = null, | ||
val toBase: Double | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/io/github/smaugfm/lunchmoney/model/enumeration/LunchmoneyAssetStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package io.github.smaugfm.lunchmoney.model.enumeration | ||
|
||
enum class LunchmoneyAssetStatus { | ||
Active, | ||
Closed | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...main/kotlin/io/github/smaugfm/lunchmoney/model/enumeration/LunchmoneyTransactionSource.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package io.github.smaugfm.lunchmoney.model.enumeration | ||
|
||
enum class LunchmoneyTransactionSource { | ||
Api, Csv, Manual, Merge, Plaid, Recurring, Rule, User | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/kotlin/io/github/smaugfm/lunchmoney/request/category/AddToCategoryGroupRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/kotlin/io/github/smaugfm/lunchmoney/request/category/GetSingleCategoryRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package io.github.smaugfm.lunchmoney.request.category | ||
|
||
import io.github.smaugfm.lunchmoney.helper.PathAndQuery | ||
import io.github.smaugfm.lunchmoney.model.LunchmoneyCategorySingle | ||
import io.github.smaugfm.lunchmoney.model.LunchmoneyCategory | ||
import io.github.smaugfm.lunchmoney.request.base.LunchmoneyAbstractGetRequest | ||
|
||
internal class GetSingleCategoryRequest( | ||
id: Long | ||
) : LunchmoneyAbstractGetRequest<LunchmoneyCategorySingle>( | ||
) : LunchmoneyAbstractGetRequest<LunchmoneyCategory>( | ||
PathAndQuery.segment("categories").segment(id) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.