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

com.textmagic.sdk.model.CallPriceResponse Maven / Gradle / Ivy

There is a newer version: 2.0.2456
Show newest version
/*
 * TextMagic API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 2
 * 
 *
 * 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 com.textmagic.sdk.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 java.math.BigDecimal;

/**
 * CallPriceResponse
 */

public class CallPriceResponse {
  @SerializedName("outbound")
  private BigDecimal outbound = null;

  @SerializedName("inbound")
  private BigDecimal inbound = null;

  @SerializedName("forward")
  private BigDecimal forward = null;

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

  public CallPriceResponse outbound(BigDecimal outbound) {
    this.outbound = outbound;
    return this;
  }

   /**
   * Price for outbound message.
   * @return outbound
  **/
  @ApiModelProperty(required = true, value = "Price for outbound message.")
  public BigDecimal getOutbound() {
    return outbound;
  }

  public void setOutbound(BigDecimal outbound) {
    this.outbound = outbound;
  }

  public CallPriceResponse inbound(BigDecimal inbound) {
    this.inbound = inbound;
    return this;
  }

   /**
   * Price for inbound message.
   * @return inbound
  **/
  @ApiModelProperty(required = true, value = "Price for inbound message.")
  public BigDecimal getInbound() {
    return inbound;
  }

  public void setInbound(BigDecimal inbound) {
    this.inbound = inbound;
  }

  public CallPriceResponse forward(BigDecimal forward) {
    this.forward = forward;
    return this;
  }

   /**
   * Price for forward.
   * @return forward
  **/
  @ApiModelProperty(required = true, value = "Price for forward.")
  public BigDecimal getForward() {
    return forward;
  }

  public void setForward(BigDecimal forward) {
    this.forward = forward;
  }

  public CallPriceResponse country(String country) {
    this.country = country;
    return this;
  }

   /**
   * The 2-letter ISO country code for local phone numbers, used when local is  set to true. Default is account country.
   * @return country
  **/
  @ApiModelProperty(example = "US", required = true, value = "The 2-letter ISO country code for local phone numbers, used when local is  set to true. Default is account country.")
  public String getCountry() {
    return country;
  }

  public void setCountry(String country) {
    this.country = country;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CallPriceResponse callPriceResponse = (CallPriceResponse) o;
    return Objects.equals(this.outbound, callPriceResponse.outbound) &&
        Objects.equals(this.inbound, callPriceResponse.inbound) &&
        Objects.equals(this.forward, callPriceResponse.forward) &&
        Objects.equals(this.country, callPriceResponse.country);
  }

  @Override
  public int hashCode() {
    return Objects.hash(outbound, inbound, forward, country);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CallPriceResponse {\n");
    
    sb.append("    outbound: ").append(toIndentedString(outbound)).append("\n");
    sb.append("    inbound: ").append(toIndentedString(inbound)).append("\n");
    sb.append("    forward: ").append(toIndentedString(forward)).append("\n");
    sb.append("    country: ").append(toIndentedString(country)).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 - 2024 Weber Informatics LLC | Privacy Policy