Interface OrderReference
- All Superinterfaces:
Identifiable<Order>,IdentifiableObjHolder<Order>,Reference,ReferenceMixin
public interface OrderReference
extends Reference, Identifiable<Order>, IdentifiableObjHolder<Order>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic OrderReferenceBuilderbuilder()builder factory method for OrderReferencestatic OrderReferenceBuilderbuilder(OrderReference template) create builder for OrderReference instancecopyDeep()static OrderReferencedeepCopy(OrderReference template) factory method to create a deep copy of OrderReference@NotNull StringgetId()Unique identifier of the referenced Order.@Valid OrdergetObj()Contains the representation of the expanded Order.static OrderReferenceof()factory methodstatic OrderReferenceof(OrderReference template) factory method to create a shallow copy OrderReferencevoidUnique identifier of the referenced Order.voidContains the representation of the expanded Order.static com.fasterxml.jackson.core.type.TypeReference<OrderReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithOrderReference(Function<OrderReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReferenceMethods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
ORDER
discriminator value for OrderReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Order. Only present in responses to requests with Reference Expansion for Orders.
- Specified by:
getObjin interfaceIdentifiableObjHolder<Order>- Returns:
- obj
-
getId
Unique identifier of the referenced Order.
- Specified by:
getIdin interfaceIdentifiable<Order>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded Order. Only present in responses to requests with Reference Expansion for Orders.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced Order.
-
of
factory method- Returns:
- instance of OrderReference
-
of
factory method to create a shallow copy OrderReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderReference copyDeep() -
deepCopy
factory method to create a deep copy of OrderReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderReference- Returns:
- builder
-
builder
create builder for OrderReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderReference
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-