11package eu .pretix .libpretixsync .db ;
22
3- import com .fasterxml .jackson .annotation .JsonIgnore ;
4-
53import org .joda .time .DateTime ;
64import org .joda .time .format .ISODateTimeFormat ;
75import org .json .JSONArray ;
1210import java .io .ObjectStreamException ;
1311import java .io .Serializable ;
1412import java .math .BigDecimal ;
15- import java .nio .charset .Charset ;
1613
1714import eu .pretix .libpretixsync .utils .I18nString ;
1815
1916public class ItemVariation implements Serializable {
2017 private Long server_id ;
21- private BigDecimal listed_price ;
18+ private BigDecimal display_price ;
2219 private BigDecimal price ;
2320 private boolean active ;
2421 private JSONObject description ;
@@ -42,8 +39,8 @@ public void setPrice(BigDecimal price) {
4239 this .price = price ;
4340 }
4441
45- public void setListed_price (BigDecimal listed_price ) {
46- this .listed_price = listed_price ;
42+ public void setDisplay_price (BigDecimal display_price ) {
43+ this .display_price = display_price ;
4744 }
4845
4946 public void setActive (boolean active ) {
@@ -70,7 +67,7 @@ public BigDecimal getPrice() {
7067 return price ;
7168 }
7269
73- public BigDecimal getListedPrice () { return listed_price ; }
70+ public BigDecimal getDisplayPrice () { return display_price ; }
7471
7572 public boolean isActive () {
7673 return active ;
@@ -140,8 +137,8 @@ public void setHide_without_voucher(boolean hide_without_voucher) {
140137 this .hide_without_voucher = hide_without_voucher ;
141138 }
142139
143- public BigDecimal getListed_price () {
144- return listed_price ;
140+ public BigDecimal getDisplay_price () {
141+ return display_price ;
145142 }
146143
147144 public boolean isCheckin_attention () {
@@ -175,7 +172,7 @@ public JSONObject toJSON() {
175172 jsonObject .put ("available_from" , available_from );
176173 jsonObject .put ("available_until" , available_until );
177174 jsonObject .put ("hide_without_voucher" , hide_without_voucher );
178- jsonObject .put ("listed_price " , listed_price );
175+ jsonObject .put ("display_price " , display_price );
179176 jsonObject .put ("checkin_attention" , checkin_attention );
180177 jsonObject .put ("checkin_text" , checkin_text );
181178 } catch (JSONException e ) {
@@ -211,7 +208,7 @@ private void readObject(java.io.ObjectInputStream in)
211208 hide_without_voucher = jsonObject .getBoolean ("hide_without_voucher" );
212209 checkin_attention = jsonObject .getBoolean ("checkin_attention" );
213210 checkin_text = jsonObject .optString ("checkin_text" );
214- listed_price = !jsonObject .isNull ("listed_price " ) ? new BigDecimal (jsonObject .getString ("listed_price " )) : null ;
211+ display_price = !jsonObject .isNull ("display_price " ) ? new BigDecimal (jsonObject .getString ("display_price " )) : null ;
215212 } catch (JSONException e ) {
216213 e .printStackTrace ();
217214 }
0 commit comments