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

com.ellucian.generated.eedm.requisitions.v11_0.UnitPrice Maven / Gradle / Ivy


package com.ellucian.generated.eedm.requisitions.v11_0;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;


/**
 * Unit Price
 * 

* The price per unit for the commodity specified for the line item. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "value", "currency" }) @Generated("jsonschema2pojo") public class UnitPrice { /** * Value *

* The monetary value * (Required) * */ @JsonProperty("value") @JsonPropertyDescription("The monetary value") private Double value; /** * Currency *

* The ISO 4217 currency code * (Required) * */ @JsonProperty("currency") @JsonPropertyDescription("The ISO 4217 currency code") private UnitPrice.Currency currency; /** * Value *

* The monetary value * (Required) * */ @JsonProperty("value") public Double getValue() { return value; } /** * Value *

* The monetary value * (Required) * */ @JsonProperty("value") public void setValue(Double value) { this.value = value; } public UnitPrice withValue(Double value) { this.value = value; return this; } /** * Currency *

* The ISO 4217 currency code * (Required) * */ @JsonProperty("currency") public UnitPrice.Currency getCurrency() { return currency; } /** * Currency *

* The ISO 4217 currency code * (Required) * */ @JsonProperty("currency") public void setCurrency(UnitPrice.Currency currency) { this.currency = currency; } public UnitPrice withCurrency(UnitPrice.Currency currency) { this.currency = currency; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(UnitPrice.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("value"); sb.append('='); sb.append(((this.value == null)?"":this.value)); sb.append(','); sb.append("currency"); sb.append('='); sb.append(((this.currency == null)?"":this.currency)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.value == null)? 0 :this.value.hashCode())); result = ((result* 31)+((this.currency == null)? 0 :this.currency.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof UnitPrice) == false) { return false; } UnitPrice rhs = ((UnitPrice) other); return (((this.value == rhs.value)||((this.value!= null)&&this.value.equals(rhs.value)))&&((this.currency == rhs.currency)||((this.currency!= null)&&this.currency.equals(rhs.currency)))); } /** * Currency *

* The ISO 4217 currency code * */ @Generated("jsonschema2pojo") public enum Currency { AED("AED"), AFN("AFN"), ALL("ALL"), AMD("AMD"), ANG("ANG"), AOA("AOA"), ARS("ARS"), AUD("AUD"), AWG("AWG"), AZN("AZN"), BAM("BAM"), BBD("BBD"), BDT("BDT"), BGN("BGN"), BHD("BHD"), BIF("BIF"), BMD("BMD"), BND("BND"), BOB("BOB"), BRL("BRL"), BSD("BSD"), BTN("BTN"), BWP("BWP"), BYR("BYR"), BZD("BZD"), CAD("CAD"), CDF("CDF"), CHF("CHF"), CLP("CLP"), CNY("CNY"), COP("COP"), CRC("CRC"), CUC("CUC"), CUP("CUP"), CVE("CVE"), CZK("CZK"), DJF("DJF"), DKK("DKK"), DOP("DOP"), DZD("DZD"), EGP("EGP"), ERN("ERN"), ETB("ETB"), EUR("EUR"), FJD("FJD"), FKP("FKP"), GBP("GBP"), GEL("GEL"), GHS("GHS"), GIP("GIP"), GMD("GMD"), GNF("GNF"), GTQ("GTQ"), GYD("GYD"), HKD("HKD"), HNL("HNL"), HRK("HRK"), HTG("HTG"), HUF("HUF"), IDR("IDR"), ILS("ILS"), INR("INR"), IQD("IQD"), IRR("IRR"), ISK("ISK"), JMD("JMD"), JOD("JOD"), JPY("JPY"), KES("KES"), KGS("KGS"), KHR("KHR"), KMF("KMF"), KPW("KPW"), KRW("KRW"), KWD("KWD"), KYD("KYD"), KZT("KZT"), LAK("LAK"), LBP("LBP"), LKR("LKR"), LRD("LRD"), LSL("LSL"), LYD("LYD"), MAD("MAD"), MDL("MDL"), MGA("MGA"), MKD("MKD"), MMK("MMK"), MNT("MNT"), MOP("MOP"), MRO("MRO"), MUR("MUR"), MVR("MVR"), MWK("MWK"), MXN("MXN"), MYR("MYR"), MZN("MZN"), NAD("NAD"), NGN("NGN"), NIO("NIO"), NOK("NOK"), NPR("NPR"), NZD("NZD"), OMR("OMR"), PAB("PAB"), PEN("PEN"), PGK("PGK"), PHP("PHP"), PKR("PKR"), PLN("PLN"), PYG("PYG"), QAR("QAR"), RON("RON"), RSD("RSD"), RUB("RUB"), RWF("RWF"), SAR("SAR"), SBD("SBD"), SCR("SCR"), SDG("SDG"), SEK("SEK"), SGD("SGD"), SHP("SHP"), SLL("SLL"), SOS("SOS"), SRD("SRD"), SSP("SSP"), STD("STD"), SVC("SVC"), SYP("SYP"), SZL("SZL"), THB("THB"), TJS("TJS"), TMT("TMT"), TND("TND"), TOP("TOP"), TRY("TRY"), TTD("TTD"), TWD("TWD"), TZS("TZS"), UAH("UAH"), UGX("UGX"), USD("USD"), UYU("UYU"), UZS("UZS"), VEF("VEF"), VND("VND"), VUV("VUV"), WST("WST"), XAF("XAF"), XCD("XCD"), XOF("XOF"), XPF("XPF"), YER("YER"), ZAR("ZAR"), ZMW("ZMW"), ZWL("ZWL"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (UnitPrice.Currency c: values()) { CONSTANTS.put(c.value, c); } } Currency(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static UnitPrice.Currency fromValue(String value) { UnitPrice.Currency constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy