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