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

com.infobip.model.MessagePrice Maven / Gradle / Ivy

/*
 * This class is auto generated from the Infobip OpenAPI specification
 * through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
 * powered by the OpenAPI Generator (https://openapi-generator.tech).
 *
 * Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
 * or contact us @ [email protected].
 */

package com.infobip.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

/**
 * Message price.
 */
public class MessagePrice {

    private String currency;

    private Double pricePerMessage;

    /**
     * Sets currency.
     * 

* Field description: * The currency in which the price is displayed. * * @param currency * @return This {@link MessagePrice instance}. */ public MessagePrice currency(String currency) { this.currency = currency; return this; } /** * Returns currency. *

* Field description: * The currency in which the price is displayed. * * @return currency */ @JsonProperty("currency") public String getCurrency() { return currency; } /** * Sets currency. *

* Field description: * The currency in which the price is displayed. * * @param currency */ @JsonProperty("currency") public void setCurrency(String currency) { this.currency = currency; } /** * Sets pricePerMessage. *

* Field description: * The price per individual message. * * @param pricePerMessage * @return This {@link MessagePrice instance}. */ public MessagePrice pricePerMessage(Double pricePerMessage) { this.pricePerMessage = pricePerMessage; return this; } /** * Returns pricePerMessage. *

* Field description: * The price per individual message. * * @return pricePerMessage */ @JsonProperty("pricePerMessage") public Double getPricePerMessage() { return pricePerMessage; } /** * Sets pricePerMessage. *

* Field description: * The price per individual message. * * @param pricePerMessage */ @JsonProperty("pricePerMessage") public void setPricePerMessage(Double pricePerMessage) { this.pricePerMessage = pricePerMessage; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessagePrice messagePrice = (MessagePrice) o; return Objects.equals(this.currency, messagePrice.currency) && Objects.equals(this.pricePerMessage, messagePrice.pricePerMessage); } @Override public int hashCode() { return Objects.hash(currency, pricePerMessage); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class MessagePrice {") .append(newLine) .append(" currency: ") .append(toIndentedString(currency)) .append(newLine) .append(" pricePerMessage: ") .append(toIndentedString(pricePerMessage)) .append(newLine) .append("}") .toString(); } private String toIndentedString(Object o) { if (o == null) { return "null"; } String lineSeparator = System.lineSeparator(); String lineSeparatorFollowedByIndentation = lineSeparator + " "; return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy