Class PriceCustomTypeAdapter
- java.lang.Object
-
- com.commercetools.sync.products.models.PriceCustomTypeAdapter
-
- All Implemented Interfaces:
Custom
public final class PriceCustomTypeAdapter extends java.lang.Object implements Custom
Adapt Customer 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 thePrice
java.lang.String
getId()
Get Id of thePrice
java.lang.String
getKey()
Get Key of thePrice
java.lang.String
getTypeId()
Get typeId of thePrice
see: https://docs.commercetools.com/api/types#referencetypestatic PriceCustomTypeAdapter
of(com.commercetools.api.models.common.Price price)
Build an adapter to be used for preparing custom type actions of with the givenPrice
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Get Id of thePrice
-
getTypeId
public java.lang.String getTypeId()
Get typeId of thePrice
see: https://docs.commercetools.com/api/types#referencetype
-
getCustom
@Nullable public com.commercetools.api.models.type.CustomFields getCustom()
Get custom fields of thePrice
-
getKey
public java.lang.String getKey()
Get Key of thePrice
- Returns:
- the
Price.getKey()
-
of
public static PriceCustomTypeAdapter of(com.commercetools.api.models.common.Price price)
Build an adapter to be used for preparing custom type actions of with the givenPrice
- Parameters:
price
- thePrice
- Returns:
- the
PriceCustomTypeAdapter
-
-