io.gravitee.management.model.SubscriptionEntity Maven / Gradle / Ivy
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gravitee.management.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;
/**
* @author David BRASSELY (david.brassely at graviteesource.com)
* @author GraviteeSource Team
*/
public class SubscriptionEntity {
private String id;
private String api;
private String plan;
private String application;
private SubscriptionStatus status;
@JsonProperty("processed_at")
private Date processedAt;
@JsonProperty("processed_by")
private String processedBy;
@JsonProperty("subscribed_by")
private String subscribedBy;
private String request;
private String reason;
@JsonProperty("starting_at")
private Date startingAt;
@JsonProperty("ending_at")
private Date endingAt;
/**
* Subscription creation date
*/
@JsonProperty("created_at")
private Date createdAt;
/**
* Subscription last update date
*/
@JsonProperty("updated_at")
private Date updatedAt;
@JsonProperty("closed_at")
private Date closedAt;
@JsonProperty("client_id")
private String clientId;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getApi() {
return api;
}
public void setApi(String api) {
this.api = api;
}
public String getPlan() {
return plan;
}
public void setPlan(String plan) {
this.plan = plan;
}
public String getApplication() {
return application;
}
public void setApplication(String application) {
this.application = application;
}
public Date getStartingAt() {
return startingAt;
}
public void setStartingAt(Date startingAt) {
this.startingAt = startingAt;
}
public Date getEndingAt() {
return endingAt;
}
public void setEndingAt(Date endingAt) {
this.endingAt = endingAt;
}
public SubscriptionStatus getStatus() {
return status;
}
public void setStatus(SubscriptionStatus status) {
this.status = status;
}
public Date getProcessedAt() {
return processedAt;
}
public void setProcessedAt(Date processedAt) {
this.processedAt = processedAt;
}
public String getProcessedBy() {
return processedBy;
}
public void setProcessedBy(String processedBy) {
this.processedBy = processedBy;
}
public String getSubscribedBy() {
return subscribedBy;
}
public void setSubscribedBy(String subscribedBy) {
this.subscribedBy = subscribedBy;
}
public String getRequest() {
return request;
}
public void setRequest(String request) {
this.request = request;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Date getClosedAt() {
return closedAt;
}
public void setClosedAt(Date closedAt) {
this.closedAt = closedAt;
}
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SubscriptionEntity that = (SubscriptionEntity) o;
return id.equals(that.id);
}
@Override
public int hashCode() {
return id.hashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy