Model.Rbsv1subscriptionsidSubscriptionInformation Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package Model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Rbsv1subscriptionsidSubscriptionInformation
*/
public class Rbsv1subscriptionsidSubscriptionInformation {
@SerializedName("code")
private String code = null;
@SerializedName("planId")
private String planId = null;
@SerializedName("name")
private String name = null;
@SerializedName("startDate")
private String startDate = null;
public Rbsv1subscriptionsidSubscriptionInformation code(String code) {
this.code = code;
return this;
}
/**
* Subscription code is an optional field, If not provided system generates and assign one
* @return code
**/
@ApiModelProperty(value = "Subscription code is an optional field, If not provided system generates and assign one ")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public Rbsv1subscriptionsidSubscriptionInformation planId(String planId) {
this.planId = planId;
return this;
}
/**
* Plan Id. Use Plan Id from Create Plan Service.
* @return planId
**/
@ApiModelProperty(value = "Plan Id. Use Plan Id from Create Plan Service. ")
public String getPlanId() {
return planId;
}
public void setPlanId(String planId) {
this.planId = planId;
}
public Rbsv1subscriptionsidSubscriptionInformation name(String name) {
this.name = name;
return this;
}
/**
* Subscription Name
* @return name
**/
@ApiModelProperty(value = "Subscription Name ")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Rbsv1subscriptionsidSubscriptionInformation startDate(String startDate) {
this.startDate = startDate;
return this;
}
/**
* Start date of the Subscription Start date must be in UTC. Format: YYYY-MM-DDThh:mm:ssZ The T separates the date and the time. The Z indicates UTC. Note: Subscription starts on the day provided in UTC. **Example** 2022-08-11T22:47:57Z equals August 11, 2022, at 22:47:57 (10:47:57 p.m.). Subscription will start on August 11,2022.
* @return startDate
**/
@ApiModelProperty(value = "Start date of the Subscription Start date must be in UTC. Format: YYYY-MM-DDThh:mm:ssZ The T separates the date and the time. The Z indicates UTC. Note: Subscription starts on the day provided in UTC. **Example** 2022-08-11T22:47:57Z equals August 11, 2022, at 22:47:57 (10:47:57 p.m.). Subscription will start on August 11,2022. ")
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Rbsv1subscriptionsidSubscriptionInformation rbsv1subscriptionsidSubscriptionInformation = (Rbsv1subscriptionsidSubscriptionInformation) o;
return Objects.equals(this.code, rbsv1subscriptionsidSubscriptionInformation.code) &&
Objects.equals(this.planId, rbsv1subscriptionsidSubscriptionInformation.planId) &&
Objects.equals(this.name, rbsv1subscriptionsidSubscriptionInformation.name) &&
Objects.equals(this.startDate, rbsv1subscriptionsidSubscriptionInformation.startDate);
}
@Override
public int hashCode() {
return Objects.hash(code, planId, name, startDate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Rbsv1subscriptionsidSubscriptionInformation {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" planId: ").append(toIndentedString(planId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy