Interface SalesCatalogService

    • Method Detail

      • getAllCurrencies

        java.util.List<CurrencyItem> getAllCurrencies()
        This method returns database entities as list.
        Returns:
        database entities as list
      • getCurrencyByCode

        CurrencyItem getCurrencyByCode​(java.lang.String code)
        This method returns database entity.
        Parameters:
        code - for filter and return database entity
        Returns:
        database entity
      • getSellerSkuFromChatTopic

        SellerSKU getSellerSkuFromChatTopic​(java.lang.String topic)
        This method returns database entity.
        Parameters:
        topic - field for database entity which related entities list be returned
        Returns:
        database entity
      • getCountOfSellerSkusBySeller

        java.util.Map<java.lang.String,​java.lang.String> getCountOfSellerSkusBySeller​(java.lang.String sellerId)
        This method returns data as map.
        Parameters:
        sellerId - identification for filter and return data
        Returns:
        data as map
      • createUnit

        java.util.Optional<Unit> createUnit​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> unitAsMap)
        This method creates a database entity.
        Parameters:
        unitAsMap - map-representation of database entity
        Returns:
        database entity
      • saveSellerSkuAsDraft

        SellerSKU saveSellerSkuAsDraft​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerSkuAsMap)
        This method save an updates of database entity.
        Parameters:
        sellerSkuAsMap - map-representation of database entity
        Returns:
        saved instance of database entity
      • saveSellerSkuAsDraft

        SellerSKU saveSellerSkuAsDraft​(SellerSKU sellerSku)
        This method saves a database entity.
        Parameters:
        sellerSku - database entity
        Returns:
        saved instance of database entity
      • saveSellerSKU

        SellerSKU saveSellerSKU​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerSkuAsMap)
        This method save an updates of database entity.
        Parameters:
        sellerSkuAsMap - map-representation of database entity
        Returns:
        saved instance of database entity
      • saveSellerSKU

        SellerSKU saveSellerSKU​(SellerSKU sellerSku)
        This method saves a database entity.
        Parameters:
        sellerSku - database entity
        Returns:
        saved instance of database entity
      • getAllSellerTariff

        java.util.Map<java.lang.String,​java.lang.String> getAllSellerTariff()
        This method returns data as map.
        Returns:
        data as map
      • saveUnit

        Unit saveUnit​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> unitAsMap)
        This method save an updates of database entity.
        Parameters:
        unitAsMap - map-representation of database entity
        Returns:
        saved instance of database entity
      • getSellerSkuDocumentUrls

        java.util.List<Attachment> getSellerSkuDocumentUrls​(java.lang.String sellerSkuId)
        This method returns data as list.
        Parameters:
        sellerSkuId - identification for database entity which related beans list be returned
        Returns:
        database beans as list
      • removeSellerSkuAndClean

        void removeSellerSkuAndClean​(java.lang.String sellerSkuId)
        This method removes a database entity and clean all relationships from another entities.
        Parameters:
        sellerSkuId - identification for database entity which will be removed
      • removeSellerSkusByIds

        void removeSellerSkusByIds​(java.util.ArrayList<java.lang.String> sellerSkusIds)
        This method removes a list of database entities.
        Parameters:
        sellerSkusIds - the list of database entities which will be removed
      • removeUnitAndClean

        void removeUnitAndClean​(java.lang.String unitId)
        This method removes a database entity and clean all relationships from another entities.
        Parameters:
        unitId - identification for database entity which will be removed
      • removeUnitsByIds

        void removeUnitsByIds​(java.util.ArrayList<java.lang.String> unitsIds)
        This method removes a list of database entities.
        Parameters:
        unitsIds - the list of database entities which will be removed
      • publishForSale

        SellerSKU publishForSale​(java.lang.String sellerSkuId)
        This method does update a database entity.
        Parameters:
        sellerSkuId - database entity id
        Returns:
        database entity
      • withdrawFromSale

        SellerSKU withdrawFromSale​(java.lang.String sellerSkuId)
        This method does update a database entity.
        Parameters:
        sellerSkuId - database entity id
        Returns:
        database entity