Interface ImportRequest
- All Known Subinterfaces:
CategoryImportRequest
,CustomerImportRequest
,DiscountCodeImportRequest
,InventoryImportRequest
,OrderImportRequest
,OrderPatchImportRequest
,PriceImportRequest
,ProductDraftImportRequest
,ProductImportRequest
,ProductTypeImportRequest
,ProductVariantImportRequest
,ProductVariantPatchRequest
,StandalonePriceImportRequest
,TypeImportRequest
public interface ImportRequest
An import request batches multiple import resources of the same import resource type for processing by an import container.
Example to create a subtype instance using the builder pattern
ImportRequest importRequest = ImportRequest.categoryBuilder()
plusResources(resourcesBuilder -> resourcesBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryImportRequestBuilder
builder for category subtypestatic CustomerImportRequestBuilder
builder for customer subtypestatic ImportRequest
deepCopy
(ImportRequest template) factory method to create a deep copy of ImportRequestbuilder for discountCode subtype@NotNull ImportResourceType
getType()
The resource types that can be imported.builder for inventory subtypestatic OrderImportRequestBuilder
builder for order subtypebuilder for orderPatch subtypestatic PriceImportRequestBuilder
builder for price subtypestatic ProductImportRequestBuilder
builder for product subtypebuilder for productDraft subtypebuilder for productType subtypebuilder for productVariant subtypebuilder for productVariantPatch subtypebuilder for standalonePrice subtypestatic TypeImportRequestBuilder
builder for type subtypestatic com.fasterxml.jackson.core.type.TypeReference<ImportRequest>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withImportRequest
(Function<ImportRequest, T> helper) accessor map function
-
Method Details
-
getType
The resource types that can be imported.
- Returns:
- type
-
deepCopy
factory method to create a deep copy of ImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
categoryBuilder
builder for category subtype- Returns:
- builder
-
customerBuilder
builder for customer subtype- Returns:
- builder
-
discountCodeBuilder
builder for discountCode subtype- Returns:
- builder
-
inventoryBuilder
builder for inventory subtype- Returns:
- builder
-
orderBuilder
builder for order subtype- Returns:
- builder
-
orderPatchBuilder
builder for orderPatch subtype- Returns:
- builder
-
priceBuilder
builder for price subtype- Returns:
- builder
-
productDraftBuilder
builder for productDraft subtype- Returns:
- builder
-
productBuilder
builder for product subtype- Returns:
- builder
-
productTypeBuilder
builder for productType subtype- Returns:
- builder
-
productVariantBuilder
builder for productVariant subtype- Returns:
- builder
-
productVariantPatchBuilder
builder for productVariantPatch subtype- Returns:
- builder
-
standalonePriceBuilder
builder for standalonePrice subtype- Returns:
- builder
-
typeBuilder
builder for type subtype- Returns:
- builder
-
withImportRequest
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
-