Turnover

data class Turnover(@Json(name = idid: String?, @Json(name = transaction_idtransactionId: String?, @Json(name = booking_datebookingDate: OffsetDateTime, @Json(name = amountamount: Float, @Json(name = currencycurrency: CurrencyId, @Json(name = purposepurpose: List<String>, @Json(name = counter_ibancounterIban: String?, @Json(name = counter_biccounterBic: String?, @Json(name = counter_holdercounterHolder: String?, @Json(name = prebookedprebooked: Boolean?, @Json(name = canceledcanceled: Boolean?, @Json(name = tagstags: List<Tag>?, @Json(name = category_idcategoryId: Category?, @Json(name = creditor_idcreditorId: String?, @Json(name = newnew: Boolean?)

Parameters

id

ID if feature is enabled always null otherwise.

transactionId

Transaction ID of this turnover if the bank supports it.

bookingDate

The booking date.

amount

The turnover amount. Negative for expenditures.

currency

The two-letter currency ID, e.g. 'EUR'

purpose

A string array of purpose lines. The contents vary from bank to bank.

counterIban

The counter IBAN of the booking. This is not always present.

counterBic

The counter BIC of the booking. This is not always present.

counterHolder

The counter holder of the booking. This is not always present.

prebooked

True, if the turnover has not been booked yet

canceled

True, if the turnover has been canceled.

tags

An array of strings of tags for this turnover. Find all possible tags here: https://manage.xs2a.com/documentation/tags

categoryId

The ID of the category found for this turnover. The structure of this category_id string is hierarchical, meaning, the more numbers there are, the more detailed the category is. For example, while K.1 means \"expenses for wholesale and retail trade\", some turnovers might be categorized more detailed as K.1.1 (\"expenses in retail stores\"), or even as K.1.1.1 (\"groceries full-range trader\"). You can find the complete list of categories here. NOTE: As new categories are introduced and the categorization itself is improved constantly, it is possible that the same turnover can be categorized with a different (more detailed) category_id at a future point in time. You should develop your application in such a way, that, for example, if your logic relies on something happening when a category_id is K.1.1, but you get K.1.2 for which no logic is in place (because it might be a new category_id or the turnover is now categorized more detailed), you should always fall back to the next higher level category, in this case K.1. This way, your logic can still handle the turnover based on a more general category, while not throwing an error.

creditorId

The ID of the creditor.

new

True, if this turnover is new since the last sync.

Constructors

Turnover
Link copied to clipboard
fun Turnover(@Json(name = idid: String? = null, @Json(name = transaction_idtransactionId: String? = null, @Json(name = booking_datebookingDate: OffsetDateTime, @Json(name = amountamount: Float, @Json(name = currencycurrency: CurrencyId, @Json(name = purposepurpose: List<String>, @Json(name = counter_ibancounterIban: String? = null, @Json(name = counter_biccounterBic: String? = null, @Json(name = counter_holdercounterHolder: String? = null, @Json(name = prebookedprebooked: Boolean? = null, @Json(name = canceledcanceled: Boolean? = null, @Json(name = tagstags: List<Tag>? = null, @Json(name = category_idcategoryId: Category? = null, @Json(name = creditor_idcreditorId: String? = null, @Json(name = newnew: Boolean? = null)
ID if feature is enabled always null otherwise.

Types

Adapter
Link copied to clipboard
object Adapter

Properties

amount
Link copied to clipboard
var amount: Float
The turnover amount.
bookingDate
Link copied to clipboard
var bookingDate: OffsetDateTime
The booking date.
canceled
Link copied to clipboard
var canceled: Boolean? = null
True, if the turnover has been canceled.
categoryId
Link copied to clipboard
var categoryId: Category? = null
The ID of the category found for this turnover.
counterBic
Link copied to clipboard
var counterBic: String? = null
The counter BIC of the booking.
counterHolder
Link copied to clipboard
var counterHolder: String? = null
The counter holder of the booking.
counterIban
Link copied to clipboard
var counterIban: String? = null
The counter IBAN of the booking.
creditorId
Link copied to clipboard
var creditorId: String? = null
The ID of the creditor.
currency
Link copied to clipboard
var currency: CurrencyId
The two-letter currency ID, e.g.
id
Link copied to clipboard
var id: String? = null
ID if feature is enabled always null otherwise.
new
Link copied to clipboard
var new: Boolean? = null
True, if this turnover is new since the last sync.
prebooked
Link copied to clipboard
var prebooked: Boolean? = null
True, if the turnover has not been booked yet
purpose
Link copied to clipboard
var purpose: List<String>
A string array of purpose lines.
tags
Link copied to clipboard
var tags: List<Tag>? = null
An array of strings of tags for this turnover.
transactionId
Link copied to clipboard
var transactionId: String? = null
Transaction ID of this turnover if the bank supports it.