Interface CustomerReference
- All Superinterfaces:
Identifiable<Customer>,IdentifiableObjHolder<Customer>,Reference,ReferenceMixin
public interface CustomerReference
extends Reference, Identifiable<Customer>, IdentifiableObjHolder<Customer>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerReferenceBuilderbuilder()builder factory method for CustomerReferencestatic CustomerReferenceBuilderbuilder(CustomerReference template) create builder for CustomerReference instancecopyDeep()static CustomerReferencedeepCopy(CustomerReference template) factory method to create a deep copy of CustomerReference@NotNull StringgetId()Unique identifier of the referenced Customer.@Valid CustomergetObj()Contains the representation of the expanded Customer.static CustomerReferenceof()factory methodstatic CustomerReferenceof(CustomerReference template) factory method to create a shallow copy CustomerReferencevoidUnique identifier of the referenced Customer.voidContains the representation of the expanded Customer.static com.fasterxml.jackson.core.type.TypeReference<CustomerReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomerReference(Function<CustomerReference, 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
-
CUSTOMER
discriminator value for CustomerReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Customer. Only present in responses to requests with Reference Expansion for Customers.
- Specified by:
getObjin interfaceIdentifiableObjHolder<Customer>- Returns:
- obj
-
getId
Unique identifier of the referenced Customer.
- Specified by:
getIdin interfaceIdentifiable<Customer>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded Customer. Only present in responses to requests with Reference Expansion for Customers.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced Customer.
-
of
factory method- Returns:
- instance of CustomerReference
-
of
factory method to create a shallow copy CustomerReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerReference copyDeep() -
deepCopy
factory method to create a deep copy of CustomerReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerReference- Returns:
- builder
-
builder
create builder for CustomerReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerReference
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
-