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

io.swagger.client.model.AddAppRequest Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
/*
 * Qualpay Platform API
 * This document describes the Qualpay Platform API.
 *
 * OpenAPI spec version: 1.1.9
 * 
 *
 * 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 io.swagger.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;

/**
 * AddAppRequest
 */

public class AddAppRequest {
  @SerializedName("channel_id")
  private Long channelId = null;

  @SerializedName("sales_rep")
  private Long salesRep = null;

  @SerializedName("termination_node")
  private Long terminationNode = null;

  public AddAppRequest channelId(Long channelId) {
    this.channelId = channelId;
    return this;
  }

   /**
   * The sales channel to start this application in. The channel ID is provided to you by Qualpay.
   * @return channelId
  **/
  @ApiModelProperty(example = "1", required = true, value = "The sales channel to start this application in. The channel ID is provided to you by Qualpay.")
  public Long getChannelId() {
    return channelId;
  }

  public void setChannelId(Long channelId) {
    this.channelId = channelId;
  }

  public AddAppRequest salesRep(Long salesRep) {
    this.salesRep = salesRep;
    return this;
  }

   /**
   * The sales rep and contact for this application in. This is the qualpay ID for the sales rep user. The service at sales/browse can assist in finding the user_id.
   * @return salesRep
  **/
  @ApiModelProperty(example = "1", required = true, value = "The sales rep and contact for this application in. This is the qualpay ID for the sales rep user. The service at sales/browse can assist in finding the user_id.")
  public Long getSalesRep() {
    return salesRep;
  }

  public void setSalesRep(Long salesRep) {
    this.salesRep = salesRep;
  }

  public AddAppRequest terminationNode(Long terminationNode) {
    this.terminationNode = terminationNode;
    return this;
  }

   /**
   * The point at which to board the merchant in the Qualpay hierarchy. A default node is configured for you, however you may choose a different node by using this field.
   * @return terminationNode
  **/
  @ApiModelProperty(example = "8971999999", value = "The point at which to board the merchant in the Qualpay hierarchy. A default node is configured for you, however you may choose a different node by using this field.")
  public Long getTerminationNode() {
    return terminationNode;
  }

  public void setTerminationNode(Long terminationNode) {
    this.terminationNode = terminationNode;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AddAppRequest addAppRequest = (AddAppRequest) o;
    return Objects.equals(this.channelId, addAppRequest.channelId) &&
        Objects.equals(this.salesRep, addAppRequest.salesRep) &&
        Objects.equals(this.terminationNode, addAppRequest.terminationNode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(channelId, salesRep, terminationNode);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AddAppRequest {\n");
    
    sb.append("    channelId: ").append(toIndentedString(channelId)).append("\n");
    sb.append("    salesRep: ").append(toIndentedString(salesRep)).append("\n");
    sb.append("    terminationNode: ").append(toIndentedString(terminationNode)).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