com.ibm.commerce.price.commands

Interface ValidateDelegatedPriceCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.TaskCommand
    All Known Implementing Classes:
    ValidateDelegatedPriceCmdImpl


    public interface ValidateDelegatedPriceCmd
    extends com.ibm.commerce.command.TaskCommand
    This command interface is used for validating a delegated price of a product. A delegated price of a given catalog entry is the price which a TSR and a customer agreed with. A delegated price can not be lower than the floor price of the given catalog entry. Currently this command only checks this limit. If the delegated is not lower than the floor price, the method isValid() will return true, otherwise return false. The floor price will be retrieved using FloorPriceLookupCmd.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String defaultCommandClassName
      The default name of this command.
      static java.lang.String NAME
      The name of this command.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      boolean hasFloorPrice()
      Check if there exists a floor price for the input catalog.
      boolean isValid()
      Check if the delegated price is in the proper range.
      void setCatEntryId(java.lang.Long catEntryId)
      Sets the catalog entry ID whose delegated price is to be checked for limit violation.
      void setConfigurationID(java.lang.String aConfigID)
      Sets the configuration ID, if this catalog entry is a DynamicKit.
      void setCurrency(java.lang.String currency)
      Set the currency to be used for finding the price.
      void setCustomPartnumber(java.lang.String customPartnumber)
      Sets the custom partnumber whose delegated price is to be checked for limit violation.
      void setNegotiatedPrice(java.math.BigDecimal negotiatedPrice)
      Set the negotiated price.
      void setQuantity(QuantityAmount aQuantityAmount)
      Sets the quantity amount of the input catalog entry that is to be priced (Optional).
      void setStoreId(java.lang.Integer storeId)
      Set the store ID to which the catalog entry belongs.
      void setTSRId(java.lang.Long aTSRId)
      Set TSR ID who helps customer on shopping
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default name of this command.
        See Also:
        Constant Field Values
    • Method Detail

      • hasFloorPrice

        boolean hasFloorPrice()
        Check if there exists a floor price for the input catalog.
        Returns:
        boolean Indicates if there is a floor price for a given product
      • isValid

        boolean isValid()
        Check if the delegated price is in the proper range. If it is lower than the floor price, return false which means the delegated price is not in the proper range, otherwise return true.
        Returns:
        boolean Indicates if the delegated price is in the right range.
      • setCatEntryId

        void setCatEntryId(java.lang.Long catEntryId)
        Sets the catalog entry ID whose delegated price is to be checked for limit violation.
        Parameters:
        catEntryId - A reference number of catalog entry.
      • setConfigurationID

        void setConfigurationID(java.lang.String aConfigID)
        Sets the configuration ID, if this catalog entry is a DynamicKit. (Optional)
        Parameters:
        aConfigID - A String of pre-configuration ID for a DynamicKit
      • setCurrency

        void setCurrency(java.lang.String currency)
        Set the currency to be used for finding the price. If the currency is not specified, then the currency of the order-item is used.
        Parameters:
        aCurrency - A currency.
      • setCustomPartnumber

        void setCustomPartnumber(java.lang.String customPartnumber)
        Sets the custom partnumber whose delegated price is to be checked for limit violation.
        Parameters:
        customPartnumber - The custom partnumber.
      • setNegotiatedPrice

        void setNegotiatedPrice(java.math.BigDecimal negotiatedPrice)
        Set the negotiated price.
      • setQuantity

        void setQuantity(QuantityAmount aQuantityAmount)
        Sets the quantity amount of the input catalog entry that is to be priced (Optional).
        Parameters:
        aQuantityAmount - The quantity amount of the catalog entry. The quantity amount helps determine which offers are valid. If the quantity amount is not specified; then the nominal quantity (rounded up to the nearest multiple as specified in the quantityMultiple attribute) of the Catalog entry is assumed to be the requested quantity.
      • setStoreId

        void setStoreId(java.lang.Integer storeId)
        Set the store ID to which the catalog entry belongs.
        Parameters:
        storeId - A store ID
      • setTSRId

        void setTSRId(java.lang.Long aTSRId)
        Set TSR ID who helps customer on shopping
        Parameters:
        aTSRId - Long A TSR ID