net.avalara.avatax.rest.client.enums.RoundingLevelId Maven / Gradle / Ivy
package net.avalara.avatax.rest.client.enums;
import java.util.HashMap;
/*
* AvaTax Software Development Kit for Java JRE based environments
*
* (c) 2004-2018 Avalara, Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Dustin Welden
* @copyright 2004-2018 Avalara, Inc.
* @license https://www.apache.org/licenses/LICENSE-2.0
* @link https://github.com/avadev/AvaTax-REST-V2-JRE-SDK
* Swagger name: AvaTaxClient
*/
/**
* Choice of rounding level for a transaction
*/
public enum RoundingLevelId {
/**
* Round tax on each line separately
*/
Line(0),
/**
* Round tax at the document level
*/
Document(1);
private int value;
private static HashMap map = new HashMap<>();
private RoundingLevelId(int value) {
this.value = value;
}
static {
for (RoundingLevelId enumName : RoundingLevelId.values()) {
map.put(enumName.value, enumName);
}
}
public static RoundingLevelId valueOf(int intValue) {
return (RoundingLevelId) map.get(intValue);
}
public int getValue() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy