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

com.jelastic.api.system.persistence.Currency Maven / Gradle / Ivy

The newest version!
/*Server class MD5: b23ebeca4c1770d9174646c62dd30a71*/
package com.jelastic.api.system.persistence;

import com.jelastic.api.billing.response.interfaces.ArrayItem;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @name Jelastic API Client
 * @version 8.11.2
 * @copyright Jelastic, Inc.
 */
public class Currency extends ArrayItem implements Serializable {

    private String name;

    private String code;

    private double usdRate;

    private Date updatedOn;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getUsdRate() {
        return usdRate;
    }

    public BigDecimal getUsdRateDecimal() {
        return BigDecimal.valueOf(usdRate);
    }

    public void setUsdRate(double usdRate) {
        this.usdRate = usdRate;
        this.updatedOn = new Date();
    }

    public Date getUpdatedOn() {
        return updatedOn;
    }

    @Override
    public String toString() {
        return "Currency{" + "name='" + name + '\'' + ", code='" + code + '\'' + ", usdRate=" + usdRate + ", updatedOn=" + updatedOn + '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy