@@ -40,7 +40,7 @@ class AsyncCheckProvider(private val config: ConfigStore, private val dataStore:
4040 this .sentry = sentry
4141 }
4242
43- private fun storeFailedCheckin (eventSlug : String , listId : Long , error_reason : String , raw_barcode : String , type : TicketCheckProvider .CheckInType , position : Long? = null, item : Long? = null, variation : Long? = null, subevent : Long? = null, nonce : String? , eventsAndCheckinLists : Set < Map . Entry < String , Long > >? = null) {
43+ private fun storeFailedCheckin (eventSlug : String , listId : Long , error_reason : String , raw_barcode : String , type : TicketCheckProvider .CheckInType , position : Long? = null, item : Long? = null, variation : Long? = null, subevent : Long? = null, nonce : String? , candidateCheckinLists : Collection < Long >? = null) {
4444 /*
4545 :<json boolean error_reason: One of ``canceled``, ``invalid``, ``unpaid``, ``product``, ``rules``, ``revoked``,
4646 ``incomplete``, ``already_redeemed``, ``blocked``, ``invalid_time``, or ``error``. Required.
@@ -71,7 +71,7 @@ class AsyncCheckProvider(private val config: ConfigStore, private val dataStore:
7171 if (item != null && item > 0 ) jdoc.put(" item" , item)
7272 if (variation != null && variation > 0 ) jdoc.put(" variation" , variation)
7373 if (subevent != null && subevent > 0 ) jdoc.put(" subevent" , subevent)
74- if (eventsAndCheckinLists != null ) jdoc.put(" events_and_checkin_lists " , eventsAndCheckinLists )
74+ if (candidateCheckinLists != null ) jdoc.put(" candidate_checkin_lists " , candidateCheckinLists )
7575
7676 val qo = QueuedCall ()
7777 val api = PretixApi .fromConfig(config) // todo: uses wrong http client
@@ -279,7 +279,7 @@ class AsyncCheckProvider(private val config: ConfigStore, private val dataStore:
279279 }
280280 if (decoded == null || event == null ) {
281281 val firstentry = eventsAndCheckinLists.entries.first()
282- storeFailedCheckin(firstentry.key, firstentry.value, " invalid" , ticketid, type, nonce = nonce, eventsAndCheckinLists = eventsAndCheckinLists.entries )
282+ storeFailedCheckin(firstentry.key, firstentry.value, " invalid" , ticketid, type, nonce = nonce, candidateCheckinLists = eventsAndCheckinLists.values )
283283 return TicketCheckProvider .CheckResult (TicketCheckProvider .CheckResult .Type .INVALID , offline = true )
284284 }
285285 val listId = eventsAndCheckinLists[event.slug] ? : return TicketCheckProvider .CheckResult (TicketCheckProvider .CheckResult .Type .ERROR , " Check-in list not set for event" , offline = true )
0 commit comments