Class CartDiscountCustomTypeAdapter

  • All Implemented Interfaces:
    Custom

    public final class CartDiscountCustomTypeAdapter
    extends java.lang.Object
    implements Custom
    Adapt CartDiscount 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 CartDiscount
      java.lang.String getId()
      Get Id of the CartDiscount
      java.lang.String getTypeId()
      Get typeId of the CartDiscount see: https://docs.commercetools.com/api/types#referencetype
      static CartDiscountCustomTypeAdapter of​(com.commercetools.api.models.cart_discount.CartDiscount cartDiscount)
      Build an adapter to be used for preparing custom type actions of with the given CartDiscount
      • 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 CartDiscount
        Specified by:
        getId in interface Custom
        Returns:
        the CartDiscount.getId()
      • getTypeId

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

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

        public static CartDiscountCustomTypeAdapter of​(com.commercetools.api.models.cart_discount.CartDiscount cartDiscount)
        Build an adapter to be used for preparing custom type actions of with the given CartDiscount
        Parameters:
        cartDiscount - the CartDiscount
        Returns:
        the CartDiscountCustomTypeAdapter