Package Avalara.SDK.model.EInvoicing.V1
Class DocumentFetchRequestMetadata
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.DocumentFetchRequestMetadata
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class DocumentFetchRequestMetadata extends Object
DocumentFetchRequestMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentFetchRequestMetadata.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTRY_CODEstatic StringSERIALIZED_NAME_COUNTRY_MANDATEstatic StringSERIALIZED_NAME_DATA_FORMATstatic StringSERIALIZED_NAME_DATA_FORMAT_VERSIONstatic StringSERIALIZED_NAME_WORKFLOW_ID
-
Constructor Summary
Constructors Constructor Description DocumentFetchRequestMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentFetchRequestMetadatacountryCode(String countryCode)DocumentFetchRequestMetadatacountryMandate(String countryMandate)DocumentFetchRequestMetadatadataFormat(String dataFormat)DocumentFetchRequestMetadatadataFormatVersion(BigDecimal dataFormatVersion)booleanequals(Object o)static DocumentFetchRequestMetadatafromJson(String jsonString)Create an instance of DocumentFetchRequestMetadata given an JSON stringStringgetCountryCode()The two-letter ISO-3166 country code for the country for which document is being retrievedStringgetCountryMandate()The e-invoicing mandate for the specified countryStringgetDataFormat()Specifies the data format for this workflowBigDecimalgetDataFormatVersion()Specifies the data format version numberStringgetWorkflowId()Specifies a unique ID for this workflow.inthashCode()voidsetCountryCode(String countryCode)voidsetCountryMandate(String countryMandate)voidsetDataFormat(String dataFormat)voidsetDataFormatVersion(BigDecimal dataFormatVersion)voidsetWorkflowId(String workflowId)StringtoJson()Convert an instance of DocumentFetchRequestMetadata to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundDocumentFetchRequestMetadataworkflowId(String workflowId)
-
-
-
Field Detail
-
SERIALIZED_NAME_WORKFLOW_ID
public static final String SERIALIZED_NAME_WORKFLOW_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATA_FORMAT
public static final String SERIALIZED_NAME_DATA_FORMAT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATA_FORMAT_VERSION
public static final String SERIALIZED_NAME_DATA_FORMAT_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_MANDATE
public static final String SERIALIZED_NAME_COUNTRY_MANDATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
workflowId
public DocumentFetchRequestMetadata workflowId(String workflowId)
-
getWorkflowId
@Nonnull public String getWorkflowId()
Specifies a unique ID for this workflow.- Returns:
- workflowId
-
setWorkflowId
public void setWorkflowId(String workflowId)
-
dataFormat
public DocumentFetchRequestMetadata dataFormat(String dataFormat)
-
getDataFormat
@Nonnull public String getDataFormat()
Specifies the data format for this workflow- Returns:
- dataFormat
-
setDataFormat
public void setDataFormat(String dataFormat)
-
dataFormatVersion
public DocumentFetchRequestMetadata dataFormatVersion(BigDecimal dataFormatVersion)
-
getDataFormatVersion
@Nonnull public BigDecimal getDataFormatVersion()
Specifies the data format version number- Returns:
- dataFormatVersion
-
setDataFormatVersion
public void setDataFormatVersion(BigDecimal dataFormatVersion)
-
countryCode
public DocumentFetchRequestMetadata countryCode(String countryCode)
-
getCountryCode
@Nonnull public String getCountryCode()
The two-letter ISO-3166 country code for the country for which document is being retrieved- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
countryMandate
public DocumentFetchRequestMetadata countryMandate(String countryMandate)
-
getCountryMandate
@Nonnull public String getCountryMandate()
The e-invoicing mandate for the specified country- Returns:
- countryMandate
-
setCountryMandate
public void setCountryMandate(String countryMandate)
-
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 DocumentFetchRequestMetadata
-
fromJson
public static DocumentFetchRequestMetadata fromJson(String jsonString) throws IOException
Create an instance of DocumentFetchRequestMetadata given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentFetchRequestMetadata
- Throws:
IOException- if the JSON string is invalid with respect to DocumentFetchRequestMetadata
-
toJson
public String toJson()
Convert an instance of DocumentFetchRequestMetadata to an JSON string- Returns:
- JSON string
-
-