@@ -90,16 +90,16 @@ open class PretixApi(url: String, key: String, orgaSlug: String, version: Int, h
90
90
}
91
91
92
92
@Throws(ApiException ::class , JSONException ::class )
93
- fun redeem (lists : List <Long >, secret : String , datetime : Date ? , force : Boolean , nonce : String? , answers : List <Answer >? , ignore_unpaid : Boolean , pdf_data : Boolean , type : String? , callTimeout : Long? = null, questions_supported : Boolean = true): ApiResponse {
93
+ fun redeem (lists : List <Long >, secret : String , datetime : Date ? , force : Boolean , nonce : String? , answers : List <Answer >? , ignore_unpaid : Boolean , pdf_data : Boolean , type : String? , source_type : String? , callTimeout : Long? = null, questions_supported : Boolean = true): ApiResponse {
94
94
var dt: String? = null
95
95
if (datetime != null ) {
96
96
dt = QueuedCheckIn .formatDatetime(datetime)
97
97
}
98
- return redeem(lists, secret, dt, force, nonce, answers, ignore_unpaid, pdf_data, type, callTimeout, questions_supported)
98
+ return redeem(lists, secret, dt, force, nonce, answers, ignore_unpaid, pdf_data, type, source_type, callTimeout, questions_supported)
99
99
}
100
100
101
101
@Throws(ApiException ::class , JSONException ::class )
102
- open fun redeem (lists : List <Long >, secret : String , datetime : String? , force : Boolean , nonce : String? , answers : List <Answer >? , ignore_unpaid : Boolean , pdf_data : Boolean , type : String? , callTimeout : Long? = null, questions_supported : Boolean = true): ApiResponse {
102
+ open fun redeem (lists : List <Long >, secret : String , datetime : String? , force : Boolean , nonce : String? , answers : List <Answer >? , ignore_unpaid : Boolean , pdf_data : Boolean , type : String? , source_type : String? , callTimeout : Long? = null, questions_supported : Boolean = true): ApiResponse {
103
103
val body = JSONObject ()
104
104
if (datetime != null ) {
105
105
body.put(" datetime" , datetime)
@@ -108,6 +108,7 @@ open class PretixApi(url: String, key: String, orgaSlug: String, version: Int, h
108
108
body.put(" ignore_unpaid" , ignore_unpaid)
109
109
body.put(" nonce" , nonce)
110
110
body.put(" type" , type)
111
+ body.put(" source_type" , source_type ? : " barcode" )
111
112
val answerbody = JSONObject ()
112
113
if (answers != null ) {
113
114
for (a in answers) {
0 commit comments