Interface ExpenseField.Builder

    • Method Detail

      • type

        ExpenseField.Builder type​(ExpenseType type)

        The implied label of a detected element. Present alongside LabelDetection for explicit elements.

        Parameters:
        type - The implied label of a detected element. Present alongside LabelDetection for explicit elements.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • labelDetection

        ExpenseField.Builder labelDetection​(ExpenseDetection labelDetection)

        The explicitly stated label of a detected element.

        Parameters:
        labelDetection - The explicitly stated label of a detected element.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • valueDetection

        ExpenseField.Builder valueDetection​(ExpenseDetection valueDetection)

        The value of a detected element. Present in explicit and implicit elements.

        Parameters:
        valueDetection - The value of a detected element. Present in explicit and implicit elements.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pageNumber

        ExpenseField.Builder pageNumber​(Integer pageNumber)

        The page number the value was detected on.

        Parameters:
        pageNumber - The page number the value was detected on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • currency

        ExpenseField.Builder currency​(ExpenseCurrency currency)

        Shows the kind of currency, both the code and confidence associated with any monatary value detected.

        Parameters:
        currency - Shows the kind of currency, both the code and confidence associated with any monatary value detected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupProperties

        ExpenseField.Builder groupProperties​(Collection<ExpenseGroupProperty> groupProperties)

        Shows which group a response object belongs to, such as whether an address line belongs to the vendor's address or the recipent's address.

        Parameters:
        groupProperties - Shows which group a response object belongs to, such as whether an address line belongs to the vendor's address or the recipent's address.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupProperties

        ExpenseField.Builder groupProperties​(ExpenseGroupProperty... groupProperties)

        Shows which group a response object belongs to, such as whether an address line belongs to the vendor's address or the recipent's address.

        Parameters:
        groupProperties - Shows which group a response object belongs to, such as whether an address line belongs to the vendor's address or the recipent's address.
        Returns:
        Returns a reference to this object so that method calls can be chained together.