@Serializable
@optics([OpticsTarget.DSL, OpticsTarget.OPTIONAL, OpticsTarget.LENS])
data class OrderReqAdmin(
val id: Long,
val packageOrder: PackageOrderReqAdmin? = null,
val reservation: ReservationReqAdmin? = null,
val upsales: List<UpsaleReqAdmin>,
val name: String,
val email: String?,
val phone: String?,
val currency: Currency,
val notes: Map<NoteType, String>,
val price: Double,
val deposit: Double,
val cancellation: OrderCancellationReq?,
val status: OrderStatus,
val paymentMethod: PaymentMethod,
val paymentMethodDeposit: PaymentMethod,
val cost: Double,
val agencyId: Long,
val isPaidDeposit: Boolean,
val isPaidRest: Boolean,
val overrideInvoicePublisher: InvoicePublisher?,
val overrideVatRate: VatRateOverride?,
val bons: List<Bon>,
val language: Language,
val voucherId: String?,
) {
companion object
}
This fails for me. I'm gonna double check the configuration. Since it should work, it's probably just some misconfig somewhere.