Class MigrationModelClassMapping

java.lang.Object
com.commercetools.docs.meta.MigrationModelClassMapping

public class MigrationModelClassMapping extends Object
Table of content

Mapping of model classes from SDK v1 to v2

v1v2
ApiClient ApiClient
ApiClientDraft ApiClientDraft
CartDiscount CartDiscount
CartDiscountDraft CartDiscountDraft
CartDiscountTarget CartDiscountTarget
CartDiscountValue CartDiscountValue
DiscountedLineItemPortion DiscountedLineItemPortion
DiscountedLineItemPrice removed
DiscountedLineItemPriceForQuantity DiscountedLineItemPriceForQuantity
ChangeCartPredicate CartDiscountChangeCartPredicateAction
ChangeIsActive CartDiscountChangeIsActiveAction
ChangeName CartDiscountChangeNameAction
ChangeRequiresDiscountCode CartDiscountChangeRequiresDiscountCodeAction
ChangeSortOrder CartDiscountChangeSortOrderAction
ChangeStackingMode CartDiscountChangeStackingModeAction
ChangeTarget CartDiscountChangeTargetAction
ChangeValue CartDiscountChangeValueAction
SetCustomField CartDiscountSetCustomFieldAction
SetCustomType CartDiscountSetCustomTypeAction
SetDescription CartDiscountSetDescriptionAction
SetKey CartDiscountSetKeyAction
SetValidFrom CartDiscountSetValidFromAction
SetValidFromAndUntil CartDiscountSetValidFromAndUntilAction
SetValidUntil CartDiscountSetValidUntilAction
Cart Cart
CartDraft CartDraft
CartLike OrderLike
CartShippingInfo ShippingInfo
CartsConfiguration CartsConfiguration
ClassificationShippingRateInput ClassificationShippingRateInput
ClassificationShippingRateInputDraft ClassificationShippingRateInputDraft
CustomLineItem CustomLineItem
CustomLineItemDraft CustomLineItemDraft
ExternalLineItemTotalPrice ExternalLineItemTotalPrice
ExternalTaxAmountDraft ExternalTaxAmountDraft
ItemShippingDetails ItemShippingDetails
ItemShippingDetailsDraft ItemShippingDetailsDraft
ItemShippingTarget ItemShippingTarget
ItemState ItemState
LineItem LineItem
LineItemDraft LineItemDraft
PaymentInfo PaymentInfo
ScoreShippingRateInput ScoreShippingRateInput
ScoreShippingRateInputDraft ScoreShippingRateInputDraft
ShippingRateInput ShippingRateInput
ShippingRateInputDraft ShippingRateInputDraft
ShoppingListsConfiguration ShoppingListsConfiguration
TaxPortion TaxPortion
TaxedItemPrice TaxedItemPrice
TaxedPrice TaxedPrice
AddCustomLineItem CartAddCustomLineItemAction
AddDiscountCode CartAddDiscountCodeAction
AddItemShippingAddress CartAddItemShippingAddressAction
AddLineItem CartAddLineItemAction
AddPayment CartAddPaymentAction
AddShoppingList CartAddShoppingListAction
ApplyDeltaToCustomLineItemShippingDetailsTargets CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
ApplyDeltaToLineItemShippingDetailsTargets CartApplyDeltaToLineItemShippingDetailsTargetsAction
ChangeCustomLineItemMoney CartChangeCustomLineItemMoneyAction
ChangeCustomLineItemQuantity CartChangeCustomLineItemQuantityAction
ChangeLineItemQuantity CartChangeLineItemQuantityAction
ChangeTaxCalculationMode CartChangeTaxCalculationModeAction
ChangeTaxMode CartChangeTaxModeAction
ChangeTaxRoundingMode CartChangeTaxRoundingModeAction
FreezeCart CartFreezeCartAction
Recalculate CartRecalculateAction
RemoveCustomLineItem CartRemoveCustomLineItemAction
RemoveDiscountCode CartRemoveDiscountCodeAction
RemoveItemShippingAddress CartRemoveItemShippingAddressAction
RemoveLineItem CartRemoveLineItemAction
RemovePayment CartRemovePaymentAction
SetAnonymousId CartSetAnonymousIdAction
SetBillingAddress CartSetBillingAddressAction
SetBillingAddressCustomField CartSetBillingAddressCustomFieldAction
SetBillingAddressCustomType CartSetBillingAddressCustomTypeAction
SetCartTotalTax CartSetCartTotalTaxAction
SetCountry CartSetCountryAction
SetCustomField CartSetCustomFieldAction
SetCustomLineItemCustomField CartSetCustomLineItemCustomFieldAction
SetCustomLineItemCustomType CartSetCustomLineItemCustomTypeAction
SetCustomLineItemShippingDetails CartSetCustomLineItemShippingDetailsAction
SetCustomLineItemTaxAmount CartSetCustomLineItemTaxAmountAction
SetCustomLineItemTaxRate CartSetCustomLineItemTaxRateAction
SetCustomShippingMethod CartSetCustomShippingMethodAction
SetCustomType CartSetCustomTypeAction
SetCustomerEmail CartSetCustomerEmailAction
SetCustomerGroup CartSetCustomerGroupAction
SetCustomerId CartSetCustomerIdAction
SetDeleteDaysAfterLastModification CartSetDeleteDaysAfterLastModificationAction
SetItemShippingAddressCustomField CartSetItemShippingAddressCustomFieldAction
SetItemShippingAddressCustomType CartSetItemShippingAddressCustomTypeAction
SetKey CartSetKeyAction
SetLineItemCustomField CartSetLineItemCustomFieldAction
SetLineItemCustomType CartSetLineItemCustomTypeAction
SetLineItemDistributionChannel CartSetLineItemDistributionChannelAction
SetLineItemPrice CartSetLineItemPriceAction
SetLineItemShippingDetails CartSetLineItemShippingDetailsAction
SetLineItemSupplyChannel CartSetLineItemSupplyChannelAction
SetLineItemTaxAmount CartSetLineItemTaxAmountAction
SetLineItemTaxRate CartSetLineItemTaxRateAction
SetLineItemTotalPrice CartSetLineItemTotalPriceAction
SetLocale CartSetLocaleAction
SetShippingAddress CartSetShippingAddressAction
SetShippingAddressCustomField CartSetShippingAddressCustomFieldAction
SetShippingAddressCustomType CartSetShippingAddressCustomTypeAction
SetShippingMethod CartSetShippingMethodAction
SetShippingMethodTaxAmount CartSetShippingMethodTaxAmountAction
SetShippingMethodTaxRate CartSetShippingMethodTaxRateAction
SetShippingRateInput CartSetShippingRateInputAction
UnfreezeCart CartUnfreezeCartAction
UpdateItemShippingAddress CartUpdateItemShippingAddressAction
Category Category
CategoryDraft CategoryDraft
CategoryTree CategoryTree
AddAsset CategoryAddAssetAction
ChangeAssetName CategoryChangeAssetNameAction
ChangeAssetOrder CategoryChangeAssetOrderAction
ChangeName CategoryChangeNameAction
ChangeOrderHint CategoryChangeOrderHintAction
ChangeParent CategoryChangeParentAction
ChangeSlug CategoryChangeSlugAction
RemoveAsset CategoryRemoveAssetAction
SetAssetCustomField CategorySetAssetCustomFieldAction
SetAssetCustomType CategorySetAssetCustomTypeAction
SetAssetDescription CategorySetAssetDescriptionAction
SetAssetKey CategorySetAssetKeyAction
SetAssetSources CategorySetAssetSourcesAction
SetAssetTags CategorySetAssetTagsAction
SetCustomField CategorySetCustomFieldAction
SetCustomType CategorySetCustomTypeAction
SetDescription CategorySetDescriptionAction
SetExternalId CategorySetExternalIdAction
SetKey CategorySetKeyAction
SetMetaDescription CategorySetMetaDescriptionAction
SetMetaKeywords CategorySetMetaKeywordsAction
SetMetaTitle CategorySetMetaTitleAction
Channel Channel
ChannelDraft ChannelDraft
AddRoles ChannelAddRolesAction
ChangeDescription ChannelChangeDescriptionAction
ChangeKey ChannelChangeKeyAction
ChangeName ChannelChangeNameAction
RemoveRoles ChannelRemoveRolesAction
SetAddress ChannelSetAddressAction
SetAddressCustomField ChannelSetAddressCustomFieldAction
SetAddressCustomType ChannelSetAddressCustomTypeAction
SetCustomField ChannelSetCustomFieldAction
SetCustomType ChannelSetCustomTypeAction
SetGeoLocation ChannelSetGeoLocationAction
SetRoles ChannelSetRolesAction
CustomerGroup CustomerGroup
CustomerGroupDraft CustomerGroupDraft
ChangeName CustomerGroupChangeNameAction
SetCustomField CustomerGroupSetCustomFieldAction
SetCustomType CustomerGroupSetCustomTypeAction
SetKey CustomerGroupSetKeyAction
Customer Customer
CustomerDraft CustomerDraft
CustomerSignInResult CustomerSignInResult
CustomerToken CustomerToken
AddAddress CustomerAddAddressAction
AddBillingAddressId CustomerAddBillingAddressIdAction
AddShippingAddressId CustomerAddShippingAddressIdAction
AddStore CustomerAddStoreAction
ChangeAddress CustomerChangeAddressAction
ChangeEmail CustomerChangeEmailAction
ChangeName removed
RemoveAddress CustomerRemoveAddressAction
RemoveBillingAddressId CustomerRemoveBillingAddressIdAction
RemoveShippingAddressId CustomerRemoveShippingAddressIdAction
RemoveStore CustomerRemoveStoreAction
SetAddressCustomField CustomerSetAddressCustomFieldAction
SetAddressCustomType CustomerSetAddressCustomTypeAction
SetAuthenticationMode CustomerSetAuthenticationModeAction
SetCompanyName CustomerSetCompanyNameAction
SetCustomField CustomerSetCustomFieldAction
SetCustomType CustomerSetCustomTypeAction
SetCustomerGroup CustomerSetCustomerGroupAction
SetCustomerNumber CustomerSetCustomerNumberAction
SetDateOfBirth CustomerSetDateOfBirthAction
SetDefaultBillingAddress CustomerSetDefaultBillingAddressAction
SetDefaultShippingAddress CustomerSetDefaultShippingAddressAction
SetExternalId CustomerSetExternalIdAction
SetFirstName CustomerSetFirstNameAction
SetKey CustomerSetKeyAction
SetLastName CustomerSetLastNameAction
SetLocale CustomerSetLocaleAction
SetMiddleName CustomerSetMiddleNameAction
SetSalutation CustomerSetSalutationAction
SetStores CustomerSetStoresAction
SetTitle CustomerSetTitleAction
SetVatId CustomerSetVatIdAction
CustomObject CustomObject
DiscountCode DiscountCode
DiscountCodeDraft DiscountCodeDraft
DiscountCodeInfo DiscountCodeInfo
ChangeCartDiscounts DiscountCodeChangeCartDiscountsAction
ChangeGroups DiscountCodeChangeGroupsAction
SetCartPredicate DiscountCodeSetCartPredicateAction
SetCustomField DiscountCodeSetCustomFieldAction
SetCustomType DiscountCodeSetCustomTypeAction
SetDescription DiscountCodeSetDescriptionAction
SetMaxApplications DiscountCodeSetMaxApplicationsAction
SetMaxApplicationsPerCustomer DiscountCodeSetMaxApplicationsPerCustomerAction
SetName DiscountCodeSetNameAction
SetValidFrom DiscountCodeSetValidFromAction
SetValidFromAndUntil DiscountCodeSetValidFromAndUntilAction
SetValidUntil DiscountCodeSetValidUntilAction
AWSLambdaDestination AWSLambdaDestination
AuthorizationHeaderAuthentication AuthorizationHeaderAuthentication
AzureFunctionsAuthentication AzureFunctionsAuthentication
Destination ExtensionDestination
Extension Extension
ExtensionDraft ExtensionDraft
HttpDestination HttpDestination
HttpDestinationAuthentication HttpDestinationAuthentication
Trigger ExtensionTrigger
ChangeDestination ExtensionChangeDestinationAction
ChangeTriggers ExtensionChangeTriggersAction
SetKey ExtensionSetKeyAction
SetTimeoutInMs ExtensionSetTimeoutInMsAction
InventoryEntry InventoryEntry
InventoryEntryDraft InventoryEntryDraft
AddQuantity InventoryEntryAddQuantityAction
ChangeQuantity InventoryEntryChangeQuantityAction
RemoveQuantity InventoryEntryRemoveQuantityAction
SetCustomField InventoryEntrySetCustomFieldAction
SetCustomType InventoryEntrySetCustomTypeAction
SetExpectedDelivery InventoryEntrySetExpectedDeliveryAction
SetRestockableInDays InventoryEntrySetRestockableInDaysAction
SetSupplyChannel InventoryEntrySetSupplyChannelAction
Message Message
UserProvidedIdentifiers UserProvidedIdentifiers
Asset Asset
AssetDimensions AssetDimensions
AssetDraft AssetDraft
AssetSource AssetSource
ClientLogging ClientLogging
ContainerAndKey ContainerAndKey
CreatedBy CreatedBy
LastModifiedBy LastModifiedBy
WithClientLogging ClientLogging
OrderEdit OrderEdit
OrderEditApplied OrderEditApplied
OrderEditDraft OrderEditDraft
OrderEditNotProcessed OrderEditNotProcessed
OrderEditPreviewFailure OrderEditPreviewFailure
OrderEditPreviewSuccess OrderEditPreviewSuccess
OrderEditResult OrderEditResult
OrderExcerpt OrderExcerpt
AddStagedAction OrderEditAddStagedActionAction
SetComment OrderEditSetCommentAction
SetCustomField OrderEditSetCustomFieldAction
SetCustomType OrderEditSetCustomTypeAction
SetKey OrderEditSetKeyAction
SetStagedActions OrderEditSetStagedActionsAction
CustomLineItemImportDraft CustomLineItemImportDraft
CustomLineItemReturnItem CustomLineItemReturnItem
CustomLineItemReturnItemDraft CustomLineItemReturnItem
Delivery Delivery
DeliveryItem DeliveryItem
LineItemImportDraft LineItemImportDraft
LineItemReturnItem LineItemReturnItem
LineItemReturnItemDraft LineItemReturnItem
Order Order
OrderFromCartDraft OrderFromCartDraft
OrderImportDraft OrderImportDraft
OrderShippingInfo ShippingInfo
Parcel Parcel
ParcelDraft ParcelDraft
ParcelMeasurements ParcelMeasurements
ProductVariantImportDraft ProductVariantImportDraft
ReturnInfo ReturnInfo
ReturnInfoDraft ReturnInfoDraft
ReturnItem ReturnItem
ReturnItemDraft ReturnItemDraft
ShippingInfoImportDraft ShippingInfoImportDraft
SyncInfo SyncInfo
TrackingData TrackingData
AddDelivery OrderAddDeliveryAction
AddItemShippingAddress OrderAddItemShippingAddressAction
AddParcelToDelivery OrderAddParcelToDeliveryAction
AddPayment OrderAddPaymentAction
AddReturnInfo OrderAddReturnInfoAction
ChangeOrderState OrderChangeOrderStateAction
ChangePaymentState OrderChangePaymentStateAction
ChangeShipmentState OrderChangeShipmentStateAction
ImportCustomLineItemState OrderImportCustomLineItemStateAction
ImportLineItemState OrderImportLineItemStateAction
RemoveDelivery OrderRemoveDeliveryAction
RemoveItemShippingAddress OrderRemoveItemShippingAddressAction
RemoveParcelFromDelivery OrderRemoveParcelFromDeliveryAction
RemovePayment OrderRemovePaymentAction
SetBillingAddress OrderSetBillingAddressAction
SetCustomField OrderSetCustomFieldAction
SetCustomLineItemCustomField OrderSetCustomLineItemCustomFieldAction
SetCustomLineItemCustomType OrderSetCustomLineItemCustomTypeAction
SetCustomLineItemShippingDetails OrderSetCustomLineItemShippingDetailsAction
SetCustomType OrderSetCustomTypeAction
SetCustomerEmail OrderSetCustomerEmailAction
SetCustomerId OrderSetCustomerIdAction
SetDeliveryAddress OrderSetDeliveryAddressAction
SetDeliveryCustomField OrderSetDeliveryCustomFieldAction
SetDeliveryCustomType OrderSetDeliveryCustomTypeAction
SetDeliveryItems OrderSetDeliveryItemsAction
SetLineItemCustomField OrderSetLineItemCustomFieldAction
SetLineItemCustomType OrderSetLineItemCustomTypeAction
SetLineItemShippingDetails OrderSetLineItemShippingDetailsAction
SetLocale OrderSetLocaleAction
SetOrderNumber OrderSetOrderNumberAction
SetParcelCustomField OrderSetParcelCustomFieldAction
SetParcelCustomType OrderSetParcelCustomTypeAction
SetParcelItems OrderSetParcelItemsAction
SetParcelMeasurements OrderSetParcelMeasurementsAction
SetParcelTrackingData OrderSetParcelTrackingDataAction
SetReturnInfo OrderSetReturnInfoAction
SetReturnItemCustomField OrderSetReturnItemCustomFieldAction
SetReturnItemCustomType OrderSetReturnItemCustomTypeAction
SetReturnPaymentState OrderSetReturnPaymentStateAction
SetReturnShipmentState OrderSetReturnShipmentStateAction
SetShippingAddress OrderSetShippingAddressAction
SetStore OrderSetStoreAction
TransitionCustomLineItemState OrderTransitionCustomLineItemStateAction
TransitionLineItemState OrderTransitionLineItemStateAction
TransitionState OrderTransitionStateAction
UpdateItemShippingAddress OrderUpdateItemShippingAddressAction
UpdateSyncInfo OrderUpdateSyncInfoAction
OrderMessage OrderMessage
Payment Payment
PaymentDraft PaymentDraft
PaymentMethodInfo PaymentMethodInfo
PaymentStatus PaymentStatus
Transaction Transaction
TransactionDraft TransactionDraft
AddInterfaceInteraction PaymentAddInterfaceInteractionAction
AddTransaction PaymentAddTransactionAction
ChangeAmountPlanned PaymentChangeAmountPlannedAction
ChangeTransactionInteractionId PaymentChangeTransactionInteractionIdAction
ChangeTransactionState PaymentChangeTransactionStateAction
ChangeTransactionTimestamp PaymentChangeTransactionTimestampAction
SetAmountPaid removed
SetAmountRefunded removed
SetAnonymousId PaymentSetAnonymousIdAction
SetAuthorization removed
SetCustomField PaymentSetCustomFieldAction
SetCustomType PaymentSetCustomTypeAction
SetCustomer PaymentSetCustomerAction
SetExternalId removed
SetInterfaceId PaymentSetInterfaceIdAction
SetKey PaymentSetKeyAction
SetMethodInfoInterface PaymentSetMethodInfoInterfaceAction
SetMethodInfoMethod PaymentSetMethodInfoMethodAction
SetMethodInfoName PaymentSetMethodInfoNameAction
SetStatusInterfaceCode PaymentSetStatusInterfaceCodeAction
SetStatusInterfaceText PaymentSetStatusInterfaceTextAction
SetTransactionCustomField PaymentSetTransactionCustomFieldAction
SetTransactionCustomType PaymentSetTransactionCustomTypeAction
TransitionState PaymentTransitionStateAction
DiscountedPrice DiscountedPrice
ProductDiscount ProductDiscount
ProductDiscountDraft ProductDiscountDraft
ProductDiscountValue ProductDiscountValue
ChangeIsActive ProductDiscountChangeIsActiveAction
ChangeName ProductDiscountChangeNameAction
ChangePredicate ProductDiscountChangePredicateAction
ChangeSortOrder ProductDiscountChangeSortOrderAction
ChangeValue ProductDiscountChangeValueAction
SetDescription ProductDiscountSetDescriptionAction
SetKey ProductDiscountSetKeyAction
SetValidFrom ProductDiscountSetValidFromAction
SetValidFromAndUntil ProductDiscountSetValidFromAndUntilAction
SetValidUntil ProductDiscountSetValidUntilAction
AttributeContainer AttributeContainer
ByIdVariantIdentifier ByIdVariantIdentifier
BySkuVariantIdentifier BySkuVariantIdentifier
Image Image
Price Price
PriceDraft PriceDraft
PriceTier PriceTier
Product Product
ProductCatalogData ProductCatalogData
ProductData ProductData
ProductDraft ProductDraft
ProductProjection ProductProjection
ProductVariant ProductVariant
ProductVariantAvailability ProductVariantAvailability
ProductVariantDraft ProductVariantDraft
ScopedPrice ScopedPrice
Suggestion Suggestion
SuggestionResult SuggestionResult
VariantIdentifier VariantIdentifier
Attribute Attribute
AttributeDefinition AttributeDefinition
AttributeDefinitionDraft AttributeDefinitionDraft
AttributeDraft Attribute
AttributeType AttributeType
AddAsset ProductAddAssetAction
AddExternalImage ProductAddExternalImageAction
AddPrice ProductAddPriceAction
AddToCategory ProductAddToCategoryAction
AddVariant ProductAddVariantAction
ChangeAssetName ProductChangeAssetNameAction
ChangeAssetOrder ProductChangeAssetOrderAction
ChangeMasterVariant ProductChangeMasterVariantAction
ChangeName ProductChangeNameAction
ChangePrice ProductChangePriceAction
ChangeSlug ProductChangeSlugAction
LegacySetSku ProductLegacySetSkuAction
MoveImageToPosition ProductMoveImageToPositionAction
Publish ProductPublishAction
RemoveAsset ProductRemoveAssetAction
RemoveFromCategory ProductRemoveFromCategoryAction
RemoveImage ProductRemoveImageAction
RemovePrice ProductRemovePriceAction
RemoveVariant ProductRemoveVariantAction
RevertStagedChanges ProductRevertStagedChangesAction
RevertStagedVariantChanges ProductRevertStagedVariantChangesAction
SetAssetCustomField ProductSetAssetCustomFieldAction
SetAssetCustomType ProductSetAssetCustomTypeAction
SetAssetDescription ProductSetAssetDescriptionAction
SetAssetKey ProductSetAssetKeyAction
SetAssetSources ProductSetAssetSourcesAction
SetAssetTags ProductSetAssetTagsAction
SetAttribute ProductSetAttributeAction
SetAttributeInAllVariants ProductSetAttributeInAllVariantsAction
SetCategoryOrderHint ProductSetCategoryOrderHintAction
SetDescription ProductSetDescriptionAction
SetDiscountedPrice ProductSetDiscountedPriceAction
SetImageLabel ProductSetImageLabelAction
SetKey ProductSetKeyAction
SetMetaDescription ProductSetMetaDescriptionAction
SetMetaKeywords ProductSetMetaKeywordsAction
SetMetaTitle ProductSetMetaTitleAction
SetPrices ProductSetPricesAction
SetProductPriceCustomField ProductSetProductPriceCustomFieldAction
SetProductPriceCustomType ProductSetProductPriceCustomTypeAction
SetProductVariantKey ProductSetProductVariantKeyAction
SetSearchKeywords ProductSetSearchKeywordsAction
SetSku ProductSetSkuAction
SetTaxCategory ProductSetTaxCategoryAction
TransitionState ProductTransitionStateAction
Unpublish ProductUnpublishAction
AssignedProductReference AssignedProductReference
AssignedProductSelection AssignedProductSelection
ProductSelection ProductSelection
ProductSelectionAssignment ProductSelectionAssignment
ProductSelectionDraft ProductSelectionDraft
AddProduct ProductSelectionAddProductAction
ChangeName ProductSelectionChangeNameAction
RemoveProduct ProductSelectionRemoveProductAction
SetKey ProductSelectionSetKeyAction
AttributeDefinitionContainer AttributeDefinitionContainer
ProductType ProductType
ProductTypeDraft ProductTypeDraft
AddAttributeDefinition ProductTypeAddAttributeDefinitionAction
AddEnumValue ProductTypeAddPlainEnumValueAction
AddLocalizedEnumValue ProductTypeAddLocalizedEnumValueAction
ChangeAttributeConstraint ProductTypeChangeAttributeConstraintAction
ChangeAttributeDefinitionLabel ProductTypeChangeLabelAction
ChangeAttributeName ProductTypeChangeAttributeNameAction
ChangeAttributeOrder removed
ChangeAttributeOrderByName ProductTypeChangeAttributeOrderByNameAction
ChangeDescription ProductTypeChangeDescriptionAction
ChangeEnumKey ProductTypeChangeEnumKeyAction
ChangeEnumValueOrder ProductTypeChangePlainEnumValueOrderAction
ChangeInputHint ProductTypeChangeInputHintAction
ChangeIsSearchable ProductTypeChangeIsSearchableAction
ChangeLocalizedEnumValueLabel ProductTypeChangeLocalizedEnumValueLabelAction
ChangeLocalizedEnumValueOrder ProductTypeChangeLocalizedEnumValueOrderAction
ChangeName ProductTypeChangeNameAction
ChangePlainEnumValueLabel ProductTypeChangePlainEnumValueLabelAction
RemoveAttributeDefinition ProductTypeRemoveAttributeDefinitionAction
RemoveEnumValues ProductTypeRemoveEnumValuesAction
SetInputTip ProductTypeSetInputTipAction
SetKey ProductTypeSetKeyAction
CartClassification CartClassificationType
CartClassificationDraft CartClassificationType
CartScore CartScoreType
CartScoreDraft CartScoreType
CartValue CartValueType
CartValueDraft CartValueType
ExternalOAuth ExternalOAuth
MessagesConfiguration MessagesConfiguration
MessagesConfigurationDraft MessagesConfigurationDraft
Project Project
SearchIndexingConfiguration SearchIndexingConfiguration
SearchIndexingConfigurationValues SearchIndexingConfigurationValues
ShippingRateInputType ShippingRateInputType
ShippingRateInputTypeDraft ShippingRateInputType
ChangeCartsConfiguration ProjectChangeCartsConfigurationAction
ChangeCountries ProjectChangeCountriesAction
ChangeCountryTaxRateFallbackEnabled ProjectChangeCountryTaxRateFallbackEnabledAction
ChangeCurrencies ProjectChangeCurrenciesAction
ChangeLanguages ProjectChangeLanguagesAction
ChangeMessages removed
ChangeMessagesConfiguration ProjectChangeMessagesConfigurationAction
ChangeMessagesEnabled removed
ChangeName ProjectChangeNameAction
ChangeProductSearchIndexingEnabled ProjectChangeProductSearchIndexingEnabledAction
ChangeShoppingListsConfiguration ProjectChangeShoppingListsConfigurationAction
SetExternalOAuth ProjectSetExternalOAuthAction
SetShippingRateInputType ProjectSetShippingRateInputTypeAction
Review Review
ReviewDraft ReviewDraft
ReviewRatingStatistics ReviewRatingStatistics
SetAuthorName ReviewSetAuthorNameAction
SetCustomField ReviewSetCustomFieldAction
SetCustomType ReviewSetCustomTypeAction
SetCustomer ReviewSetCustomerAction
SetKey ReviewSetKeyAction
SetLocale ReviewSetLocaleAction
SetRating ReviewSetRatingAction
SetTarget ReviewSetTargetAction
SetText ReviewSetTextAction
SetTitle ReviewSetTitleAction
TransitionState ReviewTransitionStateAction
CartClassification CartClassificationTier
CartScore CartScoreTier
CartValue CartValueTier
PriceFunction PriceFunction
ShippingMethod ShippingMethod
ShippingMethodDraft ShippingMethodDraft
ShippingRate ShippingRate
ShippingRatePriceTier ShippingRatePriceTier
ZoneRate ZoneRate
ZoneRateDraft ZoneRateDraft
AddShippingRate ShippingMethodAddShippingRateAction
AddZone ShippingMethodAddZoneAction
ChangeIsDefault ShippingMethodChangeIsDefaultAction
ChangeName ShippingMethodChangeNameAction
ChangeTaxCategory ShippingMethodChangeTaxCategoryAction
RemoveShippingRate ShippingMethodRemoveShippingRateAction
RemoveZone ShippingMethodRemoveZoneAction
SetCustomField ShippingMethodSetCustomFieldAction
SetCustomType ShippingMethodSetCustomTypeAction
SetDescription ShippingMethodSetDescriptionAction
SetKey ShippingMethodSetKeyAction
SetLocalizedDescription ShippingMethodSetLocalizedDescriptionAction
SetLocalizedName ShippingMethodSetLocalizedNameAction
SetPredicate ShippingMethodSetPredicateAction
LineItem ShoppingListLineItem
LineItemDraft ShoppingListLineItemDraft
ShoppingList ShoppingList
ShoppingListDraft ShoppingListDraft
TextLineItem TextLineItem
TextLineItemDraft TextLineItemDraft
AddLineItem ShoppingListAddLineItemAction
AddTextLineItem ShoppingListAddTextLineItemAction
ChangeLineItemQuantity ShoppingListChangeLineItemQuantityAction
ChangeLineItemsOrder ShoppingListChangeLineItemsOrderAction
ChangeName ShoppingListChangeNameAction
ChangeTextLineItemName ShoppingListChangeTextLineItemNameAction
ChangeTextLineItemQuantity ShoppingListChangeTextLineItemQuantityAction
ChangeTextLineItemsOrder ShoppingListChangeTextLineItemsOrderAction
RemoveLineItem ShoppingListRemoveLineItemAction
RemoveTextLineItem ShoppingListRemoveTextLineItemAction
SetAnonymousId ShoppingListSetAnonymousIdAction
SetCustomField ShoppingListSetCustomFieldAction
SetCustomType ShoppingListSetCustomTypeAction
SetCustomer ShoppingListSetCustomerAction
SetDeleteDaysAfterLastModification ShoppingListSetDeleteDaysAfterLastModificationAction
SetDescription ShoppingListSetDescriptionAction
SetKey ShoppingListSetKeyAction
SetLineItemCustomField ShoppingListSetLineItemCustomFieldAction
SetLineItemCustomType ShoppingListSetLineItemCustomTypeAction
SetSlug ShoppingListSetSlugAction
SetStore ShoppingListSetStoreAction
SetTextLineItemCustomField ShoppingListSetTextLineItemCustomFieldAction
SetTextLineItemCustomType ShoppingListSetTextLineItemCustomTypeAction
SetTextLineItemDescription ShoppingListSetTextLineItemDescriptionAction
State State
StateDraft StateDraft
AddRoles StateAddRolesAction
ChangeInitial StateChangeInitialAction
ChangeKey StateChangeKeyAction
ChangeType StateChangeTypeAction
RemoveRoles StateRemoveRolesAction
SetDescription StateSetDescriptionAction
SetName StateSetNameAction
SetRoles StateSetRolesAction
SetTransitions StateSetTransitionsAction
ProductSelectionSetting ProductSelectionSetting
ProductSelectionSettingDraft ProductSelectionSettingDraft
Store Store
StoreDraft StoreDraft
AddDistributionChannel StoreAddDistributionChannelAction
AddProductSelection StoreAddProductSelectionAction
AddSupplyChannel StoreAddSupplyChannelAction
ChangeProductSelection StoreChangeProductSelectionAction
RemoveDistributionChannel StoreRemoveDistributionChannelAction
RemoveProductSelection StoreRemoveProductSelectionAction
RemoveSupplyChannel StoreRemoveSupplyChannelAction
SetCustomField StoreSetCustomFieldAction
SetCustomType StoreSetCustomTypeAction
SetDistributionChannels StoreSetDistributionChannelsAction
SetLanguages StoreSetLanguagesAction
SetName StoreSetNameAction
SetProductSelections StoreSetProductSelectionsAction
SetSupplyChannels StoreSetSupplyChannelsAction
AzureServiceBusDestination AzureServiceBusDestination
ChangeSubscription ChangeSubscription
Destination Destination
MessageSubscription MessageSubscription
MessageSubscriptionPayload MessageDeliveryPayload
Payload DeliveryPayload
PayloadNotIncluded PayloadNotIncluded
PubSubDestination GoogleCloudPubSubDestination
ResourceCreatedPayload ResourceCreatedDeliveryPayload
ResourceDeletedPayload ResourceDeletedDeliveryPayload
ResourceUpdatedPayload ResourceUpdatedDeliveryPayload
SnsDestination SnsDestination
SqsDestination SqsDestination
Subscription Subscription
SubscriptionDraft SubscriptionDraft
ChangeDestination SubscriptionChangeDestinationAction
SetChanges SubscriptionSetChangesAction
SetKey SubscriptionSetKeyAction
SetMessages SubscriptionSetMessagesAction
ExternalTaxRateDraft ExternalTaxRateDraft
SubRate SubRate
TaxCategory TaxCategory
TaxCategoryDraft TaxCategoryDraft
TaxRate TaxRate
TaxRateDraft TaxRateDraft
AddTaxRate TaxCategoryAddTaxRateAction
ChangeName TaxCategoryChangeNameAction
RemoveTaxRate TaxCategoryRemoveTaxRateAction
ReplaceTaxRate TaxCategoryReplaceTaxRateAction
SetDescription TaxCategorySetDescriptionAction
SetKey TaxCategorySetKeyAction
Custom Customizable
CustomDraft CustomizableDraft
CustomFields CustomFields
CustomFieldsDraft CustomFieldsDraft
FieldDefinition FieldDefinition
FieldType FieldType
Type Type
TypeDraft TypeDraft
AddEnumValue TypeAddEnumValueAction
AddFieldDefinition TypeAddFieldDefinitionAction
AddLocalizedEnumValue TypeAddLocalizedEnumValueAction
ChangeEnumValueLabel TypeChangeEnumValueLabelAction
ChangeEnumValueOrder TypeChangeEnumValueOrderAction
ChangeFieldDefinitionLabel TypeChangeLabelAction
ChangeFieldDefinitionOrder TypeChangeFieldDefinitionOrderAction
ChangeInputHint TypeChangeInputHintAction
ChangeKey TypeChangeKeyAction
ChangeLocalizedEnumValueLabel TypeChangeLocalizedEnumValueLabelAction
ChangeLocalizedEnumValueOrder TypeChangeLocalizedEnumValueOrderAction
ChangeName TypeChangeNameAction
RemoveFieldDefinition TypeRemoveFieldDefinitionAction
SetDescription TypeSetDescriptionAction
Location Location
Zone Zone
ZoneDraft ZoneDraft
AddLocation ZoneAddLocationAction
ChangeName ZoneChangeNameAction
RemoveLocation ZoneRemoveLocationAction
SetDescription ZoneSetDescriptionAction
SetKey ZoneSetKeyAction

Classes with no representation in the v2 SDK

v1
CartDiscountPredicate
CartPredicate
LineItemLike
SetDeliveryAddressCustomField
SetDeliveryAddressCustomType
AvailabilityInfo
GenericMessage
SimpleOrderMessage
ProductDiscountPredicate
AttributeContainerDraft
PriceLike
ProductIdentifiable
ProductLike
AttributeAccess
AttributeImportDraft
AttributeMapper
NamedAttributeAccess
ProductAttributeConverter
MetaAttributesUpdateActions
SimpleProductMessage
MetaProductType
ProductTypeLocalRepository
IronMqDestination

Mapping of commands from SDK v1 to v2

v1v2
ApiClientCreateCommand
ApiClientDraft draft = ApiClientDraft.builder().build();
projectApiRoot.apiClients().post(draft);

See the test code.

CartDiscountCreateCommand
CartDiscountDraft draft = CartDiscountDraft.builder().build();
projectApiRoot.cartDiscounts().post(draft);

See the test code.

CartCreateCommand
CartDraft draft = CartDraft.builder().build();
projectApiRoot.carts().post(draft);

See the test code.

CartInStoreCreateCommand
CartDraft draft = CartDraft.builder().build();
projectApiRoot.inStore(storeKey).carts().post(draft);

See the test code.

CategoryCreateCommand
CategoryDraft draft = CategoryDraft.builder().build();
projectApiRoot.categories().post(draft);

See the test code.

ChannelCreateCommand
ChannelDraft draft = ChannelDraft.builder().build();
projectApiRoot.channels().post(draft);

See the test code.

CustomerGroupCreateCommand
CustomerGroupDraft draft = CustomerGroupDraft.builder().build();
projectApiRoot.customerGroups().post(draft);

See the test code.

CustomerCreateCommand
CustomerDraft draft = CustomerDraft.builder().build();
projectApiRoot.customers().post(draft);

See the test code.

CustomerInStoreCreateCommand
CustomerDraft draft = CustomerDraft.builder().build();
projectApiRoot.inStore(storeKey).customers().post(draft);

See the test code.

DiscountCodeCreateCommand
DiscountCodeDraft draft = DiscountCodeDraft.builder().build();
projectApiRoot.discountCodes().post(draft);

See the test code.

ExtensionCreateCommand
ExtensionDraft draft = ExtensionDraft.builder().build();
projectApiRoot.extensions().post(draft);

See the test code.

InventoryEntryCreateCommand
InventoryEntryDraft draft = InventoryEntryDraft.builder().build();
projectApiRoot.inventory().post(draft);

See the test code.

OrderEditCreateCommand
OrderEditDraft draft = OrderEditDraft.builder().build();
projectApiRoot.orders().edits().post(draft);

See the test code.

OrderFromCartCreateCommand
OrderFromCartDraft draft = OrderFromCartDraft.builder().build();
projectApiRoot.orders().post(draft);

See the test code.

OrderFromCartInStoreCreateCommand
OrderFromCartDraft draft = OrderFromCartDraft.builder().build();
projectApiRoot.inStore(storeKey).orders().post(draft);

See the test code.

PaymentCreateCommand
PaymentDraft draft = PaymentDraft.builder().build();
projectApiRoot.payments().post(draft);

See the test code.

ProductDiscountCreateCommand
ProductDiscountDraft draft = ProductDiscountDraft.builder().build();
projectApiRoot.productDiscounts().post(draft);

See the test code.

ProductCreateCommand
ProductDraft draft = ProductDraft.builder().build();
projectApiRoot.products().post(draft);

See the test code.

ProductSelectionCreateCommand
ProductSelectionDraft draft = ProductSelectionDraft.builder().build();
projectApiRoot.productSelections().post(draft);

See the test code.

ProductTypeCreateCommand
ProductTypeDraft draft = ProductTypeDraft.builder().build();
projectApiRoot.productTypes().post(draft);

See the test code.

ReviewCreateCommand
ReviewDraft draft = ReviewDraft.builder().build();
projectApiRoot.reviews().post(draft);

See the test code.

ShippingMethodCreateCommand
ShippingMethodDraft draft = ShippingMethodDraft.builder().build();
projectApiRoot.shippingMethods().post(draft);

See the test code.

ShoppingListCreateCommand
ShoppingListDraft draft = ShoppingListDraft.builder().build();
projectApiRoot.shoppingLists().post(draft);

See the test code.

ShoppingListInStoreCreateCommand
ShoppingListDraft draft = ShoppingListDraft.builder().build();
projectApiRoot.inStore(storeKey).shoppingLists().post(draft);

See the test code.

StateCreateCommand
StateDraft draft = StateDraft.builder().build();
projectApiRoot.states().post(draft);

See the test code.

StoreCreateCommand
StoreDraft draft = StoreDraft.builder().build();
projectApiRoot.stores().post(draft);

See the test code.

SubscriptionCreateCommand
SubscriptionDraft draft = SubscriptionDraft.builder().build();
projectApiRoot.subscriptions().post(draft);

See the test code.

TaxCategoryCreateCommand
TaxCategoryDraft draft = TaxCategoryDraft.builder().build();
projectApiRoot.taxCategories().post(draft);

See the test code.

TypeCreateCommand
TypeDraft draft = TypeDraft.builder().build();
projectApiRoot.types().post(draft);

See the test code.

ZoneCreateCommand
ZoneDraft draft = ZoneDraft.builder().build();
projectApiRoot.zones().post(draft);

See the test code.

CartDiscountUpdateCommand
CartDiscount resource = CartDiscount.of();
projectApiRoot.cartDiscounts()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.cartDiscounts().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

CartInStoreUpdateCommand
Cart resource = Cart.of();
projectApiRoot.inStore(storeKey)
        .carts()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.inStore(storeKey).carts().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

CartUpdateCommand
Cart resource = Cart.of();
projectApiRoot.carts()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.carts().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

CategoryUpdateCommand
Category resource = Category.of();
projectApiRoot.categories()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.categories().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ChannelUpdateCommand
Channel resource = Channel.of();
projectApiRoot.channels()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.channels().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

CustomerGroupUpdateCommand
CustomerGroup resource = CustomerGroup.of();
projectApiRoot.customerGroups()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.customerGroups().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

CustomerInStoreUpdateCommand
Customer resource = Customer.of();
projectApiRoot.inStore(storeKey)
        .customers()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.inStore(storeKey).customers().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

CustomerUpdateCommand
Customer resource = Customer.of();
projectApiRoot.customers()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.customers().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

DiscountCodeUpdateCommand
DiscountCode resource = DiscountCode.of();
projectApiRoot.discountCodes()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.discountCodes().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ExtensionUpdateCommand
Extension resource = Extension.of();
projectApiRoot.extensions()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.extensions().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

InventoryEntryUpdateCommand
InventoryEntry resource = InventoryEntry.of();
projectApiRoot.inventory()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.inventory().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

OrderEditUpdateCommand
OrderEdit resource = OrderEdit.of();
projectApiRoot.orders()
        .edits()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
//        projectApiRoot.orders().edits().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

OrderInStoreUpdateByIdCommand
Order resource = Order.of();
projectApiRoot.inStore(storeKey)
        .orders()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.inStore(storeKey).orders().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

OrderInStoreUpdateByOrderNumberCommand
Order resource = Order.of();
projectApiRoot.inStore(storeKey)
        .orders()
        .withOrderNumber(resource.getOrderNumber())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));

See the test code.

OrderUpdateCommand
Order resource = Order.of();
projectApiRoot.orders().withId(id).post(updateBuilder -> updateBuilder.version(version));
projectApiRoot.orders().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

PaymentUpdateCommand
Payment resource = Payment.of();
projectApiRoot.payments()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.payments().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ProductDiscountUpdateCommand
ProductDiscount resource = ProductDiscount.of();
projectApiRoot.productDiscounts()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.productDiscounts().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ProductUpdateCommand
Product resource = Product.of();
projectApiRoot.products()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.products().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ProductSelectionUpdateCommand
ProductSelection resource = ProductSelection.of();
projectApiRoot.productSelections()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.productSelections().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ProductTypeUpdateCommand
ProductType resource = ProductType.of();
projectApiRoot.productTypes()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.productTypes().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ReviewUpdateCommand
Review resource = Review.of();
projectApiRoot.reviews()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.reviews().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ShippingMethodUpdateCommand
ShippingMethod resource = ShippingMethod.of();
projectApiRoot.shippingMethods()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.shippingMethods().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ShoppingListInStoreUpdateCommand
ShoppingList resource = ShoppingList.of();
projectApiRoot.inStore(storeKey)
        .shoppingLists()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.inStore(storeKey).shoppingLists().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ShoppingListUpdateCommand
ShoppingList resource = ShoppingList.of();
projectApiRoot.shoppingLists()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.shoppingLists().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

StateUpdateCommand
State resource = State.of();
projectApiRoot.states()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.states().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

StoreUpdateCommand
Store resource = Store.of();
projectApiRoot.stores()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.stores().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

SubscriptionUpdateCommand
Subscription resource = Subscription.of();
projectApiRoot.subscriptions()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.subscriptions().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

TaxCategoryUpdateCommand
TaxCategory resource = TaxCategory.of();
projectApiRoot.taxCategories()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.taxCategories().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

TypeUpdateCommand
Type resource = Type.of();
projectApiRoot.types()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.types().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ZoneUpdateCommand
Zone resource = Zone.of();
projectApiRoot.zones()
        .withId(resource.getId())
        .post(updateBuilder -> updateBuilder.version(resource.getVersion()));
projectApiRoot.zones().update(resource).with(actionsBuilder -> actionsBuilder);

See the test code.

ApiClientDeleteCommand
ApiClient resource = ApiClient.of();
projectApiRoot.apiClients().withId(resource.getId()).delete();
projectApiRoot.apiClients().delete(resource);

See the test code.

CartDiscountDeleteCommand
CartDiscount resource = CartDiscount.of();
projectApiRoot.cartDiscounts().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.cartDiscounts().delete(resource);

See the test code.

CartDeleteCommand
Cart resource = Cart.of();
projectApiRoot.carts().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.carts().delete(resource);

See the test code.

CartInStoreDeleteCommand
Cart resource = Cart.of();
projectApiRoot.inStore(storeKey).carts().withId(resource.getId()).delete().withVersion(resource.getVersion());
//        projectApiRoot.inStore(storeKey).carts().delete(resource);

See the test code.

CategoryDeleteCommand
Category resource = Category.of();
projectApiRoot.categories().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.categories().delete(resource);

See the test code.

ChannelDeleteCommand
Channel resource = Channel.of();
projectApiRoot.channels().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.channels().delete(resource);

See the test code.

CustomerGroupDeleteCommand
CustomerGroup resource = CustomerGroup.of();
projectApiRoot.customerGroups().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.customerGroups().delete(resource);

See the test code.

CustomerDeleteCommand
Customer resource = Customer.of();
projectApiRoot.customers().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.customers().delete(resource);

See the test code.

CustomerInStoreDeleteCommand
Customer resource = Customer.of();
projectApiRoot.inStore(storeKey).carts().withId(resource.getId()).delete().withVersion(resource.getVersion());
//        projectApiRoot.inStore(storeKey).carts().delete(resource);

See the test code.

CustomObjectDeleteCommand
CustomObject resource = CustomObject.of();
projectApiRoot.customObjects()
        .withContainerAndKey(resource.getContainer(), resource.getKey())
        .delete()
        .withVersion(resource.getVersion());
//        projectApiRoot.customObjects().delete(resource);

See the test code.

DiscountCodeDeleteCommand
DiscountCode resource = DiscountCode.of();
projectApiRoot.discountCodes().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.discountCodes().delete(resource);

See the test code.

ExtensionDeleteCommand
Extension resource = Extension.of();
projectApiRoot.extensions().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.extensions().delete(resource);

See the test code.

InventoryEntryDeleteCommand
InventoryEntry resource = InventoryEntry.of();
projectApiRoot.inventory().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.inventory().delete(resource);

See the test code.

OrderEditDeleteCommand
OrderEdit resource = OrderEdit.of();
projectApiRoot.orders().edits().withId(resource.getId()).delete().withVersion(resource.getVersion());
//        projectApiRoot.orders().edits().delete(resource);

See the test code.

OrderDeleteCommand
Order resource = Order.of();
projectApiRoot.orders().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.orders().delete(resource);

See the test code.

OrderInStoreDeleteByIdCommand
Order resource = Order.of();
projectApiRoot.inStore(storeKey).orders().withId(resource.getId()).delete().withVersion(resource.getVersion());
//        projectApiRoot.inStore(storeKey).orders().delete(resource);

See the test code.

OrderInStoreDeleteByOrderNumberCommand
Order resource = Order.of();
projectApiRoot.inStore(storeKey)
        .orders()
        .withOrderNumber(resource.getOrderNumber())
        .delete()
        .withVersion(resource.getVersion());

See the test code.

PaymentDeleteCommand
Payment resource = Payment.of();
projectApiRoot.payments().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.payments().delete(resource);

See the test code.

ProductDiscountDeleteCommand
ProductDiscount resource = ProductDiscount.of();
projectApiRoot.productDiscounts().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.productDiscounts().delete(resource);

See the test code.

ProductDeleteCommand
Product resource = Product.of();
projectApiRoot.products().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.products().delete(resource);

See the test code.

ProductSelectionDeleteCommand
ProductSelection resource = ProductSelection.of();
projectApiRoot.productSelections().withId(resource.getId()).delete().withVersion(resource.getVersion());
//        projectApiRoot.productSelections().delete(resource);

See the test code.

ProductTypeDeleteCommand
ProductType resource = ProductType.of();
projectApiRoot.productTypes().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.productTypes().delete(resource);

See the test code.

ReviewDeleteCommand
Review resource = Review.of();
projectApiRoot.reviews().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.reviews().delete(resource);

See the test code.

ShippingMethodDeleteCommand
ShippingMethod resource = ShippingMethod.of();
projectApiRoot.shippingMethods().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.shippingMethods().delete(resource);

See the test code.

ShoppingListDeleteCommand
ShoppingList resource = ShoppingList.of();
projectApiRoot.shoppingLists().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.shoppingLists().delete(resource);

See the test code.

ShoppingListInStoreDeleteCommand
ShoppingList resource = ShoppingList.of();
projectApiRoot.inStore(storeKey)
        .shoppingLists()
        .withId(resource.getId())
        .delete()
        .withVersion(resource.getVersion());
//        projectApiRoot.inStore(storeKey).shoppingLists().delete(resource);

See the test code.

StateDeleteCommand
State resource = State.of();
projectApiRoot.states().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.states().delete(resource);

See the test code.

StoreDeleteCommand
Store resource = Store.of();
projectApiRoot.stores().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.stores().delete(resource);

See the test code.

SubscriptionDeleteCommand
Subscription resource = Subscription.of();
projectApiRoot.subscriptions().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.subscriptions().delete(resource);

See the test code.

TaxCategoryDeleteCommand
TaxCategory resource = TaxCategory.of();
projectApiRoot.taxCategories().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.taxCategories().delete(resource);

See the test code.

TypeDeleteCommand
Type resource = Type.of();
projectApiRoot.types().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.types().delete(resource);

See the test code.

ZoneDeleteCommand
Zone resource = Zone.of();
projectApiRoot.zones().withId(resource.getId()).delete().withVersion(resource.getVersion());
projectApiRoot.zones().delete(resource);

See the test code.

Package name changes

Please be aware this list shows to which package a class may have been moved based on the source package
v1v2
io.sphere.sdk.apiclient com.commercetools.api.models.api_client
io.sphere.sdk.cartdiscounts com.commercetools.api.models.cart_discount, com.commercetools.api.models.cart
io.sphere.sdk.cartdiscounts.commands.updateactions com.commercetools.api.models.cart_discount
io.sphere.sdk.carts com.commercetools.api.models.cart, com.commercetools.api.models.order, com.commercetools.api.models.project
io.sphere.sdk.carts.commands.updateactions com.commercetools.api.models.cart
io.sphere.sdk.categories com.commercetools.api.models.category
io.sphere.sdk.categories.commands.updateactions com.commercetools.api.models.category
io.sphere.sdk.channels com.commercetools.api.models.channel
io.sphere.sdk.channels.commands.updateactions com.commercetools.api.models.channel
io.sphere.sdk.customergroups com.commercetools.api.models.customer_group
io.sphere.sdk.customergroups.commands.updateactions com.commercetools.api.models.customer_group
io.sphere.sdk.customers com.commercetools.api.models.customer
io.sphere.sdk.customers.commands.updateactions com.commercetools.api.models.customer
io.sphere.sdk.customobjects com.commercetools.api.models.custom_object
io.sphere.sdk.discountcodes com.commercetools.api.models.discount_code, com.commercetools.api.models.cart
io.sphere.sdk.discountcodes.commands.updateactions com.commercetools.api.models.discount_code
io.sphere.sdk.extensions com.commercetools.api.models.extension
io.sphere.sdk.extensions.commands.updateactions com.commercetools.api.models.extension
io.sphere.sdk.inventory com.commercetools.api.models.inventory
io.sphere.sdk.inventory.commands.updateactions com.commercetools.api.models.inventory
io.sphere.sdk.messages com.commercetools.api.models.message
io.sphere.sdk.models com.commercetools.api.models.common, com.commercetools.api.models.message
io.sphere.sdk.orderedits com.commercetools.api.models.order_edit
io.sphere.sdk.orderedits.commands.updateactions com.commercetools.api.models.order_edit
io.sphere.sdk.orders com.commercetools.api.models.order, com.commercetools.api.models.cart
io.sphere.sdk.orders.commands.updateactions com.commercetools.api.models.order
io.sphere.sdk.orders.messages com.commercetools.api.models.message
io.sphere.sdk.payments com.commercetools.api.models.payment
io.sphere.sdk.payments.commands.updateactions com.commercetools.api.models.payment
io.sphere.sdk.productdiscounts com.commercetools.api.models.common, com.commercetools.api.models.product_discount
io.sphere.sdk.productdiscounts.commands.updateactions com.commercetools.api.models.product_discount
io.sphere.sdk.products com.commercetools.api.models.product, com.commercetools.api.models.common
io.sphere.sdk.products.attributes com.commercetools.api.models.product, com.commercetools.api.models.product_type
io.sphere.sdk.products.commands.updateactions com.commercetools.api.models.product
io.sphere.sdk.productselections com.commercetools.api.models.product_selection
io.sphere.sdk.productselections.commands.updateactions com.commercetools.api.models.product_selection
io.sphere.sdk.producttypes com.commercetools.api.models.product_type
io.sphere.sdk.producttypes.commands.updateactions com.commercetools.api.models.product_type
io.sphere.sdk.projects com.commercetools.api.models.project, com.commercetools.api.models.message
io.sphere.sdk.projects.commands.updateactions com.commercetools.api.models.project
io.sphere.sdk.reviews com.commercetools.api.models.review
io.sphere.sdk.reviews.commands.updateactions com.commercetools.api.models.review
io.sphere.sdk.shippingmethods com.commercetools.api.models.shipping_method
io.sphere.sdk.shippingmethods.commands.updateactions com.commercetools.api.models.shipping_method
io.sphere.sdk.shoppinglists com.commercetools.api.models.shopping_list
io.sphere.sdk.shoppinglists.commands.updateactions com.commercetools.api.models.shopping_list
io.sphere.sdk.states com.commercetools.api.models.state
io.sphere.sdk.states.commands.updateactions com.commercetools.api.models.state
io.sphere.sdk.stores com.commercetools.api.models.store
io.sphere.sdk.stores.commands.updateactions com.commercetools.api.models.store
io.sphere.sdk.subscriptions com.commercetools.api.models.subscription
io.sphere.sdk.subscriptions.commands.updateactions com.commercetools.api.models.subscription
io.sphere.sdk.taxcategories com.commercetools.api.models.cart, com.commercetools.api.models.tax_category
io.sphere.sdk.taxcategories.commands.updateactions com.commercetools.api.models.tax_category
io.sphere.sdk.types com.commercetools.api.models, com.commercetools.api.models.type
io.sphere.sdk.types.commands.updateactions com.commercetools.api.models.type
io.sphere.sdk.zones com.commercetools.api.models.zone
io.sphere.sdk.zones.commands.updateactions com.commercetools.api.models.zone
  • Constructor Details

    • MigrationModelClassMapping

      public MigrationModelClassMapping()