Class CategoryCustomTypeAdapter
- java.lang.Object
-
- com.commercetools.sync.categories.models.CategoryCustomTypeAdapter
-
- All Implemented Interfaces:
Custom
public final class CategoryCustomTypeAdapter extends java.lang.Object implements Custom
Adapt Category withCustom
interface to be used onCustomUpdateActionUtils
-
-
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 theCategory
java.lang.String
getId()
Get Id of theCategory
java.lang.String
getTypeId()
Get typeId of theCategory
see: https://docs.commercetools.com/api/types#referencetypestatic CategoryCustomTypeAdapter
of(com.commercetools.api.models.category.Category category)
Build an adapter to be used for preparing custom type actions of with the givenCategory
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Get Id of theCategory
-
getTypeId
public java.lang.String getTypeId()
Get typeId of theCategory
see: https://docs.commercetools.com/api/types#referencetype
-
getCustom
@Nullable public com.commercetools.api.models.type.CustomFields getCustom()
Get custom fields of theCategory
-
of
public static CategoryCustomTypeAdapter of(com.commercetools.api.models.category.Category category)
Build an adapter to be used for preparing custom type actions of with the givenCategory
- Parameters:
category
- theCategory
- Returns:
- the
CategoryCustomTypeAdapter
-
-