com.tinypass.client.publisher.model.Voucher Maven / Gradle / Ivy
package com.tinypass.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tinypass.client.publisher.model.UserAddress;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
public class Voucher {
/* The public ID of the voucher */
private String pubId = null;
/* The voucher code */
private String code = null;
/* The voucher state */
private String state = null;
//public enum stateEnum { assigned, sending, delivered, failed, redeeming, redeemed, revoked, };
/* The label of the voucher state */
private String stateLabel = null;
//public enum stateLabelEnum { Assigned, Sending, Delivered, Failed, Redeeming, Redeemed, Revoked, };
/* The name of the voucher recipient */
private String recipientName = null;
/* The voucher recipient's email */
private String recipientEmail = null;
/* The message to the recepient */
private String recipientMessage = null;
/* When the voucher was sent */
private Integer sendDate = null;
/* When the voucher was created */
private Integer createDate = null;
/* When the voucher expires */
private String expires = null;
/* When the voucher expires */
private Integer expireDate = null;
/* When the voucher was redeemed */
private Integer redeemed = null;
/* When the voucher was revoked */
private Integer revokeDate = null;
/* The voucher period */
private String period = null;
/* The app name */
private String appName = null;
/* The term name */
private String termName = null;
/* The term type */
private String termType = null;
//public enum termTypeEnum { payment, adview, registration, newsletter, external, custom, grant_access, gift, specific_email_addresses_contract, email_domain_contract, ip_range_contract, dynamic, linked, };
/* The term ID */
private String termId = null;
/* The resource name */
private String resourceName = null;
/* The voucher price */
private String price = null;
/* The transaction ID */
private String transactionId = null;
/* Whether the voucher is revocable */
private Boolean isRevocable = null;
/* Whether the voucher payment is refundable */
private Boolean isRefundable = null;
/* Whether the voucher can be resent */
private Boolean isResendable = null;
/* The voucher refund amount */
private String refundAmount = null;
/* Refund amount was recalculated before */
private Boolean refundAmountRecalculated = null;
/* The user address entity */
private UserAddress userAddress = null;
public String getPubId() {
return pubId;
}
public void setPubId(String pubId) {
this.pubId = pubId;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getStateLabel() {
return stateLabel;
}
public void setStateLabel(String stateLabel) {
this.stateLabel = stateLabel;
}
public String getRecipientName() {
return recipientName;
}
public void setRecipientName(String recipientName) {
this.recipientName = recipientName;
}
public String getRecipientEmail() {
return recipientEmail;
}
public void setRecipientEmail(String recipientEmail) {
this.recipientEmail = recipientEmail;
}
public String getRecipientMessage() {
return recipientMessage;
}
public void setRecipientMessage(String recipientMessage) {
this.recipientMessage = recipientMessage;
}
public Integer getSendDate() {
return sendDate;
}
public void setSendDate(Integer sendDate) {
this.sendDate = sendDate;
}
public Integer getCreateDate() {
return createDate;
}
public void setCreateDate(Integer createDate) {
this.createDate = createDate;
}
public String getExpires() {
return expires;
}
public void setExpires(String expires) {
this.expires = expires;
}
public Integer getExpireDate() {
return expireDate;
}
public void setExpireDate(Integer expireDate) {
this.expireDate = expireDate;
}
public Integer getRedeemed() {
return redeemed;
}
public void setRedeemed(Integer redeemed) {
this.redeemed = redeemed;
}
public Integer getRevokeDate() {
return revokeDate;
}
public void setRevokeDate(Integer revokeDate) {
this.revokeDate = revokeDate;
}
public String getPeriod() {
return period;
}
public void setPeriod(String period) {
this.period = period;
}
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public String getTermName() {
return termName;
}
public void setTermName(String termName) {
this.termName = termName;
}
public String getTermType() {
return termType;
}
public void setTermType(String termType) {
this.termType = termType;
}
public String getTermId() {
return termId;
}
public void setTermId(String termId) {
this.termId = termId;
}
public String getResourceName() {
return resourceName;
}
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public String getTransactionId() {
return transactionId;
}
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public Boolean getIsRevocable() {
return isRevocable;
}
public void setIsRevocable(Boolean isRevocable) {
this.isRevocable = isRevocable;
}
public Boolean getIsRefundable() {
return isRefundable;
}
public void setIsRefundable(Boolean isRefundable) {
this.isRefundable = isRefundable;
}
public Boolean getIsResendable() {
return isResendable;
}
public void setIsResendable(Boolean isResendable) {
this.isResendable = isResendable;
}
public String getRefundAmount() {
return refundAmount;
}
public void setRefundAmount(String refundAmount) {
this.refundAmount = refundAmount;
}
public Boolean getRefundAmountRecalculated() {
return refundAmountRecalculated;
}
public void setRefundAmountRecalculated(Boolean refundAmountRecalculated) {
this.refundAmountRecalculated = refundAmountRecalculated;
}
public UserAddress getUserAddress() {
return userAddress;
}
public void setUserAddress(UserAddress userAddress) {
this.userAddress = userAddress;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Voucher {\n");
sb.append(" pubId: ").append(pubId).append("\n");
sb.append(" code: ").append(code).append("\n");
sb.append(" state: ").append(state).append("\n");
sb.append(" stateLabel: ").append(stateLabel).append("\n");
sb.append(" recipientName: ").append(recipientName).append("\n");
sb.append(" recipientEmail: ").append(recipientEmail).append("\n");
sb.append(" recipientMessage: ").append(recipientMessage).append("\n");
sb.append(" sendDate: ").append(sendDate).append("\n");
sb.append(" createDate: ").append(createDate).append("\n");
sb.append(" expires: ").append(expires).append("\n");
sb.append(" expireDate: ").append(expireDate).append("\n");
sb.append(" redeemed: ").append(redeemed).append("\n");
sb.append(" revokeDate: ").append(revokeDate).append("\n");
sb.append(" period: ").append(period).append("\n");
sb.append(" appName: ").append(appName).append("\n");
sb.append(" termName: ").append(termName).append("\n");
sb.append(" termType: ").append(termType).append("\n");
sb.append(" termId: ").append(termId).append("\n");
sb.append(" resourceName: ").append(resourceName).append("\n");
sb.append(" price: ").append(price).append("\n");
sb.append(" transactionId: ").append(transactionId).append("\n");
sb.append(" isRevocable: ").append(isRevocable).append("\n");
sb.append(" isRefundable: ").append(isRefundable).append("\n");
sb.append(" isResendable: ").append(isResendable).append("\n");
sb.append(" refundAmount: ").append(refundAmount).append("\n");
sb.append(" refundAmountRecalculated: ").append(refundAmountRecalculated).append("\n");
sb.append(" userAddress: ").append(userAddress).append("\n");
sb.append("}\n");
return sb.toString();
}
}