// Path: common/src/main/java/cz/gopay/api/v3/util/GPTimestampAdapter.java
// public class GPTimestampAdapter extends XmlAdapter<String, Date> {
// 
//   private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
// 
//   @Override
//   public String marshal(Date v) throws Exception {
//     return dateFormat.format(v);
//   }
// 
//   @Override
//   public Date unmarshal(String v) throws Exception {
//     return dateFormat.parse(v);
//   }
// 
// }


import cz.gopay.api.v3.util.GPTimestampAdapter;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
package cz.gopay.api.v3.model.eet;




@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class EETReceipt {
	
	public enum REETReceiptState {
		CREATED,
		DELIVERY_FAILED,
		DELIVERED
	}
	
	public enum REETMode {
		AUTO,
		EET
	}
	
	@XmlElement(name = "payment_id")
	private Long paymentId;
	
	@XmlElement(name = "state")
	private REETReceiptState state;
	
	@XmlElement(name = "date_last_attempt")
// Path: common/src/main/java/cz/gopay/api/v3/util/GPTimestampAdapter.java
// public class GPTimestampAdapter extends XmlAdapter<String, Date> {
// 
//   private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
// 
//   @Override
//   public String marshal(Date v) throws Exception {
//     return dateFormat.format(v);
//   }
// 
//   @Override
//   public Date unmarshal(String v) throws Exception {
//     return dateFormat.parse(v);
//   }
// 
// }


// Path: common/src/main/java/cz/gopay/api/v3/model/eet/EETReceipt.java
import cz.gopay.api.v3.util.GPTimestampAdapter;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

package cz.gopay.api.v3.model.eet;




@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class EETReceipt {
	
	public enum REETReceiptState {
		CREATED,
		DELIVERY_FAILED,
		DELIVERED
	}
	
	public enum REETMode {
		AUTO,
		EET
	}
	
	@XmlElement(name = "payment_id")
	private Long paymentId;
	
	@XmlElement(name = "state")
	private REETReceiptState state;
	
	@XmlElement(name = "date_last_attempt")
	@XmlJavaTypeAdapter(GPTimestampAdapter.class)