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

org.openapitools.client.model.FlexibleBillingDocumentSettings Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/

package org.openapitools.client.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;
import org.openapitools.jackson.nullable.JsonNullable;

import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
 * FlexibleBillingDocumentSettings
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FlexibleBillingDocumentSettings {
  public static final String SERIALIZED_NAME_TEMPLATE_ID = "template_id";
  @SerializedName(SERIALIZED_NAME_TEMPLATE_ID)
  @JsonAdapter(NullableFieldAdapter.class)
  private String templateId;

  public static final String SERIALIZED_NAME_SEQUENCE_SET_ID = "sequence_set_id";
  @SerializedName(SERIALIZED_NAME_SEQUENCE_SET_ID)
  @JsonAdapter(NullableFieldAdapter.class)
  private String sequenceSetId;

  public FlexibleBillingDocumentSettings() { 
  }

  public FlexibleBillingDocumentSettings templateId(String templateId) {
    
    this.templateId = templateId;
    return this;
  }

   /**
   * Identifier of the invoice template associated with this customer. Not applicable for debit memos or credit memos.
   * @return templateId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2c92c08b6a8c978f016a9e0084622b62", value = "Identifier of the invoice template associated with this customer. Not applicable for debit memos or credit memos.")

  public String getTemplateId() {
    return templateId;
  }


  public void setTemplateId(String templateId) {
    this.templateId = templateId;
  }


  public FlexibleBillingDocumentSettings sequenceSetId(String sequenceSetId) {
    
    this.sequenceSetId = sequenceSetId;
    return this;
  }

   /**
   * ID of the billing document sequence set.
   * @return sequenceSetId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "ID of the billing document sequence set.")

  public String getSequenceSetId() {
    return sequenceSetId;
  }


  public void setSequenceSetId(String sequenceSetId) {
    this.sequenceSetId = sequenceSetId;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FlexibleBillingDocumentSettings flexibleBillingDocumentSettings = (FlexibleBillingDocumentSettings) o;
    return Objects.equals(this.templateId, flexibleBillingDocumentSettings.templateId) &&
        Objects.equals(this.sequenceSetId, flexibleBillingDocumentSettings.sequenceSetId);
  }

  private static  boolean equalsNullable(JsonNullable a, JsonNullable b) {
    return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
  }

  @Override
  public int hashCode() {
    return Objects.hash(templateId, sequenceSetId);
  }

  private static  int hashCodeNullable(JsonNullable a) {
    if (a == null) {
      return 1;
    }
    return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FlexibleBillingDocumentSettings {\n");
    sb.append("    templateId: ").append(toIndentedString(templateId)).append("\n");
    sb.append("    sequenceSetId: ").append(toIndentedString(sequenceSetId)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy