Class InventoryEntryCustomTypeAdapter

  • All Implemented Interfaces:
    Custom

    public final class InventoryEntryCustomTypeAdapter
    extends java.lang.Object
    implements Custom
    Adapt InventoryEntry with Custom interface to be used on CustomUpdateActionUtils
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.commercetools.api.models.type.CustomFields getCustom()
      Get custom fields of the InventoryEntry
      java.lang.String getId()
      Get Id of the InventoryEntry
      java.lang.String getTypeId()
      Get typeId of the InventoryEntry see: https://docs.commercetools.com/api/types#referencetype
      static InventoryEntryCustomTypeAdapter of​(com.commercetools.api.models.inventory.InventoryEntry inventoryEntry)
      Build an adapter to be used for preparing custom type actions of with the given InventoryEntry
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId()
        Get Id of the InventoryEntry
        Specified by:
        getId in interface Custom
        Returns:
        the InventoryEntry.getId()
      • getTypeId

        public java.lang.String getTypeId()
        Get typeId of the InventoryEntry see: https://docs.commercetools.com/api/types#referencetype
        Specified by:
        getTypeId in interface Custom
        Returns:
        the typeId "inventoryEntry"
      • getCustom

        @Nullable
        public com.commercetools.api.models.type.CustomFields getCustom()
        Get custom fields of the InventoryEntry
        Specified by:
        getCustom in interface Custom
        Returns:
        the CustomFields
      • of

        public static InventoryEntryCustomTypeAdapter of​(com.commercetools.api.models.inventory.InventoryEntry inventoryEntry)
        Build an adapter to be used for preparing custom type actions of with the given InventoryEntry
        Parameters:
        inventoryEntry - the InventoryEntry
        Returns:
        the InventoryEntryCustomTypeAdapter