Package Avalara.SDK.model.EInvoicing.V1
Class Mandate
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.Mandate
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class Mandate extends Object
Mandate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMandate.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_DESCRIPTIONstatic StringSERIALIZED_NAME_E_INVOICING_FLOWstatic StringSERIALIZED_NAME_E_INVOICING_FLOW_DOCUMENTATION_LINKstatic StringSERIALIZED_NAME_GET_INVOICE_AVAILABLE_MEDIA_TYPEstatic StringSERIALIZED_NAME_INPUT_DATA_FORMATSstatic StringSERIALIZED_NAME_MANDATE_FORMATstatic StringSERIALIZED_NAME_MANDATE_IDstatic StringSERIALIZED_NAME_OUTPUT_DATA_FORMATSstatic StringSERIALIZED_NAME_SUPPORTED_BY_E_L_R_A_P_Istatic StringSERIALIZED_NAME_SUPPORTS_INBOUND_DIGITAL_DOCUMENTstatic StringSERIALIZED_NAME_WORKFLOW_IDS
-
Constructor Summary
Constructors Constructor Description Mandate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MandateaddGetInvoiceAvailableMediaTypeItem(String getInvoiceAvailableMediaTypeItem)MandateaddInputDataFormatsItem(InputDataFormats inputDataFormatsItem)MandateaddOutputDataFormatsItem(OutputDataFormats outputDataFormatsItem)MandateaddWorkflowIdsItem(WorkflowIds workflowIdsItem)MandatecountryCode(String countryCode)MandatecountryMandate(String countryMandate)Mandatedescription(String description)MandateeInvoicingFlow(String eInvoicingFlow)MandateeInvoicingFlowDocumentationLink(String eInvoicingFlowDocumentationLink)booleanequals(Object o)static MandatefromJson(String jsonString)Create an instance of Mandate given an JSON stringStringgetCountryCode()Country codeStringgetCountryMandate()**[LEGACY]** This field is retained for backward compatibility.StringgetDescription()Mandate descriptionStringgeteInvoicingFlow()The type of e-invoicing flow for this mandateStringgeteInvoicingFlowDocumentationLink()Link to the documentation for this mandate's e-invoicing flowList<String>getGetInvoiceAvailableMediaType()List of available media types for downloading invoices for this mandateList<InputDataFormats>getInputDataFormats()Format and version used when inputting the dataMandategetInvoiceAvailableMediaType(List<String> getInvoiceAvailableMediaType)StringgetMandateFormat()Mandate formatStringgetMandateId()The `mandateId` is comprised of the country code, mandate type, and the network or regulation type (for example, AU-B2G-PEPPOL).List<OutputDataFormats>getOutputDataFormats()Lists the supported output document formats for the country mandate.BooleangetSupportedByELRAPI()Indicates whether this mandate supported by the ELR APIStringgetSupportsInboundDigitalDocument()Indicates whether this mandate supports inbound digital documentsList<WorkflowIds>getWorkflowIds()Workflow ID listinthashCode()MandateinputDataFormats(List<InputDataFormats> inputDataFormats)MandatemandateFormat(String mandateFormat)MandatemandateId(String mandateId)MandateoutputDataFormats(List<OutputDataFormats> outputDataFormats)voidsetCountryCode(String countryCode)voidsetCountryMandate(String countryMandate)voidsetDescription(String description)voidseteInvoicingFlow(String eInvoicingFlow)voidseteInvoicingFlowDocumentationLink(String eInvoicingFlowDocumentationLink)voidsetGetInvoiceAvailableMediaType(List<String> getInvoiceAvailableMediaType)voidsetInputDataFormats(List<InputDataFormats> inputDataFormats)voidsetMandateFormat(String mandateFormat)voidsetMandateId(String mandateId)voidsetOutputDataFormats(List<OutputDataFormats> outputDataFormats)voidsetSupportedByELRAPI(Boolean supportedByELRAPI)voidsetSupportsInboundDigitalDocument(String supportsInboundDigitalDocument)voidsetWorkflowIds(List<WorkflowIds> workflowIds)MandatesupportedByELRAPI(Boolean supportedByELRAPI)MandatesupportsInboundDigitalDocument(String supportsInboundDigitalDocument)StringtoJson()Convert an instance of Mandate to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundMandateworkflowIds(List<WorkflowIds> workflowIds)
-
-
-
Field Detail
-
SERIALIZED_NAME_MANDATE_ID
public static final String SERIALIZED_NAME_MANDATE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_MANDATE
public static final String SERIALIZED_NAME_COUNTRY_MANDATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUPPORTED_BY_E_L_R_A_P_I
public static final String SERIALIZED_NAME_SUPPORTED_BY_E_L_R_A_P_I
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MANDATE_FORMAT
public static final String SERIALIZED_NAME_MANDATE_FORMAT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_E_INVOICING_FLOW
public static final String SERIALIZED_NAME_E_INVOICING_FLOW
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_E_INVOICING_FLOW_DOCUMENTATION_LINK
public static final String SERIALIZED_NAME_E_INVOICING_FLOW_DOCUMENTATION_LINK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GET_INVOICE_AVAILABLE_MEDIA_TYPE
public static final String SERIALIZED_NAME_GET_INVOICE_AVAILABLE_MEDIA_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUPPORTS_INBOUND_DIGITAL_DOCUMENT
public static final String SERIALIZED_NAME_SUPPORTS_INBOUND_DIGITAL_DOCUMENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INPUT_DATA_FORMATS
public static final String SERIALIZED_NAME_INPUT_DATA_FORMATS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OUTPUT_DATA_FORMATS
public static final String SERIALIZED_NAME_OUTPUT_DATA_FORMATS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WORKFLOW_IDS
public static final String SERIALIZED_NAME_WORKFLOW_IDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMandateId
@Nullable public String getMandateId()
The `mandateId` is comprised of the country code, mandate type, and the network or regulation type (for example, AU-B2G-PEPPOL). Keep in mind the following when specifying a `mandateId`. - A country can have multiple mandate types (B2C, B2B, B2G). - A entity/company can opt in for multiple mandates. - A `mandateId` is the combination of country + mandate type + network/regulation.- Returns:
- mandateId
-
setMandateId
public void setMandateId(String mandateId)
-
getCountryMandate
@Nullable public String getCountryMandate()
**[LEGACY]** This field is retained for backward compatibility. It is recommended to use `mandateId` instead. The `countryMandate` similar to the `mandateId` is comprised of the country code, mandate type, and the network or regulation type (for example, AU-B2G-PEPPOL).- Returns:
- countryMandate
-
setCountryMandate
public void setCountryMandate(String countryMandate)
-
setCountryCode
public void setCountryCode(String countryCode)
-
setDescription
public void setDescription(String description)
-
getSupportedByELRAPI
@Nullable public Boolean getSupportedByELRAPI()
Indicates whether this mandate supported by the ELR API- Returns:
- supportedByELRAPI
-
setSupportedByELRAPI
public void setSupportedByELRAPI(Boolean supportedByELRAPI)
-
setMandateFormat
public void setMandateFormat(String mandateFormat)
-
geteInvoicingFlow
@Nullable public String geteInvoicingFlow()
The type of e-invoicing flow for this mandate- Returns:
- eInvoicingFlow
-
seteInvoicingFlow
public void seteInvoicingFlow(String eInvoicingFlow)
-
eInvoicingFlowDocumentationLink
public Mandate eInvoicingFlowDocumentationLink(String eInvoicingFlowDocumentationLink)
-
geteInvoicingFlowDocumentationLink
@Nullable public String geteInvoicingFlowDocumentationLink()
Link to the documentation for this mandate's e-invoicing flow- Returns:
- eInvoicingFlowDocumentationLink
-
seteInvoicingFlowDocumentationLink
public void seteInvoicingFlowDocumentationLink(String eInvoicingFlowDocumentationLink)
-
getInvoiceAvailableMediaType
public Mandate getInvoiceAvailableMediaType(List<String> getInvoiceAvailableMediaType)
-
addGetInvoiceAvailableMediaTypeItem
public Mandate addGetInvoiceAvailableMediaTypeItem(String getInvoiceAvailableMediaTypeItem)
-
getGetInvoiceAvailableMediaType
@Nullable public List<String> getGetInvoiceAvailableMediaType()
List of available media types for downloading invoices for this mandate- Returns:
- getInvoiceAvailableMediaType
-
setGetInvoiceAvailableMediaType
public void setGetInvoiceAvailableMediaType(List<String> getInvoiceAvailableMediaType)
-
supportsInboundDigitalDocument
public Mandate supportsInboundDigitalDocument(String supportsInboundDigitalDocument)
-
getSupportsInboundDigitalDocument
@Nullable public String getSupportsInboundDigitalDocument()
Indicates whether this mandate supports inbound digital documents- Returns:
- supportsInboundDigitalDocument
-
setSupportsInboundDigitalDocument
public void setSupportsInboundDigitalDocument(String supportsInboundDigitalDocument)
-
inputDataFormats
public Mandate inputDataFormats(List<InputDataFormats> inputDataFormats)
-
addInputDataFormatsItem
public Mandate addInputDataFormatsItem(InputDataFormats inputDataFormatsItem)
-
getInputDataFormats
@Nullable public List<InputDataFormats> getInputDataFormats()
Format and version used when inputting the data- Returns:
- inputDataFormats
-
setInputDataFormats
public void setInputDataFormats(List<InputDataFormats> inputDataFormats)
-
outputDataFormats
public Mandate outputDataFormats(List<OutputDataFormats> outputDataFormats)
-
addOutputDataFormatsItem
public Mandate addOutputDataFormatsItem(OutputDataFormats outputDataFormatsItem)
-
getOutputDataFormats
@Nullable public List<OutputDataFormats> getOutputDataFormats()
Lists the supported output document formats for the country mandate. For countries where specifying an output document format is required (e.g., France), this array will contain the applicable formats. For other countries where output format selection is not necessary, the array will be empty.- Returns:
- outputDataFormats
-
setOutputDataFormats
public void setOutputDataFormats(List<OutputDataFormats> outputDataFormats)
-
workflowIds
public Mandate workflowIds(List<WorkflowIds> workflowIds)
-
addWorkflowIdsItem
public Mandate addWorkflowIdsItem(WorkflowIds workflowIdsItem)
-
getWorkflowIds
@Nullable public List<WorkflowIds> getWorkflowIds()
Workflow ID list- Returns:
- workflowIds
-
setWorkflowIds
public void setWorkflowIds(List<WorkflowIds> workflowIds)
-
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 Mandate
-
fromJson
public static Mandate fromJson(String jsonString) throws IOException
Create an instance of Mandate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Mandate
- Throws:
IOException- if the JSON string is invalid with respect to Mandate
-
toJson
public String toJson()
Convert an instance of Mandate to an JSON string- Returns:
- JSON string
-
-