Interface OrderPatchImport
public interface OrderPatchImport
Representation for an update of an Order. Use this type to import updates for existing Orders in a Project.
Example to create an instance using the builder pattern
OrderPatchImport orderPatchImport = OrderPatchImport.builder()
.orderNumber("{orderNumber}")
.fields(fieldsBuilder -> fieldsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderPatchImportBuilder
builder()
builder factory method for OrderPatchImportstatic OrderPatchImportBuilder
builder
(OrderPatchImport template) create builder for OrderPatchImport instancestatic OrderPatchImport
deepCopy
(OrderPatchImport template) factory method to create a deep copy of OrderPatchImport@NotNull @Valid OrderField
Each field referenced must be defined in an already existing order in the project or the import operation state is set tovalidationFailed
.@NotNull String
Maps toOrder.orderNumber
, String that uniquely identifies an order, unique across a project.static OrderPatchImport
of()
factory methodstatic OrderPatchImport
of
(OrderPatchImport template) factory method to create a shallow copy OrderPatchImportvoid
setFields
(OrderField fields) Each field referenced must be defined in an already existing order in the project or the import operation state is set tovalidationFailed
.void
setOrderNumber
(String orderNumber) Maps toOrder.orderNumber
, String that uniquely identifies an order, unique across a project.static com.fasterxml.jackson.core.type.TypeReference<OrderPatchImport>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderPatchImport
(Function<OrderPatchImport, T> helper) accessor map function
-
Method Details
-
getOrderNumber
Maps to
Order.orderNumber
, String that uniquely identifies an order, unique across a project.- Returns:
- orderNumber
-
getFields
Each field referenced must be defined in an already existing order in the project or the import operation state is set to
validationFailed
.- Returns:
- fields
-
setOrderNumber
Maps to
Order.orderNumber
, String that uniquely identifies an order, unique across a project.- Parameters:
orderNumber
- value to be set
-
setFields
Each field referenced must be defined in an already existing order in the project or the import operation state is set to
validationFailed
.- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of OrderPatchImport
-
of
factory method to create a shallow copy OrderPatchImport- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderPatchImport- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderPatchImport- Returns:
- builder
-
builder
create builder for OrderPatchImport instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderPatchImport
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
-