
Model.GetSubscriptionResponse1 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.GetSubscriptionResponse1BuyerInformation;
import Model.GetSubscriptionResponse1Links;
import Model.GetSubscriptionResponse1PaymentInstrument;
import Model.GetSubscriptionResponse1ShippingAddress;
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;
/**
* GetSubscriptionResponse1
*/
public class GetSubscriptionResponse1 {
@SerializedName("_links")
private GetSubscriptionResponse1Links links = null;
@SerializedName("buyerInformation")
private GetSubscriptionResponse1BuyerInformation buyerInformation = null;
@SerializedName("paymentInstrument")
private GetSubscriptionResponse1PaymentInstrument paymentInstrument = null;
@SerializedName("shippingAddress")
private GetSubscriptionResponse1ShippingAddress shippingAddress = null;
public GetSubscriptionResponse1 links(GetSubscriptionResponse1Links links) {
this.links = links;
return this;
}
/**
* Get links
* @return links
**/
@ApiModelProperty(value = "")
public GetSubscriptionResponse1Links getLinks() {
return links;
}
public void setLinks(GetSubscriptionResponse1Links links) {
this.links = links;
}
public GetSubscriptionResponse1 buyerInformation(GetSubscriptionResponse1BuyerInformation buyerInformation) {
this.buyerInformation = buyerInformation;
return this;
}
/**
* Get buyerInformation
* @return buyerInformation
**/
@ApiModelProperty(value = "")
public GetSubscriptionResponse1BuyerInformation getBuyerInformation() {
return buyerInformation;
}
public void setBuyerInformation(GetSubscriptionResponse1BuyerInformation buyerInformation) {
this.buyerInformation = buyerInformation;
}
public GetSubscriptionResponse1 paymentInstrument(GetSubscriptionResponse1PaymentInstrument paymentInstrument) {
this.paymentInstrument = paymentInstrument;
return this;
}
/**
* Get paymentInstrument
* @return paymentInstrument
**/
@ApiModelProperty(value = "")
public GetSubscriptionResponse1PaymentInstrument getPaymentInstrument() {
return paymentInstrument;
}
public void setPaymentInstrument(GetSubscriptionResponse1PaymentInstrument paymentInstrument) {
this.paymentInstrument = paymentInstrument;
}
public GetSubscriptionResponse1 shippingAddress(GetSubscriptionResponse1ShippingAddress shippingAddress) {
this.shippingAddress = shippingAddress;
return this;
}
/**
* Get shippingAddress
* @return shippingAddress
**/
@ApiModelProperty(value = "")
public GetSubscriptionResponse1ShippingAddress getShippingAddress() {
return shippingAddress;
}
public void setShippingAddress(GetSubscriptionResponse1ShippingAddress shippingAddress) {
this.shippingAddress = shippingAddress;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetSubscriptionResponse1 getSubscriptionResponse1 = (GetSubscriptionResponse1) o;
return Objects.equals(this.links, getSubscriptionResponse1.links) &&
Objects.equals(this.buyerInformation, getSubscriptionResponse1.buyerInformation) &&
Objects.equals(this.paymentInstrument, getSubscriptionResponse1.paymentInstrument) &&
Objects.equals(this.shippingAddress, getSubscriptionResponse1.shippingAddress);
}
@Override
public int hashCode() {
return Objects.hash(links, buyerInformation, paymentInstrument, shippingAddress);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetSubscriptionResponse1 {\n");
if (links != null) sb.append(" links: ").append(toIndentedString(links)).append("\n");
if (buyerInformation != null) sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n");
if (paymentInstrument != null) sb.append(" paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n");
if (shippingAddress != null) sb.append(" shippingAddress: ").append(toIndentedString(shippingAddress)).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