Interface OrderReference
- All Superinterfaces:
Identifiable<Order>
,IdentifiableObjHolder<Order>
,Reference
,ReferenceMixin
public interface OrderReference
extends Reference, Identifiable<Order>, IdentifiableObjHolder<Order>
Reference to an Order.
Example to create an instance using the builder pattern
OrderReference orderReference = OrderReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderReferenceBuilder
builder()
builder factory method for OrderReferencestatic OrderReferenceBuilder
builder
(OrderReference template) create builder for OrderReference instancestatic OrderReference
deepCopy
(OrderReference template) factory method to create a deep copy of OrderReference@NotNull String
getId()
Unique identifier of the referenced Order.@Valid Order
getObj()
Contains the representation of the expanded Order.static OrderReference
of()
factory methodstatic OrderReference
of
(OrderReference template) factory method to create a shallow copy OrderReferencevoid
Unique identifier of the referenced Order.void
Contains the representation of the expanded Order.static com.fasterxml.jackson.core.type.TypeReference<OrderReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderReference
(Function<OrderReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods 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:
getObj
in interfaceIdentifiableObjHolder<Order>
- Returns:
- obj
-
getId
Unique identifier of the referenced Order.
- Specified by:
getId
in interfaceIdentifiable<Order>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in 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
-
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
-