diff --git a/changes.md b/changes.md
index 8247f6c6f18..92a11e9dc49 100644
--- a/changes.md
+++ b/changes.md
@@ -3,23 +3,772 @@
Added Type(s)
+- added type `CartMergeMode`
+- added type `MergeCartDraft`
+- added type `RecurringOrderFailureError`
+- added type `GraphQLRecurringOrderFailureError`
+- added type `CartFrozenMessage`
+- added type `CartUnfrozenMessage`
+- added type `OrderPaymentRemovedMessage`
+- added type `RecurringOrderFailedMessage`
+- added type `CartFrozenMessagePayload`
+- added type `CartUnfrozenMessagePayload`
+- added type `OrderPaymentRemovedMessagePayload`
+- added type `RecurringOrderFailedMessagePayload`
- added type `DiscountCombinationMode`
- added type `DiscountsConfiguration`
- added type `ProjectSetDiscountsConfigurationAction`
Added Method(s)
+
+- added method `apiRoot.withProjectKey().carts().customerIdWithCustomerIdValueMerge().post()`
+- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().customerIdWithCustomerIdValueMerge().post()`
+Removed Property(s)
+- :warning: removed property `payment` from type `OrderPaymentAddedMessage`
+- :warning: removed property `payment` from type `OrderPaymentAddedMessagePayload`
- :warning: removed property `skipConfiguration` from type `RecurringOrderSetOrderSkipConfigurationAction`
+- :warning: removed property `tierMinimumQuantity` from type `StandalonePriceRemovePriceTierAction`
Added Property(s)
+- added property `sku` to type `InventoryEntryQuantitySetMessage`
+- added property `paymentRef` to type `OrderPaymentAddedMessage`
+- added property `sku` to type `InventoryEntryQuantitySetMessagePayload`
+- added property `paymentRef` to type `OrderPaymentAddedMessagePayload`
- added property `discounts` to type `Project`
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
+- added property `minimumQuantity` to type `StandalonePriceRemovePriceTierAction`
+Added Resource(s)
+
+- added resource `/{projectKey}/carts/customer-id={customerId}/merge`
+- added resource `/{projectKey}/in-store/key={storeKey}/carts/customer-id={customerId}/merge`
+Added Type(s)
+
+- added type `AddShippingChange`
+- added type `ChangeApprovalRuleModeChange`
+- added type `ChangeCustomerChange`
+- added type `ChangeIncludedInStatisticsChange`
+- added type `ChangeLastVariantIdChange`
+- added type `ChangeLineItemNameChange`
+- added type `ChangeLineItemPublishedChange`
+- added type `ExcludeProductChange`
+- added type `RemoveShippingChange`
+- added type `ReplaceTaxRateChange`
+- added type `RevertStagedChangesChange`
+- added type `RevertStagedVariantChangesChange`
+- added type `SetAncestorsChange`
+- added type `SetBillingAddressCustomFieldChange`
+- added type `SetBillingAddressCustomTypeChange`
+- added type `SetBusinessUnitChange`
+- added type `SetCustomLineItemDiscountedPriceChange`
+- added type `SetCustomLineItemDiscountedPricePerQuantityChange`
+- added type `SetCustomerGroupAssignmentsChange`
+- added type `SetDeliveryAddressCustomFieldChange`
+- added type `SetDeliveryAddressCustomTypeChange`
+- added type `SetDeliveryCustomFieldChange`
+- added type `SetDeliveryCustomTypeChange`
+- added type `SetDiscountOnTotalPriceChange`
+- added type `SetInheritedStoresChange`
+- added type `SetItemShippingAddressCustomFieldChange`
+- added type `SetItemShippingAddressCustomTypeChange`
+- added type `SetMaxCartQuantityChange`
+- added type `SetMinCartQuantityChange`
+- added type `SetParcelCustomFieldChange`
+- added type `SetParcelCustomTypeChange`
+- added type `SetPasswordChange`
+- added type `SetPriceKeyChange`
+- added type `SetPriceModeChange`
+- added type `SetProductAttributeChange`
+- added type `SetReturnInfoChange`
+- added type `SetReturnItemCustomLineItemCustomFieldChange`
+- added type `SetReturnItemCustomLineItemCustomTypeChange`
+- added type `SetReturnItemLineItemCustomFieldChange`
+- added type `SetReturnItemLineItemCustomTypeChange`
+- added type `SetShippingAddressCustomFieldChange`
+- added type `SetShippingAddressCustomTypeChange`
+- added type `SetShippingCustomFieldChange`
+- added type `SetShippingCustomTypeChange`
+- added type `SetTransactionCustomFieldChange`
+- added type `SetTransactionCustomTypeChange`
+- added type `SetUnitTypeChange`
+- added type `SetVariantExclusionChange`
+- added type `UpdateItemShippingAddressChange`
+- added type `SetAssociatesChange`
+- added type `SetInheritedAssociatesChange`
+- added type `ChangeTopLevelUnitChange`
+- added type `Attribute`
+- added type `BusinessUnitApprovalRuleMode`
+- added type `BusinessUnitResourceIdentifier`
+- added type `BusinessUnitType`
+- added type `CustomFieldEnumValue`
+- added type `CustomFieldLocalizedEnumValue`
+- added type `CustomerGroupAssignment`
+- added type `DiscountOnTotalPrice`
+- added type `DiscountedTotalPricePortion`
+- added type `ProductPriceModeEnum`
+- added type `ProductVariantExclusion`
+- added type `Shipping`
+- added type `ShippingInfo`
+- added type `ShippingRateInput`
+- added type `ShoppingListLineItem`
+- added type `TypeTextInputHint`
+- added type `TypedMoney`
+- added type `CentPrecisionMoney`
+- added type `DiscountedPrice`
+- added type `ShippingMethodState`
+- added type `AssociateRoleDeprecated`
+- added type `AssociateRoleKeyReference`
+- added type `AttributeLevelEnum`
+- added type `BaseAddress`
+- added type `BusinessUnitKeyReference`
+- added type `CartDiscountReference`
+- added type `CartDiscountTarget`
+- added type `CartDiscountValue`
+- added type `CategoryReference`
+- added type `ChannelReference`
+- added type `CustomFieldValue`
+- added type `CustomLineItemPriceMode`
+- added type `CustomLineItemRecurrenceInfo`
+- added type `CustomerGroupReference`
+- added type `CustomerReference`
+- added type `DiscountCodeReference`
+- added type `FieldContainer`
+- added type `GeoJson`
+- added type `InventoryMode`
+- added type `LineItemMode`
+- added type `LineItemPriceMode`
+- added type `LineItemRecurrenceInfo`
+- added type `MethodTaxRate`
+- added type `MethodTaxedPrice`
+- added type `PaymentReference`
+- added type `PriceSelectionMode`
+- added type `PriceTier`
+- added type `ProductDiscountReference`
+- added type `ProductDiscountValue`
+- added type `ProductReference`
+- added type `ProductSelectionReference`
+- added type `ProductTypeReference`
+- added type `ProductVariant`
+- added type `RecurrencePolicyReference`
+- added type `ResourceTypeId`
+- added type `ScopedPrice`
+- added type `ShippingMethodReference`
+- added type `StateReference`
+- added type `StoreKeyReference`
+- added type `TaxCategoryReference`
+- added type `TaxPortion`
+- added type `TypeReference`
+- added type `ClientLogging`
+- added type `ChangePriceRoundingModeChange`
+Changed Type(s)
+
+- :warning: changed type `Address` from type `object` to `BaseAddress`
+- :warning: changed type `GeoLocation` from type `object` to `GeoJson`
+MarkDeprecated Type(s)
+
+- marked type `AddAssociateChange` as deprecated
+- marked type `AddPriceChange` as deprecated
+- marked type `AddProductSelectionChange` as deprecated
+- marked type `AddStateRolesChange` as deprecated
+- marked type `ChangeAmountAuthorizedChange` as deprecated
+- marked type `RemoveAssociateChange` as deprecated
+- marked type `RemovePriceChange` as deprecated
+- marked type `RemoveProductSelectionChange` as deprecated
+- marked type `RemoveStateRolesChange` as deprecated
+Added Enum(s)
+
+- added enum `addInheritedAssociate` to type `PlatformInitiatedChange`
+- added enum `changeIncludedInStatistics` to type `PlatformInitiatedChange`
+- added enum `changeInheritedAssociate` to type `PlatformInitiatedChange`
+- added enum `changeLastVariantId` to type `PlatformInitiatedChange`
+- added enum `changeLineItemPublished` to type `PlatformInitiatedChange`
+- added enum `changeTopLevelUnit` to type `PlatformInitiatedChange`
+- added enum `removeInheritedAssociate` to type `PlatformInitiatedChange`
+- added enum `setAncestors` to type `PlatformInitiatedChange`
+- added enum `setInheritedAssociates` to type `PlatformInitiatedChange`
+- added enum `setInheritedStores` to type `PlatformInitiatedChange`
+- added enum `setLineItemDeactivatedAt` to type `PlatformInitiatedChange`
+- added enum `setProductCount` to type `PlatformInitiatedChange`
+- added enum `setReservations` to type `PlatformInitiatedChange`
+- added enum `CreateApprovalRules` to type `Permission`
+- added enum `UpdateApprovalRules` to type `Permission`
+- added enum `UpdateApprovalFlows` to type `Permission`
+- added enum `ViewMyShoppingLists` to type `Permission`
+- added enum `ViewOthersShoppingLists` to type `Permission`
+- added enum `UpdateMyShoppingLists` to type `Permission`
+- added enum `UpdateOthersShoppingLists` to type `Permission`
+- added enum `CreateMyShoppingLists` to type `Permission`
+- added enum `CreateOthersShoppingLists` to type `Permission`
+- added enum `DeleteMyShoppingLists` to type `Permission`
+- added enum `DeleteOthersShoppingLists` to type `Permission`
+- added enum `includeOnly` to type `ProductVariantSelectionTypeEnum`
+- added enum `includeAllExcept` to type `ProductVariantSelectionTypeEnum`
+- added enum `RenegotiationAddressed` to type `QuoteState`
+- added enum `approval-flow` to type `ReferenceTypeId`
+- added enum `approval-rule` to type `ReferenceTypeId`
+- added enum `attribute-group` to type `ReferenceTypeId`
+- added enum `direct-discount` to type `ReferenceTypeId`
+- added enum `discount-group` to type `ReferenceTypeId`
+- added enum `product-price` to type `ReferenceTypeId`
+- added enum `product-tailoring` to type `ReferenceTypeId`
+- added enum `recurrence-policy` to type `ReferenceTypeId`
+- added enum `recurring-order` to type `ReferenceTypeId`
+- added enum `standalone-price` to type `ReferenceTypeId`
+- added enum `Delivered` to type `ShipmentState`
+- added enum `Canceled` to type `ShipmentState`
+Removed Enum(s)
+
+- :warning: removed enum `changeAmountAuthorized` from type `UpdateType`
+- :warning: removed enum `Failed` from type `QuoteState`
+Required Property(s)
+
+- changed property `id` of type `Address` to be optional
+- changed property `key` of type `Address` to be optional
+- changed property `title` of type `Address` to be optional
+- changed property `salutation` of type `Address` to be optional
+- changed property `firstName` of type `Address` to be optional
+- changed property `lastName` of type `Address` to be optional
+- changed property `streetName` of type `Address` to be optional
+- changed property `streetNumber` of type `Address` to be optional
+- changed property `additionalStreetInfo` of type `Address` to be optional
+- changed property `postalCode` of type `Address` to be optional
+- changed property `city` of type `Address` to be optional
+- changed property `region` of type `Address` to be optional
+- changed property `state` of type `Address` to be optional
+- changed property `company` of type `Address` to be optional
+- changed property `department` of type `Address` to be optional
+- changed property `building` of type `Address` to be optional
+- changed property `apartment` of type `Address` to be optional
+- changed property `pOBox` of type `Address` to be optional
+- changed property `phone` of type `Address` to be optional
+- changed property `mobile` of type `Address` to be optional
+- changed property `email` of type `Address` to be optional
+- changed property `fax` of type `Address` to be optional
+- changed property `additionalAddressInfo` of type `Address` to be optional
+- changed property `externalId` of type `Address` to be optional
+- changed property `description` of type `Asset` to be optional
+- changed property `custom` of type `Asset` to be optional
+- changed property `key` of type `Asset` to be optional
+- changed property `key` of type `AssetSource` to be optional
+- changed property `dimensions` of type `AssetSource` to be optional
+- changed property `contentType` of type `AssetSource` to be optional
+- changed property `inputTip` of type `AttributeDefinition` to be optional
+- changed property `taxedPrice` of type `CustomLineItem` to be optional
+- changed property `inputHint` of type `FieldDefinition` to be optional
+- changed property `label` of type `Image` to be optional
+- changed property `productSlug` of type `LineItem` to be optional
+- changed property `custom` of type `LineItem` to be optional
+- changed property `addedAt` of type `LineItem` to be optional
+- changed property `state` of type `Location` to be optional
+- changed property `measurements` of type `Parcel` to be optional
+- changed property `trackingData` of type `Parcel` to be optional
+- changed property `items` of type `Parcel` to be optional
+- changed property `heightInMillimeter` of type `ParcelMeasurements` to be optional
+- changed property `lengthInMillimeter` of type `ParcelMeasurements` to be optional
+- changed property `widthInMillimeter` of type `ParcelMeasurements` to be optional
+- changed property `weightInGram` of type `ParcelMeasurements` to be optional
+- changed property `channels` of type `ProductVariantAvailability` to be optional
+- changed property `isOnStock` of type `ProductVariantAvailability` to be optional
+- changed property `restockableInDays` of type `ProductVariantAvailability` to be optional
+- changed property `availableQuantity` of type `ProductVariantAvailability` to be optional
+- changed property `isOnStock` of type `ProductVariantChannelAvailability` to be optional
+- changed property `restockableInDays` of type `ProductVariantChannelAvailability` to be optional
+- changed property `availableQuantity` of type `ProductVariantChannelAvailability` to be optional
+- changed property `id` of type `ResourceIdentifier` to be optional
+- changed property `key` of type `ResourceIdentifier` to be optional
+- changed property `returnTrackingId` of type `ReturnInfo` to be optional
+- changed property `returnDate` of type `ReturnInfo` to be optional
+- changed property `comment` of type `ReturnItem` to be optional
+- changed property `suggestTokenizer` of type `SearchKeyword` to be optional
+- changed property `freeAbove` of type `ShippingRate` to be optional
+- changed property `isMatching` of type `ShippingRate` to be optional
+- changed property `externalId` of type `SyncInfo` to be optional
+- changed property `id` of type `TaxRate` to be optional
+- changed property `state` of type `TaxRate` to be optional
+- changed property `subRates` of type `TaxRate` to be optional
+- changed property `custom` of type `TextLineItem` to be optional
+- changed property `description` of type `TextLineItem` to be optional
+- changed property `trackingId` of type `TrackingData` to be optional
+- changed property `carrier` of type `TrackingData` to be optional
+- changed property `provider` of type `TrackingData` to be optional
+- changed property `providerTransaction` of type `TrackingData` to be optional
+- changed property `isReturn` of type `TrackingData` to be optional
+- changed property `timestamp` of type `Transaction` to be optional
+- changed property `interactionId` of type `Transaction` to be optional
+Changed Property(s)
+
+- :warning: changed property `nextValue` of type `AddEnumValueChange` from type `EnumValue` to `CustomFieldEnumValue`
+- :warning: changed property `nextValue` of type `AddInterfaceInteractionChange` from type `CustomFieldExpandedValue` to `CustomFields`
+- :warning: changed property `nextValue` of type `AddLocalizedEnumValueChange` from type `AttributeLocalizedEnumValue` to `CustomFieldLocalizedEnumValue`
+- :warning: changed property `previousValue` of type `AddShoppingListLineItemChange` from type `LineItem` to `ShoppingListLineItem`
+- :warning: changed property `nextValue` of type `AddShoppingListLineItemChange` from type `LineItem` to `ShoppingListLineItem`
+- :warning: changed property `w` of type `AssetDimensions` from type `integer` to `number`
+- :warning: changed property `h` of type `AssetDimensions` from type `integer` to `number`
+- :warning: changed property `customer` of type `Associate` from type `Reference` to `CustomerReference`
+- :warning: changed property `associateRole` of type `AssociateRoleAssignment` from type `KeyReference` to `AssociateRoleKeyReference`
+- :warning: changed property `previousValue` of type `ChangeEnumValueOrderChange` from type `EnumValue[]` to `CustomFieldEnumValue[]`
+- :warning: changed property `nextValue` of type `ChangeEnumValueOrderChange` from type `EnumValue[]` to `CustomFieldEnumValue[]`
+- :warning: changed property `previousValue` of type `ChangeInputHintChange` from type `TextInputHint` to `TypeTextInputHint`
+- :warning: changed property `nextValue` of type `ChangeInputHintChange` from type `TextInputHint` to `TypeTextInputHint`
+- :warning: changed property `previousValue` of type `ChangeLocalizedEnumValueOrderChange` from type `LocalizedEnumValue[]` to `AttributeLocalizedEnumValue[]`
+- :warning: changed property `nextValue` of type `ChangeLocalizedEnumValueOrderChange` from type `LocalizedEnumValue[]` to `AttributeLocalizedEnumValue[]`
+- :warning: changed property `previousValue` of type `ChangePlainEnumValueOrderChange` from type `EnumValue[]` to `AttributePlainEnumValue[]`
+- :warning: changed property `nextValue` of type `ChangePlainEnumValueOrderChange` from type `EnumValue[]` to `AttributePlainEnumValue[]`
+- :warning: changed property `type` of type `CustomFields` from type `Reference` to `TypeReference`
+- :warning: changed property `fields` of type `CustomFields` from type `object` to `FieldContainer`
+- :warning: changed property `money` of type `CustomLineItem` from type `Money` to `TypedMoney`
+- :warning: changed property `totalPrice` of type `CustomLineItem` from type `Money` to `CentPrecisionMoney`
+- :warning: changed property `quantity` of type `CustomLineItem` from type `integer` to `number`
+- :warning: changed property `createdAt` of type `Delivery` from type `string` to `datetime`
+- :warning: changed property `quantity` of type `DeliveryItem` from type `integer` to `number`
+- :warning: changed property `discountCode` of type `DiscountCodeInfo` from type `Reference` to `DiscountCodeReference`
+- :warning: changed property `discountedAmount` of type `DiscountedLineItemPortion` from type `Money` to `TypedMoney`
+- :warning: changed property `value` of type `DiscountedLineItemPrice` from type `Money` to `TypedMoney`
+- :warning: changed property `quantity` of type `DiscountedLineItemPriceForQuantity` from type `integer` to `number`
+- :warning: changed property `inputHint` of type `FieldDefinition` from type `TextInputHint` to `TypeTextInputHint`
+- :warning: changed property `w` of type `ImageDimensions` from type `integer` to `number`
+- :warning: changed property `h` of type `ImageDimensions` from type `integer` to `number`
+- :warning: changed property `customer` of type `InheritedAssociate` from type `Reference` to `CustomerReference`
+- :warning: changed property `associateRole` of type `InheritedAssociateRoleAssignment` from type `KeyReference` to `AssociateRoleKeyReference`
+- :warning: changed property `source` of type `InheritedAssociateRoleAssignment` from type `KeyReference` to `BusinessUnitKeyReference`
+- :warning: changed property `quantity` of type `ItemShippingTarget` from type `integer` to `number`
+- :warning: changed property `quantity` of type `ItemState` from type `integer` to `number`
+- :warning: changed property `state` of type `ItemState` from type `Reference` to `StateReference`
+- :warning: changed property `productType` of type `LineItem` from type `Reference` to `ProductTypeReference`
+- :warning: changed property `variant` of type `LineItem` from type `Variant` to `ProductVariant`
+- :warning: changed property `quantity` of type `LineItem` from type `integer` to `number`
+- :warning: changed property `addedAt` of type `LineItem` from type `string` to `datetime`
+- :warning: changed property `centAmount` of type `Money` from type `integer` to `number`
+- :warning: changed property `createdAt` of type `Parcel` from type `string` to `datetime`
+- :warning: changed property `heightInMillimeter` of type `ParcelMeasurements` from type `integer` to `number`
+- :warning: changed property `lengthInMillimeter` of type `ParcelMeasurements` from type `integer` to `number`
+- :warning: changed property `widthInMillimeter` of type `ParcelMeasurements` from type `integer` to `number`
+- :warning: changed property `weightInGram` of type `ParcelMeasurements` from type `integer` to `number`
+- :warning: changed property `payments` of type `PaymentInfo` from type `Reference[]` to `PaymentReference[]`
+- :warning: changed property `value` of type `Price` from type `Money` to `TypedMoney`
+- :warning: changed property `productSelection` of type `ProductSelectionSetting` from type `Reference` to `ProductSelectionReference`
+- :warning: changed property `restockableInDays` of type `ProductVariantAvailability` from type `integer` to `number`
+- :warning: changed property `availableQuantity` of type `ProductVariantAvailability` from type `integer` to `number`
+- :warning: changed property `restockableInDays` of type `ProductVariantChannelAvailability` from type `integer` to `number`
+- :warning: changed property `availableQuantity` of type `ProductVariantChannelAvailability` from type `integer` to `number`
+- :warning: changed property `previousValue` of type `RemoveDeliveryItemsChange` from type `Delivery` to `DeliveryChangeValue`
+- :warning: changed property `previousValue` of type `RemoveEnumValuesChange` from type `EnumValue` to `AttributePlainEnumValue`
+- :warning: changed property `previousValue` of type `RemoveLocalizedEnumValuesChange` from type `LocalizedEnumValue` to `AttributeLocalizedEnumValue`
+- :warning: changed property `previousValue` of type `RemoveShoppingListLineItemChange` from type `LineItem` to `ShoppingListLineItem`
+- :warning: changed property `nextValue` of type `RemoveShoppingListLineItemChange` from type `LineItem` to `ShoppingListLineItem`
+- :warning: changed property `returnDate` of type `ReturnInfo` from type `string` to `datetime`
+- :warning: changed property `quantity` of type `ReturnItem` from type `integer` to `number`
+- :warning: changed property `lastModifiedAt` of type `ReturnItem` from type `string` to `datetime`
+- :warning: changed property `createdAt` of type `ReturnItem` from type `string` to `datetime`
+- :warning: changed property `averageRating` of type `ReviewRatingStatistics` from type `integer` to `number`
+- :warning: changed property `highestRating` of type `ReviewRatingStatistics` from type `integer` to `number`
+- :warning: changed property `lowestRating` of type `ReviewRatingStatistics` from type `integer` to `number`
+- :warning: changed property `previousValue` of type `SetAttributeChange` from type `AttributeValue` to `Attribute`
+- :warning: changed property `nextValue` of type `SetAttributeChange` from type `AttributeValue` to `Attribute`
+- :warning: changed property `previousValue` of type `SetCustomLineItemTaxedPriceChange` from type `Money` to `TaxedItemPrice`
+- :warning: changed property `nextValue` of type `SetCustomLineItemTaxedPriceChange` from type `Money` to `TaxedItemPrice`
+- :warning: changed property `previousValue` of type `SetDiscountedPriceChange` from type `Price` to `DiscountedPrice`
+- :warning: changed property `nextValue` of type `SetDiscountedPriceChange` from type `Price` to `DiscountedPrice`
+- :warning: changed property `previousValue` of type `SetOrderTaxedPriceChange` from type `TaxedItemPrice` to `TaxedPrice`
+- :warning: changed property `nextValue` of type `SetOrderTaxedPriceChange` from type `TaxedItemPrice` to `TaxedPrice`
+- :warning: changed property `previousValue` of type `SetShippingInfoTaxedPriceChange` from type `TaxedPrice` to `TaxedItemPrice`
+- :warning: changed property `nextValue` of type `SetShippingInfoTaxedPriceChange` from type `TaxedPrice` to `TaxedItemPrice`
+- :warning: changed property `previousValue` of type `SetShippingRateChange` from type `Money` to `ShippingRate`
+- :warning: changed property `nextValue` of type `SetShippingRateChange` from type `Money` to `ShippingRate`
+- :warning: changed property `previousValue` of type `SetStoreChange` from type `Reference` to `KeyReference`
+- :warning: changed property `nextValue` of type `SetStoreChange` from type `Reference` to `KeyReference`
+- :warning: changed property `price` of type `ShippingRate` from type `Money` to `CentPrecisionMoney`
+- :warning: changed property `freeAbove` of type `ShippingRate` from type `Money` to `CentPrecisionMoney`
+- :warning: changed property `amount` of type `SubRate` from type `integer` to `number`
+- :warning: changed property `channel` of type `SyncInfo` from type `Reference` to `ChannelReference`
+- :warning: changed property `syncedAt` of type `SyncInfo` from type `string` to `datetime`
+- :warning: changed property `amount` of type `TaxRate` from type `integer` to `number`
+- :warning: changed property `totalNet` of type `TaxedItemPrice` from type `Money` to `CentPrecisionMoney`
+- :warning: changed property `totalGross` of type `TaxedItemPrice` from type `Money` to `CentPrecisionMoney`
+- :warning: changed property `totalNet` of type `TaxedPrice` from type `Money` to `CentPrecisionMoney`
+- :warning: changed property `totalGross` of type `TaxedPrice` from type `Money` to `CentPrecisionMoney`
+- :warning: changed property `addedAt` of type `TextLineItem` from type `string` to `datetime`
+- :warning: changed property `quantity` of type `TextLineItem` from type `integer` to `number`
+- :warning: changed property `timestamp` of type `Transaction` from type `string` to `datetime`
+- :warning: changed property `amount` of type `Transaction` from type `Money` to `CentPrecisionMoney`
+Removed Property(s)
+
+- :warning: removed property `/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/` from type `CategoryOrderHints`
+- :warning: removed property `variantId` from type `LineItem`
+- :warning: removed property `fractionDigits` from type `Money`
+- :warning: removed property `type` from type `Money`
+- :warning: removed property `//` from type `ProductVariantChannelAvailabilityMap`
+- :warning: removed property `skus` from type `ProductVariantSelection`
+Added Property(s)
+
+- added property `catalogData` to type `AddAssetChange`
+- added property `variant` to type `AddAssetChange`
+- added property `attributeName` to type `AddEnumValueChange`
+- added property `variant` to type `AddExternalImageChange`
+- added property `variant` to type `AddPriceChange`
+- added property `catalogData` to type `AddToCategoryChange`
+- added property `custom` to type `Address`
+- added property `sources` to type `Asset`
+- added property `tags` to type `Asset`
+- added property `roles` to type `Associate`
+- added property `level` to type `AttributeDefinition`
+- added property `/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/` to type `CategoryOrderHints`
+- added property `catalogData` to type `ChangeAssetNameChange`
+- added property `variant` to type `ChangeAssetNameChange`
+- added property `catalogData` to type `ChangeAssetOrderChange`
+- added property `variant` to type `ChangeAssetOrderChange`
+- added property `addedItems` to type `ChangeCartDiscountsChange`
+- added property `removedItems` to type `ChangeCartDiscountsChange`
+- added property `attributeName` to type `ChangeEnumValueLabelChange`
+- added property `attributeName` to type `ChangeEnumValueOrderChange`
+- added property `addedItems` to type `ChangeGroupsChange`
+- added property `removedItems` to type `ChangeGroupsChange`
+- added property `variant` to type `ChangePriceChange`
+- added property `catalogData` to type `ChangeSlugChange`
+- added property `key` to type `CustomLineItem`
+- added property `taxedPricePortions` to type `CustomLineItem`
+- added property `state` to type `CustomLineItem`
+- added property `taxCategory` to type `CustomLineItem`
+- added property `taxRate` to type `CustomLineItem`
+- added property `perMethodTaxRate` to type `CustomLineItem`
+- added property `discountedPricePerQuantity` to type `CustomLineItem`
+- added property `custom` to type `CustomLineItem`
+- added property `shippingDetails` to type `CustomLineItem`
+- added property `priceMode` to type `CustomLineItem`
+- added property `recurrenceInfo` to type `CustomLineItem`
+- added property `key` to type `Delivery`
+- added property `required` to type `FieldDefinition`
+- added property `shippingMethodKey` to type `ItemShippingTarget`
+- added property `key` to type `LineItem`
+- added property `productKey` to type `LineItem`
+- added property `price` to type `LineItem`
+- added property `totalPrice` to type `LineItem`
+- added property `discountedPricePerQuantity` to type `LineItem`
+- added property `taxedPrice` to type `LineItem`
+- added property `taxedPricePortions` to type `LineItem`
+- added property `state` to type `LineItem`
+- added property `taxRate` to type `LineItem`
+- added property `perMethodTaxRate` to type `LineItem`
+- added property `supplyChannel` to type `LineItem`
+- added property `distributionChannel` to type `LineItem`
+- added property `priceMode` to type `LineItem`
+- added property `lineItemMode` to type `LineItem`
+- added property `inventoryMode` to type `LineItem`
+- added property `shippingDetails` to type `LineItem`
+- added property `lastModifiedAt` to type `LineItem`
+- added property `recurrenceInfo` to type `LineItem`
+- added property `variant` to type `MoveImageToPositionChange`
+- added property `key` to type `Parcel`
+- added property `custom` to type `Parcel`
+- added property `key` to type `Price`
+- added property `country` to type `Price`
+- added property `customerGroup` to type `Price`
+- added property `channel` to type `Price`
+- added property `validFrom` to type `Price`
+- added property `validUntil` to type `Price`
+- added property `discounted` to type `Price`
+- added property `tiers` to type `Price`
+- added property `custom` to type `Price`
+- added property `recurrencePolicy` to type `Price`
+- added property `id` to type `ProductVariantAvailability`
+- added property `version` to type `ProductVariantAvailability`
+- added property `id` to type `ProductVariantChannelAvailability`
+- added property `version` to type `ProductVariantChannelAvailability`
+- added property `/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/` to type `ProductVariantChannelAvailabilityMap`
+- added property `catalogData` to type `RemoveAssetChange`
+- added property `variant` to type `RemoveAssetChange`
+- added property `catalogData` to type `RemoveFromCategoryChange`
+- added property `variant` to type `RemoveImageChange`
+- added property `variant` to type `RemovePriceChange`
+- added property `key` to type `ReturnItem`
+- added property `custom` to type `ReturnItem`
+- added property `catalogData` to type `SetAssetCustomFieldChange`
+- added property `variant` to type `SetAssetCustomFieldChange`
+- added property `catalogData` to type `SetAssetCustomTypeChange`
+- added property `variant` to type `SetAssetCustomTypeChange`
+- added property `catalogData` to type `SetAssetDescriptionChange`
+- added property `variant` to type `SetAssetDescriptionChange`
+- added property `catalogData` to type `SetAssetKeyChange`
+- added property `variant` to type `SetAssetKeyChange`
+- added property `catalogData` to type `SetAssetSourcesChange`
+- added property `variant` to type `SetAssetSourcesChange`
+- added property `catalogData` to type `SetAssetTagsChange`
+- added property `variant` to type `SetAssetTagsChange`
+- added property `variant` to type `SetAttributeChange`
+- added property `addedItems` to type `SetChannelRolesChange`
+- added property `removedItems` to type `SetChannelRolesChange`
+- added property `addedItems` to type `SetCountriesChange`
+- added property `removedItems` to type `SetCountriesChange`
+- added property `customTypeId` to type `SetCustomLineItemCustomFieldChange`
+- added property `customLineItem` to type `SetCustomLineItemShippingDetailsChange`
+- added property `price` to type `SetDiscountedPriceChange`
+- added property `addedItems` to type `SetDistributionChannelsChange`
+- added property `removedItems` to type `SetDistributionChannelsChange`
+- added property `variant` to type `SetImageLabelChange`
+- added property `addedItems` to type `SetLanguagesChange`
+- added property `removedItems` to type `SetLanguagesChange`
+- added property `lineItemId` to type `SetLineItemDiscountedPriceChange`
+- added property `lineItemId` to type `SetLineItemDiscountedPricePerQuantityChange`
+- added property `lineItemId` to type `SetLineItemPriceChange`
+- added property `lineItemId` to type `SetLineItemProductSlugChange`
+- added property `lineItem` to type `SetLineItemShippingDetailsChange`
+- added property `variant` to type `SetLineItemShippingDetailsChange`
+- added property `lineItemId` to type `SetLineItemTaxAmountChange`
+- added property `lineItemId` to type `SetLineItemTaxRateChange`
+- added property `variant` to type `SetLineItemTaxedPriceChange`
+- added property `lineItemId` to type `SetLineItemTotalPriceChange`
+- added property `variant` to type `SetLineItemTotalPriceChange`
+- added property `catalogData` to type `SetMetaDescriptionChange`
+- added property `catalogData` to type `SetMetaKeywordsChange`
+- added property `catalogData` to type `SetMetaTitleChange`
+- added property `lineItemId` to type `SetOrderLineItemCustomFieldChange`
+- added property `lineItemId` to type `SetOrderLineItemCustomTypeChange`
+- added property `addedItems` to type `SetPermissionsChange`
+- added property `removedItems` to type `SetPermissionsChange`
+- added property `addedItems` to type `SetPricesChange`
+- added property `removedItems` to type `SetPricesChange`
+- added property `variant` to type `SetProductPriceCustomFieldChange`
+- added property `priceId` to type `SetProductPriceCustomFieldChange`
+- added property `customTypeId` to type `SetProductPriceCustomFieldChange`
+- added property `name` to type `SetProductPriceCustomFieldChange`
+- added property `variant` to type `SetProductPriceCustomTypeChange`
+- added property `priceId` to type `SetProductPriceCustomTypeChange`
+- added property `addedItems` to type `SetProductSelectionsChange`
+- added property `removedItems` to type `SetProductSelectionsChange`
+- added property `variant` to type `SetProductVariantKeyChange`
+- added property `addedItems` to type `SetReservationsChange`
+- added property `removedItems` to type `SetReservationsChange`
+- added property `variant` to type `SetSkuChange`
+- added property `addedItems` to type `SetStateRolesChange`
+- added property `removedItems` to type `SetStateRolesChange`
+- added property `addedItems` to type `SetStoresChange`
+- added property `removedItems` to type `SetStoresChange`
+- added property `addedItems` to type `SetSupplyChannelsChange`
+- added property `removedItems` to type `SetSupplyChannelsChange`
+- added property `addedItems` to type `SetTransitionsChange`
+- added property `removedItems` to type `SetTransitionsChange`
+- added property `key` to type `TaxRate`
+- added property `taxPortions` to type `TaxedItemPrice`
+- added property `totalTax` to type `TaxedItemPrice`
+- added property `taxPortions` to type `TaxedPrice`
+- added property `totalTax` to type `TaxedPrice`
+- added property `key` to type `TextLineItem`
+- added property `custom` to type `Transaction`
+- added property `customLineItemId` to type `TransitionCustomLineItemStateChange`
+Added Type(s)
+
+- added type `AllowedOrigins`
+- added type `Application`
+- added type `ApplicationAgreement`
+- added type `ApplicationAgreementDraft`
+- added type `ApplicationAgreementStatus`
+- added type `ApplicationAgreementType`
+- added type `ApplicationDraft`
+- added type `ApplicationLogo`
+- added type `ApplicationMode`
+- added type `ApplicationStatus`
+- added type `ApplicationUpdateAction`
+- added type `ApplicationUpdateActions`
+- added type `DiscountsConfiguration`
+- added type `PaginatedApplication`
+- added type `PaymentsConfiguration`
+- added type `AddAllowedOriginUpdateAction`
+- added type `AddApplicationAgreementUpdateAction`
+- added type `AddCountryUpdateAction`
+- added type `RemoveAllowedOriginUpdateAction`
+- added type `RemoveApplicationAgreementUpdateAction`
+- added type `RemoveCountryUpdateAction`
+- added type `ReorderApplicationAgreementUpdateAction`
+- added type `SetActivePaymentComponentTypeUpdateAction`
+- added type `SetAllowAllOriginsUpdateAction`
+- added type `SetAllowedOriginsUpdateAction`
+- added type `SetApplicationAgreementNameUpdateAction`
+- added type `SetApplicationAgreementStatusUpdateAction`
+- added type `SetApplicationAgreementTextUpdateAction`
+- added type `SetApplicationAgreementTypeUpdateAction`
+- added type `SetApplicationAgreementsUpdateAction`
+- added type `SetApplicationLogoUpdateAction`
+- added type `SetApplicationNameUpdateAction`
+- added type `SetApplicationStatusUpdateAction`
+- added type `SetCountriesUpdateAction`
+- added type `SetDescriptionUpdateAction`
+- added type `SetDiscountsConfigurationUpdateAction`
+- added type `SetPaymentReturnUrlUpdateAction`
+- added type `SetPaymentsConfigurationUpdateAction`
+- added type `CreatedBy`
+- added type `LastModifiedBy`
+- added type `LocalizedString`
+- added type `LocalizedUrl`
+- added type `ConcurrentModificationError`
+- added type `DuplicateFieldWithConflictingResourceError`
+- added type `ErrorResponse`
+- added type `InvalidFieldError`
+- added type `InvalidOperationError`
+- added type `MaxResourceLimitExceededError`
+- added type `MissingProjectKeyError`
+- added type `ReferencedResourceNotFoundError`
+- added type `ServiceUnavailableError`
+- added type `SyntaxErrorError`
+- added type `AutomatedReversalConfiguration`
+- added type `ConnectorDeploymentReference`
+- added type `DisplayInfo`
+- added type `PaginatedPaymentIntegration`
+- added type `PaymentComponentType`
+- added type `PaymentIntegration`
+- added type `PaymentIntegrationDraft`
+- added type `PaymentIntegrationStatus`
+- added type `PaymentIntegrationType`
+- added type `SortingInfo`
+- added type `PaymentIntegrationUpdateAction`
+- added type `PaymentIntegrationUpdateActions`
+- added type `SetAutomatedReversalConfigurationPredicateUpdateAction`
+- added type `SetAutomatedReversalConfigurationStatusUpdateAction`
+- added type `SetAutomatedReversalConfigurationUpdateAction`
+- added type `SetConnectorDeploymentUpdateAction`
+- added type `SetDisplayInfoDescriptionUpdateAction`
+- added type `SetDisplayInfoLabelUpdateAction`
+- added type `SetDisplayInfoLogoUrlUpdateAction`
+- added type `SetDisplayInfoPayButtonTextUpdateAction`
+- added type `SetDisplayInfoUpdateAction`
+- added type `SetKeyUpdateAction`
+- added type `SetNameUpdateAction`
+- added type `SetPredicateUpdateAction`
+- added type `SetSortingInfoUpdateAction`
+- added type `SetStatusUpdateAction`
+- added type `SetTypeUpdateAction`
+Added Enum(s)
+
+- added enum `deployment` to type `ReferenceTypeId`
+Required Property(s)
+
+- changed property `detailedErrorMessage` of type `InvalidJsonInputError` to be optional
+Changed Property(s)
+
+- :warning: changed property `application` of type `Transaction` from type `ApplicationResourceIdentifier` to `ApplicationReference`
+Added Property(s)
+
+- added property `resourceIdentifier` to type `ResourceNotFoundError`
+- added property `resourceId` to type `ResourceNotFoundError`
+Changed MethodResponseBody(s)
+
+- :warning: changed response body for `400: application/json` of method `post /{projectKey}/transactions` from type `null` to `ErrorResponse`
+- :warning: changed response body for `400: application/json` of method `post /{projectKey}/payment-intents/{paymentId}` from type `null` to `ErrorResponse`
+- :warning: changed response body for `400: application/json` of method `get /{projectKey}/transactions/{id}` from type `null` to `ErrorResponse`
+- :warning: changed response body for `400: application/json` of method `get /{projectKey}/transactions/key={key}` from type `null` to `ErrorResponse`
+Added Method(s)
+
+- added method `apiRoot.withProjectKey().paymentIntegrations().get()`
+- added method `apiRoot.withProjectKey().paymentIntegrations().post()`
+- added method `apiRoot.withProjectKey().applications().get()`
+- added method `apiRoot.withProjectKey().applications().post()`
+- added method `apiRoot.withProjectKey().paymentIntegrations().withId().get()`
+- added method `apiRoot.withProjectKey().paymentIntegrations().withId().head()`
+- added method `apiRoot.withProjectKey().paymentIntegrations().withId().post()`
+- added method `apiRoot.withProjectKey().paymentIntegrations().withId().delete()`
+- added method `apiRoot.withProjectKey().paymentIntegrations().withKey().get()`
+- added method `apiRoot.withProjectKey().paymentIntegrations().withKey().post()`
+- added method `apiRoot.withProjectKey().paymentIntegrations().withKey().head()`
+- added method `apiRoot.withProjectKey().paymentIntegrations().withKey().delete()`
+- added method `apiRoot.withProjectKey().applications().withId().get()`
+- added method `apiRoot.withProjectKey().applications().withId().head()`
+- added method `apiRoot.withProjectKey().applications().withId().post()`
+- added method `apiRoot.withProjectKey().applications().withId().delete()`
+- added method `apiRoot.withProjectKey().applications().withKey().get()`
+- added method `apiRoot.withProjectKey().applications().withKey().post()`
+- added method `apiRoot.withProjectKey().applications().withKey().head()`
+- added method `apiRoot.withProjectKey().applications().withKey().delete()`
+Added Resource(s)
+
+- added resource `/{projectKey}/payment-integrations`
+- added resource `/{projectKey}/applications`
+- added resource `/{projectKey}/payment-integrations/{id}`
+- added resource `/{projectKey}/payment-integrations/key={key}`
+- added resource `/{projectKey}/applications/{id}`
+- added resource `/{projectKey}/applications/key={key}`
Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information, see Merge behavior.
+ * + *{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .carts()
+ * .customerIdWithCustomerIdValueMerge("{customerId}")
+ * .post(null)
+ * .execute()
+ * }
+ * Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information, see Merge behavior.
+ * + *{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .carts()
+ * .customerIdWithCustomerIdValueMerge("{customerId}")
+ * .post("")
+ * .execute()
+ * }
+ * Allows converting an anonymous Cart to the active Cart of a Customer with cart merge.
*Creating a Customer produces the CustomerCreated Message. Simultaneously creating two Customers with the same email address can return a LockedField error.
* *Allows converting an anonymous Cart to the active Cart of a Customer with cart merge.
*Creating a Customer produces the CustomerCreated Message. Simultaneously creating two Customers with the same email address can return a LockedField error.
* *Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.
+ *If the Cart exists in the Project but does not have a store specified, or the store field references a different Store, a ResourceNotFound error is returned.
For more information, see Merge behavior.
+ * + *{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .inStoreKeyWithStoreKeyValue("{storeKey}")
+ * .carts()
+ * .customerIdWithCustomerIdValueMerge("{customerId}")
+ * .post(null)
+ * .execute()
+ * }
+ * Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.
+ *If the Cart exists in the Project but does not have a store specified, or the store field references a different Store, a ResourceNotFound error is returned.
For more information, see Merge behavior.
+ * + *{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .inStoreKeyWithStoreKeyValue("{storeKey}")
+ * .carts()
+ * .customerIdWithCustomerIdValueMerge("{customerId}")
+ * .post("")
+ * .execute()
+ * }
+ * When using this endpoint, if omitted, the Customer stores field is set to the Store specified in the path parameter.
If a Cart with a store field specified, the store field must reference the same Store specified in the {storeKey} path parameter.
If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ *Allows converting an anonymous Cart to the active Cart of a Customer with cart merge. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
*Creating a Customer produces the CustomerCreated Message. Simultaneously creating two Customers with the same email address can return a LockedField error.
* *When using this endpoint, if omitted, the Customer stores field is set to the Store specified in the path parameter.
If a Cart with a store field specified, the store field must reference the same Store specified in the {storeKey} path parameter.
If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ *Allows converting an anonymous Cart to the active Cart of a Customer with cart merge. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
*Creating a Customer produces the CustomerCreated Message. Simultaneously creating two Customers with the same email address can return a LockedField error.
* *Authenticates a Customer associated with a Store.
- *If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ *Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
*If the Customer exists in the Project but the stores field references a different Store, this method returns an InvalidCredentials error.
Authenticates a Customer associated with a Store.
- *If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ *Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
*If the Customer exists in the Project but the stores field references a different Store, this method returns an InvalidCredentials error.
Authenticates a global Customer.
- *If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ *Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
*If an account with the given credentials is not found, an InvalidCredentials error is returned.
* *Authenticates a global Customer.
- *If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ *Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
*If an account with the given credentials is not found, an InvalidCredentials error is returned.
* *Indicates the best deal logic applies to a Cart or Order and indicates the discount type that offers the best deal.
+ *Indicates if a Product Discount or Cart Discount offers the best deal for a Cart or Order.
* *Indicates the best deal logic applies to a Cart or Order and indicates the discount type that offers the best deal.
+ *Indicates if a Product Discount or Cart Discount offers the best deal for a Cart or Order.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class BestDealImpl implements BestDeal, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddDiscountCodeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddDiscountCodeAction.java index ef13f2481c1..a754dca5241 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddDiscountCodeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddDiscountCodeAction.java @@ -15,7 +15,8 @@ import jakarta.validation.constraints.NotNull; /** - *Adds a DiscountCode to the Cart to activate the related Cart Discounts. Adding a Discount Code is only possible if no DirectDiscount has been applied to the Cart. Discount Codes can be added to frozen Carts, but their DiscountCodeState is then DoesNotMatchCart.
Adds a DiscountCode to the Cart to activate the related Cart Discounts. If the related Cart Discounts are inactive or invalid, or belong to a different Store than the Cart, a DiscountCodeNonApplicableError is returned.
+ *A Discount Code can be added only if no DirectDiscount has been applied to the Cart. For frozen Carts, the DiscountCodeState must be DoesNotMatchCart when adding a Discount Code.
The maximum number of Discount Codes in a Cart is restricted by a limit.
*Specific Error Code: MatchingPriceNotFound
* diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddDiscountCodeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddDiscountCodeActionImpl.java index 232b7e2a68e..c0ae2b6bb19 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddDiscountCodeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddDiscountCodeActionImpl.java @@ -17,7 +17,8 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *Adds a DiscountCode to the Cart to activate the related Cart Discounts. Adding a Discount Code is only possible if no DirectDiscount has been applied to the Cart. Discount Codes can be added to frozen Carts, but their DiscountCodeState is then DoesNotMatchCart.
Adds a DiscountCode to the Cart to activate the related Cart Discounts. If the related Cart Discounts are inactive or invalid, or belong to a different Store than the Cart, a DiscountCodeNonApplicableError is returned.
+ *A Discount Code can be added only if no DirectDiscount has been applied to the Cart. For frozen Carts, the DiscountCodeState must be DoesNotMatchCart when adding a Discount Code.
The maximum number of Discount Codes in a Cart is restricted by a limit.
*Specific Error Code: MatchingPriceNotFound
*/ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartFreezeCartAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartFreezeCartAction.java index 75db4514edf..e14fe0715ac 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartFreezeCartAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartFreezeCartAction.java @@ -14,6 +14,7 @@ /** *Changes the CartState from Active to Frozen. Results in a Frozen Cart. Fails with InvalidOperation error when the Cart is empty.
Freezing a Cart produces the CartFrozen Message.
* *Changes the CartState from Active to Frozen. Results in a Frozen Cart. Fails with InvalidOperation error when the Cart is empty.
Freezing a Cart produces the CartFrozen Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CartFreezeCartActionImpl implements CartFreezeCartAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartMergeMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartMergeMode.java new file mode 100644 index 00000000000..6b8b1ee96cc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartMergeMode.java @@ -0,0 +1,115 @@ + +package com.commercetools.api.models.cart; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Determines how to manually merge an anonymous Cart with an existing Customer Cart.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface CartMergeMode extends JsonEnum { + + /** +Merges the anonymous Cart with the existing Customer Cart. Line Items from the anonymous Cart are added to the Customer Cart.
*/ + CartMergeMode MERGE_WITH_EXISTING_CUSTOMER_CART = CartMergeModeEnum.MERGE_WITH_EXISTING_CUSTOMER_CART; + /** +Uses the anonymous Cart as the new active Customer Cart, replacing the existing one.
*/ + CartMergeMode USE_AS_NEW_ACTIVE_CUSTOMER_CART = CartMergeModeEnum.USE_AS_NEW_ACTIVE_CUSTOMER_CART; + + /** + * possible values of CartMergeMode + */ + enum CartMergeModeEnum implements CartMergeMode { + /** + * MergeWithExistingCustomerCart + */ + MERGE_WITH_EXISTING_CUSTOMER_CART("MergeWithExistingCustomerCart"), + + /** + * UseAsNewActiveCustomerCart + */ + USE_AS_NEW_ACTIVE_CUSTOMER_CART("UseAsNewActiveCustomerCart"); + private final String jsonName; + + private CartMergeModeEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of CartMergeMode + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static CartMergeMode findEnum(String value) { + return findEnumViaJsonName(value).orElse(new CartMergeMode() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static OptionalAmount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
* @return quantity */ @@ -101,7 +101,7 @@ public interface CartRemoveLineItemAction extends CartUpdateAction { public void setLineItemKey(final String lineItemKey); /** - *Amount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
* @param quantity value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRemoveLineItemActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRemoveLineItemActionBuilder.java index c9023b13b61..8dd2229ede4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRemoveLineItemActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRemoveLineItemActionBuilder.java @@ -64,7 +64,7 @@ public CartRemoveLineItemActionBuilder lineItemKey(@Nullable final String lineIt } /** - *Amount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
* @param quantity value to be set * @return Builder */ @@ -212,7 +212,7 @@ public String getLineItemKey() { } /** - *Amount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
* @return quantity */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRemoveLineItemActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRemoveLineItemActionImpl.java index 637ae8eafb9..93ad0cfa771 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRemoveLineItemActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartRemoveLineItemActionImpl.java @@ -86,7 +86,7 @@ public String getLineItemKey() { } /** - *Amount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
*/ public Long getQuantity() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTotalPriceAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTotalPriceAction.java index 6d2dae90cd7..2ded74e6b8c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTotalPriceAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetLineItemTotalPriceAction.java @@ -15,7 +15,7 @@ import jakarta.validation.Valid; /** - *Sets the LineItem totalPrice and price, and changes the priceMode to ExternalTotal LineItemPriceMode.
Sets the LineItem totalPrice and price, and changes the priceMode to ExternalTotal LineItemPriceMode. Cannot be used on Gift Line Items (see LineItemMode).
Sets the LineItem totalPrice and price, and changes the priceMode to ExternalTotal LineItemPriceMode.
Sets the LineItem totalPrice and price, and changes the priceMode to ExternalTotal LineItemPriceMode. Cannot be used on Gift Line Items (see LineItemMode).
Changes the CartState from Frozen to Active. Reactivates a Frozen Cart. This action updates all prices in the Cart according to latest Prices on related Product Variants and Shipping Methods and by applying all discounts currently being active and applicable for the Cart.
Unfreezing a Cart produces the CartUnfrozen Message.
* *Changes the CartState from Frozen to Active. Reactivates a Frozen Cart. This action updates all prices in the Cart according to latest Prices on related Product Variants and Shipping Methods and by applying all discounts currently being active and applicable for the Cart.
Unfreezing a Cart produces the CartUnfrozen Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CartUnfreezeCartActionImpl implements CartUnfreezeCartAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemMode.java index fd9072e8db3..827ac28563b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemMode.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemMode.java @@ -21,7 +21,8 @@ public interface LineItemMode extends JsonEnum { LineItemMode STANDARD = LineItemModeEnum.STANDARD; /**One Line Item was added automatically to a Cart by a Cart Discount with CartDiscountValueGiftLineItemDraft.
-The quantity cannot be increased, and it won't be merged when adding the same Line Item to the Cart. If the gift is removed, an entry is added to the refusedGifts array and the discount won't be applied to the Cart. The price cannot be changed externally.
The quantity cannot be increased, and it won't be merged when adding the same Line Item to the Cart. If the gift is removed, an entry is added to the refusedGifts array and the discount won't be applied to the Cart.
The totalPrice is always 0 and cannot be changed externally via the setLineItemTotalPrice action.
All other updates, such as the ones related to Custom Fields, can be used.
*/ LineItemMode GIFT_LINE_ITEM = LineItemModeEnum.GIFT_LINE_ITEM; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraft.java new file mode 100644 index 00000000000..93a15d1775b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/MergeCartDraft.java @@ -0,0 +1,181 @@ + +package com.commercetools.api.models.cart; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *Used for merging an anonymous Cart with a Customer Cart with the Merge Cart and Merge Cart in Store endpoints. Either anonymousCart or anonymousId is required.
+ * MergeCartDraft mergeCartDraft = MergeCartDraft.builder()
+ * .build()
+ *
+ * ResourceIdentifier to the anonymous Cart to be merged. Required if anonymousId is not provided.
Determines how to merge the anonymous Cart with the existing Customer Cart.
+ * @return mergeMode + */ + + @JsonProperty("mergeMode") + public CartMergeMode getMergeMode(); + + /** + *true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.false, only the prices, discounts, and tax rates will be updated.Assigns the Customer to the Carts that have the same anonymousId. Required if anonymousCart is not provided. If both anonymousCart and anonymousId are provided, this value must match the anonymousId of the anonymous Cart otherwise, an InvalidOperation error is returned.
ResourceIdentifier to the anonymous Cart to be merged. Required if anonymousId is not provided.
Determines how to merge the anonymous Cart with the existing Customer Cart.
+ * @param mergeMode value to be set + */ + + public void setMergeMode(final CartMergeMode mergeMode); + + /** + *true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.false, only the prices, discounts, and tax rates will be updated.Assigns the Customer to the Carts that have the same anonymousId. Required if anonymousCart is not provided. If both anonymousCart and anonymousId are provided, this value must match the anonymousId of the anonymous Cart otherwise, an InvalidOperation error is returned.
+ * MergeCartDraft mergeCartDraft = MergeCartDraft.builder()
+ * .build()
+ *
+ * ResourceIdentifier to the anonymous Cart to be merged. Required if anonymousId is not provided.
ResourceIdentifier to the anonymous Cart to be merged. Required if anonymousId is not provided.
ResourceIdentifier to the anonymous Cart to be merged. Required if anonymousId is not provided.
Determines how to merge the anonymous Cart with the existing Customer Cart.
+ * @param mergeMode value to be set + * @return Builder + */ + + public MergeCartDraftBuilder mergeMode(@Nullable final com.commercetools.api.models.cart.CartMergeMode mergeMode) { + this.mergeMode = mergeMode; + return this; + } + + /** + *true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.false, only the prices, discounts, and tax rates will be updated.Assigns the Customer to the Carts that have the same anonymousId. Required if anonymousCart is not provided. If both anonymousCart and anonymousId are provided, this value must match the anonymousId of the anonymous Cart otherwise, an InvalidOperation error is returned.
ResourceIdentifier to the anonymous Cart to be merged. Required if anonymousId is not provided.
Determines how to merge the anonymous Cart with the existing Customer Cart.
+ * @return mergeMode + */ + + @Nullable + public com.commercetools.api.models.cart.CartMergeMode getMergeMode() { + return this.mergeMode; + } + + /** + *true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.false, only the prices, discounts, and tax rates will be updated.Assigns the Customer to the Carts that have the same anonymousId. Required if anonymousCart is not provided. If both anonymousCart and anonymousId are provided, this value must match the anonymousId of the anonymous Cart otherwise, an InvalidOperation error is returned.
Used for merging an anonymous Cart with a Customer Cart with the Merge Cart and Merge Cart in Store endpoints. Either anonymousCart or anonymousId is required.
ResourceIdentifier to the anonymous Cart to be merged. Required if anonymousId is not provided.
Determines how to merge the anonymous Cart with the existing Customer Cart.
+ */ + + public com.commercetools.api.models.cart.CartMergeMode getMergeMode() { + return this.mergeMode; + } + + /** + *true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.false, only the prices, discounts, and tax rates will be updated.Assigns the Customer to the Carts that have the same anonymousId. Required if anonymousCart is not provided. If both anonymousCart and anonymousId are provided, this value must match the anonymousId of the anonymous Cart otherwise, an InvalidOperation error is returned.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
References of all resources that are addressed in the predicate. The API generates this array from the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Array generated from the Cart predicate. It contains the references of all the resources that are addressed in the predicate.
+ *References to all resources addressed in the cartPredicate by their IDs. This value is generated by the platform.
Returned when the Cart contains a Discount Code with a DiscountCodeState other than MatchesCart or ApplicationStoppedByGroupBestDeal.
The error is returned as a failed response to:
*Returned when the Cart contains a Discount Code with a DiscountCodeState other than MatchesCart or ApplicationStoppedByGroupBestDeal.
The error is returned as a failed response to:
*Returned when the Cart contains a Discount Code with a DiscountCodeState other than MatchesCart or ApplicationStoppedByGroupBestDeal.
The error is returned as a failed response to:
*Returned when the Cart contains a Discount Code with a DiscountCodeState other than MatchesCart or ApplicationStoppedByGroupBestDeal.
The error is returned as a failed response to:
*Returned when a subsequent Order for a Recurring Order could not be processed.
+ * + *
+ * GraphQLRecurringOrderFailureError graphQLRecurringOrderFailureError = GraphQLRecurringOrderFailureError.builder()
+ * .build()
+ *
+ * Details about the error's cause and the entities involved.
+ * @return details + */ + @NotNull + @JsonProperty("details") + public Object getDetails(); + + /** + *Details about the error's cause and the entities involved.
+ * @param details value to be set + */ + + public void setDetails(final Object details); + + /** + * factory method + * @return instance of GraphQLRecurringOrderFailureError + */ + public static GraphQLRecurringOrderFailureError of() { + return new GraphQLRecurringOrderFailureErrorImpl(); + } + + /** + * factory method to create a shallow copy GraphQLRecurringOrderFailureError + * @param template instance to be copied + * @return copy instance + */ + public static GraphQLRecurringOrderFailureError of(final GraphQLRecurringOrderFailureError template) { + GraphQLRecurringOrderFailureErrorImpl instance = new GraphQLRecurringOrderFailureErrorImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + instance.setDetails(template.getDetails()); + return instance; + } + + public GraphQLRecurringOrderFailureError copyDeep(); + + /** + * factory method to create a deep copy of GraphQLRecurringOrderFailureError + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLRecurringOrderFailureError deepCopy( + @Nullable final GraphQLRecurringOrderFailureError template) { + if (template == null) { + return null; + } + GraphQLRecurringOrderFailureErrorImpl instance = new GraphQLRecurringOrderFailureErrorImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + instance.setDetails(template.getDetails()); + return instance; + } + + /** + * builder factory method for GraphQLRecurringOrderFailureError + * @return builder + */ + public static GraphQLRecurringOrderFailureErrorBuilder builder() { + return GraphQLRecurringOrderFailureErrorBuilder.of(); + } + + /** + * create builder for GraphQLRecurringOrderFailureError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLRecurringOrderFailureErrorBuilder builder(final GraphQLRecurringOrderFailureError template) { + return GraphQLRecurringOrderFailureErrorBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * GraphQLRecurringOrderFailureError graphQLRecurringOrderFailureError = GraphQLRecurringOrderFailureError.builder()
+ * .build()
+ *
+ * Error-specific additional fields.
+ * @param values properties to be set + * @return Builder + */ + + public GraphQLRecurringOrderFailureErrorBuilder values(final MapError-specific additional fields.
+ * @param key property name + * @param value property value + * @return Builder + */ + + public GraphQLRecurringOrderFailureErrorBuilder addValue(final String key, final java.lang.Object value) { + if (this.values == null) { + values = new HashMap<>(); + } + values.put(key, value); + return this; + } + + /** + *Details about the error's cause and the entities involved.
+ * @param details value to be set + * @return Builder + */ + + public GraphQLRecurringOrderFailureErrorBuilder details(final java.lang.Object details) { + this.details = details; + return this; + } + + /** + *Error-specific additional fields.
+ * @return pattern properties + */ + + public MapDetails about the error's cause and the entities involved.
+ * @return details + */ + + public java.lang.Object getDetails() { + return this.details; + } + + /** + * builds GraphQLRecurringOrderFailureError with checking for non-null required values + * @return GraphQLRecurringOrderFailureError + */ + public GraphQLRecurringOrderFailureError build() { + Objects.requireNonNull(details, GraphQLRecurringOrderFailureError.class + ": details is missing"); + return new GraphQLRecurringOrderFailureErrorImpl(values, details); + } + + /** + * builds GraphQLRecurringOrderFailureError without checking for non-null required values + * @return GraphQLRecurringOrderFailureError + */ + public GraphQLRecurringOrderFailureError buildUnchecked() { + return new GraphQLRecurringOrderFailureErrorImpl(values, details); + } + + /** + * factory method for an instance of GraphQLRecurringOrderFailureErrorBuilder + * @return builder + */ + public static GraphQLRecurringOrderFailureErrorBuilder of() { + return new GraphQLRecurringOrderFailureErrorBuilder(); + } + + /** + * create builder for GraphQLRecurringOrderFailureError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLRecurringOrderFailureErrorBuilder of(final GraphQLRecurringOrderFailureError template) { + GraphQLRecurringOrderFailureErrorBuilder builder = new GraphQLRecurringOrderFailureErrorBuilder(); + builder.values = template.values(); + builder.details = template.getDetails(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLRecurringOrderFailureErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLRecurringOrderFailureErrorImpl.java new file mode 100644 index 00000000000..0303eba75a5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLRecurringOrderFailureErrorImpl.java @@ -0,0 +1,122 @@ + +package com.commercetools.api.models.error; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *Returned when a subsequent Order for a Recurring Order could not be processed.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLRecurringOrderFailureErrorImpl implements GraphQLRecurringOrderFailureError, ModelBase { + + private String code; + + private MapError-specific additional fields.
+ */ + + public MapDetails about the error's cause and the entities involved.
+ */ + + public java.lang.Object getDetails() { + return this.details; + } + + public void setValue(String key, java.lang.Object value) { + if (values == null) { + values = new HashMap<>(); + } + values.put(key, value); + } + + public void setDetails(final java.lang.Object details) { + this.details = details; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + GraphQLRecurringOrderFailureErrorImpl that = (GraphQLRecurringOrderFailureErrorImpl) o; + + return new EqualsBuilder().append(code, that.code) + .append(values, that.values) + .append(details, that.details) + .append(code, that.code) + .append(values, that.values) + .append(details, that.details) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(code).append(values).append(details).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code) + .append("values", values) + .append("details", details) + .build(); + } + + @Override + public GraphQLRecurringOrderFailureError copyDeep() { + return GraphQLRecurringOrderFailureError.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RecurringOrderFailureError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RecurringOrderFailureError.java new file mode 100644 index 00000000000..0f5458d19f2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RecurringOrderFailureError.java @@ -0,0 +1,157 @@ + +package com.commercetools.api.models.error; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; + +/** + *Returned when a subsequent Order for a Recurring Order could not be processed.
+ * + *
+ * RecurringOrderFailureError recurringOrderFailureError = RecurringOrderFailureError.builder()
+ * .message("{message}")
+ * .build()
+ *
+ * Plain text description of the error.
+ * @return message + */ + @NotNull + @JsonProperty("message") + public String getMessage(); + + /** + *Details about the error's cause and the entities involved.
+ * @return details + */ + @NotNull + @JsonProperty("details") + public Object getDetails(); + + /** + *Plain text description of the error.
+ * @param message value to be set + */ + + public void setMessage(final String message); + + /** + *Details about the error's cause and the entities involved.
+ * @param details value to be set + */ + + public void setDetails(final Object details); + + /** + * factory method + * @return instance of RecurringOrderFailureError + */ + public static RecurringOrderFailureError of() { + return new RecurringOrderFailureErrorImpl(); + } + + /** + * factory method to create a shallow copy RecurringOrderFailureError + * @param template instance to be copied + * @return copy instance + */ + public static RecurringOrderFailureError of(final RecurringOrderFailureError template) { + RecurringOrderFailureErrorImpl instance = new RecurringOrderFailureErrorImpl(); + instance.setMessage(template.getMessage()); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + instance.setDetails(template.getDetails()); + return instance; + } + + public RecurringOrderFailureError copyDeep(); + + /** + * factory method to create a deep copy of RecurringOrderFailureError + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static RecurringOrderFailureError deepCopy(@Nullable final RecurringOrderFailureError template) { + if (template == null) { + return null; + } + RecurringOrderFailureErrorImpl instance = new RecurringOrderFailureErrorImpl(); + instance.setMessage(template.getMessage()); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + instance.setDetails(template.getDetails()); + return instance; + } + + /** + * builder factory method for RecurringOrderFailureError + * @return builder + */ + public static RecurringOrderFailureErrorBuilder builder() { + return RecurringOrderFailureErrorBuilder.of(); + } + + /** + * create builder for RecurringOrderFailureError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RecurringOrderFailureErrorBuilder builder(final RecurringOrderFailureError template) { + return RecurringOrderFailureErrorBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * RecurringOrderFailureError recurringOrderFailureError = RecurringOrderFailureError.builder()
+ * .message("{message}")
+ * .build()
+ *
+ * Plain text description of the error.
+ * @param message value to be set + * @return Builder + */ + + public RecurringOrderFailureErrorBuilder message(final String message) { + this.message = message; + return this; + } + + /** + *Error-specific additional fields.
+ * @param values properties to be set + * @return Builder + */ + + public RecurringOrderFailureErrorBuilder values(final MapError-specific additional fields.
+ * @param key property name + * @param value property value + * @return Builder + */ + + public RecurringOrderFailureErrorBuilder addValue(final String key, final java.lang.Object value) { + if (this.values == null) { + values = new HashMap<>(); + } + values.put(key, value); + return this; + } + + /** + *Details about the error's cause and the entities involved.
+ * @param details value to be set + * @return Builder + */ + + public RecurringOrderFailureErrorBuilder details(final java.lang.Object details) { + this.details = details; + return this; + } + + /** + *Plain text description of the error.
+ * @return message + */ + + public String getMessage() { + return this.message; + } + + /** + *Error-specific additional fields.
+ * @return pattern properties + */ + + public MapDetails about the error's cause and the entities involved.
+ * @return details + */ + + public java.lang.Object getDetails() { + return this.details; + } + + /** + * builds RecurringOrderFailureError with checking for non-null required values + * @return RecurringOrderFailureError + */ + public RecurringOrderFailureError build() { + Objects.requireNonNull(message, RecurringOrderFailureError.class + ": message is missing"); + Objects.requireNonNull(details, RecurringOrderFailureError.class + ": details is missing"); + return new RecurringOrderFailureErrorImpl(message, values, details); + } + + /** + * builds RecurringOrderFailureError without checking for non-null required values + * @return RecurringOrderFailureError + */ + public RecurringOrderFailureError buildUnchecked() { + return new RecurringOrderFailureErrorImpl(message, values, details); + } + + /** + * factory method for an instance of RecurringOrderFailureErrorBuilder + * @return builder + */ + public static RecurringOrderFailureErrorBuilder of() { + return new RecurringOrderFailureErrorBuilder(); + } + + /** + * create builder for RecurringOrderFailureError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RecurringOrderFailureErrorBuilder of(final RecurringOrderFailureError template) { + RecurringOrderFailureErrorBuilder builder = new RecurringOrderFailureErrorBuilder(); + builder.message = template.getMessage(); + builder.values = template.values(); + builder.details = template.getDetails(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RecurringOrderFailureErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RecurringOrderFailureErrorImpl.java new file mode 100644 index 00000000000..5693f12596e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/RecurringOrderFailureErrorImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.models.error; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *Returned when a subsequent Order for a Recurring Order could not be processed.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class RecurringOrderFailureErrorImpl implements RecurringOrderFailureError, ModelBase { + + private String code; + + private String message; + + private MapPlain text description of the error.
+ */ + + public String getMessage() { + return this.message; + } + + /** + *Error-specific additional fields.
+ */ + + public MapDetails about the error's cause and the entities involved.
+ */ + + public java.lang.Object getDetails() { + return this.details; + } + + public void setMessage(final String message) { + this.message = message; + } + + public void setValue(String key, java.lang.Object value) { + if (values == null) { + values = new HashMap<>(); + } + values.put(key, value); + } + + public void setDetails(final java.lang.Object details) { + this.details = details; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + RecurringOrderFailureErrorImpl that = (RecurringOrderFailureErrorImpl) o; + + return new EqualsBuilder().append(code, that.code) + .append(message, that.message) + .append(values, that.values) + .append(details, that.details) + .append(code, that.code) + .append(message, that.message) + .append(values, that.values) + .append(details, that.details) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(code).append(message).append(values).append(details).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code) + .append("message", message) + .append("values", values) + .append("details", details) + .build(); + } + + @Override + public RecurringOrderFailureError copyDeep() { + return RecurringOrderFailureError.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartAddDiscountCodeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartAddDiscountCodeAction.java index c5558b4962d..7bdfcd23da6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartAddDiscountCodeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartAddDiscountCodeAction.java @@ -15,7 +15,8 @@ import jakarta.validation.constraints.NotNull; /** - *Adds a DiscountCode to the Cart to activate the related CartDiscounts. Adding a Discount Code is only possible if no DirectDiscount has been applied to the Cart. Discount Codes can be added to frozen Carts, but their DiscountCodeState is then DoesNotMatchCart.
Adds a DiscountCode to the Cart to activate the related CartDiscounts. If the related Cart Discounts are inactive or invalid, or belong to a different Store than the Cart, a DiscountCodeNonApplicableError is returned.
+ *A Discount Code can be added only if no DirectDiscount has been applied to the Cart. For frozen Carts, the DiscountCodeState must be DoesNotMatchCart when adding a Discount Code.
The maximum number of Discount Codes in a Cart is restricted by a limit.
*Specific Error Code: MatchingPriceNotFound
* diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartAddDiscountCodeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartAddDiscountCodeActionImpl.java index 3dd5e60617a..795d33ea5ef 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartAddDiscountCodeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartAddDiscountCodeActionImpl.java @@ -17,7 +17,8 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *Adds a DiscountCode to the Cart to activate the related CartDiscounts. Adding a Discount Code is only possible if no DirectDiscount has been applied to the Cart. Discount Codes can be added to frozen Carts, but their DiscountCodeState is then DoesNotMatchCart.
Adds a DiscountCode to the Cart to activate the related CartDiscounts. If the related Cart Discounts are inactive or invalid, or belong to a different Store than the Cart, a DiscountCodeNonApplicableError is returned.
+ *A Discount Code can be added only if no DirectDiscount has been applied to the Cart. For frozen Carts, the DiscountCodeState must be DoesNotMatchCart when adding a Discount Code.
The maximum number of Discount Codes in a Cart is restricted by a limit.
*Specific Error Code: MatchingPriceNotFound
*/ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemAction.java index 1fd7c06b756..fabc4a8358b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemAction.java @@ -56,7 +56,7 @@ public interface MyCartRemoveLineItemAction extends MyCartUpdateAction { public String getLineItemKey(); /** - *Amount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
* @return quantity */ @@ -103,7 +103,7 @@ public interface MyCartRemoveLineItemAction extends MyCartUpdateAction { public void setLineItemKey(final String lineItemKey); /** - *Amount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
* @param quantity value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemActionBuilder.java index 6f2708c9470..73aa146d191 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemActionBuilder.java @@ -64,7 +64,7 @@ public MyCartRemoveLineItemActionBuilder lineItemKey(@Nullable final String line } /** - *Amount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
* @param quantity value to be set * @return Builder */ @@ -212,7 +212,7 @@ public String getLineItemKey() { } /** - *Amount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
* @return quantity */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemActionImpl.java index 8207b0a02ff..cea250fee16 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartRemoveLineItemActionImpl.java @@ -86,7 +86,7 @@ public String getLineItemKey() { } /** - *Amount to subtract from the LineItem's quantity. If absent, the LineItem is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Cart.
*/ public Long getQuantity() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartFrozenMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartFrozenMessage.java new file mode 100644 index 00000000000..8ba0929c321 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartFrozenMessage.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Generated after a successful Freeze Cart update action.
+ * + *
+ * CartFrozenMessage cartFrozenMessage = CartFrozenMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .build()
+ *
+ *
+ * CartFrozenMessage cartFrozenMessage = CartFrozenMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .build()
+ *
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @param id value to be set + * @return Builder + */ + + public CartFrozenMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public CartFrozenMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CartFrozenMessageBuilder lastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CartFrozenMessageBuilder withLastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CartFrozenMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *IDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CartFrozenMessageBuilder createdBy( + FunctionIDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CartFrozenMessageBuilder withCreatedBy( + FunctionIDs and references that created the Message.
+ * @param createdBy value to be set + * @return Builder + */ + + public CartFrozenMessageBuilder createdBy(@Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @param resource value to be set + * @return Builder + */ + + public CartFrozenMessageBuilder resource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *Reference to the resource on which the change or action was performed.
+ * @param builder function to build the resource value + * @return Builder + */ + + public CartFrozenMessageBuilder resource( + FunctionVersion of the resource on which the change or action was performed.
+ * @param resourceVersion value to be set + * @return Builder + */ + + public CartFrozenMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
Generated after a successful Freeze Cart update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartFrozenMessageImpl implements CartFrozenMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + /** + * create instance with all properties + */ + @JsonCreator + CartFrozenMessageImpl(@JsonProperty("id") final String id, @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.type = CART_FROZEN; + } + + /** + * create empty instance + */ + public CartFrozenMessageImpl() { + this.type = CART_FROZEN; + } + + /** + *Unique identifier of the Message. Can be used to track which Messages have been processed.
+ */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *Message Type of the Message.
+ */ + + public String getType() { + return this.type; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
Generated after a successful Freeze Cart update action.
+ * + *
+ * CartFrozenMessagePayload cartFrozenMessagePayload = CartFrozenMessagePayload.builder()
+ * .build()
+ *
+ *
+ * CartFrozenMessagePayload cartFrozenMessagePayload = CartFrozenMessagePayload.builder()
+ * .build()
+ *
+ * Generated after a successful Freeze Cart update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartFrozenMessagePayloadImpl implements CartFrozenMessagePayload, ModelBase { + + private String type; + + /** + * create instance with all properties + */ + @JsonCreator + public CartFrozenMessagePayloadImpl() { + this.type = CART_FROZEN; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartFrozenMessagePayloadImpl that = (CartFrozenMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type).append(type, that.type).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type).build(); + } + + @Override + public CartFrozenMessagePayload copyDeep() { + return CartFrozenMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartUnfrozenMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartUnfrozenMessage.java new file mode 100644 index 00000000000..07521c706d9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartUnfrozenMessage.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Generated after a successful Unfreeze Cart update action.
+ * + *
+ * CartUnfrozenMessage cartUnfrozenMessage = CartUnfrozenMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .build()
+ *
+ *
+ * CartUnfrozenMessage cartUnfrozenMessage = CartUnfrozenMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .build()
+ *
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @param id value to be set + * @return Builder + */ + + public CartUnfrozenMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public CartUnfrozenMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CartUnfrozenMessageBuilder lastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CartUnfrozenMessageBuilder withLastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CartUnfrozenMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *IDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CartUnfrozenMessageBuilder createdBy( + FunctionIDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public CartUnfrozenMessageBuilder withCreatedBy( + FunctionIDs and references that created the Message.
+ * @param createdBy value to be set + * @return Builder + */ + + public CartUnfrozenMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @param resource value to be set + * @return Builder + */ + + public CartUnfrozenMessageBuilder resource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *Reference to the resource on which the change or action was performed.
+ * @param builder function to build the resource value + * @return Builder + */ + + public CartUnfrozenMessageBuilder resource( + FunctionVersion of the resource on which the change or action was performed.
+ * @param resourceVersion value to be set + * @return Builder + */ + + public CartUnfrozenMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
Generated after a successful Unfreeze Cart update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartUnfrozenMessageImpl implements CartUnfrozenMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + /** + * create instance with all properties + */ + @JsonCreator + CartUnfrozenMessageImpl(@JsonProperty("id") final String id, @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.type = CART_UNFROZEN; + } + + /** + * create empty instance + */ + public CartUnfrozenMessageImpl() { + this.type = CART_UNFROZEN; + } + + /** + *Unique identifier of the Message. Can be used to track which Messages have been processed.
+ */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *Message Type of the Message.
+ */ + + public String getType() { + return this.type; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
Generated after a successful Unfreeze Cart update action.
+ * + *
+ * CartUnfrozenMessagePayload cartUnfrozenMessagePayload = CartUnfrozenMessagePayload.builder()
+ * .build()
+ *
+ *
+ * CartUnfrozenMessagePayload cartUnfrozenMessagePayload = CartUnfrozenMessagePayload.builder()
+ * .build()
+ *
+ * Generated after a successful Unfreeze Cart update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartUnfrozenMessagePayloadImpl implements CartUnfrozenMessagePayload, ModelBase { + + private String type; + + /** + * create instance with all properties + */ + @JsonCreator + public CartUnfrozenMessagePayloadImpl() { + this.type = CART_UNFROZEN; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartUnfrozenMessagePayloadImpl that = (CartUnfrozenMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type).append(type, that.type).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type).build(); + } + + @Override + public CartUnfrozenMessagePayload copyDeep() { + return CartUnfrozenMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessage.java index 2df38aa67a0..b78618075a2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessage.java @@ -81,6 +81,14 @@ public interface InventoryEntryQuantitySetMessage extends Message { @JsonProperty("newAvailableQuantity") public Long getNewAvailableQuantity(); + /** + *SKU of the InventoryEntry for which the quantity was updated.
+ * @return sku + */ + + @JsonProperty("sku") + public String getSku(); + /** *Reference to the Channel where the InventoryEntry quantity was set.
* @return supplyChannel @@ -117,6 +125,13 @@ public interface InventoryEntryQuantitySetMessage extends Message { public void setNewAvailableQuantity(final Long newAvailableQuantity); + /** + *SKU of the InventoryEntry for which the quantity was updated.
+ * @param sku value to be set + */ + + public void setSku(final String sku); + /** *Reference to the Channel where the InventoryEntry quantity was set.
* @param supplyChannel value to be set @@ -153,6 +168,7 @@ public static InventoryEntryQuantitySetMessage of(final InventoryEntryQuantitySe instance.setNewQuantityOnStock(template.getNewQuantityOnStock()); instance.setOldAvailableQuantity(template.getOldAvailableQuantity()); instance.setNewAvailableQuantity(template.getNewAvailableQuantity()); + instance.setSku(template.getSku()); instance.setSupplyChannel(template.getSupplyChannel()); return instance; } @@ -186,6 +202,7 @@ public static InventoryEntryQuantitySetMessage deepCopy(@Nullable final Inventor instance.setNewQuantityOnStock(template.getNewQuantityOnStock()); instance.setOldAvailableQuantity(template.getOldAvailableQuantity()); instance.setNewAvailableQuantity(template.getNewAvailableQuantity()); + instance.setSku(template.getSku()); instance.setSupplyChannel( com.commercetools.api.models.channel.ChannelReference.deepCopy(template.getSupplyChannel())); return instance; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageBuilder.java index c4c9390b47b..2de3ee8df2b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageBuilder.java @@ -65,6 +65,9 @@ public class InventoryEntryQuantitySetMessageBuilder implements BuilderReference to the Channel where the InventoryEntry quantity was set.
* @param builder function to build the supplyChannel value @@ -478,6 +492,16 @@ public Long getNewAvailableQuantity() { return this.newAvailableQuantity; } + /** + *SKU of the InventoryEntry for which the quantity was updated.
+ * @return sku + */ + + @Nullable + public String getSku() { + return this.sku; + } + /** *Reference to the Channel where the InventoryEntry quantity was set.
* @return supplyChannel @@ -511,7 +535,7 @@ public InventoryEntryQuantitySetMessage build() { InventoryEntryQuantitySetMessage.class + ": newAvailableQuantity is missing"); return new InventoryEntryQuantitySetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, oldQuantityOnStock, - newQuantityOnStock, oldAvailableQuantity, newAvailableQuantity, supplyChannel); + newQuantityOnStock, oldAvailableQuantity, newAvailableQuantity, sku, supplyChannel); } /** @@ -521,7 +545,7 @@ public InventoryEntryQuantitySetMessage build() { public InventoryEntryQuantitySetMessage buildUnchecked() { return new InventoryEntryQuantitySetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, oldQuantityOnStock, - newQuantityOnStock, oldAvailableQuantity, newAvailableQuantity, supplyChannel); + newQuantityOnStock, oldAvailableQuantity, newAvailableQuantity, sku, supplyChannel); } /** @@ -553,6 +577,7 @@ public static InventoryEntryQuantitySetMessageBuilder of(final InventoryEntryQua builder.newQuantityOnStock = template.getNewQuantityOnStock(); builder.oldAvailableQuantity = template.getOldAvailableQuantity(); builder.newAvailableQuantity = template.getNewAvailableQuantity(); + builder.sku = template.getSku(); builder.supplyChannel = template.getSupplyChannel(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageImpl.java index e873f89a1fc..1f1a3b63b4f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessageImpl.java @@ -52,6 +52,8 @@ public class InventoryEntryQuantitySetMessageImpl implements InventoryEntryQuant private Long newAvailableQuantity; + private String sku; + private com.commercetools.api.models.channel.ChannelReference supplyChannel; /** @@ -72,6 +74,7 @@ public class InventoryEntryQuantitySetMessageImpl implements InventoryEntryQuant @JsonProperty("newQuantityOnStock") final Long newQuantityOnStock, @JsonProperty("oldAvailableQuantity") final Long oldAvailableQuantity, @JsonProperty("newAvailableQuantity") final Long newAvailableQuantity, + @JsonProperty("sku") final String sku, @JsonProperty("supplyChannel") final com.commercetools.api.models.channel.ChannelReference supplyChannel) { this.id = id; this.version = version; @@ -87,6 +90,7 @@ public class InventoryEntryQuantitySetMessageImpl implements InventoryEntryQuant this.newQuantityOnStock = newQuantityOnStock; this.oldAvailableQuantity = oldAvailableQuantity; this.newAvailableQuantity = newAvailableQuantity; + this.sku = sku; this.supplyChannel = supplyChannel; this.type = INVENTORY_ENTRY_QUANTITY_SET; } @@ -218,6 +222,14 @@ public Long getNewAvailableQuantity() { return this.newAvailableQuantity; } + /** + *SKU of the InventoryEntry for which the quantity was updated.
+ */ + + public String getSku() { + return this.sku; + } + /** *Reference to the Channel where the InventoryEntry quantity was set.
*/ @@ -283,6 +295,10 @@ public void setNewAvailableQuantity(final Long newAvailableQuantity) { this.newAvailableQuantity = newAvailableQuantity; } + public void setSku(final String sku) { + this.sku = sku; + } + public void setSupplyChannel(final com.commercetools.api.models.channel.ChannelReference supplyChannel) { this.supplyChannel = supplyChannel; } @@ -312,6 +328,7 @@ public boolean equals(Object o) { .append(newQuantityOnStock, that.newQuantityOnStock) .append(oldAvailableQuantity, that.oldAvailableQuantity) .append(newAvailableQuantity, that.newAvailableQuantity) + .append(sku, that.sku) .append(supplyChannel, that.supplyChannel) .append(id, that.id) .append(version, that.version) @@ -328,6 +345,7 @@ public boolean equals(Object o) { .append(newQuantityOnStock, that.newQuantityOnStock) .append(oldAvailableQuantity, that.oldAvailableQuantity) .append(newAvailableQuantity, that.newAvailableQuantity) + .append(sku, that.sku) .append(supplyChannel, that.supplyChannel) .isEquals(); } @@ -349,6 +367,7 @@ public int hashCode() { .append(newQuantityOnStock) .append(oldAvailableQuantity) .append(newAvailableQuantity) + .append(sku) .append(supplyChannel) .toHashCode(); } @@ -370,6 +389,7 @@ public String toString() { .append("newQuantityOnStock", newQuantityOnStock) .append("oldAvailableQuantity", oldAvailableQuantity) .append("newAvailableQuantity", newAvailableQuantity) + .append("sku", sku) .append("supplyChannel", supplyChannel) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayload.java index c9e0dcb0a5b..8efd6116f9e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayload.java @@ -74,6 +74,14 @@ public interface InventoryEntryQuantitySetMessagePayload extends MessagePayload @JsonProperty("newAvailableQuantity") public Long getNewAvailableQuantity(); + /** + *SKU of the InventoryEntry for which the quantity was updated.
+ * @return sku + */ + + @JsonProperty("sku") + public String getSku(); + /** *Reference to the Channel where the InventoryEntry quantity was set.
* @return supplyChannel @@ -110,6 +118,13 @@ public interface InventoryEntryQuantitySetMessagePayload extends MessagePayload public void setNewAvailableQuantity(final Long newAvailableQuantity); + /** + *SKU of the InventoryEntry for which the quantity was updated.
+ * @param sku value to be set + */ + + public void setSku(final String sku); + /** *Reference to the Channel where the InventoryEntry quantity was set.
* @param supplyChannel value to be set @@ -136,6 +151,7 @@ public static InventoryEntryQuantitySetMessagePayload of(final InventoryEntryQua instance.setNewQuantityOnStock(template.getNewQuantityOnStock()); instance.setOldAvailableQuantity(template.getOldAvailableQuantity()); instance.setNewAvailableQuantity(template.getNewAvailableQuantity()); + instance.setSku(template.getSku()); instance.setSupplyChannel(template.getSupplyChannel()); return instance; } @@ -158,6 +174,7 @@ public static InventoryEntryQuantitySetMessagePayload deepCopy( instance.setNewQuantityOnStock(template.getNewQuantityOnStock()); instance.setOldAvailableQuantity(template.getOldAvailableQuantity()); instance.setNewAvailableQuantity(template.getNewAvailableQuantity()); + instance.setSku(template.getSku()); instance.setSupplyChannel( com.commercetools.api.models.channel.ChannelReference.deepCopy(template.getSupplyChannel())); return instance; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayloadBuilder.java index 3bcc4ae05ab..cfb74ddfe34 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayloadBuilder.java @@ -36,6 +36,9 @@ public class InventoryEntryQuantitySetMessagePayloadBuilder private Long newAvailableQuantity; + @Nullable + private String sku; + @Nullable private com.commercetools.api.models.channel.ChannelReference supplyChannel; @@ -83,6 +86,17 @@ public InventoryEntryQuantitySetMessagePayloadBuilder newAvailableQuantity(final return this; } + /** + *SKU of the InventoryEntry for which the quantity was updated.
+ * @param sku value to be set + * @return Builder + */ + + public InventoryEntryQuantitySetMessagePayloadBuilder sku(@Nullable final String sku) { + this.sku = sku; + return this; + } + /** *Reference to the Channel where the InventoryEntry quantity was set.
* @param builder function to build the supplyChannel value @@ -155,6 +169,16 @@ public Long getNewAvailableQuantity() { return this.newAvailableQuantity; } + /** + *SKU of the InventoryEntry for which the quantity was updated.
+ * @return sku + */ + + @Nullable + public String getSku() { + return this.sku; + } + /** *Reference to the Channel where the InventoryEntry quantity was set.
* @return supplyChannel @@ -179,7 +203,7 @@ public InventoryEntryQuantitySetMessagePayload build() { Objects.requireNonNull(newAvailableQuantity, InventoryEntryQuantitySetMessagePayload.class + ": newAvailableQuantity is missing"); return new InventoryEntryQuantitySetMessagePayloadImpl(oldQuantityOnStock, newQuantityOnStock, - oldAvailableQuantity, newAvailableQuantity, supplyChannel); + oldAvailableQuantity, newAvailableQuantity, sku, supplyChannel); } /** @@ -188,7 +212,7 @@ public InventoryEntryQuantitySetMessagePayload build() { */ public InventoryEntryQuantitySetMessagePayload buildUnchecked() { return new InventoryEntryQuantitySetMessagePayloadImpl(oldQuantityOnStock, newQuantityOnStock, - oldAvailableQuantity, newAvailableQuantity, supplyChannel); + oldAvailableQuantity, newAvailableQuantity, sku, supplyChannel); } /** @@ -211,6 +235,7 @@ public static InventoryEntryQuantitySetMessagePayloadBuilder of( builder.newQuantityOnStock = template.getNewQuantityOnStock(); builder.oldAvailableQuantity = template.getOldAvailableQuantity(); builder.newAvailableQuantity = template.getNewAvailableQuantity(); + builder.sku = template.getSku(); builder.supplyChannel = template.getSupplyChannel(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayloadImpl.java index 02a5f9a6473..ad4f51a3a0a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/InventoryEntryQuantitySetMessagePayloadImpl.java @@ -32,6 +32,8 @@ public class InventoryEntryQuantitySetMessagePayloadImpl implements InventoryEnt private Long newAvailableQuantity; + private String sku; + private com.commercetools.api.models.channel.ChannelReference supplyChannel; /** @@ -42,11 +44,13 @@ public class InventoryEntryQuantitySetMessagePayloadImpl implements InventoryEnt @JsonProperty("newQuantityOnStock") final Long newQuantityOnStock, @JsonProperty("oldAvailableQuantity") final Long oldAvailableQuantity, @JsonProperty("newAvailableQuantity") final Long newAvailableQuantity, + @JsonProperty("sku") final String sku, @JsonProperty("supplyChannel") final com.commercetools.api.models.channel.ChannelReference supplyChannel) { this.oldQuantityOnStock = oldQuantityOnStock; this.newQuantityOnStock = newQuantityOnStock; this.oldAvailableQuantity = oldAvailableQuantity; this.newAvailableQuantity = newAvailableQuantity; + this.sku = sku; this.supplyChannel = supplyChannel; this.type = INVENTORY_ENTRY_QUANTITY_SET; } @@ -98,6 +102,14 @@ public Long getNewAvailableQuantity() { return this.newAvailableQuantity; } + /** + *SKU of the InventoryEntry for which the quantity was updated.
+ */ + + public String getSku() { + return this.sku; + } + /** *Reference to the Channel where the InventoryEntry quantity was set.
*/ @@ -122,6 +134,10 @@ public void setNewAvailableQuantity(final Long newAvailableQuantity) { this.newAvailableQuantity = newAvailableQuantity; } + public void setSku(final String sku) { + this.sku = sku; + } + public void setSupplyChannel(final com.commercetools.api.models.channel.ChannelReference supplyChannel) { this.supplyChannel = supplyChannel; } @@ -141,12 +157,14 @@ public boolean equals(Object o) { .append(newQuantityOnStock, that.newQuantityOnStock) .append(oldAvailableQuantity, that.oldAvailableQuantity) .append(newAvailableQuantity, that.newAvailableQuantity) + .append(sku, that.sku) .append(supplyChannel, that.supplyChannel) .append(type, that.type) .append(oldQuantityOnStock, that.oldQuantityOnStock) .append(newQuantityOnStock, that.newQuantityOnStock) .append(oldAvailableQuantity, that.oldAvailableQuantity) .append(newAvailableQuantity, that.newAvailableQuantity) + .append(sku, that.sku) .append(supplyChannel, that.supplyChannel) .isEquals(); } @@ -158,6 +176,7 @@ public int hashCode() { .append(newQuantityOnStock) .append(oldAvailableQuantity) .append(newAvailableQuantity) + .append(sku) .append(supplyChannel) .toHashCode(); } @@ -169,6 +188,7 @@ public String toString() { .append("newQuantityOnStock", newQuantityOnStock) .append("oldAvailableQuantity", oldAvailableQuantity) .append("newAvailableQuantity", newAvailableQuantity) + .append("sku", sku) .append("supplyChannel", supplyChannel) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java index 3722b35a36f..4de63a9e56e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java @@ -725,6 +725,22 @@ public static com.commercetools.api.models.message.CartDiscountStoresSetMessageB return com.commercetools.api.models.message.CartDiscountStoresSetMessageBuilder.of(); } + /** + * builder for cartFrozen subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartFrozenMessageBuilder cartFrozenBuilder() { + return com.commercetools.api.models.message.CartFrozenMessageBuilder.of(); + } + + /** + * builder for cartUnfrozen subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartUnfrozenMessageBuilder cartUnfrozenBuilder() { + return com.commercetools.api.models.message.CartUnfrozenMessageBuilder.of(); + } + /** * builder for categoryCreated subtype * @return builder @@ -1429,6 +1445,14 @@ public static com.commercetools.api.models.message.OrderPaymentAddedMessageBuild return com.commercetools.api.models.message.OrderPaymentAddedMessageBuilder.of(); } + /** + * builder for orderPaymentRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.OrderPaymentRemovedMessageBuilder orderPaymentRemovedBuilder() { + return com.commercetools.api.models.message.OrderPaymentRemovedMessageBuilder.of(); + } + /** * builder for orderPaymentStateChanged subtype * @return builder @@ -2301,6 +2325,14 @@ public static com.commercetools.api.models.message.RecurringOrderExpiresAtSetMes return com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessageBuilder.of(); } + /** + * builder for recurringOrderFailed subtype + * @return builder + */ + public static com.commercetools.api.models.message.RecurringOrderFailedMessageBuilder recurringOrderFailedBuilder() { + return com.commercetools.api.models.message.RecurringOrderFailedMessageBuilder.of(); + } + /** * builder for recurringOrderKeySet subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java index cce0d9b8a32..9fc539b7e10 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java @@ -255,6 +255,14 @@ public com.commercetools.api.models.message.CartDiscountStoresSetMessageBuilder return com.commercetools.api.models.message.CartDiscountStoresSetMessageBuilder.of(); } + public com.commercetools.api.models.message.CartFrozenMessageBuilder cartFrozenBuilder() { + return com.commercetools.api.models.message.CartFrozenMessageBuilder.of(); + } + + public com.commercetools.api.models.message.CartUnfrozenMessageBuilder cartUnfrozenBuilder() { + return com.commercetools.api.models.message.CartUnfrozenMessageBuilder.of(); + } + public com.commercetools.api.models.message.CategoryCreatedMessageBuilder categoryCreatedBuilder() { return com.commercetools.api.models.message.CategoryCreatedMessageBuilder.of(); } @@ -607,6 +615,10 @@ public com.commercetools.api.models.message.OrderPaymentAddedMessageBuilder orde return com.commercetools.api.models.message.OrderPaymentAddedMessageBuilder.of(); } + public com.commercetools.api.models.message.OrderPaymentRemovedMessageBuilder orderPaymentRemovedBuilder() { + return com.commercetools.api.models.message.OrderPaymentRemovedMessageBuilder.of(); + } + public com.commercetools.api.models.message.OrderPaymentStateChangedMessageBuilder orderPaymentStateChangedBuilder() { return com.commercetools.api.models.message.OrderPaymentStateChangedMessageBuilder.of(); } @@ -1043,6 +1055,10 @@ public com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessageBui return com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessageBuilder.of(); } + public com.commercetools.api.models.message.RecurringOrderFailedMessageBuilder recurringOrderFailedBuilder() { + return com.commercetools.api.models.message.RecurringOrderFailedMessageBuilder.of(); + } + public com.commercetools.api.models.message.RecurringOrderKeySetMessageBuilder recurringOrderKeySetBuilder() { return com.commercetools.api.models.message.RecurringOrderKeySetMessageBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java index a040ebe1dd6..e31a6795fe7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java @@ -549,6 +549,22 @@ public static com.commercetools.api.models.message.CartDiscountStoresSetMessageP return com.commercetools.api.models.message.CartDiscountStoresSetMessagePayloadBuilder.of(); } + /** + * builder for cartFrozen subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartFrozenMessagePayloadBuilder cartFrozenBuilder() { + return com.commercetools.api.models.message.CartFrozenMessagePayloadBuilder.of(); + } + + /** + * builder for cartUnfrozen subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartUnfrozenMessagePayloadBuilder cartUnfrozenBuilder() { + return com.commercetools.api.models.message.CartUnfrozenMessagePayloadBuilder.of(); + } + /** * builder for categoryCreated subtype * @return builder @@ -1253,6 +1269,14 @@ public static com.commercetools.api.models.message.OrderPaymentAddedMessagePaylo return com.commercetools.api.models.message.OrderPaymentAddedMessagePayloadBuilder.of(); } + /** + * builder for orderPaymentRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.OrderPaymentRemovedMessagePayloadBuilder orderPaymentRemovedBuilder() { + return com.commercetools.api.models.message.OrderPaymentRemovedMessagePayloadBuilder.of(); + } + /** * builder for orderPaymentStateChanged subtype * @return builder @@ -2125,6 +2149,14 @@ public static com.commercetools.api.models.message.RecurringOrderExpiresAtSetMes return com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessagePayloadBuilder.of(); } + /** + * builder for recurringOrderFailed subtype + * @return builder + */ + public static com.commercetools.api.models.message.RecurringOrderFailedMessagePayloadBuilder recurringOrderFailedBuilder() { + return com.commercetools.api.models.message.RecurringOrderFailedMessagePayloadBuilder.of(); + } + /** * builder for recurringOrderKeySet subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java index e54ffe3b736..d7956416d3d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java @@ -255,6 +255,14 @@ public com.commercetools.api.models.message.CartDiscountStoresSetMessagePayloadB return com.commercetools.api.models.message.CartDiscountStoresSetMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.CartFrozenMessagePayloadBuilder cartFrozenBuilder() { + return com.commercetools.api.models.message.CartFrozenMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.CartUnfrozenMessagePayloadBuilder cartUnfrozenBuilder() { + return com.commercetools.api.models.message.CartUnfrozenMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.CategoryCreatedMessagePayloadBuilder categoryCreatedBuilder() { return com.commercetools.api.models.message.CategoryCreatedMessagePayloadBuilder.of(); } @@ -607,6 +615,10 @@ public com.commercetools.api.models.message.OrderPaymentAddedMessagePayloadBuild return com.commercetools.api.models.message.OrderPaymentAddedMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.OrderPaymentRemovedMessagePayloadBuilder orderPaymentRemovedBuilder() { + return com.commercetools.api.models.message.OrderPaymentRemovedMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.OrderPaymentStateChangedMessagePayloadBuilder orderPaymentStateChangedBuilder() { return com.commercetools.api.models.message.OrderPaymentStateChangedMessagePayloadBuilder.of(); } @@ -1043,6 +1055,10 @@ public com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessagePay return com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.RecurringOrderFailedMessagePayloadBuilder recurringOrderFailedBuilder() { + return com.commercetools.api.models.message.RecurringOrderFailedMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.RecurringOrderKeySetMessagePayloadBuilder recurringOrderKeySetBuilder() { return com.commercetools.api.models.message.RecurringOrderKeySetMessagePayloadBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessage.java index 3770fe66d88..4ef55f64a1e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessage.java @@ -31,7 +31,7 @@ * .sequenceNumber(0.3) * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) - * .payment(paymentBuilder -> paymentBuilder) + * .paymentRef(paymentRefBuilder -> paymentRefBuilder) * .build() * * @@ -48,19 +48,19 @@ public interface OrderPaymentAddedMessage extends Message { /** *Payment that was added to the Order.
- * @return payment + * @return paymentRef */ @NotNull @Valid - @JsonProperty("payment") - public PaymentReference getPayment(); + @JsonProperty("paymentRef") + public PaymentReference getPaymentRef(); /** *Payment that was added to the Order.
- * @param payment value to be set + * @param paymentRef value to be set */ - public void setPayment(final PaymentReference payment); + public void setPaymentRef(final PaymentReference paymentRef); /** * factory method @@ -87,7 +87,7 @@ public static OrderPaymentAddedMessage of(final OrderPaymentAddedMessage templat instance.setResource(template.getResource()); instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); - instance.setPayment(template.getPayment()); + instance.setPaymentRef(template.getPaymentRef()); return instance; } @@ -116,7 +116,8 @@ public static OrderPaymentAddedMessage deepCopy(@Nullable final OrderPaymentAdde instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers .deepCopy(template.getResourceUserProvidedIdentifiers())); - instance.setPayment(com.commercetools.api.models.payment.PaymentReference.deepCopy(template.getPayment())); + instance.setPaymentRef( + com.commercetools.api.models.payment.PaymentReference.deepCopy(template.getPaymentRef())); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageBuilder.java index ef85164b01d..8f740295ec7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageBuilder.java @@ -23,7 +23,7 @@ * .sequenceNumber(0.3) * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) - * .payment(paymentBuilder -> paymentBuilder) + * .paymentRef(paymentRefBuilder -> paymentRefBuilder) * .build() * * @@ -54,7 +54,7 @@ public class OrderPaymentAddedMessageBuilder implements BuilderPayment that was added to the Order.
- * @param builder function to build the payment value + * @param builder function to build the paymentRef value * @return Builder */ - public OrderPaymentAddedMessageBuilder payment( + public OrderPaymentAddedMessageBuilder paymentRef( FunctionPayment that was added to the Order.
- * @param builder function to build the payment value + * @param builder function to build the paymentRef value * @return Builder */ - public OrderPaymentAddedMessageBuilder withPayment( + public OrderPaymentAddedMessageBuilder withPaymentRef( FunctionPayment that was added to the Order.
- * @param payment value to be set + * @param paymentRef value to be set * @return Builder */ - public OrderPaymentAddedMessageBuilder payment( - final com.commercetools.api.models.payment.PaymentReference payment) { - this.payment = payment; + public OrderPaymentAddedMessageBuilder paymentRef( + final com.commercetools.api.models.payment.PaymentReference paymentRef) { + this.paymentRef = paymentRef; return this; } @@ -387,11 +387,11 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU /** *Payment that was added to the Order.
- * @return payment + * @return paymentRef */ - public com.commercetools.api.models.payment.PaymentReference getPayment() { - return this.payment; + public com.commercetools.api.models.payment.PaymentReference getPaymentRef() { + return this.paymentRef; } /** @@ -406,9 +406,9 @@ public OrderPaymentAddedMessage build() { Objects.requireNonNull(sequenceNumber, OrderPaymentAddedMessage.class + ": sequenceNumber is missing"); Objects.requireNonNull(resource, OrderPaymentAddedMessage.class + ": resource is missing"); Objects.requireNonNull(resourceVersion, OrderPaymentAddedMessage.class + ": resourceVersion is missing"); - Objects.requireNonNull(payment, OrderPaymentAddedMessage.class + ": payment is missing"); + Objects.requireNonNull(paymentRef, OrderPaymentAddedMessage.class + ": paymentRef is missing"); return new OrderPaymentAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, payment); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, paymentRef); } /** @@ -417,7 +417,7 @@ public OrderPaymentAddedMessage build() { */ public OrderPaymentAddedMessage buildUnchecked() { return new OrderPaymentAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, payment); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, paymentRef); } /** @@ -445,7 +445,7 @@ public static OrderPaymentAddedMessageBuilder of(final OrderPaymentAddedMessage builder.resource = template.getResource(); builder.resourceVersion = template.getResourceVersion(); builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); - builder.payment = template.getPayment(); + builder.paymentRef = template.getPaymentRef(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageImpl.java index 4fe597a18b9..c80b532d932 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageImpl.java @@ -44,7 +44,7 @@ public class OrderPaymentAddedMessageImpl implements OrderPaymentAddedMessage, M private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; - private com.commercetools.api.models.payment.PaymentReference payment; + private com.commercetools.api.models.payment.PaymentReference paymentRef; /** * create instance with all properties @@ -59,7 +59,7 @@ public class OrderPaymentAddedMessageImpl implements OrderPaymentAddedMessage, M @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, @JsonProperty("resourceVersion") final Long resourceVersion, @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, - @JsonProperty("payment") final com.commercetools.api.models.payment.PaymentReference payment) { + @JsonProperty("paymentRef") final com.commercetools.api.models.payment.PaymentReference paymentRef) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -70,7 +70,7 @@ public class OrderPaymentAddedMessageImpl implements OrderPaymentAddedMessage, M this.resource = resource; this.resourceVersion = resourceVersion; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; - this.payment = payment; + this.paymentRef = paymentRef; this.type = ORDER_PAYMENT_ADDED; } @@ -173,8 +173,8 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU *Payment that was added to the Order.
*/ - public com.commercetools.api.models.payment.PaymentReference getPayment() { - return this.payment; + public com.commercetools.api.models.payment.PaymentReference getPaymentRef() { + return this.paymentRef; } public void setId(final String id) { @@ -218,8 +218,8 @@ public void setResourceUserProvidedIdentifiers( this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; } - public void setPayment(final com.commercetools.api.models.payment.PaymentReference payment) { - this.payment = payment; + public void setPaymentRef(final com.commercetools.api.models.payment.PaymentReference paymentRef) { + this.paymentRef = paymentRef; } @Override @@ -243,7 +243,7 @@ public boolean equals(Object o) { .append(resourceVersion, that.resourceVersion) .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) - .append(payment, that.payment) + .append(paymentRef, that.paymentRef) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -255,7 +255,7 @@ public boolean equals(Object o) { .append(resourceVersion, that.resourceVersion) .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) - .append(payment, that.payment) + .append(paymentRef, that.paymentRef) .isEquals(); } @@ -272,7 +272,7 @@ public int hashCode() { .append(resourceVersion) .append(type) .append(resourceUserProvidedIdentifiers) - .append(payment) + .append(paymentRef) .toHashCode(); } @@ -289,7 +289,7 @@ public String toString() { .append("resourceVersion", resourceVersion) .append("type", type) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) - .append("payment", payment) + .append("paymentRef", paymentRef) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayload.java index d646a1fa534..4409e7dc365 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayload.java @@ -24,7 +24,7 @@ *
* OrderPaymentAddedMessagePayload orderPaymentAddedMessagePayload = OrderPaymentAddedMessagePayload.builder()
- * .payment(paymentBuilder -> paymentBuilder)
+ * .paymentRef(paymentRefBuilder -> paymentRefBuilder)
* .build()
*
* Payment that was added to the Order.
- * @return payment + * @return paymentRef */ @NotNull @Valid - @JsonProperty("payment") - public PaymentReference getPayment(); + @JsonProperty("paymentRef") + public PaymentReference getPaymentRef(); /** *Payment that was added to the Order.
- * @param payment value to be set + * @param paymentRef value to be set */ - public void setPayment(final PaymentReference payment); + public void setPaymentRef(final PaymentReference paymentRef); /** * factory method @@ -70,7 +70,7 @@ public static OrderPaymentAddedMessagePayload of() { */ public static OrderPaymentAddedMessagePayload of(final OrderPaymentAddedMessagePayload template) { OrderPaymentAddedMessagePayloadImpl instance = new OrderPaymentAddedMessagePayloadImpl(); - instance.setPayment(template.getPayment()); + instance.setPaymentRef(template.getPaymentRef()); return instance; } @@ -87,7 +87,8 @@ public static OrderPaymentAddedMessagePayload deepCopy(@Nullable final OrderPaym return null; } OrderPaymentAddedMessagePayloadImpl instance = new OrderPaymentAddedMessagePayloadImpl(); - instance.setPayment(com.commercetools.api.models.payment.PaymentReference.deepCopy(template.getPayment())); + instance.setPaymentRef( + com.commercetools.api.models.payment.PaymentReference.deepCopy(template.getPaymentRef())); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayloadBuilder.java index deaaf232f60..b3b84d55593 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayloadBuilder.java @@ -14,7 +14,7 @@ *
* OrderPaymentAddedMessagePayload orderPaymentAddedMessagePayload = OrderPaymentAddedMessagePayload.builder()
- * .payment(paymentBuilder -> paymentBuilder)
+ * .paymentRef(paymentRefBuilder -> paymentRefBuilder)
* .build()
*
* Payment that was added to the Order.
- * @param builder function to build the payment value + * @param builder function to build the paymentRef value * @return Builder */ - public OrderPaymentAddedMessagePayloadBuilder payment( + public OrderPaymentAddedMessagePayloadBuilder paymentRef( FunctionPayment that was added to the Order.
- * @param builder function to build the payment value + * @param builder function to build the paymentRef value * @return Builder */ - public OrderPaymentAddedMessagePayloadBuilder withPayment( + public OrderPaymentAddedMessagePayloadBuilder withPaymentRef( FunctionPayment that was added to the Order.
- * @param payment value to be set + * @param paymentRef value to be set * @return Builder */ - public OrderPaymentAddedMessagePayloadBuilder payment( - final com.commercetools.api.models.payment.PaymentReference payment) { - this.payment = payment; + public OrderPaymentAddedMessagePayloadBuilder paymentRef( + final com.commercetools.api.models.payment.PaymentReference paymentRef) { + this.paymentRef = paymentRef; return this; } /** *Payment that was added to the Order.
- * @return payment + * @return paymentRef */ - public com.commercetools.api.models.payment.PaymentReference getPayment() { - return this.payment; + public com.commercetools.api.models.payment.PaymentReference getPaymentRef() { + return this.paymentRef; } /** @@ -74,8 +74,8 @@ public com.commercetools.api.models.payment.PaymentReference getPayment() { * @return OrderPaymentAddedMessagePayload */ public OrderPaymentAddedMessagePayload build() { - Objects.requireNonNull(payment, OrderPaymentAddedMessagePayload.class + ": payment is missing"); - return new OrderPaymentAddedMessagePayloadImpl(payment); + Objects.requireNonNull(paymentRef, OrderPaymentAddedMessagePayload.class + ": paymentRef is missing"); + return new OrderPaymentAddedMessagePayloadImpl(paymentRef); } /** @@ -83,7 +83,7 @@ public OrderPaymentAddedMessagePayload build() { * @return OrderPaymentAddedMessagePayload */ public OrderPaymentAddedMessagePayload buildUnchecked() { - return new OrderPaymentAddedMessagePayloadImpl(payment); + return new OrderPaymentAddedMessagePayloadImpl(paymentRef); } /** @@ -101,7 +101,7 @@ public static OrderPaymentAddedMessagePayloadBuilder of() { */ public static OrderPaymentAddedMessagePayloadBuilder of(final OrderPaymentAddedMessagePayload template) { OrderPaymentAddedMessagePayloadBuilder builder = new OrderPaymentAddedMessagePayloadBuilder(); - builder.payment = template.getPayment(); + builder.paymentRef = template.getPaymentRef(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayloadImpl.java index b3fcda8adf6..815f5e422a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayloadImpl.java @@ -24,15 +24,15 @@ public class OrderPaymentAddedMessagePayloadImpl implements OrderPaymentAddedMes private String type; - private com.commercetools.api.models.payment.PaymentReference payment; + private com.commercetools.api.models.payment.PaymentReference paymentRef; /** * create instance with all properties */ @JsonCreator OrderPaymentAddedMessagePayloadImpl( - @JsonProperty("payment") final com.commercetools.api.models.payment.PaymentReference payment) { - this.payment = payment; + @JsonProperty("paymentRef") final com.commercetools.api.models.payment.PaymentReference paymentRef) { + this.paymentRef = paymentRef; this.type = ORDER_PAYMENT_ADDED; } @@ -55,12 +55,12 @@ public String getType() { *Payment that was added to the Order.
*/ - public com.commercetools.api.models.payment.PaymentReference getPayment() { - return this.payment; + public com.commercetools.api.models.payment.PaymentReference getPaymentRef() { + return this.paymentRef; } - public void setPayment(final com.commercetools.api.models.payment.PaymentReference payment) { - this.payment = payment; + public void setPaymentRef(final com.commercetools.api.models.payment.PaymentReference paymentRef) { + this.paymentRef = paymentRef; } @Override @@ -74,21 +74,21 @@ public boolean equals(Object o) { OrderPaymentAddedMessagePayloadImpl that = (OrderPaymentAddedMessagePayloadImpl) o; return new EqualsBuilder().append(type, that.type) - .append(payment, that.payment) + .append(paymentRef, that.paymentRef) .append(type, that.type) - .append(payment, that.payment) + .append(paymentRef, that.paymentRef) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(payment).toHashCode(); + return new HashCodeBuilder(17, 37).append(type).append(paymentRef).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) - .append("payment", payment) + .append("paymentRef", paymentRef) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentRemovedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentRemovedMessage.java new file mode 100644 index 00000000000..126e551fe68 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentRemovedMessage.java @@ -0,0 +1,181 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.payment.PaymentReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *Generated after a successful Remove Payment update action or when a Payment is removed via Order Edits.
+ * + *
+ * OrderPaymentRemovedMessage orderPaymentRemovedMessage = OrderPaymentRemovedMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .paymentRef(paymentRefBuilder -> paymentRefBuilder)
+ * .removedPaymentInfo(true)
+ * .build()
+ *
+ * Payment that was removed from the Order.
+ * @return paymentRef + */ + @NotNull + @Valid + @JsonProperty("paymentRef") + public PaymentReference getPaymentRef(); + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
Payment that was removed from the Order.
+ * @param paymentRef value to be set + */ + + public void setPaymentRef(final PaymentReference paymentRef); + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
+ * OrderPaymentRemovedMessage orderPaymentRemovedMessage = OrderPaymentRemovedMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .paymentRef(paymentRefBuilder -> paymentRefBuilder)
+ * .removedPaymentInfo(true)
+ * .build()
+ *
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @param id value to be set + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder lastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder withLastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *IDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder createdBy( + FunctionIDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder withCreatedBy( + FunctionIDs and references that created the Message.
+ * @param createdBy value to be set + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @param resource value to be set + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder resource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *Reference to the resource on which the change or action was performed.
+ * @param builder function to build the resource value + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder resource( + FunctionVersion of the resource on which the change or action was performed.
+ * @param resourceVersion value to be set + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
Payment that was removed from the Order.
+ * @param builder function to build the paymentRef value + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder paymentRef( + FunctionPayment that was removed from the Order.
+ * @param builder function to build the paymentRef value + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder withPaymentRef( + FunctionPayment that was removed from the Order.
+ * @param paymentRef value to be set + * @return Builder + */ + + public OrderPaymentRemovedMessageBuilder paymentRef( + final com.commercetools.api.models.payment.PaymentReference paymentRef) { + this.paymentRef = paymentRef; + return this; + } + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
Payment that was removed from the Order.
+ * @return paymentRef + */ + + public com.commercetools.api.models.payment.PaymentReference getPaymentRef() { + return this.paymentRef; + } + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
Generated after a successful Remove Payment update action or when a Payment is removed via Order Edits.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class OrderPaymentRemovedMessageImpl implements OrderPaymentRemovedMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.payment.PaymentReference paymentRef; + + private Boolean removedPaymentInfo; + + /** + * create instance with all properties + */ + @JsonCreator + OrderPaymentRemovedMessageImpl(@JsonProperty("id") final String id, @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, + @JsonProperty("paymentRef") final com.commercetools.api.models.payment.PaymentReference paymentRef, + @JsonProperty("removedPaymentInfo") final Boolean removedPaymentInfo) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.paymentRef = paymentRef; + this.removedPaymentInfo = removedPaymentInfo; + this.type = ORDER_PAYMENT_REMOVED; + } + + /** + * create empty instance + */ + public OrderPaymentRemovedMessageImpl() { + this.type = ORDER_PAYMENT_REMOVED; + } + + /** + *Unique identifier of the Message. Can be used to track which Messages have been processed.
+ */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *Message Type of the Message.
+ */ + + public String getType() { + return this.type; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
Payment that was removed from the Order.
+ */ + + public com.commercetools.api.models.payment.PaymentReference getPaymentRef() { + return this.paymentRef; + } + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
Generated after a successful Remove Payment update action or when a Payment is removed via Order Edits.
+ * + *
+ * OrderPaymentRemovedMessagePayload orderPaymentRemovedMessagePayload = OrderPaymentRemovedMessagePayload.builder()
+ * .paymentRef(paymentRefBuilder -> paymentRefBuilder)
+ * .removedPaymentInfo(true)
+ * .build()
+ *
+ * Payment that was removed from the Order.
+ * @return paymentRef + */ + @NotNull + @Valid + @JsonProperty("paymentRef") + public PaymentReference getPaymentRef(); + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
Payment that was removed from the Order.
+ * @param paymentRef value to be set + */ + + public void setPaymentRef(final PaymentReference paymentRef); + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
+ * OrderPaymentRemovedMessagePayload orderPaymentRemovedMessagePayload = OrderPaymentRemovedMessagePayload.builder()
+ * .paymentRef(paymentRefBuilder -> paymentRefBuilder)
+ * .removedPaymentInfo(true)
+ * .build()
+ *
+ * Payment that was removed from the Order.
+ * @param builder function to build the paymentRef value + * @return Builder + */ + + public OrderPaymentRemovedMessagePayloadBuilder paymentRef( + FunctionPayment that was removed from the Order.
+ * @param builder function to build the paymentRef value + * @return Builder + */ + + public OrderPaymentRemovedMessagePayloadBuilder withPaymentRef( + FunctionPayment that was removed from the Order.
+ * @param paymentRef value to be set + * @return Builder + */ + + public OrderPaymentRemovedMessagePayloadBuilder paymentRef( + final com.commercetools.api.models.payment.PaymentReference paymentRef) { + this.paymentRef = paymentRef; + return this; + } + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
Payment that was removed from the Order.
+ * @return paymentRef + */ + + public com.commercetools.api.models.payment.PaymentReference getPaymentRef() { + return this.paymentRef; + } + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
Generated after a successful Remove Payment update action or when a Payment is removed via Order Edits.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class OrderPaymentRemovedMessagePayloadImpl implements OrderPaymentRemovedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.payment.PaymentReference paymentRef; + + private Boolean removedPaymentInfo; + + /** + * create instance with all properties + */ + @JsonCreator + OrderPaymentRemovedMessagePayloadImpl( + @JsonProperty("paymentRef") final com.commercetools.api.models.payment.PaymentReference paymentRef, + @JsonProperty("removedPaymentInfo") final Boolean removedPaymentInfo) { + this.paymentRef = paymentRef; + this.removedPaymentInfo = removedPaymentInfo; + this.type = ORDER_PAYMENT_REMOVED; + } + + /** + * create empty instance + */ + public OrderPaymentRemovedMessagePayloadImpl() { + this.type = ORDER_PAYMENT_REMOVED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *Payment that was removed from the Order.
+ */ + + public com.commercetools.api.models.payment.PaymentReference getPaymentRef() { + return this.paymentRef; + } + + /** + *Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
Generated after a RecurringOrder failed to process an Order.
+ * + *
+ * RecurringOrderFailedMessage recurringOrderFailedMessage = RecurringOrderFailedMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .cartId("{cartId}")
+ * .failedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .failureReason("{failureReason}")
+ * .orderScheduledAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .build()
+ *
+ * ID of the Cart used in the failed Order creation attempt.
+ * @return cartId + */ + @NotNull + @JsonProperty("cartId") + public String getCartId(); + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ * @return failedAt + */ + @NotNull + @JsonProperty("failedAt") + public ZonedDateTime getFailedAt(); + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ * @return failureReason + */ + @NotNull + @JsonProperty("failureReason") + public String getFailureReason(); + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ * @return orderScheduledAt + */ + @NotNull + @JsonProperty("orderScheduledAt") + public ZonedDateTime getOrderScheduledAt(); + + /** + *Errors due to which the Order creation failed.
+ * @return errors + */ + @Valid + @JsonProperty("errors") + public ListID of the Cart used in the failed Order creation attempt.
+ * @param cartId value to be set + */ + + public void setCartId(final String cartId); + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ * @param failedAt value to be set + */ + + public void setFailedAt(final ZonedDateTime failedAt); + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ * @param failureReason value to be set + */ + + public void setFailureReason(final String failureReason); + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ * @param orderScheduledAt value to be set + */ + + public void setOrderScheduledAt(final ZonedDateTime orderScheduledAt); + + /** + *Errors due to which the Order creation failed.
+ * @param errors values to be set + */ + + @JsonIgnore + public void setErrors(final RecurringOrderFailureError... errors); + + /** + *Errors due to which the Order creation failed.
+ * @param errors values to be set + */ + + public void setErrors(final List
+ * RecurringOrderFailedMessage recurringOrderFailedMessage = RecurringOrderFailedMessage.builder()
+ * .id("{id}")
+ * .version(0.3)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .sequenceNumber(0.3)
+ * .resource(resourceBuilder -> resourceBuilder)
+ * .resourceVersion(0.3)
+ * .cartId("{cartId}")
+ * .failedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .failureReason("{failureReason}")
+ * .orderScheduledAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .build()
+ *
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ * @param id value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder lastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder withLastModifiedBy( + FunctionIDs and references that last modified the Message.
+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *IDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder createdBy( + FunctionIDs and references that created the Message.
+ * @param builder function to build the createdBy value + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder withCreatedBy( + FunctionIDs and references that created the Message.
+ * @param createdBy value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @param resource value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder resource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *Reference to the resource on which the change or action was performed.
+ * @param builder function to build the resource value + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder resource( + FunctionVersion of the resource on which the change or action was performed.
+ * @param resourceVersion value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
ID of the Cart used in the failed Order creation attempt.
+ * @param cartId value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder cartId(final String cartId) { + this.cartId = cartId; + return this; + } + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ * @param failedAt value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder failedAt(final java.time.ZonedDateTime failedAt) { + this.failedAt = failedAt; + return this; + } + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ * @param failureReason value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder failureReason(final String failureReason) { + this.failureReason = failureReason; + return this; + } + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ * @param orderScheduledAt value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder orderScheduledAt(final java.time.ZonedDateTime orderScheduledAt) { + this.orderScheduledAt = orderScheduledAt; + return this; + } + + /** + *Errors due to which the Order creation failed.
+ * @param errors value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder errors( + @Nullable final com.commercetools.api.models.error.RecurringOrderFailureError... errors) { + this.errors = new ArrayList<>(Arrays.asList(errors)); + return this; + } + + /** + *Errors due to which the Order creation failed.
+ * @param errors value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder errors( + @Nullable final java.util.ListErrors due to which the Order creation failed.
+ * @param errors value to be set + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder plusErrors( + @Nullable final com.commercetools.api.models.error.RecurringOrderFailureError... errors) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.addAll(Arrays.asList(errors)); + return this; + } + + /** + *Errors due to which the Order creation failed.
+ * @param builder function to build the errors value + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder plusErrors( + FunctionErrors due to which the Order creation failed.
+ * @param builder function to build the errors value + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder withErrors( + FunctionErrors due to which the Order creation failed.
+ * @param builder function to build the errors value + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder addErrors( + FunctionErrors due to which the Order creation failed.
+ * @param builder function to build the errors value + * @return Builder + */ + + public RecurringOrderFailedMessageBuilder setErrors( + FunctionUnique identifier of the Message. Can be used to track which Messages have been processed.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
ID of the Cart used in the failed Order creation attempt.
+ * @return cartId + */ + + public String getCartId() { + return this.cartId; + } + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ * @return failedAt + */ + + public java.time.ZonedDateTime getFailedAt() { + return this.failedAt; + } + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ * @return failureReason + */ + + public String getFailureReason() { + return this.failureReason; + } + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ * @return orderScheduledAt + */ + + public java.time.ZonedDateTime getOrderScheduledAt() { + return this.orderScheduledAt; + } + + /** + *Errors due to which the Order creation failed.
+ * @return errors + */ + + @Nullable + public java.util.ListGenerated after a RecurringOrder failed to process an Order.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class RecurringOrderFailedMessageImpl implements RecurringOrderFailedMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private String cartId; + + private java.time.ZonedDateTime failedAt; + + private String failureReason; + + private java.time.ZonedDateTime orderScheduledAt; + + private java.util.ListUnique identifier of the Message. Can be used to track which Messages have been processed.
+ */ + + public String getId() { + return this.id; + } + + /** + *Version of a resource. In case of Messages, this is always 1.
Date and time (UTC) the Message was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Value of createdAt.
IDs and references that last modified the Message.
+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *IDs and references that created the Message.
+ */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.
Reference to the resource on which the change or action was performed.
+ */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *Version of the resource on which the change or action was performed.
+ */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *Message Type of the Message.
+ */ + + public String getType() { + return this.type; + } + + /** + *User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.
ID of the Cart used in the failed Order creation attempt.
+ */ + + public String getCartId() { + return this.cartId; + } + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ */ + + public java.time.ZonedDateTime getFailedAt() { + return this.failedAt; + } + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ */ + + public String getFailureReason() { + return this.failureReason; + } + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ */ + + public java.time.ZonedDateTime getOrderScheduledAt() { + return this.orderScheduledAt; + } + + /** + *Errors due to which the Order creation failed.
+ */ + + public java.util.ListGenerated after a RecurringOrder failed to process an Order.
+ * + *
+ * RecurringOrderFailedMessagePayload recurringOrderFailedMessagePayload = RecurringOrderFailedMessagePayload.builder()
+ * .cartId("{cartId}")
+ * .failedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .failureReason("{failureReason}")
+ * .orderScheduledAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .build()
+ *
+ * ID of the Cart used in the failed Order creation attempt.
+ * @return cartId + */ + @NotNull + @JsonProperty("cartId") + public String getCartId(); + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ * @return failedAt + */ + @NotNull + @JsonProperty("failedAt") + public ZonedDateTime getFailedAt(); + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ * @return failureReason + */ + @NotNull + @JsonProperty("failureReason") + public String getFailureReason(); + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ * @return orderScheduledAt + */ + @NotNull + @JsonProperty("orderScheduledAt") + public ZonedDateTime getOrderScheduledAt(); + + /** + *Errors due to which the Order creation failed.
+ * @return errors + */ + @Valid + @JsonProperty("errors") + public ListID of the Cart used in the failed Order creation attempt.
+ * @param cartId value to be set + */ + + public void setCartId(final String cartId); + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ * @param failedAt value to be set + */ + + public void setFailedAt(final ZonedDateTime failedAt); + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ * @param failureReason value to be set + */ + + public void setFailureReason(final String failureReason); + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ * @param orderScheduledAt value to be set + */ + + public void setOrderScheduledAt(final ZonedDateTime orderScheduledAt); + + /** + *Errors due to which the Order creation failed.
+ * @param errors values to be set + */ + + @JsonIgnore + public void setErrors(final RecurringOrderFailureError... errors); + + /** + *Errors due to which the Order creation failed.
+ * @param errors values to be set + */ + + public void setErrors(final List
+ * RecurringOrderFailedMessagePayload recurringOrderFailedMessagePayload = RecurringOrderFailedMessagePayload.builder()
+ * .cartId("{cartId}")
+ * .failedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .failureReason("{failureReason}")
+ * .orderScheduledAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .build()
+ *
+ * ID of the Cart used in the failed Order creation attempt.
+ * @param cartId value to be set + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder cartId(final String cartId) { + this.cartId = cartId; + return this; + } + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ * @param failedAt value to be set + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder failedAt(final java.time.ZonedDateTime failedAt) { + this.failedAt = failedAt; + return this; + } + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ * @param failureReason value to be set + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder failureReason(final String failureReason) { + this.failureReason = failureReason; + return this; + } + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ * @param orderScheduledAt value to be set + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder orderScheduledAt(final java.time.ZonedDateTime orderScheduledAt) { + this.orderScheduledAt = orderScheduledAt; + return this; + } + + /** + *Errors due to which the Order creation failed.
+ * @param errors value to be set + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder errors( + @Nullable final com.commercetools.api.models.error.RecurringOrderFailureError... errors) { + this.errors = new ArrayList<>(Arrays.asList(errors)); + return this; + } + + /** + *Errors due to which the Order creation failed.
+ * @param errors value to be set + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder errors( + @Nullable final java.util.ListErrors due to which the Order creation failed.
+ * @param errors value to be set + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder plusErrors( + @Nullable final com.commercetools.api.models.error.RecurringOrderFailureError... errors) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.addAll(Arrays.asList(errors)); + return this; + } + + /** + *Errors due to which the Order creation failed.
+ * @param builder function to build the errors value + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder plusErrors( + FunctionErrors due to which the Order creation failed.
+ * @param builder function to build the errors value + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder withErrors( + FunctionErrors due to which the Order creation failed.
+ * @param builder function to build the errors value + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder addErrors( + FunctionErrors due to which the Order creation failed.
+ * @param builder function to build the errors value + * @return Builder + */ + + public RecurringOrderFailedMessagePayloadBuilder setErrors( + FunctionID of the Cart used in the failed Order creation attempt.
+ * @return cartId + */ + + public String getCartId() { + return this.cartId; + } + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ * @return failedAt + */ + + public java.time.ZonedDateTime getFailedAt() { + return this.failedAt; + } + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ * @return failureReason + */ + + public String getFailureReason() { + return this.failureReason; + } + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ * @return orderScheduledAt + */ + + public java.time.ZonedDateTime getOrderScheduledAt() { + return this.orderScheduledAt; + } + + /** + *Errors due to which the Order creation failed.
+ * @return errors + */ + + @Nullable + public java.util.ListGenerated after a RecurringOrder failed to process an Order.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class RecurringOrderFailedMessagePayloadImpl implements RecurringOrderFailedMessagePayload, ModelBase { + + private String type; + + private String cartId; + + private java.time.ZonedDateTime failedAt; + + private String failureReason; + + private java.time.ZonedDateTime orderScheduledAt; + + private java.util.ListID of the Cart used in the failed Order creation attempt.
+ */ + + public String getCartId() { + return this.cartId; + } + + /** + *Date and time (UTC) when the Order creation attempt failed.
+ */ + + public java.time.ZonedDateTime getFailedAt() { + return this.failedAt; + } + + /** + *Description of why the Order creation failed, such as insufficient stock.
+ */ + + public String getFailureReason() { + return this.failureReason; + } + + /** + *Date and time (UTC) the Order was scheduled to be created.
+ */ + + public java.time.ZonedDateTime getOrderScheduledAt() { + return this.orderScheduledAt; + } + + /** + *Errors due to which the Order creation failed.
+ */ + + public java.util.ListDate and time (UTC) the Return Item was intitially created.
+ *Date and time (UTC) the Return Item was initially created.
* @param createdAt value to be set * @return Builder */ @@ -274,7 +274,7 @@ public java.time.ZonedDateTime getLastModifiedAt() { } /** - *Date and time (UTC) the Return Item was intitially created.
+ *Date and time (UTC) the Return Item was initially created.
* @return createdAt */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/CustomLineItemReturnItemImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/CustomLineItemReturnItemImpl.java index 1d23af23271..ad1b5bad92f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/CustomLineItemReturnItemImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/CustomLineItemReturnItemImpl.java @@ -153,7 +153,7 @@ public java.time.ZonedDateTime getLastModifiedAt() { } /** - *Date and time (UTC) the Return Item was intitially created.
+ *Date and time (UTC) the Return Item was initially created.
*/ public java.time.ZonedDateTime getCreatedAt() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemBuilder.java index ce1b27512d7..a4792caac29 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemBuilder.java @@ -172,7 +172,7 @@ public LineItemReturnItemBuilder lastModifiedAt(final java.time.ZonedDateTime la } /** - *Date and time (UTC) the Return Item was intitially created.
+ *Date and time (UTC) the Return Item was initially created.
* @param createdAt value to be set * @return Builder */ @@ -273,7 +273,7 @@ public java.time.ZonedDateTime getLastModifiedAt() { } /** - *Date and time (UTC) the Return Item was intitially created.
+ *Date and time (UTC) the Return Item was initially created.
* @return createdAt */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemImpl.java index e81a427edc1..b554a1b6189 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/LineItemReturnItemImpl.java @@ -153,7 +153,7 @@ public java.time.ZonedDateTime getLastModifiedAt() { } /** - *Date and time (UTC) the Return Item was intitially created.
+ *Date and time (UTC) the Return Item was initially created.
*/ public java.time.ZonedDateTime getCreatedAt() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderAddDeliveryAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderAddDeliveryAction.java index 44fd03c00e5..40b38d6dc0e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderAddDeliveryAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderAddDeliveryAction.java @@ -19,6 +19,7 @@ /** *A Delivery can only be added to an Order if its shippingInfo (for shippingMode = Single), or its shipping (for shippingMode = Multiple) exists.
Multiple Deliveries can be added to the same Order to represent split or partial shipments. However, the API doesn't validate that the cumulative quantities of Line Items or Custom Line Items across all Deliveries match or stay within the originally ordered quantities. For more information, see Multiple Deliveries on the Shipping and Delivery overview page.
*Produces the Delivery Added Message.
* *A Delivery can only be added to an Order if its shippingInfo (for shippingMode = Single), or its shipping (for shippingMode = Multiple) exists.
Multiple Deliveries can be added to the same Order to represent split or partial shipments. However, the API doesn't validate that the cumulative quantities of Line Items or Custom Line Items across all Deliveries match or stay within the originally ordered quantities. For more information, see Multiple Deliveries on the Shipping and Delivery overview page.
*Produces the Delivery Added Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderAddPaymentAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderAddPaymentAction.java index 8bec0638add..354b82ac389 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderAddPaymentAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderAddPaymentAction.java @@ -17,7 +17,7 @@ import jakarta.validation.constraints.NotNull; /** - * OrderAddPaymentAction + *Produces the Order Payment Added Message.
* *Produces the Order Payment Added Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class OrderAddPaymentActionImpl implements OrderAddPaymentAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderRemovePaymentAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderRemovePaymentAction.java index 33751c87746..ebdae709708 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderRemovePaymentAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderRemovePaymentAction.java @@ -17,7 +17,7 @@ import jakarta.validation.constraints.NotNull; /** - * OrderRemovePaymentAction + *Produces the Order Payment Removed Message.
* *Produces the Order Payment Removed Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class OrderRemovePaymentActionImpl implements OrderRemovePaymentAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItem.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItem.java index 820d29104a0..5d9157cb669 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItem.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItem.java @@ -118,7 +118,7 @@ public interface ReturnItem extends com.commercetools.api.models.CustomizableDate and time (UTC) the Return Item was initially created.
* @return createdAt */ @NotNull @@ -186,7 +186,7 @@ public interface ReturnItem extends com.commercetools.api.models.CustomizableDate and time (UTC) the Return Item was initially created.
* @param createdAt value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItemImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItemImpl.java index 4f6d0cbcaec..5f6c507394e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItemImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ReturnItemImpl.java @@ -149,7 +149,7 @@ public java.time.ZonedDateTime getLastModifiedAt() { } /** - *Date and time (UTC) the Return Item was intitially created.
+ *Date and time (UTC) the Return Item was initially created.
*/ public java.time.ZonedDateTime getCreatedAt() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDeliveryAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDeliveryAction.java index 810a6fb6ff6..e01040ffb4c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDeliveryAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDeliveryAction.java @@ -22,6 +22,7 @@ /** *A Delivery can only be added to an Order if its shippingInfo (for shippingMode = Single), or its shipping (for shippingMode = Multiple) exists.
Multiple Deliveries can be added to the same Order to represent split or partial shipments. However, the API doesn't validate that the cumulative quantities of Line Items or Custom Line Items across all Deliveries match or stay within the originally ordered quantities. For more information, see Multiple Deliveries on the Shipping and Delivery overview page.
*Produces the Delivery Added Message.
* *A Delivery can only be added to an Order if its shippingInfo (for shippingMode = Single), or its shipping (for shippingMode = Multiple) exists.
Multiple Deliveries can be added to the same Order to represent split or partial shipments. However, the API doesn't validate that the cumulative quantities of Line Items or Custom Line Items across all Deliveries match or stay within the originally ordered quantities. For more information, see Multiple Deliveries on the Shipping and Delivery overview page.
*Produces the Delivery Added Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDiscountCodeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDiscountCodeAction.java index 1c663a6c2cd..b4989bdd4c9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDiscountCodeAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDiscountCodeAction.java @@ -16,7 +16,8 @@ import jakarta.validation.constraints.NotNull; /** - *Adds a DiscountCode to the Cart to activate the related Cart Discounts. Adding a Discount Code is only possible if no DirectDiscount has been applied to the Order.
+ *Adds a DiscountCode to the Order to activate the related Cart Discounts. If the related Cart Discounts are inactive or invalid, or belong to a different Store than the Order, a DiscountCodeNonApplicableError is returned.
+ *A Discount Code can be added only if no DirectDiscount has been applied to the Order.
*The maximum number of Discount Codes in a Cart is restricted by a limit.
*Specific Error Code: MatchingPriceNotFound
* diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDiscountCodeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDiscountCodeActionImpl.java index bc32580c4f7..2197fdb8e6b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDiscountCodeActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddDiscountCodeActionImpl.java @@ -17,7 +17,8 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *Adds a DiscountCode to the Cart to activate the related Cart Discounts. Adding a Discount Code is only possible if no DirectDiscount has been applied to the Order.
+ *Adds a DiscountCode to the Order to activate the related Cart Discounts. If the related Cart Discounts are inactive or invalid, or belong to a different Store than the Order, a DiscountCodeNonApplicableError is returned.
+ *A Discount Code can be added only if no DirectDiscount has been applied to the Order.
*The maximum number of Discount Codes in a Cart is restricted by a limit.
*Specific Error Code: MatchingPriceNotFound
*/ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddPaymentAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddPaymentAction.java index d9f571d84a1..09a3420874c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddPaymentAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderAddPaymentAction.java @@ -18,7 +18,7 @@ import jakarta.validation.constraints.NotNull; /** - * StagedOrderAddPaymentAction + *Produces the Order Payment Added Message.
* *Produces the Order Payment Added Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class StagedOrderAddPaymentActionImpl implements StagedOrderAddPaymentAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemAction.java index 68b51737eb1..b3c7c0ce030 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemAction.java @@ -57,7 +57,7 @@ public interface StagedOrderRemoveLineItemAction extends StagedOrderUpdateAction public String getLineItemKey(); /** - *New value to set. If absent or 0, the Line Item is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Order.
* @return quantity */ @@ -104,7 +104,7 @@ public interface StagedOrderRemoveLineItemAction extends StagedOrderUpdateAction public void setLineItemKey(final String lineItemKey); /** - *New value to set. If absent or 0, the Line Item is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Order.
* @param quantity value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemActionBuilder.java index 4ccb0dd96e7..c81abec60bd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemActionBuilder.java @@ -64,7 +64,7 @@ public StagedOrderRemoveLineItemActionBuilder lineItemKey(@Nullable final String } /** - *New value to set. If absent or 0, the Line Item is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Order.
* @param quantity value to be set * @return Builder */ @@ -212,7 +212,7 @@ public String getLineItemKey() { } /** - *New value to set. If absent or 0, the Line Item is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Order.
* @return quantity */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemActionImpl.java index 8f8a9cecc63..2ded7f1846f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemoveLineItemActionImpl.java @@ -86,7 +86,7 @@ public String getLineItemKey() { } /** - *New value to set. If absent or 0, the Line Item is removed from the Cart.
Amount to subtract from the LineItem quantity. If omitted, the LineItem is removed from the Order.
*/ public Long getQuantity() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemovePaymentAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemovePaymentAction.java index ce92f24ab34..b7a7ae79aef 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemovePaymentAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/StagedOrderRemovePaymentAction.java @@ -18,7 +18,7 @@ import jakarta.validation.constraints.NotNull; /** - * StagedOrderRemovePaymentAction + *Produces the Order Payment Removed Message.
* *Produces the Order Payment Removed Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class StagedOrderRemovePaymentActionImpl implements StagedOrderRemovePaymentAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscount.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscount.java index 2a7c7add5e2..8d69aa7a3b8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscount.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscount.java @@ -158,7 +158,7 @@ public interface ProductDiscount public Boolean getIsActive(); /** - *References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
References of all the resources that are addressed in the predicate.
References to all resources addressed in the predicate by their IDs. This value is generated by the platform.
* StandalonePriceRemovePriceTierAction standalonePriceRemovePriceTierAction = StandalonePriceRemovePriceTierAction.builder()
- * .tierMinimumQuantity(0.3)
+ * .minimumQuantity(0.3)
* .build()
*
* The minimumQuantity of the PriceTier to be removed from the tiers field of the StandalonePrice.
The minimumQuantity of the PriceTier to be removed from the tiers field of the StandalonePrice.
* StandalonePriceRemovePriceTierAction standalonePriceRemovePriceTierAction = StandalonePriceRemovePriceTierAction.builder()
- * .tierMinimumQuantity(0.3)
+ * .minimumQuantity(0.3)
* .build()
*
* The minimumQuantity of the PriceTier to be removed from the tiers field of the StandalonePrice.
The minimumQuantity of the PriceTier to be removed from the tiers field of the StandalonePrice.
The minimumQuantity of the PriceTier to be removed from the tiers field of the StandalonePrice.
inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are available in this Store.inactive and there's at least a Product Selection of mode Individual, no Product is available in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.active Product Selection is provided, only active Product Selections are considered to compute the availability in this Store.