import {a as a$1}from'./chunk-D6QEVE6U.js';import {a}from'./chunk-DDYADIOR.js';var d=class c extends a{constructor(){super(...arguments);this.resultType="receipt";}get storeName(){var e;return (e=this._storeName)!=null?e:null}get storeCity(){var e;return (e=this._storeCity)!=null?e:null}get storeAddress(){var e;return (e=this._storeAddress)!=null?e:null}get date(){var e;return (e=this._date)!=null?e:null}get time(){var e;return (e=this._time)!=null?e:null}get paymentPreTaxTotal(){var e;return (e=this._paymentPreTaxTotal)!=null?e:null}get paymentTax(){var e;return (e=this._paymentTax)!=null?e:null}get paymentTotal(){var e;return (e=this._paymentTotal)!=null?e:null}get loyaltyNumber(){var e;return (e=this._loyaltyNumber)!=null?e:null}get lineItems(){return this._lineItems}static fromJSON(e){var n,l,i,r,a,u,s,m,p;let t=new c;return t._lineItems=e.lineItems.map(_=>a$1.fromJSON(_)),t._storeName=(n=e.storeName)!=null?n:void 0,t._storeCity=(l=e.storeCity)!=null?l:void 0,t._storeAddress=(i=e.storeAddress)!=null?i:void 0,t._date=(r=e.date)!=null?r:void 0,t._time=(a=e.time)!=null?a:void 0,t._paymentPreTaxTotal=(u=e.paymentPreTaxTotal)!=null?u:void 0,t._paymentTax=(s=e.paymentTax)!=null?s:void 0,t._paymentTotal=(m=e.paymentTotal)!=null?m:void 0,t._loyaltyNumber=(p=e.loyaltyNumber)!=null?p:void 0,t}toJSONObject(){var e,t,n,l,i,r,a,u,s;return {storeName:(e=this._storeName)!=null?e:null,storeCity:(t=this._storeCity)!=null?t:null,storeAddress:(n=this._storeAddress)!=null?n:null,date:(l=this._date)!=null?l:null,time:(i=this._time)!=null?i:null,paymentPreTaxTotal:(r=this._paymentPreTaxTotal)!=null?r:null,paymentTax:(a=this._paymentTax)!=null?a:null,paymentTotal:(u=this._paymentTotal)!=null?u:null,loyaltyNumber:(s=this._loyaltyNumber)!=null?s:null,lineItems:this._lineItems.map(m=>m.toJSONObject())}}};export{d as a};