
Model.CreatePlanRequest 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 Model.Rbsv1plansClientReferenceInformation;
import Model.Rbsv1plansOrderInformation;
import Model.Rbsv1plansPlanInformation;
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;
/**
* CreatePlanRequest
*/
public class CreatePlanRequest {
@SerializedName("clientReferenceInformation")
private Rbsv1plansClientReferenceInformation clientReferenceInformation = null;
@SerializedName("planInformation")
private Rbsv1plansPlanInformation planInformation = null;
@SerializedName("orderInformation")
private Rbsv1plansOrderInformation orderInformation = null;
public CreatePlanRequest clientReferenceInformation(Rbsv1plansClientReferenceInformation clientReferenceInformation) {
this.clientReferenceInformation = clientReferenceInformation;
return this;
}
/**
* Get clientReferenceInformation
* @return clientReferenceInformation
**/
@ApiModelProperty(value = "")
public Rbsv1plansClientReferenceInformation getClientReferenceInformation() {
return clientReferenceInformation;
}
public void setClientReferenceInformation(Rbsv1plansClientReferenceInformation clientReferenceInformation) {
this.clientReferenceInformation = clientReferenceInformation;
}
public CreatePlanRequest planInformation(Rbsv1plansPlanInformation planInformation) {
this.planInformation = planInformation;
return this;
}
/**
* Get planInformation
* @return planInformation
**/
@ApiModelProperty(value = "")
public Rbsv1plansPlanInformation getPlanInformation() {
return planInformation;
}
public void setPlanInformation(Rbsv1plansPlanInformation planInformation) {
this.planInformation = planInformation;
}
public CreatePlanRequest orderInformation(Rbsv1plansOrderInformation orderInformation) {
this.orderInformation = orderInformation;
return this;
}
/**
* Get orderInformation
* @return orderInformation
**/
@ApiModelProperty(value = "")
public Rbsv1plansOrderInformation getOrderInformation() {
return orderInformation;
}
public void setOrderInformation(Rbsv1plansOrderInformation orderInformation) {
this.orderInformation = orderInformation;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreatePlanRequest createPlanRequest = (CreatePlanRequest) o;
return Objects.equals(this.clientReferenceInformation, createPlanRequest.clientReferenceInformation) &&
Objects.equals(this.planInformation, createPlanRequest.planInformation) &&
Objects.equals(this.orderInformation, createPlanRequest.orderInformation);
}
@Override
public int hashCode() {
return Objects.hash(clientReferenceInformation, planInformation, orderInformation);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreatePlanRequest {\n");
if (clientReferenceInformation != null) sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n");
if (planInformation != null) sb.append(" planInformation: ").append(toIndentedString(planInformation)).append("\n");
if (orderInformation != null) sb.append(" orderInformation: ").append(toIndentedString(orderInformation)).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