Interface CisClientTaxService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CisTaxDoc adjust​(java.lang.String xClientRef, java.lang.String tenantId, java.net.URI documentLocation, CisOrder order)
      Adjusts a previously submitted or invoiced tax document.
      com.hybris.charon.RawResponse<java.lang.String> cancel​(java.lang.String xClientRef, java.lang.String tenantId, java.net.URI documentLocation)
      Cancels a previously submitted or invoiced tax document.
      com.hybris.charon.RawResponse<java.lang.String> exists​(java.lang.String xClientRef, java.lang.String tenantId, java.net.URI documentLocation)
      Checks if a tax document exists.
      CisTaxDoc invoice​(java.lang.String xClientRef, java.lang.String tenantId, CisOrder order)
      Creates an invoice based on the provided order details.
      CisTaxDoc post​(java.lang.String xClientRef, java.lang.String tenantId, CisOrder order)
      Submits taxes for the given order.
      CisTaxDoc quote​(java.lang.String xClientRef, java.lang.String tenantId, CisOrder order)
      Returns a tax quote for the order.
    • Method Detail

      • quote

        CisTaxDoc quote​(java.lang.String xClientRef,
                        java.lang.String tenantId,
                        CisOrder order)
        Returns a tax quote for the order.
        Parameters:
        xClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        order - The order details to get the quote for
        Returns:
        A tax document
      • post

        CisTaxDoc post​(java.lang.String xClientRef,
                       java.lang.String tenantId,
                       CisOrder order)

        Submits taxes for the given order.

        Taxes can be posted when the order is placed, which will create a persisted tax document for later reference.

        Parameters:
        xClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        order - The order details to post taxes for
        Returns:
        A tax document
      • invoice

        CisTaxDoc invoice​(java.lang.String xClientRef,
                          java.lang.String tenantId,
                          CisOrder order)

        Creates an invoice based on the provided order details.

        Invoiced orders can be adjusted or cancelled.

        Parameters:
        xClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        order - The order details to invoice taxes for
        Returns:
        A tax document
      • cancel

        com.hybris.charon.RawResponse<java.lang.String> cancel​(java.lang.String xClientRef,
                                                               java.lang.String tenantId,
                                                               java.net.URI documentLocation)

        Cancels a previously submitted or invoiced tax document.

        Parameters:
        xClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        documentLocation - The location URI of the document (can be relative or absolute)
      • adjust

        CisTaxDoc adjust​(java.lang.String xClientRef,
                         java.lang.String tenantId,
                         java.net.URI documentLocation,
                         CisOrder order)

        Adjusts a previously submitted or invoiced tax document.

        Parameters:
        xClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        documentLocation - The location URI of the document to adjust
        order - CisOrder with lineitems to be cancelled
        Returns:
        A tax document
      • exists

        com.hybris.charon.RawResponse<java.lang.String> exists​(java.lang.String xClientRef,
                                                               java.lang.String tenantId,
                                                               java.net.URI documentLocation)

        Checks if a tax document exists.

        Parameters:
        xClientRef - client ref to pass in the header
        tenantId - tenantId to pass in the header
        documentLocation -