Class CartDiscountDraftCustomTypeAdapter
- java.lang.Object
-
- com.commercetools.sync.cartdiscounts.models.CartDiscountDraftCustomTypeAdapter
-
- All Implemented Interfaces:
CustomDraft
public final class CartDiscountDraftCustomTypeAdapter extends java.lang.Object implements CustomDraft
Adapt CartDiscountDraft withCustomDraft
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.CustomFieldsDraft
getCustom()
Get custom fields of theCartDiscountDraft
static CartDiscountDraftCustomTypeAdapter
of(com.commercetools.api.models.cart_discount.CartDiscountDraft cartDiscountDraft)
Build an adapter to be used for preparing custom type actions of with the givenCartDiscountDraft
-
-
-
Method Detail
-
getCustom
@Nullable public com.commercetools.api.models.type.CustomFieldsDraft getCustom()
Get custom fields of theCartDiscountDraft
- Specified by:
getCustom
in interfaceCustomDraft
- Returns:
- the
CustomFieldsDraft
-
of
public static CartDiscountDraftCustomTypeAdapter of(com.commercetools.api.models.cart_discount.CartDiscountDraft cartDiscountDraft)
Build an adapter to be used for preparing custom type actions of with the givenCartDiscountDraft
- Parameters:
cartDiscountDraft
- theCartDiscountDraft
- Returns:
- the
CartDiscountDraftCustomTypeAdapter
-
-