Package Avalara.SDK.model.EInvoicing.V1
Class ConditionalForField
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.ConditionalForField
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class ConditionalForField extends Object
Mandates for which this field is conditional
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConditionalForField.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTRY_MANDATEstatic StringSERIALIZED_NAME_REQUIRED_WHEN
-
Constructor Summary
Constructors Constructor Description ConditionalForField()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalForFieldaddRequiredWhenItem(RequiredWhenField requiredWhenItem)ConditionalForFieldcountryMandate(String countryMandate)booleanequals(Object o)static ConditionalForFieldfromJson(String jsonString)Create an instance of ConditionalForField given an JSON stringStringgetCountryMandate()Get countryMandateList<RequiredWhenField>getRequiredWhen()Array of scenarios which describe when a particular field is conditional for a country mandateinthashCode()ConditionalForFieldrequiredWhen(List<RequiredWhenField> requiredWhen)voidsetCountryMandate(String countryMandate)voidsetRequiredWhen(List<RequiredWhenField> requiredWhen)StringtoJson()Convert an instance of ConditionalForField to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COUNTRY_MANDATE
public static final String SERIALIZED_NAME_COUNTRY_MANDATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUIRED_WHEN
public static final String SERIALIZED_NAME_REQUIRED_WHEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
countryMandate
public ConditionalForField countryMandate(String countryMandate)
-
getCountryMandate
@Nullable public String getCountryMandate()
Get countryMandate- Returns:
- countryMandate
-
setCountryMandate
public void setCountryMandate(String countryMandate)
-
requiredWhen
public ConditionalForField requiredWhen(List<RequiredWhenField> requiredWhen)
-
addRequiredWhenItem
public ConditionalForField addRequiredWhenItem(RequiredWhenField requiredWhenItem)
-
getRequiredWhen
@Nullable public List<RequiredWhenField> getRequiredWhen()
Array of scenarios which describe when a particular field is conditional for a country mandate- Returns:
- requiredWhen
-
setRequiredWhen
public void setRequiredWhen(List<RequiredWhenField> requiredWhen)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ConditionalForField
-
fromJson
public static ConditionalForField fromJson(String jsonString) throws IOException
Create an instance of ConditionalForField given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ConditionalForField
- Throws:
IOException- if the JSON string is invalid with respect to ConditionalForField
-
toJson
public String toJson()
Convert an instance of ConditionalForField to an JSON string- Returns:
- JSON string
-
-