Subversion Repositories SmartDukaan

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

/*
 * MANDII
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package com.spice.profitmandi.common.services.mandii;

import java.math.BigDecimal;
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;

/**
 * Amount
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-13T10:59:30.263+05:30[Asia/Kolkata]")
public class Amount {
        public static final String SERIALIZED_NAME_AMOUNT = "amount";
        @JsonProperty(SERIALIZED_NAME_AMOUNT)
        @SerializedName(SERIALIZED_NAME_AMOUNT)
        private BigDecimal amount;

        public static final String SERIALIZED_NAME_CURRENCY = "currency";
        @JsonProperty(SERIALIZED_NAME_CURRENCY)
        @SerializedName(SERIALIZED_NAME_CURRENCY)
        private CurrencyEnum currency;

        public Amount amount(BigDecimal amount) {

                this.amount = amount;
                return this;
        }

        public BigDecimal getAmount() {
                return amount;
        }

        public void setAmount(BigDecimal amount) {
                this.amount = amount;
        }

        public Amount currency(CurrencyEnum currency) {

                this.currency = currency;
                return this;
        }

        public CurrencyEnum getCurrency() {
                return currency;
        }

        public void setCurrency(CurrencyEnum currency) {
                this.currency = currency;
        }

        @Override
        public boolean equals(Object o) {
                if (this == o) {
                        return true;
                }
                if (o == null || getClass() != o.getClass()) {
                        return false;
                }
                Amount amount = (Amount) o;
                return Objects.equals(this.amount, amount.amount) && Objects.equals(this.currency, amount.currency);
        }

        @Override
        public int hashCode() {
                return Objects.hash(amount, currency);
        }

        @Override
        public String toString() {
                StringBuilder sb = new StringBuilder();
                sb.append("class Amount {\n");
                sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
                sb.append("    currency: ").append(toIndentedString(currency)).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    ");
        }

}