All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Model.GetAllSubscriptionsResponseSubscriptionInformation Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
/*
 * 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;

/**
 * GetAllSubscriptionsResponseSubscriptionInformation
 */

public class GetAllSubscriptionsResponseSubscriptionInformation {
  @SerializedName("code")
  private String code = null;

  @SerializedName("planId")
  private String planId = null;

  @SerializedName("name")
  private String name = null;

  @SerializedName("startDate")
  private String startDate = null;

  @SerializedName("status")
  private String status = null;

  public GetAllSubscriptionsResponseSubscriptionInformation code(String code) {
    this.code = code;
    return this;
  }

   /**
   * Subscription code. 
   * @return code
  **/
  @ApiModelProperty(value = "Subscription code. ")
  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public GetAllSubscriptionsResponseSubscriptionInformation planId(String planId) {
    this.planId = planId;
    return this;
  }

   /**
   * Plan Id. 
   * @return planId
  **/
  @ApiModelProperty(value = "Plan Id. ")
  public String getPlanId() {
    return planId;
  }

  public void setPlanId(String planId) {
    this.planId = planId;
  }

  public GetAllSubscriptionsResponseSubscriptionInformation 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 GetAllSubscriptionsResponseSubscriptionInformation startDate(String startDate) {
    this.startDate = startDate;
    return this;
  }

   /**
   * Start date of the Subscription  Start date will be in UTC. Format: YYYY-MM-DDThh:mm:ssZ The T separates the date and the time. The Z indicates UTC.  **Example** 2022-08-11T22:47:57Z equals August 11, 2022, at 22:47:57 (10:47:57 p.m.). 
   * @return startDate
  **/
  @ApiModelProperty(value = "Start date of the Subscription  Start date will be in UTC. Format: YYYY-MM-DDThh:mm:ssZ The T separates the date and the time. The Z indicates UTC.  **Example** 2022-08-11T22:47:57Z equals August 11, 2022, at 22:47:57 (10:47:57 p.m.). ")
  public String getStartDate() {
    return startDate;
  }

  public void setStartDate(String startDate) {
    this.startDate = startDate;
  }

  public GetAllSubscriptionsResponseSubscriptionInformation status(String status) {
    this.status = status;
    return this;
  }

   /**
   * Subscription Status: - `PENDING` - `ACTIVE` - `FAILED` - `COMPLETED` - `DELINQUENT` - `SUSPENDED` - `CANCELLED` 
   * @return status
  **/
  @ApiModelProperty(value = "Subscription Status: - `PENDING` - `ACTIVE` - `FAILED` - `COMPLETED` - `DELINQUENT` - `SUSPENDED` - `CANCELLED` ")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetAllSubscriptionsResponseSubscriptionInformation getAllSubscriptionsResponseSubscriptionInformation = (GetAllSubscriptionsResponseSubscriptionInformation) o;
    return Objects.equals(this.code, getAllSubscriptionsResponseSubscriptionInformation.code) &&
        Objects.equals(this.planId, getAllSubscriptionsResponseSubscriptionInformation.planId) &&
        Objects.equals(this.name, getAllSubscriptionsResponseSubscriptionInformation.name) &&
        Objects.equals(this.startDate, getAllSubscriptionsResponseSubscriptionInformation.startDate) &&
        Objects.equals(this.status, getAllSubscriptionsResponseSubscriptionInformation.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(code, planId, name, startDate, status);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetAllSubscriptionsResponseSubscriptionInformation {\n");
    
    if (code != null) sb.append("    code: ").append(toIndentedString(code)).append("\n");
    if (planId != null) sb.append("    planId: ").append(toIndentedString(planId)).append("\n");
    if (name != null) sb.append("    name: ").append(toIndentedString(name)).append("\n");
    if (startDate != null) sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    if (status != null) sb.append("    status: ").append(toIndentedString(status)).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