package cn.buk.api.dto.hotel;
import cn.buk.api.util.xstream.MyDateConverter;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import java.util.Date;
/**
* 担保制度
* Created by william on 2015-1-23.
*/
@XStreamAlias("GuaranteePayment")
public class HotelAvailResponseGuaranteePayment {
//<!-- GuaranteeCode属性:担保制度代码;Start属性:生效时间;End属性:过期时间 -->
//<GuaranteePayment GuaranteeCode="4" Start="2012-06-27 00:00:00" End="2012-06-27 00:00:00">
@XStreamAlias("GuaranteeCode")
@XStreamAsAttribute
private String guaranteeCode;
@XStreamAlias("Start")
@XStreamAsAttribute
@XStreamConverter(value=MyDateConverter.class, strings={"yyyy-MM-dd HH:mm:ss"})
private Date startDate;
@XStreamAlias("End")
@XStreamAsAttribute
@XStreamConverter(value=MyDateConverter.class, strings={"yyyy-MM-dd HH:mm:ss"})
private Date endDate;
@XStreamAlias("AmountPercent")
private HotelAvailResponseAmount amount;
@XStreamAlias("Description")
private Description description;
public String getGuaranteeCode() {
return guaranteeCode;
}
public void setGuaranteeCode(String guaranteeCode) {
this.guaranteeCode = guaranteeCode;
}
public Date getStartDate() {
return startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public HotelAvailResponseAmount getAmount() {
return amount;
}
public void setAmount(HotelAvailResponseAmount amount) {
this.amount = amount;
}
public Description getDescription() {
return description;
}
public void setDescription(Description description) {
this.description = description;
}
}