diff --git a/changes.md b/changes.md index 40b658bb632..343aa29599a 100644 --- a/changes.md +++ b/changes.md @@ -3,779 +3,230 @@
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 type `BusinessUnitAddCustomerGroupAssignmentAction` +- added type `BusinessUnitRemoveCustomerGroupAssignmentAction` +- added type `BusinessUnitSetCustomerGroupAssignmentsAction` +- added type `AddressRole` +- added type `BusinessUnitCustomerGroupAssignmentAddedMessage` +- added type `BusinessUnitCustomerGroupAssignmentRemovedMessage` +- added type `BusinessUnitCustomerGroupAssignmentsSetMessage` +- added type `CustomerBillingAddressAddedMessage` +- added type `CustomerBillingAddressRemovedMessage` +- added type `CustomerExternalIdSetMessage` +- added type `CustomerShippingAddressAddedMessage` +- added type `CustomerShippingAddressRemovedMessage` +- added type `BusinessUnitCustomerGroupAssignmentAddedMessagePayload` +- added type `BusinessUnitCustomerGroupAssignmentRemovedMessagePayload` +- added type `BusinessUnitCustomerGroupAssignmentsSetMessagePayload` +- added type `CustomerBillingAddressAddedMessagePayload` +- added type `CustomerBillingAddressRemovedMessagePayload` +- added type `CustomerExternalIdSetMessagePayload` +- added type `CustomerShippingAddressAddedMessagePayload` +- added type `CustomerShippingAddressRemovedMessagePayload`
-Deprecated Type(s) - -- type `ProductLegacySetSkuAction` is removed -
- - -
-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` -
- -**History changes** - -
-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) +MarkDeprecated Type(s) -- :warning: changed type `Address` from type `object` to `BaseAddress` -- :warning: changed type `GeoLocation` from type `object` to `GeoJson` +- marked type `ProductSearchProjectionParams` as deprecated
-MarkDeprecated Type(s) +Removed 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 +- :warning: removed type `MyCartSetCustomLineItemRecurrenceInfoAction` +- :warning: removed type `MyCartSetLineItemRecurrenceInfoAction`
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` +- added enum `payment-method` to type `ResourceTypeId` +- added enum `payment-method-info` to type `ResourceTypeId`
-Removed Enum(s) +MarkDeprecated Property(s) -- :warning: removed enum `changeAmountAuthorized` from type `UpdateType` -- :warning: removed enum `Failed` from type `QuoteState` +- marked property `ProductSearchRequest::productProjectionParameters` as deprecated +- marked property `ProductSearchResult::productProjection` as deprecated
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` +- :warning: changed property `shippingAddressIds` of type `BusinessUnit` to be required +- :warning: changed property `billingAddressIds` of type `BusinessUnit` to be required +- :warning: changed property `shippingAddressIds` of type `Company` to be required +- :warning: changed property `billingAddressIds` of type `Company` to be required +- :warning: changed property `shippingAddressIds` of type `Division` to be required +- :warning: changed property `billingAddressIds` of type `Division` to be required +- :warning: changed property `shippingAddressIds` of type `Customer` to be required +- :warning: changed property `billingAddressIds` of type `Customer` to be required +- :warning: changed property `customerGroupAssignments` of type `Customer` to be required +- :warning: changed property `customerGroupAssignments` of type `CustomerGroupAssignmentsSetMessage` to be required +- :warning: changed property `customerGroupAssignments` of type `CustomerGroupAssignmentsSetMessagePayload` to be required
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` +- :warning: removed property `order` from type `RecurringOrderCreatedMessage` +- :warning: removed property `order` from type `RecurringOrderCreatedMessagePayload`
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 property `customerGroupAssignments` to type `BusinessUnit` +- added property `customerGroupAssignments` to type `BusinessUnitDraft` +- added property `customerGroupAssignments` to type `Company` +- added property `customerGroupAssignments` to type `CompanyDraft` +- added property `customerGroupAssignments` to type `Division` +- added property `customerGroupAssignments` to type `DivisionDraft` +- added property `addressRoles` to type `BusinessUnitAddressChangedMessage` +- added property `addressRoles` to type `BusinessUnitAddressRemovedMessage` +- added property `addressRoles` to type `CustomerAddressChangedMessage` +- added property `addressRoles` to type `CustomerAddressRemovedMessage` +- added property `email` to type `CustomerDeletedMessage` +- added property `oldEmail` to type `CustomerEmailChangedMessage` +- added property `oldCustomerGroupAssignments` to type `CustomerGroupAssignmentsSetMessage` +- added property `recurringOrder` to type `RecurringOrderCreatedMessage` +- added property `addressRoles` to type `BusinessUnitAddressChangedMessagePayload` +- added property `addressRoles` to type `BusinessUnitAddressRemovedMessagePayload` +- added property `addressRoles` to type `CustomerAddressChangedMessagePayload` +- added property `addressRoles` to type `CustomerAddressRemovedMessagePayload` +- added property `email` to type `CustomerDeletedMessagePayload` +- added property `oldEmail` to type `CustomerEmailChangedMessagePayload` +- added property `oldCustomerGroupAssignments` to type `CustomerGroupAssignmentsSetMessagePayload` +- added property `recurringOrder` to type `RecurringOrderCreatedMessagePayload`
-**Checkout changes** +**History changes**
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 type `DirectDiscount` +- added type `DiscountTypeCombination` +- added type `BestDeal` +- added type `Stacking` +- added type `ShippingMethodLabel` +- added type `ChangeCustomLineItemPriceRoundingModeChange` +- added type `ChangeLineItemPriceRoundingModeChange` +- added type `SetDirectDiscountsChange` +- added type `SetReferencesChange` +- added type `SetShippingInfoDiscountedPriceChange` +- added type `SetShippingMethodTaxCategoryChange` +- added type `SetTaxedShippingPriceChange` +- added type `ShippingMethodAddShippingRateChange` +- added type `ShippingMethodAddZoneChange` +- added type `ShippingMethodChangeActiveChange` +- added type `ShippingMethodChangeIsDefaultChange` +- added type `ShippingMethodChangeNameChange` +- added type `ShippingMethodChangeTaxCategoryChange` +- added type `ShippingMethodRemoveShippingRateChange` +- added type `ShippingMethodRemoveZoneChange` +- added type `ShippingMethodSetCustomFieldChange` +- added type `ShippingMethodSetCustomTypeChange` +- added type `ShippingMethodSetKeyChange` +- added type `ShippingMethodSetLocalizedDescriptionChange` +- added type `ShippingMethodSetLocalizedNameChange` +- added type `ShippingMethodSetPredicateChange` +- added type `ZoneResourceIdentifier` +- added type `ChangeDiscountTypeCombinationChange` +- added type `StandalonePriceChangeActiveChange` +- added type `StandalonePriceChangeValueChange` +- added type `StandalonePriceSetCustomFieldChange` +- added type `StandalonePriceSetCustomTypeChange` +- added type `StandalonePriceSetDiscountedPriceChange` +- added type `StandalonePriceSetKeyChange` +- added type `StandalonePriceSetPriceTiersChange` +- added type `StandalonePriceSetValidFromAndUntilChange` +- added type `StandalonePriceSetValidFromChange` +- added type `StandalonePriceSetValidUntilChange` +- added type `StandalonePriceLabel`
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}` +- added enum `shipping-method` to type `ChangeHistoryResourceType` +- added enum `standalone-price` to type `ChangeHistoryResourceType` +- added enum `addShipping` to type `UpdateType` +- added enum `addShippingRate` to type `UpdateType` +- added enum `addZone` to type `UpdateType` +- added enum `changeActive` to type `UpdateType` +- added enum `changeApprovalRuleMode` to type `UpdateType` +- added enum `changeCustomLineItemPriceRoundingMode` to type `UpdateType` +- added enum `changeCustomer` to type `UpdateType` +- added enum `changeDiscountTypeCombination` to type `UpdateType` +- added enum `changeIncludedInStatistics` to type `UpdateType` +- added enum `changeIsDefault` to type `UpdateType` +- added enum `changeLastVariantId` to type `UpdateType` +- added enum `changeLineItemPriceRoundingMode` to type `UpdateType` +- added enum `changeLineItemPublished` to type `UpdateType` +- added enum `changePriceRoundingMode` to type `UpdateType` +- added enum `changeTaxCategory` to type `UpdateType` +- added enum `changeTopLevelUnit` to type `UpdateType` +- added enum `excludeProduct` to type `UpdateType` +- added enum `removeShipping` to type `UpdateType` +- added enum `removeShippingRate` to type `UpdateType` +- added enum `removeZone` to type `UpdateType` +- added enum `replaceTaxRate` to type `UpdateType` +- added enum `revertStagedChanges` to type `UpdateType` +- added enum `revertStagedVariantChanges` to type `UpdateType` +- added enum `setAncestors` to type `UpdateType` +- added enum `setAssociates` to type `UpdateType` +- added enum `setBillingAddressCustomField` to type `UpdateType` +- added enum `setBillingAddressCustomType` to type `UpdateType` +- added enum `setBusinessUnit` to type `UpdateType` +- added enum `setCustomLineItemDiscountedPrice` to type `UpdateType` +- added enum `setCustomLineItemDiscountedPricePerQuantity` to type `UpdateType` +- added enum `setCustomerGroupAssignments` to type `UpdateType` +- added enum `setDeliveryAddressCustomField` to type `UpdateType` +- added enum `setDeliveryAddressCustomType` to type `UpdateType` +- added enum `setDeliveryCustomField` to type `UpdateType` +- added enum `setDeliveryCustomType` to type `UpdateType` +- added enum `setDirectDiscounts` to type `UpdateType` +- added enum `setDiscountOnTotalPrice` to type `UpdateType` +- added enum `setInheritedAssociates` to type `UpdateType` +- added enum `setInheritedStores` to type `UpdateType` +- added enum `setItemShippingAddressCustomField` to type `UpdateType` +- added enum `setItemShippingAddressCustomType` to type `UpdateType` +- added enum `setLocalizedDescription` to type `UpdateType` +- added enum `setLocalizedName` to type `UpdateType` +- added enum `setMaxCartQuantity` to type `UpdateType` +- added enum `setMinCartQuantity` to type `UpdateType` +- added enum `setParcelCustomField` to type `UpdateType` +- added enum `setParcelCustomType` to type `UpdateType` +- added enum `setPredicate` to type `UpdateType` +- added enum `setPriceKey` to type `UpdateType` +- added enum `setPriceMode` to type `UpdateType` +- added enum `setPriceTiers` to type `UpdateType` +- added enum `setProductAttribute` to type `UpdateType` +- added enum `setReferences` to type `UpdateType` +- added enum `setReturnInfo` to type `UpdateType` +- added enum `setReturnItemCustomField` to type `UpdateType` +- added enum `setReturnItemCustomType` to type `UpdateType` +- added enum `setShippingAddressCustomField` to type `UpdateType` +- added enum `setShippingAddressCustomType` to type `UpdateType` +- added enum `setShippingCustomField` to type `UpdateType` +- added enum `setShippingCustomType` to type `UpdateType` +- added enum `setShippingInfoDiscountedPrice` to type `UpdateType` +- added enum `setShippingMethodTaxCategory` to type `UpdateType` +- added enum `setTaxedShippingPrice` to type `UpdateType` +- added enum `setTransactionCustomField` to type `UpdateType` +- added enum `setTransactionCustomType` to type `UpdateType` +- added enum `setUnitType` to type `UpdateType` +- added enum `setVariantExclusion` to type `UpdateType`
diff --git a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls index 0a0c94b7e4d..b84e3eb1085 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -661,6 +661,11 @@ input AddressInput { custom: CustomFieldsDraft } +enum AddressRole { + Billing + Shipping +} + enum AnonymousCartSignInMode { """ `LineItem`s of the anonymous cart will be copied to the customer’s active cart that has been modified most recently. @@ -1400,6 +1405,9 @@ type BusinessUnit implements Versioned & ReferenceExpandable { topLevelUnitRef: KeyReference topLevelUnit: BusinessUnit! approvalRuleMode: BusinessUnitApprovalRuleMode! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + customerGroupAssignments: [CustomerGroupAssignment!] id: String! version: Long! createdAt: DateTime! @@ -1415,13 +1423,14 @@ type BusinessUnitAddressAdded implements MessagePayload { type BusinessUnitAddressChanged implements MessagePayload { address: Address! + addressRoles: [AddressRole!]! type: String! } type BusinessUnitAddressCustomFieldAdded implements MessagePayload { name: String! value: Json! - addressId: String + addressId: String! type: String! } @@ -1429,31 +1438,32 @@ type BusinessUnitAddressCustomFieldChanged implements MessagePayload { name: String! value: Json! oldValue: Json - addressId: String + addressId: String! type: String! } type BusinessUnitAddressCustomFieldRemoved implements MessagePayload { name: String! - addressId: String + addressId: String! type: String! } type BusinessUnitAddressCustomTypeRemoved implements MessagePayload { oldTypeId: String - addressId: String + addressId: String! type: String! } type BusinessUnitAddressCustomTypeSet implements MessagePayload { customFields: CustomFieldsType! oldTypeId: String - addressId: String + addressId: String! type: String! } type BusinessUnitAddressRemoved implements MessagePayload { address: Address! + addressRoles: [AddressRole!]! type: String! } @@ -1563,6 +1573,25 @@ type BusinessUnitCustomTypeSet implements MessagePayload { type: String! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type BusinessUnitCustomerGroupAssignmentAdded implements MessagePayload { + customerGroupAssignment: CustomerGroupAssignment! + type: String! +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type BusinessUnitCustomerGroupAssignmentRemoved implements MessagePayload { + customerGroupAssignment: CustomerGroupAssignment! + type: String! +} + +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type BusinessUnitCustomerGroupAssignmentsSet implements MessagePayload { + customerGroupAssignments: [CustomerGroupAssignment!] + oldCustomerGroupAssignments: [CustomerGroupAssignment!] + type: String! +} + type BusinessUnitDefaultBillingAddressSet implements MessagePayload { address: Address type: String! @@ -1602,6 +1631,9 @@ input BusinessUnitDraft { associates: [AssociateDraft!] associateMode: BusinessUnitAssociateMode approvalRuleMode: BusinessUnitApprovalRuleMode + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + customerGroupAssignments: [CustomerGroupAssignmentDraft!] } type BusinessUnitNameChanged implements MessagePayload { @@ -1667,8 +1699,12 @@ type BusinessUnitStoreModeChanged implements MessagePayload { oldStoreMode: String! stores: [Store!] oldStores: [Store!] + inheritedStores: [Store!] + oldInheritedStores: [Store!] storesRef: [KeyReference!] oldStoresRef: [KeyReference!] + inheritedStoresRef: [KeyReference!] + oldInheritedStoresRef: [KeyReference!] type: String! } @@ -1740,6 +1776,15 @@ input BusinessUnitUpdateAction { "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setUnitType: SetBusinessUnitUnitType + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + addCustomerGroupAssignment: AddCustomerGroupAssignment + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + removeCustomerGroupAssignment: RemoveCustomerGroupAssignment + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + setCustomerGroupAssignments: SetCustomerGroupAssignments } input CancelQuoteRequest { @@ -3638,7 +3683,7 @@ type Customer implements Versioned & ReferenceExpandable { billingAddresses: [Address!]! storesRef: [KeyReference!]! stores: [Store!]! - customerGroupAssignments: [CustomerGroupAssignment!] + customerGroupAssignments: [CustomerGroupAssignment!]! custom: CustomFieldsType id: String! version: Long! @@ -3660,13 +3705,14 @@ type CustomerAddressAdded implements MessagePayload { type CustomerAddressChanged implements MessagePayload { address: Address! + addressRoles: [AddressRole!]! type: String! } type CustomerAddressCustomFieldAdded implements MessagePayload { name: String! value: Json! - addressId: String + addressId: String! type: String! } @@ -3674,30 +3720,41 @@ type CustomerAddressCustomFieldChanged implements MessagePayload { name: String! value: Json! previousValue: Json - addressId: String + addressId: String! type: String! } type CustomerAddressCustomFieldRemoved implements MessagePayload { name: String! - addressId: String + addressId: String! type: String! } type CustomerAddressCustomTypeRemoved implements MessagePayload { previousTypeId: String - addressId: String + addressId: String! type: String! } type CustomerAddressCustomTypeSet implements MessagePayload { customFields: CustomFieldsType! previousTypeId: String - addressId: String + addressId: String! type: String! } type CustomerAddressRemoved implements MessagePayload { + address: Address! + addressRoles: [AddressRole!]! + type: String! +} + +type CustomerBillingAddressAdded implements MessagePayload { + address: Address! + type: String! +} + +type CustomerBillingAddressRemoved implements MessagePayload { address: Address! type: String! } @@ -3757,11 +3814,13 @@ type CustomerDefaultShippingAddressSet implements MessagePayload { } type CustomerDeleted implements MessagePayload { + email: String type: String! } type CustomerEmailChanged implements MessagePayload { email: String! + oldEmail: String! type: String! } @@ -3790,6 +3849,11 @@ type CustomerEmailVerified implements MessagePayload { type: String! } +type CustomerExternalIdSet implements MessagePayload { + externalId: String + type: String! +} + type CustomerFirstNameSet implements MessagePayload { firstName: String type: String! @@ -3829,6 +3893,7 @@ type CustomerGroupAssignmentRemoved implements MessagePayload { type CustomerGroupAssignmentsSet implements MessagePayload { customerGroupAssignments: [CustomerGroupAssignment!]! + oldCustomerGroupAssignments: [CustomerGroupAssignment!]! type: String! } @@ -3979,6 +4044,16 @@ enum CustomerSearchStatus { Deactivated } +type CustomerShippingAddressAdded implements MessagePayload { + address: Address! + type: String! +} + +type CustomerShippingAddressRemoved implements MessagePayload { + address: Address! + type: String! +} + input CustomerSignInDraft { email: String! password: String! @@ -5435,7 +5510,6 @@ type KeyReference { "A key that references a resource." scalar KeyReferenceInput -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" enum Level { "The attribute can be used on the variant level" Variant @@ -8669,7 +8743,6 @@ type ProductData { key: String): ProductVariant skus: [String!]! - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" attributesRaw: [RawProductAttribute!]! } @@ -8796,8 +8869,6 @@ input ProductDraft { metaDescription: [LocalizedStringItemInputType!] metaKeywords: [LocalizedStringItemInputType!] masterVariant: ProductVariantInput - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" attributes: [ProductAttributeInput!] = [] variants: [ProductVariantInput!] = [] taxCategory: ResourceIdentifierInput @@ -9163,8 +9234,6 @@ type ProductProjectionMessagePayload { published: Boolean! masterVariant: ProductVariant! variants: [ProductVariant!]! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" attributes: [RawProductAttribute!]! taxCategoryRef: Reference taxCategory: TaxCategory @@ -9731,8 +9800,6 @@ input ProductTailoringDraft { metaKeywords: [LocalizedStringItemInputType!] publish: Boolean variants: [ProductVariantTailoringInput!] = [] - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" attributes: [ProductAttributeInput!] = [] } @@ -9825,8 +9892,6 @@ input ProductTailoringUpdateAction { removeVariant: RemoveProductVariantTailoring publish: PublishTailoring unpublish: UnpublishTailoring - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setProductAttribute: SetProductLevelTailoringAttribute addAsset: AddProductTailoringAsset addExternalImage: AddProductTailoringExternalImage @@ -9936,8 +10001,6 @@ input ProductUpdateAction { revertStagedChanges: RevertStagedChanges revertStagedVariantChanges: RevertStagedVariantChanges publish: PublishProduct - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setProductAttribute: ProductLevelAttributeInput unpublish: UnpublishProduct transitionState: TransitionProductState @@ -10921,7 +10984,6 @@ type RawProductAttribute { name: String! value: Json! - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" attributesRaw: [RawProductAttribute!] attributeDefinition: AttributeDefinition referencedResource: ReferenceExpandable diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDGet.java index 58ec5e17e4e..788cd33c006 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Retrieves a QuoteRequest with the provided id in a BusinessUnit. If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java index d4ee0ae1c68..3383ff34885 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists with the provided id. Returns a 200 status if the QuoteRequest exists, or a 404 status otherwise.

+ *

Checks if a QuoteRequest exists with the provided id in a BusinessUnit. Returns a 200 OK status if the QuoteRequest exists or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPost.java index 246ab2e528e..8dbaeacde05 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Updates a QuoteRequest in a BusinessUnit using one or more update actions. If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPostString.java index 0da87ebeccd..d924f9bd135 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Updates a QuoteRequest in a BusinessUnit using one or more update actions. If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsGet.java index 3fbe9ceadb6..58294bd5983 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves all QuoteRequests in a BusinessUnit.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java index f4790894c56..ffd0d80fef1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 status if any QuoteRequests match the query predicate, or a 404 status otherwise.

+ *

Checks if one or more QuoteRequests exist for the provided query predicate in a BusinessUnit. Returns a 200 OK status if any QuoteRequests match the query predicate, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyGet.java index 2579be5bc87..508efb836e8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Retrieves a QuoteRequest with the provided key in a BusinessUnit. If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java index 1bf1c99abb0..2a50144e248 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists with the provided key. Returns a 200 status if the QuoteRequest exists, or a 404 status otherwise.

+ *

Checks if a QuoteRequest exists with the provided key in a BusinessUnit. Returns a 200 OK status if the QuoteRequest exists or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPost.java index 7a2b0151103..f43f10ced3a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Updates a QuoteRequest in a BusinessUnit using one or more update actions. If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPostString.java index 61810b2577f..464aeb333e0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Updates a QuoteRequest in a BusinessUnit using one or more update actions. If the QuoteRequest exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPost.java index 20e88a457d7..b52155131eb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Creates a QuoteRequest in a BusinessUnit. Creating QuoteRequest fails with an InvalidOperation if the Cart does not reference the same BusinessUnit as the businessUnitKey path parameter.

+ *

Creates a QuoteRequest in a BusinessUnit. Creating QuoteRequest fails with an InvalidOperation if the Cart does not reference the same BusinessUnit as the businessUnitKey path parameter.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPostString.java index 2bde714e033..34076b612b9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Creates a QuoteRequest in a BusinessUnit. Creating QuoteRequest fails with an InvalidOperation if the Cart does not reference the same BusinessUnit as the businessUnitKey path parameter.

+ *

Creates a QuoteRequest in a BusinessUnit. Creating QuoteRequest fails with an InvalidOperation if the Cart does not reference the same BusinessUnit as the businessUnitKey path parameter.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDGet.java index a15c9d4a0ed..518389effb1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Retrieves a Quote with the provided id in a BusinessUnit. If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java index 2e3f6368a41..08c40ee3c3e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists with the provided id. Returns a 200 status if the Quote exists, or a 404 status otherwise.

+ *

Checks if a Quote exists with the provided id in a BusinessUnit. Returns a 200 OK status if the Quote exists or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPost.java index 7110779ad74..fa306642d35 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Updates a Quote in a BusinessUnit using one or more update actions. If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPostString.java index 38cf87389c4..f8fcd57e6a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Updates a Quote in a BusinessUnit using one or more update actions. If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesGet.java index b252a35f12c..0c26bad741c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves all Quotes in a BusinessUnit.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java index e3391aa8f92..c2748f498e1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more Quotes exist for the provided query predicate. Returns a 200 status if any Quotes match the query predicate, or a 404 status otherwise.

+ *

Checks if one or more Quotes exist for the provided query predicate in a BusinessUnit. Returns a 200 OK status if any Quotes match the query predicate, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyGet.java index 70a624a0e67..4d2319213f4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Retrieves a Quote with the provided key in a BusinessUnit. If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java index 07ece77e487..db4072ff5d6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists with the provided key. Returns a 200 status if the Quote exists, or a 404 status otherwise.

+ *

Checks if a Quote exists with the provided key in a BusinessUnit. Returns a 200 OK status if the Quote exists, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPost.java index 08466b9be32..1982b3c4c6c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Updates a Quote in a BusinessUnit using one or more update actions. If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPostString.java index 0fd305cfb3e..ac55a98a6af 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

+ *

Updates a Quote in a BusinessUnit using one or more update actions. If the Quote exists in the Project but does not reference the requested BusinessUnit, this method returns an InvalidOperation error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java index f16b20e3052..8e5b75a23f1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java @@ -20,7 +20,14 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Gets the current or staged representation of a Product by its ID in the specified Store. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price, and inventory. If ProductSelection is used, it affects the availability of the Product in the specified Store. If a ProductTailoring exists for the Product with the given id and the given Store, this endpoint returns the ProductProjection with tailored data. When used with an API Client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) Product Projections.

+ *

Retrieves the projected representation of a Product by its ID in the specified Store.

+ *

If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price, and inventory. If ProductSelection is used, it affects the availability of the Product in the specified Store. If a ProductTailoring exists for the Product with the given key and the given Store, this endpoint returns the ProductProjection with tailored data.

+ *

By default, this endpoint returns the current representation of Products where the published flag is true. If a Product is unpublished (published=false), the endpoint returns a Not Found error.

+ *

Required access scopes:

+ *
    + *
  • To retrieve the current representation of published Products (published data), the view_published_products:{projectKey} scope is required.

  • + *
  • To retrieve the staged representation of Products (draft data) or access unpublished Products, the API Client must have the view_products:{projectKey} scope.

  • + *
* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java index 4202c88ade9..2cc92d6eb0f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java @@ -20,7 +20,14 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Gets the current or staged representation of a Product by its key in the specified Store. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price, and inventory. If ProductSelection is used, it affects the availability of the Product in the specified Store. If a ProductTailoring exists for the Product with the given key and the given Store, this endpoint returns the ProductProjection with tailored data. When used with an API Client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) Product Projections.

+ *

Retrieves the projected representation of a Product by its Key in the specified Store.

+ *

If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price, and inventory. If ProductSelection is used, it affects the availability of the Product in the specified Store. If a ProductTailoring exists for the Product with the given key and the given Store, this endpoint returns the ProductProjection with tailored data.

+ *

By default, this endpoint returns the current representation of Products where the published flag is true. If a Product is unpublished (published=false), the endpoint returns a Not Found error.

+ *

Required access scopes:

+ *
    + *
  • To retrieve the current representation of published Products (published data), the view_published_products:{projectKey} scope is required.

  • + *
  • To retrieve the staged representation of Products (draft data) or access unpublished Products, the API Client must have the view_products:{projectKey} scope.

  • + *
* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDDelete.java index 9f44ed30206..8f815f66d1e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a QuoteRequest in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDGet.java index 507622a30dc..72401bc5de4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a QuoteRequest with the provided id in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDHead.java index db2a6f899ac..57751df5843 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists with the provided id. Returns a 200 status if the QuoteRequest exists, or a 404 status otherwise.

+ *

Checks if a QuoteRequest exists with the provided id in a Store. Returns a 200 status if the QuoteRequest exists, or a 404 status otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDPost.java index 92cf4b23a5b..77a8d3d3e5e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDPostString.java index 49bb9e621b7..46e8f6ed54d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsGet.java index 96d03e42874..e62083963b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves QuoteRequests in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsHead.java index 75a78d5d002..b5b28d5da0a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 status if any QuoteRequests match the query predicate, or a 404 status otherwise.

+ *

Checks if one or more QuoteRequests exist for the provided query predicate in a Store. Returns a 200 status if any QuoteRequests match the query predicate, or a 404 status otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyDelete.java index 1cf2b954351..fd307ee8ac8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a QuoteRequest in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyGet.java index f84a85321b0..68439692f0e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a QuoteRequest with the provided key in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyHead.java index 24c900096b5..90e95162474 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists with the provided key. Returns a 200 status if the QuoteRequest exists, or a 404 status otherwise.

+ *

Checks if a QuoteRequest exists with the provided key in a Store. Returns a 200 status if the QuoteRequest exists, or a 404 status otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyPost.java index 8bf14dd9b10..66731e595bb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyPostString.java index 43c1827751c..263404eae5b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsPost.java index 666bc21a5f5..c4cf66439a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a QuoteRequest in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsPostString.java index 43995005760..3689c4a2241 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a QuoteRequest in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDDelete.java index 6cc354d27f4..c4758ff5215 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a Quote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDGet.java index 1ca7d82e137..28fdabc97b6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a Quote with the provided id in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDHead.java index 0ef399c9228..c85a8898cd2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists with the provided id. Returns a 200 status if the Quote exists, or a 404 status otherwise.

+ *

Checks if a Quote exists with the provided id in a Store. Returns a 200 status if the Quote exists, or a 404 status otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDPost.java index 907f5da5be8..1102df86c28 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDPostString.java index c433fa708b1..9c595ef3f14 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesGet.java index 378a96277a0..5bb53769268 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves Quotes in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesHead.java index 96c6d19ae2e..fa0ae1550bb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more Quotes exist for the provided query predicate. Returns a 200 status if any Quotes match the query predicate, or a 404 status otherwise.

+ *

Checks if one or more Quotes exist for the provided query predicate in a Store. Returns a 200 status if any Quotes match the query predicate, or a 404 status otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyDelete.java index e3dd0ada97f..08fa6d1a0ee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a Quote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyGet.java index 4913db1977d..8a91e323f43 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a Quote with the provided key in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyHead.java index ced3fb65774..93e999c7300 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists with the provided key. Returns a 200 status if the Quote exists, or a 404 status otherwise.

+ *

Checks if a Quote exists with the provided key in a Store. Returns a 200 status if the Quote exists, or a 404 status otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyPost.java index da500332938..1be0e25374f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyPostString.java index a153e1d2ba9..123e4c8f2d3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesPost.java index 117b732a2f4..7388ac7a760 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a Quote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesPostString.java index 7ff73bf240f..cb2294338e3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a Quote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDDelete.java index 7691c4718e6..bdf18e19418 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a StagedQuote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDGet.java index 0a045b6b346..d6d7374911b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a StagedQuote with the provided id in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDHead.java index 4a74c8b5f1e..8db40eee163 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a StagedQuote exists with the provided id. Returns a 200 status if the StagedQuote exists, or a 404 status otherwise.

+ *

Checks if a StagedQuote exists with the provided id in a Store. Returns a 200 status if the StagedQuote exists, or a 404 status otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDPost.java index 9fffec09b88..9f2fa833d89 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a StagedQuote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDPostString.java index f367577664c..fc715d98cf2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a StagedQuote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesGet.java index c51d5c049a9..6e458a63a0a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves StagedQuotes in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesHead.java index 044362262d2..525823f8e09 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more StagedQuotes exist for the provided query predicate. Returns a 200 status if any StagedQuotes match the query predicate, or a 404 status otherwise.

+ *

Checks if one or more StagedQuotes exist for the provided query predicate in a Store. Returns a 200 status if any StagedQuotes match the query predicate, or a 404 status otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyDelete.java index 8c4852011fc..4d104d9e830 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a StagedQuote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyGet.java index 0b11a15e7aa..9568d5374c8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a StagedQuote with the provided key in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyHead.java index 98e035629cd..1ee1f54a619 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a StagedQuote exists with the provided key. Returns a 200 status if the StagedQuote exists, or a 404 status otherwise.

+ *

Checks if a StagedQuote exists with the provided key in a Store. Returns a 200 status if the StagedQuote exists, or a 404 status otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyPost.java index 0ffec531cf7..c152d86a15c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a StagedQuote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyPostString.java index 0d00ee9cf0c..75802cf8a80 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a StagedQuote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java index 90f8a5d1d09..24496934f84 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a StagedQuote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java index 5d48730f163..a0824672283 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a StagedQuote in a Store.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDGet.java index 314d3b59e4a..c8c80a71d41 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a QuoteRequest with the provided id for the authenticated Customer.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java index 075f517d342..3aef92b0d7a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists with the provided id. Returns a 200 status if the QuoteRequest exists, or a ResourceNotFound error otherwise.

+ *

Checks if a QuoteRequest exists with the provided id for the authenticated Customer. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDPost.java index d34e34d8788..b2d6557c6c8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest for the authenticated Customer using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDPostString.java index 29b170603b9..abcc7a52f87 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest for the authenticated Customer using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsGet.java index 1ad1a1a8665..de45c3dea81 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Retrieves Quote Requests for the authenticated Customer. Returns a 200 status if successful.

+ *

Retrieves all QuoteRequests for the authenticated Customer. Returns a 200 OK status if successful.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java index 504884424ec..8577c533041 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 status if any QuoteRequests match the query predicate, or a ResourceNotFound error otherwise.

+ *

Checks if one or more QuoteRequests exist for the provided query predicate for the authenticated Customer. Returns a 200 OK status if any QuoteRequests match the query predicate, or a ResourceNotFound error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyGet.java index aa3da5d3a03..ea1633ce07e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a QuoteRequest with the provided key for the authenticated Customer.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java index ef6c3aa65b8..2d3c55d66f1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists with the provided key. Returns a 200 status if the QuoteRequest exists, or a ResourceNotFound error otherwise.

+ *

Checks if a QuoteRequest exists with the provided key for the authenticated Customer. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyPost.java index 659b6b2c896..6f83ca7ee36 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest for the authenticated Customer using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyPostString.java index 50f609eb126..930833958b9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest for the authenticated Customer using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsPost.java index 292a9f861f1..a5b94e44502 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a QuoteRequest for the authenticated Customer.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsPostString.java index 0b00ba3b200..54efbe37cc5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a QuoteRequest for the authenticated Customer.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDGet.java index 4cf03365f63..bd17741db70 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a Quote with the provided id for the authenticated Customer.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java index 3152abcc57e..fda08a190b8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists with the provided id. Returns a 200 status if the Quote exists, or a ResourceNotFound error otherwise.

+ *

Checks if a Quote exists with the provided id for the authenticated Customer. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDPost.java index 63c2d24a77b..e7173ada61b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote for the authenticated Customer using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDPostString.java index 998e73ac3a1..a7d137985d8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote for the authenticated Customer using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesGet.java index 4858629e6f9..44c23b5a230 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves all Quotes for the authenticated Customer.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java index 73a50ff91d7..3f430c389aa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more Quotes exist for the provided query predicate. Returns a 200 status if any Quotes match the query predicate, or a ResourceNotFound error otherwise.

+ *

Checks if one or more Quotes exist for the provided query predicate for the authenticated Customer. Returns a 200 OK status if any Quotes match the query predicate, or a ResourceNotFound error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyGet.java index fd7545301d5..ce8984b91d3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a Quote with the provided key for the authenticated Customer.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java index 305b03341f7..7ad336c3e90 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists with the provided key. Returns a 200 status if the Quote exists, or a ResourceNotFound error otherwise.

+ *

Checks if a Quote exists with the provided key for the authenticated Customer. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyPost.java index f0c9a876a72..dcd6b3a1bff 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote for the authenticated Customer using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyPostString.java index d89a7bec467..7fd0c51c2fb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote for the authenticated Customer using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java index c65c3b2bae3..b6b50e98ecf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java @@ -19,7 +19,7 @@ *

Checks if a ShoppingList exists with the provided id for the authenticated Customer or anonymous user. Returns a 200 status if successful.

*

A Not Found error is returned in the following scenarios:

*
    - *
  • If no ShoppingList exists for the provided id.
  • + *
  • If no ShoppingList exists with the provided id.
  • *
  • If a ShoppingList exists but does not contain either an anonymousId that matches the anonymous_id:{id} scope, or a customer with id value that matches the customer:{id} scope.
  • *
* diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyDelete.java index 1e063253792..742ea9ce477 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyDelete.java @@ -23,7 +23,7 @@ *

Deletes a ShoppingList for the authenticated Customer or anonymous user. Returns a 200 status if successful.

*

A ResourceNotFound error is returned in the following scenarios:

*
    - *
  • If no ShoppingList exists for the provided key.
  • + *
  • If no ShoppingList exists with the provided key.
  • *
  • If a ShoppingList exists but does not contain either an anonymousId that matches the anonymous_id:{id} scope, or a customer with id value that matches the customer:{id} scope.
  • *
* diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java index 80f1d64f1f5..8a0b562a681 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java @@ -20,7 +20,13 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Gets the current or staged representation of a Product by its ID. When used with an API Client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) Product Projections.

+ *

Retrieves the projected representation of a Product by its ID.

+ *

By default, this endpoint returns the current representation of Products where the published flag is true. If a Product is unpublished (published=false), the endpoint returns a Not Found error.

+ *

Required access scopes:

+ *
    + *
  • To retrieve the current representation of published Products (published data), the view_published_products:{projectKey} scope is required.

  • + *
  • To retrieve the staged representation of Products (draft data) or access unpublished Products, the API Client must have the view_products:{projectKey} scope.

  • + *
* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java index 9bda68ae72e..ad8c3bd2af7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java @@ -20,7 +20,13 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Use the Product Projections query endpoint to get the current or staged representations of Products. When used with an API Client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) Product Projections.

+ *

Retrieves the projected representation of Products by query predicates.

+ *

By default, this endpoint returns the current representation of Products where the published flag is true. If a Product is unpublished (published=false), the endpoint returns a Not Found error.

+ *

Required access scopes:

+ *
    + *
  • To retrieve the current representation of published Products (published data), the view_published_products:{projectKey} scope is required.

  • + *
  • To retrieve the staged representation of Products (draft data) or access unpublished Products, the API Client must have the view_products:{projectKey} scope.

  • + *
* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java index aef5e76ef2c..ed7291b76aa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java @@ -20,7 +20,13 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Gets the current or staged representation of a Product found by Key. When used with an API Client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) Product Projections.

+ *

Retrieves the projected representation of a Product by its Key.

+ *

By default, this endpoint returns the current representation of Products where the published flag is true. If a Product is unpublished (published=false), the endpoint returns a Not Found error.

+ *

Required access scopes:

+ *
    + *
  • To retrieve the current representation of published Products (published data), the view_published_products:{projectKey} scope is required.

  • + *
  • To retrieve the staged representation of Products (draft data) or access unpublished Products, the API Client must have the view_products:{projectKey} scope.

  • + *
* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDDelete.java index 22edc9eb5c4..bc2aac416d7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a QuoteRequest in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDGet.java index 1eadb7383b1..40b15a11d1c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a QuoteRequest with the provided id.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java index 555ee5b18a8..4b951f30080 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists with the provided id. Returns a 200 status if the QuoteRequest exists, or a 404 status otherwise.

+ *

Checks if a QuoteRequest exists with the provided id. Returns a 200 OK status if the QuoteRequest exists, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDPost.java index 04f69c9c99a..a9054f63ab3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDPostString.java index da04d1349e7..10ed0a052f5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsGet.java index 60c64a33820..ec1ed5ba739 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves all QuoteRequests in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java index 7868237e683..39bf1016129 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 status if any QuoteRequests match the query predicate, or a 404 status otherwise.

+ *

Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 OK status if any QuoteRequests match the query predicate, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyDelete.java index 073803b7f8f..566a7b8c625 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a QuoteRequest in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyGet.java index 355bef956a8..41e18af01ea 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a QuoteRequest with the provided key.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java index 0ca5fdb7528..c427b969593 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists with the provided key. Returns a 200 status if the QuoteRequest exists, or a 404 status otherwise.

+ *

Checks if a QuoteRequest exists with the provided key. Returns a 200 OK status if the QuoteRequest exists, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyPost.java index 9c0f3d6fc26..658df5c5812 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyPostString.java index 8d13eae0ad7..39ec9eb6d08 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a QuoteRequest in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsPost.java index 95343161d7b..b33878f42bb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a QuoteRequest in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsPostString.java index bff9e71b54f..3aae3940237 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a QuoteRequest in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDDelete.java index f53f10f83cd..e69c2b64f8d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a Quote in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDGet.java index 84e366ec31b..585c824a5c5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a Quote with the provided id.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java index b839587144d..a386d2a8a20 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists with the provided id. Returns a 200 status if the Quote exists, or a 404 status otherwise.

+ *

Checks if a Quote exists with the provided id. Returns a 200 OK status if the Quote exists, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDPost.java index 09c506bd514..142a87a7b5e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDPostString.java index 372056c8578..6c7ce31a284 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesGet.java index 3937b4239df..714b3e43a37 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves all Quotes in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java index 9aaf5893951..99ac447d027 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more Quotes exist for the provided query predicate. Returns a 200 status if any Quotes match the query predicate, or a 404 status otherwise.

+ *

Checks if one or more Quotes exist for the provided query predicate. Returns a 200 OK status if any Quotes match the query predicate, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyDelete.java index a627b2cb581..9c499e867d3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a Quote in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyGet.java index db54cf8afff..7dd281a522a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a Quote with the provided key.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java index bf6817f369a..ccc77f0120f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists with the provided key. Returns a 200 status if the Quote exists, or a 404 status otherwise.

+ *

Checks if a Quote exists with the provided key. Returns a 200 OK status if the Quote exists, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyPost.java index 5867fa527d4..9173c400ef9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyPostString.java index 2305e16d4b5..8b2bb4e600a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a Quote in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesPost.java index 71539a3dc47..f9f5e233773 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a Quote in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesPostString.java index 13d7bc95aa1..56581fda051 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a Quote in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDDelete.java index f8f23b94ebf..d0d61c8a173 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDDelete.java @@ -22,6 +22,7 @@ /** *

Deletes a Recurrence Policy in the Project.

*

A Recurrence Policy can be deleted only if it is not referenced by any Embedded Price, Standalone Price, or (Custom) Line Item, otherwise a ReferenceExists error is returned.

+ *

The manage_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the manage_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDGet.java index 41a94c5b70d..f73c898218f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDGet.java @@ -21,6 +21,7 @@ /** *

Retrieves a Recurrence Policy with the provided id.

+ *

The view_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the view_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDHead.java index 27a58c075b7..f7065ba2680 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDHead.java @@ -17,6 +17,7 @@ /** *

Checks if a Recurrence Policy exists with the provided id. Returns a 200 status if the Recurrence Policy exists, or a NotFound error otherwise.

+ *

The view_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the view_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDPost.java index 600deebbb6a..3bf5caa1530 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDPost.java @@ -21,6 +21,7 @@ /** *

Updates a Recurrence Policy using one or more update actions.

+ *

The manage_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the manage_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDPostString.java index c11869dafe2..5591a749018 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesByIDPostString.java @@ -22,6 +22,7 @@ /** *

Updates a Recurrence Policy using one or more update actions.

+ *

The manage_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the manage_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesGet.java index c3df2260094..46387f10779 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesGet.java @@ -21,6 +21,7 @@ /** *

Retrieves Recurrence Policies in the Project.

+ *

The view_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the view_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesHead.java index f285144ad26..07b652cb336 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesHead.java @@ -21,6 +21,7 @@ /** *

Checks if one or more Recurrence Policies exist for the provided query predicate. Returns a 200 status if any Recurrence Policies match the query predicate, or a NotFound error otherwise.

+ *

The view_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the view_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyDelete.java index 75b886fe2cd..999979a8ede 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyDelete.java @@ -22,6 +22,7 @@ /** *

Deletes a Recurrence Policy in the Project.

*

A Recurrence Policy can be deleted only if it is not referenced by any Embedded Price, Standalone Price, or (Custom) Line Item, otherwise a ReferenceExists error is returned.

+ *

The manage_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the manage_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyGet.java index fcf7ca3fd5e..d5fe14a6696 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyGet.java @@ -21,6 +21,7 @@ /** *

Retrieves a Recurrence Policy with the provided key.

+ *

The view_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the view_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyHead.java index 0c72ac221c6..b8c849e83c2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyHead.java @@ -17,6 +17,7 @@ /** *

Checks if a Recurrence Policy exists with the provided key. Returns a 200 status if the Recurrence Policy exists, or a NotFound error otherwise.

+ *

The view_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the view_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyPost.java index ebbdb9798e7..c0942b7ec44 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyPost.java @@ -21,6 +21,7 @@ /** *

Updates a Recurrence Policy using one or more update actions.

+ *

The manage_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the manage_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyPostString.java index 1e265a58ca7..fcbddec3a3d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesKeyByKeyPostString.java @@ -22,6 +22,7 @@ /** *

Updates a Recurrence Policy using one or more update actions.

+ *

The manage_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the manage_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesPost.java index 1aeb40fa340..cbec046a934 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesPost.java @@ -21,6 +21,7 @@ /** *

Creates a Recurrence Policy in the Project.

+ *

The manage_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the manage_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesPostString.java index 1dccabb0b15..30c8741cb7b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRecurrencePoliciesPostString.java @@ -22,6 +22,7 @@ /** *

Creates a Recurrence Policy in the Project.

+ *

The manage_recurring_orders:{projectKey} scope is deprecated for use on this endpoint. Update your clients to use the manage_recurrence_policies:{projectKey} scope instead. For more information, see the Deprecations and removals list.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDDelete.java index f062bff61fa..a50f14b0045 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a StagedQuote in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDGet.java index 0f578154159..3881022e832 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a StagedQuote with the provided id.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java index db9e6ee5498..ad65efd6dc6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a StagedQuote exists with the provided id. Returns a 200 status if the StagedQuote exists, or a 404 status otherwise.

+ *

Checks if a StagedQuote exists with the provided id. Returns a 200 OK status if the StagedQuote exists, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDPost.java index 57f3a7a54ad..c888988b33d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a StagedQuote in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDPostString.java index b3a97c7af2e..9191bff9e84 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a StagedQuote in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesGet.java index 93d74fd22be..b8965c4b6f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves all StagedQuotes in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java index c261224af57..3cc410f2031 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more StagedQuotes exist for the provided query predicate. Returns a 200 status if any StagedQuotes match the query predicate, or a 404 status otherwise.

+ *

Checks if one or more StagedQuotes exist for the provided query predicate. Returns a 200 OK status if any StagedQuotes match the query predicate or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyDelete.java index 13d47c942bf..1293d254f9d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deletes a StagedQuote in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyGet.java index bd2e2eef0bf..f6aff3b95d2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Retrieves a StagedQuote with the provided key.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java index 920d2d28274..825ecc3ff37 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a StagedQuote exists with the provided key. Returns a 200 status if the StagedQuote exists, or a 404 status otherwise.

+ *

Checks if a StagedQuote exists with the provided key. Returns a 200 OK status if the StagedQuote exists, or a Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyPost.java index 67c80aa4928..deef74fabee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a StagedQuote in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyPostString.java index 2e5bfc6044c..db9ae873e71 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Updates a StagedQuote in the Project using one or more update actions.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPost.java index d866f3bb322..4dc4793fb28 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPost.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a StagedQuote in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPostString.java index 63e154059ca..8d6e1b4108b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesPostString.java @@ -21,7 +21,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Creates a StagedQuote in the Project.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java index 5431d54e0a4..54a2709b394 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java @@ -13,6 +13,7 @@ import com.commercetools.api.models.common.BaseResource; import com.commercetools.api.models.common.CreatedBy; import com.commercetools.api.models.common.LastModifiedBy; +import com.commercetools.api.models.customer.CustomerGroupAssignment; import com.commercetools.api.models.store.StoreKeyReference; import com.commercetools.api.models.type.CustomFields; import com.fasterxml.jackson.annotation.*; @@ -40,6 +41,8 @@ * storeMode(BusinessUnitStoreMode.EXPLICIT) * name("{name}") * plusAddresses(addressesBuilder -> addressesBuilder) + * plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder) + * plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder) * associateMode(BusinessUnitAssociateMode.EXPLICIT) * plusAssociates(associatesBuilder -> associatesBuilder) * topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder) @@ -175,6 +178,15 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models @JsonProperty("custom") public CustomFields getCustom(); + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @return customerGroupAssignments + */ + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + /** *

Addresses used by the Business Unit.

* @return addresses @@ -188,7 +200,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models *

Unique identifiers of addresses used as shipping addresses.

* @return shippingAddressIds */ - + @NotNull @JsonProperty("shippingAddressIds") public List getShippingAddressIds(); @@ -204,7 +216,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models *

Unique identifiers of addresses used as billing addresses.

* @return billingAddressIds */ - + @NotNull @JsonProperty("billingAddressIds") public List getBillingAddressIds(); @@ -384,6 +396,23 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models public void setCustom(final CustomFields custom); + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignment... customerGroupAssignments); + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + /** *

Addresses used by the Business Unit.

* @param addresses values to be set @@ -541,6 +570,11 @@ public static BusinessUnit deepCopy(@Nullable final BusinessUnit template) { instance.setName(template.getName()); instance.setContactEmail(template.getContactEmail()); instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom())); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); instance.setAddresses(Optional.ofNullable(template.getAddresses()) .map(t -> t.stream() .map(com.commercetools.api.models.common.Address::deepCopy) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentAction.java new file mode 100644 index 00000000000..e1099e76a64 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentAction.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.models.business_unit; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer.CustomerGroupAssignmentDraft; +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; + +/** + *

Assigns a Customer Group to a Business Unit.

+ *

This action generates the BusinessUnitCustomerGroupAssignmentAdded Message.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitAddCustomerGroupAssignmentAction businessUnitAddCustomerGroupAssignmentAction = BusinessUnitAddCustomerGroupAssignmentAction.builder()
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@io.vrap.rmf.base.client.utils.json.SubType("addCustomerGroupAssignment") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitAddCustomerGroupAssignmentActionImpl.class) +public interface BusinessUnitAddCustomerGroupAssignmentAction extends BusinessUnitUpdateAction { + + /** + * discriminator value for BusinessUnitAddCustomerGroupAssignmentAction + */ + String ADD_CUSTOMER_GROUP_ASSIGNMENT = "addCustomerGroupAssignment"; + + /** + *

Customer Group to assign the Business Unit to.

+ * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupAssignmentDraft getCustomerGroupAssignment(); + + /** + *

Customer Group to assign the Business Unit to.

+ * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupAssignmentDraft customerGroupAssignment); + + /** + * factory method + * @return instance of BusinessUnitAddCustomerGroupAssignmentAction + */ + public static BusinessUnitAddCustomerGroupAssignmentAction of() { + return new BusinessUnitAddCustomerGroupAssignmentActionImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitAddCustomerGroupAssignmentAction + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitAddCustomerGroupAssignmentAction of( + final BusinessUnitAddCustomerGroupAssignmentAction template) { + BusinessUnitAddCustomerGroupAssignmentActionImpl instance = new BusinessUnitAddCustomerGroupAssignmentActionImpl(); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + public BusinessUnitAddCustomerGroupAssignmentAction copyDeep(); + + /** + * factory method to create a deep copy of BusinessUnitAddCustomerGroupAssignmentAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitAddCustomerGroupAssignmentAction deepCopy( + @Nullable final BusinessUnitAddCustomerGroupAssignmentAction template) { + if (template == null) { + return null; + } + BusinessUnitAddCustomerGroupAssignmentActionImpl instance = new BusinessUnitAddCustomerGroupAssignmentActionImpl(); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer.CustomerGroupAssignmentDraft + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for BusinessUnitAddCustomerGroupAssignmentAction + * @return builder + */ + public static BusinessUnitAddCustomerGroupAssignmentActionBuilder builder() { + return BusinessUnitAddCustomerGroupAssignmentActionBuilder.of(); + } + + /** + * create builder for BusinessUnitAddCustomerGroupAssignmentAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitAddCustomerGroupAssignmentActionBuilder builder( + final BusinessUnitAddCustomerGroupAssignmentAction template) { + return BusinessUnitAddCustomerGroupAssignmentActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitAddCustomerGroupAssignmentAction( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentActionBuilder.java new file mode 100644 index 00000000000..063236b4523 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentActionBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.business_unit; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitAddCustomerGroupAssignmentActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitAddCustomerGroupAssignmentAction businessUnitAddCustomerGroupAssignmentAction = BusinessUnitAddCustomerGroupAssignmentAction.builder()
+ *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitAddCustomerGroupAssignmentActionBuilder + implements Builder { + + private com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment; + + /** + *

Customer Group to assign the Business Unit to.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitAddCustomerGroupAssignmentActionBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()) + .build(); + return this; + } + + /** + *

Customer Group to assign the Business Unit to.

+ * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitAddCustomerGroupAssignmentActionBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()); + return this; + } + + /** + *

Customer Group to assign the Business Unit to.

+ * @param customerGroupAssignment value to be set + * @return Builder + */ + + public BusinessUnitAddCustomerGroupAssignmentActionBuilder customerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

Customer Group to assign the Business Unit to.

+ * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignmentDraft getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds BusinessUnitAddCustomerGroupAssignmentAction with checking for non-null required values + * @return BusinessUnitAddCustomerGroupAssignmentAction + */ + public BusinessUnitAddCustomerGroupAssignmentAction build() { + Objects.requireNonNull(customerGroupAssignment, + BusinessUnitAddCustomerGroupAssignmentAction.class + ": customerGroupAssignment is missing"); + return new BusinessUnitAddCustomerGroupAssignmentActionImpl(customerGroupAssignment); + } + + /** + * builds BusinessUnitAddCustomerGroupAssignmentAction without checking for non-null required values + * @return BusinessUnitAddCustomerGroupAssignmentAction + */ + public BusinessUnitAddCustomerGroupAssignmentAction buildUnchecked() { + return new BusinessUnitAddCustomerGroupAssignmentActionImpl(customerGroupAssignment); + } + + /** + * factory method for an instance of BusinessUnitAddCustomerGroupAssignmentActionBuilder + * @return builder + */ + public static BusinessUnitAddCustomerGroupAssignmentActionBuilder of() { + return new BusinessUnitAddCustomerGroupAssignmentActionBuilder(); + } + + /** + * create builder for BusinessUnitAddCustomerGroupAssignmentAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitAddCustomerGroupAssignmentActionBuilder of( + final BusinessUnitAddCustomerGroupAssignmentAction template) { + BusinessUnitAddCustomerGroupAssignmentActionBuilder builder = new BusinessUnitAddCustomerGroupAssignmentActionBuilder(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentActionImpl.java new file mode 100644 index 00000000000..49196c71e0e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentActionImpl.java @@ -0,0 +1,102 @@ + +package com.commercetools.api.models.business_unit; + +import java.time.*; +import java.util.*; + +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; + +/** + *

Assigns a Customer Group to a Business Unit.

+ *

This action generates the BusinessUnitCustomerGroupAssignmentAdded Message.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitAddCustomerGroupAssignmentActionImpl + implements BusinessUnitAddCustomerGroupAssignmentAction, ModelBase { + + private String action; + + private com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitAddCustomerGroupAssignmentActionImpl( + @JsonProperty("customerGroupAssignment") final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + this.action = ADD_CUSTOMER_GROUP_ASSIGNMENT; + } + + /** + * create empty instance + */ + public BusinessUnitAddCustomerGroupAssignmentActionImpl() { + this.action = ADD_CUSTOMER_GROUP_ASSIGNMENT; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Customer Group to assign the Business Unit to.

+ */ + + public com.commercetools.api.models.customer.CustomerGroupAssignmentDraft getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitAddCustomerGroupAssignmentActionImpl that = (BusinessUnitAddCustomerGroupAssignmentActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(action, that.action) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(customerGroupAssignment).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + + @Override + public BusinessUnitAddCustomerGroupAssignmentAction copyDeep() { + return BusinessUnitAddCustomerGroupAssignmentAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitDraft.java index bba3b24c897..d952418ca04 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitDraft.java @@ -9,6 +9,7 @@ import javax.annotation.Nullable; import com.commercetools.api.models.common.BaseAddress; +import com.commercetools.api.models.customer.CustomerGroupAssignmentDraft; import com.commercetools.api.models.store.StoreResourceIdentifier; import com.commercetools.api.models.type.CustomFieldsDraft; import com.fasterxml.jackson.annotation.*; @@ -168,6 +169,15 @@ public interface BusinessUnitDraft extends com.commercetools.api.models.WithKey @JsonProperty("custom") public CustomFieldsDraft getCustom(); + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @return customerGroupAssignments + */ + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + /** *

User-defined unique and immutable identifier for the Business Unit.

* @param key value to be set @@ -317,6 +327,23 @@ public interface BusinessUnitDraft extends com.commercetools.api.models.WithKey public void setCustom(final CustomFieldsDraft custom); + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignmentDraft... customerGroupAssignments); + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + public BusinessUnitDraft copyDeep(); /** @@ -363,6 +390,11 @@ public static BusinessUnitDraft deepCopy(@Nullable final BusinessUnitDraft templ Optional.ofNullable(template.getBillingAddresses()).map(ArrayList::new).orElse(null)); instance.setDefaultBillingAddress(template.getDefaultBillingAddress()); instance.setCustom(com.commercetools.api.models.type.CustomFieldsDraft.deepCopy(template.getCustom())); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignmentDraft::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitDraftImpl.java index d41a1f1f7bf..0a94c61c49f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitDraftImpl.java @@ -54,6 +54,8 @@ public class BusinessUnitDraftImpl implements BusinessUnitDraft, ModelBase { private com.commercetools.api.models.type.CustomFieldsDraft custom; + private java.util.List customerGroupAssignments; + /** * create instance with all properties */ @@ -72,7 +74,8 @@ public class BusinessUnitDraftImpl implements BusinessUnitDraft, ModelBase { @JsonProperty("defaultShippingAddress") final Integer defaultShippingAddress, @JsonProperty("billingAddresses") final java.util.List billingAddresses, @JsonProperty("defaultBillingAddress") final Integer defaultBillingAddress, - @JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom) { + @JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom, + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments) { this.key = key; this.status = status; this.stores = stores; @@ -89,6 +92,7 @@ public class BusinessUnitDraftImpl implements BusinessUnitDraft, ModelBase { this.billingAddresses = billingAddresses; this.defaultBillingAddress = defaultBillingAddress; this.custom = custom; + this.customerGroupAssignments = customerGroupAssignments; } /** @@ -227,6 +231,15 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() { return this.custom; } + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + public void setKey(final String key) { this.key = key; } @@ -310,6 +323,16 @@ public void setCustom(final com.commercetools.api.models.type.CustomFieldsDraft this.custom = custom; } + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + @Override public boolean equals(Object o) { if (this == o) @@ -336,6 +359,7 @@ public boolean equals(Object o) { .append(billingAddresses, that.billingAddresses) .append(defaultBillingAddress, that.defaultBillingAddress) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(key, that.key) .append(status, that.status) .append(stores, that.stores) @@ -352,6 +376,7 @@ public boolean equals(Object o) { .append(billingAddresses, that.billingAddresses) .append(defaultBillingAddress, that.defaultBillingAddress) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .isEquals(); } @@ -373,6 +398,7 @@ public int hashCode() { .append(billingAddresses) .append(defaultBillingAddress) .append(custom) + .append(customerGroupAssignments) .toHashCode(); } @@ -394,6 +420,7 @@ public String toString() { .append("billingAddresses", billingAddresses) .append("defaultBillingAddress", defaultBillingAddress) .append("custom", custom) + .append("customerGroupAssignments", customerGroupAssignments) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java index bcec9fef7ea..1cdd3db73ba 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java @@ -52,6 +52,8 @@ public class BusinessUnitImpl implements BusinessUnit, ModelBase { private com.commercetools.api.models.type.CustomFields custom; + private java.util.List customerGroupAssignments; + private java.util.List addresses; private java.util.List shippingAddressIds; @@ -91,6 +93,7 @@ public class BusinessUnitImpl implements BusinessUnit, ModelBase { @JsonProperty("unitType") final com.commercetools.api.models.business_unit.BusinessUnitType unitType, @JsonProperty("name") final String name, @JsonProperty("contactEmail") final String contactEmail, @JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom, + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments, @JsonProperty("addresses") final java.util.List addresses, @JsonProperty("shippingAddressIds") final java.util.List shippingAddressIds, @JsonProperty("defaultShippingAddressId") final String defaultShippingAddressId, @@ -117,6 +120,7 @@ public class BusinessUnitImpl implements BusinessUnit, ModelBase { this.name = name; this.contactEmail = contactEmail; this.custom = custom; + this.customerGroupAssignments = customerGroupAssignments; this.addresses = addresses; this.shippingAddressIds = shippingAddressIds; this.defaultShippingAddressId = defaultShippingAddressId; @@ -258,6 +262,15 @@ public com.commercetools.api.models.type.CustomFields getCustom() { return this.custom; } + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** *

Addresses used by the Business Unit.

*/ @@ -411,6 +424,16 @@ public void setCustom(final com.commercetools.api.models.type.CustomFields custo this.custom = custom; } + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + public void setAddresses(final com.commercetools.api.models.common.Address... addresses) { this.addresses = new ArrayList<>(Arrays.asList(addresses)); } @@ -505,6 +528,7 @@ public boolean equals(Object o) { .append(name, that.name) .append(contactEmail, that.contactEmail) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(addresses, that.addresses) .append(shippingAddressIds, that.shippingAddressIds) .append(defaultShippingAddressId, that.defaultShippingAddressId) @@ -531,6 +555,7 @@ public boolean equals(Object o) { .append(name, that.name) .append(contactEmail, that.contactEmail) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(addresses, that.addresses) .append(shippingAddressIds, that.shippingAddressIds) .append(defaultShippingAddressId, that.defaultShippingAddressId) @@ -562,6 +587,7 @@ public int hashCode() { .append(name) .append(contactEmail) .append(custom) + .append(customerGroupAssignments) .append(addresses) .append(shippingAddressIds) .append(defaultShippingAddressId) @@ -593,6 +619,7 @@ public String toString() { .append("name", name) .append("contactEmail", contactEmail) .append("custom", custom) + .append("customerGroupAssignments", customerGroupAssignments) .append("addresses", addresses) .append("shippingAddressIds", shippingAddressIds) .append("defaultShippingAddressId", defaultShippingAddressId) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentAction.java new file mode 100644 index 00000000000..754bd880931 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentAction.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.models.business_unit; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier; +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; + +/** + *

Unassigns a Customer Group from a Business Unit.

+ *

This action generates the BusinessUnitCustomerGroupAssignmentRemoved Message.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitRemoveCustomerGroupAssignmentAction businessUnitRemoveCustomerGroupAssignmentAction = BusinessUnitRemoveCustomerGroupAssignmentAction.builder()
+ *             .customerGroup(customerGroupBuilder -> customerGroupBuilder)
+ *             .build()
+ * 
+ *
+ */ +@io.vrap.rmf.base.client.utils.json.SubType("removeCustomerGroupAssignment") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitRemoveCustomerGroupAssignmentActionImpl.class) +public interface BusinessUnitRemoveCustomerGroupAssignmentAction extends BusinessUnitUpdateAction { + + /** + * discriminator value for BusinessUnitRemoveCustomerGroupAssignmentAction + */ + String REMOVE_CUSTOMER_GROUP_ASSIGNMENT = "removeCustomerGroupAssignment"; + + /** + *

Customer Group to unassign the Business Unit from.

+ * @return customerGroup + */ + @NotNull + @Valid + @JsonProperty("customerGroup") + public CustomerGroupResourceIdentifier getCustomerGroup(); + + /** + *

Customer Group to unassign the Business Unit from.

+ * @param customerGroup value to be set + */ + + public void setCustomerGroup(final CustomerGroupResourceIdentifier customerGroup); + + /** + * factory method + * @return instance of BusinessUnitRemoveCustomerGroupAssignmentAction + */ + public static BusinessUnitRemoveCustomerGroupAssignmentAction of() { + return new BusinessUnitRemoveCustomerGroupAssignmentActionImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitRemoveCustomerGroupAssignmentAction + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitRemoveCustomerGroupAssignmentAction of( + final BusinessUnitRemoveCustomerGroupAssignmentAction template) { + BusinessUnitRemoveCustomerGroupAssignmentActionImpl instance = new BusinessUnitRemoveCustomerGroupAssignmentActionImpl(); + instance.setCustomerGroup(template.getCustomerGroup()); + return instance; + } + + public BusinessUnitRemoveCustomerGroupAssignmentAction copyDeep(); + + /** + * factory method to create a deep copy of BusinessUnitRemoveCustomerGroupAssignmentAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitRemoveCustomerGroupAssignmentAction deepCopy( + @Nullable final BusinessUnitRemoveCustomerGroupAssignmentAction template) { + if (template == null) { + return null; + } + BusinessUnitRemoveCustomerGroupAssignmentActionImpl instance = new BusinessUnitRemoveCustomerGroupAssignmentActionImpl(); + instance.setCustomerGroup(com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier + .deepCopy(template.getCustomerGroup())); + return instance; + } + + /** + * builder factory method for BusinessUnitRemoveCustomerGroupAssignmentAction + * @return builder + */ + public static BusinessUnitRemoveCustomerGroupAssignmentActionBuilder builder() { + return BusinessUnitRemoveCustomerGroupAssignmentActionBuilder.of(); + } + + /** + * create builder for BusinessUnitRemoveCustomerGroupAssignmentAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitRemoveCustomerGroupAssignmentActionBuilder builder( + final BusinessUnitRemoveCustomerGroupAssignmentAction template) { + return BusinessUnitRemoveCustomerGroupAssignmentActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitRemoveCustomerGroupAssignmentAction( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionBuilder.java new file mode 100644 index 00000000000..999fb161713 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.business_unit; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitRemoveCustomerGroupAssignmentActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitRemoveCustomerGroupAssignmentAction businessUnitRemoveCustomerGroupAssignmentAction = BusinessUnitRemoveCustomerGroupAssignmentAction.builder()
+ *             .customerGroup(customerGroupBuilder -> customerGroupBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitRemoveCustomerGroupAssignmentActionBuilder + implements Builder { + + private com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup; + + /** + *

Customer Group to unassign the Business Unit from.

+ * @param builder function to build the customerGroup value + * @return Builder + */ + + public BusinessUnitRemoveCustomerGroupAssignmentActionBuilder customerGroup( + Function builder) { + this.customerGroup = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierBuilder.of()) + .build(); + return this; + } + + /** + *

Customer Group to unassign the Business Unit from.

+ * @param builder function to build the customerGroup value + * @return Builder + */ + + public BusinessUnitRemoveCustomerGroupAssignmentActionBuilder withCustomerGroup( + Function builder) { + this.customerGroup = builder + .apply(com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierBuilder.of()); + return this; + } + + /** + *

Customer Group to unassign the Business Unit from.

+ * @param customerGroup value to be set + * @return Builder + */ + + public BusinessUnitRemoveCustomerGroupAssignmentActionBuilder customerGroup( + final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { + this.customerGroup = customerGroup; + return this; + } + + /** + *

Customer Group to unassign the Business Unit from.

+ * @return customerGroup + */ + + public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { + return this.customerGroup; + } + + /** + * builds BusinessUnitRemoveCustomerGroupAssignmentAction with checking for non-null required values + * @return BusinessUnitRemoveCustomerGroupAssignmentAction + */ + public BusinessUnitRemoveCustomerGroupAssignmentAction build() { + Objects.requireNonNull(customerGroup, + BusinessUnitRemoveCustomerGroupAssignmentAction.class + ": customerGroup is missing"); + return new BusinessUnitRemoveCustomerGroupAssignmentActionImpl(customerGroup); + } + + /** + * builds BusinessUnitRemoveCustomerGroupAssignmentAction without checking for non-null required values + * @return BusinessUnitRemoveCustomerGroupAssignmentAction + */ + public BusinessUnitRemoveCustomerGroupAssignmentAction buildUnchecked() { + return new BusinessUnitRemoveCustomerGroupAssignmentActionImpl(customerGroup); + } + + /** + * factory method for an instance of BusinessUnitRemoveCustomerGroupAssignmentActionBuilder + * @return builder + */ + public static BusinessUnitRemoveCustomerGroupAssignmentActionBuilder of() { + return new BusinessUnitRemoveCustomerGroupAssignmentActionBuilder(); + } + + /** + * create builder for BusinessUnitRemoveCustomerGroupAssignmentAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitRemoveCustomerGroupAssignmentActionBuilder of( + final BusinessUnitRemoveCustomerGroupAssignmentAction template) { + BusinessUnitRemoveCustomerGroupAssignmentActionBuilder builder = new BusinessUnitRemoveCustomerGroupAssignmentActionBuilder(); + builder.customerGroup = template.getCustomerGroup(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionImpl.java new file mode 100644 index 00000000000..2f7e034c281 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionImpl.java @@ -0,0 +1,102 @@ + +package com.commercetools.api.models.business_unit; + +import java.time.*; +import java.util.*; + +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; + +/** + *

Unassigns a Customer Group from a Business Unit.

+ *

This action generates the BusinessUnitCustomerGroupAssignmentRemoved Message.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitRemoveCustomerGroupAssignmentActionImpl + implements BusinessUnitRemoveCustomerGroupAssignmentAction, ModelBase { + + private String action; + + private com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitRemoveCustomerGroupAssignmentActionImpl( + @JsonProperty("customerGroup") final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { + this.customerGroup = customerGroup; + this.action = REMOVE_CUSTOMER_GROUP_ASSIGNMENT; + } + + /** + * create empty instance + */ + public BusinessUnitRemoveCustomerGroupAssignmentActionImpl() { + this.action = REMOVE_CUSTOMER_GROUP_ASSIGNMENT; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Customer Group to unassign the Business Unit from.

+ */ + + public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { + return this.customerGroup; + } + + public void setCustomerGroup( + final com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier customerGroup) { + this.customerGroup = customerGroup; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitRemoveCustomerGroupAssignmentActionImpl that = (BusinessUnitRemoveCustomerGroupAssignmentActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(customerGroup, that.customerGroup) + .append(action, that.action) + .append(customerGroup, that.customerGroup) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(customerGroup).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("customerGroup", customerGroup) + .build(); + } + + @Override + public BusinessUnitRemoveCustomerGroupAssignmentAction copyDeep() { + return BusinessUnitRemoveCustomerGroupAssignmentAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsAction.java new file mode 100644 index 00000000000..42513a05b3d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsAction.java @@ -0,0 +1,148 @@ + +package com.commercetools.api.models.business_unit; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer.CustomerGroupAssignmentDraft; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *

Assigns multiple Customer Groups to a Business Unit.

+ *

This action generates the BusinessUnitCustomerGroupAssignmentsSet Message.

+ * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitSetCustomerGroupAssignmentsAction businessUnitSetCustomerGroupAssignmentsAction = BusinessUnitSetCustomerGroupAssignmentsAction.builder()
+ *             .build()
+ * 
+ *
+ */ +@io.vrap.rmf.base.client.utils.json.SubType("setCustomerGroupAssignments") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitSetCustomerGroupAssignmentsActionImpl.class) +public interface BusinessUnitSetCustomerGroupAssignmentsAction extends BusinessUnitUpdateAction { + + /** + * discriminator value for BusinessUnitSetCustomerGroupAssignmentsAction + */ + String SET_CUSTOMER_GROUP_ASSIGNMENTS = "setCustomerGroupAssignments"; + + /** + *

Customer Groups to assign the Business Unit to.

+ * @return customerGroupAssignments + */ + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + + /** + *

Customer Groups to assign the Business Unit to.

+ * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignmentDraft... customerGroupAssignments); + + /** + *

Customer Groups to assign the Business Unit to.

+ * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + + /** + * factory method + * @return instance of BusinessUnitSetCustomerGroupAssignmentsAction + */ + public static BusinessUnitSetCustomerGroupAssignmentsAction of() { + return new BusinessUnitSetCustomerGroupAssignmentsActionImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitSetCustomerGroupAssignmentsAction + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitSetCustomerGroupAssignmentsAction of( + final BusinessUnitSetCustomerGroupAssignmentsAction template) { + BusinessUnitSetCustomerGroupAssignmentsActionImpl instance = new BusinessUnitSetCustomerGroupAssignmentsActionImpl(); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); + return instance; + } + + public BusinessUnitSetCustomerGroupAssignmentsAction copyDeep(); + + /** + * factory method to create a deep copy of BusinessUnitSetCustomerGroupAssignmentsAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitSetCustomerGroupAssignmentsAction deepCopy( + @Nullable final BusinessUnitSetCustomerGroupAssignmentsAction template) { + if (template == null) { + return null; + } + BusinessUnitSetCustomerGroupAssignmentsActionImpl instance = new BusinessUnitSetCustomerGroupAssignmentsActionImpl(); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignmentDraft::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for BusinessUnitSetCustomerGroupAssignmentsAction + * @return builder + */ + public static BusinessUnitSetCustomerGroupAssignmentsActionBuilder builder() { + return BusinessUnitSetCustomerGroupAssignmentsActionBuilder.of(); + } + + /** + * create builder for BusinessUnitSetCustomerGroupAssignmentsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSetCustomerGroupAssignmentsActionBuilder builder( + final BusinessUnitSetCustomerGroupAssignmentsAction template) { + return BusinessUnitSetCustomerGroupAssignmentsActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitSetCustomerGroupAssignmentsAction( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionBuilder.java new file mode 100644 index 00000000000..8fad0165086 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionBuilder.java @@ -0,0 +1,169 @@ + +package com.commercetools.api.models.business_unit; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitSetCustomerGroupAssignmentsActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     BusinessUnitSetCustomerGroupAssignmentsAction businessUnitSetCustomerGroupAssignmentsAction = BusinessUnitSetCustomerGroupAssignmentsAction.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSetCustomerGroupAssignmentsActionBuilder + implements Builder { + + @Nullable + private java.util.List customerGroupAssignments; + + /** + *

Customer Groups to assign the Business Unit to.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitSetCustomerGroupAssignmentsActionBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitSetCustomerGroupAssignmentsActionBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitSetCustomerGroupAssignmentsActionBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitSetCustomerGroupAssignmentsActionBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitSetCustomerGroupAssignmentsActionBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitSetCustomerGroupAssignmentsActionBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + + /** + *

Customer Groups to assign the Business Unit to.

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitSetCustomerGroupAssignmentsActionBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + + /** + *

Customer Groups to assign the Business Unit to.

+ * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + /** + * builds BusinessUnitSetCustomerGroupAssignmentsAction with checking for non-null required values + * @return BusinessUnitSetCustomerGroupAssignmentsAction + */ + public BusinessUnitSetCustomerGroupAssignmentsAction build() { + return new BusinessUnitSetCustomerGroupAssignmentsActionImpl(customerGroupAssignments); + } + + /** + * builds BusinessUnitSetCustomerGroupAssignmentsAction without checking for non-null required values + * @return BusinessUnitSetCustomerGroupAssignmentsAction + */ + public BusinessUnitSetCustomerGroupAssignmentsAction buildUnchecked() { + return new BusinessUnitSetCustomerGroupAssignmentsActionImpl(customerGroupAssignments); + } + + /** + * factory method for an instance of BusinessUnitSetCustomerGroupAssignmentsActionBuilder + * @return builder + */ + public static BusinessUnitSetCustomerGroupAssignmentsActionBuilder of() { + return new BusinessUnitSetCustomerGroupAssignmentsActionBuilder(); + } + + /** + * create builder for BusinessUnitSetCustomerGroupAssignmentsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSetCustomerGroupAssignmentsActionBuilder of( + final BusinessUnitSetCustomerGroupAssignmentsAction template) { + BusinessUnitSetCustomerGroupAssignmentsActionBuilder builder = new BusinessUnitSetCustomerGroupAssignmentsActionBuilder(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionImpl.java new file mode 100644 index 00000000000..76a30ed2dfd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionImpl.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.models.business_unit; + +import java.time.*; +import java.util.*; + +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; + +/** + *

Assigns multiple Customer Groups to a Business Unit.

+ *

This action generates the BusinessUnitCustomerGroupAssignmentsSet Message.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSetCustomerGroupAssignmentsActionImpl + implements BusinessUnitSetCustomerGroupAssignmentsAction, ModelBase { + + private String action; + + private java.util.List customerGroupAssignments; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitSetCustomerGroupAssignmentsActionImpl( + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + this.action = SET_CUSTOMER_GROUP_ASSIGNMENTS; + } + + /** + * create empty instance + */ + public BusinessUnitSetCustomerGroupAssignmentsActionImpl() { + this.action = SET_CUSTOMER_GROUP_ASSIGNMENTS; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitSetCustomerGroupAssignmentsActionImpl that = (BusinessUnitSetCustomerGroupAssignmentsActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(customerGroupAssignments, that.customerGroupAssignments) + .append(action, that.action) + .append(customerGroupAssignments, that.customerGroupAssignments) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(customerGroupAssignments).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("customerGroupAssignments", customerGroupAssignments) + .build(); + } + + @Override + public BusinessUnitSetCustomerGroupAssignmentsAction copyDeep() { + return BusinessUnitSetCustomerGroupAssignmentsAction.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateAction.java index 1bfa1dd61e5..cc9c28155c4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateAction.java @@ -85,6 +85,14 @@ public static com.commercetools.api.models.business_unit.BusinessUnitAddBillingA return com.commercetools.api.models.business_unit.BusinessUnitAddBillingAddressIdActionBuilder.of(); } + /** + * builder for addCustomerGroupAssignment subtype + * @return builder + */ + public static com.commercetools.api.models.business_unit.BusinessUnitAddCustomerGroupAssignmentActionBuilder addCustomerGroupAssignmentBuilder() { + return com.commercetools.api.models.business_unit.BusinessUnitAddCustomerGroupAssignmentActionBuilder.of(); + } + /** * builder for addShippingAddressId subtype * @return builder @@ -181,6 +189,14 @@ public static com.commercetools.api.models.business_unit.BusinessUnitRemoveBilli return com.commercetools.api.models.business_unit.BusinessUnitRemoveBillingAddressIdActionBuilder.of(); } + /** + * builder for removeCustomerGroupAssignment subtype + * @return builder + */ + public static com.commercetools.api.models.business_unit.BusinessUnitRemoveCustomerGroupAssignmentActionBuilder removeCustomerGroupAssignmentBuilder() { + return com.commercetools.api.models.business_unit.BusinessUnitRemoveCustomerGroupAssignmentActionBuilder.of(); + } + /** * builder for removeShippingAddressId subtype * @return builder @@ -245,6 +261,14 @@ public static com.commercetools.api.models.business_unit.BusinessUnitSetCustomTy return com.commercetools.api.models.business_unit.BusinessUnitSetCustomTypeActionBuilder.of(); } + /** + * builder for setCustomerGroupAssignments subtype + * @return builder + */ + public static com.commercetools.api.models.business_unit.BusinessUnitSetCustomerGroupAssignmentsActionBuilder setCustomerGroupAssignmentsBuilder() { + return com.commercetools.api.models.business_unit.BusinessUnitSetCustomerGroupAssignmentsActionBuilder.of(); + } + /** * builder for setDefaultBillingAddress subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateActionBuilder.java index ed7c45eb2e4..868a4ceb68e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateActionBuilder.java @@ -23,6 +23,10 @@ public com.commercetools.api.models.business_unit.BusinessUnitAddBillingAddressI return com.commercetools.api.models.business_unit.BusinessUnitAddBillingAddressIdActionBuilder.of(); } + public com.commercetools.api.models.business_unit.BusinessUnitAddCustomerGroupAssignmentActionBuilder addCustomerGroupAssignmentBuilder() { + return com.commercetools.api.models.business_unit.BusinessUnitAddCustomerGroupAssignmentActionBuilder.of(); + } + public com.commercetools.api.models.business_unit.BusinessUnitAddShippingAddressIdActionBuilder addShippingAddressIdBuilder() { return com.commercetools.api.models.business_unit.BusinessUnitAddShippingAddressIdActionBuilder.of(); } @@ -71,6 +75,10 @@ public com.commercetools.api.models.business_unit.BusinessUnitRemoveBillingAddre return com.commercetools.api.models.business_unit.BusinessUnitRemoveBillingAddressIdActionBuilder.of(); } + public com.commercetools.api.models.business_unit.BusinessUnitRemoveCustomerGroupAssignmentActionBuilder removeCustomerGroupAssignmentBuilder() { + return com.commercetools.api.models.business_unit.BusinessUnitRemoveCustomerGroupAssignmentActionBuilder.of(); + } + public com.commercetools.api.models.business_unit.BusinessUnitRemoveShippingAddressIdActionBuilder removeShippingAddressIdBuilder() { return com.commercetools.api.models.business_unit.BusinessUnitRemoveShippingAddressIdActionBuilder.of(); } @@ -103,6 +111,10 @@ public com.commercetools.api.models.business_unit.BusinessUnitSetCustomTypeActio return com.commercetools.api.models.business_unit.BusinessUnitSetCustomTypeActionBuilder.of(); } + public com.commercetools.api.models.business_unit.BusinessUnitSetCustomerGroupAssignmentsActionBuilder setCustomerGroupAssignmentsBuilder() { + return com.commercetools.api.models.business_unit.BusinessUnitSetCustomerGroupAssignmentsActionBuilder.of(); + } + public com.commercetools.api.models.business_unit.BusinessUnitSetDefaultBillingAddressActionBuilder setDefaultBillingAddressBuilder() { return com.commercetools.api.models.business_unit.BusinessUnitSetDefaultBillingAddressActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Company.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Company.java index 77c0f62af37..d1c65787079 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Company.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Company.java @@ -32,6 +32,8 @@ * .storeMode(BusinessUnitStoreMode.EXPLICIT) * .name("{name}") * .plusAddresses(addressesBuilder -> addressesBuilder) + * .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder) + * .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder) * .associateMode(BusinessUnitAssociateMode.EXPLICIT) * .plusAssociates(associatesBuilder -> associatesBuilder) * .topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder) @@ -124,6 +126,7 @@ public static Company of(final Company template) { instance.setName(template.getName()); instance.setContactEmail(template.getContactEmail()); instance.setCustom(template.getCustom()); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); instance.setAddresses(template.getAddresses()); instance.setShippingAddressIds(template.getShippingAddressIds()); instance.setDefaultShippingAddressId(template.getDefaultShippingAddressId()); @@ -174,6 +177,11 @@ public static Company deepCopy(@Nullable final Company template) { instance.setName(template.getName()); instance.setContactEmail(template.getContactEmail()); instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom())); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); instance.setAddresses(Optional.ofNullable(template.getAddresses()) .map(t -> t.stream() .map(com.commercetools.api.models.common.Address::deepCopy) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java index 3377cb8f255..a7a714802d7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java @@ -25,6 +25,8 @@ * .storeMode(BusinessUnitStoreMode.EXPLICIT) * .name("{name}") * .plusAddresses(addressesBuilder -> addressesBuilder) + * .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder) + * .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder) * .associateMode(BusinessUnitAssociateMode.EXPLICIT) * .plusAssociates(associatesBuilder -> associatesBuilder) * .topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder) @@ -70,15 +72,16 @@ public class CompanyBuilder implements Builder { @Nullable private com.commercetools.api.models.type.CustomFields custom; + @Nullable + private java.util.List customerGroupAssignments; + private java.util.List addresses; - @Nullable private java.util.List shippingAddressIds; @Nullable private String defaultShippingAddressId; - @Nullable private java.util.List billingAddressIds; @Nullable @@ -495,6 +498,106 @@ public CompanyBuilder custom(@Nullable final com.commercetools.api.models.type.C return this; } + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CompanyBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CompanyBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CompanyBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CompanyBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CompanyBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CompanyBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CompanyBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + /** *

Addresses used by the Business Unit.

* @param addresses value to be set @@ -587,7 +690,7 @@ public CompanyBuilder setAddresses( * @return Builder */ - public CompanyBuilder shippingAddressIds(@Nullable final String... shippingAddressIds) { + public CompanyBuilder shippingAddressIds(final String... shippingAddressIds) { this.shippingAddressIds = new ArrayList<>(Arrays.asList(shippingAddressIds)); return this; } @@ -598,7 +701,7 @@ public CompanyBuilder shippingAddressIds(@Nullable final String... shippingAddre * @return Builder */ - public CompanyBuilder shippingAddressIds(@Nullable final java.util.List shippingAddressIds) { + public CompanyBuilder shippingAddressIds(final java.util.List shippingAddressIds) { this.shippingAddressIds = shippingAddressIds; return this; } @@ -609,7 +712,7 @@ public CompanyBuilder shippingAddressIds(@Nullable final java.util.List * @return Builder */ - public CompanyBuilder plusShippingAddressIds(@Nullable final String... shippingAddressIds) { + public CompanyBuilder plusShippingAddressIds(final String... shippingAddressIds) { if (this.shippingAddressIds == null) { this.shippingAddressIds = new ArrayList<>(); } @@ -634,7 +737,7 @@ public CompanyBuilder defaultShippingAddressId(@Nullable final String defaultShi * @return Builder */ - public CompanyBuilder billingAddressIds(@Nullable final String... billingAddressIds) { + public CompanyBuilder billingAddressIds(final String... billingAddressIds) { this.billingAddressIds = new ArrayList<>(Arrays.asList(billingAddressIds)); return this; } @@ -645,7 +748,7 @@ public CompanyBuilder billingAddressIds(@Nullable final String... billingAddress * @return Builder */ - public CompanyBuilder billingAddressIds(@Nullable final java.util.List billingAddressIds) { + public CompanyBuilder billingAddressIds(final java.util.List billingAddressIds) { this.billingAddressIds = billingAddressIds; return this; } @@ -656,7 +759,7 @@ public CompanyBuilder billingAddressIds(@Nullable final java.util.List b * @return Builder */ - public CompanyBuilder plusBillingAddressIds(@Nullable final String... billingAddressIds) { + public CompanyBuilder plusBillingAddressIds(final String... billingAddressIds) { if (this.billingAddressIds == null) { this.billingAddressIds = new ArrayList<>(); } @@ -1090,6 +1193,17 @@ public com.commercetools.api.models.type.CustomFields getCustom() { return this.custom; } + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** *

Addresses used by the Business Unit.

* @return addresses @@ -1104,7 +1218,6 @@ public java.util.List getAddresses( * @return shippingAddressIds */ - @Nullable public java.util.List getShippingAddressIds() { return this.shippingAddressIds; } @@ -1124,7 +1237,6 @@ public String getDefaultShippingAddressId() { * @return billingAddressIds */ - @Nullable public java.util.List getBillingAddressIds() { return this.billingAddressIds; } @@ -1209,14 +1321,16 @@ public Company build() { Objects.requireNonNull(storeMode, Company.class + ": storeMode is missing"); Objects.requireNonNull(name, Company.class + ": name is missing"); Objects.requireNonNull(addresses, Company.class + ": addresses is missing"); + Objects.requireNonNull(shippingAddressIds, Company.class + ": shippingAddressIds is missing"); + Objects.requireNonNull(billingAddressIds, Company.class + ": billingAddressIds is missing"); Objects.requireNonNull(associateMode, Company.class + ": associateMode is missing"); Objects.requireNonNull(associates, Company.class + ": associates is missing"); Objects.requireNonNull(topLevelUnit, Company.class + ": topLevelUnit is missing"); Objects.requireNonNull(approvalRuleMode, Company.class + ": approvalRuleMode is missing"); return new CompanyImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, status, stores, - inheritedStores, storeMode, name, contactEmail, custom, addresses, shippingAddressIds, - defaultShippingAddressId, billingAddressIds, defaultBillingAddressId, associateMode, associates, - inheritedAssociates, parentUnit, topLevelUnit, approvalRuleMode); + inheritedStores, storeMode, name, contactEmail, custom, customerGroupAssignments, addresses, + shippingAddressIds, defaultShippingAddressId, billingAddressIds, defaultBillingAddressId, associateMode, + associates, inheritedAssociates, parentUnit, topLevelUnit, approvalRuleMode); } /** @@ -1225,9 +1339,9 @@ public Company build() { */ public Company buildUnchecked() { return new CompanyImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, status, stores, - inheritedStores, storeMode, name, contactEmail, custom, addresses, shippingAddressIds, - defaultShippingAddressId, billingAddressIds, defaultBillingAddressId, associateMode, associates, - inheritedAssociates, parentUnit, topLevelUnit, approvalRuleMode); + inheritedStores, storeMode, name, contactEmail, custom, customerGroupAssignments, addresses, + shippingAddressIds, defaultShippingAddressId, billingAddressIds, defaultBillingAddressId, associateMode, + associates, inheritedAssociates, parentUnit, topLevelUnit, approvalRuleMode); } /** @@ -1259,6 +1373,7 @@ public static CompanyBuilder of(final Company template) { builder.name = template.getName(); builder.contactEmail = template.getContactEmail(); builder.custom = template.getCustom(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); builder.addresses = template.getAddresses(); builder.shippingAddressIds = template.getShippingAddressIds(); builder.defaultShippingAddressId = template.getDefaultShippingAddressId(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraft.java index 873059804b8..123ca578c2a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraft.java @@ -67,6 +67,7 @@ public static CompanyDraft of(final CompanyDraft template) { instance.setBillingAddresses(template.getBillingAddresses()); instance.setDefaultBillingAddress(template.getDefaultBillingAddress()); instance.setCustom(template.getCustom()); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); return instance; } @@ -112,6 +113,11 @@ public static CompanyDraft deepCopy(@Nullable final CompanyDraft template) { Optional.ofNullable(template.getBillingAddresses()).map(ArrayList::new).orElse(null)); instance.setDefaultBillingAddress(template.getDefaultBillingAddress()); instance.setCustom(com.commercetools.api.models.type.CustomFieldsDraft.deepCopy(template.getCustom())); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignmentDraft::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraftBuilder.java index e3933bb3634..762cdfc4dfd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraftBuilder.java @@ -68,6 +68,9 @@ public class CompanyDraftBuilder implements Builder { @Nullable private com.commercetools.api.models.type.CustomFieldsDraft custom; + @Nullable + private java.util.List customerGroupAssignments; + /** *

User-defined unique and immutable identifier for the Business Unit.

* @param key value to be set @@ -560,6 +563,106 @@ public CompanyDraftBuilder custom(@Nullable final com.commercetools.api.models.t return this; } + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CompanyDraftBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CompanyDraftBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public CompanyDraftBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CompanyDraftBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CompanyDraftBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CompanyDraftBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public CompanyDraftBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + /** *

User-defined unique and immutable identifier for the Business Unit.

* @return key @@ -710,6 +813,17 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() { return this.custom; } + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** * builds CompanyDraft with checking for non-null required values * @return CompanyDraft @@ -719,7 +833,7 @@ public CompanyDraft build() { Objects.requireNonNull(name, CompanyDraft.class + ": name is missing"); return new CompanyDraftImpl(key, status, stores, storeMode, name, contactEmail, associateMode, associates, approvalRuleMode, addresses, shippingAddresses, defaultShippingAddress, billingAddresses, - defaultBillingAddress, custom); + defaultBillingAddress, custom, customerGroupAssignments); } /** @@ -729,7 +843,7 @@ public CompanyDraft build() { public CompanyDraft buildUnchecked() { return new CompanyDraftImpl(key, status, stores, storeMode, name, contactEmail, associateMode, associates, approvalRuleMode, addresses, shippingAddresses, defaultShippingAddress, billingAddresses, - defaultBillingAddress, custom); + defaultBillingAddress, custom, customerGroupAssignments); } /** @@ -762,6 +876,7 @@ public static CompanyDraftBuilder of(final CompanyDraft template) { builder.billingAddresses = template.getBillingAddresses(); builder.defaultBillingAddress = template.getDefaultBillingAddress(); builder.custom = template.getCustom(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraftImpl.java index 822b75e0961..e896258c843 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyDraftImpl.java @@ -54,6 +54,8 @@ public class CompanyDraftImpl implements CompanyDraft, ModelBase { private com.commercetools.api.models.type.CustomFieldsDraft custom; + private java.util.List customerGroupAssignments; + /** * create instance with all properties */ @@ -71,7 +73,8 @@ public class CompanyDraftImpl implements CompanyDraft, ModelBase { @JsonProperty("defaultShippingAddress") final Integer defaultShippingAddress, @JsonProperty("billingAddresses") final java.util.List billingAddresses, @JsonProperty("defaultBillingAddress") final Integer defaultBillingAddress, - @JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom) { + @JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom, + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments) { this.key = key; this.status = status; this.stores = stores; @@ -87,6 +90,7 @@ public class CompanyDraftImpl implements CompanyDraft, ModelBase { this.billingAddresses = billingAddresses; this.defaultBillingAddress = defaultBillingAddress; this.custom = custom; + this.customerGroupAssignments = customerGroupAssignments; this.unitType = BusinessUnitType.findEnum("Company"); } @@ -227,6 +231,15 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() { return this.custom; } + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + public void setKey(final String key) { this.key = key; } @@ -310,6 +323,16 @@ public void setCustom(final com.commercetools.api.models.type.CustomFieldsDraft this.custom = custom; } + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + @Override public boolean equals(Object o) { if (this == o) @@ -336,6 +359,7 @@ public boolean equals(Object o) { .append(billingAddresses, that.billingAddresses) .append(defaultBillingAddress, that.defaultBillingAddress) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(key, that.key) .append(status, that.status) .append(stores, that.stores) @@ -352,6 +376,7 @@ public boolean equals(Object o) { .append(billingAddresses, that.billingAddresses) .append(defaultBillingAddress, that.defaultBillingAddress) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .isEquals(); } @@ -373,6 +398,7 @@ public int hashCode() { .append(billingAddresses) .append(defaultBillingAddress) .append(custom) + .append(customerGroupAssignments) .toHashCode(); } @@ -394,6 +420,7 @@ public String toString() { .append("billingAddresses", billingAddresses) .append("defaultBillingAddress", defaultBillingAddress) .append("custom", custom) + .append("customerGroupAssignments", customerGroupAssignments) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java index 4881ca4ea5e..dc391ce6c7f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java @@ -52,6 +52,8 @@ public class CompanyImpl implements Company, ModelBase { private com.commercetools.api.models.type.CustomFields custom; + private java.util.List customerGroupAssignments; + private java.util.List addresses; private java.util.List shippingAddressIds; @@ -90,6 +92,7 @@ public class CompanyImpl implements Company, ModelBase { @JsonProperty("storeMode") final com.commercetools.api.models.business_unit.BusinessUnitStoreMode storeMode, @JsonProperty("name") final String name, @JsonProperty("contactEmail") final String contactEmail, @JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom, + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments, @JsonProperty("addresses") final java.util.List addresses, @JsonProperty("shippingAddressIds") final java.util.List shippingAddressIds, @JsonProperty("defaultShippingAddressId") final String defaultShippingAddressId, @@ -115,6 +118,7 @@ public class CompanyImpl implements Company, ModelBase { this.name = name; this.contactEmail = contactEmail; this.custom = custom; + this.customerGroupAssignments = customerGroupAssignments; this.addresses = addresses; this.shippingAddressIds = shippingAddressIds; this.defaultShippingAddressId = defaultShippingAddressId; @@ -258,6 +262,15 @@ public com.commercetools.api.models.type.CustomFields getCustom() { return this.custom; } + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** *

Addresses used by the Business Unit.

*/ @@ -411,6 +424,16 @@ public void setCustom(final com.commercetools.api.models.type.CustomFields custo this.custom = custom; } + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + public void setAddresses(final com.commercetools.api.models.common.Address... addresses) { this.addresses = new ArrayList<>(Arrays.asList(addresses)); } @@ -505,6 +528,7 @@ public boolean equals(Object o) { .append(name, that.name) .append(contactEmail, that.contactEmail) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(addresses, that.addresses) .append(shippingAddressIds, that.shippingAddressIds) .append(defaultShippingAddressId, that.defaultShippingAddressId) @@ -531,6 +555,7 @@ public boolean equals(Object o) { .append(name, that.name) .append(contactEmail, that.contactEmail) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(addresses, that.addresses) .append(shippingAddressIds, that.shippingAddressIds) .append(defaultShippingAddressId, that.defaultShippingAddressId) @@ -562,6 +587,7 @@ public int hashCode() { .append(name) .append(contactEmail) .append(custom) + .append(customerGroupAssignments) .append(addresses) .append(shippingAddressIds) .append(defaultShippingAddressId) @@ -593,6 +619,7 @@ public String toString() { .append("name", name) .append("contactEmail", contactEmail) .append("custom", custom) + .append("customerGroupAssignments", customerGroupAssignments) .append("addresses", addresses) .append("shippingAddressIds", shippingAddressIds) .append("defaultShippingAddressId", defaultShippingAddressId) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Division.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Division.java index 19a3edf875c..dd18728da8c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Division.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Division.java @@ -33,6 +33,8 @@ * .storeMode(BusinessUnitStoreMode.EXPLICIT) * .name("{name}") * .plusAddresses(addressesBuilder -> addressesBuilder) + * .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder) + * .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder) * .associateMode(BusinessUnitAssociateMode.EXPLICIT) * .plusAssociates(associatesBuilder -> associatesBuilder) * .parentUnit(parentUnitBuilder -> parentUnitBuilder) @@ -142,6 +144,7 @@ public static Division of(final Division template) { instance.setName(template.getName()); instance.setContactEmail(template.getContactEmail()); instance.setCustom(template.getCustom()); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); instance.setAddresses(template.getAddresses()); instance.setShippingAddressIds(template.getShippingAddressIds()); instance.setDefaultShippingAddressId(template.getDefaultShippingAddressId()); @@ -192,6 +195,11 @@ public static Division deepCopy(@Nullable final Division template) { instance.setName(template.getName()); instance.setContactEmail(template.getContactEmail()); instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom())); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); instance.setAddresses(Optional.ofNullable(template.getAddresses()) .map(t -> t.stream() .map(com.commercetools.api.models.common.Address::deepCopy) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java index 3ad8a6a6e34..6672625710b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java @@ -25,6 +25,8 @@ * .storeMode(BusinessUnitStoreMode.EXPLICIT) * .name("{name}") * .plusAddresses(addressesBuilder -> addressesBuilder) + * .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder) + * .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder) * .associateMode(BusinessUnitAssociateMode.EXPLICIT) * .plusAssociates(associatesBuilder -> associatesBuilder) * .parentUnit(parentUnitBuilder -> parentUnitBuilder) @@ -71,15 +73,16 @@ public class DivisionBuilder implements Builder { @Nullable private com.commercetools.api.models.type.CustomFields custom; + @Nullable + private java.util.List customerGroupAssignments; + private java.util.List addresses; - @Nullable private java.util.List shippingAddressIds; @Nullable private String defaultShippingAddressId; - @Nullable private java.util.List billingAddressIds; @Nullable @@ -495,6 +498,106 @@ public DivisionBuilder custom(@Nullable final com.commercetools.api.models.type. return this; } + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public DivisionBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public DivisionBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public DivisionBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public DivisionBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public DivisionBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public DivisionBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public DivisionBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + /** *

Addresses used by the Business Unit.

* @param addresses value to be set @@ -587,7 +690,7 @@ public DivisionBuilder setAddresses( * @return Builder */ - public DivisionBuilder shippingAddressIds(@Nullable final String... shippingAddressIds) { + public DivisionBuilder shippingAddressIds(final String... shippingAddressIds) { this.shippingAddressIds = new ArrayList<>(Arrays.asList(shippingAddressIds)); return this; } @@ -598,7 +701,7 @@ public DivisionBuilder shippingAddressIds(@Nullable final String... shippingAddr * @return Builder */ - public DivisionBuilder shippingAddressIds(@Nullable final java.util.List shippingAddressIds) { + public DivisionBuilder shippingAddressIds(final java.util.List shippingAddressIds) { this.shippingAddressIds = shippingAddressIds; return this; } @@ -609,7 +712,7 @@ public DivisionBuilder shippingAddressIds(@Nullable final java.util.List * @return Builder */ - public DivisionBuilder plusShippingAddressIds(@Nullable final String... shippingAddressIds) { + public DivisionBuilder plusShippingAddressIds(final String... shippingAddressIds) { if (this.shippingAddressIds == null) { this.shippingAddressIds = new ArrayList<>(); } @@ -634,7 +737,7 @@ public DivisionBuilder defaultShippingAddressId(@Nullable final String defaultSh * @return Builder */ - public DivisionBuilder billingAddressIds(@Nullable final String... billingAddressIds) { + public DivisionBuilder billingAddressIds(final String... billingAddressIds) { this.billingAddressIds = new ArrayList<>(Arrays.asList(billingAddressIds)); return this; } @@ -645,7 +748,7 @@ public DivisionBuilder billingAddressIds(@Nullable final String... billingAddres * @return Builder */ - public DivisionBuilder billingAddressIds(@Nullable final java.util.List billingAddressIds) { + public DivisionBuilder billingAddressIds(final java.util.List billingAddressIds) { this.billingAddressIds = billingAddressIds; return this; } @@ -656,7 +759,7 @@ public DivisionBuilder billingAddressIds(@Nullable final java.util.List * @return Builder */ - public DivisionBuilder plusBillingAddressIds(@Nullable final String... billingAddressIds) { + public DivisionBuilder plusBillingAddressIds(final String... billingAddressIds) { if (this.billingAddressIds == null) { this.billingAddressIds = new ArrayList<>(); } @@ -1090,6 +1193,17 @@ public com.commercetools.api.models.type.CustomFields getCustom() { return this.custom; } + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** *

Addresses used by the Business Unit.

* @return addresses @@ -1104,7 +1218,6 @@ public java.util.List getAddresses( * @return shippingAddressIds */ - @Nullable public java.util.List getShippingAddressIds() { return this.shippingAddressIds; } @@ -1124,7 +1237,6 @@ public String getDefaultShippingAddressId() { * @return billingAddressIds */ - @Nullable public java.util.List getBillingAddressIds() { return this.billingAddressIds; } @@ -1208,15 +1320,17 @@ public Division build() { Objects.requireNonNull(storeMode, Division.class + ": storeMode is missing"); Objects.requireNonNull(name, Division.class + ": name is missing"); Objects.requireNonNull(addresses, Division.class + ": addresses is missing"); + Objects.requireNonNull(shippingAddressIds, Division.class + ": shippingAddressIds is missing"); + Objects.requireNonNull(billingAddressIds, Division.class + ": billingAddressIds is missing"); Objects.requireNonNull(associateMode, Division.class + ": associateMode is missing"); Objects.requireNonNull(associates, Division.class + ": associates is missing"); Objects.requireNonNull(parentUnit, Division.class + ": parentUnit is missing"); Objects.requireNonNull(topLevelUnit, Division.class + ": topLevelUnit is missing"); Objects.requireNonNull(approvalRuleMode, Division.class + ": approvalRuleMode is missing"); return new DivisionImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, status, stores, - inheritedStores, storeMode, name, contactEmail, custom, addresses, shippingAddressIds, - defaultShippingAddressId, billingAddressIds, defaultBillingAddressId, associateMode, associates, - inheritedAssociates, parentUnit, topLevelUnit, approvalRuleMode); + inheritedStores, storeMode, name, contactEmail, custom, customerGroupAssignments, addresses, + shippingAddressIds, defaultShippingAddressId, billingAddressIds, defaultBillingAddressId, associateMode, + associates, inheritedAssociates, parentUnit, topLevelUnit, approvalRuleMode); } /** @@ -1225,9 +1339,9 @@ public Division build() { */ public Division buildUnchecked() { return new DivisionImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, status, stores, - inheritedStores, storeMode, name, contactEmail, custom, addresses, shippingAddressIds, - defaultShippingAddressId, billingAddressIds, defaultBillingAddressId, associateMode, associates, - inheritedAssociates, parentUnit, topLevelUnit, approvalRuleMode); + inheritedStores, storeMode, name, contactEmail, custom, customerGroupAssignments, addresses, + shippingAddressIds, defaultShippingAddressId, billingAddressIds, defaultBillingAddressId, associateMode, + associates, inheritedAssociates, parentUnit, topLevelUnit, approvalRuleMode); } /** @@ -1259,6 +1373,7 @@ public static DivisionBuilder of(final Division template) { builder.name = template.getName(); builder.contactEmail = template.getContactEmail(); builder.custom = template.getCustom(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); builder.addresses = template.getAddresses(); builder.shippingAddressIds = template.getShippingAddressIds(); builder.defaultShippingAddressId = template.getDefaultShippingAddressId(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraft.java index 6a19d3d92a1..e02c1ccab14 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraft.java @@ -132,6 +132,7 @@ public static DivisionDraft of(final DivisionDraft template) { instance.setBillingAddresses(template.getBillingAddresses()); instance.setDefaultBillingAddress(template.getDefaultBillingAddress()); instance.setCustom(template.getCustom()); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); instance.setParentUnit(template.getParentUnit()); return instance; } @@ -178,6 +179,11 @@ public static DivisionDraft deepCopy(@Nullable final DivisionDraft template) { Optional.ofNullable(template.getBillingAddresses()).map(ArrayList::new).orElse(null)); instance.setDefaultBillingAddress(template.getDefaultBillingAddress()); instance.setCustom(com.commercetools.api.models.type.CustomFieldsDraft.deepCopy(template.getCustom())); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignmentDraft::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); instance.setParentUnit(com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier .deepCopy(template.getParentUnit())); return instance; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraftBuilder.java index bf811bf396f..3d6d1ada0c2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraftBuilder.java @@ -69,6 +69,9 @@ public class DivisionDraftBuilder implements Builder { @Nullable private com.commercetools.api.models.type.CustomFieldsDraft custom; + @Nullable + private java.util.List customerGroupAssignments; + private com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit; /** @@ -564,6 +567,106 @@ public DivisionDraftBuilder custom(@Nullable final com.commercetools.api.models. return this; } + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public DivisionDraftBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public DivisionDraftBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param customerGroupAssignments value to be set + * @return Builder + */ + + public DivisionDraftBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public DivisionDraftBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public DivisionDraftBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments.add( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of()).build()); + return this; + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public DivisionDraftBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public DivisionDraftBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentDraftBuilder.of())); + } + /** *

The parent unit of this Division. Can be a Company or a Division.

* @param builder function to build the parentUnit value @@ -753,6 +856,17 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() { return this.custom; } + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** *

The parent unit of this Division. Can be a Company or a Division.

* @return parentUnit @@ -772,7 +886,7 @@ public DivisionDraft build() { Objects.requireNonNull(parentUnit, DivisionDraft.class + ": parentUnit is missing"); return new DivisionDraftImpl(key, status, stores, storeMode, name, contactEmail, associateMode, associates, approvalRuleMode, addresses, shippingAddresses, defaultShippingAddress, billingAddresses, - defaultBillingAddress, custom, parentUnit); + defaultBillingAddress, custom, customerGroupAssignments, parentUnit); } /** @@ -782,7 +896,7 @@ public DivisionDraft build() { public DivisionDraft buildUnchecked() { return new DivisionDraftImpl(key, status, stores, storeMode, name, contactEmail, associateMode, associates, approvalRuleMode, addresses, shippingAddresses, defaultShippingAddress, billingAddresses, - defaultBillingAddress, custom, parentUnit); + defaultBillingAddress, custom, customerGroupAssignments, parentUnit); } /** @@ -815,6 +929,7 @@ public static DivisionDraftBuilder of(final DivisionDraft template) { builder.billingAddresses = template.getBillingAddresses(); builder.defaultBillingAddress = template.getDefaultBillingAddress(); builder.custom = template.getCustom(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); builder.parentUnit = template.getParentUnit(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraftImpl.java index 54807da5913..ed27baa616a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionDraftImpl.java @@ -54,6 +54,8 @@ public class DivisionDraftImpl implements DivisionDraft, ModelBase { private com.commercetools.api.models.type.CustomFieldsDraft custom; + private java.util.List customerGroupAssignments; + private com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit; /** @@ -74,6 +76,7 @@ public class DivisionDraftImpl implements DivisionDraft, ModelBase { @JsonProperty("billingAddresses") final java.util.List billingAddresses, @JsonProperty("defaultBillingAddress") final Integer defaultBillingAddress, @JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom, + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments, @JsonProperty("parentUnit") final com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit) { this.key = key; this.status = status; @@ -90,6 +93,7 @@ public class DivisionDraftImpl implements DivisionDraft, ModelBase { this.billingAddresses = billingAddresses; this.defaultBillingAddress = defaultBillingAddress; this.custom = custom; + this.customerGroupAssignments = customerGroupAssignments; this.parentUnit = parentUnit; this.unitType = BusinessUnitType.findEnum("Division"); } @@ -231,6 +235,15 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() { return this.custom; } + /** + *

Customer Groups to assign the Business Unit to.

+ *

They are considered during line Item price selection, if provided (non-null).

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** *

The parent unit of this Division. Can be a Company or a Division.

*/ @@ -322,6 +335,16 @@ public void setCustom(final com.commercetools.api.models.type.CustomFieldsDraft this.custom = custom; } + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignmentDraft... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + public void setParentUnit( final com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit) { this.parentUnit = parentUnit; @@ -353,6 +376,7 @@ public boolean equals(Object o) { .append(billingAddresses, that.billingAddresses) .append(defaultBillingAddress, that.defaultBillingAddress) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(parentUnit, that.parentUnit) .append(key, that.key) .append(status, that.status) @@ -370,6 +394,7 @@ public boolean equals(Object o) { .append(billingAddresses, that.billingAddresses) .append(defaultBillingAddress, that.defaultBillingAddress) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(parentUnit, that.parentUnit) .isEquals(); } @@ -392,6 +417,7 @@ public int hashCode() { .append(billingAddresses) .append(defaultBillingAddress) .append(custom) + .append(customerGroupAssignments) .append(parentUnit) .toHashCode(); } @@ -414,6 +440,7 @@ public String toString() { .append("billingAddresses", billingAddresses) .append("defaultBillingAddress", defaultBillingAddress) .append("custom", custom) + .append("customerGroupAssignments", customerGroupAssignments) .append("parentUnit", parentUnit) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java index bf8c2849b9a..ebfddf3d394 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java @@ -52,6 +52,8 @@ public class DivisionImpl implements Division, ModelBase { private com.commercetools.api.models.type.CustomFields custom; + private java.util.List customerGroupAssignments; + private java.util.List addresses; private java.util.List shippingAddressIds; @@ -90,6 +92,7 @@ public class DivisionImpl implements Division, ModelBase { @JsonProperty("storeMode") final com.commercetools.api.models.business_unit.BusinessUnitStoreMode storeMode, @JsonProperty("name") final String name, @JsonProperty("contactEmail") final String contactEmail, @JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom, + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments, @JsonProperty("addresses") final java.util.List addresses, @JsonProperty("shippingAddressIds") final java.util.List shippingAddressIds, @JsonProperty("defaultShippingAddressId") final String defaultShippingAddressId, @@ -115,6 +118,7 @@ public class DivisionImpl implements Division, ModelBase { this.name = name; this.contactEmail = contactEmail; this.custom = custom; + this.customerGroupAssignments = customerGroupAssignments; this.addresses = addresses; this.shippingAddressIds = shippingAddressIds; this.defaultShippingAddressId = defaultShippingAddressId; @@ -258,6 +262,15 @@ public com.commercetools.api.models.type.CustomFields getCustom() { return this.custom; } + /** + *

Customer Groups assigned to the Business Unit.

+ *

They are considered during line Item price selection, if provided (non-null).

+ */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + /** *

Addresses used by the Business Unit.

*/ @@ -411,6 +424,16 @@ public void setCustom(final com.commercetools.api.models.type.CustomFields custo this.custom = custom; } + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + public void setAddresses(final com.commercetools.api.models.common.Address... addresses) { this.addresses = new ArrayList<>(Arrays.asList(addresses)); } @@ -505,6 +528,7 @@ public boolean equals(Object o) { .append(name, that.name) .append(contactEmail, that.contactEmail) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(addresses, that.addresses) .append(shippingAddressIds, that.shippingAddressIds) .append(defaultShippingAddressId, that.defaultShippingAddressId) @@ -531,6 +555,7 @@ public boolean equals(Object o) { .append(name, that.name) .append(contactEmail, that.contactEmail) .append(custom, that.custom) + .append(customerGroupAssignments, that.customerGroupAssignments) .append(addresses, that.addresses) .append(shippingAddressIds, that.shippingAddressIds) .append(defaultShippingAddressId, that.defaultShippingAddressId) @@ -562,6 +587,7 @@ public int hashCode() { .append(name) .append(contactEmail) .append(custom) + .append(customerGroupAssignments) .append(addresses) .append(shippingAddressIds) .append(defaultShippingAddressId) @@ -593,6 +619,7 @@ public String toString() { .append("name", name) .append("contactEmail", contactEmail) .append("custom", custom) + .append("customerGroupAssignments", customerGroupAssignments) .append("addresses", addresses) .append("shippingAddressIds", shippingAddressIds) .append("defaultShippingAddressId", defaultShippingAddressId) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/InventoryMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/InventoryMode.java index 6c1da7fe87b..d06c64dba14 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/InventoryMode.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/InventoryMode.java @@ -22,7 +22,7 @@ public interface InventoryMode extends JsonEnum { InventoryMode NONE = InventoryModeEnum.NONE; /**

Orders are tracked on the Inventory, and ordering a LineItem deducts the available quantity on the respective InventoryEntry.

-

An Order can be created even if the Line Item quantity is zero or negative, but if no matching Inventory Entry exists for the Line Item, an OutOfStock error is returned.

*/ +

An Order can be created even if the Inventory Entry quantity is zero or negative. However, if no matching Inventory Entry exists for the Line Item, an OutOfStock error is returned.

*/ InventoryMode TRACK_ONLY = InventoryModeEnum.TRACK_ONLY; /**

Line Items in a Cart are only reserved for the duration of the ordering transaction. If a Line Item is not available when creating an Order, an OutOfStock error is returned. This is because the InventoryEntry availableQuantity is insufficient (but is still updated) for the ordered Line Item quantity.

diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ProductPublishScope.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ProductPublishScope.java index 385b0777844..e9456b78e5b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ProductPublishScope.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ProductPublishScope.java @@ -17,7 +17,7 @@ public interface ProductPublishScope extends JsonEnum { /** -

Publishes a Product that causes the staged projection of the Product to override the current projection. If the Product is published for the first time, the current projection is created. This is the default scope.

*/ +

Publishes a Product that causes the staged projection of the Product to override the current projection. This is the default scope.

*/ ProductPublishScope ALL = ProductPublishScopeEnum.ALL; /**

Publishes the Prices of the Product (only if the Product is already published). All Product Variants' Prices in the staged projection are published into the current projection with the same id. Prices in a staged Product Variant that has no current projection are not published. Prices in a current Product Variant that has no staged projection are unchanged. The hasStagedChanges flag is updated according to whether the staged and current projections still differ after the prices are published.

*/ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/AddressRole.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/AddressRole.java new file mode 100644 index 00000000000..528c6c42e79 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/AddressRole.java @@ -0,0 +1,115 @@ + +package com.commercetools.api.models.common; + +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; + +/** + *

Indicates the role of an address.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface AddressRole extends JsonEnum { + + /** +

The address is used as a shipping address.

*/ + AddressRole SHIPPING = AddressRoleEnum.SHIPPING; + /** +

The address is used as a billing address.

*/ + AddressRole BILLING = AddressRoleEnum.BILLING; + + /** + * possible values of AddressRole + */ + enum AddressRoleEnum implements AddressRole { + /** + * Shipping + */ + SHIPPING("Shipping"), + + /** + * Billing + */ + BILLING("Billing"); + private final String jsonName; + + private AddressRoleEnum(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 AddressRole + * 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 AddressRole findEnum(String value) { + return findEnumViaJsonName(value).orElse(new AddressRole() { + @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 Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static AddressRole[] values() { + return AddressRoleEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/CentPrecisionMoneyBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/CentPrecisionMoneyBuilder.java index 2e98e4a5b2c..be76c0390d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/CentPrecisionMoneyBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/CentPrecisionMoneyBuilder.java @@ -35,6 +35,7 @@ public class CentPrecisionMoneyBuilder implements Builder { *
  • Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as 500).
  • *
  • The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as 5).
  • * + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    * @param centAmount value to be set * @return Builder */ @@ -72,6 +73,7 @@ public CentPrecisionMoneyBuilder fractionDigits(final Integer fractionDigits) { *
  • Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as 500).
  • *
  • The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as 5).
  • * + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    * @return centAmount */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/CentPrecisionMoneyImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/CentPrecisionMoneyImpl.java index 1197036b113..fe84655ea84 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/CentPrecisionMoneyImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/CentPrecisionMoneyImpl.java @@ -56,6 +56,7 @@ public CentPrecisionMoneyImpl() { *
  • Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as 500).
  • *
  • The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as 5).
  • * + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    */ public Long getCentAmount() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyBuilder.java index 89d7bc21b1c..f89507a4bb9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyBuilder.java @@ -38,6 +38,7 @@ public class HighPrecisionMoneyBuilder implements Builder { *
  • Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as 500).
  • *
  • The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as 5).
  • * + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    * @param centAmount value to be set * @return Builder */ @@ -86,6 +87,7 @@ public HighPrecisionMoneyBuilder preciseAmount(final Long preciseAmount) { *
  • Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as 500).
  • *
  • The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as 5).
  • * + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    * @return centAmount */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraft.java index da8628bd503..ffd8905e467 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraft.java @@ -50,6 +50,7 @@ public interface HighPrecisionMoneyDraft /** *

    Amount in 1 / (10 ^ fractionDigits) of a currency.

    + *

    preciseAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    * @return preciseAmount */ @NotNull @@ -59,6 +60,7 @@ public interface HighPrecisionMoneyDraft /** *

    Amount in the smallest indivisible unit of a currency. This field is optional for high precision. If provided, it is checked for validity. Example:

    *

    A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.

    + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    *

    If centAmount is not provided, the API calculates the value automatically using the default rounding mode half even.

    * @return centAmount */ @@ -75,6 +77,7 @@ public interface HighPrecisionMoneyDraft /** *

    Amount in 1 / (10 ^ fractionDigits) of a currency.

    + *

    preciseAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    * @param preciseAmount value to be set */ @@ -83,6 +86,7 @@ public interface HighPrecisionMoneyDraft /** *

    Amount in the smallest indivisible unit of a currency. This field is optional for high precision. If provided, it is checked for validity. Example:

    *

    A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.

    + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    *

    If centAmount is not provided, the API calculates the value automatically using the default rounding mode half even.

    * @param centAmount value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraftBuilder.java index 153535b48a9..ec9cb8c4f24 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraftBuilder.java @@ -37,6 +37,7 @@ public class HighPrecisionMoneyDraftBuilder implements BuilderAmount in the smallest indivisible unit of a currency. This field is optional for high precision. If provided, it is checked for validity. Example:

    *

    A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.

    + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    *

    If centAmount is not provided, the API calculates the value automatically using the default rounding mode half even.

    * @param centAmount value to be set * @return Builder @@ -71,6 +72,7 @@ public HighPrecisionMoneyDraftBuilder fractionDigits(final Integer fractionDigit /** *

    Amount in 1 / (10 ^ fractionDigits) of a currency.

    + *

    preciseAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    * @param preciseAmount value to be set * @return Builder */ @@ -83,6 +85,7 @@ public HighPrecisionMoneyDraftBuilder preciseAmount(final Long preciseAmount) { /** *

    Amount in the smallest indivisible unit of a currency. This field is optional for high precision. If provided, it is checked for validity. Example:

    *

    A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.

    + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    *

    If centAmount is not provided, the API calculates the value automatically using the default rounding mode half even.

    * @return centAmount */ @@ -112,6 +115,7 @@ public Integer getFractionDigits() { /** *

    Amount in 1 / (10 ^ fractionDigits) of a currency.

    + *

    preciseAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    * @return preciseAmount */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraftImpl.java index dc9638614ad..1c0b5720dc0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyDraftImpl.java @@ -57,6 +57,7 @@ public HighPrecisionMoneyDraftImpl() { /** *

    Amount in the smallest indivisible unit of a currency. This field is optional for high precision. If provided, it is checked for validity. Example:

    *

    A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.

    + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    *

    If centAmount is not provided, the API calculates the value automatically using the default rounding mode half even.

    */ @@ -90,6 +91,7 @@ public Integer getFractionDigits() { /** *

    Amount in 1 / (10 ^ fractionDigits) of a currency.

    + *

    preciseAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    */ public Long getPreciseAmount() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyImpl.java index 6631470d2b2..bdea03864ba 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/HighPrecisionMoneyImpl.java @@ -60,6 +60,7 @@ public HighPrecisionMoneyImpl() { *
  • Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as 500).
  • *
  • The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as 5).
  • * + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    */ public Long getCentAmount() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/TypedMoneyImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/TypedMoneyImpl.java index e85d5dd4295..8bfe9bb49af 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/TypedMoneyImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/TypedMoneyImpl.java @@ -56,6 +56,7 @@ public TypedMoneyImpl() { *
  • Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as 500).
  • *
  • The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as 5).
  • * + *

    centAmount is represented as 64-bit integers. If this limit is exceeded, a MoneyOverflow error will be returned.

    */ public Long getCentAmount() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java index 76e13d08051..db20794f893 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java @@ -39,7 +39,10 @@ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z")) * .email("{email}") * .plusAddresses(addressesBuilder -> addressesBuilder) + * .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder) + * .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder) * .isEmailVerified(true) + * .plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder) * .plusStores(storesBuilder -> storesBuilder) * .authenticationMode(AuthenticationMode.PASSWORD) * .build() @@ -219,7 +222,7 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools *

    IDs of addresses in addresses used as shipping addresses.

    * @return shippingAddressIds */ - + @NotNull @JsonProperty("shippingAddressIds") public List getShippingAddressIds(); @@ -235,7 +238,7 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools *

    IDs of addresses in addresses used as billing addresses.

    * @return billingAddressIds */ - + @NotNull @JsonProperty("billingAddressIds") public List getBillingAddressIds(); @@ -260,6 +263,7 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools *

    Used for Line Item price selection.

    * @return customerGroupAssignments */ + @NotNull @Valid @JsonProperty("customerGroupAssignments") public List getCustomerGroupAssignments(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java index 8db7a39282d..107c60bfcad 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java @@ -22,7 +22,10 @@ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z")) * .email("{email}") * .plusAddresses(addressesBuilder -> addressesBuilder) + * .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder) + * .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder) * .isEmailVerified(true) + * .plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder) * .plusStores(storesBuilder -> storesBuilder) * .authenticationMode(AuthenticationMode.PASSWORD) * .build() @@ -86,13 +89,11 @@ public class CustomerBuilder implements Builder { @Nullable private String defaultShippingAddressId; - @Nullable private java.util.List shippingAddressIds; @Nullable private String defaultBillingAddressId; - @Nullable private java.util.List billingAddressIds; private Boolean isEmailVerified; @@ -100,7 +101,6 @@ public class CustomerBuilder implements Builder { @Nullable private com.commercetools.api.models.customer_group.CustomerGroupReference customerGroup; - @Nullable private java.util.List customerGroupAssignments; @Nullable @@ -467,7 +467,7 @@ public CustomerBuilder defaultShippingAddressId(@Nullable final String defaultSh * @return Builder */ - public CustomerBuilder shippingAddressIds(@Nullable final String... shippingAddressIds) { + public CustomerBuilder shippingAddressIds(final String... shippingAddressIds) { this.shippingAddressIds = new ArrayList<>(Arrays.asList(shippingAddressIds)); return this; } @@ -478,7 +478,7 @@ public CustomerBuilder shippingAddressIds(@Nullable final String... shippingAddr * @return Builder */ - public CustomerBuilder shippingAddressIds(@Nullable final java.util.List shippingAddressIds) { + public CustomerBuilder shippingAddressIds(final java.util.List shippingAddressIds) { this.shippingAddressIds = shippingAddressIds; return this; } @@ -489,7 +489,7 @@ public CustomerBuilder shippingAddressIds(@Nullable final java.util.List * @return Builder */ - public CustomerBuilder plusShippingAddressIds(@Nullable final String... shippingAddressIds) { + public CustomerBuilder plusShippingAddressIds(final String... shippingAddressIds) { if (this.shippingAddressIds == null) { this.shippingAddressIds = new ArrayList<>(); } @@ -514,7 +514,7 @@ public CustomerBuilder defaultBillingAddressId(@Nullable final String defaultBil * @return Builder */ - public CustomerBuilder billingAddressIds(@Nullable final String... billingAddressIds) { + public CustomerBuilder billingAddressIds(final String... billingAddressIds) { this.billingAddressIds = new ArrayList<>(Arrays.asList(billingAddressIds)); return this; } @@ -525,7 +525,7 @@ public CustomerBuilder billingAddressIds(@Nullable final String... billingAddres * @return Builder */ - public CustomerBuilder billingAddressIds(@Nullable final java.util.List billingAddressIds) { + public CustomerBuilder billingAddressIds(final java.util.List billingAddressIds) { this.billingAddressIds = billingAddressIds; return this; } @@ -536,7 +536,7 @@ public CustomerBuilder billingAddressIds(@Nullable final java.util.List * @return Builder */ - public CustomerBuilder plusBillingAddressIds(@Nullable final String... billingAddressIds) { + public CustomerBuilder plusBillingAddressIds(final String... billingAddressIds) { if (this.billingAddressIds == null) { this.billingAddressIds = new ArrayList<>(); } @@ -602,7 +602,7 @@ public CustomerBuilder customerGroup( */ public CustomerBuilder customerGroupAssignments( - @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); return this; } @@ -615,7 +615,7 @@ public CustomerBuilder customerGroupAssignments( */ public CustomerBuilder customerGroupAssignments( - @Nullable final java.util.List customerGroupAssignments) { + final java.util.List customerGroupAssignments) { this.customerGroupAssignments = customerGroupAssignments; return this; } @@ -628,7 +628,7 @@ public CustomerBuilder customerGroupAssignments( */ public CustomerBuilder plusCustomerGroupAssignments( - @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { if (this.customerGroupAssignments == null) { this.customerGroupAssignments = new ArrayList<>(); } @@ -1077,7 +1077,6 @@ public String getDefaultShippingAddressId() { * @return shippingAddressIds */ - @Nullable public java.util.List getShippingAddressIds() { return this.shippingAddressIds; } @@ -1097,7 +1096,6 @@ public String getDefaultBillingAddressId() { * @return billingAddressIds */ - @Nullable public java.util.List getBillingAddressIds() { return this.billingAddressIds; } @@ -1127,7 +1125,6 @@ public com.commercetools.api.models.customer_group.CustomerGroupReference getCus * @return customerGroupAssignments */ - @Nullable public java.util.List getCustomerGroupAssignments() { return this.customerGroupAssignments; } @@ -1195,7 +1192,10 @@ public Customer build() { Objects.requireNonNull(lastModifiedAt, Customer.class + ": lastModifiedAt is missing"); Objects.requireNonNull(email, Customer.class + ": email is missing"); Objects.requireNonNull(addresses, Customer.class + ": addresses is missing"); + Objects.requireNonNull(shippingAddressIds, Customer.class + ": shippingAddressIds is missing"); + Objects.requireNonNull(billingAddressIds, Customer.class + ": billingAddressIds is missing"); Objects.requireNonNull(isEmailVerified, Customer.class + ": isEmailVerified is missing"); + Objects.requireNonNull(customerGroupAssignments, Customer.class + ": customerGroupAssignments is missing"); Objects.requireNonNull(stores, Customer.class + ": stores is missing"); Objects.requireNonNull(authenticationMode, Customer.class + ": authenticationMode is missing"); return new CustomerImpl(id, version, createdAt, lastModifiedAt, key, customerNumber, externalId, lastModifiedBy, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdAction.java index 01b11642eb5..1b684dafb67 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

    Removes a billing address from billingAddressesIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

    + *

    Removes a billing address from billingAddressIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

    * *
    * Example to create an instance using the builder pattern @@ -35,7 +35,7 @@ public interface CustomerRemoveBillingAddressIdAction extends CustomerUpdateActi String REMOVE_BILLING_ADDRESS_ID = "removeBillingAddressId"; /** - *

    id of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    * @return addressId */ @@ -43,7 +43,7 @@ public interface CustomerRemoveBillingAddressIdAction extends CustomerUpdateActi public String getAddressId(); /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    * @return addressKey */ @@ -51,14 +51,14 @@ public interface CustomerRemoveBillingAddressIdAction extends CustomerUpdateActi public String getAddressKey(); /** - *

    id of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    * @param addressId value to be set */ public void setAddressId(final String addressId); /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    * @param addressKey value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionBuilder.java index 08d42a333a3..d2142dd9672 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class CustomerRemoveBillingAddressIdActionBuilder implements Builderid of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    * @param addressId value to be set * @return Builder */ @@ -40,7 +40,7 @@ public CustomerRemoveBillingAddressIdActionBuilder addressId(@Nullable final Str } /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    * @param addressKey value to be set * @return Builder */ @@ -51,7 +51,7 @@ public CustomerRemoveBillingAddressIdActionBuilder addressKey(@Nullable final St } /** - *

    id of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    * @return addressId */ @@ -61,7 +61,7 @@ public String getAddressId() { } /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    * @return addressKey */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionImpl.java index 8068a2c8e35..d113c09c631 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveBillingAddressIdActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    Removes a billing address from billingAddressesIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

    + *

    Removes a billing address from billingAddressIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerRemoveBillingAddressIdActionImpl implements CustomerRemoveBillingAddressIdAction, ModelBase { @@ -55,7 +55,7 @@ public String getAction() { } /** - *

    id of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    */ public String getAddressId() { @@ -63,7 +63,7 @@ public String getAddressId() { } /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    */ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdAction.java index e243e93fc4c..c3870f599ed 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

    Removes a shipping address from shippingAddressesIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

    + *

    Removes a shipping address from shippingAddressIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

    * *
    * Example to create an instance using the builder pattern @@ -35,7 +35,7 @@ public interface CustomerRemoveShippingAddressIdAction extends CustomerUpdateAct String REMOVE_SHIPPING_ADDRESS_ID = "removeShippingAddressId"; /** - *

    id of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    * @return addressId */ @@ -43,7 +43,7 @@ public interface CustomerRemoveShippingAddressIdAction extends CustomerUpdateAct public String getAddressId(); /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    * @return addressKey */ @@ -51,14 +51,14 @@ public interface CustomerRemoveShippingAddressIdAction extends CustomerUpdateAct public String getAddressKey(); /** - *

    id of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    * @param addressId value to be set */ public void setAddressId(final String addressId); /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    * @param addressKey value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionBuilder.java index 6ced4fe95e8..1c4e7d64c38 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class CustomerRemoveShippingAddressIdActionBuilder implements Builderid of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    * @param addressId value to be set * @return Builder */ @@ -40,7 +40,7 @@ public CustomerRemoveShippingAddressIdActionBuilder addressId(@Nullable final St } /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    * @param addressKey value to be set * @return Builder */ @@ -51,7 +51,7 @@ public CustomerRemoveShippingAddressIdActionBuilder addressKey(@Nullable final S } /** - *

    id of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    * @return addressId */ @@ -61,7 +61,7 @@ public String getAddressId() { } /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    * @return addressKey */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionImpl.java index 5af548ed556..c5f6a26f89d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerRemoveShippingAddressIdActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    Removes a shipping address from shippingAddressesIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

    + *

    Removes a shipping address from shippingAddressIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerRemoveShippingAddressIdActionImpl implements CustomerRemoveShippingAddressIdAction, ModelBase { @@ -55,7 +55,7 @@ public String getAction() { } /** - *

    id of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    */ public String getAddressId() { @@ -63,7 +63,7 @@ public String getAddressId() { } /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    */ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdAction.java index cd1f8cacd1a..e3f2a7d6782 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetExternalIdAction + *

    This action generates the CustomerExternalIdSet Message.

    * *
    * Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionImpl.java index 51b54f0aa1e..e5f79d96100 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetExternalIdActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * CustomerSetExternalIdAction + *

    This action generates the CustomerExternalIdSet Message.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetExternalIdActionImpl implements CustomerSetExternalIdAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowError.java index d5234661b0d..e78d097cb61 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowError.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowError.java @@ -15,7 +15,7 @@ import jakarta.validation.constraints.NotNull; /** - *

    Returned when a Money operation overflows the 64-bit integer range. See Money usage for more information.

    + *

    Returned when a money operation overflows the 64-bit integer range.

    * *
    * Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowErrorImpl.java index f8dad3ca8bc..7eab840bbc5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMoneyOverflowErrorImpl.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    Returned when a Money operation overflows the 64-bit integer range. See Money usage for more information.

    + *

    Returned when a money operation overflows the 64-bit integer range.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class GraphQLMoneyOverflowErrorImpl implements GraphQLMoneyOverflowError, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowError.java index c32526c3d5f..724eace0819 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowError.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowError.java @@ -15,7 +15,7 @@ import jakarta.validation.constraints.NotNull; /** - *

    Returned when a Money operation overflows the 64-bit integer range. See Money usage for more information.

    + *

    Returned when a money operation overflows the 64-bit integer range.

    * *
    * Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowErrorImpl.java index 883491a70d9..235bbdf9e29 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MoneyOverflowErrorImpl.java @@ -18,7 +18,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    Returned when a Money operation overflows the 64-bit integer range. See Money usage for more information.

    + *

    Returned when a money operation overflows the 64-bit integer range.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MoneyOverflowErrorImpl implements MoneyOverflowError, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoAction.java deleted file mode 100644 index 5ad8e79b195..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoAction.java +++ /dev/null @@ -1,169 +0,0 @@ - -package com.commercetools.api.models.me; - -import java.time.*; -import java.util.*; -import java.util.function.Function; - -import javax.annotation.Nullable; - -import com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraft; -import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.annotation.*; - -import io.vrap.rmf.base.client.utils.Generated; - -import jakarta.validation.Valid; - -/** - *

    Sets the recurrence information on the CustomLineItem. If the Cart is already associated with a Recurring Order, this action will fail.

    - * - *
    - * Example to create an instance using the builder pattern - *
    - *
    
    - *     MyCartSetCustomLineItemRecurrenceInfoAction myCartSetCustomLineItemRecurrenceInfoAction = MyCartSetCustomLineItemRecurrenceInfoAction.builder()
    - *             .build()
    - * 
    - *
    - */ -@io.vrap.rmf.base.client.utils.json.SubType("setCustomLineItemRecurrenceInfo") -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -@JsonDeserialize(as = MyCartSetCustomLineItemRecurrenceInfoActionImpl.class) -public interface MyCartSetCustomLineItemRecurrenceInfoAction extends MyCartUpdateAction { - - /** - * discriminator value for MyCartSetCustomLineItemRecurrenceInfoAction - */ - String SET_CUSTOM_LINE_ITEM_RECURRENCE_INFO = "setCustomLineItemRecurrenceInfo"; - - /** - *

    id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - * @return customLineItemId - */ - - @JsonProperty("customLineItemId") - public String getCustomLineItemId(); - - /** - *

    key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - * @return customLineItemKey - */ - - @JsonProperty("customLineItemKey") - public String getCustomLineItemKey(); - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @return recurrenceInfo - */ - @Valid - @JsonProperty("recurrenceInfo") - public CustomLineItemRecurrenceInfoDraft getRecurrenceInfo(); - - /** - *

    id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - * @param customLineItemId value to be set - */ - - public void setCustomLineItemId(final String customLineItemId); - - /** - *

    key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - * @param customLineItemKey value to be set - */ - - public void setCustomLineItemKey(final String customLineItemKey); - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @param recurrenceInfo value to be set - */ - - public void setRecurrenceInfo(final CustomLineItemRecurrenceInfoDraft recurrenceInfo); - - /** - * factory method - * @return instance of MyCartSetCustomLineItemRecurrenceInfoAction - */ - public static MyCartSetCustomLineItemRecurrenceInfoAction of() { - return new MyCartSetCustomLineItemRecurrenceInfoActionImpl(); - } - - /** - * factory method to create a shallow copy MyCartSetCustomLineItemRecurrenceInfoAction - * @param template instance to be copied - * @return copy instance - */ - public static MyCartSetCustomLineItemRecurrenceInfoAction of( - final MyCartSetCustomLineItemRecurrenceInfoAction template) { - MyCartSetCustomLineItemRecurrenceInfoActionImpl instance = new MyCartSetCustomLineItemRecurrenceInfoActionImpl(); - instance.setCustomLineItemId(template.getCustomLineItemId()); - instance.setCustomLineItemKey(template.getCustomLineItemKey()); - instance.setRecurrenceInfo(template.getRecurrenceInfo()); - return instance; - } - - public MyCartSetCustomLineItemRecurrenceInfoAction copyDeep(); - - /** - * factory method to create a deep copy of MyCartSetCustomLineItemRecurrenceInfoAction - * @param template instance to be copied - * @return copy instance - */ - @Nullable - public static MyCartSetCustomLineItemRecurrenceInfoAction deepCopy( - @Nullable final MyCartSetCustomLineItemRecurrenceInfoAction template) { - if (template == null) { - return null; - } - MyCartSetCustomLineItemRecurrenceInfoActionImpl instance = new MyCartSetCustomLineItemRecurrenceInfoActionImpl(); - instance.setCustomLineItemId(template.getCustomLineItemId()); - instance.setCustomLineItemKey(template.getCustomLineItemKey()); - instance.setRecurrenceInfo(com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraft - .deepCopy(template.getRecurrenceInfo())); - return instance; - } - - /** - * builder factory method for MyCartSetCustomLineItemRecurrenceInfoAction - * @return builder - */ - public static MyCartSetCustomLineItemRecurrenceInfoActionBuilder builder() { - return MyCartSetCustomLineItemRecurrenceInfoActionBuilder.of(); - } - - /** - * create builder for MyCartSetCustomLineItemRecurrenceInfoAction instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static MyCartSetCustomLineItemRecurrenceInfoActionBuilder builder( - final MyCartSetCustomLineItemRecurrenceInfoAction template) { - return MyCartSetCustomLineItemRecurrenceInfoActionBuilder.of(template); - } - - /** - * accessor map function - * @param mapped type - * @param helper function to map the object - * @return mapped value - */ - default T withMyCartSetCustomLineItemRecurrenceInfoAction( - Function helper) { - return helper.apply(this); - } - - /** - * gives a TypeReference for usage with Jackson DataBind - * @return TypeReference - */ - public static com.fasterxml.jackson.core.type.TypeReference typeReference() { - return new com.fasterxml.jackson.core.type.TypeReference() { - @Override - public String toString() { - return "TypeReference"; - } - }; - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoActionBuilder.java deleted file mode 100644 index 977d4a32c4d..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoActionBuilder.java +++ /dev/null @@ -1,167 +0,0 @@ - -package com.commercetools.api.models.me; - -import java.util.*; -import java.util.function.Function; - -import javax.annotation.Nullable; - -import io.vrap.rmf.base.client.Builder; -import io.vrap.rmf.base.client.utils.Generated; - -/** - * MyCartSetCustomLineItemRecurrenceInfoActionBuilder - *
    - * Example to create an instance using the builder pattern - *
    - *
    
    - *     MyCartSetCustomLineItemRecurrenceInfoAction myCartSetCustomLineItemRecurrenceInfoAction = MyCartSetCustomLineItemRecurrenceInfoAction.builder()
    - *             .build()
    - * 
    - *
    - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class MyCartSetCustomLineItemRecurrenceInfoActionBuilder - implements Builder { - - @Nullable - private String customLineItemId; - - @Nullable - private String customLineItemKey; - - @Nullable - private com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraft recurrenceInfo; - - /** - *

    id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - * @param customLineItemId value to be set - * @return Builder - */ - - public MyCartSetCustomLineItemRecurrenceInfoActionBuilder customLineItemId( - @Nullable final String customLineItemId) { - this.customLineItemId = customLineItemId; - return this; - } - - /** - *

    key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - * @param customLineItemKey value to be set - * @return Builder - */ - - public MyCartSetCustomLineItemRecurrenceInfoActionBuilder customLineItemKey( - @Nullable final String customLineItemKey) { - this.customLineItemKey = customLineItemKey; - return this; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @param builder function to build the recurrenceInfo value - * @return Builder - */ - - public MyCartSetCustomLineItemRecurrenceInfoActionBuilder recurrenceInfo( - Function builder) { - this.recurrenceInfo = builder - .apply(com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraftBuilder.of()) - .build(); - return this; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @param builder function to build the recurrenceInfo value - * @return Builder - */ - - public MyCartSetCustomLineItemRecurrenceInfoActionBuilder withRecurrenceInfo( - Function builder) { - this.recurrenceInfo = builder - .apply(com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraftBuilder.of()); - return this; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @param recurrenceInfo value to be set - * @return Builder - */ - - public MyCartSetCustomLineItemRecurrenceInfoActionBuilder recurrenceInfo( - @Nullable final com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraft recurrenceInfo) { - this.recurrenceInfo = recurrenceInfo; - return this; - } - - /** - *

    id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - * @return customLineItemId - */ - - @Nullable - public String getCustomLineItemId() { - return this.customLineItemId; - } - - /** - *

    key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - * @return customLineItemKey - */ - - @Nullable - public String getCustomLineItemKey() { - return this.customLineItemKey; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @return recurrenceInfo - */ - - @Nullable - public com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraft getRecurrenceInfo() { - return this.recurrenceInfo; - } - - /** - * builds MyCartSetCustomLineItemRecurrenceInfoAction with checking for non-null required values - * @return MyCartSetCustomLineItemRecurrenceInfoAction - */ - public MyCartSetCustomLineItemRecurrenceInfoAction build() { - return new MyCartSetCustomLineItemRecurrenceInfoActionImpl(customLineItemId, customLineItemKey, recurrenceInfo); - } - - /** - * builds MyCartSetCustomLineItemRecurrenceInfoAction without checking for non-null required values - * @return MyCartSetCustomLineItemRecurrenceInfoAction - */ - public MyCartSetCustomLineItemRecurrenceInfoAction buildUnchecked() { - return new MyCartSetCustomLineItemRecurrenceInfoActionImpl(customLineItemId, customLineItemKey, recurrenceInfo); - } - - /** - * factory method for an instance of MyCartSetCustomLineItemRecurrenceInfoActionBuilder - * @return builder - */ - public static MyCartSetCustomLineItemRecurrenceInfoActionBuilder of() { - return new MyCartSetCustomLineItemRecurrenceInfoActionBuilder(); - } - - /** - * create builder for MyCartSetCustomLineItemRecurrenceInfoAction instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static MyCartSetCustomLineItemRecurrenceInfoActionBuilder of( - final MyCartSetCustomLineItemRecurrenceInfoAction template) { - MyCartSetCustomLineItemRecurrenceInfoActionBuilder builder = new MyCartSetCustomLineItemRecurrenceInfoActionBuilder(); - builder.customLineItemId = template.getCustomLineItemId(); - builder.customLineItemKey = template.getCustomLineItemKey(); - builder.recurrenceInfo = template.getRecurrenceInfo(); - return builder; - } - -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoActionImpl.java deleted file mode 100644 index d71e4bdccb6..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoActionImpl.java +++ /dev/null @@ -1,142 +0,0 @@ - -package com.commercetools.api.models.me; - -import java.time.*; -import java.util.*; - -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; - -/** - *

    Sets the recurrence information on the CustomLineItem. If the Cart is already associated with a Recurring Order, this action will fail.

    - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class MyCartSetCustomLineItemRecurrenceInfoActionImpl - implements MyCartSetCustomLineItemRecurrenceInfoAction, ModelBase { - - private String action; - - private String customLineItemId; - - private String customLineItemKey; - - private com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraft recurrenceInfo; - - /** - * create instance with all properties - */ - @JsonCreator - MyCartSetCustomLineItemRecurrenceInfoActionImpl(@JsonProperty("customLineItemId") final String customLineItemId, - @JsonProperty("customLineItemKey") final String customLineItemKey, - @JsonProperty("recurrenceInfo") final com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraft recurrenceInfo) { - this.customLineItemId = customLineItemId; - this.customLineItemKey = customLineItemKey; - this.recurrenceInfo = recurrenceInfo; - this.action = SET_CUSTOM_LINE_ITEM_RECURRENCE_INFO; - } - - /** - * create empty instance - */ - public MyCartSetCustomLineItemRecurrenceInfoActionImpl() { - this.action = SET_CUSTOM_LINE_ITEM_RECURRENCE_INFO; - } - - /** - * - */ - - public String getAction() { - return this.action; - } - - /** - *

    id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - */ - - public String getCustomLineItemId() { - return this.customLineItemId; - } - - /** - *

    key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

    - */ - - public String getCustomLineItemKey() { - return this.customLineItemKey; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - */ - - public com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraft getRecurrenceInfo() { - return this.recurrenceInfo; - } - - public void setCustomLineItemId(final String customLineItemId) { - this.customLineItemId = customLineItemId; - } - - public void setCustomLineItemKey(final String customLineItemKey) { - this.customLineItemKey = customLineItemKey; - } - - public void setRecurrenceInfo( - final com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraft recurrenceInfo) { - this.recurrenceInfo = recurrenceInfo; - } - - @Override - public boolean equals(Object o) { - if (this == o) - return true; - - if (o == null || getClass() != o.getClass()) - return false; - - MyCartSetCustomLineItemRecurrenceInfoActionImpl that = (MyCartSetCustomLineItemRecurrenceInfoActionImpl) o; - - return new EqualsBuilder().append(action, that.action) - .append(customLineItemId, that.customLineItemId) - .append(customLineItemKey, that.customLineItemKey) - .append(recurrenceInfo, that.recurrenceInfo) - .append(action, that.action) - .append(customLineItemId, that.customLineItemId) - .append(customLineItemKey, that.customLineItemKey) - .append(recurrenceInfo, that.recurrenceInfo) - .isEquals(); - } - - @Override - public int hashCode() { - return new HashCodeBuilder(17, 37).append(action) - .append(customLineItemId) - .append(customLineItemKey) - .append(recurrenceInfo) - .toHashCode(); - } - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) - .append("customLineItemId", customLineItemId) - .append("customLineItemKey", customLineItemKey) - .append("recurrenceInfo", recurrenceInfo) - .build(); - } - - @Override - public MyCartSetCustomLineItemRecurrenceInfoAction copyDeep() { - return MyCartSetCustomLineItemRecurrenceInfoAction.deepCopy(this); - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoAction.java deleted file mode 100644 index af77c46e3a4..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoAction.java +++ /dev/null @@ -1,167 +0,0 @@ - -package com.commercetools.api.models.me; - -import java.time.*; -import java.util.*; -import java.util.function.Function; - -import javax.annotation.Nullable; - -import com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraft; -import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.annotation.*; - -import io.vrap.rmf.base.client.utils.Generated; - -import jakarta.validation.Valid; - -/** - *

    Sets the recurrence information on the LineItem. If the Cart is already associated with a Recurring Order, this action will fail.

    - * - *
    - * Example to create an instance using the builder pattern - *
    - *
    
    - *     MyCartSetLineItemRecurrenceInfoAction myCartSetLineItemRecurrenceInfoAction = MyCartSetLineItemRecurrenceInfoAction.builder()
    - *             .build()
    - * 
    - *
    - */ -@io.vrap.rmf.base.client.utils.json.SubType("setLineItemRecurrenceInfo") -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -@JsonDeserialize(as = MyCartSetLineItemRecurrenceInfoActionImpl.class) -public interface MyCartSetLineItemRecurrenceInfoAction extends MyCartUpdateAction { - - /** - * discriminator value for MyCartSetLineItemRecurrenceInfoAction - */ - String SET_LINE_ITEM_RECURRENCE_INFO = "setLineItemRecurrenceInfo"; - - /** - *

    id of the LineItem to update. Either lineItemId or lineItemKey is required.

    - * @return lineItemId - */ - - @JsonProperty("lineItemId") - public String getLineItemId(); - - /** - *

    key of the LineItem to update. Either lineItemId or lineItemKey is required.

    - * @return lineItemKey - */ - - @JsonProperty("lineItemKey") - public String getLineItemKey(); - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @return recurrenceInfo - */ - @Valid - @JsonProperty("recurrenceInfo") - public LineItemRecurrenceInfoDraft getRecurrenceInfo(); - - /** - *

    id of the LineItem to update. Either lineItemId or lineItemKey is required.

    - * @param lineItemId value to be set - */ - - public void setLineItemId(final String lineItemId); - - /** - *

    key of the LineItem to update. Either lineItemId or lineItemKey is required.

    - * @param lineItemKey value to be set - */ - - public void setLineItemKey(final String lineItemKey); - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @param recurrenceInfo value to be set - */ - - public void setRecurrenceInfo(final LineItemRecurrenceInfoDraft recurrenceInfo); - - /** - * factory method - * @return instance of MyCartSetLineItemRecurrenceInfoAction - */ - public static MyCartSetLineItemRecurrenceInfoAction of() { - return new MyCartSetLineItemRecurrenceInfoActionImpl(); - } - - /** - * factory method to create a shallow copy MyCartSetLineItemRecurrenceInfoAction - * @param template instance to be copied - * @return copy instance - */ - public static MyCartSetLineItemRecurrenceInfoAction of(final MyCartSetLineItemRecurrenceInfoAction template) { - MyCartSetLineItemRecurrenceInfoActionImpl instance = new MyCartSetLineItemRecurrenceInfoActionImpl(); - instance.setLineItemId(template.getLineItemId()); - instance.setLineItemKey(template.getLineItemKey()); - instance.setRecurrenceInfo(template.getRecurrenceInfo()); - return instance; - } - - public MyCartSetLineItemRecurrenceInfoAction copyDeep(); - - /** - * factory method to create a deep copy of MyCartSetLineItemRecurrenceInfoAction - * @param template instance to be copied - * @return copy instance - */ - @Nullable - public static MyCartSetLineItemRecurrenceInfoAction deepCopy( - @Nullable final MyCartSetLineItemRecurrenceInfoAction template) { - if (template == null) { - return null; - } - MyCartSetLineItemRecurrenceInfoActionImpl instance = new MyCartSetLineItemRecurrenceInfoActionImpl(); - instance.setLineItemId(template.getLineItemId()); - instance.setLineItemKey(template.getLineItemKey()); - instance.setRecurrenceInfo(com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraft - .deepCopy(template.getRecurrenceInfo())); - return instance; - } - - /** - * builder factory method for MyCartSetLineItemRecurrenceInfoAction - * @return builder - */ - public static MyCartSetLineItemRecurrenceInfoActionBuilder builder() { - return MyCartSetLineItemRecurrenceInfoActionBuilder.of(); - } - - /** - * create builder for MyCartSetLineItemRecurrenceInfoAction instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static MyCartSetLineItemRecurrenceInfoActionBuilder builder( - final MyCartSetLineItemRecurrenceInfoAction template) { - return MyCartSetLineItemRecurrenceInfoActionBuilder.of(template); - } - - /** - * accessor map function - * @param mapped type - * @param helper function to map the object - * @return mapped value - */ - default T withMyCartSetLineItemRecurrenceInfoAction(Function helper) { - return helper.apply(this); - } - - /** - * gives a TypeReference for usage with Jackson DataBind - * @return TypeReference - */ - public static com.fasterxml.jackson.core.type.TypeReference typeReference() { - return new com.fasterxml.jackson.core.type.TypeReference() { - @Override - public String toString() { - return "TypeReference"; - } - }; - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoActionBuilder.java deleted file mode 100644 index d5a7ae4dd61..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoActionBuilder.java +++ /dev/null @@ -1,164 +0,0 @@ - -package com.commercetools.api.models.me; - -import java.util.*; -import java.util.function.Function; - -import javax.annotation.Nullable; - -import io.vrap.rmf.base.client.Builder; -import io.vrap.rmf.base.client.utils.Generated; - -/** - * MyCartSetLineItemRecurrenceInfoActionBuilder - *
    - * Example to create an instance using the builder pattern - *
    - *
    
    - *     MyCartSetLineItemRecurrenceInfoAction myCartSetLineItemRecurrenceInfoAction = MyCartSetLineItemRecurrenceInfoAction.builder()
    - *             .build()
    - * 
    - *
    - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class MyCartSetLineItemRecurrenceInfoActionBuilder implements Builder { - - @Nullable - private String lineItemId; - - @Nullable - private String lineItemKey; - - @Nullable - private com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraft recurrenceInfo; - - /** - *

    id of the LineItem to update. Either lineItemId or lineItemKey is required.

    - * @param lineItemId value to be set - * @return Builder - */ - - public MyCartSetLineItemRecurrenceInfoActionBuilder lineItemId(@Nullable final String lineItemId) { - this.lineItemId = lineItemId; - return this; - } - - /** - *

    key of the LineItem to update. Either lineItemId or lineItemKey is required.

    - * @param lineItemKey value to be set - * @return Builder - */ - - public MyCartSetLineItemRecurrenceInfoActionBuilder lineItemKey(@Nullable final String lineItemKey) { - this.lineItemKey = lineItemKey; - return this; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @param builder function to build the recurrenceInfo value - * @return Builder - */ - - public MyCartSetLineItemRecurrenceInfoActionBuilder recurrenceInfo( - Function builder) { - this.recurrenceInfo = builder - .apply(com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraftBuilder.of()) - .build(); - return this; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @param builder function to build the recurrenceInfo value - * @return Builder - */ - - public MyCartSetLineItemRecurrenceInfoActionBuilder withRecurrenceInfo( - Function builder) { - this.recurrenceInfo = builder - .apply(com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraftBuilder.of()); - return this; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @param recurrenceInfo value to be set - * @return Builder - */ - - public MyCartSetLineItemRecurrenceInfoActionBuilder recurrenceInfo( - @Nullable final com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraft recurrenceInfo) { - this.recurrenceInfo = recurrenceInfo; - return this; - } - - /** - *

    id of the LineItem to update. Either lineItemId or lineItemKey is required.

    - * @return lineItemId - */ - - @Nullable - public String getLineItemId() { - return this.lineItemId; - } - - /** - *

    key of the LineItem to update. Either lineItemId or lineItemKey is required.

    - * @return lineItemKey - */ - - @Nullable - public String getLineItemKey() { - return this.lineItemKey; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - * @return recurrenceInfo - */ - - @Nullable - public com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraft getRecurrenceInfo() { - return this.recurrenceInfo; - } - - /** - * builds MyCartSetLineItemRecurrenceInfoAction with checking for non-null required values - * @return MyCartSetLineItemRecurrenceInfoAction - */ - public MyCartSetLineItemRecurrenceInfoAction build() { - return new MyCartSetLineItemRecurrenceInfoActionImpl(lineItemId, lineItemKey, recurrenceInfo); - } - - /** - * builds MyCartSetLineItemRecurrenceInfoAction without checking for non-null required values - * @return MyCartSetLineItemRecurrenceInfoAction - */ - public MyCartSetLineItemRecurrenceInfoAction buildUnchecked() { - return new MyCartSetLineItemRecurrenceInfoActionImpl(lineItemId, lineItemKey, recurrenceInfo); - } - - /** - * factory method for an instance of MyCartSetLineItemRecurrenceInfoActionBuilder - * @return builder - */ - public static MyCartSetLineItemRecurrenceInfoActionBuilder of() { - return new MyCartSetLineItemRecurrenceInfoActionBuilder(); - } - - /** - * create builder for MyCartSetLineItemRecurrenceInfoAction instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static MyCartSetLineItemRecurrenceInfoActionBuilder of( - final MyCartSetLineItemRecurrenceInfoAction template) { - MyCartSetLineItemRecurrenceInfoActionBuilder builder = new MyCartSetLineItemRecurrenceInfoActionBuilder(); - builder.lineItemId = template.getLineItemId(); - builder.lineItemKey = template.getLineItemKey(); - builder.recurrenceInfo = template.getRecurrenceInfo(); - return builder; - } - -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoActionImpl.java deleted file mode 100644 index bc70d08ac0b..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoActionImpl.java +++ /dev/null @@ -1,141 +0,0 @@ - -package com.commercetools.api.models.me; - -import java.time.*; -import java.util.*; - -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; - -/** - *

    Sets the recurrence information on the LineItem. If the Cart is already associated with a Recurring Order, this action will fail.

    - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class MyCartSetLineItemRecurrenceInfoActionImpl implements MyCartSetLineItemRecurrenceInfoAction, ModelBase { - - private String action; - - private String lineItemId; - - private String lineItemKey; - - private com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraft recurrenceInfo; - - /** - * create instance with all properties - */ - @JsonCreator - MyCartSetLineItemRecurrenceInfoActionImpl(@JsonProperty("lineItemId") final String lineItemId, - @JsonProperty("lineItemKey") final String lineItemKey, - @JsonProperty("recurrenceInfo") final com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraft recurrenceInfo) { - this.lineItemId = lineItemId; - this.lineItemKey = lineItemKey; - this.recurrenceInfo = recurrenceInfo; - this.action = SET_LINE_ITEM_RECURRENCE_INFO; - } - - /** - * create empty instance - */ - public MyCartSetLineItemRecurrenceInfoActionImpl() { - this.action = SET_LINE_ITEM_RECURRENCE_INFO; - } - - /** - * - */ - - public String getAction() { - return this.action; - } - - /** - *

    id of the LineItem to update. Either lineItemId or lineItemKey is required.

    - */ - - public String getLineItemId() { - return this.lineItemId; - } - - /** - *

    key of the LineItem to update. Either lineItemId or lineItemKey is required.

    - */ - - public String getLineItemKey() { - return this.lineItemKey; - } - - /** - *

    Value to set. If empty, any existing value will be removed.

    - */ - - public com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraft getRecurrenceInfo() { - return this.recurrenceInfo; - } - - public void setLineItemId(final String lineItemId) { - this.lineItemId = lineItemId; - } - - public void setLineItemKey(final String lineItemKey) { - this.lineItemKey = lineItemKey; - } - - public void setRecurrenceInfo( - final com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraft recurrenceInfo) { - this.recurrenceInfo = recurrenceInfo; - } - - @Override - public boolean equals(Object o) { - if (this == o) - return true; - - if (o == null || getClass() != o.getClass()) - return false; - - MyCartSetLineItemRecurrenceInfoActionImpl that = (MyCartSetLineItemRecurrenceInfoActionImpl) o; - - return new EqualsBuilder().append(action, that.action) - .append(lineItemId, that.lineItemId) - .append(lineItemKey, that.lineItemKey) - .append(recurrenceInfo, that.recurrenceInfo) - .append(action, that.action) - .append(lineItemId, that.lineItemId) - .append(lineItemKey, that.lineItemKey) - .append(recurrenceInfo, that.recurrenceInfo) - .isEquals(); - } - - @Override - public int hashCode() { - return new HashCodeBuilder(17, 37).append(action) - .append(lineItemId) - .append(lineItemKey) - .append(recurrenceInfo) - .toHashCode(); - } - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) - .append("lineItemId", lineItemId) - .append("lineItemKey", lineItemKey) - .append("recurrenceInfo", recurrenceInfo) - .build(); - } - - @Override - public MyCartSetLineItemRecurrenceInfoAction copyDeep() { - return MyCartSetLineItemRecurrenceInfoAction.deepCopy(this); - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateAction.java index 78ec14eb7ed..6b9ca12d828 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateAction.java @@ -196,14 +196,6 @@ public static com.commercetools.api.models.me.MyCartSetCustomFieldActionBuilder return com.commercetools.api.models.me.MyCartSetCustomFieldActionBuilder.of(); } - /** - * builder for setCustomLineItemRecurrenceInfo subtype - * @return builder - */ - public static com.commercetools.api.models.me.MyCartSetCustomLineItemRecurrenceInfoActionBuilder setCustomLineItemRecurrenceInfoBuilder() { - return com.commercetools.api.models.me.MyCartSetCustomLineItemRecurrenceInfoActionBuilder.of(); - } - /** * builder for setCustomType subtype * @return builder @@ -252,14 +244,6 @@ public static com.commercetools.api.models.me.MyCartSetLineItemDistributionChann return com.commercetools.api.models.me.MyCartSetLineItemDistributionChannelActionBuilder.of(); } - /** - * builder for setLineItemRecurrenceInfo subtype - * @return builder - */ - public static com.commercetools.api.models.me.MyCartSetLineItemRecurrenceInfoActionBuilder setLineItemRecurrenceInfoBuilder() { - return com.commercetools.api.models.me.MyCartSetLineItemRecurrenceInfoActionBuilder.of(); - } - /** * builder for setLineItemShippingDetails subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateActionBuilder.java index 190b25b28aa..0008c8ec621 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateActionBuilder.java @@ -79,10 +79,6 @@ public com.commercetools.api.models.me.MyCartSetCustomFieldActionBuilder setCust return com.commercetools.api.models.me.MyCartSetCustomFieldActionBuilder.of(); } - public com.commercetools.api.models.me.MyCartSetCustomLineItemRecurrenceInfoActionBuilder setCustomLineItemRecurrenceInfoBuilder() { - return com.commercetools.api.models.me.MyCartSetCustomLineItemRecurrenceInfoActionBuilder.of(); - } - public com.commercetools.api.models.me.MyCartSetCustomTypeActionBuilder setCustomTypeBuilder() { return com.commercetools.api.models.me.MyCartSetCustomTypeActionBuilder.of(); } @@ -107,10 +103,6 @@ public com.commercetools.api.models.me.MyCartSetLineItemDistributionChannelActio return com.commercetools.api.models.me.MyCartSetLineItemDistributionChannelActionBuilder.of(); } - public com.commercetools.api.models.me.MyCartSetLineItemRecurrenceInfoActionBuilder setLineItemRecurrenceInfoBuilder() { - return com.commercetools.api.models.me.MyCartSetLineItemRecurrenceInfoActionBuilder.of(); - } - public com.commercetools.api.models.me.MyCartSetLineItemShippingDetailsActionBuilder setLineItemShippingDetailsBuilder() { return com.commercetools.api.models.me.MyCartSetLineItemShippingDetailsActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdAction.java index f03937500d6..2eca1f4d2a1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

    Removes an existing billing address from billingAddressesIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

    + *

    Removes an existing billing address from billingAddressIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

    * *
    * Example to create an instance using the builder pattern @@ -35,7 +35,7 @@ public interface MyCustomerRemoveBillingAddressIdAction extends MyCustomerUpdate String REMOVE_BILLING_ADDRESS_ID = "removeBillingAddressId"; /** - *

    id of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    * @return addressId */ @@ -43,7 +43,7 @@ public interface MyCustomerRemoveBillingAddressIdAction extends MyCustomerUpdate public String getAddressId(); /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    * @return addressKey */ @@ -51,14 +51,14 @@ public interface MyCustomerRemoveBillingAddressIdAction extends MyCustomerUpdate public String getAddressKey(); /** - *

    id of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    * @param addressId value to be set */ public void setAddressId(final String addressId); /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    * @param addressKey value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionBuilder.java index 989dbfc872c..06a12e7990e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionBuilder.java @@ -29,7 +29,7 @@ public class MyCustomerRemoveBillingAddressIdActionBuilder implements Builderid of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    * @param addressId value to be set * @return Builder */ @@ -40,7 +40,7 @@ public MyCustomerRemoveBillingAddressIdActionBuilder addressId(@Nullable final S } /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    * @param addressKey value to be set * @return Builder */ @@ -51,7 +51,7 @@ public MyCustomerRemoveBillingAddressIdActionBuilder addressKey(@Nullable final } /** - *

    id of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    * @return addressId */ @@ -61,7 +61,7 @@ public String getAddressId() { } /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    * @return addressKey */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionImpl.java index f4fe5efc87e..c1992ae9182 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveBillingAddressIdActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    Removes an existing billing address from billingAddressesIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

    + *

    Removes an existing billing address from billingAddressIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerRemoveBillingAddressIdActionImpl implements MyCustomerRemoveBillingAddressIdAction, ModelBase { @@ -55,7 +55,7 @@ public String getAction() { } /** - *

    id of the Address to remove from billingAddressesIds.

    + *

    id of the Address to remove from billingAddressIds.

    */ public String getAddressId() { @@ -63,7 +63,7 @@ public String getAddressId() { } /** - *

    key of the Address to remove from billingAddressesIds.

    + *

    key of the Address to remove from billingAddressIds.

    */ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdAction.java index e4b415a8ff4..daea4e0311d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

    Removes an existing shipping address from shippingAddressesIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

    + *

    Removes an existing shipping address from shippingAddressIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

    * *
    * Example to create an instance using the builder pattern @@ -35,7 +35,7 @@ public interface MyCustomerRemoveShippingAddressIdAction extends MyCustomerUpdat String REMOVE_SHIPPING_ADDRESS_ID = "removeShippingAddressId"; /** - *

    id of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    * @return addressId */ @@ -43,7 +43,7 @@ public interface MyCustomerRemoveShippingAddressIdAction extends MyCustomerUpdat public String getAddressId(); /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    * @return addressKey */ @@ -51,14 +51,14 @@ public interface MyCustomerRemoveShippingAddressIdAction extends MyCustomerUpdat public String getAddressKey(); /** - *

    id of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    * @param addressId value to be set */ public void setAddressId(final String addressId); /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    * @param addressKey value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionBuilder.java index 188ed3a0ff2..66485158ca7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionBuilder.java @@ -30,7 +30,7 @@ public class MyCustomerRemoveShippingAddressIdActionBuilder private String addressKey; /** - *

    id of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    * @param addressId value to be set * @return Builder */ @@ -41,7 +41,7 @@ public MyCustomerRemoveShippingAddressIdActionBuilder addressId(@Nullable final } /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    * @param addressKey value to be set * @return Builder */ @@ -52,7 +52,7 @@ public MyCustomerRemoveShippingAddressIdActionBuilder addressKey(@Nullable final } /** - *

    id of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    * @return addressId */ @@ -62,7 +62,7 @@ public String getAddressId() { } /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    * @return addressKey */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionImpl.java index 7bb8f5ceae5..bcc52df8176 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerRemoveShippingAddressIdActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    Removes an existing shipping address from shippingAddressesIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

    + *

    Removes an existing shipping address from shippingAddressIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerRemoveShippingAddressIdActionImpl implements MyCustomerRemoveShippingAddressIdAction, ModelBase { @@ -55,7 +55,7 @@ public String getAction() { } /** - *

    id of the Address to remove from shippingAddressesIds.

    + *

    id of the Address to remove from shippingAddressIds.

    */ public String getAddressId() { @@ -63,7 +63,7 @@ public String getAddressId() { } /** - *

    key of the Address to remove from shippingAddressesIds.

    + *

    key of the Address to remove from shippingAddressIds.

    */ public String getAddressKey() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessage.java index cd6be04f955..652a9599679 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessage.java @@ -8,6 +8,7 @@ import javax.annotation.Nullable; import com.commercetools.api.models.common.Address; +import com.commercetools.api.models.common.AddressRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -32,6 +33,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .address(addressBuilder -> addressBuilder) + * .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder) * .build() * *
    @@ -55,6 +57,14 @@ public interface BusinessUnitAddressChangedMessage extends Message { @JsonProperty("address") public Address getAddress(); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + @NotNull + @JsonProperty("addressRoles") + public List getAddressRoles(); + /** *

    Updated address of the Business Unit.

    * @param address value to be set @@ -62,6 +72,21 @@ public interface BusinessUnitAddressChangedMessage extends Message { public void setAddress(final Address address); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + @JsonIgnore + public void setAddressRoles(final AddressRole... addressRoles); + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + public void setAddressRoles(final List addressRoles); + /** * factory method * @return instance of BusinessUnitAddressChangedMessage @@ -88,6 +113,7 @@ public static BusinessUnitAddressChangedMessage of(final BusinessUnitAddressChan instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); instance.setAddress(template.getAddress()); + instance.setAddressRoles(template.getAddressRoles()); return instance; } @@ -118,6 +144,7 @@ public static BusinessUnitAddressChangedMessage deepCopy( instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers .deepCopy(template.getResourceUserProvidedIdentifiers())); instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + instance.setAddressRoles(Optional.ofNullable(template.getAddressRoles()).map(ArrayList::new).orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageBuilder.java index 4328408d71d..12c11416cfd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageBuilder.java @@ -24,6 +24,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .address(addressBuilder -> addressBuilder) + * .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder) * .build() * *
    @@ -56,6 +57,8 @@ public class BusinessUnitAddressChangedMessageBuilder implements Builder addressRoles; + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @param id value to be set @@ -292,6 +295,45 @@ public BusinessUnitAddressChangedMessageBuilder address(final com.commercetools. return this; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressChangedMessageBuilder addressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressChangedMessageBuilder addressRoles( + final java.util.List addressRoles) { + this.addressRoles = addressRoles; + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressChangedMessageBuilder plusAddressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + if (this.addressRoles == null) { + this.addressRoles = new ArrayList<>(); + } + this.addressRoles.addAll(Arrays.asList(addressRoles)); + return this; + } + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @return id @@ -394,6 +436,15 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + /** * builds BusinessUnitAddressChangedMessage with checking for non-null required values * @return BusinessUnitAddressChangedMessage @@ -408,8 +459,10 @@ public BusinessUnitAddressChangedMessage build() { Objects.requireNonNull(resourceVersion, BusinessUnitAddressChangedMessage.class + ": resourceVersion is missing"); Objects.requireNonNull(address, BusinessUnitAddressChangedMessage.class + ": address is missing"); + Objects.requireNonNull(addressRoles, BusinessUnitAddressChangedMessage.class + ": addressRoles is missing"); return new BusinessUnitAddressChangedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, - createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address, + addressRoles); } /** @@ -418,7 +471,8 @@ public BusinessUnitAddressChangedMessage build() { */ public BusinessUnitAddressChangedMessage buildUnchecked() { return new BusinessUnitAddressChangedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, - createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address, + addressRoles); } /** @@ -447,6 +501,7 @@ public static BusinessUnitAddressChangedMessageBuilder of(final BusinessUnitAddr builder.resourceVersion = template.getResourceVersion(); builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); builder.address = template.getAddress(); + builder.addressRoles = template.getAddressRoles(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageImpl.java index 9fca49f14c1..9fb59d6eb7d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageImpl.java @@ -46,6 +46,8 @@ public class BusinessUnitAddressChangedMessageImpl implements BusinessUnitAddres private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** * create instance with all properties */ @@ -60,7 +62,8 @@ public class BusinessUnitAddressChangedMessageImpl implements BusinessUnitAddres @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("address") final com.commercetools.api.models.common.Address address) { + @JsonProperty("address") final com.commercetools.api.models.common.Address address, + @JsonProperty("addressRoles") final java.util.List addressRoles) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -72,6 +75,7 @@ public class BusinessUnitAddressChangedMessageImpl implements BusinessUnitAddres this.resourceVersion = resourceVersion; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; this.address = address; + this.addressRoles = addressRoles; this.type = BUSINESS_UNIT_ADDRESS_CHANGED; } @@ -178,6 +182,14 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + public void setId(final String id) { this.id = id; } @@ -223,6 +235,14 @@ public void setAddress(final com.commercetools.api.models.common.Address address this.address = address; } + public void setAddressRoles(final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + } + + public void setAddressRoles(final java.util.List addressRoles) { + this.addressRoles = addressRoles; + } + @Override public boolean equals(Object o) { if (this == o) @@ -245,6 +265,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(address, that.address) + .append(addressRoles, that.addressRoles) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -257,6 +278,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(address, that.address) + .append(addressRoles, that.addressRoles) .isEquals(); } @@ -274,6 +296,7 @@ public int hashCode() { .append(type) .append(resourceUserProvidedIdentifiers) .append(address) + .append(addressRoles) .toHashCode(); } @@ -291,6 +314,7 @@ public String toString() { .append("type", type) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("address", address) + .append("addressRoles", addressRoles) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayload.java index f00b97daa0f..53e6195f112 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayload.java @@ -8,6 +8,7 @@ import javax.annotation.Nullable; import com.commercetools.api.models.common.Address; +import com.commercetools.api.models.common.AddressRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -25,6 +26,7 @@ *
    
      *     BusinessUnitAddressChangedMessagePayload businessUnitAddressChangedMessagePayload = BusinessUnitAddressChangedMessagePayload.builder()
      *             .address(addressBuilder -> addressBuilder)
    + *             .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder)
      *             .build()
      * 
    *
    @@ -48,6 +50,14 @@ public interface BusinessUnitAddressChangedMessagePayload extends MessagePayload @JsonProperty("address") public Address getAddress(); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + @NotNull + @JsonProperty("addressRoles") + public List getAddressRoles(); + /** *

    Updated address of the Business Unit.

    * @param address value to be set @@ -55,6 +65,21 @@ public interface BusinessUnitAddressChangedMessagePayload extends MessagePayload public void setAddress(final Address address); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + @JsonIgnore + public void setAddressRoles(final AddressRole... addressRoles); + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + public void setAddressRoles(final List addressRoles); + /** * factory method * @return instance of BusinessUnitAddressChangedMessagePayload @@ -71,6 +96,7 @@ public static BusinessUnitAddressChangedMessagePayload of() { public static BusinessUnitAddressChangedMessagePayload of(final BusinessUnitAddressChangedMessagePayload template) { BusinessUnitAddressChangedMessagePayloadImpl instance = new BusinessUnitAddressChangedMessagePayloadImpl(); instance.setAddress(template.getAddress()); + instance.setAddressRoles(template.getAddressRoles()); return instance; } @@ -89,6 +115,7 @@ public static BusinessUnitAddressChangedMessagePayload deepCopy( } BusinessUnitAddressChangedMessagePayloadImpl instance = new BusinessUnitAddressChangedMessagePayloadImpl(); instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + instance.setAddressRoles(Optional.ofNullable(template.getAddressRoles()).map(ArrayList::new).orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadBuilder.java index bad9768fe47..7a159292cbd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadBuilder.java @@ -15,6 +15,7 @@ *
    
      *     BusinessUnitAddressChangedMessagePayload businessUnitAddressChangedMessagePayload = BusinessUnitAddressChangedMessagePayload.builder()
      *             .address(addressBuilder -> addressBuilder)
    + *             .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder)
      *             .build()
      * 
    *
    @@ -25,6 +26,8 @@ public class BusinessUnitAddressChangedMessagePayloadBuilder private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** *

    Updated address of the Business Unit.

    * @param builder function to build the address value @@ -61,6 +64,45 @@ public BusinessUnitAddressChangedMessagePayloadBuilder address( return this; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressChangedMessagePayloadBuilder addressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressChangedMessagePayloadBuilder addressRoles( + final java.util.List addressRoles) { + this.addressRoles = addressRoles; + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressChangedMessagePayloadBuilder plusAddressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + if (this.addressRoles == null) { + this.addressRoles = new ArrayList<>(); + } + this.addressRoles.addAll(Arrays.asList(addressRoles)); + return this; + } + /** *

    Updated address of the Business Unit.

    * @return address @@ -70,13 +112,24 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + /** * builds BusinessUnitAddressChangedMessagePayload with checking for non-null required values * @return BusinessUnitAddressChangedMessagePayload */ public BusinessUnitAddressChangedMessagePayload build() { Objects.requireNonNull(address, BusinessUnitAddressChangedMessagePayload.class + ": address is missing"); - return new BusinessUnitAddressChangedMessagePayloadImpl(address); + Objects.requireNonNull(addressRoles, + BusinessUnitAddressChangedMessagePayload.class + ": addressRoles is missing"); + return new BusinessUnitAddressChangedMessagePayloadImpl(address, addressRoles); } /** @@ -84,7 +137,7 @@ public BusinessUnitAddressChangedMessagePayload build() { * @return BusinessUnitAddressChangedMessagePayload */ public BusinessUnitAddressChangedMessagePayload buildUnchecked() { - return new BusinessUnitAddressChangedMessagePayloadImpl(address); + return new BusinessUnitAddressChangedMessagePayloadImpl(address, addressRoles); } /** @@ -104,6 +157,7 @@ public static BusinessUnitAddressChangedMessagePayloadBuilder of( final BusinessUnitAddressChangedMessagePayload template) { BusinessUnitAddressChangedMessagePayloadBuilder builder = new BusinessUnitAddressChangedMessagePayloadBuilder(); builder.address = template.getAddress(); + builder.addressRoles = template.getAddressRoles(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadImpl.java index 2a8c6ab72d4..b15a2e71f20 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadImpl.java @@ -27,13 +27,17 @@ public class BusinessUnitAddressChangedMessagePayloadImpl private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** * create instance with all properties */ @JsonCreator BusinessUnitAddressChangedMessagePayloadImpl( - @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + @JsonProperty("address") final com.commercetools.api.models.common.Address address, + @JsonProperty("addressRoles") final java.util.List addressRoles) { this.address = address; + this.addressRoles = addressRoles; this.type = BUSINESS_UNIT_ADDRESS_CHANGED; } @@ -60,10 +64,26 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + public void setAddress(final com.commercetools.api.models.common.Address address) { this.address = address; } + public void setAddressRoles(final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + } + + public void setAddressRoles(final java.util.List addressRoles) { + this.addressRoles = addressRoles; + } + @Override public boolean equals(Object o) { if (this == o) @@ -76,20 +96,23 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(address, that.address) + .append(addressRoles, that.addressRoles) .append(type, that.type) .append(address, that.address) + .append(addressRoles, that.addressRoles) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + return new HashCodeBuilder(17, 37).append(type).append(address).append(addressRoles).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("address", address) + .append("addressRoles", addressRoles) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessage.java index 28a18e67885..7135b18f178 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessage.java @@ -8,6 +8,7 @@ import javax.annotation.Nullable; import com.commercetools.api.models.common.Address; +import com.commercetools.api.models.common.AddressRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -32,6 +33,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .address(addressBuilder -> addressBuilder) + * .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder) * .build() * *
    @@ -55,6 +57,14 @@ public interface BusinessUnitAddressRemovedMessage extends Message { @JsonProperty("address") public Address getAddress(); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + @NotNull + @JsonProperty("addressRoles") + public List getAddressRoles(); + /** *

    The address that was removed from the Business Unit.

    * @param address value to be set @@ -62,6 +72,21 @@ public interface BusinessUnitAddressRemovedMessage extends Message { public void setAddress(final Address address); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + @JsonIgnore + public void setAddressRoles(final AddressRole... addressRoles); + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + public void setAddressRoles(final List addressRoles); + /** * factory method * @return instance of BusinessUnitAddressRemovedMessage @@ -88,6 +113,7 @@ public static BusinessUnitAddressRemovedMessage of(final BusinessUnitAddressRemo instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); instance.setAddress(template.getAddress()); + instance.setAddressRoles(template.getAddressRoles()); return instance; } @@ -118,6 +144,7 @@ public static BusinessUnitAddressRemovedMessage deepCopy( instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers .deepCopy(template.getResourceUserProvidedIdentifiers())); instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + instance.setAddressRoles(Optional.ofNullable(template.getAddressRoles()).map(ArrayList::new).orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageBuilder.java index 5ed2ae06355..c13a59176a0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageBuilder.java @@ -24,6 +24,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .address(addressBuilder -> addressBuilder) + * .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder) * .build() * *
    @@ -56,6 +57,8 @@ public class BusinessUnitAddressRemovedMessageBuilder implements Builder addressRoles; + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @param id value to be set @@ -292,6 +295,45 @@ public BusinessUnitAddressRemovedMessageBuilder address(final com.commercetools. return this; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressRemovedMessageBuilder addressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressRemovedMessageBuilder addressRoles( + final java.util.List addressRoles) { + this.addressRoles = addressRoles; + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressRemovedMessageBuilder plusAddressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + if (this.addressRoles == null) { + this.addressRoles = new ArrayList<>(); + } + this.addressRoles.addAll(Arrays.asList(addressRoles)); + return this; + } + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @return id @@ -394,6 +436,15 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + /** * builds BusinessUnitAddressRemovedMessage with checking for non-null required values * @return BusinessUnitAddressRemovedMessage @@ -408,8 +459,10 @@ public BusinessUnitAddressRemovedMessage build() { Objects.requireNonNull(resourceVersion, BusinessUnitAddressRemovedMessage.class + ": resourceVersion is missing"); Objects.requireNonNull(address, BusinessUnitAddressRemovedMessage.class + ": address is missing"); + Objects.requireNonNull(addressRoles, BusinessUnitAddressRemovedMessage.class + ": addressRoles is missing"); return new BusinessUnitAddressRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, - createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address, + addressRoles); } /** @@ -418,7 +471,8 @@ public BusinessUnitAddressRemovedMessage build() { */ public BusinessUnitAddressRemovedMessage buildUnchecked() { return new BusinessUnitAddressRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, - createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address, + addressRoles); } /** @@ -447,6 +501,7 @@ public static BusinessUnitAddressRemovedMessageBuilder of(final BusinessUnitAddr builder.resourceVersion = template.getResourceVersion(); builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); builder.address = template.getAddress(); + builder.addressRoles = template.getAddressRoles(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageImpl.java index 7346924078b..32349e92b6e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageImpl.java @@ -46,6 +46,8 @@ public class BusinessUnitAddressRemovedMessageImpl implements BusinessUnitAddres private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** * create instance with all properties */ @@ -60,7 +62,8 @@ public class BusinessUnitAddressRemovedMessageImpl implements BusinessUnitAddres @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("address") final com.commercetools.api.models.common.Address address) { + @JsonProperty("address") final com.commercetools.api.models.common.Address address, + @JsonProperty("addressRoles") final java.util.List addressRoles) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -72,6 +75,7 @@ public class BusinessUnitAddressRemovedMessageImpl implements BusinessUnitAddres this.resourceVersion = resourceVersion; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; this.address = address; + this.addressRoles = addressRoles; this.type = BUSINESS_UNIT_ADDRESS_REMOVED; } @@ -178,6 +182,14 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + public void setId(final String id) { this.id = id; } @@ -223,6 +235,14 @@ public void setAddress(final com.commercetools.api.models.common.Address address this.address = address; } + public void setAddressRoles(final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + } + + public void setAddressRoles(final java.util.List addressRoles) { + this.addressRoles = addressRoles; + } + @Override public boolean equals(Object o) { if (this == o) @@ -245,6 +265,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(address, that.address) + .append(addressRoles, that.addressRoles) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -257,6 +278,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(address, that.address) + .append(addressRoles, that.addressRoles) .isEquals(); } @@ -274,6 +296,7 @@ public int hashCode() { .append(type) .append(resourceUserProvidedIdentifiers) .append(address) + .append(addressRoles) .toHashCode(); } @@ -291,6 +314,7 @@ public String toString() { .append("type", type) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("address", address) + .append("addressRoles", addressRoles) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayload.java index af8d3085a95..7048dfdc973 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayload.java @@ -8,6 +8,7 @@ import javax.annotation.Nullable; import com.commercetools.api.models.common.Address; +import com.commercetools.api.models.common.AddressRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -25,6 +26,7 @@ *
    
      *     BusinessUnitAddressRemovedMessagePayload businessUnitAddressRemovedMessagePayload = BusinessUnitAddressRemovedMessagePayload.builder()
      *             .address(addressBuilder -> addressBuilder)
    + *             .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder)
      *             .build()
      * 
    *
    @@ -48,6 +50,14 @@ public interface BusinessUnitAddressRemovedMessagePayload extends MessagePayload @JsonProperty("address") public Address getAddress(); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + @NotNull + @JsonProperty("addressRoles") + public List getAddressRoles(); + /** *

    The address that was removed from the Business Unit.

    * @param address value to be set @@ -55,6 +65,21 @@ public interface BusinessUnitAddressRemovedMessagePayload extends MessagePayload public void setAddress(final Address address); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + @JsonIgnore + public void setAddressRoles(final AddressRole... addressRoles); + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + public void setAddressRoles(final List addressRoles); + /** * factory method * @return instance of BusinessUnitAddressRemovedMessagePayload @@ -71,6 +96,7 @@ public static BusinessUnitAddressRemovedMessagePayload of() { public static BusinessUnitAddressRemovedMessagePayload of(final BusinessUnitAddressRemovedMessagePayload template) { BusinessUnitAddressRemovedMessagePayloadImpl instance = new BusinessUnitAddressRemovedMessagePayloadImpl(); instance.setAddress(template.getAddress()); + instance.setAddressRoles(template.getAddressRoles()); return instance; } @@ -89,6 +115,7 @@ public static BusinessUnitAddressRemovedMessagePayload deepCopy( } BusinessUnitAddressRemovedMessagePayloadImpl instance = new BusinessUnitAddressRemovedMessagePayloadImpl(); instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + instance.setAddressRoles(Optional.ofNullable(template.getAddressRoles()).map(ArrayList::new).orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadBuilder.java index 621594aab61..af1399e2e54 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadBuilder.java @@ -15,6 +15,7 @@ *
    
      *     BusinessUnitAddressRemovedMessagePayload businessUnitAddressRemovedMessagePayload = BusinessUnitAddressRemovedMessagePayload.builder()
      *             .address(addressBuilder -> addressBuilder)
    + *             .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder)
      *             .build()
      * 
    *
    @@ -25,6 +26,8 @@ public class BusinessUnitAddressRemovedMessagePayloadBuilder private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** *

    The address that was removed from the Business Unit.

    * @param builder function to build the address value @@ -61,6 +64,45 @@ public BusinessUnitAddressRemovedMessagePayloadBuilder address( return this; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressRemovedMessagePayloadBuilder addressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressRemovedMessagePayloadBuilder addressRoles( + final java.util.List addressRoles) { + this.addressRoles = addressRoles; + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public BusinessUnitAddressRemovedMessagePayloadBuilder plusAddressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + if (this.addressRoles == null) { + this.addressRoles = new ArrayList<>(); + } + this.addressRoles.addAll(Arrays.asList(addressRoles)); + return this; + } + /** *

    The address that was removed from the Business Unit.

    * @return address @@ -70,13 +112,24 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + /** * builds BusinessUnitAddressRemovedMessagePayload with checking for non-null required values * @return BusinessUnitAddressRemovedMessagePayload */ public BusinessUnitAddressRemovedMessagePayload build() { Objects.requireNonNull(address, BusinessUnitAddressRemovedMessagePayload.class + ": address is missing"); - return new BusinessUnitAddressRemovedMessagePayloadImpl(address); + Objects.requireNonNull(addressRoles, + BusinessUnitAddressRemovedMessagePayload.class + ": addressRoles is missing"); + return new BusinessUnitAddressRemovedMessagePayloadImpl(address, addressRoles); } /** @@ -84,7 +137,7 @@ public BusinessUnitAddressRemovedMessagePayload build() { * @return BusinessUnitAddressRemovedMessagePayload */ public BusinessUnitAddressRemovedMessagePayload buildUnchecked() { - return new BusinessUnitAddressRemovedMessagePayloadImpl(address); + return new BusinessUnitAddressRemovedMessagePayloadImpl(address, addressRoles); } /** @@ -104,6 +157,7 @@ public static BusinessUnitAddressRemovedMessagePayloadBuilder of( final BusinessUnitAddressRemovedMessagePayload template) { BusinessUnitAddressRemovedMessagePayloadBuilder builder = new BusinessUnitAddressRemovedMessagePayloadBuilder(); builder.address = template.getAddress(); + builder.addressRoles = template.getAddressRoles(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadImpl.java index e6dc24e1e37..633d3d8c9ba 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadImpl.java @@ -27,13 +27,17 @@ public class BusinessUnitAddressRemovedMessagePayloadImpl private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** * create instance with all properties */ @JsonCreator BusinessUnitAddressRemovedMessagePayloadImpl( - @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + @JsonProperty("address") final com.commercetools.api.models.common.Address address, + @JsonProperty("addressRoles") final java.util.List addressRoles) { this.address = address; + this.addressRoles = addressRoles; this.type = BUSINESS_UNIT_ADDRESS_REMOVED; } @@ -60,10 +64,26 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + public void setAddress(final com.commercetools.api.models.common.Address address) { this.address = address; } + public void setAddressRoles(final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + } + + public void setAddressRoles(final java.util.List addressRoles) { + this.addressRoles = addressRoles; + } + @Override public boolean equals(Object o) { if (this == o) @@ -76,20 +96,23 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(address, that.address) + .append(addressRoles, that.addressRoles) .append(type, that.type) .append(address, that.address) + .append(addressRoles, that.addressRoles) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + return new HashCodeBuilder(17, 37).append(type).append(address).append(addressRoles).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("address", address) + .append("addressRoles", addressRoles) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessage.java new file mode 100644 index 00000000000..34b98cef740 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessage.java @@ -0,0 +1,167 @@ + +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.customer.CustomerGroupAssignment; +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 Add CustomerGroupAssignment update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentAddedMessage businessUnitCustomerGroupAssignmentAddedMessage = BusinessUnitCustomerGroupAssignmentAddedMessage.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)
    + *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("BusinessUnitCustomerGroupAssignmentAdded") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitCustomerGroupAssignmentAddedMessageImpl.class) +public interface BusinessUnitCustomerGroupAssignmentAddedMessage extends Message { + + /** + * discriminator value for BusinessUnitCustomerGroupAssignmentAddedMessage + */ + String BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_ADDED = "BusinessUnitCustomerGroupAssignmentAdded"; + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupAssignment getCustomerGroupAssignment(); + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupAssignment customerGroupAssignment); + + /** + * factory method + * @return instance of BusinessUnitCustomerGroupAssignmentAddedMessage + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessage of() { + return new BusinessUnitCustomerGroupAssignmentAddedMessageImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitCustomerGroupAssignmentAddedMessage + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessage of( + final BusinessUnitCustomerGroupAssignmentAddedMessage template) { + BusinessUnitCustomerGroupAssignmentAddedMessageImpl instance = new BusinessUnitCustomerGroupAssignmentAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + public BusinessUnitCustomerGroupAssignmentAddedMessage copyDeep(); + + /** + * factory method to create a deep copy of BusinessUnitCustomerGroupAssignmentAddedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitCustomerGroupAssignmentAddedMessage deepCopy( + @Nullable final BusinessUnitCustomerGroupAssignmentAddedMessage template) { + if (template == null) { + return null; + } + BusinessUnitCustomerGroupAssignmentAddedMessageImpl instance = new BusinessUnitCustomerGroupAssignmentAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer.CustomerGroupAssignment + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for BusinessUnitCustomerGroupAssignmentAddedMessage + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessageBuilder builder() { + return BusinessUnitCustomerGroupAssignmentAddedMessageBuilder.of(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessageBuilder builder( + final BusinessUnitCustomerGroupAssignmentAddedMessage template) { + return BusinessUnitCustomerGroupAssignmentAddedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitCustomerGroupAssignmentAddedMessage( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessageBuilder.java new file mode 100644 index 00000000000..67369a28e5e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessageBuilder.java @@ -0,0 +1,467 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitCustomerGroupAssignmentAddedMessageBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentAddedMessage businessUnitCustomerGroupAssignmentAddedMessage = BusinessUnitCustomerGroupAssignmentAddedMessage.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)
    + *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentAddedMessageBuilder + implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    + * @param id value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

    Version of a resource. In case of Messages, this is always 1.

    + * @param version value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @param createdAt value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

    Value of createdAt.

    + * @param lastModifiedAt value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder lastModifiedAt( + final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param lastModifiedBy value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder 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 BusinessUnitCustomerGroupAssignmentAddedMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param builder function to build the createdBy value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param createdBy value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder 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.

    + * @param sequenceNumber value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

    Reference to the resource on which the change or action was performed.

    + * @param resource value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder 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 BusinessUnitCustomerGroupAssignmentAddedMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Version of the resource on which the change or action was performed.

    + * @param resourceVersion value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder 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.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()) + .build(); + return this; + } + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()); + return this; + } + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @param customerGroupAssignment value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessageBuilder customerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

    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.

    + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds BusinessUnitCustomerGroupAssignmentAddedMessage with checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentAddedMessage + */ + public BusinessUnitCustomerGroupAssignmentAddedMessage build() { + Objects.requireNonNull(id, BusinessUnitCustomerGroupAssignmentAddedMessage.class + ": id is missing"); + Objects.requireNonNull(version, BusinessUnitCustomerGroupAssignmentAddedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, + BusinessUnitCustomerGroupAssignmentAddedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + BusinessUnitCustomerGroupAssignmentAddedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + BusinessUnitCustomerGroupAssignmentAddedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, + BusinessUnitCustomerGroupAssignmentAddedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + BusinessUnitCustomerGroupAssignmentAddedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(customerGroupAssignment, + BusinessUnitCustomerGroupAssignmentAddedMessage.class + ": customerGroupAssignment is missing"); + return new BusinessUnitCustomerGroupAssignmentAddedMessageImpl(id, version, createdAt, lastModifiedAt, + lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignment); + } + + /** + * builds BusinessUnitCustomerGroupAssignmentAddedMessage without checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentAddedMessage + */ + public BusinessUnitCustomerGroupAssignmentAddedMessage buildUnchecked() { + return new BusinessUnitCustomerGroupAssignmentAddedMessageImpl(id, version, createdAt, lastModifiedAt, + lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignment); + } + + /** + * factory method for an instance of BusinessUnitCustomerGroupAssignmentAddedMessageBuilder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessageBuilder of() { + return new BusinessUnitCustomerGroupAssignmentAddedMessageBuilder(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessageBuilder of( + final BusinessUnitCustomerGroupAssignmentAddedMessage template) { + BusinessUnitCustomerGroupAssignmentAddedMessageBuilder builder = new BusinessUnitCustomerGroupAssignmentAddedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessageImpl.java new file mode 100644 index 00000000000..9681a4c3bc8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessageImpl.java @@ -0,0 +1,303 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Add CustomerGroupAssignment update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentAddedMessageImpl + implements BusinessUnitCustomerGroupAssignmentAddedMessage, 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.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitCustomerGroupAssignmentAddedMessageImpl(@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("customerGroupAssignment") final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + 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.customerGroupAssignment = customerGroupAssignment; + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_ADDED; + } + + /** + * create empty instance + */ + public BusinessUnitCustomerGroupAssignmentAddedMessageImpl() { + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_ADDED; + } + + /** + *

    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.

    + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitCustomerGroupAssignmentAddedMessageImpl that = (BusinessUnitCustomerGroupAssignmentAddedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(customerGroupAssignment) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + + @Override + public BusinessUnitCustomerGroupAssignmentAddedMessage copyDeep() { + return BusinessUnitCustomerGroupAssignmentAddedMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayload.java new file mode 100644 index 00000000000..da932ed8376 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayload.java @@ -0,0 +1,138 @@ + +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.customer.CustomerGroupAssignment; +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 Add CustomerGroupAssignment update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentAddedMessagePayload businessUnitCustomerGroupAssignmentAddedMessagePayload = BusinessUnitCustomerGroupAssignmentAddedMessagePayload.builder()
    + *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("BusinessUnitCustomerGroupAssignmentAdded") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl.class) +public interface BusinessUnitCustomerGroupAssignmentAddedMessagePayload extends MessagePayload { + + /** + * discriminator value for BusinessUnitCustomerGroupAssignmentAddedMessagePayload + */ + String BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_ADDED = "BusinessUnitCustomerGroupAssignmentAdded"; + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupAssignment getCustomerGroupAssignment(); + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupAssignment customerGroupAssignment); + + /** + * factory method + * @return instance of BusinessUnitCustomerGroupAssignmentAddedMessagePayload + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessagePayload of() { + return new BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitCustomerGroupAssignmentAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessagePayload of( + final BusinessUnitCustomerGroupAssignmentAddedMessagePayload template) { + BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl instance = new BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl(); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + public BusinessUnitCustomerGroupAssignmentAddedMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of BusinessUnitCustomerGroupAssignmentAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitCustomerGroupAssignmentAddedMessagePayload deepCopy( + @Nullable final BusinessUnitCustomerGroupAssignmentAddedMessagePayload template) { + if (template == null) { + return null; + } + BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl instance = new BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl(); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer.CustomerGroupAssignment + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for BusinessUnitCustomerGroupAssignmentAddedMessagePayload + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder builder() { + return BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder.of(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder builder( + final BusinessUnitCustomerGroupAssignmentAddedMessagePayload template) { + return BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitCustomerGroupAssignmentAddedMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder.java new file mode 100644 index 00000000000..3cc207de65e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentAddedMessagePayload businessUnitCustomerGroupAssignmentAddedMessagePayload = BusinessUnitCustomerGroupAssignmentAddedMessagePayload.builder()
    + *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder + implements Builder { + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()) + .build(); + return this; + } + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()); + return this; + } + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @param customerGroupAssignment value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder customerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds BusinessUnitCustomerGroupAssignmentAddedMessagePayload with checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentAddedMessagePayload + */ + public BusinessUnitCustomerGroupAssignmentAddedMessagePayload build() { + Objects.requireNonNull(customerGroupAssignment, + BusinessUnitCustomerGroupAssignmentAddedMessagePayload.class + ": customerGroupAssignment is missing"); + return new BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl(customerGroupAssignment); + } + + /** + * builds BusinessUnitCustomerGroupAssignmentAddedMessagePayload without checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentAddedMessagePayload + */ + public BusinessUnitCustomerGroupAssignmentAddedMessagePayload buildUnchecked() { + return new BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl(customerGroupAssignment); + } + + /** + * factory method for an instance of BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder of() { + return new BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder of( + final BusinessUnitCustomerGroupAssignmentAddedMessagePayload template) { + BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder builder = new BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl.java new file mode 100644 index 00000000000..8fd31924667 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl.java @@ -0,0 +1,101 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Add CustomerGroupAssignment update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl + implements BusinessUnitCustomerGroupAssignmentAddedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl( + @JsonProperty("customerGroupAssignment") final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_ADDED; + } + + /** + * create empty instance + */ + public BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl() { + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_ADDED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.

    + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl that = (BusinessUnitCustomerGroupAssignmentAddedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(type, that.type) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(customerGroupAssignment).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + + @Override + public BusinessUnitCustomerGroupAssignmentAddedMessagePayload copyDeep() { + return BusinessUnitCustomerGroupAssignmentAddedMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessage.java new file mode 100644 index 00000000000..8ed3765e6cd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessage.java @@ -0,0 +1,167 @@ + +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.customer.CustomerGroupAssignment; +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 CustomerGroupAssignment update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentRemovedMessage businessUnitCustomerGroupAssignmentRemovedMessage = BusinessUnitCustomerGroupAssignmentRemovedMessage.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)
    + *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("BusinessUnitCustomerGroupAssignmentRemoved") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitCustomerGroupAssignmentRemovedMessageImpl.class) +public interface BusinessUnitCustomerGroupAssignmentRemovedMessage extends Message { + + /** + * discriminator value for BusinessUnitCustomerGroupAssignmentRemovedMessage + */ + String BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_REMOVED = "BusinessUnitCustomerGroupAssignmentRemoved"; + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupAssignment getCustomerGroupAssignment(); + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupAssignment customerGroupAssignment); + + /** + * factory method + * @return instance of BusinessUnitCustomerGroupAssignmentRemovedMessage + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessage of() { + return new BusinessUnitCustomerGroupAssignmentRemovedMessageImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitCustomerGroupAssignmentRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessage of( + final BusinessUnitCustomerGroupAssignmentRemovedMessage template) { + BusinessUnitCustomerGroupAssignmentRemovedMessageImpl instance = new BusinessUnitCustomerGroupAssignmentRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + public BusinessUnitCustomerGroupAssignmentRemovedMessage copyDeep(); + + /** + * factory method to create a deep copy of BusinessUnitCustomerGroupAssignmentRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitCustomerGroupAssignmentRemovedMessage deepCopy( + @Nullable final BusinessUnitCustomerGroupAssignmentRemovedMessage template) { + if (template == null) { + return null; + } + BusinessUnitCustomerGroupAssignmentRemovedMessageImpl instance = new BusinessUnitCustomerGroupAssignmentRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer.CustomerGroupAssignment + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for BusinessUnitCustomerGroupAssignmentRemovedMessage + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder builder() { + return BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder.of(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder builder( + final BusinessUnitCustomerGroupAssignmentRemovedMessage template) { + return BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitCustomerGroupAssignmentRemovedMessage( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder.java new file mode 100644 index 00000000000..d6ba095dcc5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder.java @@ -0,0 +1,468 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentRemovedMessage businessUnitCustomerGroupAssignmentRemovedMessage = BusinessUnitCustomerGroupAssignmentRemovedMessage.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)
    + *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder + implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    + * @param id value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

    Version of a resource. In case of Messages, this is always 1.

    + * @param version value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @param createdAt value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

    Value of createdAt.

    + * @param lastModifiedAt value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder lastModifiedAt( + final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param lastModifiedBy value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder 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 BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param builder function to build the createdBy value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param createdBy value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder 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.

    + * @param sequenceNumber value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

    Reference to the resource on which the change or action was performed.

    + * @param resource value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder 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 BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Version of the resource on which the change or action was performed.

    + * @param resourceVersion value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder 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.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()) + .build(); + return this; + } + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()); + return this; + } + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @param customerGroupAssignment value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder customerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

    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.

    + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds BusinessUnitCustomerGroupAssignmentRemovedMessage with checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentRemovedMessage + */ + public BusinessUnitCustomerGroupAssignmentRemovedMessage build() { + Objects.requireNonNull(id, BusinessUnitCustomerGroupAssignmentRemovedMessage.class + ": id is missing"); + Objects.requireNonNull(version, + BusinessUnitCustomerGroupAssignmentRemovedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, + BusinessUnitCustomerGroupAssignmentRemovedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + BusinessUnitCustomerGroupAssignmentRemovedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + BusinessUnitCustomerGroupAssignmentRemovedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, + BusinessUnitCustomerGroupAssignmentRemovedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + BusinessUnitCustomerGroupAssignmentRemovedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(customerGroupAssignment, + BusinessUnitCustomerGroupAssignmentRemovedMessage.class + ": customerGroupAssignment is missing"); + return new BusinessUnitCustomerGroupAssignmentRemovedMessageImpl(id, version, createdAt, lastModifiedAt, + lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignment); + } + + /** + * builds BusinessUnitCustomerGroupAssignmentRemovedMessage without checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentRemovedMessage + */ + public BusinessUnitCustomerGroupAssignmentRemovedMessage buildUnchecked() { + return new BusinessUnitCustomerGroupAssignmentRemovedMessageImpl(id, version, createdAt, lastModifiedAt, + lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignment); + } + + /** + * factory method for an instance of BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder of() { + return new BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder of( + final BusinessUnitCustomerGroupAssignmentRemovedMessage template) { + BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder builder = new BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessageImpl.java new file mode 100644 index 00000000000..78a1c66bcc9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessageImpl.java @@ -0,0 +1,303 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Remove CustomerGroupAssignment update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentRemovedMessageImpl + implements BusinessUnitCustomerGroupAssignmentRemovedMessage, 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.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitCustomerGroupAssignmentRemovedMessageImpl(@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("customerGroupAssignment") final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + 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.customerGroupAssignment = customerGroupAssignment; + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_REMOVED; + } + + /** + * create empty instance + */ + public BusinessUnitCustomerGroupAssignmentRemovedMessageImpl() { + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_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.

    + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitCustomerGroupAssignmentRemovedMessageImpl that = (BusinessUnitCustomerGroupAssignmentRemovedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(customerGroupAssignment) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + + @Override + public BusinessUnitCustomerGroupAssignmentRemovedMessage copyDeep() { + return BusinessUnitCustomerGroupAssignmentRemovedMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.java new file mode 100644 index 00000000000..ad5d1d35fda --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.java @@ -0,0 +1,138 @@ + +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.customer.CustomerGroupAssignment; +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 CustomerGroupAssignment update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentRemovedMessagePayload businessUnitCustomerGroupAssignmentRemovedMessagePayload = BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.builder()
    + *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("BusinessUnitCustomerGroupAssignmentRemoved") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl.class) +public interface BusinessUnitCustomerGroupAssignmentRemovedMessagePayload extends MessagePayload { + + /** + * discriminator value for BusinessUnitCustomerGroupAssignmentRemovedMessagePayload + */ + String BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_REMOVED = "BusinessUnitCustomerGroupAssignmentRemoved"; + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @return customerGroupAssignment + */ + @NotNull + @Valid + @JsonProperty("customerGroupAssignment") + public CustomerGroupAssignment getCustomerGroupAssignment(); + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @param customerGroupAssignment value to be set + */ + + public void setCustomerGroupAssignment(final CustomerGroupAssignment customerGroupAssignment); + + /** + * factory method + * @return instance of BusinessUnitCustomerGroupAssignmentRemovedMessagePayload + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessagePayload of() { + return new BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitCustomerGroupAssignmentRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessagePayload of( + final BusinessUnitCustomerGroupAssignmentRemovedMessagePayload template) { + BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl instance = new BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl(); + instance.setCustomerGroupAssignment(template.getCustomerGroupAssignment()); + return instance; + } + + public BusinessUnitCustomerGroupAssignmentRemovedMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of BusinessUnitCustomerGroupAssignmentRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitCustomerGroupAssignmentRemovedMessagePayload deepCopy( + @Nullable final BusinessUnitCustomerGroupAssignmentRemovedMessagePayload template) { + if (template == null) { + return null; + } + BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl instance = new BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl(); + instance.setCustomerGroupAssignment(com.commercetools.api.models.customer.CustomerGroupAssignment + .deepCopy(template.getCustomerGroupAssignment())); + return instance; + } + + /** + * builder factory method for BusinessUnitCustomerGroupAssignmentRemovedMessagePayload + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder builder() { + return BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder.of(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder builder( + final BusinessUnitCustomerGroupAssignmentRemovedMessagePayload template) { + return BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitCustomerGroupAssignmentRemovedMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder.java new file mode 100644 index 00000000000..b5290b6917d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentRemovedMessagePayload businessUnitCustomerGroupAssignmentRemovedMessagePayload = BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.builder()
    + *             .customerGroupAssignment(customerGroupAssignmentBuilder -> customerGroupAssignmentBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder + implements Builder { + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder customerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()) + .build(); + return this; + } + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @param builder function to build the customerGroupAssignment value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder withCustomerGroupAssignment( + Function builder) { + this.customerGroupAssignment = builder + .apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()); + return this; + } + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @param customerGroupAssignment value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder customerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + return this; + } + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + * @return customerGroupAssignment + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + /** + * builds BusinessUnitCustomerGroupAssignmentRemovedMessagePayload with checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentRemovedMessagePayload + */ + public BusinessUnitCustomerGroupAssignmentRemovedMessagePayload build() { + Objects.requireNonNull(customerGroupAssignment, + BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.class + ": customerGroupAssignment is missing"); + return new BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl(customerGroupAssignment); + } + + /** + * builds BusinessUnitCustomerGroupAssignmentRemovedMessagePayload without checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentRemovedMessagePayload + */ + public BusinessUnitCustomerGroupAssignmentRemovedMessagePayload buildUnchecked() { + return new BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl(customerGroupAssignment); + } + + /** + * factory method for an instance of BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder of() { + return new BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder of( + final BusinessUnitCustomerGroupAssignmentRemovedMessagePayload template) { + BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder builder = new BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder(); + builder.customerGroupAssignment = template.getCustomerGroupAssignment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl.java new file mode 100644 index 00000000000..70f669bfab1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl.java @@ -0,0 +1,101 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Remove CustomerGroupAssignment update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl + implements BusinessUnitCustomerGroupAssignmentRemovedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl( + @JsonProperty("customerGroupAssignment") final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_REMOVED; + } + + /** + * create empty instance + */ + public BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl() { + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENT_REMOVED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.

    + */ + + public com.commercetools.api.models.customer.CustomerGroupAssignment getCustomerGroupAssignment() { + return this.customerGroupAssignment; + } + + public void setCustomerGroupAssignment( + final com.commercetools.api.models.customer.CustomerGroupAssignment customerGroupAssignment) { + this.customerGroupAssignment = customerGroupAssignment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl that = (BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(customerGroupAssignment, that.customerGroupAssignment) + .append(type, that.type) + .append(customerGroupAssignment, that.customerGroupAssignment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(customerGroupAssignment).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("customerGroupAssignment", customerGroupAssignment) + .build(); + } + + @Override + public BusinessUnitCustomerGroupAssignmentRemovedMessagePayload copyDeep() { + return BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessage.java new file mode 100644 index 00000000000..8f077c62152 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessage.java @@ -0,0 +1,205 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer.CustomerGroupAssignment; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *

    Generated after a successful Set CustomerGroupAssignments update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentsSetMessage businessUnitCustomerGroupAssignmentsSetMessage = BusinessUnitCustomerGroupAssignmentsSetMessage.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()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("BusinessUnitCustomerGroupAssignmentsSet") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitCustomerGroupAssignmentsSetMessageImpl.class) +public interface BusinessUnitCustomerGroupAssignmentsSetMessage extends Message { + + /** + * discriminator value for BusinessUnitCustomerGroupAssignmentsSetMessage + */ + String BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENTS_SET = "BusinessUnitCustomerGroupAssignmentsSet"; + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @return customerGroupAssignments + */ + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @return oldCustomerGroupAssignments + */ + @Valid + @JsonProperty("oldCustomerGroupAssignments") + public List getOldCustomerGroupAssignments(); + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignment... customerGroupAssignments); + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments values to be set + */ + + @JsonIgnore + public void setOldCustomerGroupAssignments(final CustomerGroupAssignment... oldCustomerGroupAssignments); + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments values to be set + */ + + public void setOldCustomerGroupAssignments(final List oldCustomerGroupAssignments); + + /** + * factory method + * @return instance of BusinessUnitCustomerGroupAssignmentsSetMessage + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessage of() { + return new BusinessUnitCustomerGroupAssignmentsSetMessageImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitCustomerGroupAssignmentsSetMessage + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessage of( + final BusinessUnitCustomerGroupAssignmentsSetMessage template) { + BusinessUnitCustomerGroupAssignmentsSetMessageImpl instance = new BusinessUnitCustomerGroupAssignmentsSetMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); + instance.setOldCustomerGroupAssignments(template.getOldCustomerGroupAssignments()); + return instance; + } + + public BusinessUnitCustomerGroupAssignmentsSetMessage copyDeep(); + + /** + * factory method to create a deep copy of BusinessUnitCustomerGroupAssignmentsSetMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitCustomerGroupAssignmentsSetMessage deepCopy( + @Nullable final BusinessUnitCustomerGroupAssignmentsSetMessage template) { + if (template == null) { + return null; + } + BusinessUnitCustomerGroupAssignmentsSetMessageImpl instance = new BusinessUnitCustomerGroupAssignmentsSetMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setOldCustomerGroupAssignments(Optional.ofNullable(template.getOldCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for BusinessUnitCustomerGroupAssignmentsSetMessage + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessageBuilder builder() { + return BusinessUnitCustomerGroupAssignmentsSetMessageBuilder.of(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentsSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessageBuilder builder( + final BusinessUnitCustomerGroupAssignmentsSetMessage template) { + return BusinessUnitCustomerGroupAssignmentsSetMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitCustomerGroupAssignmentsSetMessage( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessageBuilder.java new file mode 100644 index 00000000000..a496c667ab0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessageBuilder.java @@ -0,0 +1,627 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitCustomerGroupAssignmentsSetMessageBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentsSetMessage businessUnitCustomerGroupAssignmentsSetMessage = BusinessUnitCustomerGroupAssignmentsSetMessage.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()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentsSetMessageBuilder + implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + @Nullable + private java.util.List customerGroupAssignments; + + @Nullable + private java.util.List oldCustomerGroupAssignments; + + /** + *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    + * @param id value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

    Version of a resource. In case of Messages, this is always 1.

    + * @param version value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @param createdAt value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

    Value of createdAt.

    + * @param lastModifiedAt value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder lastModifiedAt( + final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param lastModifiedBy value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder 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 BusinessUnitCustomerGroupAssignmentsSetMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param builder function to build the createdBy value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param createdBy value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder 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.

    + * @param sequenceNumber value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

    Reference to the resource on which the change or action was performed.

    + * @param resource value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder 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 BusinessUnitCustomerGroupAssignmentsSetMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Version of the resource on which the change or action was performed.

    + * @param resourceVersion value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder 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.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder oldCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = new ArrayList<>(Arrays.asList(oldCustomerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder oldCustomerGroupAssignments( + @Nullable final java.util.List oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder plusOldCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + if (this.oldCustomerGroupAssignments == null) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + } + this.oldCustomerGroupAssignments.addAll(Arrays.asList(oldCustomerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder plusOldCustomerGroupAssignments( + Function builder) { + if (this.oldCustomerGroupAssignments == null) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + } + this.oldCustomerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder withOldCustomerGroupAssignments( + Function builder) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + this.oldCustomerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder addOldCustomerGroupAssignments( + Function builder) { + return plusOldCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessageBuilder setOldCustomerGroupAssignments( + Function builder) { + return oldCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    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.

    + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @return oldCustomerGroupAssignments + */ + + @Nullable + public java.util.List getOldCustomerGroupAssignments() { + return this.oldCustomerGroupAssignments; + } + + /** + * builds BusinessUnitCustomerGroupAssignmentsSetMessage with checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentsSetMessage + */ + public BusinessUnitCustomerGroupAssignmentsSetMessage build() { + Objects.requireNonNull(id, BusinessUnitCustomerGroupAssignmentsSetMessage.class + ": id is missing"); + Objects.requireNonNull(version, BusinessUnitCustomerGroupAssignmentsSetMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, + BusinessUnitCustomerGroupAssignmentsSetMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + BusinessUnitCustomerGroupAssignmentsSetMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + BusinessUnitCustomerGroupAssignmentsSetMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, + BusinessUnitCustomerGroupAssignmentsSetMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + BusinessUnitCustomerGroupAssignmentsSetMessage.class + ": resourceVersion is missing"); + return new BusinessUnitCustomerGroupAssignmentsSetMessageImpl(id, version, createdAt, lastModifiedAt, + lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignments, oldCustomerGroupAssignments); + } + + /** + * builds BusinessUnitCustomerGroupAssignmentsSetMessage without checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentsSetMessage + */ + public BusinessUnitCustomerGroupAssignmentsSetMessage buildUnchecked() { + return new BusinessUnitCustomerGroupAssignmentsSetMessageImpl(id, version, createdAt, lastModifiedAt, + lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, + customerGroupAssignments, oldCustomerGroupAssignments); + } + + /** + * factory method for an instance of BusinessUnitCustomerGroupAssignmentsSetMessageBuilder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessageBuilder of() { + return new BusinessUnitCustomerGroupAssignmentsSetMessageBuilder(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentsSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessageBuilder of( + final BusinessUnitCustomerGroupAssignmentsSetMessage template) { + BusinessUnitCustomerGroupAssignmentsSetMessageBuilder builder = new BusinessUnitCustomerGroupAssignmentsSetMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); + builder.oldCustomerGroupAssignments = template.getOldCustomerGroupAssignments(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessageImpl.java new file mode 100644 index 00000000000..1d58850c1bd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessageImpl.java @@ -0,0 +1,334 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Set CustomerGroupAssignments update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentsSetMessageImpl + implements BusinessUnitCustomerGroupAssignmentsSetMessage, 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 java.util.List customerGroupAssignments; + + private java.util.List oldCustomerGroupAssignments; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitCustomerGroupAssignmentsSetMessageImpl(@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("customerGroupAssignments") final java.util.List customerGroupAssignments, + @JsonProperty("oldCustomerGroupAssignments") final java.util.List oldCustomerGroupAssignments) { + 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.customerGroupAssignments = customerGroupAssignments; + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENTS_SET; + } + + /** + * create empty instance + */ + public BusinessUnitCustomerGroupAssignmentsSetMessageImpl() { + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENTS_SET; + } + + /** + *

    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.

    + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + */ + + public java.util.List getOldCustomerGroupAssignments() { + return this.oldCustomerGroupAssignments; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + + public void setOldCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = new ArrayList<>(Arrays.asList(oldCustomerGroupAssignments)); + } + + public void setOldCustomerGroupAssignments( + final java.util.List oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitCustomerGroupAssignmentsSetMessageImpl that = (BusinessUnitCustomerGroupAssignmentsSetMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignments, that.customerGroupAssignments) + .append(oldCustomerGroupAssignments, that.oldCustomerGroupAssignments) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(customerGroupAssignments, that.customerGroupAssignments) + .append(oldCustomerGroupAssignments, that.oldCustomerGroupAssignments) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(customerGroupAssignments) + .append(oldCustomerGroupAssignments) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("customerGroupAssignments", customerGroupAssignments) + .append("oldCustomerGroupAssignments", oldCustomerGroupAssignments) + .build(); + } + + @Override + public BusinessUnitCustomerGroupAssignmentsSetMessage copyDeep() { + return BusinessUnitCustomerGroupAssignmentsSetMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayload.java new file mode 100644 index 00000000000..b80f676a1f1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayload.java @@ -0,0 +1,176 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.customer.CustomerGroupAssignment; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; + +/** + *

    Generated after a successful Set CustomerGroupAssignments update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentsSetMessagePayload businessUnitCustomerGroupAssignmentsSetMessagePayload = BusinessUnitCustomerGroupAssignmentsSetMessagePayload.builder()
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("BusinessUnitCustomerGroupAssignmentsSet") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl.class) +public interface BusinessUnitCustomerGroupAssignmentsSetMessagePayload extends MessagePayload { + + /** + * discriminator value for BusinessUnitCustomerGroupAssignmentsSetMessagePayload + */ + String BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENTS_SET = "BusinessUnitCustomerGroupAssignmentsSet"; + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @return customerGroupAssignments + */ + @Valid + @JsonProperty("customerGroupAssignments") + public List getCustomerGroupAssignments(); + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @return oldCustomerGroupAssignments + */ + @Valid + @JsonProperty("oldCustomerGroupAssignments") + public List getOldCustomerGroupAssignments(); + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments values to be set + */ + + @JsonIgnore + public void setCustomerGroupAssignments(final CustomerGroupAssignment... customerGroupAssignments); + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments values to be set + */ + + public void setCustomerGroupAssignments(final List customerGroupAssignments); + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments values to be set + */ + + @JsonIgnore + public void setOldCustomerGroupAssignments(final CustomerGroupAssignment... oldCustomerGroupAssignments); + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments values to be set + */ + + public void setOldCustomerGroupAssignments(final List oldCustomerGroupAssignments); + + /** + * factory method + * @return instance of BusinessUnitCustomerGroupAssignmentsSetMessagePayload + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessagePayload of() { + return new BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitCustomerGroupAssignmentsSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessagePayload of( + final BusinessUnitCustomerGroupAssignmentsSetMessagePayload template) { + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl instance = new BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl(); + instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); + instance.setOldCustomerGroupAssignments(template.getOldCustomerGroupAssignments()); + return instance; + } + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of BusinessUnitCustomerGroupAssignmentsSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitCustomerGroupAssignmentsSetMessagePayload deepCopy( + @Nullable final BusinessUnitCustomerGroupAssignmentsSetMessagePayload template) { + if (template == null) { + return null; + } + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl instance = new BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl(); + instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setOldCustomerGroupAssignments(Optional.ofNullable(template.getOldCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for BusinessUnitCustomerGroupAssignmentsSetMessagePayload + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder builder() { + return BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder.of(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentsSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder builder( + final BusinessUnitCustomerGroupAssignmentsSetMessagePayload template) { + return BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitCustomerGroupAssignmentsSetMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder.java new file mode 100644 index 00000000000..471989cbcf9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder.java @@ -0,0 +1,278 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BusinessUnitCustomerGroupAssignmentsSetMessagePayload businessUnitCustomerGroupAssignmentsSetMessagePayload = BusinessUnitCustomerGroupAssignmentsSetMessagePayload.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder + implements Builder { + + @Nullable + private java.util.List customerGroupAssignments; + + @Nullable + private java.util.List oldCustomerGroupAssignments; + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignments( + @Nullable final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param customerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder plusCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments.addAll(Arrays.asList(customerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder plusCustomerGroupAssignments( + Function builder) { + if (this.customerGroupAssignments == null) { + this.customerGroupAssignments = new ArrayList<>(); + } + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder withCustomerGroupAssignments( + Function builder) { + this.customerGroupAssignments = new ArrayList<>(); + this.customerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder addCustomerGroupAssignments( + Function builder) { + return plusCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @param builder function to build the customerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder setCustomerGroupAssignments( + Function builder) { + return customerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder oldCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = new ArrayList<>(Arrays.asList(oldCustomerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder oldCustomerGroupAssignments( + @Nullable final java.util.List oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder plusOldCustomerGroupAssignments( + @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + if (this.oldCustomerGroupAssignments == null) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + } + this.oldCustomerGroupAssignments.addAll(Arrays.asList(oldCustomerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder plusOldCustomerGroupAssignments( + Function builder) { + if (this.oldCustomerGroupAssignments == null) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + } + this.oldCustomerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder withOldCustomerGroupAssignments( + Function builder) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + this.oldCustomerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder addOldCustomerGroupAssignments( + Function builder) { + return plusOldCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder setOldCustomerGroupAssignments( + Function builder) { + return oldCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + * @return customerGroupAssignments + */ + + @Nullable + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + * @return oldCustomerGroupAssignments + */ + + @Nullable + public java.util.List getOldCustomerGroupAssignments() { + return this.oldCustomerGroupAssignments; + } + + /** + * builds BusinessUnitCustomerGroupAssignmentsSetMessagePayload with checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentsSetMessagePayload + */ + public BusinessUnitCustomerGroupAssignmentsSetMessagePayload build() { + return new BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl(customerGroupAssignments, + oldCustomerGroupAssignments); + } + + /** + * builds BusinessUnitCustomerGroupAssignmentsSetMessagePayload without checking for non-null required values + * @return BusinessUnitCustomerGroupAssignmentsSetMessagePayload + */ + public BusinessUnitCustomerGroupAssignmentsSetMessagePayload buildUnchecked() { + return new BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl(customerGroupAssignments, + oldCustomerGroupAssignments); + } + + /** + * factory method for an instance of BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder of() { + return new BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder(); + } + + /** + * create builder for BusinessUnitCustomerGroupAssignmentsSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder of( + final BusinessUnitCustomerGroupAssignmentsSetMessagePayload template) { + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder builder = new BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder(); + builder.customerGroupAssignments = template.getCustomerGroupAssignments(); + builder.oldCustomerGroupAssignments = template.getOldCustomerGroupAssignments(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl.java new file mode 100644 index 00000000000..29626d127eb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl.java @@ -0,0 +1,134 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Set CustomerGroupAssignments update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl + implements BusinessUnitCustomerGroupAssignmentsSetMessagePayload, ModelBase { + + private String type; + + private java.util.List customerGroupAssignments; + + private java.util.List oldCustomerGroupAssignments; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl( + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments, + @JsonProperty("oldCustomerGroupAssignments") final java.util.List oldCustomerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENTS_SET; + } + + /** + * create empty instance + */ + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl() { + this.type = BUSINESS_UNIT_CUSTOMER_GROUP_ASSIGNMENTS_SET; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.

    + */ + + public java.util.List getCustomerGroupAssignments() { + return this.customerGroupAssignments; + } + + /** + *

    Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.

    + */ + + public java.util.List getOldCustomerGroupAssignments() { + return this.oldCustomerGroupAssignments; + } + + public void setCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); + } + + public void setCustomerGroupAssignments( + final java.util.List customerGroupAssignments) { + this.customerGroupAssignments = customerGroupAssignments; + } + + public void setOldCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = new ArrayList<>(Arrays.asList(oldCustomerGroupAssignments)); + } + + public void setOldCustomerGroupAssignments( + final java.util.List oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl that = (BusinessUnitCustomerGroupAssignmentsSetMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(customerGroupAssignments, that.customerGroupAssignments) + .append(oldCustomerGroupAssignments, that.oldCustomerGroupAssignments) + .append(type, that.type) + .append(customerGroupAssignments, that.customerGroupAssignments) + .append(oldCustomerGroupAssignments, that.oldCustomerGroupAssignments) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(customerGroupAssignments) + .append(oldCustomerGroupAssignments) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("customerGroupAssignments", customerGroupAssignments) + .append("oldCustomerGroupAssignments", oldCustomerGroupAssignments) + .build(); + } + + @Override + public BusinessUnitCustomerGroupAssignmentsSetMessagePayload copyDeep() { + return BusinessUnitCustomerGroupAssignmentsSetMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessage.java index f7b5bd3788a..cd08eb2562c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessage.java @@ -8,6 +8,7 @@ import javax.annotation.Nullable; import com.commercetools.api.models.common.Address; +import com.commercetools.api.models.common.AddressRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -32,6 +33,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .address(addressBuilder -> addressBuilder) + * .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder) * .build() * *
    @@ -55,6 +57,14 @@ public interface CustomerAddressChangedMessage extends Message { @JsonProperty("address") public Address getAddress(); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + @NotNull + @JsonProperty("addressRoles") + public List getAddressRoles(); + /** *

    Address that was set during the Change Address update action.

    * @param address value to be set @@ -62,6 +72,21 @@ public interface CustomerAddressChangedMessage extends Message { public void setAddress(final Address address); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + @JsonIgnore + public void setAddressRoles(final AddressRole... addressRoles); + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + public void setAddressRoles(final List addressRoles); + /** * factory method * @return instance of CustomerAddressChangedMessage @@ -88,6 +113,7 @@ public static CustomerAddressChangedMessage of(final CustomerAddressChangedMessa instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); instance.setAddress(template.getAddress()); + instance.setAddressRoles(template.getAddressRoles()); return instance; } @@ -117,6 +143,7 @@ public static CustomerAddressChangedMessage deepCopy(@Nullable final CustomerAdd instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers .deepCopy(template.getResourceUserProvidedIdentifiers())); instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + instance.setAddressRoles(Optional.ofNullable(template.getAddressRoles()).map(ArrayList::new).orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageBuilder.java index 071a6c967a9..ce6f062b112 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageBuilder.java @@ -24,6 +24,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .address(addressBuilder -> addressBuilder) + * .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder) * .build() * *
    @@ -56,6 +57,8 @@ public class CustomerAddressChangedMessageBuilder implements Builder addressRoles; + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @param id value to be set @@ -291,6 +294,45 @@ public CustomerAddressChangedMessageBuilder address(final com.commercetools.api. return this; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressChangedMessageBuilder addressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressChangedMessageBuilder addressRoles( + final java.util.List addressRoles) { + this.addressRoles = addressRoles; + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressChangedMessageBuilder plusAddressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + if (this.addressRoles == null) { + this.addressRoles = new ArrayList<>(); + } + this.addressRoles.addAll(Arrays.asList(addressRoles)); + return this; + } + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @return id @@ -393,6 +435,15 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + /** * builds CustomerAddressChangedMessage with checking for non-null required values * @return CustomerAddressChangedMessage @@ -406,8 +457,9 @@ public CustomerAddressChangedMessage build() { Objects.requireNonNull(resource, CustomerAddressChangedMessage.class + ": resource is missing"); Objects.requireNonNull(resourceVersion, CustomerAddressChangedMessage.class + ": resourceVersion is missing"); Objects.requireNonNull(address, CustomerAddressChangedMessage.class + ": address is missing"); + Objects.requireNonNull(addressRoles, CustomerAddressChangedMessage.class + ": addressRoles is missing"); return new CustomerAddressChangedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address, addressRoles); } /** @@ -416,7 +468,7 @@ public CustomerAddressChangedMessage build() { */ public CustomerAddressChangedMessage buildUnchecked() { return new CustomerAddressChangedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address, addressRoles); } /** @@ -445,6 +497,7 @@ public static CustomerAddressChangedMessageBuilder of(final CustomerAddressChang builder.resourceVersion = template.getResourceVersion(); builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); builder.address = template.getAddress(); + builder.addressRoles = template.getAddressRoles(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageImpl.java index 9a192b0bb8e..e2bf3832e81 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageImpl.java @@ -46,6 +46,8 @@ public class CustomerAddressChangedMessageImpl implements CustomerAddressChanged private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** * create instance with all properties */ @@ -59,7 +61,8 @@ public class CustomerAddressChangedMessageImpl implements CustomerAddressChanged @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("address") final com.commercetools.api.models.common.Address address) { + @JsonProperty("address") final com.commercetools.api.models.common.Address address, + @JsonProperty("addressRoles") final java.util.List addressRoles) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -71,6 +74,7 @@ public class CustomerAddressChangedMessageImpl implements CustomerAddressChanged this.resourceVersion = resourceVersion; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; this.address = address; + this.addressRoles = addressRoles; this.type = CUSTOMER_ADDRESS_CHANGED; } @@ -177,6 +181,14 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + public void setId(final String id) { this.id = id; } @@ -222,6 +234,14 @@ public void setAddress(final com.commercetools.api.models.common.Address address this.address = address; } + public void setAddressRoles(final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + } + + public void setAddressRoles(final java.util.List addressRoles) { + this.addressRoles = addressRoles; + } + @Override public boolean equals(Object o) { if (this == o) @@ -244,6 +264,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(address, that.address) + .append(addressRoles, that.addressRoles) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -256,6 +277,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(address, that.address) + .append(addressRoles, that.addressRoles) .isEquals(); } @@ -273,6 +295,7 @@ public int hashCode() { .append(type) .append(resourceUserProvidedIdentifiers) .append(address) + .append(addressRoles) .toHashCode(); } @@ -290,6 +313,7 @@ public String toString() { .append("type", type) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("address", address) + .append("addressRoles", addressRoles) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayload.java index 1609eb772b4..992fd4f077d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayload.java @@ -8,6 +8,7 @@ import javax.annotation.Nullable; import com.commercetools.api.models.common.Address; +import com.commercetools.api.models.common.AddressRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -25,6 +26,7 @@ *
    
      *     CustomerAddressChangedMessagePayload customerAddressChangedMessagePayload = CustomerAddressChangedMessagePayload.builder()
      *             .address(addressBuilder -> addressBuilder)
    + *             .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder)
      *             .build()
      * 
    *
    @@ -48,6 +50,14 @@ public interface CustomerAddressChangedMessagePayload extends MessagePayload { @JsonProperty("address") public Address getAddress(); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + @NotNull + @JsonProperty("addressRoles") + public List getAddressRoles(); + /** *

    Address that was set during the Change Address update action.

    * @param address value to be set @@ -55,6 +65,21 @@ public interface CustomerAddressChangedMessagePayload extends MessagePayload { public void setAddress(final Address address); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + @JsonIgnore + public void setAddressRoles(final AddressRole... addressRoles); + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + public void setAddressRoles(final List addressRoles); + /** * factory method * @return instance of CustomerAddressChangedMessagePayload @@ -71,6 +96,7 @@ public static CustomerAddressChangedMessagePayload of() { public static CustomerAddressChangedMessagePayload of(final CustomerAddressChangedMessagePayload template) { CustomerAddressChangedMessagePayloadImpl instance = new CustomerAddressChangedMessagePayloadImpl(); instance.setAddress(template.getAddress()); + instance.setAddressRoles(template.getAddressRoles()); return instance; } @@ -89,6 +115,7 @@ public static CustomerAddressChangedMessagePayload deepCopy( } CustomerAddressChangedMessagePayloadImpl instance = new CustomerAddressChangedMessagePayloadImpl(); instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + instance.setAddressRoles(Optional.ofNullable(template.getAddressRoles()).map(ArrayList::new).orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadBuilder.java index 38889b1a19b..1d3934628ed 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadBuilder.java @@ -15,6 +15,7 @@ *
    
      *     CustomerAddressChangedMessagePayload customerAddressChangedMessagePayload = CustomerAddressChangedMessagePayload.builder()
      *             .address(addressBuilder -> addressBuilder)
    + *             .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder)
      *             .build()
      * 
    *
    @@ -24,6 +25,8 @@ public class CustomerAddressChangedMessagePayloadBuilder implements Builder addressRoles; + /** *

    Address that was set during the Change Address update action.

    * @param builder function to build the address value @@ -60,6 +63,45 @@ public CustomerAddressChangedMessagePayloadBuilder address( return this; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressChangedMessagePayloadBuilder addressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressChangedMessagePayloadBuilder addressRoles( + final java.util.List addressRoles) { + this.addressRoles = addressRoles; + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressChangedMessagePayloadBuilder plusAddressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + if (this.addressRoles == null) { + this.addressRoles = new ArrayList<>(); + } + this.addressRoles.addAll(Arrays.asList(addressRoles)); + return this; + } + /** *

    Address that was set during the Change Address update action.

    * @return address @@ -69,13 +111,23 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + /** * builds CustomerAddressChangedMessagePayload with checking for non-null required values * @return CustomerAddressChangedMessagePayload */ public CustomerAddressChangedMessagePayload build() { Objects.requireNonNull(address, CustomerAddressChangedMessagePayload.class + ": address is missing"); - return new CustomerAddressChangedMessagePayloadImpl(address); + Objects.requireNonNull(addressRoles, CustomerAddressChangedMessagePayload.class + ": addressRoles is missing"); + return new CustomerAddressChangedMessagePayloadImpl(address, addressRoles); } /** @@ -83,7 +135,7 @@ public CustomerAddressChangedMessagePayload build() { * @return CustomerAddressChangedMessagePayload */ public CustomerAddressChangedMessagePayload buildUnchecked() { - return new CustomerAddressChangedMessagePayloadImpl(address); + return new CustomerAddressChangedMessagePayloadImpl(address, addressRoles); } /** @@ -102,6 +154,7 @@ public static CustomerAddressChangedMessagePayloadBuilder of() { public static CustomerAddressChangedMessagePayloadBuilder of(final CustomerAddressChangedMessagePayload template) { CustomerAddressChangedMessagePayloadBuilder builder = new CustomerAddressChangedMessagePayloadBuilder(); builder.address = template.getAddress(); + builder.addressRoles = template.getAddressRoles(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadImpl.java index 3cacd029ab9..da0979569b0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadImpl.java @@ -26,13 +26,17 @@ public class CustomerAddressChangedMessagePayloadImpl implements CustomerAddress private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** * create instance with all properties */ @JsonCreator CustomerAddressChangedMessagePayloadImpl( - @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + @JsonProperty("address") final com.commercetools.api.models.common.Address address, + @JsonProperty("addressRoles") final java.util.List addressRoles) { this.address = address; + this.addressRoles = addressRoles; this.type = CUSTOMER_ADDRESS_CHANGED; } @@ -59,10 +63,26 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + public void setAddress(final com.commercetools.api.models.common.Address address) { this.address = address; } + public void setAddressRoles(final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + } + + public void setAddressRoles(final java.util.List addressRoles) { + this.addressRoles = addressRoles; + } + @Override public boolean equals(Object o) { if (this == o) @@ -75,20 +95,23 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(address, that.address) + .append(addressRoles, that.addressRoles) .append(type, that.type) .append(address, that.address) + .append(addressRoles, that.addressRoles) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + return new HashCodeBuilder(17, 37).append(type).append(address).append(addressRoles).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("address", address) + .append("addressRoles", addressRoles) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessage.java index 35f54b3f482..6b3876474cc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessage.java @@ -8,6 +8,7 @@ import javax.annotation.Nullable; import com.commercetools.api.models.common.Address; +import com.commercetools.api.models.common.AddressRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -32,6 +33,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .address(addressBuilder -> addressBuilder) + * .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder) * .build() * *
    @@ -55,6 +57,14 @@ public interface CustomerAddressRemovedMessage extends Message { @JsonProperty("address") public Address getAddress(); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + @NotNull + @JsonProperty("addressRoles") + public List getAddressRoles(); + /** *

    Address that was removed during the Remove Address update action.

    * @param address value to be set @@ -62,6 +72,21 @@ public interface CustomerAddressRemovedMessage extends Message { public void setAddress(final Address address); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + @JsonIgnore + public void setAddressRoles(final AddressRole... addressRoles); + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + public void setAddressRoles(final List addressRoles); + /** * factory method * @return instance of CustomerAddressRemovedMessage @@ -88,6 +113,7 @@ public static CustomerAddressRemovedMessage of(final CustomerAddressRemovedMessa instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); instance.setAddress(template.getAddress()); + instance.setAddressRoles(template.getAddressRoles()); return instance; } @@ -117,6 +143,7 @@ public static CustomerAddressRemovedMessage deepCopy(@Nullable final CustomerAdd instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers .deepCopy(template.getResourceUserProvidedIdentifiers())); instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + instance.setAddressRoles(Optional.ofNullable(template.getAddressRoles()).map(ArrayList::new).orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageBuilder.java index da4c812c75a..765c64d309c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageBuilder.java @@ -24,6 +24,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .address(addressBuilder -> addressBuilder) + * .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder) * .build() * *
    @@ -56,6 +57,8 @@ public class CustomerAddressRemovedMessageBuilder implements Builder addressRoles; + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @param id value to be set @@ -291,6 +294,45 @@ public CustomerAddressRemovedMessageBuilder address(final com.commercetools.api. return this; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressRemovedMessageBuilder addressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressRemovedMessageBuilder addressRoles( + final java.util.List addressRoles) { + this.addressRoles = addressRoles; + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressRemovedMessageBuilder plusAddressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + if (this.addressRoles == null) { + this.addressRoles = new ArrayList<>(); + } + this.addressRoles.addAll(Arrays.asList(addressRoles)); + return this; + } + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @return id @@ -393,6 +435,15 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + /** * builds CustomerAddressRemovedMessage with checking for non-null required values * @return CustomerAddressRemovedMessage @@ -406,8 +457,9 @@ public CustomerAddressRemovedMessage build() { Objects.requireNonNull(resource, CustomerAddressRemovedMessage.class + ": resource is missing"); Objects.requireNonNull(resourceVersion, CustomerAddressRemovedMessage.class + ": resourceVersion is missing"); Objects.requireNonNull(address, CustomerAddressRemovedMessage.class + ": address is missing"); + Objects.requireNonNull(addressRoles, CustomerAddressRemovedMessage.class + ": addressRoles is missing"); return new CustomerAddressRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address, addressRoles); } /** @@ -416,7 +468,7 @@ public CustomerAddressRemovedMessage build() { */ public CustomerAddressRemovedMessage buildUnchecked() { return new CustomerAddressRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address, addressRoles); } /** @@ -445,6 +497,7 @@ public static CustomerAddressRemovedMessageBuilder of(final CustomerAddressRemov builder.resourceVersion = template.getResourceVersion(); builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); builder.address = template.getAddress(); + builder.addressRoles = template.getAddressRoles(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageImpl.java index 3f3c7505578..5b6270fc050 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageImpl.java @@ -46,6 +46,8 @@ public class CustomerAddressRemovedMessageImpl implements CustomerAddressRemoved private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** * create instance with all properties */ @@ -59,7 +61,8 @@ public class CustomerAddressRemovedMessageImpl implements CustomerAddressRemoved @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("address") final com.commercetools.api.models.common.Address address) { + @JsonProperty("address") final com.commercetools.api.models.common.Address address, + @JsonProperty("addressRoles") final java.util.List addressRoles) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -71,6 +74,7 @@ public class CustomerAddressRemovedMessageImpl implements CustomerAddressRemoved this.resourceVersion = resourceVersion; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; this.address = address; + this.addressRoles = addressRoles; this.type = CUSTOMER_ADDRESS_REMOVED; } @@ -177,6 +181,14 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + public void setId(final String id) { this.id = id; } @@ -222,6 +234,14 @@ public void setAddress(final com.commercetools.api.models.common.Address address this.address = address; } + public void setAddressRoles(final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + } + + public void setAddressRoles(final java.util.List addressRoles) { + this.addressRoles = addressRoles; + } + @Override public boolean equals(Object o) { if (this == o) @@ -244,6 +264,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(address, that.address) + .append(addressRoles, that.addressRoles) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -256,6 +277,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(address, that.address) + .append(addressRoles, that.addressRoles) .isEquals(); } @@ -273,6 +295,7 @@ public int hashCode() { .append(type) .append(resourceUserProvidedIdentifiers) .append(address) + .append(addressRoles) .toHashCode(); } @@ -290,6 +313,7 @@ public String toString() { .append("type", type) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("address", address) + .append("addressRoles", addressRoles) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayload.java index 9840466a7a5..be4d83b183d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayload.java @@ -8,6 +8,7 @@ import javax.annotation.Nullable; import com.commercetools.api.models.common.Address; +import com.commercetools.api.models.common.AddressRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -25,6 +26,7 @@ *
    
      *     CustomerAddressRemovedMessagePayload customerAddressRemovedMessagePayload = CustomerAddressRemovedMessagePayload.builder()
      *             .address(addressBuilder -> addressBuilder)
    + *             .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder)
      *             .build()
      * 
    *
    @@ -48,6 +50,14 @@ public interface CustomerAddressRemovedMessagePayload extends MessagePayload { @JsonProperty("address") public Address getAddress(); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + @NotNull + @JsonProperty("addressRoles") + public List getAddressRoles(); + /** *

    Address that was removed during the Remove Address update action.

    * @param address value to be set @@ -55,6 +65,21 @@ public interface CustomerAddressRemovedMessagePayload extends MessagePayload { public void setAddress(final Address address); + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + @JsonIgnore + public void setAddressRoles(final AddressRole... addressRoles); + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles values to be set + */ + + public void setAddressRoles(final List addressRoles); + /** * factory method * @return instance of CustomerAddressRemovedMessagePayload @@ -71,6 +96,7 @@ public static CustomerAddressRemovedMessagePayload of() { public static CustomerAddressRemovedMessagePayload of(final CustomerAddressRemovedMessagePayload template) { CustomerAddressRemovedMessagePayloadImpl instance = new CustomerAddressRemovedMessagePayloadImpl(); instance.setAddress(template.getAddress()); + instance.setAddressRoles(template.getAddressRoles()); return instance; } @@ -89,6 +115,7 @@ public static CustomerAddressRemovedMessagePayload deepCopy( } CustomerAddressRemovedMessagePayloadImpl instance = new CustomerAddressRemovedMessagePayloadImpl(); instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + instance.setAddressRoles(Optional.ofNullable(template.getAddressRoles()).map(ArrayList::new).orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadBuilder.java index d9ae89f0f6d..62dbe38821d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadBuilder.java @@ -15,6 +15,7 @@ *
    
      *     CustomerAddressRemovedMessagePayload customerAddressRemovedMessagePayload = CustomerAddressRemovedMessagePayload.builder()
      *             .address(addressBuilder -> addressBuilder)
    + *             .plusAddressRoles(addressRolesBuilder -> addressRolesBuilder)
      *             .build()
      * 
    *
    @@ -24,6 +25,8 @@ public class CustomerAddressRemovedMessagePayloadBuilder implements Builder addressRoles; + /** *

    Address that was removed during the Remove Address update action.

    * @param builder function to build the address value @@ -60,6 +63,45 @@ public CustomerAddressRemovedMessagePayloadBuilder address( return this; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressRemovedMessagePayloadBuilder addressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressRemovedMessagePayloadBuilder addressRoles( + final java.util.List addressRoles) { + this.addressRoles = addressRoles; + return this; + } + + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @param addressRoles value to be set + * @return Builder + */ + + public CustomerAddressRemovedMessagePayloadBuilder plusAddressRoles( + final com.commercetools.api.models.common.AddressRole... addressRoles) { + if (this.addressRoles == null) { + this.addressRoles = new ArrayList<>(); + } + this.addressRoles.addAll(Arrays.asList(addressRoles)); + return this; + } + /** *

    Address that was removed during the Remove Address update action.

    * @return address @@ -69,13 +111,23 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + * @return addressRoles + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + /** * builds CustomerAddressRemovedMessagePayload with checking for non-null required values * @return CustomerAddressRemovedMessagePayload */ public CustomerAddressRemovedMessagePayload build() { Objects.requireNonNull(address, CustomerAddressRemovedMessagePayload.class + ": address is missing"); - return new CustomerAddressRemovedMessagePayloadImpl(address); + Objects.requireNonNull(addressRoles, CustomerAddressRemovedMessagePayload.class + ": addressRoles is missing"); + return new CustomerAddressRemovedMessagePayloadImpl(address, addressRoles); } /** @@ -83,7 +135,7 @@ public CustomerAddressRemovedMessagePayload build() { * @return CustomerAddressRemovedMessagePayload */ public CustomerAddressRemovedMessagePayload buildUnchecked() { - return new CustomerAddressRemovedMessagePayloadImpl(address); + return new CustomerAddressRemovedMessagePayloadImpl(address, addressRoles); } /** @@ -102,6 +154,7 @@ public static CustomerAddressRemovedMessagePayloadBuilder of() { public static CustomerAddressRemovedMessagePayloadBuilder of(final CustomerAddressRemovedMessagePayload template) { CustomerAddressRemovedMessagePayloadBuilder builder = new CustomerAddressRemovedMessagePayloadBuilder(); builder.address = template.getAddress(); + builder.addressRoles = template.getAddressRoles(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadImpl.java index f3d94b16006..b8d5abf1756 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadImpl.java @@ -26,13 +26,17 @@ public class CustomerAddressRemovedMessagePayloadImpl implements CustomerAddress private com.commercetools.api.models.common.Address address; + private java.util.List addressRoles; + /** * create instance with all properties */ @JsonCreator CustomerAddressRemovedMessagePayloadImpl( - @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + @JsonProperty("address") final com.commercetools.api.models.common.Address address, + @JsonProperty("addressRoles") final java.util.List addressRoles) { this.address = address; + this.addressRoles = addressRoles; this.type = CUSTOMER_ADDRESS_REMOVED; } @@ -59,10 +63,26 @@ public com.commercetools.api.models.common.Address getAddress() { return this.address; } + /** + *

    Indicates if the address was used for shipping or billing purposes.

    + */ + + public java.util.List getAddressRoles() { + return this.addressRoles; + } + public void setAddress(final com.commercetools.api.models.common.Address address) { this.address = address; } + public void setAddressRoles(final com.commercetools.api.models.common.AddressRole... addressRoles) { + this.addressRoles = new ArrayList<>(Arrays.asList(addressRoles)); + } + + public void setAddressRoles(final java.util.List addressRoles) { + this.addressRoles = addressRoles; + } + @Override public boolean equals(Object o) { if (this == o) @@ -75,20 +95,23 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(address, that.address) + .append(addressRoles, that.addressRoles) .append(type, that.type) .append(address, that.address) + .append(addressRoles, that.addressRoles) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + return new HashCodeBuilder(17, 37).append(type).append(address).append(addressRoles).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("address", address) + .append("addressRoles", addressRoles) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessage.java new file mode 100644 index 00000000000..3d60d634895 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessage.java @@ -0,0 +1,163 @@ + +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.common.Address; +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 Add Billing Address ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerBillingAddressAddedMessage customerBillingAddressAddedMessage = CustomerBillingAddressAddedMessage.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)
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerBillingAddressAdded") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerBillingAddressAddedMessageImpl.class) +public interface CustomerBillingAddressAddedMessage extends Message { + + /** + * discriminator value for CustomerBillingAddressAddedMessage + */ + String CUSTOMER_BILLING_ADDRESS_ADDED = "CustomerBillingAddressAdded"; + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerBillingAddressAddedMessage + */ + public static CustomerBillingAddressAddedMessage of() { + return new CustomerBillingAddressAddedMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerBillingAddressAddedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerBillingAddressAddedMessage of(final CustomerBillingAddressAddedMessage template) { + CustomerBillingAddressAddedMessageImpl instance = new CustomerBillingAddressAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerBillingAddressAddedMessage copyDeep(); + + /** + * factory method to create a deep copy of CustomerBillingAddressAddedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerBillingAddressAddedMessage deepCopy( + @Nullable final CustomerBillingAddressAddedMessage template) { + if (template == null) { + return null; + } + CustomerBillingAddressAddedMessageImpl instance = new CustomerBillingAddressAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerBillingAddressAddedMessage + * @return builder + */ + public static CustomerBillingAddressAddedMessageBuilder builder() { + return CustomerBillingAddressAddedMessageBuilder.of(); + } + + /** + * create builder for CustomerBillingAddressAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerBillingAddressAddedMessageBuilder builder(final CustomerBillingAddressAddedMessage template) { + return CustomerBillingAddressAddedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerBillingAddressAddedMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessageBuilder.java new file mode 100644 index 00000000000..219b906dc8a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessageBuilder.java @@ -0,0 +1,456 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerBillingAddressAddedMessageBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerBillingAddressAddedMessage customerBillingAddressAddedMessage = CustomerBillingAddressAddedMessage.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)
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerBillingAddressAddedMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.common.Address address; + + /** + *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    + * @param id value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

    Version of a resource. In case of Messages, this is always 1.

    + * @param version value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @param createdAt value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

    Value of createdAt.

    + * @param lastModifiedAt value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder 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 CustomerBillingAddressAddedMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param createdBy value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder 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.

    + * @param sequenceNumber value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

    Reference to the resource on which the change or action was performed.

    + * @param resource value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder 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 CustomerBillingAddressAddedMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Version of the resource on which the change or action was performed.

    + * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder 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.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder address( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()).build(); + return this; + } + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder withAddress( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()); + return this; + } + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @param address value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessageBuilder address( + final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *

    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.

    + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @return address + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerBillingAddressAddedMessage with checking for non-null required values + * @return CustomerBillingAddressAddedMessage + */ + public CustomerBillingAddressAddedMessage build() { + Objects.requireNonNull(id, CustomerBillingAddressAddedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerBillingAddressAddedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerBillingAddressAddedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + CustomerBillingAddressAddedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + CustomerBillingAddressAddedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerBillingAddressAddedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + CustomerBillingAddressAddedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(address, CustomerBillingAddressAddedMessage.class + ": address is missing"); + return new CustomerBillingAddressAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * builds CustomerBillingAddressAddedMessage without checking for non-null required values + * @return CustomerBillingAddressAddedMessage + */ + public CustomerBillingAddressAddedMessage buildUnchecked() { + return new CustomerBillingAddressAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * factory method for an instance of CustomerBillingAddressAddedMessageBuilder + * @return builder + */ + public static CustomerBillingAddressAddedMessageBuilder of() { + return new CustomerBillingAddressAddedMessageBuilder(); + } + + /** + * create builder for CustomerBillingAddressAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerBillingAddressAddedMessageBuilder of(final CustomerBillingAddressAddedMessage template) { + CustomerBillingAddressAddedMessageBuilder builder = new CustomerBillingAddressAddedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessageImpl.java new file mode 100644 index 00000000000..bb48b305e2a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessageImpl.java @@ -0,0 +1,301 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Add Billing Address ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerBillingAddressAddedMessageImpl implements CustomerBillingAddressAddedMessage, 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.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerBillingAddressAddedMessageImpl(@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("address") final com.commercetools.api.models.common.Address address) { + 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.address = address; + this.type = CUSTOMER_BILLING_ADDRESS_ADDED; + } + + /** + * create empty instance + */ + public CustomerBillingAddressAddedMessageImpl() { + this.type = CUSTOMER_BILLING_ADDRESS_ADDED; + } + + /** + *

    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.

    + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The address that was added to the Customer billingAddressIds.

    + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerBillingAddressAddedMessageImpl that = (CustomerBillingAddressAddedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(address, that.address) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(address) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("address", address) + .build(); + } + + @Override + public CustomerBillingAddressAddedMessage copyDeep() { + return CustomerBillingAddressAddedMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayload.java new file mode 100644 index 00000000000..88472b95497 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayload.java @@ -0,0 +1,137 @@ + +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.common.Address; +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 Add Billing Address ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerBillingAddressAddedMessagePayload customerBillingAddressAddedMessagePayload = CustomerBillingAddressAddedMessagePayload.builder()
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerBillingAddressAdded") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerBillingAddressAddedMessagePayloadImpl.class) +public interface CustomerBillingAddressAddedMessagePayload extends MessagePayload { + + /** + * discriminator value for CustomerBillingAddressAddedMessagePayload + */ + String CUSTOMER_BILLING_ADDRESS_ADDED = "CustomerBillingAddressAdded"; + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerBillingAddressAddedMessagePayload + */ + public static CustomerBillingAddressAddedMessagePayload of() { + return new CustomerBillingAddressAddedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerBillingAddressAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerBillingAddressAddedMessagePayload of( + final CustomerBillingAddressAddedMessagePayload template) { + CustomerBillingAddressAddedMessagePayloadImpl instance = new CustomerBillingAddressAddedMessagePayloadImpl(); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerBillingAddressAddedMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of CustomerBillingAddressAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerBillingAddressAddedMessagePayload deepCopy( + @Nullable final CustomerBillingAddressAddedMessagePayload template) { + if (template == null) { + return null; + } + CustomerBillingAddressAddedMessagePayloadImpl instance = new CustomerBillingAddressAddedMessagePayloadImpl(); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerBillingAddressAddedMessagePayload + * @return builder + */ + public static CustomerBillingAddressAddedMessagePayloadBuilder builder() { + return CustomerBillingAddressAddedMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerBillingAddressAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerBillingAddressAddedMessagePayloadBuilder builder( + final CustomerBillingAddressAddedMessagePayload template) { + return CustomerBillingAddressAddedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerBillingAddressAddedMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayloadBuilder.java new file mode 100644 index 00000000000..dfaf4c4e7b1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayloadBuilder.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerBillingAddressAddedMessagePayloadBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerBillingAddressAddedMessagePayload customerBillingAddressAddedMessagePayload = CustomerBillingAddressAddedMessagePayload.builder()
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerBillingAddressAddedMessagePayloadBuilder + implements Builder { + + private com.commercetools.api.models.common.Address address; + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerBillingAddressAddedMessagePayloadBuilder address( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()).build(); + return this; + } + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerBillingAddressAddedMessagePayloadBuilder withAddress( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()); + return this; + } + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @param address value to be set + * @return Builder + */ + + public CustomerBillingAddressAddedMessagePayloadBuilder address( + final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *

    The address that was added to the Customer billingAddressIds.

    + * @return address + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerBillingAddressAddedMessagePayload with checking for non-null required values + * @return CustomerBillingAddressAddedMessagePayload + */ + public CustomerBillingAddressAddedMessagePayload build() { + Objects.requireNonNull(address, CustomerBillingAddressAddedMessagePayload.class + ": address is missing"); + return new CustomerBillingAddressAddedMessagePayloadImpl(address); + } + + /** + * builds CustomerBillingAddressAddedMessagePayload without checking for non-null required values + * @return CustomerBillingAddressAddedMessagePayload + */ + public CustomerBillingAddressAddedMessagePayload buildUnchecked() { + return new CustomerBillingAddressAddedMessagePayloadImpl(address); + } + + /** + * factory method for an instance of CustomerBillingAddressAddedMessagePayloadBuilder + * @return builder + */ + public static CustomerBillingAddressAddedMessagePayloadBuilder of() { + return new CustomerBillingAddressAddedMessagePayloadBuilder(); + } + + /** + * create builder for CustomerBillingAddressAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerBillingAddressAddedMessagePayloadBuilder of( + final CustomerBillingAddressAddedMessagePayload template) { + CustomerBillingAddressAddedMessagePayloadBuilder builder = new CustomerBillingAddressAddedMessagePayloadBuilder(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayloadImpl.java new file mode 100644 index 00000000000..18f240ce4fe --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayloadImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Add Billing Address ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerBillingAddressAddedMessagePayloadImpl + implements CustomerBillingAddressAddedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerBillingAddressAddedMessagePayloadImpl( + @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + this.address = address; + this.type = CUSTOMER_BILLING_ADDRESS_ADDED; + } + + /** + * create empty instance + */ + public CustomerBillingAddressAddedMessagePayloadImpl() { + this.type = CUSTOMER_BILLING_ADDRESS_ADDED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    The address that was added to the Customer billingAddressIds.

    + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerBillingAddressAddedMessagePayloadImpl that = (CustomerBillingAddressAddedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(address, that.address) + .append(type, that.type) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("address", address) + .build(); + } + + @Override + public CustomerBillingAddressAddedMessagePayload copyDeep() { + return CustomerBillingAddressAddedMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessage.java new file mode 100644 index 00000000000..eca44ddfe9c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessage.java @@ -0,0 +1,164 @@ + +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.common.Address; +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 Billing Address ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerBillingAddressRemovedMessage customerBillingAddressRemovedMessage = CustomerBillingAddressRemovedMessage.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)
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerBillingAddressRemoved") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerBillingAddressRemovedMessageImpl.class) +public interface CustomerBillingAddressRemovedMessage extends Message { + + /** + * discriminator value for CustomerBillingAddressRemovedMessage + */ + String CUSTOMER_BILLING_ADDRESS_REMOVED = "CustomerBillingAddressRemoved"; + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerBillingAddressRemovedMessage + */ + public static CustomerBillingAddressRemovedMessage of() { + return new CustomerBillingAddressRemovedMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerBillingAddressRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerBillingAddressRemovedMessage of(final CustomerBillingAddressRemovedMessage template) { + CustomerBillingAddressRemovedMessageImpl instance = new CustomerBillingAddressRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerBillingAddressRemovedMessage copyDeep(); + + /** + * factory method to create a deep copy of CustomerBillingAddressRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerBillingAddressRemovedMessage deepCopy( + @Nullable final CustomerBillingAddressRemovedMessage template) { + if (template == null) { + return null; + } + CustomerBillingAddressRemovedMessageImpl instance = new CustomerBillingAddressRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerBillingAddressRemovedMessage + * @return builder + */ + public static CustomerBillingAddressRemovedMessageBuilder builder() { + return CustomerBillingAddressRemovedMessageBuilder.of(); + } + + /** + * create builder for CustomerBillingAddressRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerBillingAddressRemovedMessageBuilder builder( + final CustomerBillingAddressRemovedMessage template) { + return CustomerBillingAddressRemovedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerBillingAddressRemovedMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessageBuilder.java new file mode 100644 index 00000000000..991298538d1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessageBuilder.java @@ -0,0 +1,456 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerBillingAddressRemovedMessageBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerBillingAddressRemovedMessage customerBillingAddressRemovedMessage = CustomerBillingAddressRemovedMessage.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)
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerBillingAddressRemovedMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.common.Address address; + + /** + *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    + * @param id value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

    Version of a resource. In case of Messages, this is always 1.

    + * @param version value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @param createdAt value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

    Value of createdAt.

    + * @param lastModifiedAt value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder 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 CustomerBillingAddressRemovedMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param createdBy value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder 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.

    + * @param sequenceNumber value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

    Reference to the resource on which the change or action was performed.

    + * @param resource value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder 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 CustomerBillingAddressRemovedMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Version of the resource on which the change or action was performed.

    + * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder 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.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder address( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()).build(); + return this; + } + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder withAddress( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()); + return this; + } + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @param address value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessageBuilder address( + final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *

    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.

    + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @return address + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerBillingAddressRemovedMessage with checking for non-null required values + * @return CustomerBillingAddressRemovedMessage + */ + public CustomerBillingAddressRemovedMessage build() { + Objects.requireNonNull(id, CustomerBillingAddressRemovedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerBillingAddressRemovedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerBillingAddressRemovedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + CustomerBillingAddressRemovedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + CustomerBillingAddressRemovedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerBillingAddressRemovedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + CustomerBillingAddressRemovedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(address, CustomerBillingAddressRemovedMessage.class + ": address is missing"); + return new CustomerBillingAddressRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * builds CustomerBillingAddressRemovedMessage without checking for non-null required values + * @return CustomerBillingAddressRemovedMessage + */ + public CustomerBillingAddressRemovedMessage buildUnchecked() { + return new CustomerBillingAddressRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * factory method for an instance of CustomerBillingAddressRemovedMessageBuilder + * @return builder + */ + public static CustomerBillingAddressRemovedMessageBuilder of() { + return new CustomerBillingAddressRemovedMessageBuilder(); + } + + /** + * create builder for CustomerBillingAddressRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerBillingAddressRemovedMessageBuilder of(final CustomerBillingAddressRemovedMessage template) { + CustomerBillingAddressRemovedMessageBuilder builder = new CustomerBillingAddressRemovedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessageImpl.java new file mode 100644 index 00000000000..2af863ab4a3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessageImpl.java @@ -0,0 +1,301 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Remove Billing Address ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerBillingAddressRemovedMessageImpl implements CustomerBillingAddressRemovedMessage, 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.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerBillingAddressRemovedMessageImpl(@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("address") final com.commercetools.api.models.common.Address address) { + 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.address = address; + this.type = CUSTOMER_BILLING_ADDRESS_REMOVED; + } + + /** + * create empty instance + */ + public CustomerBillingAddressRemovedMessageImpl() { + this.type = CUSTOMER_BILLING_ADDRESS_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.

    + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerBillingAddressRemovedMessageImpl that = (CustomerBillingAddressRemovedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(address, that.address) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(address) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("address", address) + .build(); + } + + @Override + public CustomerBillingAddressRemovedMessage copyDeep() { + return CustomerBillingAddressRemovedMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayload.java new file mode 100644 index 00000000000..27d3ea4ffca --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayload.java @@ -0,0 +1,137 @@ + +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.common.Address; +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 Billing Address ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerBillingAddressRemovedMessagePayload customerBillingAddressRemovedMessagePayload = CustomerBillingAddressRemovedMessagePayload.builder()
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerBillingAddressRemoved") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerBillingAddressRemovedMessagePayloadImpl.class) +public interface CustomerBillingAddressRemovedMessagePayload extends MessagePayload { + + /** + * discriminator value for CustomerBillingAddressRemovedMessagePayload + */ + String CUSTOMER_BILLING_ADDRESS_REMOVED = "CustomerBillingAddressRemoved"; + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerBillingAddressRemovedMessagePayload + */ + public static CustomerBillingAddressRemovedMessagePayload of() { + return new CustomerBillingAddressRemovedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerBillingAddressRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerBillingAddressRemovedMessagePayload of( + final CustomerBillingAddressRemovedMessagePayload template) { + CustomerBillingAddressRemovedMessagePayloadImpl instance = new CustomerBillingAddressRemovedMessagePayloadImpl(); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerBillingAddressRemovedMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of CustomerBillingAddressRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerBillingAddressRemovedMessagePayload deepCopy( + @Nullable final CustomerBillingAddressRemovedMessagePayload template) { + if (template == null) { + return null; + } + CustomerBillingAddressRemovedMessagePayloadImpl instance = new CustomerBillingAddressRemovedMessagePayloadImpl(); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerBillingAddressRemovedMessagePayload + * @return builder + */ + public static CustomerBillingAddressRemovedMessagePayloadBuilder builder() { + return CustomerBillingAddressRemovedMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerBillingAddressRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerBillingAddressRemovedMessagePayloadBuilder builder( + final CustomerBillingAddressRemovedMessagePayload template) { + return CustomerBillingAddressRemovedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerBillingAddressRemovedMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayloadBuilder.java new file mode 100644 index 00000000000..c9cf9945687 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayloadBuilder.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerBillingAddressRemovedMessagePayloadBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerBillingAddressRemovedMessagePayload customerBillingAddressRemovedMessagePayload = CustomerBillingAddressRemovedMessagePayload.builder()
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerBillingAddressRemovedMessagePayloadBuilder + implements Builder { + + private com.commercetools.api.models.common.Address address; + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerBillingAddressRemovedMessagePayloadBuilder address( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()).build(); + return this; + } + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerBillingAddressRemovedMessagePayloadBuilder withAddress( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()); + return this; + } + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @param address value to be set + * @return Builder + */ + + public CustomerBillingAddressRemovedMessagePayloadBuilder address( + final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + * @return address + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerBillingAddressRemovedMessagePayload with checking for non-null required values + * @return CustomerBillingAddressRemovedMessagePayload + */ + public CustomerBillingAddressRemovedMessagePayload build() { + Objects.requireNonNull(address, CustomerBillingAddressRemovedMessagePayload.class + ": address is missing"); + return new CustomerBillingAddressRemovedMessagePayloadImpl(address); + } + + /** + * builds CustomerBillingAddressRemovedMessagePayload without checking for non-null required values + * @return CustomerBillingAddressRemovedMessagePayload + */ + public CustomerBillingAddressRemovedMessagePayload buildUnchecked() { + return new CustomerBillingAddressRemovedMessagePayloadImpl(address); + } + + /** + * factory method for an instance of CustomerBillingAddressRemovedMessagePayloadBuilder + * @return builder + */ + public static CustomerBillingAddressRemovedMessagePayloadBuilder of() { + return new CustomerBillingAddressRemovedMessagePayloadBuilder(); + } + + /** + * create builder for CustomerBillingAddressRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerBillingAddressRemovedMessagePayloadBuilder of( + final CustomerBillingAddressRemovedMessagePayload template) { + CustomerBillingAddressRemovedMessagePayloadBuilder builder = new CustomerBillingAddressRemovedMessagePayloadBuilder(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayloadImpl.java new file mode 100644 index 00000000000..7fa034d794a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayloadImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Remove Billing Address ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerBillingAddressRemovedMessagePayloadImpl + implements CustomerBillingAddressRemovedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerBillingAddressRemovedMessagePayloadImpl( + @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + this.address = address; + this.type = CUSTOMER_BILLING_ADDRESS_REMOVED; + } + + /** + * create empty instance + */ + public CustomerBillingAddressRemovedMessagePayloadImpl() { + this.type = CUSTOMER_BILLING_ADDRESS_REMOVED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    The address that was removed from the Customer billingAddressIds.

    + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerBillingAddressRemovedMessagePayloadImpl that = (CustomerBillingAddressRemovedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(address, that.address) + .append(type, that.type) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("address", address) + .build(); + } + + @Override + public CustomerBillingAddressRemovedMessagePayload copyDeep() { + return CustomerBillingAddressRemovedMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessage.java index 8d6f53d4e21..f1ee41555c3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessage.java @@ -41,6 +41,21 @@ public interface CustomerDeletedMessage extends Message { */ String CUSTOMER_DELETED = "CustomerDeleted"; + /** + *

    The email address of the Customer that was deleted.

    + * @return email + */ + + @JsonProperty("email") + public String getEmail(); + + /** + *

    The email address of the Customer that was deleted.

    + * @param email value to be set + */ + + public void setEmail(final String email); + /** * factory method * @return instance of CustomerDeletedMessage @@ -66,6 +81,7 @@ public static CustomerDeletedMessage of(final CustomerDeletedMessage template) { instance.setResource(template.getResource()); instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setEmail(template.getEmail()); return instance; } @@ -94,6 +110,7 @@ public static CustomerDeletedMessage deepCopy(@Nullable final CustomerDeletedMes instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setEmail(template.getEmail()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageBuilder.java index 772a082a3ce..f421b245fb1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageBuilder.java @@ -53,6 +53,9 @@ public class CustomerDeletedMessageBuilder implements BuilderUnique identifier of the Message. Can be used to track which Messages have been processed.

    * @param id value to be set @@ -253,6 +256,17 @@ public CustomerDeletedMessageBuilder resourceUserProvidedIdentifiers( return this; } + /** + *

    The email address of the Customer that was deleted.

    + * @param email value to be set + * @return Builder + */ + + public CustomerDeletedMessageBuilder email(@Nullable final String email) { + this.email = email; + return this; + } + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @return id @@ -346,6 +360,16 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU return this.resourceUserProvidedIdentifiers; } + /** + *

    The email address of the Customer that was deleted.

    + * @return email + */ + + @Nullable + public String getEmail() { + return this.email; + } + /** * builds CustomerDeletedMessage with checking for non-null required values * @return CustomerDeletedMessage @@ -359,7 +383,7 @@ public CustomerDeletedMessage build() { Objects.requireNonNull(resource, CustomerDeletedMessage.class + ": resource is missing"); Objects.requireNonNull(resourceVersion, CustomerDeletedMessage.class + ": resourceVersion is missing"); return new CustomerDeletedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, email); } /** @@ -368,7 +392,7 @@ public CustomerDeletedMessage build() { */ public CustomerDeletedMessage buildUnchecked() { return new CustomerDeletedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, email); } /** @@ -396,6 +420,7 @@ public static CustomerDeletedMessageBuilder of(final CustomerDeletedMessage temp builder.resource = template.getResource(); builder.resourceVersion = template.getResourceVersion(); builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.email = template.getEmail(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageImpl.java index 15b39cb69f4..d9ecfe52e59 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageImpl.java @@ -44,6 +44,8 @@ public class CustomerDeletedMessageImpl implements CustomerDeletedMessage, Model private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + private String email; + /** * create instance with all properties */ @@ -56,7 +58,8 @@ public class CustomerDeletedMessageImpl implements CustomerDeletedMessage, Model @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("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, + @JsonProperty("email") final String email) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -67,6 +70,7 @@ public class CustomerDeletedMessageImpl implements CustomerDeletedMessage, Model this.resource = resource; this.resourceVersion = resourceVersion; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.email = email; this.type = CUSTOMER_DELETED; } @@ -165,6 +169,14 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU return this.resourceUserProvidedIdentifiers; } + /** + *

    The email address of the Customer that was deleted.

    + */ + + public String getEmail() { + return this.email; + } + public void setId(final String id) { this.id = id; } @@ -206,6 +218,10 @@ public void setResourceUserProvidedIdentifiers( this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; } + public void setEmail(final String email) { + this.email = email; + } + @Override public boolean equals(Object o) { if (this == o) @@ -227,6 +243,7 @@ public boolean equals(Object o) { .append(resourceVersion, that.resourceVersion) .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(email, that.email) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -238,6 +255,7 @@ public boolean equals(Object o) { .append(resourceVersion, that.resourceVersion) .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(email, that.email) .isEquals(); } @@ -254,6 +272,7 @@ public int hashCode() { .append(resourceVersion) .append(type) .append(resourceUserProvidedIdentifiers) + .append(email) .toHashCode(); } @@ -270,6 +289,7 @@ public String toString() { .append("resourceVersion", resourceVersion) .append("type", type) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("email", email) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayload.java index 5d9318b9024..91f9366e971 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayload.java @@ -34,6 +34,21 @@ public interface CustomerDeletedMessagePayload extends MessagePayload { */ String CUSTOMER_DELETED = "CustomerDeleted"; + /** + *

    The email address of the Customer that was deleted.

    + * @return email + */ + + @JsonProperty("email") + public String getEmail(); + + /** + *

    The email address of the Customer that was deleted.

    + * @param email value to be set + */ + + public void setEmail(final String email); + /** * factory method * @return instance of CustomerDeletedMessagePayload @@ -49,6 +64,7 @@ public static CustomerDeletedMessagePayload of() { */ public static CustomerDeletedMessagePayload of(final CustomerDeletedMessagePayload template) { CustomerDeletedMessagePayloadImpl instance = new CustomerDeletedMessagePayloadImpl(); + instance.setEmail(template.getEmail()); return instance; } @@ -65,6 +81,7 @@ public static CustomerDeletedMessagePayload deepCopy(@Nullable final CustomerDel return null; } CustomerDeletedMessagePayloadImpl instance = new CustomerDeletedMessagePayloadImpl(); + instance.setEmail(template.getEmail()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadBuilder.java index b63f1ca7c0e..69781a618d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadBuilder.java @@ -3,6 +3,8 @@ import java.util.*; +import javax.annotation.Nullable; + import io.vrap.rmf.base.client.Builder; import io.vrap.rmf.base.client.utils.Generated; @@ -20,12 +22,36 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerDeletedMessagePayloadBuilder implements Builder { + @Nullable + private String email; + + /** + *

    The email address of the Customer that was deleted.

    + * @param email value to be set + * @return Builder + */ + + public CustomerDeletedMessagePayloadBuilder email(@Nullable final String email) { + this.email = email; + return this; + } + + /** + *

    The email address of the Customer that was deleted.

    + * @return email + */ + + @Nullable + public String getEmail() { + return this.email; + } + /** * builds CustomerDeletedMessagePayload with checking for non-null required values * @return CustomerDeletedMessagePayload */ public CustomerDeletedMessagePayload build() { - return new CustomerDeletedMessagePayloadImpl(); + return new CustomerDeletedMessagePayloadImpl(email); } /** @@ -33,7 +59,7 @@ public CustomerDeletedMessagePayload build() { * @return CustomerDeletedMessagePayload */ public CustomerDeletedMessagePayload buildUnchecked() { - return new CustomerDeletedMessagePayloadImpl(); + return new CustomerDeletedMessagePayloadImpl(email); } /** @@ -51,6 +77,7 @@ public static CustomerDeletedMessagePayloadBuilder of() { */ public static CustomerDeletedMessagePayloadBuilder of(final CustomerDeletedMessagePayload template) { CustomerDeletedMessagePayloadBuilder builder = new CustomerDeletedMessagePayloadBuilder(); + builder.email = template.getEmail(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadImpl.java index 4644a761a88..273c17262e5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadImpl.java @@ -5,6 +5,7 @@ import java.util.*; 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; @@ -23,10 +24,20 @@ public class CustomerDeletedMessagePayloadImpl implements CustomerDeletedMessage private String type; + private String email; + /** * create instance with all properties */ @JsonCreator + CustomerDeletedMessagePayloadImpl(@JsonProperty("email") final String email) { + this.email = email; + this.type = CUSTOMER_DELETED; + } + + /** + * create empty instance + */ public CustomerDeletedMessagePayloadImpl() { this.type = CUSTOMER_DELETED; } @@ -39,6 +50,18 @@ public String getType() { return this.type; } + /** + *

    The email address of the Customer that was deleted.

    + */ + + public String getEmail() { + return this.email; + } + + public void setEmail(final String email) { + this.email = email; + } + @Override public boolean equals(Object o) { if (this == o) @@ -49,17 +72,23 @@ public boolean equals(Object o) { CustomerDeletedMessagePayloadImpl that = (CustomerDeletedMessagePayloadImpl) o; - return new EqualsBuilder().append(type, that.type).append(type, that.type).isEquals(); + return new EqualsBuilder().append(type, that.type) + .append(email, that.email) + .append(type, that.type) + .append(email, that.email) + .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).toHashCode(); + return new HashCodeBuilder(17, 37).append(type).append(email).toHashCode(); } @Override public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type).build(); + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("email", email) + .build(); } @Override diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessage.java index ecabd76d8d3..0efff8c7ed4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessage.java @@ -30,6 +30,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .email("{email}") + * .oldEmail("{oldEmail}") * .build() * *
    @@ -52,6 +53,14 @@ public interface CustomerEmailChangedMessage extends Message { @JsonProperty("email") public String getEmail(); + /** + *

    The email that was set before the Change Email update action.

    + * @return oldEmail + */ + @NotNull + @JsonProperty("oldEmail") + public String getOldEmail(); + /** *

    The email that was set during the Change Email update action.

    * @param email value to be set @@ -59,6 +68,13 @@ public interface CustomerEmailChangedMessage extends Message { public void setEmail(final String email); + /** + *

    The email that was set before the Change Email update action.

    + * @param oldEmail value to be set + */ + + public void setOldEmail(final String oldEmail); + /** * factory method * @return instance of CustomerEmailChangedMessage @@ -85,6 +101,7 @@ public static CustomerEmailChangedMessage of(final CustomerEmailChangedMessage t instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); instance.setEmail(template.getEmail()); + instance.setOldEmail(template.getOldEmail()); return instance; } @@ -114,6 +131,7 @@ public static CustomerEmailChangedMessage deepCopy(@Nullable final CustomerEmail instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers .deepCopy(template.getResourceUserProvidedIdentifiers())); instance.setEmail(template.getEmail()); + instance.setOldEmail(template.getOldEmail()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageBuilder.java index 1c8edd00d60..a158f9a71aa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageBuilder.java @@ -24,6 +24,7 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .email("{email}") + * .oldEmail("{oldEmail}") * .build() * *
    @@ -56,6 +57,8 @@ public class CustomerEmailChangedMessageBuilder implements BuilderUnique identifier of the Message. Can be used to track which Messages have been processed.

    * @param id value to be set @@ -267,6 +270,17 @@ public CustomerEmailChangedMessageBuilder email(final String email) { return this; } + /** + *

    The email that was set before the Change Email update action.

    + * @param oldEmail value to be set + * @return Builder + */ + + public CustomerEmailChangedMessageBuilder oldEmail(final String oldEmail) { + this.oldEmail = oldEmail; + return this; + } + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @return id @@ -369,6 +383,15 @@ public String getEmail() { return this.email; } + /** + *

    The email that was set before the Change Email update action.

    + * @return oldEmail + */ + + public String getOldEmail() { + return this.oldEmail; + } + /** * builds CustomerEmailChangedMessage with checking for non-null required values * @return CustomerEmailChangedMessage @@ -382,8 +405,9 @@ public CustomerEmailChangedMessage build() { Objects.requireNonNull(resource, CustomerEmailChangedMessage.class + ": resource is missing"); Objects.requireNonNull(resourceVersion, CustomerEmailChangedMessage.class + ": resourceVersion is missing"); Objects.requireNonNull(email, CustomerEmailChangedMessage.class + ": email is missing"); + Objects.requireNonNull(oldEmail, CustomerEmailChangedMessage.class + ": oldEmail is missing"); return new CustomerEmailChangedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, email); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, email, oldEmail); } /** @@ -392,7 +416,7 @@ public CustomerEmailChangedMessage build() { */ public CustomerEmailChangedMessage buildUnchecked() { return new CustomerEmailChangedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, email); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, email, oldEmail); } /** @@ -421,6 +445,7 @@ public static CustomerEmailChangedMessageBuilder of(final CustomerEmailChangedMe builder.resourceVersion = template.getResourceVersion(); builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); builder.email = template.getEmail(); + builder.oldEmail = template.getOldEmail(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageImpl.java index 7b53962e3d6..db2cd17c00c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageImpl.java @@ -46,6 +46,8 @@ public class CustomerEmailChangedMessageImpl implements CustomerEmailChangedMess private String email; + private String oldEmail; + /** * create instance with all properties */ @@ -59,7 +61,7 @@ public class CustomerEmailChangedMessageImpl implements CustomerEmailChangedMess @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("email") final String email) { + @JsonProperty("email") final String email, @JsonProperty("oldEmail") final String oldEmail) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -71,6 +73,7 @@ public class CustomerEmailChangedMessageImpl implements CustomerEmailChangedMess this.resourceVersion = resourceVersion; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; this.email = email; + this.oldEmail = oldEmail; this.type = CUSTOMER_EMAIL_CHANGED; } @@ -177,6 +180,14 @@ public String getEmail() { return this.email; } + /** + *

    The email that was set before the Change Email update action.

    + */ + + public String getOldEmail() { + return this.oldEmail; + } + public void setId(final String id) { this.id = id; } @@ -222,6 +233,10 @@ public void setEmail(final String email) { this.email = email; } + public void setOldEmail(final String oldEmail) { + this.oldEmail = oldEmail; + } + @Override public boolean equals(Object o) { if (this == o) @@ -244,6 +259,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(email, that.email) + .append(oldEmail, that.oldEmail) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -256,6 +272,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(email, that.email) + .append(oldEmail, that.oldEmail) .isEquals(); } @@ -273,6 +290,7 @@ public int hashCode() { .append(type) .append(resourceUserProvidedIdentifiers) .append(email) + .append(oldEmail) .toHashCode(); } @@ -290,6 +308,7 @@ public String toString() { .append("type", type) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("email", email) + .append("oldEmail", oldEmail) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayload.java index 1f7e4dfcf10..5da11f73fde 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayload.java @@ -23,6 +23,7 @@ *
    
      *     CustomerEmailChangedMessagePayload customerEmailChangedMessagePayload = CustomerEmailChangedMessagePayload.builder()
      *             .email("{email}")
    + *             .oldEmail("{oldEmail}")
      *             .build()
      * 
    *
    @@ -45,6 +46,14 @@ public interface CustomerEmailChangedMessagePayload extends MessagePayload { @JsonProperty("email") public String getEmail(); + /** + *

    The email that was set before the Change Email update action.

    + * @return oldEmail + */ + @NotNull + @JsonProperty("oldEmail") + public String getOldEmail(); + /** *

    The email that was set during the Change Email update action.

    * @param email value to be set @@ -52,6 +61,13 @@ public interface CustomerEmailChangedMessagePayload extends MessagePayload { public void setEmail(final String email); + /** + *

    The email that was set before the Change Email update action.

    + * @param oldEmail value to be set + */ + + public void setOldEmail(final String oldEmail); + /** * factory method * @return instance of CustomerEmailChangedMessagePayload @@ -68,6 +84,7 @@ public static CustomerEmailChangedMessagePayload of() { public static CustomerEmailChangedMessagePayload of(final CustomerEmailChangedMessagePayload template) { CustomerEmailChangedMessagePayloadImpl instance = new CustomerEmailChangedMessagePayloadImpl(); instance.setEmail(template.getEmail()); + instance.setOldEmail(template.getOldEmail()); return instance; } @@ -86,6 +103,7 @@ public static CustomerEmailChangedMessagePayload deepCopy( } CustomerEmailChangedMessagePayloadImpl instance = new CustomerEmailChangedMessagePayloadImpl(); instance.setEmail(template.getEmail()); + instance.setOldEmail(template.getOldEmail()); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadBuilder.java index b01f09b3fe6..82cf10322ea 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadBuilder.java @@ -14,6 +14,7 @@ *
    
      *     CustomerEmailChangedMessagePayload customerEmailChangedMessagePayload = CustomerEmailChangedMessagePayload.builder()
      *             .email("{email}")
    + *             .oldEmail("{oldEmail}")
      *             .build()
      * 
    *
    @@ -23,6 +24,8 @@ public class CustomerEmailChangedMessagePayloadBuilder implements BuilderThe email that was set during the Change Email update action.

    * @param email value to be set @@ -34,6 +37,17 @@ public CustomerEmailChangedMessagePayloadBuilder email(final String email) { return this; } + /** + *

    The email that was set before the Change Email update action.

    + * @param oldEmail value to be set + * @return Builder + */ + + public CustomerEmailChangedMessagePayloadBuilder oldEmail(final String oldEmail) { + this.oldEmail = oldEmail; + return this; + } + /** *

    The email that was set during the Change Email update action.

    * @return email @@ -43,13 +57,23 @@ public String getEmail() { return this.email; } + /** + *

    The email that was set before the Change Email update action.

    + * @return oldEmail + */ + + public String getOldEmail() { + return this.oldEmail; + } + /** * builds CustomerEmailChangedMessagePayload with checking for non-null required values * @return CustomerEmailChangedMessagePayload */ public CustomerEmailChangedMessagePayload build() { Objects.requireNonNull(email, CustomerEmailChangedMessagePayload.class + ": email is missing"); - return new CustomerEmailChangedMessagePayloadImpl(email); + Objects.requireNonNull(oldEmail, CustomerEmailChangedMessagePayload.class + ": oldEmail is missing"); + return new CustomerEmailChangedMessagePayloadImpl(email, oldEmail); } /** @@ -57,7 +81,7 @@ public CustomerEmailChangedMessagePayload build() { * @return CustomerEmailChangedMessagePayload */ public CustomerEmailChangedMessagePayload buildUnchecked() { - return new CustomerEmailChangedMessagePayloadImpl(email); + return new CustomerEmailChangedMessagePayloadImpl(email, oldEmail); } /** @@ -76,6 +100,7 @@ public static CustomerEmailChangedMessagePayloadBuilder of() { public static CustomerEmailChangedMessagePayloadBuilder of(final CustomerEmailChangedMessagePayload template) { CustomerEmailChangedMessagePayloadBuilder builder = new CustomerEmailChangedMessagePayloadBuilder(); builder.email = template.getEmail(); + builder.oldEmail = template.getOldEmail(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadImpl.java index 1e7d1e2a35a..22d9373d664 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadImpl.java @@ -26,12 +26,16 @@ public class CustomerEmailChangedMessagePayloadImpl implements CustomerEmailChan private String email; + private String oldEmail; + /** * create instance with all properties */ @JsonCreator - CustomerEmailChangedMessagePayloadImpl(@JsonProperty("email") final String email) { + CustomerEmailChangedMessagePayloadImpl(@JsonProperty("email") final String email, + @JsonProperty("oldEmail") final String oldEmail) { this.email = email; + this.oldEmail = oldEmail; this.type = CUSTOMER_EMAIL_CHANGED; } @@ -58,10 +62,22 @@ public String getEmail() { return this.email; } + /** + *

    The email that was set before the Change Email update action.

    + */ + + public String getOldEmail() { + return this.oldEmail; + } + public void setEmail(final String email) { this.email = email; } + public void setOldEmail(final String oldEmail) { + this.oldEmail = oldEmail; + } + @Override public boolean equals(Object o) { if (this == o) @@ -74,20 +90,23 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(email, that.email) + .append(oldEmail, that.oldEmail) .append(type, that.type) .append(email, that.email) + .append(oldEmail, that.oldEmail) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(email).toHashCode(); + return new HashCodeBuilder(17, 37).append(type).append(email).append(oldEmail).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("email", email) + .append("oldEmail", oldEmail) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessage.java new file mode 100644 index 00000000000..bb1e5b491b5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessage.java @@ -0,0 +1,156 @@ + +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 Set External ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerExternalIdSetMessage customerExternalIdSetMessage = CustomerExternalIdSetMessage.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()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerExternalIdSet") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerExternalIdSetMessageImpl.class) +public interface CustomerExternalIdSetMessage extends Message { + + /** + * discriminator value for CustomerExternalIdSetMessage + */ + String CUSTOMER_EXTERNAL_ID_SET = "CustomerExternalIdSet"; + + /** + *

    The identifier that was set.

    + * @return externalId + */ + + @JsonProperty("externalId") + public String getExternalId(); + + /** + *

    The identifier that was set.

    + * @param externalId value to be set + */ + + public void setExternalId(final String externalId); + + /** + * factory method + * @return instance of CustomerExternalIdSetMessage + */ + public static CustomerExternalIdSetMessage of() { + return new CustomerExternalIdSetMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerExternalIdSetMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerExternalIdSetMessage of(final CustomerExternalIdSetMessage template) { + CustomerExternalIdSetMessageImpl instance = new CustomerExternalIdSetMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setExternalId(template.getExternalId()); + return instance; + } + + public CustomerExternalIdSetMessage copyDeep(); + + /** + * factory method to create a deep copy of CustomerExternalIdSetMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerExternalIdSetMessage deepCopy(@Nullable final CustomerExternalIdSetMessage template) { + if (template == null) { + return null; + } + CustomerExternalIdSetMessageImpl instance = new CustomerExternalIdSetMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setExternalId(template.getExternalId()); + return instance; + } + + /** + * builder factory method for CustomerExternalIdSetMessage + * @return builder + */ + public static CustomerExternalIdSetMessageBuilder builder() { + return CustomerExternalIdSetMessageBuilder.of(); + } + + /** + * create builder for CustomerExternalIdSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerExternalIdSetMessageBuilder builder(final CustomerExternalIdSetMessage template) { + return CustomerExternalIdSetMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerExternalIdSetMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessageBuilder.java new file mode 100644 index 00000000000..af7f7f2408a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessageBuilder.java @@ -0,0 +1,427 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerExternalIdSetMessageBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerExternalIdSetMessage customerExternalIdSetMessage = CustomerExternalIdSetMessage.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()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerExternalIdSetMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + @Nullable + private String externalId; + + /** + *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    + * @param id value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

    Version of a resource. In case of Messages, this is always 1.

    + * @param version value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @param createdAt value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

    Value of createdAt.

    + * @param lastModifiedAt value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder 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 CustomerExternalIdSetMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param createdBy value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder 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.

    + * @param sequenceNumber value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

    Reference to the resource on which the change or action was performed.

    + * @param resource value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder 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 CustomerExternalIdSetMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Version of the resource on which the change or action was performed.

    + * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder 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.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

    The identifier that was set.

    + * @param externalId value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessageBuilder externalId(@Nullable final String externalId) { + this.externalId = externalId; + return this; + } + + /** + *

    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.

    + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The identifier that was set.

    + * @return externalId + */ + + @Nullable + public String getExternalId() { + return this.externalId; + } + + /** + * builds CustomerExternalIdSetMessage with checking for non-null required values + * @return CustomerExternalIdSetMessage + */ + public CustomerExternalIdSetMessage build() { + Objects.requireNonNull(id, CustomerExternalIdSetMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerExternalIdSetMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerExternalIdSetMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, CustomerExternalIdSetMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, CustomerExternalIdSetMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerExternalIdSetMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, CustomerExternalIdSetMessage.class + ": resourceVersion is missing"); + return new CustomerExternalIdSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, externalId); + } + + /** + * builds CustomerExternalIdSetMessage without checking for non-null required values + * @return CustomerExternalIdSetMessage + */ + public CustomerExternalIdSetMessage buildUnchecked() { + return new CustomerExternalIdSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, externalId); + } + + /** + * factory method for an instance of CustomerExternalIdSetMessageBuilder + * @return builder + */ + public static CustomerExternalIdSetMessageBuilder of() { + return new CustomerExternalIdSetMessageBuilder(); + } + + /** + * create builder for CustomerExternalIdSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerExternalIdSetMessageBuilder of(final CustomerExternalIdSetMessage template) { + CustomerExternalIdSetMessageBuilder builder = new CustomerExternalIdSetMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.externalId = template.getExternalId(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessageImpl.java new file mode 100644 index 00000000000..177f2ece177 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessageImpl.java @@ -0,0 +1,300 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Set External ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerExternalIdSetMessageImpl implements CustomerExternalIdSetMessage, 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 externalId; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerExternalIdSetMessageImpl(@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("externalId") final String externalId) { + 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.externalId = externalId; + this.type = CUSTOMER_EXTERNAL_ID_SET; + } + + /** + * create empty instance + */ + public CustomerExternalIdSetMessageImpl() { + this.type = CUSTOMER_EXTERNAL_ID_SET; + } + + /** + *

    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.

    + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The identifier that was set.

    + */ + + public String getExternalId() { + return this.externalId; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setExternalId(final String externalId) { + this.externalId = externalId; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerExternalIdSetMessageImpl that = (CustomerExternalIdSetMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(externalId, that.externalId) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(externalId, that.externalId) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(externalId) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("externalId", externalId) + .build(); + } + + @Override + public CustomerExternalIdSetMessage copyDeep() { + return CustomerExternalIdSetMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayload.java new file mode 100644 index 00000000000..166e097a244 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayload.java @@ -0,0 +1,129 @@ + +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 Set External ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerExternalIdSetMessagePayload customerExternalIdSetMessagePayload = CustomerExternalIdSetMessagePayload.builder()
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerExternalIdSet") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerExternalIdSetMessagePayloadImpl.class) +public interface CustomerExternalIdSetMessagePayload extends MessagePayload { + + /** + * discriminator value for CustomerExternalIdSetMessagePayload + */ + String CUSTOMER_EXTERNAL_ID_SET = "CustomerExternalIdSet"; + + /** + *

    The identifier that was set.

    + * @return externalId + */ + + @JsonProperty("externalId") + public String getExternalId(); + + /** + *

    The identifier that was set.

    + * @param externalId value to be set + */ + + public void setExternalId(final String externalId); + + /** + * factory method + * @return instance of CustomerExternalIdSetMessagePayload + */ + public static CustomerExternalIdSetMessagePayload of() { + return new CustomerExternalIdSetMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerExternalIdSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerExternalIdSetMessagePayload of(final CustomerExternalIdSetMessagePayload template) { + CustomerExternalIdSetMessagePayloadImpl instance = new CustomerExternalIdSetMessagePayloadImpl(); + instance.setExternalId(template.getExternalId()); + return instance; + } + + public CustomerExternalIdSetMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of CustomerExternalIdSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerExternalIdSetMessagePayload deepCopy( + @Nullable final CustomerExternalIdSetMessagePayload template) { + if (template == null) { + return null; + } + CustomerExternalIdSetMessagePayloadImpl instance = new CustomerExternalIdSetMessagePayloadImpl(); + instance.setExternalId(template.getExternalId()); + return instance; + } + + /** + * builder factory method for CustomerExternalIdSetMessagePayload + * @return builder + */ + public static CustomerExternalIdSetMessagePayloadBuilder builder() { + return CustomerExternalIdSetMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerExternalIdSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerExternalIdSetMessagePayloadBuilder builder( + final CustomerExternalIdSetMessagePayload template) { + return CustomerExternalIdSetMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerExternalIdSetMessagePayload(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayloadBuilder.java new file mode 100644 index 00000000000..1c4e3839036 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayloadBuilder.java @@ -0,0 +1,84 @@ + +package com.commercetools.api.models.message; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerExternalIdSetMessagePayloadBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerExternalIdSetMessagePayload customerExternalIdSetMessagePayload = CustomerExternalIdSetMessagePayload.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerExternalIdSetMessagePayloadBuilder implements Builder { + + @Nullable + private String externalId; + + /** + *

    The identifier that was set.

    + * @param externalId value to be set + * @return Builder + */ + + public CustomerExternalIdSetMessagePayloadBuilder externalId(@Nullable final String externalId) { + this.externalId = externalId; + return this; + } + + /** + *

    The identifier that was set.

    + * @return externalId + */ + + @Nullable + public String getExternalId() { + return this.externalId; + } + + /** + * builds CustomerExternalIdSetMessagePayload with checking for non-null required values + * @return CustomerExternalIdSetMessagePayload + */ + public CustomerExternalIdSetMessagePayload build() { + return new CustomerExternalIdSetMessagePayloadImpl(externalId); + } + + /** + * builds CustomerExternalIdSetMessagePayload without checking for non-null required values + * @return CustomerExternalIdSetMessagePayload + */ + public CustomerExternalIdSetMessagePayload buildUnchecked() { + return new CustomerExternalIdSetMessagePayloadImpl(externalId); + } + + /** + * factory method for an instance of CustomerExternalIdSetMessagePayloadBuilder + * @return builder + */ + public static CustomerExternalIdSetMessagePayloadBuilder of() { + return new CustomerExternalIdSetMessagePayloadBuilder(); + } + + /** + * create builder for CustomerExternalIdSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerExternalIdSetMessagePayloadBuilder of(final CustomerExternalIdSetMessagePayload template) { + CustomerExternalIdSetMessagePayloadBuilder builder = new CustomerExternalIdSetMessagePayloadBuilder(); + builder.externalId = template.getExternalId(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayloadImpl.java new file mode 100644 index 00000000000..bef955e1354 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayloadImpl.java @@ -0,0 +1,98 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Set External ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerExternalIdSetMessagePayloadImpl implements CustomerExternalIdSetMessagePayload, ModelBase { + + private String type; + + private String externalId; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerExternalIdSetMessagePayloadImpl(@JsonProperty("externalId") final String externalId) { + this.externalId = externalId; + this.type = CUSTOMER_EXTERNAL_ID_SET; + } + + /** + * create empty instance + */ + public CustomerExternalIdSetMessagePayloadImpl() { + this.type = CUSTOMER_EXTERNAL_ID_SET; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    The identifier that was set.

    + */ + + public String getExternalId() { + return this.externalId; + } + + public void setExternalId(final String externalId) { + this.externalId = externalId; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerExternalIdSetMessagePayloadImpl that = (CustomerExternalIdSetMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(externalId, that.externalId) + .append(type, that.type) + .append(externalId, that.externalId) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(externalId).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("externalId", externalId) + .build(); + } + + @Override + public CustomerExternalIdSetMessagePayload copyDeep() { + return CustomerExternalIdSetMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessage.java index 62234f24195..accea78faa1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessage.java @@ -15,6 +15,7 @@ import io.vrap.rmf.base.client.utils.Generated; import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; /** *

    Generated after a successful Set CustomerGroupAssignments update action.

    @@ -31,6 +32,8 @@ * .sequenceNumber(0.3) * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) + * .plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder) + * .plusOldCustomerGroupAssignments(oldCustomerGroupAssignmentsBuilder -> oldCustomerGroupAssignmentsBuilder) * .build() * *
    @@ -49,10 +52,20 @@ public interface CustomerGroupAssignmentsSetMessage extends Message { *

    Customer Groups assigned to the Customer during the Set CustomerGroupAssignments update action.

    * @return customerGroupAssignments */ + @NotNull @Valid @JsonProperty("customerGroupAssignments") public List getCustomerGroupAssignments(); + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @return oldCustomerGroupAssignments + */ + @NotNull + @Valid + @JsonProperty("oldCustomerGroupAssignments") + public List getOldCustomerGroupAssignments(); + /** *

    Customer Groups assigned to the Customer during the Set CustomerGroupAssignments update action.

    * @param customerGroupAssignments values to be set @@ -68,6 +81,21 @@ public interface CustomerGroupAssignmentsSetMessage extends Message { public void setCustomerGroupAssignments(final List customerGroupAssignments); + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments values to be set + */ + + @JsonIgnore + public void setOldCustomerGroupAssignments(final CustomerGroupAssignment... oldCustomerGroupAssignments); + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments values to be set + */ + + public void setOldCustomerGroupAssignments(final List oldCustomerGroupAssignments); + /** * factory method * @return instance of CustomerGroupAssignmentsSetMessage @@ -94,6 +122,7 @@ public static CustomerGroupAssignmentsSetMessage of(final CustomerGroupAssignmen instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); + instance.setOldCustomerGroupAssignments(template.getOldCustomerGroupAssignments()); return instance; } @@ -128,6 +157,11 @@ public static CustomerGroupAssignmentsSetMessage deepCopy( .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) .collect(Collectors.toList())) .orElse(null)); + instance.setOldCustomerGroupAssignments(Optional.ofNullable(template.getOldCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageBuilder.java index 8017d16f0f4..866b3eae743 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageBuilder.java @@ -23,6 +23,8 @@ * .sequenceNumber(0.3) * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) + * .plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder) + * .plusOldCustomerGroupAssignments(oldCustomerGroupAssignmentsBuilder -> oldCustomerGroupAssignmentsBuilder) * .build() * *
    @@ -53,9 +55,10 @@ public class CustomerGroupAssignmentsSetMessageBuilder implements Builder customerGroupAssignments; + private java.util.List oldCustomerGroupAssignments; + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @param id value to be set @@ -264,7 +267,7 @@ public CustomerGroupAssignmentsSetMessageBuilder resourceUserProvidedIdentifiers */ public CustomerGroupAssignmentsSetMessageBuilder customerGroupAssignments( - @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); return this; } @@ -276,7 +279,7 @@ public CustomerGroupAssignmentsSetMessageBuilder customerGroupAssignments( */ public CustomerGroupAssignmentsSetMessageBuilder customerGroupAssignments( - @Nullable final java.util.List customerGroupAssignments) { + final java.util.List customerGroupAssignments) { this.customerGroupAssignments = customerGroupAssignments; return this; } @@ -288,7 +291,7 @@ public CustomerGroupAssignmentsSetMessageBuilder customerGroupAssignments( */ public CustomerGroupAssignmentsSetMessageBuilder plusCustomerGroupAssignments( - @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { if (this.customerGroupAssignments == null) { this.customerGroupAssignments = new ArrayList<>(); } @@ -350,6 +353,99 @@ public CustomerGroupAssignmentsSetMessageBuilder setCustomerGroupAssignments( builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); } + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder oldCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = new ArrayList<>(Arrays.asList(oldCustomerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder oldCustomerGroupAssignments( + final java.util.List oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder plusOldCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + if (this.oldCustomerGroupAssignments == null) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + } + this.oldCustomerGroupAssignments.addAll(Arrays.asList(oldCustomerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder plusOldCustomerGroupAssignments( + Function builder) { + if (this.oldCustomerGroupAssignments == null) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + } + this.oldCustomerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder withOldCustomerGroupAssignments( + Function builder) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + this.oldCustomerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder addOldCustomerGroupAssignments( + Function builder) { + return plusOldCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessageBuilder setOldCustomerGroupAssignments( + Function builder) { + return oldCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + /** *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    * @return id @@ -448,11 +544,19 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU * @return customerGroupAssignments */ - @Nullable public java.util.List getCustomerGroupAssignments() { return this.customerGroupAssignments; } + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @return oldCustomerGroupAssignments + */ + + public java.util.List getOldCustomerGroupAssignments() { + return this.oldCustomerGroupAssignments; + } + /** * builds CustomerGroupAssignmentsSetMessage with checking for non-null required values * @return CustomerGroupAssignmentsSetMessage @@ -468,9 +572,13 @@ public CustomerGroupAssignmentsSetMessage build() { Objects.requireNonNull(resource, CustomerGroupAssignmentsSetMessage.class + ": resource is missing"); Objects.requireNonNull(resourceVersion, CustomerGroupAssignmentsSetMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(customerGroupAssignments, + CustomerGroupAssignmentsSetMessage.class + ": customerGroupAssignments is missing"); + Objects.requireNonNull(oldCustomerGroupAssignments, + CustomerGroupAssignmentsSetMessage.class + ": oldCustomerGroupAssignments is missing"); return new CustomerGroupAssignmentsSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, - customerGroupAssignments); + customerGroupAssignments, oldCustomerGroupAssignments); } /** @@ -480,7 +588,7 @@ public CustomerGroupAssignmentsSetMessage build() { public CustomerGroupAssignmentsSetMessage buildUnchecked() { return new CustomerGroupAssignmentsSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, - customerGroupAssignments); + customerGroupAssignments, oldCustomerGroupAssignments); } /** @@ -509,6 +617,7 @@ public static CustomerGroupAssignmentsSetMessageBuilder of(final CustomerGroupAs builder.resourceVersion = template.getResourceVersion(); builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); builder.customerGroupAssignments = template.getCustomerGroupAssignments(); + builder.oldCustomerGroupAssignments = template.getOldCustomerGroupAssignments(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageImpl.java index e3bbe4fd482..d64d75f4854 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageImpl.java @@ -46,6 +46,8 @@ public class CustomerGroupAssignmentsSetMessageImpl implements CustomerGroupAssi private java.util.List customerGroupAssignments; + private java.util.List oldCustomerGroupAssignments; + /** * create instance with all properties */ @@ -60,7 +62,8 @@ public class CustomerGroupAssignmentsSetMessageImpl implements CustomerGroupAssi @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("customerGroupAssignments") final java.util.List customerGroupAssignments) { + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments, + @JsonProperty("oldCustomerGroupAssignments") final java.util.List oldCustomerGroupAssignments) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -72,6 +75,7 @@ public class CustomerGroupAssignmentsSetMessageImpl implements CustomerGroupAssi this.resourceVersion = resourceVersion; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; this.customerGroupAssignments = customerGroupAssignments; + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; this.type = CUSTOMER_GROUP_ASSIGNMENTS_SET; } @@ -178,6 +182,14 @@ public java.util.ListCustomer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + */ + + public java.util.List getOldCustomerGroupAssignments() { + return this.oldCustomerGroupAssignments; + } + public void setId(final String id) { this.id = id; } @@ -229,6 +241,16 @@ public void setCustomerGroupAssignments( this.customerGroupAssignments = customerGroupAssignments; } + public void setOldCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = new ArrayList<>(Arrays.asList(oldCustomerGroupAssignments)); + } + + public void setOldCustomerGroupAssignments( + final java.util.List oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + } + @Override public boolean equals(Object o) { if (this == o) @@ -251,6 +273,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(customerGroupAssignments, that.customerGroupAssignments) + .append(oldCustomerGroupAssignments, that.oldCustomerGroupAssignments) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -263,6 +286,7 @@ public boolean equals(Object o) { .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(customerGroupAssignments, that.customerGroupAssignments) + .append(oldCustomerGroupAssignments, that.oldCustomerGroupAssignments) .isEquals(); } @@ -280,6 +304,7 @@ public int hashCode() { .append(type) .append(resourceUserProvidedIdentifiers) .append(customerGroupAssignments) + .append(oldCustomerGroupAssignments) .toHashCode(); } @@ -297,6 +322,7 @@ public String toString() { .append("type", type) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("customerGroupAssignments", customerGroupAssignments) + .append("oldCustomerGroupAssignments", oldCustomerGroupAssignments) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayload.java index e437d0391fd..9fef8436e6d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayload.java @@ -15,6 +15,7 @@ import io.vrap.rmf.base.client.utils.Generated; import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; /** *

    Generated after a successful Set CustomerGroupAssignments update action.

    @@ -24,6 +25,8 @@ *
    *
    
      *     CustomerGroupAssignmentsSetMessagePayload customerGroupAssignmentsSetMessagePayload = CustomerGroupAssignmentsSetMessagePayload.builder()
    + *             .plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder)
    + *             .plusOldCustomerGroupAssignments(oldCustomerGroupAssignmentsBuilder -> oldCustomerGroupAssignmentsBuilder)
      *             .build()
      * 
    *
    @@ -42,10 +45,20 @@ public interface CustomerGroupAssignmentsSetMessagePayload extends MessagePayloa *

    Customer Groups assigned to the Customer during the Set CustomerGroupAssignments update action.

    * @return customerGroupAssignments */ + @NotNull @Valid @JsonProperty("customerGroupAssignments") public List getCustomerGroupAssignments(); + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @return oldCustomerGroupAssignments + */ + @NotNull + @Valid + @JsonProperty("oldCustomerGroupAssignments") + public List getOldCustomerGroupAssignments(); + /** *

    Customer Groups assigned to the Customer during the Set CustomerGroupAssignments update action.

    * @param customerGroupAssignments values to be set @@ -61,6 +74,21 @@ public interface CustomerGroupAssignmentsSetMessagePayload extends MessagePayloa public void setCustomerGroupAssignments(final List customerGroupAssignments); + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments values to be set + */ + + @JsonIgnore + public void setOldCustomerGroupAssignments(final CustomerGroupAssignment... oldCustomerGroupAssignments); + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments values to be set + */ + + public void setOldCustomerGroupAssignments(final List oldCustomerGroupAssignments); + /** * factory method * @return instance of CustomerGroupAssignmentsSetMessagePayload @@ -78,6 +106,7 @@ public static CustomerGroupAssignmentsSetMessagePayload of( final CustomerGroupAssignmentsSetMessagePayload template) { CustomerGroupAssignmentsSetMessagePayloadImpl instance = new CustomerGroupAssignmentsSetMessagePayloadImpl(); instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments()); + instance.setOldCustomerGroupAssignments(template.getOldCustomerGroupAssignments()); return instance; } @@ -100,6 +129,11 @@ public static CustomerGroupAssignmentsSetMessagePayload deepCopy( .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) .collect(Collectors.toList())) .orElse(null)); + instance.setOldCustomerGroupAssignments(Optional.ofNullable(template.getOldCustomerGroupAssignments()) + .map(t -> t.stream() + .map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadBuilder.java index f20ed5945e6..b9e0f6a20b1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadBuilder.java @@ -4,8 +4,6 @@ import java.util.*; import java.util.function.Function; -import javax.annotation.Nullable; - import io.vrap.rmf.base.client.Builder; import io.vrap.rmf.base.client.utils.Generated; @@ -16,6 +14,8 @@ *
    *
    
      *     CustomerGroupAssignmentsSetMessagePayload customerGroupAssignmentsSetMessagePayload = CustomerGroupAssignmentsSetMessagePayload.builder()
    + *             .plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder)
    + *             .plusOldCustomerGroupAssignments(oldCustomerGroupAssignmentsBuilder -> oldCustomerGroupAssignmentsBuilder)
      *             .build()
      * 
    *
    @@ -24,9 +24,10 @@ public class CustomerGroupAssignmentsSetMessagePayloadBuilder implements Builder { - @Nullable private java.util.List customerGroupAssignments; + private java.util.List oldCustomerGroupAssignments; + /** *

    Customer Groups assigned to the Customer during the Set CustomerGroupAssignments update action.

    * @param customerGroupAssignments value to be set @@ -34,7 +35,7 @@ public class CustomerGroupAssignmentsSetMessagePayloadBuilder */ public CustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignments( - @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); return this; } @@ -46,7 +47,7 @@ public CustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignments */ public CustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignments( - @Nullable final java.util.List customerGroupAssignments) { + final java.util.List customerGroupAssignments) { this.customerGroupAssignments = customerGroupAssignments; return this; } @@ -58,7 +59,7 @@ public CustomerGroupAssignmentsSetMessagePayloadBuilder customerGroupAssignments */ public CustomerGroupAssignmentsSetMessagePayloadBuilder plusCustomerGroupAssignments( - @Nullable final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { + final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { if (this.customerGroupAssignments == null) { this.customerGroupAssignments = new ArrayList<>(); } @@ -120,22 +121,127 @@ public CustomerGroupAssignmentsSetMessagePayloadBuilder setCustomerGroupAssignme builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); } + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder oldCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = new ArrayList<>(Arrays.asList(oldCustomerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder oldCustomerGroupAssignments( + final java.util.List oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param oldCustomerGroupAssignments value to be set + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder plusOldCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + if (this.oldCustomerGroupAssignments == null) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + } + this.oldCustomerGroupAssignments.addAll(Arrays.asList(oldCustomerGroupAssignments)); + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder plusOldCustomerGroupAssignments( + Function builder) { + if (this.oldCustomerGroupAssignments == null) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + } + this.oldCustomerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder withOldCustomerGroupAssignments( + Function builder) { + this.oldCustomerGroupAssignments = new ArrayList<>(); + this.oldCustomerGroupAssignments + .add(builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of()).build()); + return this; + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder addOldCustomerGroupAssignments( + Function builder) { + return plusOldCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @param builder function to build the oldCustomerGroupAssignments value + * @return Builder + */ + + public CustomerGroupAssignmentsSetMessagePayloadBuilder setOldCustomerGroupAssignments( + Function builder) { + return oldCustomerGroupAssignments( + builder.apply(com.commercetools.api.models.customer.CustomerGroupAssignmentBuilder.of())); + } + /** *

    Customer Groups assigned to the Customer during the Set CustomerGroupAssignments update action.

    * @return customerGroupAssignments */ - @Nullable public java.util.List getCustomerGroupAssignments() { return this.customerGroupAssignments; } + /** + *

    Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + * @return oldCustomerGroupAssignments + */ + + public java.util.List getOldCustomerGroupAssignments() { + return this.oldCustomerGroupAssignments; + } + /** * builds CustomerGroupAssignmentsSetMessagePayload with checking for non-null required values * @return CustomerGroupAssignmentsSetMessagePayload */ public CustomerGroupAssignmentsSetMessagePayload build() { - return new CustomerGroupAssignmentsSetMessagePayloadImpl(customerGroupAssignments); + Objects.requireNonNull(customerGroupAssignments, + CustomerGroupAssignmentsSetMessagePayload.class + ": customerGroupAssignments is missing"); + Objects.requireNonNull(oldCustomerGroupAssignments, + CustomerGroupAssignmentsSetMessagePayload.class + ": oldCustomerGroupAssignments is missing"); + return new CustomerGroupAssignmentsSetMessagePayloadImpl(customerGroupAssignments, oldCustomerGroupAssignments); } /** @@ -143,7 +249,7 @@ public CustomerGroupAssignmentsSetMessagePayload build() { * @return CustomerGroupAssignmentsSetMessagePayload */ public CustomerGroupAssignmentsSetMessagePayload buildUnchecked() { - return new CustomerGroupAssignmentsSetMessagePayloadImpl(customerGroupAssignments); + return new CustomerGroupAssignmentsSetMessagePayloadImpl(customerGroupAssignments, oldCustomerGroupAssignments); } /** @@ -163,6 +269,7 @@ public static CustomerGroupAssignmentsSetMessagePayloadBuilder of( final CustomerGroupAssignmentsSetMessagePayload template) { CustomerGroupAssignmentsSetMessagePayloadBuilder builder = new CustomerGroupAssignmentsSetMessagePayloadBuilder(); builder.customerGroupAssignments = template.getCustomerGroupAssignments(); + builder.oldCustomerGroupAssignments = template.getOldCustomerGroupAssignments(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadImpl.java index 83ce623d1e7..bb2280498e2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadImpl.java @@ -27,13 +27,17 @@ public class CustomerGroupAssignmentsSetMessagePayloadImpl private java.util.List customerGroupAssignments; + private java.util.List oldCustomerGroupAssignments; + /** * create instance with all properties */ @JsonCreator CustomerGroupAssignmentsSetMessagePayloadImpl( - @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments) { + @JsonProperty("customerGroupAssignments") final java.util.List customerGroupAssignments, + @JsonProperty("oldCustomerGroupAssignments") final java.util.List oldCustomerGroupAssignments) { this.customerGroupAssignments = customerGroupAssignments; + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; this.type = CUSTOMER_GROUP_ASSIGNMENTS_SET; } @@ -60,6 +64,14 @@ public java.util.ListCustomer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.

    + */ + + public java.util.List getOldCustomerGroupAssignments() { + return this.oldCustomerGroupAssignments; + } + public void setCustomerGroupAssignments( final com.commercetools.api.models.customer.CustomerGroupAssignment... customerGroupAssignments) { this.customerGroupAssignments = new ArrayList<>(Arrays.asList(customerGroupAssignments)); @@ -70,6 +82,16 @@ public void setCustomerGroupAssignments( this.customerGroupAssignments = customerGroupAssignments; } + public void setOldCustomerGroupAssignments( + final com.commercetools.api.models.customer.CustomerGroupAssignment... oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = new ArrayList<>(Arrays.asList(oldCustomerGroupAssignments)); + } + + public void setOldCustomerGroupAssignments( + final java.util.List oldCustomerGroupAssignments) { + this.oldCustomerGroupAssignments = oldCustomerGroupAssignments; + } + @Override public boolean equals(Object o) { if (this == o) @@ -82,20 +104,26 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(customerGroupAssignments, that.customerGroupAssignments) + .append(oldCustomerGroupAssignments, that.oldCustomerGroupAssignments) .append(type, that.type) .append(customerGroupAssignments, that.customerGroupAssignments) + .append(oldCustomerGroupAssignments, that.oldCustomerGroupAssignments) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(customerGroupAssignments).toHashCode(); + return new HashCodeBuilder(17, 37).append(type) + .append(customerGroupAssignments) + .append(oldCustomerGroupAssignments) + .toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("customerGroupAssignments", customerGroupAssignments) + .append("oldCustomerGroupAssignments", oldCustomerGroupAssignments) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessage.java new file mode 100644 index 00000000000..55b9ad86828 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessage.java @@ -0,0 +1,164 @@ + +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.common.Address; +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 Add Shipping Address ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerShippingAddressAddedMessage customerShippingAddressAddedMessage = CustomerShippingAddressAddedMessage.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)
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerShippingAddressAdded") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerShippingAddressAddedMessageImpl.class) +public interface CustomerShippingAddressAddedMessage extends Message { + + /** + * discriminator value for CustomerShippingAddressAddedMessage + */ + String CUSTOMER_SHIPPING_ADDRESS_ADDED = "CustomerShippingAddressAdded"; + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerShippingAddressAddedMessage + */ + public static CustomerShippingAddressAddedMessage of() { + return new CustomerShippingAddressAddedMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerShippingAddressAddedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerShippingAddressAddedMessage of(final CustomerShippingAddressAddedMessage template) { + CustomerShippingAddressAddedMessageImpl instance = new CustomerShippingAddressAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerShippingAddressAddedMessage copyDeep(); + + /** + * factory method to create a deep copy of CustomerShippingAddressAddedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerShippingAddressAddedMessage deepCopy( + @Nullable final CustomerShippingAddressAddedMessage template) { + if (template == null) { + return null; + } + CustomerShippingAddressAddedMessageImpl instance = new CustomerShippingAddressAddedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerShippingAddressAddedMessage + * @return builder + */ + public static CustomerShippingAddressAddedMessageBuilder builder() { + return CustomerShippingAddressAddedMessageBuilder.of(); + } + + /** + * create builder for CustomerShippingAddressAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerShippingAddressAddedMessageBuilder builder( + final CustomerShippingAddressAddedMessage template) { + return CustomerShippingAddressAddedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerShippingAddressAddedMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessageBuilder.java new file mode 100644 index 00000000000..a5fe45e3ebe --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessageBuilder.java @@ -0,0 +1,456 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerShippingAddressAddedMessageBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerShippingAddressAddedMessage customerShippingAddressAddedMessage = CustomerShippingAddressAddedMessage.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)
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerShippingAddressAddedMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.common.Address address; + + /** + *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    + * @param id value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

    Version of a resource. In case of Messages, this is always 1.

    + * @param version value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @param createdAt value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

    Value of createdAt.

    + * @param lastModifiedAt value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder 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 CustomerShippingAddressAddedMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param createdBy value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder 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.

    + * @param sequenceNumber value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

    Reference to the resource on which the change or action was performed.

    + * @param resource value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder 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 CustomerShippingAddressAddedMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Version of the resource on which the change or action was performed.

    + * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder 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.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder address( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()).build(); + return this; + } + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder withAddress( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()); + return this; + } + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @param address value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessageBuilder address( + final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *

    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.

    + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @return address + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerShippingAddressAddedMessage with checking for non-null required values + * @return CustomerShippingAddressAddedMessage + */ + public CustomerShippingAddressAddedMessage build() { + Objects.requireNonNull(id, CustomerShippingAddressAddedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerShippingAddressAddedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerShippingAddressAddedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + CustomerShippingAddressAddedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + CustomerShippingAddressAddedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerShippingAddressAddedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + CustomerShippingAddressAddedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(address, CustomerShippingAddressAddedMessage.class + ": address is missing"); + return new CustomerShippingAddressAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * builds CustomerShippingAddressAddedMessage without checking for non-null required values + * @return CustomerShippingAddressAddedMessage + */ + public CustomerShippingAddressAddedMessage buildUnchecked() { + return new CustomerShippingAddressAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * factory method for an instance of CustomerShippingAddressAddedMessageBuilder + * @return builder + */ + public static CustomerShippingAddressAddedMessageBuilder of() { + return new CustomerShippingAddressAddedMessageBuilder(); + } + + /** + * create builder for CustomerShippingAddressAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerShippingAddressAddedMessageBuilder of(final CustomerShippingAddressAddedMessage template) { + CustomerShippingAddressAddedMessageBuilder builder = new CustomerShippingAddressAddedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessageImpl.java new file mode 100644 index 00000000000..e36be21b353 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessageImpl.java @@ -0,0 +1,301 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Add Shipping Address ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerShippingAddressAddedMessageImpl implements CustomerShippingAddressAddedMessage, 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.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerShippingAddressAddedMessageImpl(@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("address") final com.commercetools.api.models.common.Address address) { + 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.address = address; + this.type = CUSTOMER_SHIPPING_ADDRESS_ADDED; + } + + /** + * create empty instance + */ + public CustomerShippingAddressAddedMessageImpl() { + this.type = CUSTOMER_SHIPPING_ADDRESS_ADDED; + } + + /** + *

    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.

    + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerShippingAddressAddedMessageImpl that = (CustomerShippingAddressAddedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(address, that.address) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(address) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("address", address) + .build(); + } + + @Override + public CustomerShippingAddressAddedMessage copyDeep() { + return CustomerShippingAddressAddedMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayload.java new file mode 100644 index 00000000000..5d96ac9e771 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayload.java @@ -0,0 +1,137 @@ + +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.common.Address; +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 Add Shipping Address ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerShippingAddressAddedMessagePayload customerShippingAddressAddedMessagePayload = CustomerShippingAddressAddedMessagePayload.builder()
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerShippingAddressAdded") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerShippingAddressAddedMessagePayloadImpl.class) +public interface CustomerShippingAddressAddedMessagePayload extends MessagePayload { + + /** + * discriminator value for CustomerShippingAddressAddedMessagePayload + */ + String CUSTOMER_SHIPPING_ADDRESS_ADDED = "CustomerShippingAddressAdded"; + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerShippingAddressAddedMessagePayload + */ + public static CustomerShippingAddressAddedMessagePayload of() { + return new CustomerShippingAddressAddedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerShippingAddressAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerShippingAddressAddedMessagePayload of( + final CustomerShippingAddressAddedMessagePayload template) { + CustomerShippingAddressAddedMessagePayloadImpl instance = new CustomerShippingAddressAddedMessagePayloadImpl(); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerShippingAddressAddedMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of CustomerShippingAddressAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerShippingAddressAddedMessagePayload deepCopy( + @Nullable final CustomerShippingAddressAddedMessagePayload template) { + if (template == null) { + return null; + } + CustomerShippingAddressAddedMessagePayloadImpl instance = new CustomerShippingAddressAddedMessagePayloadImpl(); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerShippingAddressAddedMessagePayload + * @return builder + */ + public static CustomerShippingAddressAddedMessagePayloadBuilder builder() { + return CustomerShippingAddressAddedMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerShippingAddressAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerShippingAddressAddedMessagePayloadBuilder builder( + final CustomerShippingAddressAddedMessagePayload template) { + return CustomerShippingAddressAddedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerShippingAddressAddedMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayloadBuilder.java new file mode 100644 index 00000000000..683fbc4abfd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayloadBuilder.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerShippingAddressAddedMessagePayloadBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerShippingAddressAddedMessagePayload customerShippingAddressAddedMessagePayload = CustomerShippingAddressAddedMessagePayload.builder()
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerShippingAddressAddedMessagePayloadBuilder + implements Builder { + + private com.commercetools.api.models.common.Address address; + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerShippingAddressAddedMessagePayloadBuilder address( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()).build(); + return this; + } + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerShippingAddressAddedMessagePayloadBuilder withAddress( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()); + return this; + } + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @param address value to be set + * @return Builder + */ + + public CustomerShippingAddressAddedMessagePayloadBuilder address( + final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + * @return address + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerShippingAddressAddedMessagePayload with checking for non-null required values + * @return CustomerShippingAddressAddedMessagePayload + */ + public CustomerShippingAddressAddedMessagePayload build() { + Objects.requireNonNull(address, CustomerShippingAddressAddedMessagePayload.class + ": address is missing"); + return new CustomerShippingAddressAddedMessagePayloadImpl(address); + } + + /** + * builds CustomerShippingAddressAddedMessagePayload without checking for non-null required values + * @return CustomerShippingAddressAddedMessagePayload + */ + public CustomerShippingAddressAddedMessagePayload buildUnchecked() { + return new CustomerShippingAddressAddedMessagePayloadImpl(address); + } + + /** + * factory method for an instance of CustomerShippingAddressAddedMessagePayloadBuilder + * @return builder + */ + public static CustomerShippingAddressAddedMessagePayloadBuilder of() { + return new CustomerShippingAddressAddedMessagePayloadBuilder(); + } + + /** + * create builder for CustomerShippingAddressAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerShippingAddressAddedMessagePayloadBuilder of( + final CustomerShippingAddressAddedMessagePayload template) { + CustomerShippingAddressAddedMessagePayloadBuilder builder = new CustomerShippingAddressAddedMessagePayloadBuilder(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayloadImpl.java new file mode 100644 index 00000000000..72b7c6d108e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayloadImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Add Shipping Address ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerShippingAddressAddedMessagePayloadImpl + implements CustomerShippingAddressAddedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerShippingAddressAddedMessagePayloadImpl( + @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + this.address = address; + this.type = CUSTOMER_SHIPPING_ADDRESS_ADDED; + } + + /** + * create empty instance + */ + public CustomerShippingAddressAddedMessagePayloadImpl() { + this.type = CUSTOMER_SHIPPING_ADDRESS_ADDED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    The address that was added to the Customer shippingAddressIds.

    + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerShippingAddressAddedMessagePayloadImpl that = (CustomerShippingAddressAddedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(address, that.address) + .append(type, that.type) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("address", address) + .build(); + } + + @Override + public CustomerShippingAddressAddedMessagePayload copyDeep() { + return CustomerShippingAddressAddedMessagePayload.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessage.java new file mode 100644 index 00000000000..f46054bd4e4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessage.java @@ -0,0 +1,164 @@ + +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.common.Address; +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 Shipping Address ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerShippingAddressRemovedMessage customerShippingAddressRemovedMessage = CustomerShippingAddressRemovedMessage.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)
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerShippingAddressRemoved") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerShippingAddressRemovedMessageImpl.class) +public interface CustomerShippingAddressRemovedMessage extends Message { + + /** + * discriminator value for CustomerShippingAddressRemovedMessage + */ + String CUSTOMER_SHIPPING_ADDRESS_REMOVED = "CustomerShippingAddressRemoved"; + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerShippingAddressRemovedMessage + */ + public static CustomerShippingAddressRemovedMessage of() { + return new CustomerShippingAddressRemovedMessageImpl(); + } + + /** + * factory method to create a shallow copy CustomerShippingAddressRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CustomerShippingAddressRemovedMessage of(final CustomerShippingAddressRemovedMessage template) { + CustomerShippingAddressRemovedMessageImpl instance = new CustomerShippingAddressRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy(template.getLastModifiedBy()); + instance.setCreatedBy(template.getCreatedBy()); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(template.getResource()); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerShippingAddressRemovedMessage copyDeep(); + + /** + * factory method to create a deep copy of CustomerShippingAddressRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerShippingAddressRemovedMessage deepCopy( + @Nullable final CustomerShippingAddressRemovedMessage template) { + if (template == null) { + return null; + } + CustomerShippingAddressRemovedMessageImpl instance = new CustomerShippingAddressRemovedMessageImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + instance.setLastModifiedBy( + com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy())); + instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy())); + instance.setSequenceNumber(template.getSequenceNumber()); + instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource())); + instance.setResourceVersion(template.getResourceVersion()); + instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers + .deepCopy(template.getResourceUserProvidedIdentifiers())); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerShippingAddressRemovedMessage + * @return builder + */ + public static CustomerShippingAddressRemovedMessageBuilder builder() { + return CustomerShippingAddressRemovedMessageBuilder.of(); + } + + /** + * create builder for CustomerShippingAddressRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerShippingAddressRemovedMessageBuilder builder( + final CustomerShippingAddressRemovedMessage template) { + return CustomerShippingAddressRemovedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerShippingAddressRemovedMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessageBuilder.java new file mode 100644 index 00000000000..86123c4ac9b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessageBuilder.java @@ -0,0 +1,457 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerShippingAddressRemovedMessageBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerShippingAddressRemovedMessage customerShippingAddressRemovedMessage = CustomerShippingAddressRemovedMessage.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)
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerShippingAddressRemovedMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.common.Address address; + + /** + *

    Unique identifier of the Message. Can be used to track which Messages have been processed.

    + * @param id value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

    Version of a resource. In case of Messages, this is always 1.

    + * @param version value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @param createdAt value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

    Value of createdAt.

    + * @param lastModifiedAt value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that last modified the Message.

    + * @param lastModifiedBy value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder 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 CustomerShippingAddressRemovedMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param builder function to build the createdBy value + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

    IDs and references that created the Message.

    + * @param createdBy value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder 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.

    + * @param sequenceNumber value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

    Reference to the resource on which the change or action was performed.

    + * @param resource value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder 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 CustomerShippingAddressRemovedMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Version of the resource on which the change or action was performed.

    + * @param resourceVersion value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder 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.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

    User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

    + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder address( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()).build(); + return this; + } + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder withAddress( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()); + return this; + } + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @param address value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessageBuilder address( + final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *

    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.

    + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @return address + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerShippingAddressRemovedMessage with checking for non-null required values + * @return CustomerShippingAddressRemovedMessage + */ + public CustomerShippingAddressRemovedMessage build() { + Objects.requireNonNull(id, CustomerShippingAddressRemovedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CustomerShippingAddressRemovedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CustomerShippingAddressRemovedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + CustomerShippingAddressRemovedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + CustomerShippingAddressRemovedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CustomerShippingAddressRemovedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + CustomerShippingAddressRemovedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(address, CustomerShippingAddressRemovedMessage.class + ": address is missing"); + return new CustomerShippingAddressRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * builds CustomerShippingAddressRemovedMessage without checking for non-null required values + * @return CustomerShippingAddressRemovedMessage + */ + public CustomerShippingAddressRemovedMessage buildUnchecked() { + return new CustomerShippingAddressRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, address); + } + + /** + * factory method for an instance of CustomerShippingAddressRemovedMessageBuilder + * @return builder + */ + public static CustomerShippingAddressRemovedMessageBuilder of() { + return new CustomerShippingAddressRemovedMessageBuilder(); + } + + /** + * create builder for CustomerShippingAddressRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerShippingAddressRemovedMessageBuilder of( + final CustomerShippingAddressRemovedMessage template) { + CustomerShippingAddressRemovedMessageBuilder builder = new CustomerShippingAddressRemovedMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessageImpl.java new file mode 100644 index 00000000000..3e84031d6f2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessageImpl.java @@ -0,0 +1,301 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Remove Shipping Address ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerShippingAddressRemovedMessageImpl implements CustomerShippingAddressRemovedMessage, 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.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerShippingAddressRemovedMessageImpl(@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("address") final com.commercetools.api.models.common.Address address) { + 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.address = address; + this.type = CUSTOMER_SHIPPING_ADDRESS_REMOVED; + } + + /** + * create empty instance + */ + public CustomerShippingAddressRemovedMessageImpl() { + this.type = CUSTOMER_SHIPPING_ADDRESS_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.

    + */ + + public Long getVersion() { + return this.version; + } + + /** + *

    Date and time (UTC) the Message was generated.

    + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

    Value of createdAt.

    + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

    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.

    + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

    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.

    + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerShippingAddressRemovedMessageImpl that = (CustomerShippingAddressRemovedMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(address, that.address) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(address) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("address", address) + .build(); + } + + @Override + public CustomerShippingAddressRemovedMessage copyDeep() { + return CustomerShippingAddressRemovedMessage.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayload.java new file mode 100644 index 00000000000..b2f03bf12de --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayload.java @@ -0,0 +1,137 @@ + +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.common.Address; +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 Shipping Address ID update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerShippingAddressRemovedMessagePayload customerShippingAddressRemovedMessagePayload = CustomerShippingAddressRemovedMessagePayload.builder()
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("CustomerShippingAddressRemoved") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CustomerShippingAddressRemovedMessagePayloadImpl.class) +public interface CustomerShippingAddressRemovedMessagePayload extends MessagePayload { + + /** + * discriminator value for CustomerShippingAddressRemovedMessagePayload + */ + String CUSTOMER_SHIPPING_ADDRESS_REMOVED = "CustomerShippingAddressRemoved"; + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + * factory method + * @return instance of CustomerShippingAddressRemovedMessagePayload + */ + public static CustomerShippingAddressRemovedMessagePayload of() { + return new CustomerShippingAddressRemovedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CustomerShippingAddressRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CustomerShippingAddressRemovedMessagePayload of( + final CustomerShippingAddressRemovedMessagePayload template) { + CustomerShippingAddressRemovedMessagePayloadImpl instance = new CustomerShippingAddressRemovedMessagePayloadImpl(); + instance.setAddress(template.getAddress()); + return instance; + } + + public CustomerShippingAddressRemovedMessagePayload copyDeep(); + + /** + * factory method to create a deep copy of CustomerShippingAddressRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CustomerShippingAddressRemovedMessagePayload deepCopy( + @Nullable final CustomerShippingAddressRemovedMessagePayload template) { + if (template == null) { + return null; + } + CustomerShippingAddressRemovedMessagePayloadImpl instance = new CustomerShippingAddressRemovedMessagePayloadImpl(); + instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress())); + return instance; + } + + /** + * builder factory method for CustomerShippingAddressRemovedMessagePayload + * @return builder + */ + public static CustomerShippingAddressRemovedMessagePayloadBuilder builder() { + return CustomerShippingAddressRemovedMessagePayloadBuilder.of(); + } + + /** + * create builder for CustomerShippingAddressRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerShippingAddressRemovedMessagePayloadBuilder builder( + final CustomerShippingAddressRemovedMessagePayload template) { + return CustomerShippingAddressRemovedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCustomerShippingAddressRemovedMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayloadBuilder.java new file mode 100644 index 00000000000..f09eadf9e57 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayloadBuilder.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CustomerShippingAddressRemovedMessagePayloadBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     CustomerShippingAddressRemovedMessagePayload customerShippingAddressRemovedMessagePayload = CustomerShippingAddressRemovedMessagePayload.builder()
    + *             .address(addressBuilder -> addressBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerShippingAddressRemovedMessagePayloadBuilder + implements Builder { + + private com.commercetools.api.models.common.Address address; + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerShippingAddressRemovedMessagePayloadBuilder address( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()).build(); + return this; + } + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @param builder function to build the address value + * @return Builder + */ + + public CustomerShippingAddressRemovedMessagePayloadBuilder withAddress( + Function builder) { + this.address = builder.apply(com.commercetools.api.models.common.AddressBuilder.of()); + return this; + } + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @param address value to be set + * @return Builder + */ + + public CustomerShippingAddressRemovedMessagePayloadBuilder address( + final com.commercetools.api.models.common.Address address) { + this.address = address; + return this; + } + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + * @return address + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + /** + * builds CustomerShippingAddressRemovedMessagePayload with checking for non-null required values + * @return CustomerShippingAddressRemovedMessagePayload + */ + public CustomerShippingAddressRemovedMessagePayload build() { + Objects.requireNonNull(address, CustomerShippingAddressRemovedMessagePayload.class + ": address is missing"); + return new CustomerShippingAddressRemovedMessagePayloadImpl(address); + } + + /** + * builds CustomerShippingAddressRemovedMessagePayload without checking for non-null required values + * @return CustomerShippingAddressRemovedMessagePayload + */ + public CustomerShippingAddressRemovedMessagePayload buildUnchecked() { + return new CustomerShippingAddressRemovedMessagePayloadImpl(address); + } + + /** + * factory method for an instance of CustomerShippingAddressRemovedMessagePayloadBuilder + * @return builder + */ + public static CustomerShippingAddressRemovedMessagePayloadBuilder of() { + return new CustomerShippingAddressRemovedMessagePayloadBuilder(); + } + + /** + * create builder for CustomerShippingAddressRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CustomerShippingAddressRemovedMessagePayloadBuilder of( + final CustomerShippingAddressRemovedMessagePayload template) { + CustomerShippingAddressRemovedMessagePayloadBuilder builder = new CustomerShippingAddressRemovedMessagePayloadBuilder(); + builder.address = template.getAddress(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayloadImpl.java new file mode 100644 index 00000000000..9659581dc3e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayloadImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Generated after a successful Remove Shipping Address ID update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CustomerShippingAddressRemovedMessagePayloadImpl + implements CustomerShippingAddressRemovedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.common.Address address; + + /** + * create instance with all properties + */ + @JsonCreator + CustomerShippingAddressRemovedMessagePayloadImpl( + @JsonProperty("address") final com.commercetools.api.models.common.Address address) { + this.address = address; + this.type = CUSTOMER_SHIPPING_ADDRESS_REMOVED; + } + + /** + * create empty instance + */ + public CustomerShippingAddressRemovedMessagePayloadImpl() { + this.type = CUSTOMER_SHIPPING_ADDRESS_REMOVED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    The address that was removed from the Customer shippingAddressIds.

    + */ + + public com.commercetools.api.models.common.Address getAddress() { + return this.address; + } + + public void setAddress(final com.commercetools.api.models.common.Address address) { + this.address = address; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CustomerShippingAddressRemovedMessagePayloadImpl that = (CustomerShippingAddressRemovedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(address, that.address) + .append(type, that.type) + .append(address, that.address) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(address).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("address", address) + .build(); + } + + @Override + public CustomerShippingAddressRemovedMessagePayload copyDeep() { + return CustomerShippingAddressRemovedMessagePayload.deepCopy(this); + } +} 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 4de63a9e56e..b12694100c2 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 @@ -573,6 +573,30 @@ public static com.commercetools.api.models.message.BusinessUnitCustomTypeSetMess return com.commercetools.api.models.message.BusinessUnitCustomTypeSetMessageBuilder.of(); } + /** + * builder for businessUnitCustomerGroupAssignmentAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentAddedMessageBuilder businessUnitCustomerGroupAssignmentAddedBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentAddedMessageBuilder.of(); + } + + /** + * builder for businessUnitCustomerGroupAssignmentRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder businessUnitCustomerGroupAssignmentRemovedBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder.of(); + } + + /** + * builder for businessUnitCustomerGroupAssignmentsSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentsSetMessageBuilder businessUnitCustomerGroupAssignmentsSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentsSetMessageBuilder.of(); + } + /** * builder for businessUnitDefaultBillingAddressSet subtype * @return builder @@ -829,6 +853,22 @@ public static com.commercetools.api.models.message.CustomerAddressRemovedMessage return com.commercetools.api.models.message.CustomerAddressRemovedMessageBuilder.of(); } + /** + * builder for customerBillingAddressAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerBillingAddressAddedMessageBuilder customerBillingAddressAddedBuilder() { + return com.commercetools.api.models.message.CustomerBillingAddressAddedMessageBuilder.of(); + } + + /** + * builder for customerBillingAddressRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerBillingAddressRemovedMessageBuilder customerBillingAddressRemovedBuilder() { + return com.commercetools.api.models.message.CustomerBillingAddressRemovedMessageBuilder.of(); + } + /** * builder for customerCompanyNameSet subtype * @return builder @@ -941,6 +981,14 @@ public static com.commercetools.api.models.message.CustomerEmailVerifiedMessageB return com.commercetools.api.models.message.CustomerEmailVerifiedMessageBuilder.of(); } + /** + * builder for customerExternalIdSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerExternalIdSetMessageBuilder customerExternalIdSetBuilder() { + return com.commercetools.api.models.message.CustomerExternalIdSetMessageBuilder.of(); + } + /** * builder for customerFirstNameSet subtype * @return builder @@ -1045,6 +1093,22 @@ public static com.commercetools.api.models.message.CustomerPasswordUpdatedMessag return com.commercetools.api.models.message.CustomerPasswordUpdatedMessageBuilder.of(); } + /** + * builder for customerShippingAddressAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerShippingAddressAddedMessageBuilder customerShippingAddressAddedBuilder() { + return com.commercetools.api.models.message.CustomerShippingAddressAddedMessageBuilder.of(); + } + + /** + * builder for customerShippingAddressRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerShippingAddressRemovedMessageBuilder customerShippingAddressRemovedBuilder() { + return com.commercetools.api.models.message.CustomerShippingAddressRemovedMessageBuilder.of(); + } + /** * builder for customerStoresSet 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 9fc539b7e10..8e73fe98479 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 @@ -179,6 +179,18 @@ public com.commercetools.api.models.message.BusinessUnitCustomTypeSetMessageBuil return com.commercetools.api.models.message.BusinessUnitCustomTypeSetMessageBuilder.of(); } + public com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentAddedMessageBuilder businessUnitCustomerGroupAssignmentAddedBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentAddedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder businessUnitCustomerGroupAssignmentRemovedBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentsSetMessageBuilder businessUnitCustomerGroupAssignmentsSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentsSetMessageBuilder.of(); + } + public com.commercetools.api.models.message.BusinessUnitDefaultBillingAddressSetMessageBuilder businessUnitDefaultBillingAddressSetBuilder() { return com.commercetools.api.models.message.BusinessUnitDefaultBillingAddressSetMessageBuilder.of(); } @@ -307,6 +319,14 @@ public com.commercetools.api.models.message.CustomerAddressRemovedMessageBuilder return com.commercetools.api.models.message.CustomerAddressRemovedMessageBuilder.of(); } + public com.commercetools.api.models.message.CustomerBillingAddressAddedMessageBuilder customerBillingAddressAddedBuilder() { + return com.commercetools.api.models.message.CustomerBillingAddressAddedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.CustomerBillingAddressRemovedMessageBuilder customerBillingAddressRemovedBuilder() { + return com.commercetools.api.models.message.CustomerBillingAddressRemovedMessageBuilder.of(); + } + public com.commercetools.api.models.message.CustomerCompanyNameSetMessageBuilder customerCompanyNameSetBuilder() { return com.commercetools.api.models.message.CustomerCompanyNameSetMessageBuilder.of(); } @@ -363,6 +383,10 @@ public com.commercetools.api.models.message.CustomerEmailVerifiedMessageBuilder return com.commercetools.api.models.message.CustomerEmailVerifiedMessageBuilder.of(); } + public com.commercetools.api.models.message.CustomerExternalIdSetMessageBuilder customerExternalIdSetBuilder() { + return com.commercetools.api.models.message.CustomerExternalIdSetMessageBuilder.of(); + } + public com.commercetools.api.models.message.CustomerFirstNameSetMessageBuilder customerFirstNameSetBuilder() { return com.commercetools.api.models.message.CustomerFirstNameSetMessageBuilder.of(); } @@ -415,6 +439,14 @@ public com.commercetools.api.models.message.CustomerPasswordUpdatedMessageBuilde return com.commercetools.api.models.message.CustomerPasswordUpdatedMessageBuilder.of(); } + public com.commercetools.api.models.message.CustomerShippingAddressAddedMessageBuilder customerShippingAddressAddedBuilder() { + return com.commercetools.api.models.message.CustomerShippingAddressAddedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.CustomerShippingAddressRemovedMessageBuilder customerShippingAddressRemovedBuilder() { + return com.commercetools.api.models.message.CustomerShippingAddressRemovedMessageBuilder.of(); + } + public com.commercetools.api.models.message.CustomerStoresSetMessageBuilder customerStoresSetBuilder() { return com.commercetools.api.models.message.CustomerStoresSetMessageBuilder.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 e31a6795fe7..35c96bbd735 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 @@ -397,6 +397,31 @@ public static com.commercetools.api.models.message.BusinessUnitCustomTypeSetMess return com.commercetools.api.models.message.BusinessUnitCustomTypeSetMessagePayloadBuilder.of(); } + /** + * builder for businessUnitCustomerGroupAssignmentAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder businessUnitCustomerGroupAssignmentAddedBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder.of(); + } + + /** + * builder for businessUnitCustomerGroupAssignmentRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder businessUnitCustomerGroupAssignmentRemovedBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder + .of(); + } + + /** + * builder for businessUnitCustomerGroupAssignmentsSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder businessUnitCustomerGroupAssignmentsSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder.of(); + } + /** * builder for businessUnitDefaultBillingAddressSet subtype * @return builder @@ -653,6 +678,22 @@ public static com.commercetools.api.models.message.CustomerAddressRemovedMessage return com.commercetools.api.models.message.CustomerAddressRemovedMessagePayloadBuilder.of(); } + /** + * builder for customerBillingAddressAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerBillingAddressAddedMessagePayloadBuilder customerBillingAddressAddedBuilder() { + return com.commercetools.api.models.message.CustomerBillingAddressAddedMessagePayloadBuilder.of(); + } + + /** + * builder for customerBillingAddressRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerBillingAddressRemovedMessagePayloadBuilder customerBillingAddressRemovedBuilder() { + return com.commercetools.api.models.message.CustomerBillingAddressRemovedMessagePayloadBuilder.of(); + } + /** * builder for customerCompanyNameSet subtype * @return builder @@ -765,6 +806,14 @@ public static com.commercetools.api.models.message.CustomerEmailVerifiedMessageP return com.commercetools.api.models.message.CustomerEmailVerifiedMessagePayloadBuilder.of(); } + /** + * builder for customerExternalIdSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerExternalIdSetMessagePayloadBuilder customerExternalIdSetBuilder() { + return com.commercetools.api.models.message.CustomerExternalIdSetMessagePayloadBuilder.of(); + } + /** * builder for customerFirstNameSet subtype * @return builder @@ -869,6 +918,22 @@ public static com.commercetools.api.models.message.CustomerPasswordUpdatedMessag return com.commercetools.api.models.message.CustomerPasswordUpdatedMessagePayloadBuilder.of(); } + /** + * builder for customerShippingAddressAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerShippingAddressAddedMessagePayloadBuilder customerShippingAddressAddedBuilder() { + return com.commercetools.api.models.message.CustomerShippingAddressAddedMessagePayloadBuilder.of(); + } + + /** + * builder for customerShippingAddressRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.CustomerShippingAddressRemovedMessagePayloadBuilder customerShippingAddressRemovedBuilder() { + return com.commercetools.api.models.message.CustomerShippingAddressRemovedMessagePayloadBuilder.of(); + } + /** * builder for customerStoresSet 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 d7956416d3d..a385b670f5c 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 @@ -179,6 +179,19 @@ public com.commercetools.api.models.message.BusinessUnitCustomTypeSetMessagePayl return com.commercetools.api.models.message.BusinessUnitCustomTypeSetMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder businessUnitCustomerGroupAssignmentAddedBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder businessUnitCustomerGroupAssignmentRemovedBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder + .of(); + } + + public com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder businessUnitCustomerGroupAssignmentsSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder businessUnitDefaultBillingAddressSetBuilder() { return com.commercetools.api.models.message.BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder.of(); } @@ -307,6 +320,14 @@ public com.commercetools.api.models.message.CustomerAddressRemovedMessagePayload return com.commercetools.api.models.message.CustomerAddressRemovedMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.CustomerBillingAddressAddedMessagePayloadBuilder customerBillingAddressAddedBuilder() { + return com.commercetools.api.models.message.CustomerBillingAddressAddedMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.CustomerBillingAddressRemovedMessagePayloadBuilder customerBillingAddressRemovedBuilder() { + return com.commercetools.api.models.message.CustomerBillingAddressRemovedMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.CustomerCompanyNameSetMessagePayloadBuilder customerCompanyNameSetBuilder() { return com.commercetools.api.models.message.CustomerCompanyNameSetMessagePayloadBuilder.of(); } @@ -363,6 +384,10 @@ public com.commercetools.api.models.message.CustomerEmailVerifiedMessagePayloadB return com.commercetools.api.models.message.CustomerEmailVerifiedMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.CustomerExternalIdSetMessagePayloadBuilder customerExternalIdSetBuilder() { + return com.commercetools.api.models.message.CustomerExternalIdSetMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.CustomerFirstNameSetMessagePayloadBuilder customerFirstNameSetBuilder() { return com.commercetools.api.models.message.CustomerFirstNameSetMessagePayloadBuilder.of(); } @@ -415,6 +440,14 @@ public com.commercetools.api.models.message.CustomerPasswordUpdatedMessagePayloa return com.commercetools.api.models.message.CustomerPasswordUpdatedMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.CustomerShippingAddressAddedMessagePayloadBuilder customerShippingAddressAddedBuilder() { + return com.commercetools.api.models.message.CustomerShippingAddressAddedMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.CustomerShippingAddressRemovedMessagePayloadBuilder customerShippingAddressRemovedBuilder() { + return com.commercetools.api.models.message.CustomerShippingAddressRemovedMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.CustomerStoresSetMessagePayloadBuilder customerStoresSetBuilder() { return com.commercetools.api.models.message.CustomerStoresSetMessagePayloadBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessage.java index 6565f87c831..36f057bc08c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessage.java @@ -31,7 +31,7 @@ * .sequenceNumber(0.3) * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) - * .order(orderBuilder -> orderBuilder) + * .recurringOrder(recurringOrderBuilder -> recurringOrderBuilder) * .build() * *
    @@ -48,19 +48,19 @@ public interface RecurringOrderCreatedMessage extends Message { /** *

    RecurringOrder that was created.

    - * @return order + * @return recurringOrder */ @NotNull @Valid - @JsonProperty("order") - public RecurringOrder getOrder(); + @JsonProperty("recurringOrder") + public RecurringOrder getRecurringOrder(); /** *

    RecurringOrder that was created.

    - * @param order value to be set + * @param recurringOrder value to be set */ - public void setOrder(final RecurringOrder order); + public void setRecurringOrder(final RecurringOrder recurringOrder); /** * factory method @@ -87,7 +87,7 @@ public static RecurringOrderCreatedMessage of(final RecurringOrderCreatedMessage instance.setResource(template.getResource()); instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); - instance.setOrder(template.getOrder()); + instance.setRecurringOrder(template.getRecurringOrder()); return instance; } @@ -116,7 +116,8 @@ public static RecurringOrderCreatedMessage deepCopy(@Nullable final RecurringOrd instance.setResourceVersion(template.getResourceVersion()); instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers .deepCopy(template.getResourceUserProvidedIdentifiers())); - instance.setOrder(com.commercetools.api.models.recurring_order.RecurringOrder.deepCopy(template.getOrder())); + instance.setRecurringOrder( + com.commercetools.api.models.recurring_order.RecurringOrder.deepCopy(template.getRecurringOrder())); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageBuilder.java index a3d8a178607..be5bb0de65b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageBuilder.java @@ -23,7 +23,7 @@ * .sequenceNumber(0.3) * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) - * .order(orderBuilder -> orderBuilder) + * .recurringOrder(recurringOrderBuilder -> recurringOrderBuilder) * .build() * *
    @@ -54,7 +54,7 @@ public class RecurringOrderCreatedMessageBuilder implements BuilderUnique identifier of the Message. Can be used to track which Messages have been processed.

    @@ -258,37 +258,38 @@ public RecurringOrderCreatedMessageBuilder resourceUserProvidedIdentifiers( /** *

    RecurringOrder that was created.

    - * @param builder function to build the order value + * @param builder function to build the recurringOrder value * @return Builder */ - public RecurringOrderCreatedMessageBuilder order( + public RecurringOrderCreatedMessageBuilder recurringOrder( Function builder) { - this.order = builder.apply(com.commercetools.api.models.recurring_order.RecurringOrderBuilder.of()).build(); + this.recurringOrder = builder.apply(com.commercetools.api.models.recurring_order.RecurringOrderBuilder.of()) + .build(); return this; } /** *

    RecurringOrder that was created.

    - * @param builder function to build the order value + * @param builder function to build the recurringOrder value * @return Builder */ - public RecurringOrderCreatedMessageBuilder withOrder( + public RecurringOrderCreatedMessageBuilder withRecurringOrder( Function builder) { - this.order = builder.apply(com.commercetools.api.models.recurring_order.RecurringOrderBuilder.of()); + this.recurringOrder = builder.apply(com.commercetools.api.models.recurring_order.RecurringOrderBuilder.of()); return this; } /** *

    RecurringOrder that was created.

    - * @param order value to be set + * @param recurringOrder value to be set * @return Builder */ - public RecurringOrderCreatedMessageBuilder order( - final com.commercetools.api.models.recurring_order.RecurringOrder order) { - this.order = order; + public RecurringOrderCreatedMessageBuilder recurringOrder( + final com.commercetools.api.models.recurring_order.RecurringOrder recurringOrder) { + this.recurringOrder = recurringOrder; return this; } @@ -387,11 +388,11 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU /** *

    RecurringOrder that was created.

    - * @return order + * @return recurringOrder */ - public com.commercetools.api.models.recurring_order.RecurringOrder getOrder() { - return this.order; + public com.commercetools.api.models.recurring_order.RecurringOrder getRecurringOrder() { + return this.recurringOrder; } /** @@ -406,9 +407,9 @@ public RecurringOrderCreatedMessage build() { Objects.requireNonNull(sequenceNumber, RecurringOrderCreatedMessage.class + ": sequenceNumber is missing"); Objects.requireNonNull(resource, RecurringOrderCreatedMessage.class + ": resource is missing"); Objects.requireNonNull(resourceVersion, RecurringOrderCreatedMessage.class + ": resourceVersion is missing"); - Objects.requireNonNull(order, RecurringOrderCreatedMessage.class + ": order is missing"); + Objects.requireNonNull(recurringOrder, RecurringOrderCreatedMessage.class + ": recurringOrder is missing"); return new RecurringOrderCreatedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, order); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, recurringOrder); } /** @@ -417,7 +418,7 @@ public RecurringOrderCreatedMessage build() { */ public RecurringOrderCreatedMessage buildUnchecked() { return new RecurringOrderCreatedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, - sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, order); + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, recurringOrder); } /** @@ -445,7 +446,7 @@ public static RecurringOrderCreatedMessageBuilder of(final RecurringOrderCreated builder.resource = template.getResource(); builder.resourceVersion = template.getResourceVersion(); builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); - builder.order = template.getOrder(); + builder.recurringOrder = template.getRecurringOrder(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageImpl.java index d7e5d1c7979..86fd9d92e0d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageImpl.java @@ -44,7 +44,7 @@ public class RecurringOrderCreatedMessageImpl implements RecurringOrderCreatedMe private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; - private com.commercetools.api.models.recurring_order.RecurringOrder order; + private com.commercetools.api.models.recurring_order.RecurringOrder recurringOrder; /** * create instance with all properties @@ -59,7 +59,7 @@ public class RecurringOrderCreatedMessageImpl implements RecurringOrderCreatedMe @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("order") final com.commercetools.api.models.recurring_order.RecurringOrder order) { + @JsonProperty("recurringOrder") final com.commercetools.api.models.recurring_order.RecurringOrder recurringOrder) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -70,7 +70,7 @@ public class RecurringOrderCreatedMessageImpl implements RecurringOrderCreatedMe this.resource = resource; this.resourceVersion = resourceVersion; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; - this.order = order; + this.recurringOrder = recurringOrder; this.type = RECURRING_ORDER_CREATED; } @@ -173,8 +173,8 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU *

    RecurringOrder that was created.

    */ - public com.commercetools.api.models.recurring_order.RecurringOrder getOrder() { - return this.order; + public com.commercetools.api.models.recurring_order.RecurringOrder getRecurringOrder() { + return this.recurringOrder; } public void setId(final String id) { @@ -218,8 +218,8 @@ public void setResourceUserProvidedIdentifiers( this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; } - public void setOrder(final com.commercetools.api.models.recurring_order.RecurringOrder order) { - this.order = order; + public void setRecurringOrder(final com.commercetools.api.models.recurring_order.RecurringOrder recurringOrder) { + this.recurringOrder = recurringOrder; } @Override @@ -243,7 +243,7 @@ public boolean equals(Object o) { .append(resourceVersion, that.resourceVersion) .append(type, that.type) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) - .append(order, that.order) + .append(recurringOrder, that.recurringOrder) .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(order, that.order) + .append(recurringOrder, that.recurringOrder) .isEquals(); } @@ -272,7 +272,7 @@ public int hashCode() { .append(resourceVersion) .append(type) .append(resourceUserProvidedIdentifiers) - .append(order) + .append(recurringOrder) .toHashCode(); } @@ -289,7 +289,7 @@ public String toString() { .append("resourceVersion", resourceVersion) .append("type", type) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) - .append("order", order) + .append("recurringOrder", recurringOrder) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayload.java index 98580fb29a5..0d0a37d0baf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayload.java @@ -24,7 +24,7 @@ *
    *
    
      *     RecurringOrderCreatedMessagePayload recurringOrderCreatedMessagePayload = RecurringOrderCreatedMessagePayload.builder()
    - *             .order(orderBuilder -> orderBuilder)
    + *             .recurringOrder(recurringOrderBuilder -> recurringOrderBuilder)
      *             .build()
      * 
    *
    @@ -41,19 +41,19 @@ public interface RecurringOrderCreatedMessagePayload extends MessagePayload { /** *

    RecurringOrder that was created.

    - * @return order + * @return recurringOrder */ @NotNull @Valid - @JsonProperty("order") - public RecurringOrder getOrder(); + @JsonProperty("recurringOrder") + public RecurringOrder getRecurringOrder(); /** *

    RecurringOrder that was created.

    - * @param order value to be set + * @param recurringOrder value to be set */ - public void setOrder(final RecurringOrder order); + public void setRecurringOrder(final RecurringOrder recurringOrder); /** * factory method @@ -70,7 +70,7 @@ public static RecurringOrderCreatedMessagePayload of() { */ public static RecurringOrderCreatedMessagePayload of(final RecurringOrderCreatedMessagePayload template) { RecurringOrderCreatedMessagePayloadImpl instance = new RecurringOrderCreatedMessagePayloadImpl(); - instance.setOrder(template.getOrder()); + instance.setRecurringOrder(template.getRecurringOrder()); return instance; } @@ -88,7 +88,8 @@ public static RecurringOrderCreatedMessagePayload deepCopy( return null; } RecurringOrderCreatedMessagePayloadImpl instance = new RecurringOrderCreatedMessagePayloadImpl(); - instance.setOrder(com.commercetools.api.models.recurring_order.RecurringOrder.deepCopy(template.getOrder())); + instance.setRecurringOrder( + com.commercetools.api.models.recurring_order.RecurringOrder.deepCopy(template.getRecurringOrder())); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadBuilder.java index 682bb81b020..99cb2fc0362 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadBuilder.java @@ -14,7 +14,7 @@ *
    *
    
      *     RecurringOrderCreatedMessagePayload recurringOrderCreatedMessagePayload = RecurringOrderCreatedMessagePayload.builder()
    - *             .order(orderBuilder -> orderBuilder)
    + *             .recurringOrder(recurringOrderBuilder -> recurringOrderBuilder)
      *             .build()
      * 
    *
    @@ -22,51 +22,52 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class RecurringOrderCreatedMessagePayloadBuilder implements Builder { - private com.commercetools.api.models.recurring_order.RecurringOrder order; + private com.commercetools.api.models.recurring_order.RecurringOrder recurringOrder; /** *

    RecurringOrder that was created.

    - * @param builder function to build the order value + * @param builder function to build the recurringOrder value * @return Builder */ - public RecurringOrderCreatedMessagePayloadBuilder order( + public RecurringOrderCreatedMessagePayloadBuilder recurringOrder( Function builder) { - this.order = builder.apply(com.commercetools.api.models.recurring_order.RecurringOrderBuilder.of()).build(); + this.recurringOrder = builder.apply(com.commercetools.api.models.recurring_order.RecurringOrderBuilder.of()) + .build(); return this; } /** *

    RecurringOrder that was created.

    - * @param builder function to build the order value + * @param builder function to build the recurringOrder value * @return Builder */ - public RecurringOrderCreatedMessagePayloadBuilder withOrder( + public RecurringOrderCreatedMessagePayloadBuilder withRecurringOrder( Function builder) { - this.order = builder.apply(com.commercetools.api.models.recurring_order.RecurringOrderBuilder.of()); + this.recurringOrder = builder.apply(com.commercetools.api.models.recurring_order.RecurringOrderBuilder.of()); return this; } /** *

    RecurringOrder that was created.

    - * @param order value to be set + * @param recurringOrder value to be set * @return Builder */ - public RecurringOrderCreatedMessagePayloadBuilder order( - final com.commercetools.api.models.recurring_order.RecurringOrder order) { - this.order = order; + public RecurringOrderCreatedMessagePayloadBuilder recurringOrder( + final com.commercetools.api.models.recurring_order.RecurringOrder recurringOrder) { + this.recurringOrder = recurringOrder; return this; } /** *

    RecurringOrder that was created.

    - * @return order + * @return recurringOrder */ - public com.commercetools.api.models.recurring_order.RecurringOrder getOrder() { - return this.order; + public com.commercetools.api.models.recurring_order.RecurringOrder getRecurringOrder() { + return this.recurringOrder; } /** @@ -74,8 +75,9 @@ public com.commercetools.api.models.recurring_order.RecurringOrder getOrder() { * @return RecurringOrderCreatedMessagePayload */ public RecurringOrderCreatedMessagePayload build() { - Objects.requireNonNull(order, RecurringOrderCreatedMessagePayload.class + ": order is missing"); - return new RecurringOrderCreatedMessagePayloadImpl(order); + Objects.requireNonNull(recurringOrder, + RecurringOrderCreatedMessagePayload.class + ": recurringOrder is missing"); + return new RecurringOrderCreatedMessagePayloadImpl(recurringOrder); } /** @@ -83,7 +85,7 @@ public RecurringOrderCreatedMessagePayload build() { * @return RecurringOrderCreatedMessagePayload */ public RecurringOrderCreatedMessagePayload buildUnchecked() { - return new RecurringOrderCreatedMessagePayloadImpl(order); + return new RecurringOrderCreatedMessagePayloadImpl(recurringOrder); } /** @@ -101,7 +103,7 @@ public static RecurringOrderCreatedMessagePayloadBuilder of() { */ public static RecurringOrderCreatedMessagePayloadBuilder of(final RecurringOrderCreatedMessagePayload template) { RecurringOrderCreatedMessagePayloadBuilder builder = new RecurringOrderCreatedMessagePayloadBuilder(); - builder.order = template.getOrder(); + builder.recurringOrder = template.getRecurringOrder(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadImpl.java index 9202961dc06..915e046fc4a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadImpl.java @@ -24,15 +24,15 @@ public class RecurringOrderCreatedMessagePayloadImpl implements RecurringOrderCr private String type; - private com.commercetools.api.models.recurring_order.RecurringOrder order; + private com.commercetools.api.models.recurring_order.RecurringOrder recurringOrder; /** * create instance with all properties */ @JsonCreator RecurringOrderCreatedMessagePayloadImpl( - @JsonProperty("order") final com.commercetools.api.models.recurring_order.RecurringOrder order) { - this.order = order; + @JsonProperty("recurringOrder") final com.commercetools.api.models.recurring_order.RecurringOrder recurringOrder) { + this.recurringOrder = recurringOrder; this.type = RECURRING_ORDER_CREATED; } @@ -55,12 +55,12 @@ public String getType() { *

    RecurringOrder that was created.

    */ - public com.commercetools.api.models.recurring_order.RecurringOrder getOrder() { - return this.order; + public com.commercetools.api.models.recurring_order.RecurringOrder getRecurringOrder() { + return this.recurringOrder; } - public void setOrder(final com.commercetools.api.models.recurring_order.RecurringOrder order) { - this.order = order; + public void setRecurringOrder(final com.commercetools.api.models.recurring_order.RecurringOrder recurringOrder) { + this.recurringOrder = recurringOrder; } @Override @@ -74,21 +74,21 @@ public boolean equals(Object o) { RecurringOrderCreatedMessagePayloadImpl that = (RecurringOrderCreatedMessagePayloadImpl) o; return new EqualsBuilder().append(type, that.type) - .append(order, that.order) + .append(recurringOrder, that.recurringOrder) .append(type, that.type) - .append(order, that.order) + .append(recurringOrder, that.recurringOrder) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(order).toHashCode(); + return new HashCodeBuilder(17, 37).append(type).append(recurringOrder).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) - .append("order", order) + .append("recurringOrder", recurringOrder) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogData.java index 5d8d2c48ab3..284730bf022 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogData.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogData.java @@ -36,7 +36,7 @@ public interface ProductCatalogData extends ProductCatalogDataMixin { /** - *

    true if the Product is published.

    + *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    * @return published */ @NotNull @@ -70,7 +70,7 @@ public interface ProductCatalogData extends ProductCatalogDataMixin { public Boolean getHasStagedChanges(); /** - *

    true if the Product is published.

    + *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    * @param published value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataBuilder.java index 96d8a8473e3..50f190d1d69 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataBuilder.java @@ -34,7 +34,7 @@ public class ProductCatalogDataBuilder implements Builder { private Boolean hasStagedChanges; /** - *

    true if the Product is published.

    + *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    * @param published value to be set * @return Builder */ @@ -126,7 +126,7 @@ public ProductCatalogDataBuilder hasStagedChanges(final Boolean hasStagedChanges } /** - *

    true if the Product is published.

    + *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    * @return published */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataImpl.java index 22d20d43212..4dd00136329 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductCatalogDataImpl.java @@ -51,7 +51,7 @@ public ProductCatalogDataImpl() { } /** - *

    true if the Product is published.

    + *

    If true, the current representation of the Product is retrievable in the Product Projection endpoints and indexed for Product Search.

    */ public Boolean getPublished() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraft.java index 1a4ea1d6e9d..9a9bbca3d2b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraft.java @@ -167,7 +167,7 @@ public interface ProductDraft public StateResourceIdentifier getState(); /** - *

    If true, the Product is published immediately to the current projection.

    + *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    * @return publish */ @@ -314,7 +314,7 @@ public interface ProductDraft public void setState(final StateResourceIdentifier state); /** - *

    If true, the Product is published immediately to the current projection.

    + *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    * @param publish value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftBuilder.java index 385bd88db9a..92ca8bf2ffd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftBuilder.java @@ -709,7 +709,7 @@ public ProductDraftBuilder state(@Nullable final com.commercetools.api.models.st } /** - *

    If true, the Product is published immediately to the current projection.

    + *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    * @param publish value to be set * @return Builder */ @@ -970,7 +970,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    If true, the Product is published immediately to the current projection.

    + *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    * @return publish */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftImpl.java index 9cee551a48e..1ab88807b44 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductDraftImpl.java @@ -230,7 +230,7 @@ public com.commercetools.api.models.state.StateResourceIdentifier getState() { } /** - *

    If true, the Product is published immediately to the current projection.

    + *

    If true, the platform sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search. You can also set this flag later using the Publish update action.

    */ public Boolean getPublish() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductPublishAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductPublishAction.java index 37537d8aa46..f4d75fac638 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductPublishAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductPublishAction.java @@ -14,7 +14,8 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

    Publishes product data from the Product's staged projection to its current projection. Produces the ProductPublished Message.

    + *

    Copies the product data from the Product's staged representation to its current representation and sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search.

    + *

    Produces the ProductPublished Message.

    * *
    * Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductPublishActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductPublishActionImpl.java index cbc4a7e3234..780b08f6329 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductPublishActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductPublishActionImpl.java @@ -17,7 +17,8 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    Publishes product data from the Product's staged projection to its current projection. Produces the ProductPublished Message.

    + *

    Copies the product data from the Product's staged representation to its current representation and sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search.

    + *

    Produces the ProductPublished Message.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductPublishActionImpl implements ProductPublishAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductUnpublishAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductUnpublishAction.java index e478fa0ff8d..4ece693bf01 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductUnpublishAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductUnpublishAction.java @@ -13,7 +13,8 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

    Removes the current projection of the Product. The staged projection is unaffected. To retrieve unpublished Products, the staged parameter must be set to false when querying/searching Product Projections. Produces the ProductUnpublished Message.

    + *

    Sets the published flag on the ProductCatalogData to false. This makes the current representation of a Product unavailable in Product Projection endpoints by default, and excludes it from Product Search. To retrieve unpublished Products on Product Projection endpoints, set parameter staged=true.

    + *

    Produces the ProductUnpublished Message.

    *

    When a Product is unpublished, any associated Line Items already present in a Cart remain unaffected and can still be ordered. To prevent this, do the following:

    *
      *
    • If the Product uses Embedded Prices, remove the Embedded Prices from the unpublished Product.
    • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductUnpublishActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductUnpublishActionImpl.java index 8b97ec65bc3..393f5aa6799 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductUnpublishActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductUnpublishActionImpl.java @@ -16,7 +16,8 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

      Removes the current projection of the Product. The staged projection is unaffected. To retrieve unpublished Products, the staged parameter must be set to false when querying/searching Product Projections. Produces the ProductUnpublished Message.

      + *

      Sets the published flag on the ProductCatalogData to false. This makes the current representation of a Product unavailable in Product Projection endpoints by default, and excludes it from Product Search. To retrieve unpublished Products on Product Projection endpoints, set parameter staged=true.

      + *

      Produces the ProductUnpublished Message.

      *

      When a Product is unpublished, any associated Line Items already present in a Cart remain unaffected and can still be ordered. To prevent this, do the following:

      *
        *
      • If the Product uses Embedded Prices, remove the Embedded Prices from the unpublished Product.
      • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java index eb121ae3cd1..9ff10e9709a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

        The query parameters used for data integration with Product Projection parameters.

        + *

        The query parameters used for the deprecated data integration with Product Projection parameters in Product Search.

        * *
        * Example to create an instance using the builder pattern @@ -26,6 +26,7 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ProductSearchProjectionParamsImpl.class) +@Deprecated public interface ProductSearchProjectionParams { /** @@ -37,7 +38,7 @@ public interface ProductSearchProjectionParams { public List getExpand(); /** - *

        Set to true to retrieve the staged Product Projection

        + *

        Set to true to retrieve the staged Product Projection

        * @return staged */ @@ -85,7 +86,7 @@ public interface ProductSearchProjectionParams { public String getPriceChannel(); /** - *

        Used for locale-based projection.

        + *

        Used for locale-based projection.

        * @return localeProjection */ @@ -93,7 +94,7 @@ public interface ProductSearchProjectionParams { public List getLocaleProjection(); /** - *

        key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

        + *

        key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

        *

        For Projects with active Product Selections, the API does not take the availability of the Product in the specified Store into account.

        *

        Product Tailoring modifies the product information returned in API responses. However, you can only specify query expressions for the original Product data, not for tailored data.

        * @return storeProjection @@ -118,7 +119,7 @@ public interface ProductSearchProjectionParams { public void setExpand(final List expand); /** - *

        Set to true to retrieve the staged Product Projection

        + *

        Set to true to retrieve the staged Product Projection

        * @param staged value to be set */ @@ -168,7 +169,7 @@ public interface ProductSearchProjectionParams { public void setPriceChannel(final String priceChannel); /** - *

        Used for locale-based projection.

        + *

        Used for locale-based projection.

        * @param localeProjection values to be set */ @@ -176,14 +177,14 @@ public interface ProductSearchProjectionParams { public void setLocaleProjection(final String... localeProjection); /** - *

        Used for locale-based projection.

        + *

        Used for locale-based projection.

        * @param localeProjection values to be set */ public void setLocaleProjection(final List localeProjection); /** - *

        key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

        + *

        key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

        *

        For Projects with active Product Selections, the API does not take the availability of the Product in the specified Store into account.

        *

        Product Tailoring modifies the product information returned in API responses. However, you can only specify query expressions for the original Product data, not for tailored data.

        * @param storeProjection value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java index 77114895e19..d4c2de19226 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java @@ -20,6 +20,7 @@ *
    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@Deprecated public class ProductSearchProjectionParamsBuilder implements Builder { @Nullable @@ -86,7 +87,7 @@ public ProductSearchProjectionParamsBuilder plusExpand(@Nullable final String... } /** - *

    Set to true to retrieve the staged Product Projection

    + *

    Set to true to retrieve the staged Product Projection

    * @param staged value to be set * @return Builder */ @@ -180,7 +181,7 @@ public ProductSearchProjectionParamsBuilder priceChannel(@Nullable final String } /** - *

    Used for locale-based projection.

    + *

    Used for locale-based projection.

    * @param localeProjection value to be set * @return Builder */ @@ -191,7 +192,7 @@ public ProductSearchProjectionParamsBuilder localeProjection(@Nullable final Str } /** - *

    Used for locale-based projection.

    + *

    Used for locale-based projection.

    * @param localeProjection value to be set * @return Builder */ @@ -203,7 +204,7 @@ public ProductSearchProjectionParamsBuilder localeProjection( } /** - *

    Used for locale-based projection.

    + *

    Used for locale-based projection.

    * @param localeProjection value to be set * @return Builder */ @@ -217,7 +218,7 @@ public ProductSearchProjectionParamsBuilder plusLocaleProjection(@Nullable final } /** - *

    key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

    + *

    key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

    *

    For Projects with active Product Selections, the API does not take the availability of the Product in the specified Store into account.

    *

    Product Tailoring modifies the product information returned in API responses. However, you can only specify query expressions for the original Product data, not for tailored data.

    * @param storeProjection value to be set @@ -240,7 +241,7 @@ public java.util.List getExpand() { } /** - *

    Set to true to retrieve the staged Product Projection

    + *

    Set to true to retrieve the staged Product Projection

    * @return staged */ @@ -300,7 +301,7 @@ public String getPriceChannel() { } /** - *

    Used for locale-based projection.

    + *

    Used for locale-based projection.

    * @return localeProjection */ @@ -310,7 +311,7 @@ public java.util.List getLocaleProjection() { } /** - *

    key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

    + *

    key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

    *

    For Projects with active Product Selections, the API does not take the availability of the Product in the specified Store into account.

    *

    Product Tailoring modifies the product information returned in API responses. However, you can only specify query expressions for the original Product data, not for tailored data.

    * @return storeProjection diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java index bd78396f95f..52f305e5795 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java @@ -17,9 +17,10 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    The query parameters used for data integration with Product Projection parameters.

    + *

    The query parameters used for the deprecated data integration with Product Projection parameters in Product Search.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@Deprecated public class ProductSearchProjectionParamsImpl implements ProductSearchProjectionParams, ModelBase { private java.util.List expand; @@ -78,7 +79,7 @@ public java.util.List getExpand() { } /** - *

    Set to true to retrieve the staged Product Projection

    + *

    Set to true to retrieve the staged Product Projection

    */ public Boolean getStaged() { @@ -126,7 +127,7 @@ public String getPriceChannel() { } /** - *

    Used for locale-based projection.

    + *

    Used for locale-based projection.

    */ public java.util.List getLocaleProjection() { @@ -134,7 +135,7 @@ public java.util.List getLocaleProjection() { } /** - *

    key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

    + *

    key of an existing Store. If the Store has defined languages, countries, distributionChannels, or supplyChannels, they are used for projections based on locale, price, and inventory.

    *

    For Projects with active Product Selections, the API does not take the availability of the Product in the specified Store into account.

    *

    Product Tailoring modifies the product information returned in API responses. However, you can only specify query expressions for the original Product data, not for tailored data.

    */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequest.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequest.java index 943a7d9f8c7..f3f58f4e3f7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequest.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequest.java @@ -74,10 +74,11 @@ public interface ProductSearchRequest { public Boolean getMarkMatchingVariants(); /** - *

    Controls data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    + *

    Controls deprecated data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    * @return productProjectionParameters */ @Valid + @Deprecated @JsonProperty("productProjectionParameters") public ProductSearchProjectionParams getProductProjectionParameters(); @@ -141,10 +142,10 @@ public interface ProductSearchRequest { public void setMarkMatchingVariants(final Boolean markMatchingVariants); /** - *

    Controls data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    + *

    Controls deprecated data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    * @param productProjectionParameters value to be set */ - + @Deprecated public void setProductProjectionParameters(final ProductSearchProjectionParams productProjectionParameters); /** diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestBuilder.java index 4a9a4cffeae..c37143c4b90 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestBuilder.java @@ -38,6 +38,7 @@ public class ProductSearchRequestBuilder implements BuilderControls data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    + *

    Controls deprecated data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    * @param builder function to build the productProjectionParameters value * @return Builder */ - + @Deprecated public ProductSearchRequestBuilder productProjectionParameters( Function builder) { this.productProjectionParameters = builder @@ -218,11 +219,11 @@ public ProductSearchRequestBuilder productProjectionParameters( } /** - *

    Controls data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    + *

    Controls deprecated data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    * @param builder function to build the productProjectionParameters value * @return Builder */ - + @Deprecated public ProductSearchRequestBuilder withProductProjectionParameters( Function builder) { this.productProjectionParameters = builder @@ -231,11 +232,11 @@ public ProductSearchRequestBuilder withProductProjectionParameters( } /** - *

    Controls data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    + *

    Controls deprecated data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    * @param productProjectionParameters value to be set * @return Builder */ - + @Deprecated public ProductSearchRequestBuilder productProjectionParameters( @Nullable final com.commercetools.api.models.product_search.ProductSearchProjectionParams productProjectionParameters) { this.productProjectionParameters = productProjectionParameters; @@ -424,10 +425,10 @@ public Boolean getMarkMatchingVariants() { } /** - *

    Controls data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    + *

    Controls deprecated data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    * @return productProjectionParameters */ - + @Deprecated @Nullable public com.commercetools.api.models.product_search.ProductSearchProjectionParams getProductProjectionParameters() { return this.productProjectionParameters; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestImpl.java index 41a90b47f69..0d7d9bf1ff6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestImpl.java @@ -32,6 +32,7 @@ public class ProductSearchRequestImpl implements ProductSearchRequest, ModelBase private Boolean markMatchingVariants; + @Deprecated private com.commercetools.api.models.product_search.ProductSearchProjectionParams productProjectionParameters; private java.util.List facets; @@ -106,9 +107,9 @@ public Boolean getMarkMatchingVariants() { } /** - *

    Controls data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    + *

    Controls deprecated data integration with Product Projection parameters. If not set, the result does not include the Product Projection.

    */ - + @Deprecated public com.commercetools.api.models.product_search.ProductSearchProjectionParams getProductProjectionParameters() { return this.productProjectionParameters; } @@ -153,6 +154,7 @@ public void setMarkMatchingVariants(final Boolean markMatchingVariants) { this.markMatchingVariants = markMatchingVariants; } + @Deprecated public void setProductProjectionParameters( final com.commercetools.api.models.product_search.ProductSearchProjectionParams productProjectionParameters) { this.productProjectionParameters = productProjectionParameters; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResult.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResult.java index 6f494f22d76..ddc968216b9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResult.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResult.java @@ -50,10 +50,11 @@ public interface ProductSearchResult { public ProductSearchMatchingVariants getMatchingVariants(); /** - *

    Projected data of the Product with id. Only present if data integration with Product Projection parameters is requested.

    + *

    Projected data of the Product with id. Only present if deprecated data integration with Product Projection parameters is requested.

    * @return productProjection */ @Valid + @Deprecated @JsonProperty("productProjection") public ProductProjection getProductProjection(); @@ -72,10 +73,10 @@ public interface ProductSearchResult { public void setMatchingVariants(final ProductSearchMatchingVariants matchingVariants); /** - *

    Projected data of the Product with id. Only present if data integration with Product Projection parameters is requested.

    + *

    Projected data of the Product with id. Only present if deprecated data integration with Product Projection parameters is requested.

    * @param productProjection value to be set */ - + @Deprecated public void setProductProjection(final ProductProjection productProjection); /** diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResultBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResultBuilder.java index 041a62c7251..f994706e3c1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResultBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResultBuilder.java @@ -29,6 +29,7 @@ public class ProductSearchResultBuilder implements Builder @Nullable private com.commercetools.api.models.product_search.ProductSearchMatchingVariants matchingVariants; + @Deprecated @Nullable private com.commercetools.api.models.product.ProductProjection productProjection; @@ -83,11 +84,11 @@ public ProductSearchResultBuilder matchingVariants( } /** - *

    Projected data of the Product with id. Only present if data integration with Product Projection parameters is requested.

    + *

    Projected data of the Product with id. Only present if deprecated data integration with Product Projection parameters is requested.

    * @param builder function to build the productProjection value * @return Builder */ - + @Deprecated public ProductSearchResultBuilder productProjection( Function builder) { this.productProjection = builder.apply(com.commercetools.api.models.product.ProductProjectionBuilder.of()) @@ -96,11 +97,11 @@ public ProductSearchResultBuilder productProjection( } /** - *

    Projected data of the Product with id. Only present if data integration with Product Projection parameters is requested.

    + *

    Projected data of the Product with id. Only present if deprecated data integration with Product Projection parameters is requested.

    * @param builder function to build the productProjection value * @return Builder */ - + @Deprecated public ProductSearchResultBuilder withProductProjection( Function builder) { this.productProjection = builder.apply(com.commercetools.api.models.product.ProductProjectionBuilder.of()); @@ -108,11 +109,11 @@ public ProductSearchResultBuilder withProductProjection( } /** - *

    Projected data of the Product with id. Only present if data integration with Product Projection parameters is requested.

    + *

    Projected data of the Product with id. Only present if deprecated data integration with Product Projection parameters is requested.

    * @param productProjection value to be set * @return Builder */ - + @Deprecated public ProductSearchResultBuilder productProjection( @Nullable final com.commercetools.api.models.product.ProductProjection productProjection) { this.productProjection = productProjection; @@ -139,10 +140,10 @@ public com.commercetools.api.models.product_search.ProductSearchMatchingVariants } /** - *

    Projected data of the Product with id. Only present if data integration with Product Projection parameters is requested.

    + *

    Projected data of the Product with id. Only present if deprecated data integration with Product Projection parameters is requested.

    * @return productProjection */ - + @Deprecated @Nullable public com.commercetools.api.models.product.ProductProjection getProductProjection() { return this.productProjection; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResultImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResultImpl.java index ca981f1308a..ab12a6711f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResultImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchResultImpl.java @@ -26,6 +26,7 @@ public class ProductSearchResultImpl implements ProductSearchResult, ModelBase { private com.commercetools.api.models.product_search.ProductSearchMatchingVariants matchingVariants; + @Deprecated private com.commercetools.api.models.product.ProductProjection productProjection; /** @@ -63,9 +64,9 @@ public com.commercetools.api.models.product_search.ProductSearchMatchingVariants } /** - *

    Projected data of the Product with id. Only present if data integration with Product Projection parameters is requested.

    + *

    Projected data of the Product with id. Only present if deprecated data integration with Product Projection parameters is requested.

    */ - + @Deprecated public com.commercetools.api.models.product.ProductProjection getProductProjection() { return this.productProjection; } @@ -79,6 +80,7 @@ public void setMatchingVariants( this.matchingVariants = matchingVariants; } + @Deprecated public void setProductProjection(final com.commercetools.api.models.product.ProductProjection productProjection) { this.productProjection = productProjection; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoring.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoring.java index 04d61a5a6c0..bd3ac9b675c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoring.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoring.java @@ -132,7 +132,7 @@ public interface ProductTailoring extends BaseResource { public Boolean getPublished(); /** - *

    Current (published) data of the ProductTailoring.

    + *

    Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.

    * @return current */ @NotNull @@ -141,7 +141,7 @@ public interface ProductTailoring extends BaseResource { public ProductTailoringData getCurrent(); /** - *

    Staged (unpublished) data of the ProductTailoring.

    + *

    Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.

    * @return staged */ @NotNull @@ -236,14 +236,14 @@ public interface ProductTailoring extends BaseResource { public void setPublished(final Boolean published); /** - *

    Current (published) data of the ProductTailoring.

    + *

    Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.

    * @param current value to be set */ public void setCurrent(final ProductTailoringData current); /** - *

    Staged (unpublished) data of the ProductTailoring.

    + *

    Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.

    * @param staged value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java index 3708142ff82..b50de095e74 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java @@ -273,7 +273,7 @@ public ProductTailoringBuilder published(final Boolean published) { } /** - *

    Current (published) data of the ProductTailoring.

    + *

    Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.

    * @param builder function to build the current value * @return Builder */ @@ -286,7 +286,7 @@ public ProductTailoringBuilder current( } /** - *

    Current (published) data of the ProductTailoring.

    + *

    Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.

    * @param builder function to build the current value * @return Builder */ @@ -298,7 +298,7 @@ public ProductTailoringBuilder withCurrent( } /** - *

    Current (published) data of the ProductTailoring.

    + *

    Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.

    * @param current value to be set * @return Builder */ @@ -310,7 +310,7 @@ public ProductTailoringBuilder current( } /** - *

    Staged (unpublished) data of the ProductTailoring.

    + *

    Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.

    * @param builder function to build the staged value * @return Builder */ @@ -323,7 +323,7 @@ public ProductTailoringBuilder staged( } /** - *

    Staged (unpublished) data of the ProductTailoring.

    + *

    Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.

    * @param builder function to build the staged value * @return Builder */ @@ -335,7 +335,7 @@ public ProductTailoringBuilder withStaged( } /** - *

    Staged (unpublished) data of the ProductTailoring.

    + *

    Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.

    * @param staged value to be set * @return Builder */ @@ -518,7 +518,7 @@ public Boolean getPublished() { } /** - *

    Current (published) data of the ProductTailoring.

    + *

    Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.

    * @return current */ @@ -527,7 +527,7 @@ public com.commercetools.api.models.product_tailoring.ProductTailoringData getCu } /** - *

    Staged (unpublished) data of the ProductTailoring.

    + *

    Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.

    * @return staged */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringImpl.java index 39faf26fb67..7eca4310582 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringImpl.java @@ -170,7 +170,7 @@ public Boolean getPublished() { } /** - *

    Current (published) data of the ProductTailoring.

    + *

    Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.

    */ public com.commercetools.api.models.product_tailoring.ProductTailoringData getCurrent() { @@ -178,7 +178,7 @@ public com.commercetools.api.models.product_tailoring.ProductTailoringData getCu } /** - *

    Staged (unpublished) data of the ProductTailoring.

    + *

    Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.

    */ public com.commercetools.api.models.product_tailoring.ProductTailoringData getStaged() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/ResourceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/ResourceTypeId.java index 27bb01064d9..227ebfbcffb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/ResourceTypeId.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/ResourceTypeId.java @@ -83,6 +83,12 @@ public interface ResourceTypeId extends JsonEnum {

    InterfaceInteraction on Payment

    */ ResourceTypeId PAYMENT_INTERFACE_INTERACTION = ResourceTypeIdEnum.PAYMENT_INTERFACE_INTERACTION; /** +

    PaymentMethod

    */ + ResourceTypeId PAYMENT_METHOD = ResourceTypeIdEnum.PAYMENT_METHOD; + /** +

    PaymentMethodInfo on Payment

    */ + ResourceTypeId PAYMENT_METHOD_INFO = ResourceTypeIdEnum.PAYMENT_METHOD_INFO; + /**

    Embedded Price on ProductVariant

    */ ResourceTypeId PRODUCT_PRICE = ResourceTypeIdEnum.PRODUCT_PRICE; /** @@ -236,6 +242,16 @@ enum ResourceTypeIdEnum implements ResourceTypeId { */ PAYMENT_INTERFACE_INTERACTION("payment-interface-interaction"), + /** + * payment-method + */ + PAYMENT_METHOD("payment-method"), + + /** + * payment-method-info + */ + PAYMENT_METHOD_INFO("payment-method-info"), + /** * product-price */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitCustomerGroupAssignmentAddedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitCustomerGroupAssignmentAddedMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..7b376de4a28 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitCustomerGroupAssignmentAddedMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class BusinessUnitCustomerGroupAssignmentAddedMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private BusinessUnitCustomerGroupAssignmentAddedMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static BusinessUnitCustomerGroupAssignmentAddedMessageExpansionBuilderDsl of() { + return new BusinessUnitCustomerGroupAssignmentAddedMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static BusinessUnitCustomerGroupAssignmentAddedMessageExpansionBuilderDsl of(final List path) { + return new BusinessUnitCustomerGroupAssignmentAddedMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitCustomerGroupAssignmentRemovedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitCustomerGroupAssignmentRemovedMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..c0dc2493356 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitCustomerGroupAssignmentRemovedMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class BusinessUnitCustomerGroupAssignmentRemovedMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private BusinessUnitCustomerGroupAssignmentRemovedMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static BusinessUnitCustomerGroupAssignmentRemovedMessageExpansionBuilderDsl of() { + return new BusinessUnitCustomerGroupAssignmentRemovedMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static BusinessUnitCustomerGroupAssignmentRemovedMessageExpansionBuilderDsl of(final List path) { + return new BusinessUnitCustomerGroupAssignmentRemovedMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitCustomerGroupAssignmentsSetMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitCustomerGroupAssignmentsSetMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..2d00e9ac44f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitCustomerGroupAssignmentsSetMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class BusinessUnitCustomerGroupAssignmentsSetMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private BusinessUnitCustomerGroupAssignmentsSetMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static BusinessUnitCustomerGroupAssignmentsSetMessageExpansionBuilderDsl of() { + return new BusinessUnitCustomerGroupAssignmentsSetMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static BusinessUnitCustomerGroupAssignmentsSetMessageExpansionBuilderDsl of(final List path) { + return new BusinessUnitCustomerGroupAssignmentsSetMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerBillingAddressAddedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerBillingAddressAddedMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..78c28af303e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerBillingAddressAddedMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class CustomerBillingAddressAddedMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private CustomerBillingAddressAddedMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static CustomerBillingAddressAddedMessageExpansionBuilderDsl of() { + return new CustomerBillingAddressAddedMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static CustomerBillingAddressAddedMessageExpansionBuilderDsl of(final List path) { + return new CustomerBillingAddressAddedMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerBillingAddressRemovedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerBillingAddressRemovedMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..8aa642a0d8a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerBillingAddressRemovedMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class CustomerBillingAddressRemovedMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private CustomerBillingAddressRemovedMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static CustomerBillingAddressRemovedMessageExpansionBuilderDsl of() { + return new CustomerBillingAddressRemovedMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static CustomerBillingAddressRemovedMessageExpansionBuilderDsl of(final List path) { + return new CustomerBillingAddressRemovedMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerExternalIdSetMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerExternalIdSetMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..b2f391d6a33 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerExternalIdSetMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class CustomerExternalIdSetMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private CustomerExternalIdSetMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static CustomerExternalIdSetMessageExpansionBuilderDsl of() { + return new CustomerExternalIdSetMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static CustomerExternalIdSetMessageExpansionBuilderDsl of(final List path) { + return new CustomerExternalIdSetMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerShippingAddressAddedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerShippingAddressAddedMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..e19f28b5569 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerShippingAddressAddedMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class CustomerShippingAddressAddedMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private CustomerShippingAddressAddedMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static CustomerShippingAddressAddedMessageExpansionBuilderDsl of() { + return new CustomerShippingAddressAddedMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static CustomerShippingAddressAddedMessageExpansionBuilderDsl of(final List path) { + return new CustomerShippingAddressAddedMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerShippingAddressRemovedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerShippingAddressRemovedMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..91f3e260ee3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/CustomerShippingAddressRemovedMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class CustomerShippingAddressRemovedMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private CustomerShippingAddressRemovedMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static CustomerShippingAddressRemovedMessageExpansionBuilderDsl of() { + return new CustomerShippingAddressRemovedMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static CustomerShippingAddressRemovedMessageExpansionBuilderDsl of(final List path) { + return new CustomerShippingAddressRemovedMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/RecurringOrderCreatedMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/RecurringOrderCreatedMessageExpansionBuilderDsl.java index 6e8f9567c0a..ef3e67c7eee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/RecurringOrderCreatedMessageExpansionBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/RecurringOrderCreatedMessageExpansionBuilderDsl.java @@ -44,8 +44,8 @@ public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuild .of(appendOne(path, "resource")); } - public com.commercetools.api.predicates.expansion.recurring_order.RecurringOrderExpansionBuilderDsl order() { + public com.commercetools.api.predicates.expansion.recurring_order.RecurringOrderExpansionBuilderDsl recurringOrder() { return com.commercetools.api.predicates.expansion.recurring_order.RecurringOrderExpansionBuilderDsl - .of(appendOne(path, "order")); + .of(appendOne(path, "recurringOrder")); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl.java new file mode 100644 index 00000000000..4b74123336c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.business_unit; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl { + public BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl() { + } + + public static BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl of() { + return new BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentDraftQueryBuilderDsl.of())), + BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitDraftQueryBuilderDsl.java index 6906fce5aa8..43af9740e77 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitDraftQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitDraftQueryBuilderDsl.java @@ -138,6 +138,21 @@ public CombinationQueryPredicate custom( BusinessUnitDraftQueryBuilderDsl::of); } + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentDraftQueryBuilderDsl.of())), + BusinessUnitDraftQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitDraftQueryBuilderDsl::of)); + } + public CombinationQueryPredicate asCompany( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitQueryBuilderDsl.java index 51c20998130..47eb456d9f3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitQueryBuilderDsl.java @@ -125,6 +125,22 @@ public CombinationQueryPredicate custom( BusinessUnitQueryBuilderDsl::of); } + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + BusinessUnitQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitQueryBuilderDsl::of)); + } + public CombinationQueryPredicate addresses( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl.java new file mode 100644 index 00000000000..b361a59b4f2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl.java @@ -0,0 +1,33 @@ + +package com.commercetools.api.predicates.query.business_unit; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl { + public BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl() { + } + + public static BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl of() { + return new BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroup( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroup")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer_group.CustomerGroupResourceIdentifierQueryBuilderDsl + .of())), + BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl.java new file mode 100644 index 00000000000..3528784a251 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl.java @@ -0,0 +1,37 @@ + +package com.commercetools.api.predicates.query.business_unit; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl { + public BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl() { + } + + public static BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl of() { + return new BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentDraftQueryBuilderDsl.of())), + BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitUpdateActionQueryBuilderDsl.java index dc8fe219f6c..011555bbef6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitUpdateActionQueryBuilderDsl.java @@ -42,6 +42,14 @@ public CombinationQueryPredicate asAddB BusinessUnitUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asAddCustomerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitAddCustomerGroupAssignmentActionQueryBuilderDsl + .of()), + BusinessUnitUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asAddShippingAddressId( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( @@ -133,6 +141,14 @@ public CombinationQueryPredicate asRemo BusinessUnitUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asRemoveCustomerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitRemoveCustomerGroupAssignmentActionQueryBuilderDsl + .of()), + BusinessUnitUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asRemoveShippingAddressId( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( @@ -193,6 +209,14 @@ public CombinationQueryPredicate asSetC BusinessUnitUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asSetCustomerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitSetCustomerGroupAssignmentsActionQueryBuilderDsl + .of()), + BusinessUnitUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asSetDefaultBillingAddress( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/CompanyDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/CompanyDraftQueryBuilderDsl.java index 864c3bc27be..957b9573a01 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/CompanyDraftQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/CompanyDraftQueryBuilderDsl.java @@ -138,4 +138,19 @@ public CombinationQueryPredicate custom( CompanyDraftQueryBuilderDsl::of); } + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentDraftQueryBuilderDsl.of())), + CompanyDraftQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, CompanyDraftQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/CompanyQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/CompanyQueryBuilderDsl.java index 5e0ee1031b9..8d13f42d70e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/CompanyQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/CompanyQueryBuilderDsl.java @@ -125,6 +125,22 @@ public CombinationQueryPredicate custom( CompanyQueryBuilderDsl::of); } + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + CompanyQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, CompanyQueryBuilderDsl::of)); + } + public CombinationQueryPredicate addresses( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/DivisionDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/DivisionDraftQueryBuilderDsl.java index f3464c86e4e..84c3dc2c327 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/DivisionDraftQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/DivisionDraftQueryBuilderDsl.java @@ -138,6 +138,21 @@ public CombinationQueryPredicate custom( DivisionDraftQueryBuilderDsl::of); } + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentDraftQueryBuilderDsl.of())), + DivisionDraftQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, DivisionDraftQueryBuilderDsl::of)); + } + public CombinationQueryPredicate parentUnit( Function> fn) { return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/DivisionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/DivisionQueryBuilderDsl.java index 9927957aafb..cc93d9f9e25 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/DivisionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/DivisionQueryBuilderDsl.java @@ -125,6 +125,22 @@ public CombinationQueryPredicate custom( DivisionQueryBuilderDsl::of); } + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + DivisionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, DivisionQueryBuilderDsl::of)); + } + public CombinationQueryPredicate addresses( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl.java deleted file mode 100644 index 906f1469374..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl.java +++ /dev/null @@ -1,44 +0,0 @@ - -package com.commercetools.api.predicates.query.me; - -import java.util.function.Function; - -import com.commercetools.api.predicates.query.*; - -public class MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl { - public MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl() { - } - - public static MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl of() { - return new MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl(); - } - - public StringComparisonPredicateBuilder action() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), - p -> new CombinationQueryPredicate<>(p, MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl::of)); - } - - public StringComparisonPredicateBuilder customLineItemId() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customLineItemId")), - p -> new CombinationQueryPredicate<>(p, MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl::of)); - } - - public StringComparisonPredicateBuilder customLineItemKey() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customLineItemKey")), - p -> new CombinationQueryPredicate<>(p, MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl::of)); - } - - public CombinationQueryPredicate recurrenceInfo( - Function> fn) { - return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() - .parent(ConstantQueryPredicate.of().constant("recurrenceInfo")) - .inner(fn.apply( - com.commercetools.api.predicates.query.recurring_order.CustomLineItemRecurrenceInfoDraftQueryBuilderDsl - .of())), - MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl::of); - } - -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl.java deleted file mode 100644 index b2fc08bd348..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl.java +++ /dev/null @@ -1,44 +0,0 @@ - -package com.commercetools.api.predicates.query.me; - -import java.util.function.Function; - -import com.commercetools.api.predicates.query.*; - -public class MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl { - public MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl() { - } - - public static MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl of() { - return new MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl(); - } - - public StringComparisonPredicateBuilder action() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), - p -> new CombinationQueryPredicate<>(p, MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl::of)); - } - - public StringComparisonPredicateBuilder lineItemId() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lineItemId")), - p -> new CombinationQueryPredicate<>(p, MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl::of)); - } - - public StringComparisonPredicateBuilder lineItemKey() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lineItemKey")), - p -> new CombinationQueryPredicate<>(p, MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl::of)); - } - - public CombinationQueryPredicate recurrenceInfo( - Function> fn) { - return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() - .parent(ConstantQueryPredicate.of().constant("recurrenceInfo")) - .inner(fn.apply( - com.commercetools.api.predicates.query.recurring_order.LineItemRecurrenceInfoDraftQueryBuilderDsl - .of())), - MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl::of); - } - -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartUpdateActionQueryBuilderDsl.java index 2c78f7015ba..58365b49cbb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartUpdateActionQueryBuilderDsl.java @@ -140,13 +140,6 @@ public CombinationQueryPredicate asSetCustomF MyCartUpdateActionQueryBuilderDsl::of); } - public CombinationQueryPredicate asSetCustomLineItemRecurrenceInfo( - Function> fn) { - return new CombinationQueryPredicate<>(fn.apply( - com.commercetools.api.predicates.query.me.MyCartSetCustomLineItemRecurrenceInfoActionQueryBuilderDsl.of()), - MyCartUpdateActionQueryBuilderDsl::of); - } - public CombinationQueryPredicate asSetCustomType( Function> fn) { return new CombinationQueryPredicate<>( @@ -190,14 +183,6 @@ public CombinationQueryPredicate asSetLineIte MyCartUpdateActionQueryBuilderDsl::of); } - public CombinationQueryPredicate asSetLineItemRecurrenceInfo( - Function> fn) { - return new CombinationQueryPredicate<>( - fn.apply( - com.commercetools.api.predicates.query.me.MyCartSetLineItemRecurrenceInfoActionQueryBuilderDsl.of()), - MyCartUpdateActionQueryBuilderDsl::of); - } - public CombinationQueryPredicate asSetLineItemShippingDetails( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressChangedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressChangedMessagePayloadQueryBuilderDsl.java index a797673422e..8f860a556c2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressChangedMessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressChangedMessagePayloadQueryBuilderDsl.java @@ -28,4 +28,10 @@ public CombinationQueryPredicate addressRoles() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("addressRoles")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitAddressChangedMessagePayloadQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressChangedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressChangedMessageQueryBuilderDsl.java index 77ae98ba778..e0ac73b5579 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressChangedMessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressChangedMessageQueryBuilderDsl.java @@ -100,4 +100,10 @@ public CombinationQueryPredicate addressRoles() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("addressRoles")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitAddressChangedMessageQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressRemovedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressRemovedMessagePayloadQueryBuilderDsl.java index 63517d0b942..97a8c00b481 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressRemovedMessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressRemovedMessagePayloadQueryBuilderDsl.java @@ -28,4 +28,10 @@ public CombinationQueryPredicate addressRoles() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("addressRoles")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitAddressRemovedMessagePayloadQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressRemovedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressRemovedMessageQueryBuilderDsl.java index 6fd967157b9..5e60dcb29dd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressRemovedMessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitAddressRemovedMessageQueryBuilderDsl.java @@ -100,4 +100,10 @@ public CombinationQueryPredicate addressRoles() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("addressRoles")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitAddressRemovedMessageQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..a8052f88e73 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl { + public BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl() { + } + + public static BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl of() { + return new BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..7a2981bf473 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl { + public BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl() { + } + + public static BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl of() { + return new BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..2b49f30e625 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,32 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl { + public BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl() { + } + + public static BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl of() { + return new BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..42bc818db7f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl { + public BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl() { + } + + public static BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl of() { + return new BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate customerGroupAssignment( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignment")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..b930eed52a5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,56 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl { + public BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl() { + } + + public static BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl of() { + return new BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate oldCustomerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("oldCustomerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder oldCustomerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldCustomerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, + BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..1bcea9bd3ee --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl.java @@ -0,0 +1,126 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl { + public BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl() { + } + + public static BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl of() { + return new BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate customerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("customerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder customerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("customerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate oldCustomerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("oldCustomerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder oldCustomerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldCustomerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressChangedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressChangedMessagePayloadQueryBuilderDsl.java index c0bbaf16f38..21d51f25c37 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressChangedMessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressChangedMessagePayloadQueryBuilderDsl.java @@ -28,4 +28,10 @@ public CombinationQueryPredicate addressRoles() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("addressRoles")), + p -> new CombinationQueryPredicate<>(p, CustomerAddressChangedMessagePayloadQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressChangedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressChangedMessageQueryBuilderDsl.java index a51efb1407b..13459c1e4b8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressChangedMessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressChangedMessageQueryBuilderDsl.java @@ -100,4 +100,10 @@ public CombinationQueryPredicate a CustomerAddressChangedMessageQueryBuilderDsl::of); } + public StringCollectionPredicateBuilder addressRoles() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("addressRoles")), + p -> new CombinationQueryPredicate<>(p, CustomerAddressChangedMessageQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressRemovedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressRemovedMessagePayloadQueryBuilderDsl.java index 0dd3e24991f..6025c218e6c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressRemovedMessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressRemovedMessagePayloadQueryBuilderDsl.java @@ -28,4 +28,10 @@ public CombinationQueryPredicate addressRoles() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("addressRoles")), + p -> new CombinationQueryPredicate<>(p, CustomerAddressRemovedMessagePayloadQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressRemovedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressRemovedMessageQueryBuilderDsl.java index 99f8662e1e7..036cfb78122 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressRemovedMessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerAddressRemovedMessageQueryBuilderDsl.java @@ -100,4 +100,10 @@ public CombinationQueryPredicate a CustomerAddressRemovedMessageQueryBuilderDsl::of); } + public StringCollectionPredicateBuilder addressRoles() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("addressRoles")), + p -> new CombinationQueryPredicate<>(p, CustomerAddressRemovedMessageQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..e32dbcd7907 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl { + public CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl() { + } + + public static CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl of() { + return new CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate address( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("address")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.AddressQueryBuilderDsl.of())), + CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressAddedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressAddedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..0f49750297a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressAddedMessageQueryBuilderDsl.java @@ -0,0 +1,103 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerBillingAddressAddedMessageQueryBuilderDsl { + public CustomerBillingAddressAddedMessageQueryBuilderDsl() { + } + + public static CustomerBillingAddressAddedMessageQueryBuilderDsl of() { + return new CustomerBillingAddressAddedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressAddedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + CustomerBillingAddressAddedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + CustomerBillingAddressAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + CustomerBillingAddressAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressAddedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + CustomerBillingAddressAddedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate address( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("address")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.AddressQueryBuilderDsl.of())), + CustomerBillingAddressAddedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..93ce2ef868f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl { + public CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl() { + } + + public static CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl of() { + return new CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate address( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("address")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.AddressQueryBuilderDsl.of())), + CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressRemovedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressRemovedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..efcc2cd49ec --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerBillingAddressRemovedMessageQueryBuilderDsl.java @@ -0,0 +1,103 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerBillingAddressRemovedMessageQueryBuilderDsl { + public CustomerBillingAddressRemovedMessageQueryBuilderDsl() { + } + + public static CustomerBillingAddressRemovedMessageQueryBuilderDsl of() { + return new CustomerBillingAddressRemovedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + CustomerBillingAddressRemovedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + CustomerBillingAddressRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + CustomerBillingAddressRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerBillingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + CustomerBillingAddressRemovedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate address( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("address")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.AddressQueryBuilderDsl.of())), + CustomerBillingAddressRemovedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerDeletedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerDeletedMessagePayloadQueryBuilderDsl.java index 97a137cd1e8..b563020b0ca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerDeletedMessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerDeletedMessagePayloadQueryBuilderDsl.java @@ -17,4 +17,10 @@ public StringComparisonPredicateBuilder new CombinationQueryPredicate<>(p, CustomerDeletedMessagePayloadQueryBuilderDsl::of)); } + public StringComparisonPredicateBuilder email() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("email")), + p -> new CombinationQueryPredicate<>(p, CustomerDeletedMessagePayloadQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerDeletedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerDeletedMessageQueryBuilderDsl.java index 477c386de09..db902333e94 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerDeletedMessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerDeletedMessageQueryBuilderDsl.java @@ -91,4 +91,10 @@ public CombinationQueryPredicate resource CustomerDeletedMessageQueryBuilderDsl::of); } + public StringComparisonPredicateBuilder email() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("email")), + p -> new CombinationQueryPredicate<>(p, CustomerDeletedMessageQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerEmailChangedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerEmailChangedMessagePayloadQueryBuilderDsl.java index 5a56bd018ed..d843c716679 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerEmailChangedMessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerEmailChangedMessagePayloadQueryBuilderDsl.java @@ -23,4 +23,10 @@ public StringComparisonPredicateBuilder new CombinationQueryPredicate<>(p, CustomerEmailChangedMessagePayloadQueryBuilderDsl::of)); } + public StringComparisonPredicateBuilder oldEmail() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldEmail")), + p -> new CombinationQueryPredicate<>(p, CustomerEmailChangedMessagePayloadQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerEmailChangedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerEmailChangedMessageQueryBuilderDsl.java index 29d7de1f57f..d44f465e9f6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerEmailChangedMessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerEmailChangedMessageQueryBuilderDsl.java @@ -97,4 +97,10 @@ public StringComparisonPredicateBuilder new CombinationQueryPredicate<>(p, CustomerEmailChangedMessageQueryBuilderDsl::of)); } + public StringComparisonPredicateBuilder oldEmail() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldEmail")), + p -> new CombinationQueryPredicate<>(p, CustomerEmailChangedMessageQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerExternalIdSetMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerExternalIdSetMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..c0fa8f93db9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerExternalIdSetMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.message; + +import com.commercetools.api.predicates.query.*; + +public class CustomerExternalIdSetMessagePayloadQueryBuilderDsl { + public CustomerExternalIdSetMessagePayloadQueryBuilderDsl() { + } + + public static CustomerExternalIdSetMessagePayloadQueryBuilderDsl of() { + return new CustomerExternalIdSetMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessagePayloadQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder externalId() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("externalId")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessagePayloadQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerExternalIdSetMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerExternalIdSetMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..b42d1cae5a6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerExternalIdSetMessageQueryBuilderDsl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerExternalIdSetMessageQueryBuilderDsl { + public CustomerExternalIdSetMessageQueryBuilderDsl() { + } + + public static CustomerExternalIdSetMessageQueryBuilderDsl of() { + return new CustomerExternalIdSetMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + CustomerExternalIdSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + CustomerExternalIdSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + CustomerExternalIdSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + CustomerExternalIdSetMessageQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder externalId() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("externalId")), + p -> new CombinationQueryPredicate<>(p, CustomerExternalIdSetMessageQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java index 08c05f46195..a9f502dee93 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl.java @@ -35,4 +35,20 @@ public CollectionPredicateBuilder new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of)); } + public CombinationQueryPredicate oldCustomerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("oldCustomerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder oldCustomerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldCustomerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.java index 67057b69fc2..9234a58efe1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerGroupAssignmentsSetMessageQueryBuilderDsl.java @@ -107,4 +107,20 @@ public CollectionPredicateBuilder new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); } + public CombinationQueryPredicate oldCustomerGroupAssignments( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("oldCustomerGroupAssignments")) + .inner(fn.apply( + com.commercetools.api.predicates.query.customer.CustomerGroupAssignmentQueryBuilderDsl.of())), + CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder oldCustomerGroupAssignments() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldCustomerGroupAssignments")), + p -> new CombinationQueryPredicate<>(p, CustomerGroupAssignmentsSetMessageQueryBuilderDsl::of)); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..a3681a7bf39 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl { + public CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl() { + } + + public static CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl of() { + return new CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate address( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("address")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.AddressQueryBuilderDsl.of())), + CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressAddedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressAddedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..a149497829c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressAddedMessageQueryBuilderDsl.java @@ -0,0 +1,103 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerShippingAddressAddedMessageQueryBuilderDsl { + public CustomerShippingAddressAddedMessageQueryBuilderDsl() { + } + + public static CustomerShippingAddressAddedMessageQueryBuilderDsl of() { + return new CustomerShippingAddressAddedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressAddedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + CustomerShippingAddressAddedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + CustomerShippingAddressAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + CustomerShippingAddressAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressAddedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressAddedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + CustomerShippingAddressAddedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate address( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("address")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.AddressQueryBuilderDsl.of())), + CustomerShippingAddressAddedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..5f43f7b713b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl { + public CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl() { + } + + public static CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl of() { + return new CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate address( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("address")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.AddressQueryBuilderDsl.of())), + CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressRemovedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressRemovedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..f7201a14649 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CustomerShippingAddressRemovedMessageQueryBuilderDsl.java @@ -0,0 +1,103 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CustomerShippingAddressRemovedMessageQueryBuilderDsl { + public CustomerShippingAddressRemovedMessageQueryBuilderDsl() { + } + + public static CustomerShippingAddressRemovedMessageQueryBuilderDsl of() { + return new CustomerShippingAddressRemovedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + CustomerShippingAddressRemovedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + CustomerShippingAddressRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + CustomerShippingAddressRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CustomerShippingAddressRemovedMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + CustomerShippingAddressRemovedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate address( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("address")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.AddressQueryBuilderDsl.of())), + CustomerShippingAddressRemovedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java index 70eeecbd878..0703d89e2cc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java @@ -349,6 +349,30 @@ public CombinationQueryPredicate asBusinessUnitCu MessagePayloadQueryBuilderDsl::of); } + public CombinationQueryPredicate asBusinessUnitCustomerGroupAssignmentAdded( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.BusinessUnitCustomerGroupAssignmentAddedMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asBusinessUnitCustomerGroupAssignmentRemoved( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asBusinessUnitCustomerGroupAssignmentsSet( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.BusinessUnitCustomerGroupAssignmentsSetMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + public CombinationQueryPredicate asBusinessUnitDefaultBillingAddressSet( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( @@ -585,6 +609,22 @@ public CombinationQueryPredicate asCustomerAddres MessagePayloadQueryBuilderDsl::of); } + public CombinationQueryPredicate asCustomerBillingAddressAdded( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerBillingAddressAddedMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCustomerBillingAddressRemoved( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerBillingAddressRemovedMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCustomerCompanyNameSet( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( @@ -690,6 +730,14 @@ public CombinationQueryPredicate asCustomerEmailV MessagePayloadQueryBuilderDsl::of); } + public CombinationQueryPredicate asCustomerExternalIdSet( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.CustomerExternalIdSetMessagePayloadQueryBuilderDsl.of()), + MessagePayloadQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCustomerFirstNameSet( Function> fn) { return new CombinationQueryPredicate<>( @@ -792,6 +840,22 @@ public CombinationQueryPredicate asCustomerPasswo MessagePayloadQueryBuilderDsl::of); } + public CombinationQueryPredicate asCustomerShippingAddressAdded( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerShippingAddressAddedMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCustomerShippingAddressRemoved( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerShippingAddressRemovedMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCustomerStoresSet( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java index db8e67dd215..eeda67732a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java @@ -408,6 +408,30 @@ public CombinationQueryPredicate asBusinessUnitCustomTyp MessageQueryBuilderDsl::of); } + public CombinationQueryPredicate asBusinessUnitCustomerGroupAssignmentAdded( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.BusinessUnitCustomerGroupAssignmentAddedMessageQueryBuilderDsl + .of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asBusinessUnitCustomerGroupAssignmentRemoved( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.BusinessUnitCustomerGroupAssignmentRemovedMessageQueryBuilderDsl + .of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asBusinessUnitCustomerGroupAssignmentsSet( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.BusinessUnitCustomerGroupAssignmentsSetMessageQueryBuilderDsl + .of()), + MessageQueryBuilderDsl::of); + } + public CombinationQueryPredicate asBusinessUnitDefaultBillingAddressSet( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( @@ -637,6 +661,21 @@ public CombinationQueryPredicate asCustomerAddressRemove MessageQueryBuilderDsl::of); } + public CombinationQueryPredicate asCustomerBillingAddressAdded( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.CustomerBillingAddressAddedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCustomerBillingAddressRemoved( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerBillingAddressRemovedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCustomerCompanyNameSet( Function> fn) { return new CombinationQueryPredicate<>( @@ -741,6 +780,13 @@ public CombinationQueryPredicate asCustomerEmailVerified MessageQueryBuilderDsl::of); } + public CombinationQueryPredicate asCustomerExternalIdSet( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.message.CustomerExternalIdSetMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCustomerFirstNameSet( Function> fn) { return new CombinationQueryPredicate<>( @@ -836,6 +882,21 @@ public CombinationQueryPredicate asCustomerPasswordUpdat MessageQueryBuilderDsl::of); } + public CombinationQueryPredicate asCustomerShippingAddressAdded( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.CustomerShippingAddressAddedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCustomerShippingAddressRemoved( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CustomerShippingAddressRemovedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCustomerStoresSet( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/RecurringOrderCreatedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/RecurringOrderCreatedMessagePayloadQueryBuilderDsl.java index c25a1d4d745..5c0ab6dce22 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/RecurringOrderCreatedMessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/RecurringOrderCreatedMessagePayloadQueryBuilderDsl.java @@ -19,11 +19,11 @@ public StringComparisonPredicateBuilder new CombinationQueryPredicate<>(p, RecurringOrderCreatedMessagePayloadQueryBuilderDsl::of)); } - public CombinationQueryPredicate order( + public CombinationQueryPredicate recurringOrder( Function> fn) { return new CombinationQueryPredicate<>( ContainerQueryPredicate.of() - .parent(ConstantQueryPredicate.of().constant("order")) + .parent(ConstantQueryPredicate.of().constant("recurringOrder")) .inner(fn.apply( com.commercetools.api.predicates.query.recurring_order.RecurringOrderQueryBuilderDsl.of())), RecurringOrderCreatedMessagePayloadQueryBuilderDsl::of); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/RecurringOrderCreatedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/RecurringOrderCreatedMessageQueryBuilderDsl.java index e478e9894f5..d51d5888c3c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/RecurringOrderCreatedMessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/RecurringOrderCreatedMessageQueryBuilderDsl.java @@ -91,11 +91,11 @@ public CombinationQueryPredicate re RecurringOrderCreatedMessageQueryBuilderDsl::of); } - public CombinationQueryPredicate order( + public CombinationQueryPredicate recurringOrder( Function> fn) { return new CombinationQueryPredicate<>( ContainerQueryPredicate.of() - .parent(ConstantQueryPredicate.of().constant("order")) + .parent(ConstantQueryPredicate.of().constant("recurringOrder")) .inner(fn.apply( com.commercetools.api.predicates.query.recurring_order.RecurringOrderQueryBuilderDsl.of())), RecurringOrderCreatedMessageQueryBuilderDsl::of); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java index 506287947ed..42d8fabfb5a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java @@ -3,6 +3,7 @@ import com.commercetools.api.predicates.query.*; +@Deprecated public class ProductSearchProjectionParamsQueryBuilderDsl { public ProductSearchProjectionParamsQueryBuilderDsl() { } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentActionTest.java new file mode 100644 index 00000000000..28c24bd8eee --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitAddCustomerGroupAssignmentActionTest.java @@ -0,0 +1,34 @@ + +package com.commercetools.api.models.business_unit; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BusinessUnitAddCustomerGroupAssignmentActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BusinessUnitAddCustomerGroupAssignmentActionBuilder builder) { + BusinessUnitAddCustomerGroupAssignmentAction businessUnitAddCustomerGroupAssignmentAction = builder + .buildUnchecked(); + Assertions.assertThat(businessUnitAddCustomerGroupAssignmentAction) + .isInstanceOf(BusinessUnitAddCustomerGroupAssignmentAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "customerGroupAssignment", + BusinessUnitAddCustomerGroupAssignmentAction.builder() + .customerGroupAssignment( + new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + BusinessUnitAddCustomerGroupAssignmentAction value = BusinessUnitAddCustomerGroupAssignmentAction.of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionTest.java new file mode 100644 index 00000000000..d6098999e1e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitRemoveCustomerGroupAssignmentActionTest.java @@ -0,0 +1,34 @@ + +package com.commercetools.api.models.business_unit; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BusinessUnitRemoveCustomerGroupAssignmentActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BusinessUnitRemoveCustomerGroupAssignmentActionBuilder builder) { + BusinessUnitRemoveCustomerGroupAssignmentAction businessUnitRemoveCustomerGroupAssignmentAction = builder + .buildUnchecked(); + Assertions.assertThat(businessUnitRemoveCustomerGroupAssignmentAction) + .isInstanceOf(BusinessUnitRemoveCustomerGroupAssignmentAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "customerGroup", + BusinessUnitRemoveCustomerGroupAssignmentAction.builder() + .customerGroup( + new com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierImpl()) } }; + } + + @Test + public void customerGroup() { + BusinessUnitRemoveCustomerGroupAssignmentAction value = BusinessUnitRemoveCustomerGroupAssignmentAction.of(); + value.setCustomerGroup(new com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierImpl()); + Assertions.assertThat(value.getCustomerGroup()) + .isEqualTo(new com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifierImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionTest.java new file mode 100644 index 00000000000..9d80fa72cd7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetCustomerGroupAssignmentsActionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.business_unit; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BusinessUnitSetCustomerGroupAssignmentsActionTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BusinessUnitSetCustomerGroupAssignmentsActionBuilder builder) { + BusinessUnitSetCustomerGroupAssignmentsAction businessUnitSetCustomerGroupAssignmentsAction = builder + .buildUnchecked(); + Assertions.assertThat(businessUnitSetCustomerGroupAssignmentsAction) + .isInstanceOf(BusinessUnitSetCustomerGroupAssignmentsAction.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "customerGroupAssignments", + BusinessUnitSetCustomerGroupAssignmentsAction.builder() + .customerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl())) } }; + } + + @Test + public void customerGroupAssignments() { + BusinessUnitSetCustomerGroupAssignmentsAction value = BusinessUnitSetCustomerGroupAssignmentsAction.of(); + value.setCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl())); + Assertions.assertThat(value.getCustomerGroupAssignments()) + .isEqualTo(Collections + .singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentDraftImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoActionTest.java deleted file mode 100644 index 3e208d978af..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartSetCustomLineItemRecurrenceInfoActionTest.java +++ /dev/null @@ -1,53 +0,0 @@ - -package com.commercetools.api.models.me; - -import org.assertj.core.api.Assertions; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.MethodSource; - -public class MyCartSetCustomLineItemRecurrenceInfoActionTest { - - @ParameterizedTest(name = "#{index} with {0}") - @MethodSource("objectBuilder") - public void buildUnchecked(String name, MyCartSetCustomLineItemRecurrenceInfoActionBuilder builder) { - MyCartSetCustomLineItemRecurrenceInfoAction myCartSetCustomLineItemRecurrenceInfoAction = builder - .buildUnchecked(); - Assertions.assertThat(myCartSetCustomLineItemRecurrenceInfoAction) - .isInstanceOf(MyCartSetCustomLineItemRecurrenceInfoAction.class); - } - - public static Object[][] objectBuilder() { - return new Object[][] { - new Object[] { "customLineItemId", - MyCartSetCustomLineItemRecurrenceInfoAction.builder().customLineItemId("customLineItemId") }, - new Object[] { "customLineItemKey", - MyCartSetCustomLineItemRecurrenceInfoAction.builder().customLineItemKey("customLineItemKey") }, - new Object[] { "recurrenceInfo", MyCartSetCustomLineItemRecurrenceInfoAction.builder() - .recurrenceInfo( - new com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraftImpl()) } }; - } - - @Test - public void customLineItemId() { - MyCartSetCustomLineItemRecurrenceInfoAction value = MyCartSetCustomLineItemRecurrenceInfoAction.of(); - value.setCustomLineItemId("customLineItemId"); - Assertions.assertThat(value.getCustomLineItemId()).isEqualTo("customLineItemId"); - } - - @Test - public void customLineItemKey() { - MyCartSetCustomLineItemRecurrenceInfoAction value = MyCartSetCustomLineItemRecurrenceInfoAction.of(); - value.setCustomLineItemKey("customLineItemKey"); - Assertions.assertThat(value.getCustomLineItemKey()).isEqualTo("customLineItemKey"); - } - - @Test - public void recurrenceInfo() { - MyCartSetCustomLineItemRecurrenceInfoAction value = MyCartSetCustomLineItemRecurrenceInfoAction.of(); - value.setRecurrenceInfo( - new com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraftImpl()); - Assertions.assertThat(value.getRecurrenceInfo()) - .isEqualTo(new com.commercetools.api.models.recurring_order.CustomLineItemRecurrenceInfoDraftImpl()); - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoActionTest.java deleted file mode 100644 index 15ff60a809e..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartSetLineItemRecurrenceInfoActionTest.java +++ /dev/null @@ -1,50 +0,0 @@ - -package com.commercetools.api.models.me; - -import org.assertj.core.api.Assertions; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.MethodSource; - -public class MyCartSetLineItemRecurrenceInfoActionTest { - - @ParameterizedTest(name = "#{index} with {0}") - @MethodSource("objectBuilder") - public void buildUnchecked(String name, MyCartSetLineItemRecurrenceInfoActionBuilder builder) { - MyCartSetLineItemRecurrenceInfoAction myCartSetLineItemRecurrenceInfoAction = builder.buildUnchecked(); - Assertions.assertThat(myCartSetLineItemRecurrenceInfoAction) - .isInstanceOf(MyCartSetLineItemRecurrenceInfoAction.class); - } - - public static Object[][] objectBuilder() { - return new Object[][] { - new Object[] { "lineItemId", MyCartSetLineItemRecurrenceInfoAction.builder().lineItemId("lineItemId") }, - new Object[] { "lineItemKey", - MyCartSetLineItemRecurrenceInfoAction.builder().lineItemKey("lineItemKey") }, - new Object[] { "recurrenceInfo", MyCartSetLineItemRecurrenceInfoAction.builder() - .recurrenceInfo( - new com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraftImpl()) } }; - } - - @Test - public void lineItemId() { - MyCartSetLineItemRecurrenceInfoAction value = MyCartSetLineItemRecurrenceInfoAction.of(); - value.setLineItemId("lineItemId"); - Assertions.assertThat(value.getLineItemId()).isEqualTo("lineItemId"); - } - - @Test - public void lineItemKey() { - MyCartSetLineItemRecurrenceInfoAction value = MyCartSetLineItemRecurrenceInfoAction.of(); - value.setLineItemKey("lineItemKey"); - Assertions.assertThat(value.getLineItemKey()).isEqualTo("lineItemKey"); - } - - @Test - public void recurrenceInfo() { - MyCartSetLineItemRecurrenceInfoAction value = MyCartSetLineItemRecurrenceInfoAction.of(); - value.setRecurrenceInfo(new com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraftImpl()); - Assertions.assertThat(value.getRecurrenceInfo()) - .isEqualTo(new com.commercetools.api.models.recurring_order.LineItemRecurrenceInfoDraftImpl()); - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadTest.java index fd09e4c7d01..c94a3a385f7 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessagePayloadTest.java @@ -1,6 +1,8 @@ package com.commercetools.api.models.message; +import java.util.Collections; + import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -17,8 +19,14 @@ public void buildUnchecked(String name, BusinessUnitAddressChangedMessagePayload } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "address", BusinessUnitAddressChangedMessagePayload.builder() - .address(new com.commercetools.api.models.common.AddressImpl()) } }; + return new Object[][] { + new Object[] { "address", + BusinessUnitAddressChangedMessagePayload.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) }, + new Object[] { "addressRoles", + BusinessUnitAddressChangedMessagePayload.builder() + .addressRoles(Collections.singletonList( + com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))) } }; } @Test @@ -27,4 +35,14 @@ public void address() { value.setAddress(new com.commercetools.api.models.common.AddressImpl()); Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); } + + @Test + public void addressRoles() { + BusinessUnitAddressChangedMessagePayload value = BusinessUnitAddressChangedMessagePayload.of(); + value.setAddressRoles( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + Assertions.assertThat(value.getAddressRoles()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageTest.java index 51d0d7b4e75..ab05f688224 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressChangedMessageTest.java @@ -1,6 +1,8 @@ package com.commercetools.api.models.message; +import java.util.Collections; + import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -16,8 +18,14 @@ public void buildUnchecked(String name, BusinessUnitAddressChangedMessageBuilder } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "address", BusinessUnitAddressChangedMessage.builder() - .address(new com.commercetools.api.models.common.AddressImpl()) } }; + return new Object[][] { + new Object[] { "address", + BusinessUnitAddressChangedMessage.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) }, + new Object[] { "addressRoles", + BusinessUnitAddressChangedMessage.builder() + .addressRoles(Collections.singletonList( + com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))) } }; } @Test @@ -26,4 +34,14 @@ public void address() { value.setAddress(new com.commercetools.api.models.common.AddressImpl()); Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); } + + @Test + public void addressRoles() { + BusinessUnitAddressChangedMessage value = BusinessUnitAddressChangedMessage.of(); + value.setAddressRoles( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + Assertions.assertThat(value.getAddressRoles()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadTest.java index 4c6bf3b90be..70b3fc92944 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessagePayloadTest.java @@ -1,6 +1,8 @@ package com.commercetools.api.models.message; +import java.util.Collections; + import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -17,8 +19,14 @@ public void buildUnchecked(String name, BusinessUnitAddressRemovedMessagePayload } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "address", BusinessUnitAddressRemovedMessagePayload.builder() - .address(new com.commercetools.api.models.common.AddressImpl()) } }; + return new Object[][] { + new Object[] { "address", + BusinessUnitAddressRemovedMessagePayload.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) }, + new Object[] { "addressRoles", + BusinessUnitAddressRemovedMessagePayload.builder() + .addressRoles(Collections.singletonList( + com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))) } }; } @Test @@ -27,4 +35,14 @@ public void address() { value.setAddress(new com.commercetools.api.models.common.AddressImpl()); Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); } + + @Test + public void addressRoles() { + BusinessUnitAddressRemovedMessagePayload value = BusinessUnitAddressRemovedMessagePayload.of(); + value.setAddressRoles( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + Assertions.assertThat(value.getAddressRoles()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageTest.java index 22fac851d5e..617a3463bad 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitAddressRemovedMessageTest.java @@ -1,6 +1,8 @@ package com.commercetools.api.models.message; +import java.util.Collections; + import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -16,8 +18,14 @@ public void buildUnchecked(String name, BusinessUnitAddressRemovedMessageBuilder } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "address", BusinessUnitAddressRemovedMessage.builder() - .address(new com.commercetools.api.models.common.AddressImpl()) } }; + return new Object[][] { + new Object[] { "address", + BusinessUnitAddressRemovedMessage.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) }, + new Object[] { "addressRoles", + BusinessUnitAddressRemovedMessage.builder() + .addressRoles(Collections.singletonList( + com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))) } }; } @Test @@ -26,4 +34,14 @@ public void address() { value.setAddress(new com.commercetools.api.models.common.AddressImpl()); Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); } + + @Test + public void addressRoles() { + BusinessUnitAddressRemovedMessage value = BusinessUnitAddressRemovedMessage.of(); + value.setAddressRoles( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + Assertions.assertThat(value.getAddressRoles()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadTest.java new file mode 100644 index 00000000000..58ab8437a30 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessagePayloadTest.java @@ -0,0 +1,35 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BusinessUnitCustomerGroupAssignmentAddedMessagePayloadTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BusinessUnitCustomerGroupAssignmentAddedMessagePayloadBuilder builder) { + BusinessUnitCustomerGroupAssignmentAddedMessagePayload businessUnitCustomerGroupAssignmentAddedMessagePayload = builder + .buildUnchecked(); + Assertions.assertThat(businessUnitCustomerGroupAssignmentAddedMessagePayload) + .isInstanceOf(BusinessUnitCustomerGroupAssignmentAddedMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "customerGroupAssignment", + BusinessUnitCustomerGroupAssignmentAddedMessagePayload.builder() + .customerGroupAssignment( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + BusinessUnitCustomerGroupAssignmentAddedMessagePayload value = BusinessUnitCustomerGroupAssignmentAddedMessagePayload + .of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessageTest.java new file mode 100644 index 00000000000..56685cb651c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentAddedMessageTest.java @@ -0,0 +1,34 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BusinessUnitCustomerGroupAssignmentAddedMessageTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BusinessUnitCustomerGroupAssignmentAddedMessageBuilder builder) { + BusinessUnitCustomerGroupAssignmentAddedMessage businessUnitCustomerGroupAssignmentAddedMessage = builder + .buildUnchecked(); + Assertions.assertThat(businessUnitCustomerGroupAssignmentAddedMessage) + .isInstanceOf(BusinessUnitCustomerGroupAssignmentAddedMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "customerGroupAssignment", + BusinessUnitCustomerGroupAssignmentAddedMessage.builder() + .customerGroupAssignment( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + BusinessUnitCustomerGroupAssignmentAddedMessage value = BusinessUnitCustomerGroupAssignmentAddedMessage.of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadTest.java new file mode 100644 index 00000000000..3fdffc6c996 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadTest.java @@ -0,0 +1,35 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BusinessUnitCustomerGroupAssignmentRemovedMessagePayloadBuilder builder) { + BusinessUnitCustomerGroupAssignmentRemovedMessagePayload businessUnitCustomerGroupAssignmentRemovedMessagePayload = builder + .buildUnchecked(); + Assertions.assertThat(businessUnitCustomerGroupAssignmentRemovedMessagePayload) + .isInstanceOf(BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "customerGroupAssignment", + BusinessUnitCustomerGroupAssignmentRemovedMessagePayload.builder() + .customerGroupAssignment( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + BusinessUnitCustomerGroupAssignmentRemovedMessagePayload value = BusinessUnitCustomerGroupAssignmentRemovedMessagePayload + .of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessageTest.java new file mode 100644 index 00000000000..0931158ab6d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentRemovedMessageTest.java @@ -0,0 +1,35 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BusinessUnitCustomerGroupAssignmentRemovedMessageTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BusinessUnitCustomerGroupAssignmentRemovedMessageBuilder builder) { + BusinessUnitCustomerGroupAssignmentRemovedMessage businessUnitCustomerGroupAssignmentRemovedMessage = builder + .buildUnchecked(); + Assertions.assertThat(businessUnitCustomerGroupAssignmentRemovedMessage) + .isInstanceOf(BusinessUnitCustomerGroupAssignmentRemovedMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "customerGroupAssignment", + BusinessUnitCustomerGroupAssignmentRemovedMessage.builder() + .customerGroupAssignment( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()) } }; + } + + @Test + public void customerGroupAssignment() { + BusinessUnitCustomerGroupAssignmentRemovedMessage value = BusinessUnitCustomerGroupAssignmentRemovedMessage + .of(); + value.setCustomerGroupAssignment(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + Assertions.assertThat(value.getCustomerGroupAssignment()) + .isEqualTo(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadTest.java new file mode 100644 index 00000000000..086ae548b02 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessagePayloadTest.java @@ -0,0 +1,55 @@ + +package com.commercetools.api.models.message; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BusinessUnitCustomerGroupAssignmentsSetMessagePayloadTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BusinessUnitCustomerGroupAssignmentsSetMessagePayloadBuilder builder) { + BusinessUnitCustomerGroupAssignmentsSetMessagePayload businessUnitCustomerGroupAssignmentsSetMessagePayload = builder + .buildUnchecked(); + Assertions.assertThat(businessUnitCustomerGroupAssignmentsSetMessagePayload) + .isInstanceOf(BusinessUnitCustomerGroupAssignmentsSetMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "customerGroupAssignments", + BusinessUnitCustomerGroupAssignmentsSetMessagePayload.builder() + .customerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) }, + new Object[] { "oldCustomerGroupAssignments", + BusinessUnitCustomerGroupAssignmentsSetMessagePayload.builder() + .oldCustomerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) } }; + } + + @Test + public void customerGroupAssignments() { + BusinessUnitCustomerGroupAssignmentsSetMessagePayload value = BusinessUnitCustomerGroupAssignmentsSetMessagePayload + .of(); + value.setCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + Assertions.assertThat(value.getCustomerGroupAssignments()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + } + + @Test + public void oldCustomerGroupAssignments() { + BusinessUnitCustomerGroupAssignmentsSetMessagePayload value = BusinessUnitCustomerGroupAssignmentsSetMessagePayload + .of(); + value.setOldCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + Assertions.assertThat(value.getOldCustomerGroupAssignments()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessageTest.java new file mode 100644 index 00000000000..ebe8a22bb24 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitCustomerGroupAssignmentsSetMessageTest.java @@ -0,0 +1,53 @@ + +package com.commercetools.api.models.message; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BusinessUnitCustomerGroupAssignmentsSetMessageTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BusinessUnitCustomerGroupAssignmentsSetMessageBuilder builder) { + BusinessUnitCustomerGroupAssignmentsSetMessage businessUnitCustomerGroupAssignmentsSetMessage = builder + .buildUnchecked(); + Assertions.assertThat(businessUnitCustomerGroupAssignmentsSetMessage) + .isInstanceOf(BusinessUnitCustomerGroupAssignmentsSetMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "customerGroupAssignments", + BusinessUnitCustomerGroupAssignmentsSetMessage.builder() + .customerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) }, + new Object[] { "oldCustomerGroupAssignments", + BusinessUnitCustomerGroupAssignmentsSetMessage.builder() + .oldCustomerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) } }; + } + + @Test + public void customerGroupAssignments() { + BusinessUnitCustomerGroupAssignmentsSetMessage value = BusinessUnitCustomerGroupAssignmentsSetMessage.of(); + value.setCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + Assertions.assertThat(value.getCustomerGroupAssignments()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + } + + @Test + public void oldCustomerGroupAssignments() { + BusinessUnitCustomerGroupAssignmentsSetMessage value = BusinessUnitCustomerGroupAssignmentsSetMessage.of(); + value.setOldCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + Assertions.assertThat(value.getOldCustomerGroupAssignments()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadTest.java index ffb4188b336..5609871d2f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessagePayloadTest.java @@ -1,6 +1,8 @@ package com.commercetools.api.models.message; +import java.util.Collections; + import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -17,8 +19,14 @@ public void buildUnchecked(String name, CustomerAddressChangedMessagePayloadBuil } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "address", CustomerAddressChangedMessagePayload.builder() - .address(new com.commercetools.api.models.common.AddressImpl()) } }; + return new Object[][] { + new Object[] { "address", + CustomerAddressChangedMessagePayload.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) }, + new Object[] { "addressRoles", + CustomerAddressChangedMessagePayload.builder() + .addressRoles(Collections.singletonList( + com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))) } }; } @Test @@ -27,4 +35,14 @@ public void address() { value.setAddress(new com.commercetools.api.models.common.AddressImpl()); Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); } + + @Test + public void addressRoles() { + CustomerAddressChangedMessagePayload value = CustomerAddressChangedMessagePayload.of(); + value.setAddressRoles( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + Assertions.assertThat(value.getAddressRoles()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageTest.java index 6991af6adc2..a430039fe8c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressChangedMessageTest.java @@ -1,6 +1,8 @@ package com.commercetools.api.models.message; +import java.util.Collections; + import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -16,8 +18,14 @@ public void buildUnchecked(String name, CustomerAddressChangedMessageBuilder bui } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "address", CustomerAddressChangedMessage.builder() - .address(new com.commercetools.api.models.common.AddressImpl()) } }; + return new Object[][] { + new Object[] { "address", + CustomerAddressChangedMessage.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) }, + new Object[] { "addressRoles", + CustomerAddressChangedMessage.builder() + .addressRoles(Collections.singletonList( + com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))) } }; } @Test @@ -26,4 +34,14 @@ public void address() { value.setAddress(new com.commercetools.api.models.common.AddressImpl()); Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); } + + @Test + public void addressRoles() { + CustomerAddressChangedMessage value = CustomerAddressChangedMessage.of(); + value.setAddressRoles( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + Assertions.assertThat(value.getAddressRoles()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadTest.java index 8d235b5a453..9361061da6f 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessagePayloadTest.java @@ -1,6 +1,8 @@ package com.commercetools.api.models.message; +import java.util.Collections; + import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -17,8 +19,14 @@ public void buildUnchecked(String name, CustomerAddressRemovedMessagePayloadBuil } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "address", CustomerAddressRemovedMessagePayload.builder() - .address(new com.commercetools.api.models.common.AddressImpl()) } }; + return new Object[][] { + new Object[] { "address", + CustomerAddressRemovedMessagePayload.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) }, + new Object[] { "addressRoles", + CustomerAddressRemovedMessagePayload.builder() + .addressRoles(Collections.singletonList( + com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))) } }; } @Test @@ -27,4 +35,14 @@ public void address() { value.setAddress(new com.commercetools.api.models.common.AddressImpl()); Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); } + + @Test + public void addressRoles() { + CustomerAddressRemovedMessagePayload value = CustomerAddressRemovedMessagePayload.of(); + value.setAddressRoles( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + Assertions.assertThat(value.getAddressRoles()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageTest.java index 992aacc4086..7f814bea15c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerAddressRemovedMessageTest.java @@ -1,6 +1,8 @@ package com.commercetools.api.models.message; +import java.util.Collections; + import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -16,8 +18,14 @@ public void buildUnchecked(String name, CustomerAddressRemovedMessageBuilder bui } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "address", CustomerAddressRemovedMessage.builder() - .address(new com.commercetools.api.models.common.AddressImpl()) } }; + return new Object[][] { + new Object[] { "address", + CustomerAddressRemovedMessage.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) }, + new Object[] { "addressRoles", + CustomerAddressRemovedMessage.builder() + .addressRoles(Collections.singletonList( + com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))) } }; } @Test @@ -26,4 +34,14 @@ public void address() { value.setAddress(new com.commercetools.api.models.common.AddressImpl()); Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); } + + @Test + public void addressRoles() { + CustomerAddressRemovedMessage value = CustomerAddressRemovedMessage.of(); + value.setAddressRoles( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + Assertions.assertThat(value.getAddressRoles()) + .isEqualTo( + Collections.singletonList(com.commercetools.api.models.common.AddressRole.findEnum("Shipping"))); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayloadTest.java new file mode 100644 index 00000000000..c7d74ca35a0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessagePayloadTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerBillingAddressAddedMessagePayloadTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerBillingAddressAddedMessagePayloadBuilder builder) { + CustomerBillingAddressAddedMessagePayload customerBillingAddressAddedMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(customerBillingAddressAddedMessagePayload) + .isInstanceOf(CustomerBillingAddressAddedMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "address", CustomerBillingAddressAddedMessagePayload.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) } }; + } + + @Test + public void address() { + CustomerBillingAddressAddedMessagePayload value = CustomerBillingAddressAddedMessagePayload.of(); + value.setAddress(new com.commercetools.api.models.common.AddressImpl()); + Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessageTest.java new file mode 100644 index 00000000000..29ec7a26ae5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressAddedMessageTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerBillingAddressAddedMessageTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerBillingAddressAddedMessageBuilder builder) { + CustomerBillingAddressAddedMessage customerBillingAddressAddedMessage = builder.buildUnchecked(); + Assertions.assertThat(customerBillingAddressAddedMessage) + .isInstanceOf(CustomerBillingAddressAddedMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "address", CustomerBillingAddressAddedMessage.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) } }; + } + + @Test + public void address() { + CustomerBillingAddressAddedMessage value = CustomerBillingAddressAddedMessage.of(); + value.setAddress(new com.commercetools.api.models.common.AddressImpl()); + Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayloadTest.java new file mode 100644 index 00000000000..0738091115a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessagePayloadTest.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerBillingAddressRemovedMessagePayloadTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerBillingAddressRemovedMessagePayloadBuilder builder) { + CustomerBillingAddressRemovedMessagePayload customerBillingAddressRemovedMessagePayload = builder + .buildUnchecked(); + Assertions.assertThat(customerBillingAddressRemovedMessagePayload) + .isInstanceOf(CustomerBillingAddressRemovedMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "address", CustomerBillingAddressRemovedMessagePayload.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) } }; + } + + @Test + public void address() { + CustomerBillingAddressRemovedMessagePayload value = CustomerBillingAddressRemovedMessagePayload.of(); + value.setAddress(new com.commercetools.api.models.common.AddressImpl()); + Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessageTest.java new file mode 100644 index 00000000000..0d30c425bdb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerBillingAddressRemovedMessageTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerBillingAddressRemovedMessageTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerBillingAddressRemovedMessageBuilder builder) { + CustomerBillingAddressRemovedMessage customerBillingAddressRemovedMessage = builder.buildUnchecked(); + Assertions.assertThat(customerBillingAddressRemovedMessage) + .isInstanceOf(CustomerBillingAddressRemovedMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "address", CustomerBillingAddressRemovedMessage.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) } }; + } + + @Test + public void address() { + CustomerBillingAddressRemovedMessage value = CustomerBillingAddressRemovedMessage.of(); + value.setAddress(new com.commercetools.api.models.common.AddressImpl()); + Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadTest.java index cf3e783cf03..010e9f170d2 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerDeletedMessagePayloadTest.java @@ -1,6 +1,28 @@ package com.commercetools.api.models.message; +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + public class CustomerDeletedMessagePayloadTest { + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerDeletedMessagePayloadBuilder builder) { + CustomerDeletedMessagePayload customerDeletedMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(customerDeletedMessagePayload).isInstanceOf(CustomerDeletedMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "email", CustomerDeletedMessagePayload.builder().email("email") } }; + } + + @Test + public void email() { + CustomerDeletedMessagePayload value = CustomerDeletedMessagePayload.of(); + value.setEmail("email"); + Assertions.assertThat(value.getEmail()).isEqualTo("email"); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageTest.java index 38c1ad5d9cc..121ec66d8d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerDeletedMessageTest.java @@ -1,6 +1,28 @@ package com.commercetools.api.models.message; +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + public class CustomerDeletedMessageTest { + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerDeletedMessageBuilder builder) { + CustomerDeletedMessage customerDeletedMessage = builder.buildUnchecked(); + Assertions.assertThat(customerDeletedMessage).isInstanceOf(CustomerDeletedMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "email", CustomerDeletedMessage.builder().email("email") } }; + } + + @Test + public void email() { + CustomerDeletedMessage value = CustomerDeletedMessage.of(); + value.setEmail("email"); + Assertions.assertThat(value.getEmail()).isEqualTo("email"); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadTest.java index ebb2fe5ebdb..f9b8de97f9f 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessagePayloadTest.java @@ -17,7 +17,8 @@ public void buildUnchecked(String name, CustomerEmailChangedMessagePayloadBuilde } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "email", CustomerEmailChangedMessagePayload.builder().email("email") } }; + return new Object[][] { new Object[] { "email", CustomerEmailChangedMessagePayload.builder().email("email") }, + new Object[] { "oldEmail", CustomerEmailChangedMessagePayload.builder().oldEmail("oldEmail") } }; } @Test @@ -26,4 +27,11 @@ public void email() { value.setEmail("email"); Assertions.assertThat(value.getEmail()).isEqualTo("email"); } + + @Test + public void oldEmail() { + CustomerEmailChangedMessagePayload value = CustomerEmailChangedMessagePayload.of(); + value.setOldEmail("oldEmail"); + Assertions.assertThat(value.getOldEmail()).isEqualTo("oldEmail"); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageTest.java index 4195ce1341e..8d4b4534fc5 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerEmailChangedMessageTest.java @@ -16,7 +16,8 @@ public void buildUnchecked(String name, CustomerEmailChangedMessageBuilder build } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "email", CustomerEmailChangedMessage.builder().email("email") } }; + return new Object[][] { new Object[] { "email", CustomerEmailChangedMessage.builder().email("email") }, + new Object[] { "oldEmail", CustomerEmailChangedMessage.builder().oldEmail("oldEmail") } }; } @Test @@ -25,4 +26,11 @@ public void email() { value.setEmail("email"); Assertions.assertThat(value.getEmail()).isEqualTo("email"); } + + @Test + public void oldEmail() { + CustomerEmailChangedMessage value = CustomerEmailChangedMessage.of(); + value.setOldEmail("oldEmail"); + Assertions.assertThat(value.getOldEmail()).isEqualTo("oldEmail"); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayloadTest.java new file mode 100644 index 00000000000..f6834d4e90f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessagePayloadTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerExternalIdSetMessagePayloadTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerExternalIdSetMessagePayloadBuilder builder) { + CustomerExternalIdSetMessagePayload customerExternalIdSetMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(customerExternalIdSetMessagePayload) + .isInstanceOf(CustomerExternalIdSetMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "externalId", CustomerExternalIdSetMessagePayload.builder().externalId("externalId") } }; + } + + @Test + public void externalId() { + CustomerExternalIdSetMessagePayload value = CustomerExternalIdSetMessagePayload.of(); + value.setExternalId("externalId"); + Assertions.assertThat(value.getExternalId()).isEqualTo("externalId"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessageTest.java new file mode 100644 index 00000000000..0f3ec36b663 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerExternalIdSetMessageTest.java @@ -0,0 +1,29 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerExternalIdSetMessageTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerExternalIdSetMessageBuilder builder) { + CustomerExternalIdSetMessage customerExternalIdSetMessage = builder.buildUnchecked(); + Assertions.assertThat(customerExternalIdSetMessage).isInstanceOf(CustomerExternalIdSetMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "externalId", CustomerExternalIdSetMessage.builder().externalId("externalId") } }; + } + + @Test + public void externalId() { + CustomerExternalIdSetMessage value = CustomerExternalIdSetMessage.of(); + value.setExternalId("externalId"); + Assertions.assertThat(value.getExternalId()).isEqualTo("externalId"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadTest.java index addbb408ef4..1c1f65f7542 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessagePayloadTest.java @@ -19,10 +19,15 @@ public void buildUnchecked(String name, CustomerGroupAssignmentsSetMessagePayloa } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "customerGroupAssignments", - CustomerGroupAssignmentsSetMessagePayload.builder() - .customerGroupAssignments(Collections.singletonList( - new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) } }; + return new Object[][] { + new Object[] { "customerGroupAssignments", + CustomerGroupAssignmentsSetMessagePayload.builder() + .customerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) }, + new Object[] { "oldCustomerGroupAssignments", + CustomerGroupAssignmentsSetMessagePayload.builder() + .oldCustomerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) } }; } @Test @@ -34,4 +39,14 @@ public void customerGroupAssignments() { .isEqualTo( Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); } + + @Test + public void oldCustomerGroupAssignments() { + CustomerGroupAssignmentsSetMessagePayload value = CustomerGroupAssignmentsSetMessagePayload.of(); + value.setOldCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + Assertions.assertThat(value.getOldCustomerGroupAssignments()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageTest.java index 8f908a3c974..9fec5071938 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerGroupAssignmentsSetMessageTest.java @@ -19,10 +19,15 @@ public void buildUnchecked(String name, CustomerGroupAssignmentsSetMessageBuilde } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "customerGroupAssignments", - CustomerGroupAssignmentsSetMessage.builder() - .customerGroupAssignments(Collections.singletonList( - new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) } }; + return new Object[][] { + new Object[] { "customerGroupAssignments", + CustomerGroupAssignmentsSetMessage.builder() + .customerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) }, + new Object[] { "oldCustomerGroupAssignments", + CustomerGroupAssignmentsSetMessage.builder() + .oldCustomerGroupAssignments(Collections.singletonList( + new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())) } }; } @Test @@ -34,4 +39,14 @@ public void customerGroupAssignments() { .isEqualTo( Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); } + + @Test + public void oldCustomerGroupAssignments() { + CustomerGroupAssignmentsSetMessage value = CustomerGroupAssignmentsSetMessage.of(); + value.setOldCustomerGroupAssignments( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + Assertions.assertThat(value.getOldCustomerGroupAssignments()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.customer.CustomerGroupAssignmentImpl())); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayloadTest.java new file mode 100644 index 00000000000..4b8339e7771 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessagePayloadTest.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerShippingAddressAddedMessagePayloadTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerShippingAddressAddedMessagePayloadBuilder builder) { + CustomerShippingAddressAddedMessagePayload customerShippingAddressAddedMessagePayload = builder + .buildUnchecked(); + Assertions.assertThat(customerShippingAddressAddedMessagePayload) + .isInstanceOf(CustomerShippingAddressAddedMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "address", CustomerShippingAddressAddedMessagePayload.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) } }; + } + + @Test + public void address() { + CustomerShippingAddressAddedMessagePayload value = CustomerShippingAddressAddedMessagePayload.of(); + value.setAddress(new com.commercetools.api.models.common.AddressImpl()); + Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessageTest.java new file mode 100644 index 00000000000..8d98279fdae --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressAddedMessageTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerShippingAddressAddedMessageTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerShippingAddressAddedMessageBuilder builder) { + CustomerShippingAddressAddedMessage customerShippingAddressAddedMessage = builder.buildUnchecked(); + Assertions.assertThat(customerShippingAddressAddedMessage) + .isInstanceOf(CustomerShippingAddressAddedMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "address", CustomerShippingAddressAddedMessage.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) } }; + } + + @Test + public void address() { + CustomerShippingAddressAddedMessage value = CustomerShippingAddressAddedMessage.of(); + value.setAddress(new com.commercetools.api.models.common.AddressImpl()); + Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayloadTest.java new file mode 100644 index 00000000000..b8512e29bd6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessagePayloadTest.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerShippingAddressRemovedMessagePayloadTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerShippingAddressRemovedMessagePayloadBuilder builder) { + CustomerShippingAddressRemovedMessagePayload customerShippingAddressRemovedMessagePayload = builder + .buildUnchecked(); + Assertions.assertThat(customerShippingAddressRemovedMessagePayload) + .isInstanceOf(CustomerShippingAddressRemovedMessagePayload.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "address", CustomerShippingAddressRemovedMessagePayload.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) } }; + } + + @Test + public void address() { + CustomerShippingAddressRemovedMessagePayload value = CustomerShippingAddressRemovedMessagePayload.of(); + value.setAddress(new com.commercetools.api.models.common.AddressImpl()); + Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessageTest.java new file mode 100644 index 00000000000..cee111685e9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CustomerShippingAddressRemovedMessageTest.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.models.message; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class CustomerShippingAddressRemovedMessageTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, CustomerShippingAddressRemovedMessageBuilder builder) { + CustomerShippingAddressRemovedMessage customerShippingAddressRemovedMessage = builder.buildUnchecked(); + Assertions.assertThat(customerShippingAddressRemovedMessage) + .isInstanceOf(CustomerShippingAddressRemovedMessage.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "address", CustomerShippingAddressRemovedMessage.builder() + .address(new com.commercetools.api.models.common.AddressImpl()) } }; + } + + @Test + public void address() { + CustomerShippingAddressRemovedMessage value = CustomerShippingAddressRemovedMessage.of(); + value.setAddress(new com.commercetools.api.models.common.AddressImpl()); + Assertions.assertThat(value.getAddress()).isEqualTo(new com.commercetools.api.models.common.AddressImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadTest.java index b41bb7f9028..b8a4446862a 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessagePayloadTest.java @@ -17,15 +17,15 @@ public void buildUnchecked(String name, RecurringOrderCreatedMessagePayloadBuild } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "order", RecurringOrderCreatedMessagePayload.builder() - .order(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()) } }; + return new Object[][] { new Object[] { "recurringOrder", RecurringOrderCreatedMessagePayload.builder() + .recurringOrder(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()) } }; } @Test - public void order() { + public void recurringOrder() { RecurringOrderCreatedMessagePayload value = RecurringOrderCreatedMessagePayload.of(); - value.setOrder(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()); - Assertions.assertThat(value.getOrder()) + value.setRecurringOrder(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()); + Assertions.assertThat(value.getRecurringOrder()) .isEqualTo(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()); } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageTest.java index 0e7fcee5f41..2f1b68b3f20 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/RecurringOrderCreatedMessageTest.java @@ -16,15 +16,15 @@ public void buildUnchecked(String name, RecurringOrderCreatedMessageBuilder buil } public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { "order", RecurringOrderCreatedMessage.builder() - .order(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()) } }; + return new Object[][] { new Object[] { "recurringOrder", RecurringOrderCreatedMessage.builder() + .recurringOrder(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()) } }; } @Test - public void order() { + public void recurringOrder() { RecurringOrderCreatedMessage value = RecurringOrderCreatedMessage.of(); - value.setOrder(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()); - Assertions.assertThat(value.getOrder()) + value.setRecurringOrder(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()); + Assertions.assertThat(value.getRecurringOrder()) .isEqualTo(new com.commercetools.api.models.recurring_order.RecurringOrderImpl()); } } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java index 71621bf874d..40be48cfe7b 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java @@ -464,6 +464,14 @@ public static com.commercetools.history.models.change.ChangeCartPredicateChangeB return com.commercetools.history.models.change.ChangeCartPredicateChangeBuilder.of(); } + /** + * builder for changeCustomLineItemPriceRoundingModeChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ChangeCustomLineItemPriceRoundingModeChangeBuilder changeCustomLineItemPriceRoundingModeChangeBuilder() { + return com.commercetools.history.models.change.ChangeCustomLineItemPriceRoundingModeChangeBuilder.of(); + } + /** * builder for changeCustomLineItemQuantityChange subtype * @return builder @@ -488,6 +496,14 @@ public static com.commercetools.history.models.change.ChangeDescriptionChangeBui return com.commercetools.history.models.change.ChangeDescriptionChangeBuilder.of(); } + /** + * builder for changeDiscountTypeCombinationChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ChangeDiscountTypeCombinationChangeBuilder changeDiscountTypeCombinationChangeBuilder() { + return com.commercetools.history.models.change.ChangeDiscountTypeCombinationChangeBuilder.of(); + } + /** * builder for changeEmailChange subtype * @return builder @@ -608,6 +624,14 @@ public static com.commercetools.history.models.change.ChangeLineItemNameChangeBu return com.commercetools.history.models.change.ChangeLineItemNameChangeBuilder.of(); } + /** + * builder for changeLineItemPriceRoundingModeChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ChangeLineItemPriceRoundingModeChangeBuilder changeLineItemPriceRoundingModeChangeBuilder() { + return com.commercetools.history.models.change.ChangeLineItemPriceRoundingModeChangeBuilder.of(); + } + /** * builder for changeLineItemPublishedChange subtype * @return builder @@ -1736,6 +1760,14 @@ public static com.commercetools.history.models.change.SetDescriptionChangeBuilde return com.commercetools.history.models.change.SetDescriptionChangeBuilder.of(); } + /** + * builder for setDirectDiscountsChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetDirectDiscountsChangeBuilder setDirectDiscountsChangeBuilder() { + return com.commercetools.history.models.change.SetDirectDiscountsChangeBuilder.of(); + } + /** * builder for setDiscountOnTotalPriceChange subtype * @return builder @@ -2296,6 +2328,14 @@ public static com.commercetools.history.models.change.SetRatingChangeBuilder set return com.commercetools.history.models.change.SetRatingChangeBuilder.of(); } + /** + * builder for setReferencesChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetReferencesChangeBuilder setReferencesChangeBuilder() { + return com.commercetools.history.models.change.SetReferencesChangeBuilder.of(); + } + /** * builder for setReservationsChange subtype * @return builder @@ -2432,6 +2472,14 @@ public static com.commercetools.history.models.change.SetShippingCustomTypeChang return com.commercetools.history.models.change.SetShippingCustomTypeChangeBuilder.of(); } + /** + * builder for setShippingInfoDiscountedPriceChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetShippingInfoDiscountedPriceChangeBuilder setShippingInfoDiscountedPriceChangeBuilder() { + return com.commercetools.history.models.change.SetShippingInfoDiscountedPriceChangeBuilder.of(); + } + /** * builder for setShippingInfoPriceChange subtype * @return builder @@ -2464,6 +2512,14 @@ public static com.commercetools.history.models.change.SetShippingMethodTaxAmount return com.commercetools.history.models.change.SetShippingMethodTaxAmountChangeBuilder.of(); } + /** + * builder for setShippingMethodTaxCategoryChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetShippingMethodTaxCategoryChangeBuilder setShippingMethodTaxCategoryChangeBuilder() { + return com.commercetools.history.models.change.SetShippingMethodTaxCategoryChangeBuilder.of(); + } + /** * builder for setShippingMethodTaxRateChange subtype * @return builder @@ -2600,6 +2656,14 @@ public static com.commercetools.history.models.change.SetTaxCategoryChangeBuilde return com.commercetools.history.models.change.SetTaxCategoryChangeBuilder.of(); } + /** + * builder for setTaxedShippingPriceChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetTaxedShippingPriceChangeBuilder setTaxedShippingPriceChangeBuilder() { + return com.commercetools.history.models.change.SetTaxedShippingPriceChangeBuilder.of(); + } + /** * builder for setTextChange subtype * @return builder @@ -2744,6 +2808,198 @@ public static com.commercetools.history.models.change.SetVatIdChangeBuilder setV return com.commercetools.history.models.change.SetVatIdChangeBuilder.of(); } + /** + * builder for shippingMethodAddShippingRateChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodAddShippingRateChangeBuilder shippingMethodAddShippingRateChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodAddShippingRateChangeBuilder.of(); + } + + /** + * builder for shippingMethodAddZoneChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodAddZoneChangeBuilder shippingMethodAddZoneChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodAddZoneChangeBuilder.of(); + } + + /** + * builder for shippingMethodChangeActiveChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodChangeActiveChangeBuilder shippingMethodChangeActiveChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodChangeActiveChangeBuilder.of(); + } + + /** + * builder for shippingMethodChangeIsDefaultChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodChangeIsDefaultChangeBuilder shippingMethodChangeIsDefaultChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodChangeIsDefaultChangeBuilder.of(); + } + + /** + * builder for shippingMethodChangeNameChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodChangeNameChangeBuilder shippingMethodChangeNameChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodChangeNameChangeBuilder.of(); + } + + /** + * builder for shippingMethodChangeTaxCategoryChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodChangeTaxCategoryChangeBuilder shippingMethodChangeTaxCategoryChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodChangeTaxCategoryChangeBuilder.of(); + } + + /** + * builder for shippingMethodRemoveShippingRateChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodRemoveShippingRateChangeBuilder shippingMethodRemoveShippingRateChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodRemoveShippingRateChangeBuilder.of(); + } + + /** + * builder for shippingMethodRemoveZoneChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodRemoveZoneChangeBuilder shippingMethodRemoveZoneChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodRemoveZoneChangeBuilder.of(); + } + + /** + * builder for shippingMethodSetCustomFieldChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodSetCustomFieldChangeBuilder shippingMethodSetCustomFieldChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetCustomFieldChangeBuilder.of(); + } + + /** + * builder for shippingMethodSetCustomTypeChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodSetCustomTypeChangeBuilder shippingMethodSetCustomTypeChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetCustomTypeChangeBuilder.of(); + } + + /** + * builder for shippingMethodSetKeyChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodSetKeyChangeBuilder shippingMethodSetKeyChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetKeyChangeBuilder.of(); + } + + /** + * builder for shippingMethodSetLocalizedDescriptionChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodSetLocalizedDescriptionChangeBuilder shippingMethodSetLocalizedDescriptionChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetLocalizedDescriptionChangeBuilder.of(); + } + + /** + * builder for shippingMethodSetLocalizedNameChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodSetLocalizedNameChangeBuilder shippingMethodSetLocalizedNameChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetLocalizedNameChangeBuilder.of(); + } + + /** + * builder for shippingMethodSetPredicateChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ShippingMethodSetPredicateChangeBuilder shippingMethodSetPredicateChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetPredicateChangeBuilder.of(); + } + + /** + * builder for standalonePriceChangeActiveChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceChangeActiveChangeBuilder standalonePriceChangeActiveChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceChangeActiveChangeBuilder.of(); + } + + /** + * builder for standalonePriceChangeValueChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceChangeValueChangeBuilder standalonePriceChangeValueChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceChangeValueChangeBuilder.of(); + } + + /** + * builder for standalonePriceSetCustomFieldChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceSetCustomFieldChangeBuilder standalonePriceSetCustomFieldChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetCustomFieldChangeBuilder.of(); + } + + /** + * builder for standalonePriceSetCustomTypeChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceSetCustomTypeChangeBuilder standalonePriceSetCustomTypeChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetCustomTypeChangeBuilder.of(); + } + + /** + * builder for standalonePriceSetDiscountedPriceChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceSetDiscountedPriceChangeBuilder standalonePriceSetDiscountedPriceChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetDiscountedPriceChangeBuilder.of(); + } + + /** + * builder for standalonePriceSetKeyChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceSetKeyChangeBuilder standalonePriceSetKeyChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetKeyChangeBuilder.of(); + } + + /** + * builder for standalonePriceSetPriceTiersChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceSetPriceTiersChangeBuilder standalonePriceSetPriceTiersChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetPriceTiersChangeBuilder.of(); + } + + /** + * builder for standalonePriceSetValidFromAndUntilChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceSetValidFromAndUntilChangeBuilder standalonePriceSetValidFromAndUntilChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetValidFromAndUntilChangeBuilder.of(); + } + + /** + * builder for standalonePriceSetValidFromChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceSetValidFromChangeBuilder standalonePriceSetValidFromChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetValidFromChangeBuilder.of(); + } + + /** + * builder for standalonePriceSetValidUntilChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.StandalonePriceSetValidUntilChangeBuilder standalonePriceSetValidUntilChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetValidUntilChangeBuilder.of(); + } + /** * builder for transitionCustomLineItemStateChange subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeBuilder.java index 554d01fbfba..24e46930620 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeBuilder.java @@ -203,6 +203,10 @@ public com.commercetools.history.models.change.ChangeCartPredicateChangeBuilder return com.commercetools.history.models.change.ChangeCartPredicateChangeBuilder.of(); } + public com.commercetools.history.models.change.ChangeCustomLineItemPriceRoundingModeChangeBuilder changeCustomLineItemPriceRoundingModeChangeBuilder() { + return com.commercetools.history.models.change.ChangeCustomLineItemPriceRoundingModeChangeBuilder.of(); + } + public com.commercetools.history.models.change.ChangeCustomLineItemQuantityChangeBuilder changeCustomLineItemQuantityChangeBuilder() { return com.commercetools.history.models.change.ChangeCustomLineItemQuantityChangeBuilder.of(); } @@ -215,6 +219,10 @@ public com.commercetools.history.models.change.ChangeDescriptionChangeBuilder ch return com.commercetools.history.models.change.ChangeDescriptionChangeBuilder.of(); } + public com.commercetools.history.models.change.ChangeDiscountTypeCombinationChangeBuilder changeDiscountTypeCombinationChangeBuilder() { + return com.commercetools.history.models.change.ChangeDiscountTypeCombinationChangeBuilder.of(); + } + public com.commercetools.history.models.change.ChangeEmailChangeBuilder changeEmailChangeBuilder() { return com.commercetools.history.models.change.ChangeEmailChangeBuilder.of(); } @@ -275,6 +283,10 @@ public com.commercetools.history.models.change.ChangeLineItemNameChangeBuilder c return com.commercetools.history.models.change.ChangeLineItemNameChangeBuilder.of(); } + public com.commercetools.history.models.change.ChangeLineItemPriceRoundingModeChangeBuilder changeLineItemPriceRoundingModeChangeBuilder() { + return com.commercetools.history.models.change.ChangeLineItemPriceRoundingModeChangeBuilder.of(); + } + public com.commercetools.history.models.change.ChangeLineItemPublishedChangeBuilder changeLineItemPublishedChangeBuilder() { return com.commercetools.history.models.change.ChangeLineItemPublishedChangeBuilder.of(); } @@ -839,6 +851,10 @@ public com.commercetools.history.models.change.SetDescriptionChangeBuilder setDe return com.commercetools.history.models.change.SetDescriptionChangeBuilder.of(); } + public com.commercetools.history.models.change.SetDirectDiscountsChangeBuilder setDirectDiscountsChangeBuilder() { + return com.commercetools.history.models.change.SetDirectDiscountsChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetDiscountOnTotalPriceChangeBuilder setDiscountOnTotalPriceChangeBuilder() { return com.commercetools.history.models.change.SetDiscountOnTotalPriceChangeBuilder.of(); } @@ -1119,6 +1135,10 @@ public com.commercetools.history.models.change.SetRatingChangeBuilder setRatingC return com.commercetools.history.models.change.SetRatingChangeBuilder.of(); } + public com.commercetools.history.models.change.SetReferencesChangeBuilder setReferencesChangeBuilder() { + return com.commercetools.history.models.change.SetReferencesChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetReservationsChangeBuilder setReservationsChangeBuilder() { return com.commercetools.history.models.change.SetReservationsChangeBuilder.of(); } @@ -1187,6 +1207,10 @@ public com.commercetools.history.models.change.SetShippingCustomTypeChangeBuilde return com.commercetools.history.models.change.SetShippingCustomTypeChangeBuilder.of(); } + public com.commercetools.history.models.change.SetShippingInfoDiscountedPriceChangeBuilder setShippingInfoDiscountedPriceChangeBuilder() { + return com.commercetools.history.models.change.SetShippingInfoDiscountedPriceChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetShippingInfoPriceChangeBuilder setShippingInfoPriceChangeBuilder() { return com.commercetools.history.models.change.SetShippingInfoPriceChangeBuilder.of(); } @@ -1203,6 +1227,10 @@ public com.commercetools.history.models.change.SetShippingMethodTaxAmountChangeB return com.commercetools.history.models.change.SetShippingMethodTaxAmountChangeBuilder.of(); } + public com.commercetools.history.models.change.SetShippingMethodTaxCategoryChangeBuilder setShippingMethodTaxCategoryChangeBuilder() { + return com.commercetools.history.models.change.SetShippingMethodTaxCategoryChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetShippingMethodTaxRateChangeBuilder setShippingMethodTaxRateChangeBuilder() { return com.commercetools.history.models.change.SetShippingMethodTaxRateChangeBuilder.of(); } @@ -1271,6 +1299,10 @@ public com.commercetools.history.models.change.SetTaxCategoryChangeBuilder setTa return com.commercetools.history.models.change.SetTaxCategoryChangeBuilder.of(); } + public com.commercetools.history.models.change.SetTaxedShippingPriceChangeBuilder setTaxedShippingPriceChangeBuilder() { + return com.commercetools.history.models.change.SetTaxedShippingPriceChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetTextChangeBuilder setTextChangeBuilder() { return com.commercetools.history.models.change.SetTextChangeBuilder.of(); } @@ -1343,6 +1375,102 @@ public com.commercetools.history.models.change.SetVatIdChangeBuilder setVatIdCha return com.commercetools.history.models.change.SetVatIdChangeBuilder.of(); } + public com.commercetools.history.models.change.ShippingMethodAddShippingRateChangeBuilder shippingMethodAddShippingRateChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodAddShippingRateChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodAddZoneChangeBuilder shippingMethodAddZoneChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodAddZoneChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodChangeActiveChangeBuilder shippingMethodChangeActiveChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodChangeActiveChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodChangeIsDefaultChangeBuilder shippingMethodChangeIsDefaultChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodChangeIsDefaultChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodChangeNameChangeBuilder shippingMethodChangeNameChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodChangeNameChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodChangeTaxCategoryChangeBuilder shippingMethodChangeTaxCategoryChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodChangeTaxCategoryChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodRemoveShippingRateChangeBuilder shippingMethodRemoveShippingRateChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodRemoveShippingRateChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodRemoveZoneChangeBuilder shippingMethodRemoveZoneChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodRemoveZoneChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodSetCustomFieldChangeBuilder shippingMethodSetCustomFieldChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetCustomFieldChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodSetCustomTypeChangeBuilder shippingMethodSetCustomTypeChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetCustomTypeChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodSetKeyChangeBuilder shippingMethodSetKeyChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetKeyChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodSetLocalizedDescriptionChangeBuilder shippingMethodSetLocalizedDescriptionChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetLocalizedDescriptionChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodSetLocalizedNameChangeBuilder shippingMethodSetLocalizedNameChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetLocalizedNameChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ShippingMethodSetPredicateChangeBuilder shippingMethodSetPredicateChangeBuilder() { + return com.commercetools.history.models.change.ShippingMethodSetPredicateChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceChangeActiveChangeBuilder standalonePriceChangeActiveChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceChangeActiveChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceChangeValueChangeBuilder standalonePriceChangeValueChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceChangeValueChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceSetCustomFieldChangeBuilder standalonePriceSetCustomFieldChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetCustomFieldChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceSetCustomTypeChangeBuilder standalonePriceSetCustomTypeChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetCustomTypeChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceSetDiscountedPriceChangeBuilder standalonePriceSetDiscountedPriceChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetDiscountedPriceChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceSetKeyChangeBuilder standalonePriceSetKeyChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetKeyChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceSetPriceTiersChangeBuilder standalonePriceSetPriceTiersChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetPriceTiersChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceSetValidFromAndUntilChangeBuilder standalonePriceSetValidFromAndUntilChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetValidFromAndUntilChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceSetValidFromChangeBuilder standalonePriceSetValidFromChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetValidFromChangeBuilder.of(); + } + + public com.commercetools.history.models.change.StandalonePriceSetValidUntilChangeBuilder standalonePriceSetValidUntilChangeBuilder() { + return com.commercetools.history.models.change.StandalonePriceSetValidUntilChangeBuilder.of(); + } + public com.commercetools.history.models.change.TransitionCustomLineItemStateChangeBuilder transitionCustomLineItemStateChangeBuilder() { return com.commercetools.history.models.change.TransitionCustomLineItemStateChangeBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChange.java new file mode 100644 index 00000000000..6e96f4d7308 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChange.java @@ -0,0 +1,219 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.LocalizedString; +import com.commercetools.history.models.common.RoundingMode; +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; + +/** + *

    Change triggered by the Change Price Rounding Mode update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ChangeCustomLineItemPriceRoundingModeChange changeCustomLineItemPriceRoundingModeChange = ChangeCustomLineItemPriceRoundingModeChange.builder()
    + *             .change("{change}")
    + *             .customLineItem(customLineItemBuilder -> customLineItemBuilder)
    + *             .customLineItemId("{customLineItemId}")
    + *             .previousValue(RoundingMode.HALF_EVEN)
    + *             .nextValue(RoundingMode.HALF_EVEN)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ChangeCustomLineItemPriceRoundingModeChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ChangeCustomLineItemPriceRoundingModeChangeImpl.class) +public interface ChangeCustomLineItemPriceRoundingModeChange extends Change { + + /** + * discriminator value for ChangeCustomLineItemPriceRoundingModeChange + */ + String CHANGE_CUSTOM_LINE_ITEM_PRICE_ROUNDING_MODE_CHANGE = "ChangeCustomLineItemPriceRoundingModeChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Name of the updated CustomLineItem.

    + * @return customLineItem + */ + @NotNull + @Valid + @JsonProperty("customLineItem") + public LocalizedString getCustomLineItem(); + + /** + *

    id of the updated CustomLineItem.

    + * @return customLineItemId + */ + @NotNull + @JsonProperty("customLineItemId") + public String getCustomLineItemId(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public RoundingMode getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public RoundingMode getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Name of the updated CustomLineItem.

    + * @param customLineItem value to be set + */ + + public void setCustomLineItem(final LocalizedString customLineItem); + + /** + *

    id of the updated CustomLineItem.

    + * @param customLineItemId value to be set + */ + + public void setCustomLineItemId(final String customLineItemId); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final RoundingMode previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final RoundingMode nextValue); + + /** + * factory method + * @return instance of ChangeCustomLineItemPriceRoundingModeChange + */ + public static ChangeCustomLineItemPriceRoundingModeChange of() { + return new ChangeCustomLineItemPriceRoundingModeChangeImpl(); + } + + /** + * factory method to create a shallow copy ChangeCustomLineItemPriceRoundingModeChange + * @param template instance to be copied + * @return copy instance + */ + public static ChangeCustomLineItemPriceRoundingModeChange of( + final ChangeCustomLineItemPriceRoundingModeChange template) { + ChangeCustomLineItemPriceRoundingModeChangeImpl instance = new ChangeCustomLineItemPriceRoundingModeChangeImpl(); + instance.setChange(template.getChange()); + instance.setCustomLineItem(template.getCustomLineItem()); + instance.setCustomLineItemId(template.getCustomLineItemId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ChangeCustomLineItemPriceRoundingModeChange copyDeep(); + + /** + * factory method to create a deep copy of ChangeCustomLineItemPriceRoundingModeChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ChangeCustomLineItemPriceRoundingModeChange deepCopy( + @Nullable final ChangeCustomLineItemPriceRoundingModeChange template) { + if (template == null) { + return null; + } + ChangeCustomLineItemPriceRoundingModeChangeImpl instance = new ChangeCustomLineItemPriceRoundingModeChangeImpl(); + instance.setChange(template.getChange()); + instance.setCustomLineItem( + com.commercetools.history.models.common.LocalizedString.deepCopy(template.getCustomLineItem())); + instance.setCustomLineItemId(template.getCustomLineItemId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ChangeCustomLineItemPriceRoundingModeChange + * @return builder + */ + public static ChangeCustomLineItemPriceRoundingModeChangeBuilder builder() { + return ChangeCustomLineItemPriceRoundingModeChangeBuilder.of(); + } + + /** + * create builder for ChangeCustomLineItemPriceRoundingModeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeCustomLineItemPriceRoundingModeChangeBuilder builder( + final ChangeCustomLineItemPriceRoundingModeChange template) { + return ChangeCustomLineItemPriceRoundingModeChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withChangeCustomLineItemPriceRoundingModeChange( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChangeBuilder.java new file mode 100644 index 00000000000..6af54f6b4c6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChangeBuilder.java @@ -0,0 +1,218 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ChangeCustomLineItemPriceRoundingModeChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ChangeCustomLineItemPriceRoundingModeChange changeCustomLineItemPriceRoundingModeChange = ChangeCustomLineItemPriceRoundingModeChange.builder()
    + *             .change("{change}")
    + *             .customLineItem(customLineItemBuilder -> customLineItemBuilder)
    + *             .customLineItemId("{customLineItemId}")
    + *             .previousValue(RoundingMode.HALF_EVEN)
    + *             .nextValue(RoundingMode.HALF_EVEN)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeCustomLineItemPriceRoundingModeChangeBuilder + implements Builder { + + private String change; + + private com.commercetools.history.models.common.LocalizedString customLineItem; + + private String customLineItemId; + + private com.commercetools.history.models.common.RoundingMode previousValue; + + private com.commercetools.history.models.common.RoundingMode nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ChangeCustomLineItemPriceRoundingModeChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Name of the updated CustomLineItem.

    + * @param builder function to build the customLineItem value + * @return Builder + */ + + public ChangeCustomLineItemPriceRoundingModeChangeBuilder customLineItem( + Function builder) { + this.customLineItem = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()) + .build(); + return this; + } + + /** + *

    Name of the updated CustomLineItem.

    + * @param builder function to build the customLineItem value + * @return Builder + */ + + public ChangeCustomLineItemPriceRoundingModeChangeBuilder withCustomLineItem( + Function builder) { + this.customLineItem = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()); + return this; + } + + /** + *

    Name of the updated CustomLineItem.

    + * @param customLineItem value to be set + * @return Builder + */ + + public ChangeCustomLineItemPriceRoundingModeChangeBuilder customLineItem( + final com.commercetools.history.models.common.LocalizedString customLineItem) { + this.customLineItem = customLineItem; + return this; + } + + /** + *

    id of the updated CustomLineItem.

    + * @param customLineItemId value to be set + * @return Builder + */ + + public ChangeCustomLineItemPriceRoundingModeChangeBuilder customLineItemId(final String customLineItemId) { + this.customLineItemId = customLineItemId; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ChangeCustomLineItemPriceRoundingModeChangeBuilder previousValue( + final com.commercetools.history.models.common.RoundingMode previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ChangeCustomLineItemPriceRoundingModeChangeBuilder nextValue( + final com.commercetools.history.models.common.RoundingMode nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Name of the updated CustomLineItem.

    + * @return customLineItem + */ + + public com.commercetools.history.models.common.LocalizedString getCustomLineItem() { + return this.customLineItem; + } + + /** + *

    id of the updated CustomLineItem.

    + * @return customLineItemId + */ + + public String getCustomLineItemId() { + return this.customLineItemId; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.RoundingMode getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.RoundingMode getNextValue() { + return this.nextValue; + } + + /** + * builds ChangeCustomLineItemPriceRoundingModeChange with checking for non-null required values + * @return ChangeCustomLineItemPriceRoundingModeChange + */ + public ChangeCustomLineItemPriceRoundingModeChange build() { + Objects.requireNonNull(change, ChangeCustomLineItemPriceRoundingModeChange.class + ": change is missing"); + Objects.requireNonNull(customLineItem, + ChangeCustomLineItemPriceRoundingModeChange.class + ": customLineItem is missing"); + Objects.requireNonNull(customLineItemId, + ChangeCustomLineItemPriceRoundingModeChange.class + ": customLineItemId is missing"); + Objects.requireNonNull(previousValue, + ChangeCustomLineItemPriceRoundingModeChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ChangeCustomLineItemPriceRoundingModeChange.class + ": nextValue is missing"); + return new ChangeCustomLineItemPriceRoundingModeChangeImpl(change, customLineItem, customLineItemId, + previousValue, nextValue); + } + + /** + * builds ChangeCustomLineItemPriceRoundingModeChange without checking for non-null required values + * @return ChangeCustomLineItemPriceRoundingModeChange + */ + public ChangeCustomLineItemPriceRoundingModeChange buildUnchecked() { + return new ChangeCustomLineItemPriceRoundingModeChangeImpl(change, customLineItem, customLineItemId, + previousValue, nextValue); + } + + /** + * factory method for an instance of ChangeCustomLineItemPriceRoundingModeChangeBuilder + * @return builder + */ + public static ChangeCustomLineItemPriceRoundingModeChangeBuilder of() { + return new ChangeCustomLineItemPriceRoundingModeChangeBuilder(); + } + + /** + * create builder for ChangeCustomLineItemPriceRoundingModeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeCustomLineItemPriceRoundingModeChangeBuilder of( + final ChangeCustomLineItemPriceRoundingModeChange template) { + ChangeCustomLineItemPriceRoundingModeChangeBuilder builder = new ChangeCustomLineItemPriceRoundingModeChangeBuilder(); + builder.change = template.getChange(); + builder.customLineItem = template.getCustomLineItem(); + builder.customLineItemId = template.getCustomLineItemId(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChangeImpl.java new file mode 100644 index 00000000000..e2db65c6f29 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChangeImpl.java @@ -0,0 +1,181 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Change Price Rounding Mode update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeCustomLineItemPriceRoundingModeChangeImpl + implements ChangeCustomLineItemPriceRoundingModeChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.LocalizedString customLineItem; + + private String customLineItemId; + + private com.commercetools.history.models.common.RoundingMode previousValue; + + private com.commercetools.history.models.common.RoundingMode nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ChangeCustomLineItemPriceRoundingModeChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("customLineItem") final com.commercetools.history.models.common.LocalizedString customLineItem, + @JsonProperty("customLineItemId") final String customLineItemId, + @JsonProperty("previousValue") final com.commercetools.history.models.common.RoundingMode previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.RoundingMode nextValue) { + this.change = change; + this.customLineItem = customLineItem; + this.customLineItemId = customLineItemId; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = CHANGE_CUSTOM_LINE_ITEM_PRICE_ROUNDING_MODE_CHANGE; + } + + /** + * create empty instance + */ + public ChangeCustomLineItemPriceRoundingModeChangeImpl() { + this.type = CHANGE_CUSTOM_LINE_ITEM_PRICE_ROUNDING_MODE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Name of the updated CustomLineItem.

    + */ + + public com.commercetools.history.models.common.LocalizedString getCustomLineItem() { + return this.customLineItem; + } + + /** + *

    id of the updated CustomLineItem.

    + */ + + public String getCustomLineItemId() { + return this.customLineItemId; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.RoundingMode getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.RoundingMode getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setCustomLineItem(final com.commercetools.history.models.common.LocalizedString customLineItem) { + this.customLineItem = customLineItem; + } + + public void setCustomLineItemId(final String customLineItemId) { + this.customLineItemId = customLineItemId; + } + + public void setPreviousValue(final com.commercetools.history.models.common.RoundingMode previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.RoundingMode nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ChangeCustomLineItemPriceRoundingModeChangeImpl that = (ChangeCustomLineItemPriceRoundingModeChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(customLineItem, that.customLineItem) + .append(customLineItemId, that.customLineItemId) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(customLineItem, that.customLineItem) + .append(customLineItemId, that.customLineItemId) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(customLineItem) + .append(customLineItemId) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("customLineItem", customLineItem) + .append("customLineItemId", customLineItemId) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ChangeCustomLineItemPriceRoundingModeChange copyDeep() { + return ChangeCustomLineItemPriceRoundingModeChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChange.java new file mode 100644 index 00000000000..7c808c9ca97 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChange.java @@ -0,0 +1,182 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.DiscountTypeCombination; +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; + +/** + *

    Change triggered by the Set Discounts Configuration update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ChangeDiscountTypeCombinationChange changeDiscountTypeCombinationChange = ChangeDiscountTypeCombinationChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ChangeDiscountTypeCombinationChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ChangeDiscountTypeCombinationChangeImpl.class) +public interface ChangeDiscountTypeCombinationChange extends Change { + + /** + * discriminator value for ChangeDiscountTypeCombinationChange + */ + String CHANGE_DISCOUNT_TYPE_COMBINATION_CHANGE = "ChangeDiscountTypeCombinationChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public DiscountTypeCombination getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public DiscountTypeCombination getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final DiscountTypeCombination previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final DiscountTypeCombination nextValue); + + /** + * factory method + * @return instance of ChangeDiscountTypeCombinationChange + */ + public static ChangeDiscountTypeCombinationChange of() { + return new ChangeDiscountTypeCombinationChangeImpl(); + } + + /** + * factory method to create a shallow copy ChangeDiscountTypeCombinationChange + * @param template instance to be copied + * @return copy instance + */ + public static ChangeDiscountTypeCombinationChange of(final ChangeDiscountTypeCombinationChange template) { + ChangeDiscountTypeCombinationChangeImpl instance = new ChangeDiscountTypeCombinationChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ChangeDiscountTypeCombinationChange copyDeep(); + + /** + * factory method to create a deep copy of ChangeDiscountTypeCombinationChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ChangeDiscountTypeCombinationChange deepCopy( + @Nullable final ChangeDiscountTypeCombinationChange template) { + if (template == null) { + return null; + } + ChangeDiscountTypeCombinationChangeImpl instance = new ChangeDiscountTypeCombinationChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.DiscountTypeCombination.deepCopy(template.getPreviousValue())); + instance.setNextValue( + com.commercetools.history.models.common.DiscountTypeCombination.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for ChangeDiscountTypeCombinationChange + * @return builder + */ + public static ChangeDiscountTypeCombinationChangeBuilder builder() { + return ChangeDiscountTypeCombinationChangeBuilder.of(); + } + + /** + * create builder for ChangeDiscountTypeCombinationChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeDiscountTypeCombinationChangeBuilder builder( + final ChangeDiscountTypeCombinationChange template) { + return ChangeDiscountTypeCombinationChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withChangeDiscountTypeCombinationChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChangeBuilder.java new file mode 100644 index 00000000000..700bdae6c2a --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChangeBuilder.java @@ -0,0 +1,161 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ChangeDiscountTypeCombinationChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ChangeDiscountTypeCombinationChange changeDiscountTypeCombinationChange = ChangeDiscountTypeCombinationChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeDiscountTypeCombinationChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.DiscountTypeCombination previousValue; + + private com.commercetools.history.models.common.DiscountTypeCombination nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ChangeDiscountTypeCombinationChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ChangeDiscountTypeCombinationChangeBuilder previousValue( + final com.commercetools.history.models.common.DiscountTypeCombination previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ChangeDiscountTypeCombinationChangeBuilder previousValue( + Function> builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.DiscountTypeCombinationBuilder.of()) + .build(); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ChangeDiscountTypeCombinationChangeBuilder nextValue( + final com.commercetools.history.models.common.DiscountTypeCombination nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ChangeDiscountTypeCombinationChangeBuilder nextValue( + Function> builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.DiscountTypeCombinationBuilder.of()) + .build(); + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.DiscountTypeCombination getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.DiscountTypeCombination getNextValue() { + return this.nextValue; + } + + /** + * builds ChangeDiscountTypeCombinationChange with checking for non-null required values + * @return ChangeDiscountTypeCombinationChange + */ + public ChangeDiscountTypeCombinationChange build() { + Objects.requireNonNull(change, ChangeDiscountTypeCombinationChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ChangeDiscountTypeCombinationChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ChangeDiscountTypeCombinationChange.class + ": nextValue is missing"); + return new ChangeDiscountTypeCombinationChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ChangeDiscountTypeCombinationChange without checking for non-null required values + * @return ChangeDiscountTypeCombinationChange + */ + public ChangeDiscountTypeCombinationChange buildUnchecked() { + return new ChangeDiscountTypeCombinationChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ChangeDiscountTypeCombinationChangeBuilder + * @return builder + */ + public static ChangeDiscountTypeCombinationChangeBuilder of() { + return new ChangeDiscountTypeCombinationChangeBuilder(); + } + + /** + * create builder for ChangeDiscountTypeCombinationChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeDiscountTypeCombinationChangeBuilder of(final ChangeDiscountTypeCombinationChange template) { + ChangeDiscountTypeCombinationChangeBuilder builder = new ChangeDiscountTypeCombinationChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChangeImpl.java new file mode 100644 index 00000000000..4518e3aa645 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Discounts Configuration update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeDiscountTypeCombinationChangeImpl implements ChangeDiscountTypeCombinationChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.DiscountTypeCombination previousValue; + + private com.commercetools.history.models.common.DiscountTypeCombination nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ChangeDiscountTypeCombinationChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.DiscountTypeCombination previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.DiscountTypeCombination nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = CHANGE_DISCOUNT_TYPE_COMBINATION_CHANGE; + } + + /** + * create empty instance + */ + public ChangeDiscountTypeCombinationChangeImpl() { + this.type = CHANGE_DISCOUNT_TYPE_COMBINATION_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.DiscountTypeCombination getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.DiscountTypeCombination getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.DiscountTypeCombination previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.DiscountTypeCombination nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ChangeDiscountTypeCombinationChangeImpl that = (ChangeDiscountTypeCombinationChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ChangeDiscountTypeCombinationChange copyDeep() { + return ChangeDiscountTypeCombinationChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChange.java new file mode 100644 index 00000000000..9d940b887a9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChange.java @@ -0,0 +1,236 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.LocalizedString; +import com.commercetools.history.models.common.RoundingMode; +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; + +/** + *

    Change triggered by the Change Price Rounding Mode update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ChangeLineItemPriceRoundingModeChange changeLineItemPriceRoundingModeChange = ChangeLineItemPriceRoundingModeChange.builder()
    + *             .change("{change}")
    + *             .variant("{variant}")
    + *             .lineItem(lineItemBuilder -> lineItemBuilder)
    + *             .lineItemId("{lineItemId}")
    + *             .previousValue(RoundingMode.HALF_EVEN)
    + *             .nextValue(RoundingMode.HALF_EVEN)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ChangeLineItemPriceRoundingModeChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ChangeLineItemPriceRoundingModeChangeImpl.class) +public interface ChangeLineItemPriceRoundingModeChange extends Change { + + /** + * discriminator value for ChangeLineItemPriceRoundingModeChange + */ + String CHANGE_LINE_ITEM_PRICE_ROUNDING_MODE_CHANGE = "ChangeLineItemPriceRoundingModeChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Identifier of the updated Product Variant.

    + *

    This field holds the SKU, if defined; otherwise the key; otherwise the ID.

    + * @return variant + */ + @NotNull + @JsonProperty("variant") + public String getVariant(); + + /** + *

    Name of the updated LineItem.

    + * @return lineItem + */ + @NotNull + @Valid + @JsonProperty("lineItem") + public LocalizedString getLineItem(); + + /** + *

    id of the updated LineItem.

    + * @return lineItemId + */ + @NotNull + @JsonProperty("lineItemId") + public String getLineItemId(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public RoundingMode getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public RoundingMode getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Identifier of the updated Product Variant.

    + *

    This field holds the SKU, if defined; otherwise the key; otherwise the ID.

    + * @param variant value to be set + */ + + public void setVariant(final String variant); + + /** + *

    Name of the updated LineItem.

    + * @param lineItem value to be set + */ + + public void setLineItem(final LocalizedString lineItem); + + /** + *

    id of the updated LineItem.

    + * @param lineItemId value to be set + */ + + public void setLineItemId(final String lineItemId); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final RoundingMode previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final RoundingMode nextValue); + + /** + * factory method + * @return instance of ChangeLineItemPriceRoundingModeChange + */ + public static ChangeLineItemPriceRoundingModeChange of() { + return new ChangeLineItemPriceRoundingModeChangeImpl(); + } + + /** + * factory method to create a shallow copy ChangeLineItemPriceRoundingModeChange + * @param template instance to be copied + * @return copy instance + */ + public static ChangeLineItemPriceRoundingModeChange of(final ChangeLineItemPriceRoundingModeChange template) { + ChangeLineItemPriceRoundingModeChangeImpl instance = new ChangeLineItemPriceRoundingModeChangeImpl(); + instance.setChange(template.getChange()); + instance.setVariant(template.getVariant()); + instance.setLineItem(template.getLineItem()); + instance.setLineItemId(template.getLineItemId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ChangeLineItemPriceRoundingModeChange copyDeep(); + + /** + * factory method to create a deep copy of ChangeLineItemPriceRoundingModeChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ChangeLineItemPriceRoundingModeChange deepCopy( + @Nullable final ChangeLineItemPriceRoundingModeChange template) { + if (template == null) { + return null; + } + ChangeLineItemPriceRoundingModeChangeImpl instance = new ChangeLineItemPriceRoundingModeChangeImpl(); + instance.setChange(template.getChange()); + instance.setVariant(template.getVariant()); + instance.setLineItem(com.commercetools.history.models.common.LocalizedString.deepCopy(template.getLineItem())); + instance.setLineItemId(template.getLineItemId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ChangeLineItemPriceRoundingModeChange + * @return builder + */ + public static ChangeLineItemPriceRoundingModeChangeBuilder builder() { + return ChangeLineItemPriceRoundingModeChangeBuilder.of(); + } + + /** + * create builder for ChangeLineItemPriceRoundingModeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeLineItemPriceRoundingModeChangeBuilder builder( + final ChangeLineItemPriceRoundingModeChange template) { + return ChangeLineItemPriceRoundingModeChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withChangeLineItemPriceRoundingModeChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChangeBuilder.java new file mode 100644 index 00000000000..ae1d7b34558 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChangeBuilder.java @@ -0,0 +1,241 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ChangeLineItemPriceRoundingModeChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ChangeLineItemPriceRoundingModeChange changeLineItemPriceRoundingModeChange = ChangeLineItemPriceRoundingModeChange.builder()
    + *             .change("{change}")
    + *             .variant("{variant}")
    + *             .lineItem(lineItemBuilder -> lineItemBuilder)
    + *             .lineItemId("{lineItemId}")
    + *             .previousValue(RoundingMode.HALF_EVEN)
    + *             .nextValue(RoundingMode.HALF_EVEN)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeLineItemPriceRoundingModeChangeBuilder implements Builder { + + private String change; + + private String variant; + + private com.commercetools.history.models.common.LocalizedString lineItem; + + private String lineItemId; + + private com.commercetools.history.models.common.RoundingMode previousValue; + + private com.commercetools.history.models.common.RoundingMode nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ChangeLineItemPriceRoundingModeChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Identifier of the updated Product Variant.

    + *

    This field holds the SKU, if defined; otherwise the key; otherwise the ID.

    + * @param variant value to be set + * @return Builder + */ + + public ChangeLineItemPriceRoundingModeChangeBuilder variant(final String variant) { + this.variant = variant; + return this; + } + + /** + *

    Name of the updated LineItem.

    + * @param builder function to build the lineItem value + * @return Builder + */ + + public ChangeLineItemPriceRoundingModeChangeBuilder lineItem( + Function builder) { + this.lineItem = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

    Name of the updated LineItem.

    + * @param builder function to build the lineItem value + * @return Builder + */ + + public ChangeLineItemPriceRoundingModeChangeBuilder withLineItem( + Function builder) { + this.lineItem = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()); + return this; + } + + /** + *

    Name of the updated LineItem.

    + * @param lineItem value to be set + * @return Builder + */ + + public ChangeLineItemPriceRoundingModeChangeBuilder lineItem( + final com.commercetools.history.models.common.LocalizedString lineItem) { + this.lineItem = lineItem; + return this; + } + + /** + *

    id of the updated LineItem.

    + * @param lineItemId value to be set + * @return Builder + */ + + public ChangeLineItemPriceRoundingModeChangeBuilder lineItemId(final String lineItemId) { + this.lineItemId = lineItemId; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ChangeLineItemPriceRoundingModeChangeBuilder previousValue( + final com.commercetools.history.models.common.RoundingMode previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ChangeLineItemPriceRoundingModeChangeBuilder nextValue( + final com.commercetools.history.models.common.RoundingMode nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Identifier of the updated Product Variant.

    + *

    This field holds the SKU, if defined; otherwise the key; otherwise the ID.

    + * @return variant + */ + + public String getVariant() { + return this.variant; + } + + /** + *

    Name of the updated LineItem.

    + * @return lineItem + */ + + public com.commercetools.history.models.common.LocalizedString getLineItem() { + return this.lineItem; + } + + /** + *

    id of the updated LineItem.

    + * @return lineItemId + */ + + public String getLineItemId() { + return this.lineItemId; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.RoundingMode getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.RoundingMode getNextValue() { + return this.nextValue; + } + + /** + * builds ChangeLineItemPriceRoundingModeChange with checking for non-null required values + * @return ChangeLineItemPriceRoundingModeChange + */ + public ChangeLineItemPriceRoundingModeChange build() { + Objects.requireNonNull(change, ChangeLineItemPriceRoundingModeChange.class + ": change is missing"); + Objects.requireNonNull(variant, ChangeLineItemPriceRoundingModeChange.class + ": variant is missing"); + Objects.requireNonNull(lineItem, ChangeLineItemPriceRoundingModeChange.class + ": lineItem is missing"); + Objects.requireNonNull(lineItemId, ChangeLineItemPriceRoundingModeChange.class + ": lineItemId is missing"); + Objects.requireNonNull(previousValue, + ChangeLineItemPriceRoundingModeChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ChangeLineItemPriceRoundingModeChange.class + ": nextValue is missing"); + return new ChangeLineItemPriceRoundingModeChangeImpl(change, variant, lineItem, lineItemId, previousValue, + nextValue); + } + + /** + * builds ChangeLineItemPriceRoundingModeChange without checking for non-null required values + * @return ChangeLineItemPriceRoundingModeChange + */ + public ChangeLineItemPriceRoundingModeChange buildUnchecked() { + return new ChangeLineItemPriceRoundingModeChangeImpl(change, variant, lineItem, lineItemId, previousValue, + nextValue); + } + + /** + * factory method for an instance of ChangeLineItemPriceRoundingModeChangeBuilder + * @return builder + */ + public static ChangeLineItemPriceRoundingModeChangeBuilder of() { + return new ChangeLineItemPriceRoundingModeChangeBuilder(); + } + + /** + * create builder for ChangeLineItemPriceRoundingModeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeLineItemPriceRoundingModeChangeBuilder of( + final ChangeLineItemPriceRoundingModeChange template) { + ChangeLineItemPriceRoundingModeChangeBuilder builder = new ChangeLineItemPriceRoundingModeChangeBuilder(); + builder.change = template.getChange(); + builder.variant = template.getVariant(); + builder.lineItem = template.getLineItem(); + builder.lineItemId = template.getLineItemId(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChangeImpl.java new file mode 100644 index 00000000000..1a921ae616c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChangeImpl.java @@ -0,0 +1,201 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Change Price Rounding Mode update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeLineItemPriceRoundingModeChangeImpl implements ChangeLineItemPriceRoundingModeChange, ModelBase { + + private String type; + + private String change; + + private String variant; + + private com.commercetools.history.models.common.LocalizedString lineItem; + + private String lineItemId; + + private com.commercetools.history.models.common.RoundingMode previousValue; + + private com.commercetools.history.models.common.RoundingMode nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ChangeLineItemPriceRoundingModeChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("variant") final String variant, + @JsonProperty("lineItem") final com.commercetools.history.models.common.LocalizedString lineItem, + @JsonProperty("lineItemId") final String lineItemId, + @JsonProperty("previousValue") final com.commercetools.history.models.common.RoundingMode previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.RoundingMode nextValue) { + this.change = change; + this.variant = variant; + this.lineItem = lineItem; + this.lineItemId = lineItemId; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = CHANGE_LINE_ITEM_PRICE_ROUNDING_MODE_CHANGE; + } + + /** + * create empty instance + */ + public ChangeLineItemPriceRoundingModeChangeImpl() { + this.type = CHANGE_LINE_ITEM_PRICE_ROUNDING_MODE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Identifier of the updated Product Variant.

    + *

    This field holds the SKU, if defined; otherwise the key; otherwise the ID.

    + */ + + public String getVariant() { + return this.variant; + } + + /** + *

    Name of the updated LineItem.

    + */ + + public com.commercetools.history.models.common.LocalizedString getLineItem() { + return this.lineItem; + } + + /** + *

    id of the updated LineItem.

    + */ + + public String getLineItemId() { + return this.lineItemId; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.RoundingMode getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.RoundingMode getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setVariant(final String variant) { + this.variant = variant; + } + + public void setLineItem(final com.commercetools.history.models.common.LocalizedString lineItem) { + this.lineItem = lineItem; + } + + public void setLineItemId(final String lineItemId) { + this.lineItemId = lineItemId; + } + + public void setPreviousValue(final com.commercetools.history.models.common.RoundingMode previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.RoundingMode nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ChangeLineItemPriceRoundingModeChangeImpl that = (ChangeLineItemPriceRoundingModeChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(variant, that.variant) + .append(lineItem, that.lineItem) + .append(lineItemId, that.lineItemId) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(variant, that.variant) + .append(lineItem, that.lineItem) + .append(lineItemId, that.lineItemId) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(variant) + .append(lineItem) + .append(lineItemId) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("variant", variant) + .append("lineItem", lineItem) + .append("lineItemId", lineItemId) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ChangeLineItemPriceRoundingModeChange copyDeep() { + return ChangeLineItemPriceRoundingModeChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/PublishChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/PublishChange.java index 19ddbcc83cc..2e70e69268d 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/PublishChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/PublishChange.java @@ -15,7 +15,12 @@ import jakarta.validation.constraints.NotNull; /** - *

    Change triggered by the Publish update action.

    + *

    Change triggered when:

    + *
      + *
    • ProductCatalogData published transitions from false to true.
    • + *
    • Any update action updates the current catalog (using staged=false) and the resulting Product is in a published state.
    • + *
    + *

    For better traceability of the Publish update action, use the ProductPublished Message.

    * *
    * Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/PublishChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/PublishChangeImpl.java index 09ae4a0938b..fe7e31875d4 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/PublishChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/PublishChangeImpl.java @@ -17,7 +17,12 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    Change triggered by the Publish update action.

    + *

    Change triggered when:

    + *
      + *
    • ProductCatalogData published transitions from false to true.
    • + *
    • Any update action updates the current catalog (using staged=false) and the resulting Product is in a published state.
    • + *
    + *

    For better traceability of the Publish update action, use the ProductPublished Message.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class PublishChangeImpl implements PublishChange, ModelBase { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChange.java index fc9d16b4577..2314ce4e210 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChange.java @@ -75,7 +75,7 @@ public interface RemoveBillingAddressIdChange extends Change { public List getNextValue(); /** - *

    Address removed from billingAddressesIds.

    + *

    Address removed from billingAddressIds.

    * @return address */ @NotNull @@ -121,7 +121,7 @@ public interface RemoveBillingAddressIdChange extends Change { public void setNextValue(final List nextValue); /** - *

    Address removed from billingAddressesIds.

    + *

    Address removed from billingAddressIds.

    * @param address value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChangeBuilder.java index e2a8aac564f..57f5e9cae81 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChangeBuilder.java @@ -117,7 +117,7 @@ public RemoveBillingAddressIdChangeBuilder plusNextValue(final String... nextVal } /** - *

    Address removed from billingAddressesIds.

    + *

    Address removed from billingAddressIds.

    * @param builder function to build the address value * @return Builder */ @@ -129,7 +129,7 @@ public RemoveBillingAddressIdChangeBuilder address( } /** - *

    Address removed from billingAddressesIds.

    + *

    Address removed from billingAddressIds.

    * @param builder function to build the address value * @return Builder */ @@ -141,7 +141,7 @@ public RemoveBillingAddressIdChangeBuilder withAddress( } /** - *

    Address removed from billingAddressesIds.

    + *

    Address removed from billingAddressIds.

    * @param address value to be set * @return Builder */ @@ -179,7 +179,7 @@ public java.util.List getNextValue() { } /** - *

    Address removed from billingAddressesIds.

    + *

    Address removed from billingAddressIds.

    * @return address */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChangeImpl.java index 0ee3fc9f419..9e623da72da 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveBillingAddressIdChangeImpl.java @@ -87,7 +87,7 @@ public java.util.List getNextValue() { } /** - *

    Address removed from billingAddressesIds.

    + *

    Address removed from billingAddressIds.

    */ public com.commercetools.history.models.common.Address getAddress() { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChange.java index 27bc84cd245..a993650f83a 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChange.java @@ -75,7 +75,7 @@ public interface RemoveShippingAddressIdChange extends Change { public List getNextValue(); /** - *

    Address removed from shippingAddressesIds.

    + *

    Address removed from shippingAddressIds.

    * @return address */ @NotNull @@ -121,7 +121,7 @@ public interface RemoveShippingAddressIdChange extends Change { public void setNextValue(final List nextValue); /** - *

    Address removed from shippingAddressesIds.

    + *

    Address removed from shippingAddressIds.

    * @param address value to be set */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChangeBuilder.java index c66c9e9c717..9f74f960233 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChangeBuilder.java @@ -117,7 +117,7 @@ public RemoveShippingAddressIdChangeBuilder plusNextValue(final String... nextVa } /** - *

    Address removed from shippingAddressesIds.

    + *

    Address removed from shippingAddressIds.

    * @param builder function to build the address value * @return Builder */ @@ -129,7 +129,7 @@ public RemoveShippingAddressIdChangeBuilder address( } /** - *

    Address removed from shippingAddressesIds.

    + *

    Address removed from shippingAddressIds.

    * @param builder function to build the address value * @return Builder */ @@ -141,7 +141,7 @@ public RemoveShippingAddressIdChangeBuilder withAddress( } /** - *

    Address removed from shippingAddressesIds.

    + *

    Address removed from shippingAddressIds.

    * @param address value to be set * @return Builder */ @@ -179,7 +179,7 @@ public java.util.List getNextValue() { } /** - *

    Address removed from shippingAddressesIds.

    + *

    Address removed from shippingAddressIds.

    * @return address */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChangeImpl.java index a528c5d419a..808ba54964c 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveShippingAddressIdChangeImpl.java @@ -87,7 +87,7 @@ public java.util.List getNextValue() { } /** - *

    Address removed from shippingAddressesIds.

    + *

    Address removed from shippingAddressIds.

    */ public com.commercetools.history.models.common.Address getAddress() { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChange.java new file mode 100644 index 00000000000..34c0cd11216 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChange.java @@ -0,0 +1,265 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.DirectDiscount; +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; + +/** + *

    Change triggered by the Set DirectDiscounts update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetDirectDiscountsChange setDirectDiscountsChange = SetDirectDiscountsChange.builder()
    + *             .change("{change}")
    + *             .plusAddedItems(addedItemsBuilder -> addedItemsBuilder)
    + *             .plusRemovedItems(removedItemsBuilder -> removedItemsBuilder)
    + *             .plusPreviousValue(previousValueBuilder -> previousValueBuilder)
    + *             .plusNextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("SetDirectDiscountsChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = SetDirectDiscountsChangeImpl.class) +public interface SetDirectDiscountsChange extends Change { + + /** + * discriminator value for SetDirectDiscountsChange + */ + String SET_DIRECT_DISCOUNTS_CHANGE = "SetDirectDiscountsChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Elements added to the array.

    + * @return addedItems + */ + @NotNull + @Valid + @JsonProperty("addedItems") + public List getAddedItems(); + + /** + *

    Elements removed from the array.

    + * @return removedItems + */ + @NotNull + @Valid + @JsonProperty("removedItems") + public List getRemovedItems(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public List getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public List getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Elements added to the array.

    + * @param addedItems values to be set + */ + + @JsonIgnore + public void setAddedItems(final DirectDiscount... addedItems); + + /** + *

    Elements added to the array.

    + * @param addedItems values to be set + */ + + public void setAddedItems(final List addedItems); + + /** + *

    Elements removed from the array.

    + * @param removedItems values to be set + */ + + @JsonIgnore + public void setRemovedItems(final DirectDiscount... removedItems); + + /** + *

    Elements removed from the array.

    + * @param removedItems values to be set + */ + + public void setRemovedItems(final List removedItems); + + /** + *

    Value before the change.

    + * @param previousValue values to be set + */ + + @JsonIgnore + public void setPreviousValue(final DirectDiscount... previousValue); + + /** + *

    Value before the change.

    + * @param previousValue values to be set + */ + + public void setPreviousValue(final List previousValue); + + /** + *

    Value after the change.

    + * @param nextValue values to be set + */ + + @JsonIgnore + public void setNextValue(final DirectDiscount... nextValue); + + /** + *

    Value after the change.

    + * @param nextValue values to be set + */ + + public void setNextValue(final List nextValue); + + /** + * factory method + * @return instance of SetDirectDiscountsChange + */ + public static SetDirectDiscountsChange of() { + return new SetDirectDiscountsChangeImpl(); + } + + /** + * factory method to create a shallow copy SetDirectDiscountsChange + * @param template instance to be copied + * @return copy instance + */ + public static SetDirectDiscountsChange of(final SetDirectDiscountsChange template) { + SetDirectDiscountsChangeImpl instance = new SetDirectDiscountsChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddedItems(template.getAddedItems()); + instance.setRemovedItems(template.getRemovedItems()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public SetDirectDiscountsChange copyDeep(); + + /** + * factory method to create a deep copy of SetDirectDiscountsChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetDirectDiscountsChange deepCopy(@Nullable final SetDirectDiscountsChange template) { + if (template == null) { + return null; + } + SetDirectDiscountsChangeImpl instance = new SetDirectDiscountsChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddedItems(Optional.ofNullable(template.getAddedItems()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.DirectDiscount::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setRemovedItems(Optional.ofNullable(template.getRemovedItems()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.DirectDiscount::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setPreviousValue(Optional.ofNullable(template.getPreviousValue()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.DirectDiscount::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setNextValue(Optional.ofNullable(template.getNextValue()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.DirectDiscount::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for SetDirectDiscountsChange + * @return builder + */ + public static SetDirectDiscountsChangeBuilder builder() { + return SetDirectDiscountsChangeBuilder.of(); + } + + /** + * create builder for SetDirectDiscountsChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetDirectDiscountsChangeBuilder builder(final SetDirectDiscountsChange template) { + return SetDirectDiscountsChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withSetDirectDiscountsChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChangeBuilder.java new file mode 100644 index 00000000000..db66626af5f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChangeBuilder.java @@ -0,0 +1,499 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * SetDirectDiscountsChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetDirectDiscountsChange setDirectDiscountsChange = SetDirectDiscountsChange.builder()
    + *             .change("{change}")
    + *             .plusAddedItems(addedItemsBuilder -> addedItemsBuilder)
    + *             .plusRemovedItems(removedItemsBuilder -> removedItemsBuilder)
    + *             .plusPreviousValue(previousValueBuilder -> previousValueBuilder)
    + *             .plusNextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetDirectDiscountsChangeBuilder implements Builder { + + private String change; + + private java.util.List addedItems; + + private java.util.List removedItems; + + private java.util.List previousValue; + + private java.util.List nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Elements added to the array.

    + * @param addedItems value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder addedItems( + final com.commercetools.history.models.common.DirectDiscount... addedItems) { + this.addedItems = new ArrayList<>(Arrays.asList(addedItems)); + return this; + } + + /** + *

    Elements added to the array.

    + * @param addedItems value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder addedItems( + final java.util.List addedItems) { + this.addedItems = addedItems; + return this; + } + + /** + *

    Elements added to the array.

    + * @param addedItems value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder plusAddedItems( + final com.commercetools.history.models.common.DirectDiscount... addedItems) { + if (this.addedItems == null) { + this.addedItems = new ArrayList<>(); + } + this.addedItems.addAll(Arrays.asList(addedItems)); + return this; + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder plusAddedItems( + Function builder) { + if (this.addedItems == null) { + this.addedItems = new ArrayList<>(); + } + this.addedItems.add(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of()).build()); + return this; + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder withAddedItems( + Function builder) { + this.addedItems = new ArrayList<>(); + this.addedItems.add(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of()).build()); + return this; + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder addAddedItems( + Function builder) { + return plusAddedItems(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of())); + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder setAddedItems( + Function builder) { + return addedItems(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of())); + } + + /** + *

    Elements removed from the array.

    + * @param removedItems value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder removedItems( + final com.commercetools.history.models.common.DirectDiscount... removedItems) { + this.removedItems = new ArrayList<>(Arrays.asList(removedItems)); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param removedItems value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder removedItems( + final java.util.List removedItems) { + this.removedItems = removedItems; + return this; + } + + /** + *

    Elements removed from the array.

    + * @param removedItems value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder plusRemovedItems( + final com.commercetools.history.models.common.DirectDiscount... removedItems) { + if (this.removedItems == null) { + this.removedItems = new ArrayList<>(); + } + this.removedItems.addAll(Arrays.asList(removedItems)); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder plusRemovedItems( + Function builder) { + if (this.removedItems == null) { + this.removedItems = new ArrayList<>(); + } + this.removedItems + .add(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of()).build()); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder withRemovedItems( + Function builder) { + this.removedItems = new ArrayList<>(); + this.removedItems + .add(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of()).build()); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder addRemovedItems( + Function builder) { + return plusRemovedItems(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of())); + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder setRemovedItems( + Function builder) { + return removedItems(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of())); + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder previousValue( + final com.commercetools.history.models.common.DirectDiscount... previousValue) { + this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder previousValue( + final java.util.List previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder plusPreviousValue( + final com.commercetools.history.models.common.DirectDiscount... previousValue) { + if (this.previousValue == null) { + this.previousValue = new ArrayList<>(); + } + this.previousValue.addAll(Arrays.asList(previousValue)); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder plusPreviousValue( + Function builder) { + if (this.previousValue == null) { + this.previousValue = new ArrayList<>(); + } + this.previousValue + .add(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of()).build()); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = new ArrayList<>(); + this.previousValue + .add(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of()).build()); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder addPreviousValue( + Function builder) { + return plusPreviousValue(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of())); + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder setPreviousValue( + Function builder) { + return previousValue(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of())); + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder nextValue( + final com.commercetools.history.models.common.DirectDiscount... nextValue) { + this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder nextValue( + final java.util.List nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder plusNextValue( + final com.commercetools.history.models.common.DirectDiscount... nextValue) { + if (this.nextValue == null) { + this.nextValue = new ArrayList<>(); + } + this.nextValue.addAll(Arrays.asList(nextValue)); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder plusNextValue( + Function builder) { + if (this.nextValue == null) { + this.nextValue = new ArrayList<>(); + } + this.nextValue.add(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of()).build()); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder withNextValue( + Function builder) { + this.nextValue = new ArrayList<>(); + this.nextValue.add(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of()).build()); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder addNextValue( + Function builder) { + return plusNextValue(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of())); + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetDirectDiscountsChangeBuilder setNextValue( + Function builder) { + return nextValue(builder.apply(com.commercetools.history.models.common.DirectDiscountBuilder.of())); + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Elements added to the array.

    + * @return addedItems + */ + + public java.util.List getAddedItems() { + return this.addedItems; + } + + /** + *

    Elements removed from the array.

    + * @return removedItems + */ + + public java.util.List getRemovedItems() { + return this.removedItems; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public java.util.List getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public java.util.List getNextValue() { + return this.nextValue; + } + + /** + * builds SetDirectDiscountsChange with checking for non-null required values + * @return SetDirectDiscountsChange + */ + public SetDirectDiscountsChange build() { + Objects.requireNonNull(change, SetDirectDiscountsChange.class + ": change is missing"); + Objects.requireNonNull(addedItems, SetDirectDiscountsChange.class + ": addedItems is missing"); + Objects.requireNonNull(removedItems, SetDirectDiscountsChange.class + ": removedItems is missing"); + Objects.requireNonNull(previousValue, SetDirectDiscountsChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetDirectDiscountsChange.class + ": nextValue is missing"); + return new SetDirectDiscountsChangeImpl(change, addedItems, removedItems, previousValue, nextValue); + } + + /** + * builds SetDirectDiscountsChange without checking for non-null required values + * @return SetDirectDiscountsChange + */ + public SetDirectDiscountsChange buildUnchecked() { + return new SetDirectDiscountsChangeImpl(change, addedItems, removedItems, previousValue, nextValue); + } + + /** + * factory method for an instance of SetDirectDiscountsChangeBuilder + * @return builder + */ + public static SetDirectDiscountsChangeBuilder of() { + return new SetDirectDiscountsChangeBuilder(); + } + + /** + * create builder for SetDirectDiscountsChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetDirectDiscountsChangeBuilder of(final SetDirectDiscountsChange template) { + SetDirectDiscountsChangeBuilder builder = new SetDirectDiscountsChangeBuilder(); + builder.change = template.getChange(); + builder.addedItems = template.getAddedItems(); + builder.removedItems = template.getRemovedItems(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChangeImpl.java new file mode 100644 index 00000000000..f9dbb5b380e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChangeImpl.java @@ -0,0 +1,198 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set DirectDiscounts update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetDirectDiscountsChangeImpl implements SetDirectDiscountsChange, ModelBase { + + private String type; + + private String change; + + private java.util.List addedItems; + + private java.util.List removedItems; + + private java.util.List previousValue; + + private java.util.List nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + SetDirectDiscountsChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("addedItems") final java.util.List addedItems, + @JsonProperty("removedItems") final java.util.List removedItems, + @JsonProperty("previousValue") final java.util.List previousValue, + @JsonProperty("nextValue") final java.util.List nextValue) { + this.change = change; + this.addedItems = addedItems; + this.removedItems = removedItems; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SET_DIRECT_DISCOUNTS_CHANGE; + } + + /** + * create empty instance + */ + public SetDirectDiscountsChangeImpl() { + this.type = SET_DIRECT_DISCOUNTS_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Elements added to the array.

    + */ + + public java.util.List getAddedItems() { + return this.addedItems; + } + + /** + *

    Elements removed from the array.

    + */ + + public java.util.List getRemovedItems() { + return this.removedItems; + } + + /** + *

    Value before the change.

    + */ + + public java.util.List getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public java.util.List getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setAddedItems(final com.commercetools.history.models.common.DirectDiscount... addedItems) { + this.addedItems = new ArrayList<>(Arrays.asList(addedItems)); + } + + public void setAddedItems(final java.util.List addedItems) { + this.addedItems = addedItems; + } + + public void setRemovedItems(final com.commercetools.history.models.common.DirectDiscount... removedItems) { + this.removedItems = new ArrayList<>(Arrays.asList(removedItems)); + } + + public void setRemovedItems( + final java.util.List removedItems) { + this.removedItems = removedItems; + } + + public void setPreviousValue(final com.commercetools.history.models.common.DirectDiscount... previousValue) { + this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); + } + + public void setPreviousValue( + final java.util.List previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.DirectDiscount... nextValue) { + this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); + } + + public void setNextValue(final java.util.List nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetDirectDiscountsChangeImpl that = (SetDirectDiscountsChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(addedItems, that.addedItems) + .append(removedItems, that.removedItems) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(addedItems, that.addedItems) + .append(removedItems, that.removedItems) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(addedItems) + .append(removedItems) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("addedItems", addedItems) + .append("removedItems", removedItems) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public SetDirectDiscountsChange copyDeep() { + return SetDirectDiscountsChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetReferencesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetReferencesChange.java new file mode 100644 index 00000000000..2d12dc3f398 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetReferencesChange.java @@ -0,0 +1,270 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.Reference; +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; + +/** + *

    Change is triggered when an entity referenced in a discount predicate is modified during the following actions:

    + * + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetReferencesChange setReferencesChange = SetReferencesChange.builder()
    + *             .change("{change}")
    + *             .plusAddedItems(addedItemsBuilder -> addedItemsBuilder)
    + *             .plusRemovedItems(removedItemsBuilder -> removedItemsBuilder)
    + *             .plusPreviousValue(previousValueBuilder -> previousValueBuilder)
    + *             .plusNextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("SetReferencesChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = SetReferencesChangeImpl.class) +public interface SetReferencesChange extends Change { + + /** + * discriminator value for SetReferencesChange + */ + String SET_REFERENCES_CHANGE = "SetReferencesChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Elements added to the array.

    + * @return addedItems + */ + @NotNull + @Valid + @JsonProperty("addedItems") + public List getAddedItems(); + + /** + *

    Elements removed from the array.

    + * @return removedItems + */ + @NotNull + @Valid + @JsonProperty("removedItems") + public List getRemovedItems(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public List getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public List getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Elements added to the array.

    + * @param addedItems values to be set + */ + + @JsonIgnore + public void setAddedItems(final Reference... addedItems); + + /** + *

    Elements added to the array.

    + * @param addedItems values to be set + */ + + public void setAddedItems(final List addedItems); + + /** + *

    Elements removed from the array.

    + * @param removedItems values to be set + */ + + @JsonIgnore + public void setRemovedItems(final Reference... removedItems); + + /** + *

    Elements removed from the array.

    + * @param removedItems values to be set + */ + + public void setRemovedItems(final List removedItems); + + /** + *

    Value before the change.

    + * @param previousValue values to be set + */ + + @JsonIgnore + public void setPreviousValue(final Reference... previousValue); + + /** + *

    Value before the change.

    + * @param previousValue values to be set + */ + + public void setPreviousValue(final List previousValue); + + /** + *

    Value after the change.

    + * @param nextValue values to be set + */ + + @JsonIgnore + public void setNextValue(final Reference... nextValue); + + /** + *

    Value after the change.

    + * @param nextValue values to be set + */ + + public void setNextValue(final List nextValue); + + /** + * factory method + * @return instance of SetReferencesChange + */ + public static SetReferencesChange of() { + return new SetReferencesChangeImpl(); + } + + /** + * factory method to create a shallow copy SetReferencesChange + * @param template instance to be copied + * @return copy instance + */ + public static SetReferencesChange of(final SetReferencesChange template) { + SetReferencesChangeImpl instance = new SetReferencesChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddedItems(template.getAddedItems()); + instance.setRemovedItems(template.getRemovedItems()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public SetReferencesChange copyDeep(); + + /** + * factory method to create a deep copy of SetReferencesChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetReferencesChange deepCopy(@Nullable final SetReferencesChange template) { + if (template == null) { + return null; + } + SetReferencesChangeImpl instance = new SetReferencesChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddedItems(Optional.ofNullable(template.getAddedItems()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.Reference::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setRemovedItems(Optional.ofNullable(template.getRemovedItems()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.Reference::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setPreviousValue(Optional.ofNullable(template.getPreviousValue()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.Reference::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setNextValue(Optional.ofNullable(template.getNextValue()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.Reference::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for SetReferencesChange + * @return builder + */ + public static SetReferencesChangeBuilder builder() { + return SetReferencesChangeBuilder.of(); + } + + /** + * create builder for SetReferencesChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetReferencesChangeBuilder builder(final SetReferencesChange template) { + return SetReferencesChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withSetReferencesChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetReferencesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetReferencesChangeBuilder.java new file mode 100644 index 00000000000..7e665bcbf4f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetReferencesChangeBuilder.java @@ -0,0 +1,406 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * SetReferencesChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetReferencesChange setReferencesChange = SetReferencesChange.builder()
    + *             .change("{change}")
    + *             .plusAddedItems(addedItemsBuilder -> addedItemsBuilder)
    + *             .plusRemovedItems(removedItemsBuilder -> removedItemsBuilder)
    + *             .plusPreviousValue(previousValueBuilder -> previousValueBuilder)
    + *             .plusNextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetReferencesChangeBuilder implements Builder { + + private String change; + + private java.util.List addedItems; + + private java.util.List removedItems; + + private java.util.List previousValue; + + private java.util.List nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Elements added to the array.

    + * @param addedItems value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder addedItems( + final com.commercetools.history.models.common.Reference... addedItems) { + this.addedItems = new ArrayList<>(Arrays.asList(addedItems)); + return this; + } + + /** + *

    Elements added to the array.

    + * @param addedItems value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder addedItems( + final java.util.List addedItems) { + this.addedItems = addedItems; + return this; + } + + /** + *

    Elements added to the array.

    + * @param addedItems value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder plusAddedItems( + final com.commercetools.history.models.common.Reference... addedItems) { + if (this.addedItems == null) { + this.addedItems = new ArrayList<>(); + } + this.addedItems.addAll(Arrays.asList(addedItems)); + return this; + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public SetReferencesChangeBuilder plusAddedItems( + Function> builder) { + if (this.addedItems == null) { + this.addedItems = new ArrayList<>(); + } + this.addedItems.add(builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build()); + return this; + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public SetReferencesChangeBuilder withAddedItems( + Function> builder) { + this.addedItems = new ArrayList<>(); + this.addedItems.add(builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build()); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param removedItems value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder removedItems( + final com.commercetools.history.models.common.Reference... removedItems) { + this.removedItems = new ArrayList<>(Arrays.asList(removedItems)); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param removedItems value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder removedItems( + final java.util.List removedItems) { + this.removedItems = removedItems; + return this; + } + + /** + *

    Elements removed from the array.

    + * @param removedItems value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder plusRemovedItems( + final com.commercetools.history.models.common.Reference... removedItems) { + if (this.removedItems == null) { + this.removedItems = new ArrayList<>(); + } + this.removedItems.addAll(Arrays.asList(removedItems)); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public SetReferencesChangeBuilder plusRemovedItems( + Function> builder) { + if (this.removedItems == null) { + this.removedItems = new ArrayList<>(); + } + this.removedItems.add(builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build()); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public SetReferencesChangeBuilder withRemovedItems( + Function> builder) { + this.removedItems = new ArrayList<>(); + this.removedItems.add(builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder previousValue( + final com.commercetools.history.models.common.Reference... previousValue) { + this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder previousValue( + final java.util.List previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder plusPreviousValue( + final com.commercetools.history.models.common.Reference... previousValue) { + if (this.previousValue == null) { + this.previousValue = new ArrayList<>(); + } + this.previousValue.addAll(Arrays.asList(previousValue)); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetReferencesChangeBuilder plusPreviousValue( + Function> builder) { + if (this.previousValue == null) { + this.previousValue = new ArrayList<>(); + } + this.previousValue.add(builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build()); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetReferencesChangeBuilder withPreviousValue( + Function> builder) { + this.previousValue = new ArrayList<>(); + this.previousValue.add(builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder nextValue(final com.commercetools.history.models.common.Reference... nextValue) { + this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder nextValue( + final java.util.List nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public SetReferencesChangeBuilder plusNextValue( + final com.commercetools.history.models.common.Reference... nextValue) { + if (this.nextValue == null) { + this.nextValue = new ArrayList<>(); + } + this.nextValue.addAll(Arrays.asList(nextValue)); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetReferencesChangeBuilder plusNextValue( + Function> builder) { + if (this.nextValue == null) { + this.nextValue = new ArrayList<>(); + } + this.nextValue.add(builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build()); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetReferencesChangeBuilder withNextValue( + Function> builder) { + this.nextValue = new ArrayList<>(); + this.nextValue.add(builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build()); + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Elements added to the array.

    + * @return addedItems + */ + + public java.util.List getAddedItems() { + return this.addedItems; + } + + /** + *

    Elements removed from the array.

    + * @return removedItems + */ + + public java.util.List getRemovedItems() { + return this.removedItems; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public java.util.List getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public java.util.List getNextValue() { + return this.nextValue; + } + + /** + * builds SetReferencesChange with checking for non-null required values + * @return SetReferencesChange + */ + public SetReferencesChange build() { + Objects.requireNonNull(change, SetReferencesChange.class + ": change is missing"); + Objects.requireNonNull(addedItems, SetReferencesChange.class + ": addedItems is missing"); + Objects.requireNonNull(removedItems, SetReferencesChange.class + ": removedItems is missing"); + Objects.requireNonNull(previousValue, SetReferencesChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetReferencesChange.class + ": nextValue is missing"); + return new SetReferencesChangeImpl(change, addedItems, removedItems, previousValue, nextValue); + } + + /** + * builds SetReferencesChange without checking for non-null required values + * @return SetReferencesChange + */ + public SetReferencesChange buildUnchecked() { + return new SetReferencesChangeImpl(change, addedItems, removedItems, previousValue, nextValue); + } + + /** + * factory method for an instance of SetReferencesChangeBuilder + * @return builder + */ + public static SetReferencesChangeBuilder of() { + return new SetReferencesChangeBuilder(); + } + + /** + * create builder for SetReferencesChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetReferencesChangeBuilder of(final SetReferencesChange template) { + SetReferencesChangeBuilder builder = new SetReferencesChangeBuilder(); + builder.change = template.getChange(); + builder.addedItems = template.getAddedItems(); + builder.removedItems = template.getRemovedItems(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetReferencesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetReferencesChangeImpl.java new file mode 100644 index 00000000000..a6374622c4c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetReferencesChangeImpl.java @@ -0,0 +1,202 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change is triggered when an entity referenced in a discount predicate is modified during the following actions:

    + * + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetReferencesChangeImpl implements SetReferencesChange, ModelBase { + + private String type; + + private String change; + + private java.util.List addedItems; + + private java.util.List removedItems; + + private java.util.List previousValue; + + private java.util.List nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + SetReferencesChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("addedItems") final java.util.List addedItems, + @JsonProperty("removedItems") final java.util.List removedItems, + @JsonProperty("previousValue") final java.util.List previousValue, + @JsonProperty("nextValue") final java.util.List nextValue) { + this.change = change; + this.addedItems = addedItems; + this.removedItems = removedItems; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SET_REFERENCES_CHANGE; + } + + /** + * create empty instance + */ + public SetReferencesChangeImpl() { + this.type = SET_REFERENCES_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Elements added to the array.

    + */ + + public java.util.List getAddedItems() { + return this.addedItems; + } + + /** + *

    Elements removed from the array.

    + */ + + public java.util.List getRemovedItems() { + return this.removedItems; + } + + /** + *

    Value before the change.

    + */ + + public java.util.List getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public java.util.List getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setAddedItems(final com.commercetools.history.models.common.Reference... addedItems) { + this.addedItems = new ArrayList<>(Arrays.asList(addedItems)); + } + + public void setAddedItems(final java.util.List addedItems) { + this.addedItems = addedItems; + } + + public void setRemovedItems(final com.commercetools.history.models.common.Reference... removedItems) { + this.removedItems = new ArrayList<>(Arrays.asList(removedItems)); + } + + public void setRemovedItems(final java.util.List removedItems) { + this.removedItems = removedItems; + } + + public void setPreviousValue(final com.commercetools.history.models.common.Reference... previousValue) { + this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); + } + + public void setPreviousValue( + final java.util.List previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.Reference... nextValue) { + this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); + } + + public void setNextValue(final java.util.List nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetReferencesChangeImpl that = (SetReferencesChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(addedItems, that.addedItems) + .append(removedItems, that.removedItems) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(addedItems, that.addedItems) + .append(removedItems, that.removedItems) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(addedItems) + .append(removedItems) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("addedItems", addedItems) + .append("removedItems", removedItems) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public SetReferencesChange copyDeep() { + return SetReferencesChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChange.java new file mode 100644 index 00000000000..e52b0a711f7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChange.java @@ -0,0 +1,182 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.DiscountedLineItemPrice; +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; + +/** + *

    Change triggered when a shipping price is modified due to a discount.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetShippingInfoDiscountedPriceChange setShippingInfoDiscountedPriceChange = SetShippingInfoDiscountedPriceChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("SetShippingInfoDiscountedPriceChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = SetShippingInfoDiscountedPriceChangeImpl.class) +public interface SetShippingInfoDiscountedPriceChange extends Change { + + /** + * discriminator value for SetShippingInfoDiscountedPriceChange + */ + String SET_SHIPPING_INFO_DISCOUNTED_PRICE_CHANGE = "SetShippingInfoDiscountedPriceChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public DiscountedLineItemPrice getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public DiscountedLineItemPrice getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final DiscountedLineItemPrice previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final DiscountedLineItemPrice nextValue); + + /** + * factory method + * @return instance of SetShippingInfoDiscountedPriceChange + */ + public static SetShippingInfoDiscountedPriceChange of() { + return new SetShippingInfoDiscountedPriceChangeImpl(); + } + + /** + * factory method to create a shallow copy SetShippingInfoDiscountedPriceChange + * @param template instance to be copied + * @return copy instance + */ + public static SetShippingInfoDiscountedPriceChange of(final SetShippingInfoDiscountedPriceChange template) { + SetShippingInfoDiscountedPriceChangeImpl instance = new SetShippingInfoDiscountedPriceChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public SetShippingInfoDiscountedPriceChange copyDeep(); + + /** + * factory method to create a deep copy of SetShippingInfoDiscountedPriceChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetShippingInfoDiscountedPriceChange deepCopy( + @Nullable final SetShippingInfoDiscountedPriceChange template) { + if (template == null) { + return null; + } + SetShippingInfoDiscountedPriceChangeImpl instance = new SetShippingInfoDiscountedPriceChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.DiscountedLineItemPrice.deepCopy(template.getPreviousValue())); + instance.setNextValue( + com.commercetools.history.models.common.DiscountedLineItemPrice.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for SetShippingInfoDiscountedPriceChange + * @return builder + */ + public static SetShippingInfoDiscountedPriceChangeBuilder builder() { + return SetShippingInfoDiscountedPriceChangeBuilder.of(); + } + + /** + * create builder for SetShippingInfoDiscountedPriceChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetShippingInfoDiscountedPriceChangeBuilder builder( + final SetShippingInfoDiscountedPriceChange template) { + return SetShippingInfoDiscountedPriceChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withSetShippingInfoDiscountedPriceChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChangeBuilder.java new file mode 100644 index 00000000000..b4735c8e960 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChangeBuilder.java @@ -0,0 +1,186 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * SetShippingInfoDiscountedPriceChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetShippingInfoDiscountedPriceChange setShippingInfoDiscountedPriceChange = SetShippingInfoDiscountedPriceChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetShippingInfoDiscountedPriceChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.DiscountedLineItemPrice previousValue; + + private com.commercetools.history.models.common.DiscountedLineItemPrice nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public SetShippingInfoDiscountedPriceChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetShippingInfoDiscountedPriceChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.DiscountedLineItemPriceBuilder.of()) + .build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetShippingInfoDiscountedPriceChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.DiscountedLineItemPriceBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public SetShippingInfoDiscountedPriceChangeBuilder previousValue( + final com.commercetools.history.models.common.DiscountedLineItemPrice previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetShippingInfoDiscountedPriceChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.DiscountedLineItemPriceBuilder.of()) + .build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetShippingInfoDiscountedPriceChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.DiscountedLineItemPriceBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public SetShippingInfoDiscountedPriceChangeBuilder nextValue( + final com.commercetools.history.models.common.DiscountedLineItemPrice nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.DiscountedLineItemPrice getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.DiscountedLineItemPrice getNextValue() { + return this.nextValue; + } + + /** + * builds SetShippingInfoDiscountedPriceChange with checking for non-null required values + * @return SetShippingInfoDiscountedPriceChange + */ + public SetShippingInfoDiscountedPriceChange build() { + Objects.requireNonNull(change, SetShippingInfoDiscountedPriceChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, + SetShippingInfoDiscountedPriceChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetShippingInfoDiscountedPriceChange.class + ": nextValue is missing"); + return new SetShippingInfoDiscountedPriceChangeImpl(change, previousValue, nextValue); + } + + /** + * builds SetShippingInfoDiscountedPriceChange without checking for non-null required values + * @return SetShippingInfoDiscountedPriceChange + */ + public SetShippingInfoDiscountedPriceChange buildUnchecked() { + return new SetShippingInfoDiscountedPriceChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of SetShippingInfoDiscountedPriceChangeBuilder + * @return builder + */ + public static SetShippingInfoDiscountedPriceChangeBuilder of() { + return new SetShippingInfoDiscountedPriceChangeBuilder(); + } + + /** + * create builder for SetShippingInfoDiscountedPriceChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetShippingInfoDiscountedPriceChangeBuilder of(final SetShippingInfoDiscountedPriceChange template) { + SetShippingInfoDiscountedPriceChangeBuilder builder = new SetShippingInfoDiscountedPriceChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChangeImpl.java new file mode 100644 index 00000000000..fbf5872f00f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered when a shipping price is modified due to a discount.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetShippingInfoDiscountedPriceChangeImpl implements SetShippingInfoDiscountedPriceChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.DiscountedLineItemPrice previousValue; + + private com.commercetools.history.models.common.DiscountedLineItemPrice nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + SetShippingInfoDiscountedPriceChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.DiscountedLineItemPrice previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.DiscountedLineItemPrice nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SET_SHIPPING_INFO_DISCOUNTED_PRICE_CHANGE; + } + + /** + * create empty instance + */ + public SetShippingInfoDiscountedPriceChangeImpl() { + this.type = SET_SHIPPING_INFO_DISCOUNTED_PRICE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.DiscountedLineItemPrice getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.DiscountedLineItemPrice getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.DiscountedLineItemPrice previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.DiscountedLineItemPrice nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetShippingInfoDiscountedPriceChangeImpl that = (SetShippingInfoDiscountedPriceChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public SetShippingInfoDiscountedPriceChange copyDeep() { + return SetShippingInfoDiscountedPriceChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChange.java new file mode 100644 index 00000000000..8da3100ef0f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChange.java @@ -0,0 +1,199 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.Reference; +import com.commercetools.history.models.common.TaxMode; +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; + +/** + *

    Change triggered when the Tax Category of a Shipping Method associated with an Order has changed.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetShippingMethodTaxCategoryChange setShippingMethodTaxCategoryChange = SetShippingMethodTaxCategoryChange.builder()
    + *             .change("{change}")
    + *             .taxMode(TaxMode.PLATFORM)
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("SetShippingMethodTaxCategoryChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = SetShippingMethodTaxCategoryChangeImpl.class) +public interface SetShippingMethodTaxCategoryChange extends Change { + + /** + * discriminator value for SetShippingMethodTaxCategoryChange + */ + String SET_SHIPPING_METHOD_TAX_CATEGORY_CHANGE = "SetShippingMethodTaxCategoryChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Indicates how Tax Rates are set.

    + * @return taxMode + */ + @NotNull + @JsonProperty("taxMode") + public TaxMode getTaxMode(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public Reference getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public Reference getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Indicates how Tax Rates are set.

    + * @param taxMode value to be set + */ + + public void setTaxMode(final TaxMode taxMode); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final Reference previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Reference nextValue); + + /** + * factory method + * @return instance of SetShippingMethodTaxCategoryChange + */ + public static SetShippingMethodTaxCategoryChange of() { + return new SetShippingMethodTaxCategoryChangeImpl(); + } + + /** + * factory method to create a shallow copy SetShippingMethodTaxCategoryChange + * @param template instance to be copied + * @return copy instance + */ + public static SetShippingMethodTaxCategoryChange of(final SetShippingMethodTaxCategoryChange template) { + SetShippingMethodTaxCategoryChangeImpl instance = new SetShippingMethodTaxCategoryChangeImpl(); + instance.setChange(template.getChange()); + instance.setTaxMode(template.getTaxMode()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public SetShippingMethodTaxCategoryChange copyDeep(); + + /** + * factory method to create a deep copy of SetShippingMethodTaxCategoryChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetShippingMethodTaxCategoryChange deepCopy( + @Nullable final SetShippingMethodTaxCategoryChange template) { + if (template == null) { + return null; + } + SetShippingMethodTaxCategoryChangeImpl instance = new SetShippingMethodTaxCategoryChangeImpl(); + instance.setChange(template.getChange()); + instance.setTaxMode(template.getTaxMode()); + instance.setPreviousValue( + com.commercetools.history.models.common.Reference.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.Reference.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for SetShippingMethodTaxCategoryChange + * @return builder + */ + public static SetShippingMethodTaxCategoryChangeBuilder builder() { + return SetShippingMethodTaxCategoryChangeBuilder.of(); + } + + /** + * create builder for SetShippingMethodTaxCategoryChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetShippingMethodTaxCategoryChangeBuilder builder(final SetShippingMethodTaxCategoryChange template) { + return SetShippingMethodTaxCategoryChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withSetShippingMethodTaxCategoryChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChangeBuilder.java new file mode 100644 index 00000000000..867703f968b --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChangeBuilder.java @@ -0,0 +1,185 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * SetShippingMethodTaxCategoryChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetShippingMethodTaxCategoryChange setShippingMethodTaxCategoryChange = SetShippingMethodTaxCategoryChange.builder()
    + *             .change("{change}")
    + *             .taxMode(TaxMode.PLATFORM)
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetShippingMethodTaxCategoryChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.TaxMode taxMode; + + private com.commercetools.history.models.common.Reference previousValue; + + private com.commercetools.history.models.common.Reference nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public SetShippingMethodTaxCategoryChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Indicates how Tax Rates are set.

    + * @param taxMode value to be set + * @return Builder + */ + + public SetShippingMethodTaxCategoryChangeBuilder taxMode( + final com.commercetools.history.models.common.TaxMode taxMode) { + this.taxMode = taxMode; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public SetShippingMethodTaxCategoryChangeBuilder previousValue( + final com.commercetools.history.models.common.Reference previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetShippingMethodTaxCategoryChangeBuilder previousValue( + Function> builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public SetShippingMethodTaxCategoryChangeBuilder nextValue( + final com.commercetools.history.models.common.Reference nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetShippingMethodTaxCategoryChangeBuilder nextValue( + Function> builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Indicates how Tax Rates are set.

    + * @return taxMode + */ + + public com.commercetools.history.models.common.TaxMode getTaxMode() { + return this.taxMode; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.Reference getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.Reference getNextValue() { + return this.nextValue; + } + + /** + * builds SetShippingMethodTaxCategoryChange with checking for non-null required values + * @return SetShippingMethodTaxCategoryChange + */ + public SetShippingMethodTaxCategoryChange build() { + Objects.requireNonNull(change, SetShippingMethodTaxCategoryChange.class + ": change is missing"); + Objects.requireNonNull(taxMode, SetShippingMethodTaxCategoryChange.class + ": taxMode is missing"); + Objects.requireNonNull(previousValue, SetShippingMethodTaxCategoryChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetShippingMethodTaxCategoryChange.class + ": nextValue is missing"); + return new SetShippingMethodTaxCategoryChangeImpl(change, taxMode, previousValue, nextValue); + } + + /** + * builds SetShippingMethodTaxCategoryChange without checking for non-null required values + * @return SetShippingMethodTaxCategoryChange + */ + public SetShippingMethodTaxCategoryChange buildUnchecked() { + return new SetShippingMethodTaxCategoryChangeImpl(change, taxMode, previousValue, nextValue); + } + + /** + * factory method for an instance of SetShippingMethodTaxCategoryChangeBuilder + * @return builder + */ + public static SetShippingMethodTaxCategoryChangeBuilder of() { + return new SetShippingMethodTaxCategoryChangeBuilder(); + } + + /** + * create builder for SetShippingMethodTaxCategoryChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetShippingMethodTaxCategoryChangeBuilder of(final SetShippingMethodTaxCategoryChange template) { + SetShippingMethodTaxCategoryChangeBuilder builder = new SetShippingMethodTaxCategoryChangeBuilder(); + builder.change = template.getChange(); + builder.taxMode = template.getTaxMode(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChangeImpl.java new file mode 100644 index 00000000000..a0b16dac946 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChangeImpl.java @@ -0,0 +1,160 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered when the Tax Category of a Shipping Method associated with an Order has changed.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetShippingMethodTaxCategoryChangeImpl implements SetShippingMethodTaxCategoryChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.TaxMode taxMode; + + private com.commercetools.history.models.common.Reference previousValue; + + private com.commercetools.history.models.common.Reference nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + SetShippingMethodTaxCategoryChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("taxMode") final com.commercetools.history.models.common.TaxMode taxMode, + @JsonProperty("previousValue") final com.commercetools.history.models.common.Reference previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.Reference nextValue) { + this.change = change; + this.taxMode = taxMode; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SET_SHIPPING_METHOD_TAX_CATEGORY_CHANGE; + } + + /** + * create empty instance + */ + public SetShippingMethodTaxCategoryChangeImpl() { + this.type = SET_SHIPPING_METHOD_TAX_CATEGORY_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Indicates how Tax Rates are set.

    + */ + + public com.commercetools.history.models.common.TaxMode getTaxMode() { + return this.taxMode; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.Reference getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.Reference getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setTaxMode(final com.commercetools.history.models.common.TaxMode taxMode) { + this.taxMode = taxMode; + } + + public void setPreviousValue(final com.commercetools.history.models.common.Reference previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.Reference nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetShippingMethodTaxCategoryChangeImpl that = (SetShippingMethodTaxCategoryChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(taxMode, that.taxMode) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(taxMode, that.taxMode) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(taxMode) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("taxMode", taxMode) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public SetShippingMethodTaxCategoryChange copyDeep() { + return SetShippingMethodTaxCategoryChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChange.java new file mode 100644 index 00000000000..7c506472dd3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChange.java @@ -0,0 +1,179 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.TaxedPrice; +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; + +/** + *

    Change triggered when there is a recalculation after an Order Edit.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetTaxedShippingPriceChange setTaxedShippingPriceChange = SetTaxedShippingPriceChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("SetTaxedShippingPriceChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = SetTaxedShippingPriceChangeImpl.class) +public interface SetTaxedShippingPriceChange extends Change { + + /** + * discriminator value for SetTaxedShippingPriceChange + */ + String SET_TAXED_SHIPPING_PRICE_CHANGE = "SetTaxedShippingPriceChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public TaxedPrice getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public TaxedPrice getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final TaxedPrice previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final TaxedPrice nextValue); + + /** + * factory method + * @return instance of SetTaxedShippingPriceChange + */ + public static SetTaxedShippingPriceChange of() { + return new SetTaxedShippingPriceChangeImpl(); + } + + /** + * factory method to create a shallow copy SetTaxedShippingPriceChange + * @param template instance to be copied + * @return copy instance + */ + public static SetTaxedShippingPriceChange of(final SetTaxedShippingPriceChange template) { + SetTaxedShippingPriceChangeImpl instance = new SetTaxedShippingPriceChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public SetTaxedShippingPriceChange copyDeep(); + + /** + * factory method to create a deep copy of SetTaxedShippingPriceChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetTaxedShippingPriceChange deepCopy(@Nullable final SetTaxedShippingPriceChange template) { + if (template == null) { + return null; + } + SetTaxedShippingPriceChangeImpl instance = new SetTaxedShippingPriceChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.TaxedPrice.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.TaxedPrice.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for SetTaxedShippingPriceChange + * @return builder + */ + public static SetTaxedShippingPriceChangeBuilder builder() { + return SetTaxedShippingPriceChangeBuilder.of(); + } + + /** + * create builder for SetTaxedShippingPriceChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetTaxedShippingPriceChangeBuilder builder(final SetTaxedShippingPriceChange template) { + return SetTaxedShippingPriceChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withSetTaxedShippingPriceChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChangeBuilder.java new file mode 100644 index 00000000000..58773607978 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChangeBuilder.java @@ -0,0 +1,183 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * SetTaxedShippingPriceChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     SetTaxedShippingPriceChange setTaxedShippingPriceChange = SetTaxedShippingPriceChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetTaxedShippingPriceChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.TaxedPrice previousValue; + + private com.commercetools.history.models.common.TaxedPrice nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public SetTaxedShippingPriceChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetTaxedShippingPriceChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.TaxedPriceBuilder.of()).build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public SetTaxedShippingPriceChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.TaxedPriceBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public SetTaxedShippingPriceChangeBuilder previousValue( + final com.commercetools.history.models.common.TaxedPrice previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetTaxedShippingPriceChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.TaxedPriceBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public SetTaxedShippingPriceChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.TaxedPriceBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public SetTaxedShippingPriceChangeBuilder nextValue( + final com.commercetools.history.models.common.TaxedPrice nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.TaxedPrice getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.TaxedPrice getNextValue() { + return this.nextValue; + } + + /** + * builds SetTaxedShippingPriceChange with checking for non-null required values + * @return SetTaxedShippingPriceChange + */ + public SetTaxedShippingPriceChange build() { + Objects.requireNonNull(change, SetTaxedShippingPriceChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, SetTaxedShippingPriceChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetTaxedShippingPriceChange.class + ": nextValue is missing"); + return new SetTaxedShippingPriceChangeImpl(change, previousValue, nextValue); + } + + /** + * builds SetTaxedShippingPriceChange without checking for non-null required values + * @return SetTaxedShippingPriceChange + */ + public SetTaxedShippingPriceChange buildUnchecked() { + return new SetTaxedShippingPriceChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of SetTaxedShippingPriceChangeBuilder + * @return builder + */ + public static SetTaxedShippingPriceChangeBuilder of() { + return new SetTaxedShippingPriceChangeBuilder(); + } + + /** + * create builder for SetTaxedShippingPriceChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetTaxedShippingPriceChangeBuilder of(final SetTaxedShippingPriceChange template) { + SetTaxedShippingPriceChangeBuilder builder = new SetTaxedShippingPriceChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChangeImpl.java new file mode 100644 index 00000000000..07c36cc6719 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered when there is a recalculation after an Order Edit.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetTaxedShippingPriceChangeImpl implements SetTaxedShippingPriceChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.TaxedPrice previousValue; + + private com.commercetools.history.models.common.TaxedPrice nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + SetTaxedShippingPriceChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.TaxedPrice previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.TaxedPrice nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SET_TAXED_SHIPPING_PRICE_CHANGE; + } + + /** + * create empty instance + */ + public SetTaxedShippingPriceChangeImpl() { + this.type = SET_TAXED_SHIPPING_PRICE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.TaxedPrice getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.TaxedPrice getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.TaxedPrice previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.TaxedPrice nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetTaxedShippingPriceChangeImpl that = (SetTaxedShippingPriceChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public SetTaxedShippingPriceChange copyDeep() { + return SetTaxedShippingPriceChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChange.java new file mode 100644 index 00000000000..aee7f360df3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChange.java @@ -0,0 +1,181 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.ShippingRate; +import com.commercetools.history.models.common.ZoneResourceIdentifier; +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; + +/** + *

    Change triggered by the Add ShippingRate update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodAddShippingRateChange shippingMethodAddShippingRateChange = ShippingMethodAddShippingRateChange.builder()
    + *             .change("{change}")
    + *             .zone(zoneBuilder -> zoneBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodAddShippingRateChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodAddShippingRateChangeImpl.class) +public interface ShippingMethodAddShippingRateChange extends Change { + + /** + * discriminator value for ShippingMethodAddShippingRateChange + */ + String SHIPPING_METHOD_ADD_SHIPPING_RATE_CHANGE = "ShippingMethodAddShippingRateChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Zone to which the ShippingRate was added.

    + * @return zone + */ + @NotNull + @Valid + @JsonProperty("zone") + public ZoneResourceIdentifier getZone(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public ShippingRate getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Zone to which the ShippingRate was added.

    + * @param zone value to be set + */ + + public void setZone(final ZoneResourceIdentifier zone); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final ShippingRate nextValue); + + /** + * factory method + * @return instance of ShippingMethodAddShippingRateChange + */ + public static ShippingMethodAddShippingRateChange of() { + return new ShippingMethodAddShippingRateChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodAddShippingRateChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodAddShippingRateChange of(final ShippingMethodAddShippingRateChange template) { + ShippingMethodAddShippingRateChangeImpl instance = new ShippingMethodAddShippingRateChangeImpl(); + instance.setChange(template.getChange()); + instance.setZone(template.getZone()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodAddShippingRateChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodAddShippingRateChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodAddShippingRateChange deepCopy( + @Nullable final ShippingMethodAddShippingRateChange template) { + if (template == null) { + return null; + } + ShippingMethodAddShippingRateChangeImpl instance = new ShippingMethodAddShippingRateChangeImpl(); + instance.setChange(template.getChange()); + instance.setZone(com.commercetools.history.models.common.ZoneResourceIdentifier.deepCopy(template.getZone())); + instance.setNextValue(com.commercetools.history.models.common.ShippingRate.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for ShippingMethodAddShippingRateChange + * @return builder + */ + public static ShippingMethodAddShippingRateChangeBuilder builder() { + return ShippingMethodAddShippingRateChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodAddShippingRateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodAddShippingRateChangeBuilder builder( + final ShippingMethodAddShippingRateChange template) { + return ShippingMethodAddShippingRateChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodAddShippingRateChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChangeBuilder.java new file mode 100644 index 00000000000..5dd6039a61d --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChangeBuilder.java @@ -0,0 +1,183 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodAddShippingRateChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodAddShippingRateChange shippingMethodAddShippingRateChange = ShippingMethodAddShippingRateChange.builder()
    + *             .change("{change}")
    + *             .zone(zoneBuilder -> zoneBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodAddShippingRateChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.ZoneResourceIdentifier zone; + + private com.commercetools.history.models.common.ShippingRate nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodAddShippingRateChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Zone to which the ShippingRate was added.

    + * @param builder function to build the zone value + * @return Builder + */ + + public ShippingMethodAddShippingRateChangeBuilder zone( + Function builder) { + this.zone = builder.apply(com.commercetools.history.models.common.ZoneResourceIdentifierBuilder.of()).build(); + return this; + } + + /** + *

    Zone to which the ShippingRate was added.

    + * @param builder function to build the zone value + * @return Builder + */ + + public ShippingMethodAddShippingRateChangeBuilder withZone( + Function builder) { + this.zone = builder.apply(com.commercetools.history.models.common.ZoneResourceIdentifierBuilder.of()); + return this; + } + + /** + *

    Zone to which the ShippingRate was added.

    + * @param zone value to be set + * @return Builder + */ + + public ShippingMethodAddShippingRateChangeBuilder zone( + final com.commercetools.history.models.common.ZoneResourceIdentifier zone) { + this.zone = zone; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodAddShippingRateChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.ShippingRateBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodAddShippingRateChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.ShippingRateBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodAddShippingRateChangeBuilder nextValue( + final com.commercetools.history.models.common.ShippingRate nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Zone to which the ShippingRate was added.

    + * @return zone + */ + + public com.commercetools.history.models.common.ZoneResourceIdentifier getZone() { + return this.zone; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.ShippingRate getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodAddShippingRateChange with checking for non-null required values + * @return ShippingMethodAddShippingRateChange + */ + public ShippingMethodAddShippingRateChange build() { + Objects.requireNonNull(change, ShippingMethodAddShippingRateChange.class + ": change is missing"); + Objects.requireNonNull(zone, ShippingMethodAddShippingRateChange.class + ": zone is missing"); + Objects.requireNonNull(nextValue, ShippingMethodAddShippingRateChange.class + ": nextValue is missing"); + return new ShippingMethodAddShippingRateChangeImpl(change, zone, nextValue); + } + + /** + * builds ShippingMethodAddShippingRateChange without checking for non-null required values + * @return ShippingMethodAddShippingRateChange + */ + public ShippingMethodAddShippingRateChange buildUnchecked() { + return new ShippingMethodAddShippingRateChangeImpl(change, zone, nextValue); + } + + /** + * factory method for an instance of ShippingMethodAddShippingRateChangeBuilder + * @return builder + */ + public static ShippingMethodAddShippingRateChangeBuilder of() { + return new ShippingMethodAddShippingRateChangeBuilder(); + } + + /** + * create builder for ShippingMethodAddShippingRateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodAddShippingRateChangeBuilder of(final ShippingMethodAddShippingRateChange template) { + ShippingMethodAddShippingRateChangeBuilder builder = new ShippingMethodAddShippingRateChangeBuilder(); + builder.change = template.getChange(); + builder.zone = template.getZone(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChangeImpl.java new file mode 100644 index 00000000000..7287bc1e9cf --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChangeImpl.java @@ -0,0 +1,136 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Add ShippingRate update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodAddShippingRateChangeImpl implements ShippingMethodAddShippingRateChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.ZoneResourceIdentifier zone; + + private com.commercetools.history.models.common.ShippingRate nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodAddShippingRateChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("zone") final com.commercetools.history.models.common.ZoneResourceIdentifier zone, + @JsonProperty("nextValue") final com.commercetools.history.models.common.ShippingRate nextValue) { + this.change = change; + this.zone = zone; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_ADD_SHIPPING_RATE_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodAddShippingRateChangeImpl() { + this.type = SHIPPING_METHOD_ADD_SHIPPING_RATE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Zone to which the ShippingRate was added.

    + */ + + public com.commercetools.history.models.common.ZoneResourceIdentifier getZone() { + return this.zone; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.ShippingRate getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setZone(final com.commercetools.history.models.common.ZoneResourceIdentifier zone) { + this.zone = zone; + } + + public void setNextValue(final com.commercetools.history.models.common.ShippingRate nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodAddShippingRateChangeImpl that = (ShippingMethodAddShippingRateChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(zone, that.zone) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(zone, that.zone) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(change).append(zone).append(nextValue).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("zone", zone) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodAddShippingRateChange copyDeep() { + return ShippingMethodAddShippingRateChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChange.java new file mode 100644 index 00000000000..3daed0c7607 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChange.java @@ -0,0 +1,159 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.Reference; +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; + +/** + *

    Change triggered by the Add Zone update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodAddZoneChange shippingMethodAddZoneChange = ShippingMethodAddZoneChange.builder()
    + *             .change("{change}")
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodAddZoneChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodAddZoneChangeImpl.class) +public interface ShippingMethodAddZoneChange extends Change { + + /** + * discriminator value for ShippingMethodAddZoneChange + */ + String SHIPPING_METHOD_ADD_ZONE_CHANGE = "ShippingMethodAddZoneChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public Reference getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Reference nextValue); + + /** + * factory method + * @return instance of ShippingMethodAddZoneChange + */ + public static ShippingMethodAddZoneChange of() { + return new ShippingMethodAddZoneChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodAddZoneChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodAddZoneChange of(final ShippingMethodAddZoneChange template) { + ShippingMethodAddZoneChangeImpl instance = new ShippingMethodAddZoneChangeImpl(); + instance.setChange(template.getChange()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodAddZoneChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodAddZoneChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodAddZoneChange deepCopy(@Nullable final ShippingMethodAddZoneChange template) { + if (template == null) { + return null; + } + ShippingMethodAddZoneChangeImpl instance = new ShippingMethodAddZoneChangeImpl(); + instance.setChange(template.getChange()); + instance.setNextValue(com.commercetools.history.models.common.Reference.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for ShippingMethodAddZoneChange + * @return builder + */ + public static ShippingMethodAddZoneChangeBuilder builder() { + return ShippingMethodAddZoneChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodAddZoneChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodAddZoneChangeBuilder builder(final ShippingMethodAddZoneChange template) { + return ShippingMethodAddZoneChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodAddZoneChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChangeBuilder.java new file mode 100644 index 00000000000..40d34a1d31e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChangeBuilder.java @@ -0,0 +1,121 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodAddZoneChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodAddZoneChange shippingMethodAddZoneChange = ShippingMethodAddZoneChange.builder()
    + *             .change("{change}")
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodAddZoneChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.Reference nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodAddZoneChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodAddZoneChangeBuilder nextValue( + final com.commercetools.history.models.common.Reference nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodAddZoneChangeBuilder nextValue( + Function> builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.Reference getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodAddZoneChange with checking for non-null required values + * @return ShippingMethodAddZoneChange + */ + public ShippingMethodAddZoneChange build() { + Objects.requireNonNull(change, ShippingMethodAddZoneChange.class + ": change is missing"); + Objects.requireNonNull(nextValue, ShippingMethodAddZoneChange.class + ": nextValue is missing"); + return new ShippingMethodAddZoneChangeImpl(change, nextValue); + } + + /** + * builds ShippingMethodAddZoneChange without checking for non-null required values + * @return ShippingMethodAddZoneChange + */ + public ShippingMethodAddZoneChange buildUnchecked() { + return new ShippingMethodAddZoneChangeImpl(change, nextValue); + } + + /** + * factory method for an instance of ShippingMethodAddZoneChangeBuilder + * @return builder + */ + public static ShippingMethodAddZoneChangeBuilder of() { + return new ShippingMethodAddZoneChangeBuilder(); + } + + /** + * create builder for ShippingMethodAddZoneChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodAddZoneChangeBuilder of(final ShippingMethodAddZoneChange template) { + ShippingMethodAddZoneChangeBuilder builder = new ShippingMethodAddZoneChangeBuilder(); + builder.change = template.getChange(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChangeImpl.java new file mode 100644 index 00000000000..910cc5e7dd7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChangeImpl.java @@ -0,0 +1,117 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Add Zone update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodAddZoneChangeImpl implements ShippingMethodAddZoneChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.Reference nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodAddZoneChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("nextValue") final com.commercetools.history.models.common.Reference nextValue) { + this.change = change; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_ADD_ZONE_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodAddZoneChangeImpl() { + this.type = SHIPPING_METHOD_ADD_ZONE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.Reference getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setNextValue(final com.commercetools.history.models.common.Reference nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodAddZoneChangeImpl that = (ShippingMethodAddZoneChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(change).append(nextValue).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodAddZoneChange copyDeep() { + return ShippingMethodAddZoneChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChange.java new file mode 100644 index 00000000000..c4947fab19e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChange.java @@ -0,0 +1,174 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Change Active update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodChangeActiveChange shippingMethodChangeActiveChange = ShippingMethodChangeActiveChange.builder()
    + *             .change("{change}")
    + *             .previousValue(true)
    + *             .nextValue(true)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodChangeActiveChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodChangeActiveChangeImpl.class) +public interface ShippingMethodChangeActiveChange extends Change { + + /** + * discriminator value for ShippingMethodChangeActiveChange + */ + String SHIPPING_METHOD_CHANGE_ACTIVE_CHANGE = "ShippingMethodChangeActiveChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public Boolean getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public Boolean getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final Boolean previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Boolean nextValue); + + /** + * factory method + * @return instance of ShippingMethodChangeActiveChange + */ + public static ShippingMethodChangeActiveChange of() { + return new ShippingMethodChangeActiveChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodChangeActiveChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodChangeActiveChange of(final ShippingMethodChangeActiveChange template) { + ShippingMethodChangeActiveChangeImpl instance = new ShippingMethodChangeActiveChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodChangeActiveChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodChangeActiveChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodChangeActiveChange deepCopy(@Nullable final ShippingMethodChangeActiveChange template) { + if (template == null) { + return null; + } + ShippingMethodChangeActiveChangeImpl instance = new ShippingMethodChangeActiveChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ShippingMethodChangeActiveChange + * @return builder + */ + public static ShippingMethodChangeActiveChangeBuilder builder() { + return ShippingMethodChangeActiveChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodChangeActiveChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodChangeActiveChangeBuilder builder(final ShippingMethodChangeActiveChange template) { + return ShippingMethodChangeActiveChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodChangeActiveChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChangeBuilder.java new file mode 100644 index 00000000000..ba0077dc182 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChangeBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodChangeActiveChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodChangeActiveChange shippingMethodChangeActiveChange = ShippingMethodChangeActiveChange.builder()
    + *             .change("{change}")
    + *             .previousValue(true)
    + *             .nextValue(true)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodChangeActiveChangeBuilder implements Builder { + + private String change; + + private Boolean previousValue; + + private Boolean nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodChangeActiveChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodChangeActiveChangeBuilder previousValue(final Boolean previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodChangeActiveChangeBuilder nextValue(final Boolean nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public Boolean getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public Boolean getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodChangeActiveChange with checking for non-null required values + * @return ShippingMethodChangeActiveChange + */ + public ShippingMethodChangeActiveChange build() { + Objects.requireNonNull(change, ShippingMethodChangeActiveChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ShippingMethodChangeActiveChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodChangeActiveChange.class + ": nextValue is missing"); + return new ShippingMethodChangeActiveChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ShippingMethodChangeActiveChange without checking for non-null required values + * @return ShippingMethodChangeActiveChange + */ + public ShippingMethodChangeActiveChange buildUnchecked() { + return new ShippingMethodChangeActiveChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodChangeActiveChangeBuilder + * @return builder + */ + public static ShippingMethodChangeActiveChangeBuilder of() { + return new ShippingMethodChangeActiveChangeBuilder(); + } + + /** + * create builder for ShippingMethodChangeActiveChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodChangeActiveChangeBuilder of(final ShippingMethodChangeActiveChange template) { + ShippingMethodChangeActiveChangeBuilder builder = new ShippingMethodChangeActiveChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChangeImpl.java new file mode 100644 index 00000000000..9d66e72deca --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Change Active update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodChangeActiveChangeImpl implements ShippingMethodChangeActiveChange, ModelBase { + + private String type; + + private String change; + + private Boolean previousValue; + + private Boolean nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodChangeActiveChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final Boolean previousValue, + @JsonProperty("nextValue") final Boolean nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_CHANGE_ACTIVE_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodChangeActiveChangeImpl() { + this.type = SHIPPING_METHOD_CHANGE_ACTIVE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public Boolean getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public Boolean getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final Boolean previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final Boolean nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodChangeActiveChangeImpl that = (ShippingMethodChangeActiveChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodChangeActiveChange copyDeep() { + return ShippingMethodChangeActiveChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChange.java new file mode 100644 index 00000000000..391662fdc8e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChange.java @@ -0,0 +1,176 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Change IsDefault update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodChangeIsDefaultChange shippingMethodChangeIsDefaultChange = ShippingMethodChangeIsDefaultChange.builder()
    + *             .change("{change}")
    + *             .previousValue(true)
    + *             .nextValue(true)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodChangeIsDefaultChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodChangeIsDefaultChangeImpl.class) +public interface ShippingMethodChangeIsDefaultChange extends Change { + + /** + * discriminator value for ShippingMethodChangeIsDefaultChange + */ + String SHIPPING_METHOD_CHANGE_IS_DEFAULT_CHANGE = "ShippingMethodChangeIsDefaultChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public Boolean getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public Boolean getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final Boolean previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Boolean nextValue); + + /** + * factory method + * @return instance of ShippingMethodChangeIsDefaultChange + */ + public static ShippingMethodChangeIsDefaultChange of() { + return new ShippingMethodChangeIsDefaultChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodChangeIsDefaultChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodChangeIsDefaultChange of(final ShippingMethodChangeIsDefaultChange template) { + ShippingMethodChangeIsDefaultChangeImpl instance = new ShippingMethodChangeIsDefaultChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodChangeIsDefaultChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodChangeIsDefaultChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodChangeIsDefaultChange deepCopy( + @Nullable final ShippingMethodChangeIsDefaultChange template) { + if (template == null) { + return null; + } + ShippingMethodChangeIsDefaultChangeImpl instance = new ShippingMethodChangeIsDefaultChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ShippingMethodChangeIsDefaultChange + * @return builder + */ + public static ShippingMethodChangeIsDefaultChangeBuilder builder() { + return ShippingMethodChangeIsDefaultChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodChangeIsDefaultChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodChangeIsDefaultChangeBuilder builder( + final ShippingMethodChangeIsDefaultChange template) { + return ShippingMethodChangeIsDefaultChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodChangeIsDefaultChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChangeBuilder.java new file mode 100644 index 00000000000..5f414ae9f60 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChangeBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodChangeIsDefaultChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodChangeIsDefaultChange shippingMethodChangeIsDefaultChange = ShippingMethodChangeIsDefaultChange.builder()
    + *             .change("{change}")
    + *             .previousValue(true)
    + *             .nextValue(true)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodChangeIsDefaultChangeBuilder implements Builder { + + private String change; + + private Boolean previousValue; + + private Boolean nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodChangeIsDefaultChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodChangeIsDefaultChangeBuilder previousValue(final Boolean previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodChangeIsDefaultChangeBuilder nextValue(final Boolean nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public Boolean getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public Boolean getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodChangeIsDefaultChange with checking for non-null required values + * @return ShippingMethodChangeIsDefaultChange + */ + public ShippingMethodChangeIsDefaultChange build() { + Objects.requireNonNull(change, ShippingMethodChangeIsDefaultChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ShippingMethodChangeIsDefaultChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodChangeIsDefaultChange.class + ": nextValue is missing"); + return new ShippingMethodChangeIsDefaultChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ShippingMethodChangeIsDefaultChange without checking for non-null required values + * @return ShippingMethodChangeIsDefaultChange + */ + public ShippingMethodChangeIsDefaultChange buildUnchecked() { + return new ShippingMethodChangeIsDefaultChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodChangeIsDefaultChangeBuilder + * @return builder + */ + public static ShippingMethodChangeIsDefaultChangeBuilder of() { + return new ShippingMethodChangeIsDefaultChangeBuilder(); + } + + /** + * create builder for ShippingMethodChangeIsDefaultChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodChangeIsDefaultChangeBuilder of(final ShippingMethodChangeIsDefaultChange template) { + ShippingMethodChangeIsDefaultChangeBuilder builder = new ShippingMethodChangeIsDefaultChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChangeImpl.java new file mode 100644 index 00000000000..87eaafcdfa4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Change IsDefault update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodChangeIsDefaultChangeImpl implements ShippingMethodChangeIsDefaultChange, ModelBase { + + private String type; + + private String change; + + private Boolean previousValue; + + private Boolean nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodChangeIsDefaultChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final Boolean previousValue, + @JsonProperty("nextValue") final Boolean nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_CHANGE_IS_DEFAULT_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodChangeIsDefaultChangeImpl() { + this.type = SHIPPING_METHOD_CHANGE_IS_DEFAULT_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public Boolean getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public Boolean getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final Boolean previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final Boolean nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodChangeIsDefaultChangeImpl that = (ShippingMethodChangeIsDefaultChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodChangeIsDefaultChange copyDeep() { + return ShippingMethodChangeIsDefaultChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChange.java new file mode 100644 index 00000000000..3f4dbcebd21 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChange.java @@ -0,0 +1,174 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Change Name update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodChangeNameChange shippingMethodChangeNameChange = ShippingMethodChangeNameChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodChangeNameChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodChangeNameChangeImpl.class) +public interface ShippingMethodChangeNameChange extends Change { + + /** + * discriminator value for ShippingMethodChangeNameChange + */ + String SHIPPING_METHOD_CHANGE_NAME_CHANGE = "ShippingMethodChangeNameChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public String getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public String getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final String previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final String nextValue); + + /** + * factory method + * @return instance of ShippingMethodChangeNameChange + */ + public static ShippingMethodChangeNameChange of() { + return new ShippingMethodChangeNameChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodChangeNameChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodChangeNameChange of(final ShippingMethodChangeNameChange template) { + ShippingMethodChangeNameChangeImpl instance = new ShippingMethodChangeNameChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodChangeNameChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodChangeNameChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodChangeNameChange deepCopy(@Nullable final ShippingMethodChangeNameChange template) { + if (template == null) { + return null; + } + ShippingMethodChangeNameChangeImpl instance = new ShippingMethodChangeNameChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ShippingMethodChangeNameChange + * @return builder + */ + public static ShippingMethodChangeNameChangeBuilder builder() { + return ShippingMethodChangeNameChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodChangeNameChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodChangeNameChangeBuilder builder(final ShippingMethodChangeNameChange template) { + return ShippingMethodChangeNameChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodChangeNameChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChangeBuilder.java new file mode 100644 index 00000000000..c9f9816fd74 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChangeBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodChangeNameChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodChangeNameChange shippingMethodChangeNameChange = ShippingMethodChangeNameChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodChangeNameChangeBuilder implements Builder { + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodChangeNameChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodChangeNameChangeBuilder previousValue(final String previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodChangeNameChangeBuilder nextValue(final String nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public String getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodChangeNameChange with checking for non-null required values + * @return ShippingMethodChangeNameChange + */ + public ShippingMethodChangeNameChange build() { + Objects.requireNonNull(change, ShippingMethodChangeNameChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ShippingMethodChangeNameChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodChangeNameChange.class + ": nextValue is missing"); + return new ShippingMethodChangeNameChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ShippingMethodChangeNameChange without checking for non-null required values + * @return ShippingMethodChangeNameChange + */ + public ShippingMethodChangeNameChange buildUnchecked() { + return new ShippingMethodChangeNameChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodChangeNameChangeBuilder + * @return builder + */ + public static ShippingMethodChangeNameChangeBuilder of() { + return new ShippingMethodChangeNameChangeBuilder(); + } + + /** + * create builder for ShippingMethodChangeNameChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodChangeNameChangeBuilder of(final ShippingMethodChangeNameChange template) { + ShippingMethodChangeNameChangeBuilder builder = new ShippingMethodChangeNameChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChangeImpl.java new file mode 100644 index 00000000000..ace8010c375 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Change Name update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodChangeNameChangeImpl implements ShippingMethodChangeNameChange, ModelBase { + + private String type; + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodChangeNameChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final String previousValue, + @JsonProperty("nextValue") final String nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_CHANGE_NAME_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodChangeNameChangeImpl() { + this.type = SHIPPING_METHOD_CHANGE_NAME_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public String getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final String previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final String nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodChangeNameChangeImpl that = (ShippingMethodChangeNameChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodChangeNameChange copyDeep() { + return ShippingMethodChangeNameChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChange.java new file mode 100644 index 00000000000..462818d14b7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChange.java @@ -0,0 +1,181 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.Reference; +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; + +/** + *

    Change triggered by the Change TaxCategory update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodChangeTaxCategoryChange shippingMethodChangeTaxCategoryChange = ShippingMethodChangeTaxCategoryChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodChangeTaxCategoryChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodChangeTaxCategoryChangeImpl.class) +public interface ShippingMethodChangeTaxCategoryChange extends Change { + + /** + * discriminator value for ShippingMethodChangeTaxCategoryChange + */ + String SHIPPING_METHOD_CHANGE_TAX_CATEGORY_CHANGE = "ShippingMethodChangeTaxCategoryChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public Reference getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public Reference getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final Reference previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Reference nextValue); + + /** + * factory method + * @return instance of ShippingMethodChangeTaxCategoryChange + */ + public static ShippingMethodChangeTaxCategoryChange of() { + return new ShippingMethodChangeTaxCategoryChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodChangeTaxCategoryChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodChangeTaxCategoryChange of(final ShippingMethodChangeTaxCategoryChange template) { + ShippingMethodChangeTaxCategoryChangeImpl instance = new ShippingMethodChangeTaxCategoryChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodChangeTaxCategoryChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodChangeTaxCategoryChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodChangeTaxCategoryChange deepCopy( + @Nullable final ShippingMethodChangeTaxCategoryChange template) { + if (template == null) { + return null; + } + ShippingMethodChangeTaxCategoryChangeImpl instance = new ShippingMethodChangeTaxCategoryChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.Reference.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.Reference.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for ShippingMethodChangeTaxCategoryChange + * @return builder + */ + public static ShippingMethodChangeTaxCategoryChangeBuilder builder() { + return ShippingMethodChangeTaxCategoryChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodChangeTaxCategoryChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodChangeTaxCategoryChangeBuilder builder( + final ShippingMethodChangeTaxCategoryChange template) { + return ShippingMethodChangeTaxCategoryChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodChangeTaxCategoryChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChangeBuilder.java new file mode 100644 index 00000000000..0967aaa0e2b --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChangeBuilder.java @@ -0,0 +1,161 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodChangeTaxCategoryChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodChangeTaxCategoryChange shippingMethodChangeTaxCategoryChange = ShippingMethodChangeTaxCategoryChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodChangeTaxCategoryChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.Reference previousValue; + + private com.commercetools.history.models.common.Reference nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodChangeTaxCategoryChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodChangeTaxCategoryChangeBuilder previousValue( + final com.commercetools.history.models.common.Reference previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodChangeTaxCategoryChangeBuilder previousValue( + Function> builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodChangeTaxCategoryChangeBuilder nextValue( + final com.commercetools.history.models.common.Reference nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodChangeTaxCategoryChangeBuilder nextValue( + Function> builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.Reference getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.Reference getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodChangeTaxCategoryChange with checking for non-null required values + * @return ShippingMethodChangeTaxCategoryChange + */ + public ShippingMethodChangeTaxCategoryChange build() { + Objects.requireNonNull(change, ShippingMethodChangeTaxCategoryChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, + ShippingMethodChangeTaxCategoryChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodChangeTaxCategoryChange.class + ": nextValue is missing"); + return new ShippingMethodChangeTaxCategoryChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ShippingMethodChangeTaxCategoryChange without checking for non-null required values + * @return ShippingMethodChangeTaxCategoryChange + */ + public ShippingMethodChangeTaxCategoryChange buildUnchecked() { + return new ShippingMethodChangeTaxCategoryChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodChangeTaxCategoryChangeBuilder + * @return builder + */ + public static ShippingMethodChangeTaxCategoryChangeBuilder of() { + return new ShippingMethodChangeTaxCategoryChangeBuilder(); + } + + /** + * create builder for ShippingMethodChangeTaxCategoryChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodChangeTaxCategoryChangeBuilder of( + final ShippingMethodChangeTaxCategoryChange template) { + ShippingMethodChangeTaxCategoryChangeBuilder builder = new ShippingMethodChangeTaxCategoryChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChangeImpl.java new file mode 100644 index 00000000000..552324b9c1f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Change TaxCategory update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodChangeTaxCategoryChangeImpl implements ShippingMethodChangeTaxCategoryChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.Reference previousValue; + + private com.commercetools.history.models.common.Reference nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodChangeTaxCategoryChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.Reference previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.Reference nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_CHANGE_TAX_CATEGORY_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodChangeTaxCategoryChangeImpl() { + this.type = SHIPPING_METHOD_CHANGE_TAX_CATEGORY_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.Reference getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.Reference getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.Reference previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.Reference nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodChangeTaxCategoryChangeImpl that = (ShippingMethodChangeTaxCategoryChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodChangeTaxCategoryChange copyDeep() { + return ShippingMethodChangeTaxCategoryChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChange.java new file mode 100644 index 00000000000..119f4063b05 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChange.java @@ -0,0 +1,183 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.ShippingRate; +import com.commercetools.history.models.common.ZoneResourceIdentifier; +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; + +/** + *

    Change triggered by the Remove ShippingRate update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodRemoveShippingRateChange shippingMethodRemoveShippingRateChange = ShippingMethodRemoveShippingRateChange.builder()
    + *             .change("{change}")
    + *             .zone(zoneBuilder -> zoneBuilder)
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodRemoveShippingRateChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodRemoveShippingRateChangeImpl.class) +public interface ShippingMethodRemoveShippingRateChange extends Change { + + /** + * discriminator value for ShippingMethodRemoveShippingRateChange + */ + String SHIPPING_METHOD_REMOVE_SHIPPING_RATE_CHANGE = "ShippingMethodRemoveShippingRateChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Zone from which the ShippingRate was removed.

    + * @return zone + */ + @NotNull + @Valid + @JsonProperty("zone") + public ZoneResourceIdentifier getZone(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public ShippingRate getPreviousValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Zone from which the ShippingRate was removed.

    + * @param zone value to be set + */ + + public void setZone(final ZoneResourceIdentifier zone); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final ShippingRate previousValue); + + /** + * factory method + * @return instance of ShippingMethodRemoveShippingRateChange + */ + public static ShippingMethodRemoveShippingRateChange of() { + return new ShippingMethodRemoveShippingRateChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodRemoveShippingRateChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodRemoveShippingRateChange of(final ShippingMethodRemoveShippingRateChange template) { + ShippingMethodRemoveShippingRateChangeImpl instance = new ShippingMethodRemoveShippingRateChangeImpl(); + instance.setChange(template.getChange()); + instance.setZone(template.getZone()); + instance.setPreviousValue(template.getPreviousValue()); + return instance; + } + + public ShippingMethodRemoveShippingRateChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodRemoveShippingRateChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodRemoveShippingRateChange deepCopy( + @Nullable final ShippingMethodRemoveShippingRateChange template) { + if (template == null) { + return null; + } + ShippingMethodRemoveShippingRateChangeImpl instance = new ShippingMethodRemoveShippingRateChangeImpl(); + instance.setChange(template.getChange()); + instance.setZone(com.commercetools.history.models.common.ZoneResourceIdentifier.deepCopy(template.getZone())); + instance.setPreviousValue( + com.commercetools.history.models.common.ShippingRate.deepCopy(template.getPreviousValue())); + return instance; + } + + /** + * builder factory method for ShippingMethodRemoveShippingRateChange + * @return builder + */ + public static ShippingMethodRemoveShippingRateChangeBuilder builder() { + return ShippingMethodRemoveShippingRateChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodRemoveShippingRateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodRemoveShippingRateChangeBuilder builder( + final ShippingMethodRemoveShippingRateChange template) { + return ShippingMethodRemoveShippingRateChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodRemoveShippingRateChange( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChangeBuilder.java new file mode 100644 index 00000000000..093ff3ac164 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChangeBuilder.java @@ -0,0 +1,185 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodRemoveShippingRateChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodRemoveShippingRateChange shippingMethodRemoveShippingRateChange = ShippingMethodRemoveShippingRateChange.builder()
    + *             .change("{change}")
    + *             .zone(zoneBuilder -> zoneBuilder)
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodRemoveShippingRateChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.ZoneResourceIdentifier zone; + + private com.commercetools.history.models.common.ShippingRate previousValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodRemoveShippingRateChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Zone from which the ShippingRate was removed.

    + * @param builder function to build the zone value + * @return Builder + */ + + public ShippingMethodRemoveShippingRateChangeBuilder zone( + Function builder) { + this.zone = builder.apply(com.commercetools.history.models.common.ZoneResourceIdentifierBuilder.of()).build(); + return this; + } + + /** + *

    Zone from which the ShippingRate was removed.

    + * @param builder function to build the zone value + * @return Builder + */ + + public ShippingMethodRemoveShippingRateChangeBuilder withZone( + Function builder) { + this.zone = builder.apply(com.commercetools.history.models.common.ZoneResourceIdentifierBuilder.of()); + return this; + } + + /** + *

    Zone from which the ShippingRate was removed.

    + * @param zone value to be set + * @return Builder + */ + + public ShippingMethodRemoveShippingRateChangeBuilder zone( + final com.commercetools.history.models.common.ZoneResourceIdentifier zone) { + this.zone = zone; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodRemoveShippingRateChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.ShippingRateBuilder.of()).build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodRemoveShippingRateChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.ShippingRateBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodRemoveShippingRateChangeBuilder previousValue( + final com.commercetools.history.models.common.ShippingRate previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Zone from which the ShippingRate was removed.

    + * @return zone + */ + + public com.commercetools.history.models.common.ZoneResourceIdentifier getZone() { + return this.zone; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.ShippingRate getPreviousValue() { + return this.previousValue; + } + + /** + * builds ShippingMethodRemoveShippingRateChange with checking for non-null required values + * @return ShippingMethodRemoveShippingRateChange + */ + public ShippingMethodRemoveShippingRateChange build() { + Objects.requireNonNull(change, ShippingMethodRemoveShippingRateChange.class + ": change is missing"); + Objects.requireNonNull(zone, ShippingMethodRemoveShippingRateChange.class + ": zone is missing"); + Objects.requireNonNull(previousValue, + ShippingMethodRemoveShippingRateChange.class + ": previousValue is missing"); + return new ShippingMethodRemoveShippingRateChangeImpl(change, zone, previousValue); + } + + /** + * builds ShippingMethodRemoveShippingRateChange without checking for non-null required values + * @return ShippingMethodRemoveShippingRateChange + */ + public ShippingMethodRemoveShippingRateChange buildUnchecked() { + return new ShippingMethodRemoveShippingRateChangeImpl(change, zone, previousValue); + } + + /** + * factory method for an instance of ShippingMethodRemoveShippingRateChangeBuilder + * @return builder + */ + public static ShippingMethodRemoveShippingRateChangeBuilder of() { + return new ShippingMethodRemoveShippingRateChangeBuilder(); + } + + /** + * create builder for ShippingMethodRemoveShippingRateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodRemoveShippingRateChangeBuilder of( + final ShippingMethodRemoveShippingRateChange template) { + ShippingMethodRemoveShippingRateChangeBuilder builder = new ShippingMethodRemoveShippingRateChangeBuilder(); + builder.change = template.getChange(); + builder.zone = template.getZone(); + builder.previousValue = template.getPreviousValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChangeImpl.java new file mode 100644 index 00000000000..ab73114b64c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChangeImpl.java @@ -0,0 +1,136 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Remove ShippingRate update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodRemoveShippingRateChangeImpl implements ShippingMethodRemoveShippingRateChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.ZoneResourceIdentifier zone; + + private com.commercetools.history.models.common.ShippingRate previousValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodRemoveShippingRateChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("zone") final com.commercetools.history.models.common.ZoneResourceIdentifier zone, + @JsonProperty("previousValue") final com.commercetools.history.models.common.ShippingRate previousValue) { + this.change = change; + this.zone = zone; + this.previousValue = previousValue; + this.type = SHIPPING_METHOD_REMOVE_SHIPPING_RATE_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodRemoveShippingRateChangeImpl() { + this.type = SHIPPING_METHOD_REMOVE_SHIPPING_RATE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Zone from which the ShippingRate was removed.

    + */ + + public com.commercetools.history.models.common.ZoneResourceIdentifier getZone() { + return this.zone; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.ShippingRate getPreviousValue() { + return this.previousValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setZone(final com.commercetools.history.models.common.ZoneResourceIdentifier zone) { + this.zone = zone; + } + + public void setPreviousValue(final com.commercetools.history.models.common.ShippingRate previousValue) { + this.previousValue = previousValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodRemoveShippingRateChangeImpl that = (ShippingMethodRemoveShippingRateChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(zone, that.zone) + .append(previousValue, that.previousValue) + .append(type, that.type) + .append(change, that.change) + .append(zone, that.zone) + .append(previousValue, that.previousValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(change).append(zone).append(previousValue).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("zone", zone) + .append("previousValue", previousValue) + .build(); + } + + @Override + public ShippingMethodRemoveShippingRateChange copyDeep() { + return ShippingMethodRemoveShippingRateChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChange.java new file mode 100644 index 00000000000..387be095f7d --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChange.java @@ -0,0 +1,160 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.Reference; +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; + +/** + *

    Change triggered by the Remove Zone update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodRemoveZoneChange shippingMethodRemoveZoneChange = ShippingMethodRemoveZoneChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodRemoveZoneChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodRemoveZoneChangeImpl.class) +public interface ShippingMethodRemoveZoneChange extends Change { + + /** + * discriminator value for ShippingMethodRemoveZoneChange + */ + String SHIPPING_METHOD_REMOVE_ZONE_CHANGE = "ShippingMethodRemoveZoneChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public Reference getPreviousValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final Reference previousValue); + + /** + * factory method + * @return instance of ShippingMethodRemoveZoneChange + */ + public static ShippingMethodRemoveZoneChange of() { + return new ShippingMethodRemoveZoneChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodRemoveZoneChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodRemoveZoneChange of(final ShippingMethodRemoveZoneChange template) { + ShippingMethodRemoveZoneChangeImpl instance = new ShippingMethodRemoveZoneChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + return instance; + } + + public ShippingMethodRemoveZoneChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodRemoveZoneChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodRemoveZoneChange deepCopy(@Nullable final ShippingMethodRemoveZoneChange template) { + if (template == null) { + return null; + } + ShippingMethodRemoveZoneChangeImpl instance = new ShippingMethodRemoveZoneChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.Reference.deepCopy(template.getPreviousValue())); + return instance; + } + + /** + * builder factory method for ShippingMethodRemoveZoneChange + * @return builder + */ + public static ShippingMethodRemoveZoneChangeBuilder builder() { + return ShippingMethodRemoveZoneChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodRemoveZoneChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodRemoveZoneChangeBuilder builder(final ShippingMethodRemoveZoneChange template) { + return ShippingMethodRemoveZoneChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodRemoveZoneChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChangeBuilder.java new file mode 100644 index 00000000000..d80df5c4fe5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChangeBuilder.java @@ -0,0 +1,121 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodRemoveZoneChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodRemoveZoneChange shippingMethodRemoveZoneChange = ShippingMethodRemoveZoneChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodRemoveZoneChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.Reference previousValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodRemoveZoneChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodRemoveZoneChangeBuilder previousValue( + final com.commercetools.history.models.common.Reference previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodRemoveZoneChangeBuilder previousValue( + Function> builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.Reference getPreviousValue() { + return this.previousValue; + } + + /** + * builds ShippingMethodRemoveZoneChange with checking for non-null required values + * @return ShippingMethodRemoveZoneChange + */ + public ShippingMethodRemoveZoneChange build() { + Objects.requireNonNull(change, ShippingMethodRemoveZoneChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ShippingMethodRemoveZoneChange.class + ": previousValue is missing"); + return new ShippingMethodRemoveZoneChangeImpl(change, previousValue); + } + + /** + * builds ShippingMethodRemoveZoneChange without checking for non-null required values + * @return ShippingMethodRemoveZoneChange + */ + public ShippingMethodRemoveZoneChange buildUnchecked() { + return new ShippingMethodRemoveZoneChangeImpl(change, previousValue); + } + + /** + * factory method for an instance of ShippingMethodRemoveZoneChangeBuilder + * @return builder + */ + public static ShippingMethodRemoveZoneChangeBuilder of() { + return new ShippingMethodRemoveZoneChangeBuilder(); + } + + /** + * create builder for ShippingMethodRemoveZoneChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodRemoveZoneChangeBuilder of(final ShippingMethodRemoveZoneChange template) { + ShippingMethodRemoveZoneChangeBuilder builder = new ShippingMethodRemoveZoneChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChangeImpl.java new file mode 100644 index 00000000000..0cedb0288d6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChangeImpl.java @@ -0,0 +1,117 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Remove Zone update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodRemoveZoneChangeImpl implements ShippingMethodRemoveZoneChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.Reference previousValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodRemoveZoneChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.Reference previousValue) { + this.change = change; + this.previousValue = previousValue; + this.type = SHIPPING_METHOD_REMOVE_ZONE_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodRemoveZoneChangeImpl() { + this.type = SHIPPING_METHOD_REMOVE_ZONE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.Reference getPreviousValue() { + return this.previousValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.Reference previousValue) { + this.previousValue = previousValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodRemoveZoneChangeImpl that = (ShippingMethodRemoveZoneChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(change).append(previousValue).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .build(); + } + + @Override + public ShippingMethodRemoveZoneChange copyDeep() { + return ShippingMethodRemoveZoneChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChange.java new file mode 100644 index 00000000000..80932b38068 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChange.java @@ -0,0 +1,209 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Set CustomField update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetCustomFieldChange shippingMethodSetCustomFieldChange = ShippingMethodSetCustomFieldChange.builder()
    + *             .change("{change}")
    + *             .name("{name}")
    + *             .customTypeId("{customTypeId}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodSetCustomFieldChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodSetCustomFieldChangeImpl.class) +public interface ShippingMethodSetCustomFieldChange extends Change { + + /** + * discriminator value for ShippingMethodSetCustomFieldChange + */ + String SHIPPING_METHOD_SET_CUSTOM_FIELD_CHANGE = "ShippingMethodSetCustomFieldChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Name of the Custom Field.

    + * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *

    id of the referenced Type.

    + * @return customTypeId + */ + @NotNull + @JsonProperty("customTypeId") + public String getCustomTypeId(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public Object getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public Object getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Name of the Custom Field.

    + * @param name value to be set + */ + + public void setName(final String name); + + /** + *

    id of the referenced Type.

    + * @param customTypeId value to be set + */ + + public void setCustomTypeId(final String customTypeId); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final Object previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Object nextValue); + + /** + * factory method + * @return instance of ShippingMethodSetCustomFieldChange + */ + public static ShippingMethodSetCustomFieldChange of() { + return new ShippingMethodSetCustomFieldChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodSetCustomFieldChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodSetCustomFieldChange of(final ShippingMethodSetCustomFieldChange template) { + ShippingMethodSetCustomFieldChangeImpl instance = new ShippingMethodSetCustomFieldChangeImpl(); + instance.setChange(template.getChange()); + instance.setName(template.getName()); + instance.setCustomTypeId(template.getCustomTypeId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodSetCustomFieldChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodSetCustomFieldChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodSetCustomFieldChange deepCopy( + @Nullable final ShippingMethodSetCustomFieldChange template) { + if (template == null) { + return null; + } + ShippingMethodSetCustomFieldChangeImpl instance = new ShippingMethodSetCustomFieldChangeImpl(); + instance.setChange(template.getChange()); + instance.setName(template.getName()); + instance.setCustomTypeId(template.getCustomTypeId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ShippingMethodSetCustomFieldChange + * @return builder + */ + public static ShippingMethodSetCustomFieldChangeBuilder builder() { + return ShippingMethodSetCustomFieldChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodSetCustomFieldChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetCustomFieldChangeBuilder builder(final ShippingMethodSetCustomFieldChange template) { + return ShippingMethodSetCustomFieldChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodSetCustomFieldChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChangeBuilder.java new file mode 100644 index 00000000000..ce8b9878ad9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChangeBuilder.java @@ -0,0 +1,180 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodSetCustomFieldChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetCustomFieldChange shippingMethodSetCustomFieldChange = ShippingMethodSetCustomFieldChange.builder()
    + *             .change("{change}")
    + *             .name("{name}")
    + *             .customTypeId("{customTypeId}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetCustomFieldChangeBuilder implements Builder { + + private String change; + + private String name; + + private String customTypeId; + + private java.lang.Object previousValue; + + private java.lang.Object nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodSetCustomFieldChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Name of the Custom Field.

    + * @param name value to be set + * @return Builder + */ + + public ShippingMethodSetCustomFieldChangeBuilder name(final String name) { + this.name = name; + return this; + } + + /** + *

    id of the referenced Type.

    + * @param customTypeId value to be set + * @return Builder + */ + + public ShippingMethodSetCustomFieldChangeBuilder customTypeId(final String customTypeId) { + this.customTypeId = customTypeId; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodSetCustomFieldChangeBuilder previousValue(final java.lang.Object previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodSetCustomFieldChangeBuilder nextValue(final java.lang.Object nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Name of the Custom Field.

    + * @return name + */ + + public String getName() { + return this.name; + } + + /** + *

    id of the referenced Type.

    + * @return customTypeId + */ + + public String getCustomTypeId() { + return this.customTypeId; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public java.lang.Object getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public java.lang.Object getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodSetCustomFieldChange with checking for non-null required values + * @return ShippingMethodSetCustomFieldChange + */ + public ShippingMethodSetCustomFieldChange build() { + Objects.requireNonNull(change, ShippingMethodSetCustomFieldChange.class + ": change is missing"); + Objects.requireNonNull(name, ShippingMethodSetCustomFieldChange.class + ": name is missing"); + Objects.requireNonNull(customTypeId, ShippingMethodSetCustomFieldChange.class + ": customTypeId is missing"); + Objects.requireNonNull(previousValue, ShippingMethodSetCustomFieldChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodSetCustomFieldChange.class + ": nextValue is missing"); + return new ShippingMethodSetCustomFieldChangeImpl(change, name, customTypeId, previousValue, nextValue); + } + + /** + * builds ShippingMethodSetCustomFieldChange without checking for non-null required values + * @return ShippingMethodSetCustomFieldChange + */ + public ShippingMethodSetCustomFieldChange buildUnchecked() { + return new ShippingMethodSetCustomFieldChangeImpl(change, name, customTypeId, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodSetCustomFieldChangeBuilder + * @return builder + */ + public static ShippingMethodSetCustomFieldChangeBuilder of() { + return new ShippingMethodSetCustomFieldChangeBuilder(); + } + + /** + * create builder for ShippingMethodSetCustomFieldChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetCustomFieldChangeBuilder of(final ShippingMethodSetCustomFieldChange template) { + ShippingMethodSetCustomFieldChangeBuilder builder = new ShippingMethodSetCustomFieldChangeBuilder(); + builder.change = template.getChange(); + builder.name = template.getName(); + builder.customTypeId = template.getCustomTypeId(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChangeImpl.java new file mode 100644 index 00000000000..faf99d16440 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChangeImpl.java @@ -0,0 +1,179 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set CustomField update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetCustomFieldChangeImpl implements ShippingMethodSetCustomFieldChange, ModelBase { + + private String type; + + private String change; + + private String name; + + private String customTypeId; + + private java.lang.Object previousValue; + + private java.lang.Object nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodSetCustomFieldChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("name") final String name, @JsonProperty("customTypeId") final String customTypeId, + @JsonProperty("previousValue") final java.lang.Object previousValue, + @JsonProperty("nextValue") final java.lang.Object nextValue) { + this.change = change; + this.name = name; + this.customTypeId = customTypeId; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_SET_CUSTOM_FIELD_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodSetCustomFieldChangeImpl() { + this.type = SHIPPING_METHOD_SET_CUSTOM_FIELD_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Name of the Custom Field.

    + */ + + public String getName() { + return this.name; + } + + /** + *

    id of the referenced Type.

    + */ + + public String getCustomTypeId() { + return this.customTypeId; + } + + /** + *

    Value before the change.

    + */ + + public java.lang.Object getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public java.lang.Object getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setName(final String name) { + this.name = name; + } + + public void setCustomTypeId(final String customTypeId) { + this.customTypeId = customTypeId; + } + + public void setPreviousValue(final java.lang.Object previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final java.lang.Object nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodSetCustomFieldChangeImpl that = (ShippingMethodSetCustomFieldChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(name, that.name) + .append(customTypeId, that.customTypeId) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(name, that.name) + .append(customTypeId, that.customTypeId) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(name) + .append(customTypeId) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("name", name) + .append("customTypeId", customTypeId) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodSetCustomFieldChange copyDeep() { + return ShippingMethodSetCustomFieldChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChange.java new file mode 100644 index 00000000000..c8a5d731f79 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChange.java @@ -0,0 +1,180 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.CustomFields; +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; + +/** + *

    Change triggered by the Set Custom Type update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetCustomTypeChange shippingMethodSetCustomTypeChange = ShippingMethodSetCustomTypeChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodSetCustomTypeChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodSetCustomTypeChangeImpl.class) +public interface ShippingMethodSetCustomTypeChange extends Change { + + /** + * discriminator value for ShippingMethodSetCustomTypeChange + */ + String SHIPPING_METHOD_SET_CUSTOM_TYPE_CHANGE = "ShippingMethodSetCustomTypeChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public CustomFields getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public CustomFields getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final CustomFields previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final CustomFields nextValue); + + /** + * factory method + * @return instance of ShippingMethodSetCustomTypeChange + */ + public static ShippingMethodSetCustomTypeChange of() { + return new ShippingMethodSetCustomTypeChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodSetCustomTypeChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodSetCustomTypeChange of(final ShippingMethodSetCustomTypeChange template) { + ShippingMethodSetCustomTypeChangeImpl instance = new ShippingMethodSetCustomTypeChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodSetCustomTypeChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodSetCustomTypeChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodSetCustomTypeChange deepCopy( + @Nullable final ShippingMethodSetCustomTypeChange template) { + if (template == null) { + return null; + } + ShippingMethodSetCustomTypeChangeImpl instance = new ShippingMethodSetCustomTypeChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.CustomFields.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.CustomFields.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for ShippingMethodSetCustomTypeChange + * @return builder + */ + public static ShippingMethodSetCustomTypeChangeBuilder builder() { + return ShippingMethodSetCustomTypeChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodSetCustomTypeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetCustomTypeChangeBuilder builder(final ShippingMethodSetCustomTypeChange template) { + return ShippingMethodSetCustomTypeChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodSetCustomTypeChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChangeBuilder.java new file mode 100644 index 00000000000..96c3528a4cb --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChangeBuilder.java @@ -0,0 +1,183 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodSetCustomTypeChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetCustomTypeChange shippingMethodSetCustomTypeChange = ShippingMethodSetCustomTypeChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetCustomTypeChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.CustomFields previousValue; + + private com.commercetools.history.models.common.CustomFields nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodSetCustomTypeChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodSetCustomTypeChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.CustomFieldsBuilder.of()).build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodSetCustomTypeChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.CustomFieldsBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodSetCustomTypeChangeBuilder previousValue( + final com.commercetools.history.models.common.CustomFields previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodSetCustomTypeChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.CustomFieldsBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodSetCustomTypeChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.CustomFieldsBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodSetCustomTypeChangeBuilder nextValue( + final com.commercetools.history.models.common.CustomFields nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.CustomFields getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.CustomFields getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodSetCustomTypeChange with checking for non-null required values + * @return ShippingMethodSetCustomTypeChange + */ + public ShippingMethodSetCustomTypeChange build() { + Objects.requireNonNull(change, ShippingMethodSetCustomTypeChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ShippingMethodSetCustomTypeChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodSetCustomTypeChange.class + ": nextValue is missing"); + return new ShippingMethodSetCustomTypeChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ShippingMethodSetCustomTypeChange without checking for non-null required values + * @return ShippingMethodSetCustomTypeChange + */ + public ShippingMethodSetCustomTypeChange buildUnchecked() { + return new ShippingMethodSetCustomTypeChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodSetCustomTypeChangeBuilder + * @return builder + */ + public static ShippingMethodSetCustomTypeChangeBuilder of() { + return new ShippingMethodSetCustomTypeChangeBuilder(); + } + + /** + * create builder for ShippingMethodSetCustomTypeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetCustomTypeChangeBuilder of(final ShippingMethodSetCustomTypeChange template) { + ShippingMethodSetCustomTypeChangeBuilder builder = new ShippingMethodSetCustomTypeChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChangeImpl.java new file mode 100644 index 00000000000..b2d282c38c2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Custom Type update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetCustomTypeChangeImpl implements ShippingMethodSetCustomTypeChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.CustomFields previousValue; + + private com.commercetools.history.models.common.CustomFields nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodSetCustomTypeChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.CustomFields previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.CustomFields nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_SET_CUSTOM_TYPE_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodSetCustomTypeChangeImpl() { + this.type = SHIPPING_METHOD_SET_CUSTOM_TYPE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.CustomFields getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.CustomFields getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.CustomFields previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.CustomFields nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodSetCustomTypeChangeImpl that = (ShippingMethodSetCustomTypeChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodSetCustomTypeChange copyDeep() { + return ShippingMethodSetCustomTypeChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChange.java new file mode 100644 index 00000000000..b78a8720674 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChange.java @@ -0,0 +1,174 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Set Key update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetKeyChange shippingMethodSetKeyChange = ShippingMethodSetKeyChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodSetKeyChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodSetKeyChangeImpl.class) +public interface ShippingMethodSetKeyChange extends Change { + + /** + * discriminator value for ShippingMethodSetKeyChange + */ + String SHIPPING_METHOD_SET_KEY_CHANGE = "ShippingMethodSetKeyChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public String getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public String getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final String previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final String nextValue); + + /** + * factory method + * @return instance of ShippingMethodSetKeyChange + */ + public static ShippingMethodSetKeyChange of() { + return new ShippingMethodSetKeyChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodSetKeyChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodSetKeyChange of(final ShippingMethodSetKeyChange template) { + ShippingMethodSetKeyChangeImpl instance = new ShippingMethodSetKeyChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodSetKeyChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodSetKeyChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodSetKeyChange deepCopy(@Nullable final ShippingMethodSetKeyChange template) { + if (template == null) { + return null; + } + ShippingMethodSetKeyChangeImpl instance = new ShippingMethodSetKeyChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ShippingMethodSetKeyChange + * @return builder + */ + public static ShippingMethodSetKeyChangeBuilder builder() { + return ShippingMethodSetKeyChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodSetKeyChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetKeyChangeBuilder builder(final ShippingMethodSetKeyChange template) { + return ShippingMethodSetKeyChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodSetKeyChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChangeBuilder.java new file mode 100644 index 00000000000..c6a5cdfeeca --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChangeBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodSetKeyChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetKeyChange shippingMethodSetKeyChange = ShippingMethodSetKeyChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetKeyChangeBuilder implements Builder { + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodSetKeyChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodSetKeyChangeBuilder previousValue(final String previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodSetKeyChangeBuilder nextValue(final String nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public String getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodSetKeyChange with checking for non-null required values + * @return ShippingMethodSetKeyChange + */ + public ShippingMethodSetKeyChange build() { + Objects.requireNonNull(change, ShippingMethodSetKeyChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ShippingMethodSetKeyChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodSetKeyChange.class + ": nextValue is missing"); + return new ShippingMethodSetKeyChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ShippingMethodSetKeyChange without checking for non-null required values + * @return ShippingMethodSetKeyChange + */ + public ShippingMethodSetKeyChange buildUnchecked() { + return new ShippingMethodSetKeyChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodSetKeyChangeBuilder + * @return builder + */ + public static ShippingMethodSetKeyChangeBuilder of() { + return new ShippingMethodSetKeyChangeBuilder(); + } + + /** + * create builder for ShippingMethodSetKeyChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetKeyChangeBuilder of(final ShippingMethodSetKeyChange template) { + ShippingMethodSetKeyChangeBuilder builder = new ShippingMethodSetKeyChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChangeImpl.java new file mode 100644 index 00000000000..851a2291351 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Key update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetKeyChangeImpl implements ShippingMethodSetKeyChange, ModelBase { + + private String type; + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodSetKeyChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final String previousValue, + @JsonProperty("nextValue") final String nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_SET_KEY_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodSetKeyChangeImpl() { + this.type = SHIPPING_METHOD_SET_KEY_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public String getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final String previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final String nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodSetKeyChangeImpl that = (ShippingMethodSetKeyChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodSetKeyChange copyDeep() { + return ShippingMethodSetKeyChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChange.java new file mode 100644 index 00000000000..1621fdca13c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChange.java @@ -0,0 +1,184 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.LocalizedString; +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; + +/** + *

    Change triggered by the Set Localized Description update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetLocalizedDescriptionChange shippingMethodSetLocalizedDescriptionChange = ShippingMethodSetLocalizedDescriptionChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodSetLocalizedDescriptionChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodSetLocalizedDescriptionChangeImpl.class) +public interface ShippingMethodSetLocalizedDescriptionChange extends Change { + + /** + * discriminator value for ShippingMethodSetLocalizedDescriptionChange + */ + String SHIPPING_METHOD_SET_LOCALIZED_DESCRIPTION_CHANGE = "ShippingMethodSetLocalizedDescriptionChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public LocalizedString getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public LocalizedString getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final LocalizedString previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final LocalizedString nextValue); + + /** + * factory method + * @return instance of ShippingMethodSetLocalizedDescriptionChange + */ + public static ShippingMethodSetLocalizedDescriptionChange of() { + return new ShippingMethodSetLocalizedDescriptionChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodSetLocalizedDescriptionChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodSetLocalizedDescriptionChange of( + final ShippingMethodSetLocalizedDescriptionChange template) { + ShippingMethodSetLocalizedDescriptionChangeImpl instance = new ShippingMethodSetLocalizedDescriptionChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodSetLocalizedDescriptionChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodSetLocalizedDescriptionChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodSetLocalizedDescriptionChange deepCopy( + @Nullable final ShippingMethodSetLocalizedDescriptionChange template) { + if (template == null) { + return null; + } + ShippingMethodSetLocalizedDescriptionChangeImpl instance = new ShippingMethodSetLocalizedDescriptionChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.LocalizedString.deepCopy(template.getPreviousValue())); + instance.setNextValue( + com.commercetools.history.models.common.LocalizedString.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for ShippingMethodSetLocalizedDescriptionChange + * @return builder + */ + public static ShippingMethodSetLocalizedDescriptionChangeBuilder builder() { + return ShippingMethodSetLocalizedDescriptionChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodSetLocalizedDescriptionChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetLocalizedDescriptionChangeBuilder builder( + final ShippingMethodSetLocalizedDescriptionChange template) { + return ShippingMethodSetLocalizedDescriptionChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodSetLocalizedDescriptionChange( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChangeBuilder.java new file mode 100644 index 00000000000..dcc61f4789e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChangeBuilder.java @@ -0,0 +1,186 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodSetLocalizedDescriptionChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetLocalizedDescriptionChange shippingMethodSetLocalizedDescriptionChange = ShippingMethodSetLocalizedDescriptionChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetLocalizedDescriptionChangeBuilder + implements Builder { + + private String change; + + private com.commercetools.history.models.common.LocalizedString previousValue; + + private com.commercetools.history.models.common.LocalizedString nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodSetLocalizedDescriptionChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodSetLocalizedDescriptionChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodSetLocalizedDescriptionChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodSetLocalizedDescriptionChangeBuilder previousValue( + final com.commercetools.history.models.common.LocalizedString previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodSetLocalizedDescriptionChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodSetLocalizedDescriptionChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodSetLocalizedDescriptionChangeBuilder nextValue( + final com.commercetools.history.models.common.LocalizedString nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.LocalizedString getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.LocalizedString getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodSetLocalizedDescriptionChange with checking for non-null required values + * @return ShippingMethodSetLocalizedDescriptionChange + */ + public ShippingMethodSetLocalizedDescriptionChange build() { + Objects.requireNonNull(change, ShippingMethodSetLocalizedDescriptionChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, + ShippingMethodSetLocalizedDescriptionChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodSetLocalizedDescriptionChange.class + ": nextValue is missing"); + return new ShippingMethodSetLocalizedDescriptionChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ShippingMethodSetLocalizedDescriptionChange without checking for non-null required values + * @return ShippingMethodSetLocalizedDescriptionChange + */ + public ShippingMethodSetLocalizedDescriptionChange buildUnchecked() { + return new ShippingMethodSetLocalizedDescriptionChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodSetLocalizedDescriptionChangeBuilder + * @return builder + */ + public static ShippingMethodSetLocalizedDescriptionChangeBuilder of() { + return new ShippingMethodSetLocalizedDescriptionChangeBuilder(); + } + + /** + * create builder for ShippingMethodSetLocalizedDescriptionChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetLocalizedDescriptionChangeBuilder of( + final ShippingMethodSetLocalizedDescriptionChange template) { + ShippingMethodSetLocalizedDescriptionChangeBuilder builder = new ShippingMethodSetLocalizedDescriptionChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChangeImpl.java new file mode 100644 index 00000000000..b233f00dbe9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChangeImpl.java @@ -0,0 +1,141 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Localized Description update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetLocalizedDescriptionChangeImpl + implements ShippingMethodSetLocalizedDescriptionChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.LocalizedString previousValue; + + private com.commercetools.history.models.common.LocalizedString nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodSetLocalizedDescriptionChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.LocalizedString previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.LocalizedString nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_SET_LOCALIZED_DESCRIPTION_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodSetLocalizedDescriptionChangeImpl() { + this.type = SHIPPING_METHOD_SET_LOCALIZED_DESCRIPTION_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.LocalizedString getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.LocalizedString getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.LocalizedString previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.LocalizedString nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodSetLocalizedDescriptionChangeImpl that = (ShippingMethodSetLocalizedDescriptionChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodSetLocalizedDescriptionChange copyDeep() { + return ShippingMethodSetLocalizedDescriptionChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChange.java new file mode 100644 index 00000000000..ce3f57f65c7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChange.java @@ -0,0 +1,182 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.LocalizedString; +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; + +/** + *

    Change triggered by the Set Localized Name update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetLocalizedNameChange shippingMethodSetLocalizedNameChange = ShippingMethodSetLocalizedNameChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodSetLocalizedNameChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodSetLocalizedNameChangeImpl.class) +public interface ShippingMethodSetLocalizedNameChange extends Change { + + /** + * discriminator value for ShippingMethodSetLocalizedNameChange + */ + String SHIPPING_METHOD_SET_LOCALIZED_NAME_CHANGE = "ShippingMethodSetLocalizedNameChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public LocalizedString getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public LocalizedString getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final LocalizedString previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final LocalizedString nextValue); + + /** + * factory method + * @return instance of ShippingMethodSetLocalizedNameChange + */ + public static ShippingMethodSetLocalizedNameChange of() { + return new ShippingMethodSetLocalizedNameChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodSetLocalizedNameChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodSetLocalizedNameChange of(final ShippingMethodSetLocalizedNameChange template) { + ShippingMethodSetLocalizedNameChangeImpl instance = new ShippingMethodSetLocalizedNameChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodSetLocalizedNameChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodSetLocalizedNameChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodSetLocalizedNameChange deepCopy( + @Nullable final ShippingMethodSetLocalizedNameChange template) { + if (template == null) { + return null; + } + ShippingMethodSetLocalizedNameChangeImpl instance = new ShippingMethodSetLocalizedNameChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.LocalizedString.deepCopy(template.getPreviousValue())); + instance.setNextValue( + com.commercetools.history.models.common.LocalizedString.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for ShippingMethodSetLocalizedNameChange + * @return builder + */ + public static ShippingMethodSetLocalizedNameChangeBuilder builder() { + return ShippingMethodSetLocalizedNameChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodSetLocalizedNameChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetLocalizedNameChangeBuilder builder( + final ShippingMethodSetLocalizedNameChange template) { + return ShippingMethodSetLocalizedNameChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodSetLocalizedNameChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChangeBuilder.java new file mode 100644 index 00000000000..b713125b15a --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChangeBuilder.java @@ -0,0 +1,184 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodSetLocalizedNameChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetLocalizedNameChange shippingMethodSetLocalizedNameChange = ShippingMethodSetLocalizedNameChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetLocalizedNameChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.LocalizedString previousValue; + + private com.commercetools.history.models.common.LocalizedString nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodSetLocalizedNameChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodSetLocalizedNameChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public ShippingMethodSetLocalizedNameChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodSetLocalizedNameChangeBuilder previousValue( + final com.commercetools.history.models.common.LocalizedString previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodSetLocalizedNameChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public ShippingMethodSetLocalizedNameChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodSetLocalizedNameChangeBuilder nextValue( + final com.commercetools.history.models.common.LocalizedString nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.LocalizedString getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.LocalizedString getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodSetLocalizedNameChange with checking for non-null required values + * @return ShippingMethodSetLocalizedNameChange + */ + public ShippingMethodSetLocalizedNameChange build() { + Objects.requireNonNull(change, ShippingMethodSetLocalizedNameChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, + ShippingMethodSetLocalizedNameChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodSetLocalizedNameChange.class + ": nextValue is missing"); + return new ShippingMethodSetLocalizedNameChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ShippingMethodSetLocalizedNameChange without checking for non-null required values + * @return ShippingMethodSetLocalizedNameChange + */ + public ShippingMethodSetLocalizedNameChange buildUnchecked() { + return new ShippingMethodSetLocalizedNameChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodSetLocalizedNameChangeBuilder + * @return builder + */ + public static ShippingMethodSetLocalizedNameChangeBuilder of() { + return new ShippingMethodSetLocalizedNameChangeBuilder(); + } + + /** + * create builder for ShippingMethodSetLocalizedNameChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetLocalizedNameChangeBuilder of(final ShippingMethodSetLocalizedNameChange template) { + ShippingMethodSetLocalizedNameChangeBuilder builder = new ShippingMethodSetLocalizedNameChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChangeImpl.java new file mode 100644 index 00000000000..83170c81c0b --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Localized Name update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetLocalizedNameChangeImpl implements ShippingMethodSetLocalizedNameChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.LocalizedString previousValue; + + private com.commercetools.history.models.common.LocalizedString nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodSetLocalizedNameChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.LocalizedString previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.LocalizedString nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_SET_LOCALIZED_NAME_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodSetLocalizedNameChangeImpl() { + this.type = SHIPPING_METHOD_SET_LOCALIZED_NAME_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.LocalizedString getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.LocalizedString getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.LocalizedString previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.LocalizedString nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodSetLocalizedNameChangeImpl that = (ShippingMethodSetLocalizedNameChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodSetLocalizedNameChange copyDeep() { + return ShippingMethodSetLocalizedNameChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChange.java new file mode 100644 index 00000000000..f48ca13d347 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChange.java @@ -0,0 +1,174 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Set Predicate update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetPredicateChange shippingMethodSetPredicateChange = ShippingMethodSetPredicateChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodSetPredicateChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodSetPredicateChangeImpl.class) +public interface ShippingMethodSetPredicateChange extends Change { + + /** + * discriminator value for ShippingMethodSetPredicateChange + */ + String SHIPPING_METHOD_SET_PREDICATE_CHANGE = "ShippingMethodSetPredicateChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public String getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public String getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final String previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final String nextValue); + + /** + * factory method + * @return instance of ShippingMethodSetPredicateChange + */ + public static ShippingMethodSetPredicateChange of() { + return new ShippingMethodSetPredicateChangeImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodSetPredicateChange + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodSetPredicateChange of(final ShippingMethodSetPredicateChange template) { + ShippingMethodSetPredicateChangeImpl instance = new ShippingMethodSetPredicateChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public ShippingMethodSetPredicateChange copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodSetPredicateChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodSetPredicateChange deepCopy(@Nullable final ShippingMethodSetPredicateChange template) { + if (template == null) { + return null; + } + ShippingMethodSetPredicateChangeImpl instance = new ShippingMethodSetPredicateChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ShippingMethodSetPredicateChange + * @return builder + */ + public static ShippingMethodSetPredicateChangeBuilder builder() { + return ShippingMethodSetPredicateChangeBuilder.of(); + } + + /** + * create builder for ShippingMethodSetPredicateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetPredicateChangeBuilder builder(final ShippingMethodSetPredicateChange template) { + return ShippingMethodSetPredicateChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodSetPredicateChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChangeBuilder.java new file mode 100644 index 00000000000..44507542d02 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChangeBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodSetPredicateChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodSetPredicateChange shippingMethodSetPredicateChange = ShippingMethodSetPredicateChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetPredicateChangeBuilder implements Builder { + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public ShippingMethodSetPredicateChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public ShippingMethodSetPredicateChangeBuilder previousValue(final String previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public ShippingMethodSetPredicateChangeBuilder nextValue(final String nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public String getNextValue() { + return this.nextValue; + } + + /** + * builds ShippingMethodSetPredicateChange with checking for non-null required values + * @return ShippingMethodSetPredicateChange + */ + public ShippingMethodSetPredicateChange build() { + Objects.requireNonNull(change, ShippingMethodSetPredicateChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ShippingMethodSetPredicateChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ShippingMethodSetPredicateChange.class + ": nextValue is missing"); + return new ShippingMethodSetPredicateChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ShippingMethodSetPredicateChange without checking for non-null required values + * @return ShippingMethodSetPredicateChange + */ + public ShippingMethodSetPredicateChange buildUnchecked() { + return new ShippingMethodSetPredicateChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ShippingMethodSetPredicateChangeBuilder + * @return builder + */ + public static ShippingMethodSetPredicateChangeBuilder of() { + return new ShippingMethodSetPredicateChangeBuilder(); + } + + /** + * create builder for ShippingMethodSetPredicateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodSetPredicateChangeBuilder of(final ShippingMethodSetPredicateChange template) { + ShippingMethodSetPredicateChangeBuilder builder = new ShippingMethodSetPredicateChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChangeImpl.java new file mode 100644 index 00000000000..0aaa5db40ce --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Predicate update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodSetPredicateChangeImpl implements ShippingMethodSetPredicateChange, ModelBase { + + private String type; + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodSetPredicateChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final String previousValue, + @JsonProperty("nextValue") final String nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SHIPPING_METHOD_SET_PREDICATE_CHANGE; + } + + /** + * create empty instance + */ + public ShippingMethodSetPredicateChangeImpl() { + this.type = SHIPPING_METHOD_SET_PREDICATE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public String getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final String previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final String nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodSetPredicateChangeImpl that = (ShippingMethodSetPredicateChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public ShippingMethodSetPredicateChange copyDeep() { + return ShippingMethodSetPredicateChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChange.java new file mode 100644 index 00000000000..ea720ab8144 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChange.java @@ -0,0 +1,175 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Change Active update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceChangeActiveChange standalonePriceChangeActiveChange = StandalonePriceChangeActiveChange.builder()
    + *             .change("{change}")
    + *             .previousValue(true)
    + *             .nextValue(true)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceChangeActiveChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceChangeActiveChangeImpl.class) +public interface StandalonePriceChangeActiveChange extends Change { + + /** + * discriminator value for StandalonePriceChangeActiveChange + */ + String STANDALONE_PRICE_CHANGE_ACTIVE_CHANGE = "StandalonePriceChangeActiveChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public Boolean getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public Boolean getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final Boolean previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Boolean nextValue); + + /** + * factory method + * @return instance of StandalonePriceChangeActiveChange + */ + public static StandalonePriceChangeActiveChange of() { + return new StandalonePriceChangeActiveChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceChangeActiveChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceChangeActiveChange of(final StandalonePriceChangeActiveChange template) { + StandalonePriceChangeActiveChangeImpl instance = new StandalonePriceChangeActiveChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceChangeActiveChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceChangeActiveChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceChangeActiveChange deepCopy( + @Nullable final StandalonePriceChangeActiveChange template) { + if (template == null) { + return null; + } + StandalonePriceChangeActiveChangeImpl instance = new StandalonePriceChangeActiveChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for StandalonePriceChangeActiveChange + * @return builder + */ + public static StandalonePriceChangeActiveChangeBuilder builder() { + return StandalonePriceChangeActiveChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceChangeActiveChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceChangeActiveChangeBuilder builder(final StandalonePriceChangeActiveChange template) { + return StandalonePriceChangeActiveChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceChangeActiveChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChangeBuilder.java new file mode 100644 index 00000000000..f474d9063ef --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChangeBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceChangeActiveChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceChangeActiveChange standalonePriceChangeActiveChange = StandalonePriceChangeActiveChange.builder()
    + *             .change("{change}")
    + *             .previousValue(true)
    + *             .nextValue(true)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceChangeActiveChangeBuilder implements Builder { + + private String change; + + private Boolean previousValue; + + private Boolean nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceChangeActiveChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceChangeActiveChangeBuilder previousValue(final Boolean previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceChangeActiveChangeBuilder nextValue(final Boolean nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public Boolean getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public Boolean getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceChangeActiveChange with checking for non-null required values + * @return StandalonePriceChangeActiveChange + */ + public StandalonePriceChangeActiveChange build() { + Objects.requireNonNull(change, StandalonePriceChangeActiveChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, StandalonePriceChangeActiveChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceChangeActiveChange.class + ": nextValue is missing"); + return new StandalonePriceChangeActiveChangeImpl(change, previousValue, nextValue); + } + + /** + * builds StandalonePriceChangeActiveChange without checking for non-null required values + * @return StandalonePriceChangeActiveChange + */ + public StandalonePriceChangeActiveChange buildUnchecked() { + return new StandalonePriceChangeActiveChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceChangeActiveChangeBuilder + * @return builder + */ + public static StandalonePriceChangeActiveChangeBuilder of() { + return new StandalonePriceChangeActiveChangeBuilder(); + } + + /** + * create builder for StandalonePriceChangeActiveChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceChangeActiveChangeBuilder of(final StandalonePriceChangeActiveChange template) { + StandalonePriceChangeActiveChangeBuilder builder = new StandalonePriceChangeActiveChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChangeImpl.java new file mode 100644 index 00000000000..8940f08dd72 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Change Active update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceChangeActiveChangeImpl implements StandalonePriceChangeActiveChange, ModelBase { + + private String type; + + private String change; + + private Boolean previousValue; + + private Boolean nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceChangeActiveChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final Boolean previousValue, + @JsonProperty("nextValue") final Boolean nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_CHANGE_ACTIVE_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceChangeActiveChangeImpl() { + this.type = STANDALONE_PRICE_CHANGE_ACTIVE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public Boolean getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public Boolean getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final Boolean previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final Boolean nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceChangeActiveChangeImpl that = (StandalonePriceChangeActiveChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceChangeActiveChange copyDeep() { + return StandalonePriceChangeActiveChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChange.java new file mode 100644 index 00000000000..88c8873522f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChange.java @@ -0,0 +1,196 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.Money; +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; + +/** + *

    Change triggered by the Change Value update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceChangeValueChange standalonePriceChangeValueChange = StandalonePriceChangeValueChange.builder()
    + *             .change("{change}")
    + *             .staged(true)
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceChangeValueChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceChangeValueChangeImpl.class) +public interface StandalonePriceChangeValueChange extends Change { + + /** + * discriminator value for StandalonePriceChangeValueChange + */ + String STANDALONE_PRICE_CHANGE_VALUE_CHANGE = "StandalonePriceChangeValueChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Indicates if the change was applied to the staged or current price.

    + * @return staged + */ + @NotNull + @JsonProperty("staged") + public Boolean getStaged(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public Money getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public Money getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Indicates if the change was applied to the staged or current price.

    + * @param staged value to be set + */ + + public void setStaged(final Boolean staged); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final Money previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Money nextValue); + + /** + * factory method + * @return instance of StandalonePriceChangeValueChange + */ + public static StandalonePriceChangeValueChange of() { + return new StandalonePriceChangeValueChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceChangeValueChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceChangeValueChange of(final StandalonePriceChangeValueChange template) { + StandalonePriceChangeValueChangeImpl instance = new StandalonePriceChangeValueChangeImpl(); + instance.setChange(template.getChange()); + instance.setStaged(template.getStaged()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceChangeValueChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceChangeValueChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceChangeValueChange deepCopy(@Nullable final StandalonePriceChangeValueChange template) { + if (template == null) { + return null; + } + StandalonePriceChangeValueChangeImpl instance = new StandalonePriceChangeValueChangeImpl(); + instance.setChange(template.getChange()); + instance.setStaged(template.getStaged()); + instance.setPreviousValue(com.commercetools.history.models.common.Money.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.Money.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for StandalonePriceChangeValueChange + * @return builder + */ + public static StandalonePriceChangeValueChangeBuilder builder() { + return StandalonePriceChangeValueChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceChangeValueChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceChangeValueChangeBuilder builder(final StandalonePriceChangeValueChange template) { + return StandalonePriceChangeValueChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceChangeValueChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChangeBuilder.java new file mode 100644 index 00000000000..3d96a7160fa --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChangeBuilder.java @@ -0,0 +1,208 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceChangeValueChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceChangeValueChange standalonePriceChangeValueChange = StandalonePriceChangeValueChange.builder()
    + *             .change("{change}")
    + *             .staged(true)
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceChangeValueChangeBuilder implements Builder { + + private String change; + + private Boolean staged; + + private com.commercetools.history.models.common.Money previousValue; + + private com.commercetools.history.models.common.Money nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceChangeValueChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Indicates if the change was applied to the staged or current price.

    + * @param staged value to be set + * @return Builder + */ + + public StandalonePriceChangeValueChangeBuilder staged(final Boolean staged) { + this.staged = staged; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceChangeValueChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.MoneyBuilder.of()).build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceChangeValueChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.MoneyBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceChangeValueChangeBuilder previousValue( + final com.commercetools.history.models.common.Money previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceChangeValueChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.MoneyBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceChangeValueChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.MoneyBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceChangeValueChangeBuilder nextValue( + final com.commercetools.history.models.common.Money nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Indicates if the change was applied to the staged or current price.

    + * @return staged + */ + + public Boolean getStaged() { + return this.staged; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.Money getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.Money getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceChangeValueChange with checking for non-null required values + * @return StandalonePriceChangeValueChange + */ + public StandalonePriceChangeValueChange build() { + Objects.requireNonNull(change, StandalonePriceChangeValueChange.class + ": change is missing"); + Objects.requireNonNull(staged, StandalonePriceChangeValueChange.class + ": staged is missing"); + Objects.requireNonNull(previousValue, StandalonePriceChangeValueChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceChangeValueChange.class + ": nextValue is missing"); + return new StandalonePriceChangeValueChangeImpl(change, staged, previousValue, nextValue); + } + + /** + * builds StandalonePriceChangeValueChange without checking for non-null required values + * @return StandalonePriceChangeValueChange + */ + public StandalonePriceChangeValueChange buildUnchecked() { + return new StandalonePriceChangeValueChangeImpl(change, staged, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceChangeValueChangeBuilder + * @return builder + */ + public static StandalonePriceChangeValueChangeBuilder of() { + return new StandalonePriceChangeValueChangeBuilder(); + } + + /** + * create builder for StandalonePriceChangeValueChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceChangeValueChangeBuilder of(final StandalonePriceChangeValueChange template) { + StandalonePriceChangeValueChangeBuilder builder = new StandalonePriceChangeValueChangeBuilder(); + builder.change = template.getChange(); + builder.staged = template.getStaged(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChangeImpl.java new file mode 100644 index 00000000000..144179155ff --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChangeImpl.java @@ -0,0 +1,160 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Change Value update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceChangeValueChangeImpl implements StandalonePriceChangeValueChange, ModelBase { + + private String type; + + private String change; + + private Boolean staged; + + private com.commercetools.history.models.common.Money previousValue; + + private com.commercetools.history.models.common.Money nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceChangeValueChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("staged") final Boolean staged, + @JsonProperty("previousValue") final com.commercetools.history.models.common.Money previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.Money nextValue) { + this.change = change; + this.staged = staged; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_CHANGE_VALUE_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceChangeValueChangeImpl() { + this.type = STANDALONE_PRICE_CHANGE_VALUE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Indicates if the change was applied to the staged or current price.

    + */ + + public Boolean getStaged() { + return this.staged; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.Money getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.Money getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setStaged(final Boolean staged) { + this.staged = staged; + } + + public void setPreviousValue(final com.commercetools.history.models.common.Money previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.Money nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceChangeValueChangeImpl that = (StandalonePriceChangeValueChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(staged, that.staged) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(staged, that.staged) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(staged) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("staged", staged) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceChangeValueChange copyDeep() { + return StandalonePriceChangeValueChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChange.java new file mode 100644 index 00000000000..8e7e7d0075d --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChange.java @@ -0,0 +1,210 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Set Custom Field update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetCustomFieldChange standalonePriceSetCustomFieldChange = StandalonePriceSetCustomFieldChange.builder()
    + *             .change("{change}")
    + *             .name("{name}")
    + *             .customTypeId("{customTypeId}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceSetCustomFieldChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceSetCustomFieldChangeImpl.class) +public interface StandalonePriceSetCustomFieldChange extends Change { + + /** + * discriminator value for StandalonePriceSetCustomFieldChange + */ + String STANDALONE_PRICE_SET_CUSTOM_FIELD_CHANGE = "StandalonePriceSetCustomFieldChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Name of the Custom Field.

    + * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *

    id of the referenced Type.

    + * @return customTypeId + */ + @NotNull + @JsonProperty("customTypeId") + public String getCustomTypeId(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public Object getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public Object getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Name of the Custom Field.

    + * @param name value to be set + */ + + public void setName(final String name); + + /** + *

    id of the referenced Type.

    + * @param customTypeId value to be set + */ + + public void setCustomTypeId(final String customTypeId); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final Object previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Object nextValue); + + /** + * factory method + * @return instance of StandalonePriceSetCustomFieldChange + */ + public static StandalonePriceSetCustomFieldChange of() { + return new StandalonePriceSetCustomFieldChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceSetCustomFieldChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceSetCustomFieldChange of(final StandalonePriceSetCustomFieldChange template) { + StandalonePriceSetCustomFieldChangeImpl instance = new StandalonePriceSetCustomFieldChangeImpl(); + instance.setChange(template.getChange()); + instance.setName(template.getName()); + instance.setCustomTypeId(template.getCustomTypeId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceSetCustomFieldChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceSetCustomFieldChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceSetCustomFieldChange deepCopy( + @Nullable final StandalonePriceSetCustomFieldChange template) { + if (template == null) { + return null; + } + StandalonePriceSetCustomFieldChangeImpl instance = new StandalonePriceSetCustomFieldChangeImpl(); + instance.setChange(template.getChange()); + instance.setName(template.getName()); + instance.setCustomTypeId(template.getCustomTypeId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for StandalonePriceSetCustomFieldChange + * @return builder + */ + public static StandalonePriceSetCustomFieldChangeBuilder builder() { + return StandalonePriceSetCustomFieldChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceSetCustomFieldChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetCustomFieldChangeBuilder builder( + final StandalonePriceSetCustomFieldChange template) { + return StandalonePriceSetCustomFieldChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceSetCustomFieldChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChangeBuilder.java new file mode 100644 index 00000000000..b350ec65672 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChangeBuilder.java @@ -0,0 +1,180 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceSetCustomFieldChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetCustomFieldChange standalonePriceSetCustomFieldChange = StandalonePriceSetCustomFieldChange.builder()
    + *             .change("{change}")
    + *             .name("{name}")
    + *             .customTypeId("{customTypeId}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetCustomFieldChangeBuilder implements Builder { + + private String change; + + private String name; + + private String customTypeId; + + private java.lang.Object previousValue; + + private java.lang.Object nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceSetCustomFieldChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Name of the Custom Field.

    + * @param name value to be set + * @return Builder + */ + + public StandalonePriceSetCustomFieldChangeBuilder name(final String name) { + this.name = name; + return this; + } + + /** + *

    id of the referenced Type.

    + * @param customTypeId value to be set + * @return Builder + */ + + public StandalonePriceSetCustomFieldChangeBuilder customTypeId(final String customTypeId) { + this.customTypeId = customTypeId; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetCustomFieldChangeBuilder previousValue(final java.lang.Object previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetCustomFieldChangeBuilder nextValue(final java.lang.Object nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Name of the Custom Field.

    + * @return name + */ + + public String getName() { + return this.name; + } + + /** + *

    id of the referenced Type.

    + * @return customTypeId + */ + + public String getCustomTypeId() { + return this.customTypeId; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public java.lang.Object getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public java.lang.Object getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceSetCustomFieldChange with checking for non-null required values + * @return StandalonePriceSetCustomFieldChange + */ + public StandalonePriceSetCustomFieldChange build() { + Objects.requireNonNull(change, StandalonePriceSetCustomFieldChange.class + ": change is missing"); + Objects.requireNonNull(name, StandalonePriceSetCustomFieldChange.class + ": name is missing"); + Objects.requireNonNull(customTypeId, StandalonePriceSetCustomFieldChange.class + ": customTypeId is missing"); + Objects.requireNonNull(previousValue, StandalonePriceSetCustomFieldChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceSetCustomFieldChange.class + ": nextValue is missing"); + return new StandalonePriceSetCustomFieldChangeImpl(change, name, customTypeId, previousValue, nextValue); + } + + /** + * builds StandalonePriceSetCustomFieldChange without checking for non-null required values + * @return StandalonePriceSetCustomFieldChange + */ + public StandalonePriceSetCustomFieldChange buildUnchecked() { + return new StandalonePriceSetCustomFieldChangeImpl(change, name, customTypeId, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceSetCustomFieldChangeBuilder + * @return builder + */ + public static StandalonePriceSetCustomFieldChangeBuilder of() { + return new StandalonePriceSetCustomFieldChangeBuilder(); + } + + /** + * create builder for StandalonePriceSetCustomFieldChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetCustomFieldChangeBuilder of(final StandalonePriceSetCustomFieldChange template) { + StandalonePriceSetCustomFieldChangeBuilder builder = new StandalonePriceSetCustomFieldChangeBuilder(); + builder.change = template.getChange(); + builder.name = template.getName(); + builder.customTypeId = template.getCustomTypeId(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChangeImpl.java new file mode 100644 index 00000000000..b047443e8bb --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChangeImpl.java @@ -0,0 +1,179 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Custom Field update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetCustomFieldChangeImpl implements StandalonePriceSetCustomFieldChange, ModelBase { + + private String type; + + private String change; + + private String name; + + private String customTypeId; + + private java.lang.Object previousValue; + + private java.lang.Object nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceSetCustomFieldChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("name") final String name, @JsonProperty("customTypeId") final String customTypeId, + @JsonProperty("previousValue") final java.lang.Object previousValue, + @JsonProperty("nextValue") final java.lang.Object nextValue) { + this.change = change; + this.name = name; + this.customTypeId = customTypeId; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_SET_CUSTOM_FIELD_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceSetCustomFieldChangeImpl() { + this.type = STANDALONE_PRICE_SET_CUSTOM_FIELD_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Name of the Custom Field.

    + */ + + public String getName() { + return this.name; + } + + /** + *

    id of the referenced Type.

    + */ + + public String getCustomTypeId() { + return this.customTypeId; + } + + /** + *

    Value before the change.

    + */ + + public java.lang.Object getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public java.lang.Object getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setName(final String name) { + this.name = name; + } + + public void setCustomTypeId(final String customTypeId) { + this.customTypeId = customTypeId; + } + + public void setPreviousValue(final java.lang.Object previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final java.lang.Object nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceSetCustomFieldChangeImpl that = (StandalonePriceSetCustomFieldChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(name, that.name) + .append(customTypeId, that.customTypeId) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(name, that.name) + .append(customTypeId, that.customTypeId) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(name) + .append(customTypeId) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("name", name) + .append("customTypeId", customTypeId) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceSetCustomFieldChange copyDeep() { + return StandalonePriceSetCustomFieldChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChange.java new file mode 100644 index 00000000000..b9f3c6a42ef --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChange.java @@ -0,0 +1,180 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.CustomFields; +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; + +/** + *

    Change triggered by the Set Custom Type update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetCustomTypeChange standalonePriceSetCustomTypeChange = StandalonePriceSetCustomTypeChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceSetCustomTypeChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceSetCustomTypeChangeImpl.class) +public interface StandalonePriceSetCustomTypeChange extends Change { + + /** + * discriminator value for StandalonePriceSetCustomTypeChange + */ + String STANDALONE_PRICE_SET_CUSTOM_TYPE_CHANGE = "StandalonePriceSetCustomTypeChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public CustomFields getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public CustomFields getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final CustomFields previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final CustomFields nextValue); + + /** + * factory method + * @return instance of StandalonePriceSetCustomTypeChange + */ + public static StandalonePriceSetCustomTypeChange of() { + return new StandalonePriceSetCustomTypeChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceSetCustomTypeChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceSetCustomTypeChange of(final StandalonePriceSetCustomTypeChange template) { + StandalonePriceSetCustomTypeChangeImpl instance = new StandalonePriceSetCustomTypeChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceSetCustomTypeChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceSetCustomTypeChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceSetCustomTypeChange deepCopy( + @Nullable final StandalonePriceSetCustomTypeChange template) { + if (template == null) { + return null; + } + StandalonePriceSetCustomTypeChangeImpl instance = new StandalonePriceSetCustomTypeChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.CustomFields.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.CustomFields.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for StandalonePriceSetCustomTypeChange + * @return builder + */ + public static StandalonePriceSetCustomTypeChangeBuilder builder() { + return StandalonePriceSetCustomTypeChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceSetCustomTypeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetCustomTypeChangeBuilder builder(final StandalonePriceSetCustomTypeChange template) { + return StandalonePriceSetCustomTypeChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceSetCustomTypeChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChangeBuilder.java new file mode 100644 index 00000000000..6bde5a8d74e --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChangeBuilder.java @@ -0,0 +1,183 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceSetCustomTypeChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetCustomTypeChange standalonePriceSetCustomTypeChange = StandalonePriceSetCustomTypeChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetCustomTypeChangeBuilder implements Builder { + + private String change; + + private com.commercetools.history.models.common.CustomFields previousValue; + + private com.commercetools.history.models.common.CustomFields nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceSetCustomTypeChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetCustomTypeChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.CustomFieldsBuilder.of()).build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetCustomTypeChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.CustomFieldsBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetCustomTypeChangeBuilder previousValue( + final com.commercetools.history.models.common.CustomFields previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetCustomTypeChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.CustomFieldsBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetCustomTypeChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.CustomFieldsBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetCustomTypeChangeBuilder nextValue( + final com.commercetools.history.models.common.CustomFields nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.CustomFields getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.CustomFields getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceSetCustomTypeChange with checking for non-null required values + * @return StandalonePriceSetCustomTypeChange + */ + public StandalonePriceSetCustomTypeChange build() { + Objects.requireNonNull(change, StandalonePriceSetCustomTypeChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, StandalonePriceSetCustomTypeChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceSetCustomTypeChange.class + ": nextValue is missing"); + return new StandalonePriceSetCustomTypeChangeImpl(change, previousValue, nextValue); + } + + /** + * builds StandalonePriceSetCustomTypeChange without checking for non-null required values + * @return StandalonePriceSetCustomTypeChange + */ + public StandalonePriceSetCustomTypeChange buildUnchecked() { + return new StandalonePriceSetCustomTypeChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceSetCustomTypeChangeBuilder + * @return builder + */ + public static StandalonePriceSetCustomTypeChangeBuilder of() { + return new StandalonePriceSetCustomTypeChangeBuilder(); + } + + /** + * create builder for StandalonePriceSetCustomTypeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetCustomTypeChangeBuilder of(final StandalonePriceSetCustomTypeChange template) { + StandalonePriceSetCustomTypeChangeBuilder builder = new StandalonePriceSetCustomTypeChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChangeImpl.java new file mode 100644 index 00000000000..d60d5137839 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Custom Type update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetCustomTypeChangeImpl implements StandalonePriceSetCustomTypeChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.CustomFields previousValue; + + private com.commercetools.history.models.common.CustomFields nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceSetCustomTypeChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.CustomFields previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.CustomFields nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_SET_CUSTOM_TYPE_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceSetCustomTypeChangeImpl() { + this.type = STANDALONE_PRICE_SET_CUSTOM_TYPE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.CustomFields getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.CustomFields getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.CustomFields previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.CustomFields nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceSetCustomTypeChangeImpl that = (StandalonePriceSetCustomTypeChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceSetCustomTypeChange copyDeep() { + return StandalonePriceSetCustomTypeChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChange.java new file mode 100644 index 00000000000..e1447be754c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChange.java @@ -0,0 +1,201 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.DiscountedPrice; +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; + +/** + *

    Change triggered by the Set Discounted Price update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetDiscountedPriceChange standalonePriceSetDiscountedPriceChange = StandalonePriceSetDiscountedPriceChange.builder()
    + *             .change("{change}")
    + *             .staged(true)
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceSetDiscountedPriceChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceSetDiscountedPriceChangeImpl.class) +public interface StandalonePriceSetDiscountedPriceChange extends Change { + + /** + * discriminator value for StandalonePriceSetDiscountedPriceChange + */ + String STANDALONE_PRICE_SET_DISCOUNTED_PRICE_CHANGE = "StandalonePriceSetDiscountedPriceChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Indicates if the change was applied to the staged or current price.

    + * @return staged + */ + @NotNull + @JsonProperty("staged") + public Boolean getStaged(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public DiscountedPrice getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public DiscountedPrice getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Indicates if the change was applied to the staged or current price.

    + * @param staged value to be set + */ + + public void setStaged(final Boolean staged); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final DiscountedPrice previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final DiscountedPrice nextValue); + + /** + * factory method + * @return instance of StandalonePriceSetDiscountedPriceChange + */ + public static StandalonePriceSetDiscountedPriceChange of() { + return new StandalonePriceSetDiscountedPriceChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceSetDiscountedPriceChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceSetDiscountedPriceChange of(final StandalonePriceSetDiscountedPriceChange template) { + StandalonePriceSetDiscountedPriceChangeImpl instance = new StandalonePriceSetDiscountedPriceChangeImpl(); + instance.setChange(template.getChange()); + instance.setStaged(template.getStaged()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceSetDiscountedPriceChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceSetDiscountedPriceChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceSetDiscountedPriceChange deepCopy( + @Nullable final StandalonePriceSetDiscountedPriceChange template) { + if (template == null) { + return null; + } + StandalonePriceSetDiscountedPriceChangeImpl instance = new StandalonePriceSetDiscountedPriceChangeImpl(); + instance.setChange(template.getChange()); + instance.setStaged(template.getStaged()); + instance.setPreviousValue( + com.commercetools.history.models.common.DiscountedPrice.deepCopy(template.getPreviousValue())); + instance.setNextValue( + com.commercetools.history.models.common.DiscountedPrice.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for StandalonePriceSetDiscountedPriceChange + * @return builder + */ + public static StandalonePriceSetDiscountedPriceChangeBuilder builder() { + return StandalonePriceSetDiscountedPriceChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceSetDiscountedPriceChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetDiscountedPriceChangeBuilder builder( + final StandalonePriceSetDiscountedPriceChange template) { + return StandalonePriceSetDiscountedPriceChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceSetDiscountedPriceChange( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChangeBuilder.java new file mode 100644 index 00000000000..3feb4a3c04a --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChangeBuilder.java @@ -0,0 +1,211 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceSetDiscountedPriceChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetDiscountedPriceChange standalonePriceSetDiscountedPriceChange = StandalonePriceSetDiscountedPriceChange.builder()
    + *             .change("{change}")
    + *             .staged(true)
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetDiscountedPriceChangeBuilder + implements Builder { + + private String change; + + private Boolean staged; + + private com.commercetools.history.models.common.DiscountedPrice previousValue; + + private com.commercetools.history.models.common.DiscountedPrice nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceSetDiscountedPriceChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Indicates if the change was applied to the staged or current price.

    + * @param staged value to be set + * @return Builder + */ + + public StandalonePriceSetDiscountedPriceChangeBuilder staged(final Boolean staged) { + this.staged = staged; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetDiscountedPriceChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.DiscountedPriceBuilder.of()).build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetDiscountedPriceChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.DiscountedPriceBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetDiscountedPriceChangeBuilder previousValue( + final com.commercetools.history.models.common.DiscountedPrice previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetDiscountedPriceChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.DiscountedPriceBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetDiscountedPriceChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.DiscountedPriceBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetDiscountedPriceChangeBuilder nextValue( + final com.commercetools.history.models.common.DiscountedPrice nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Indicates if the change was applied to the staged or current price.

    + * @return staged + */ + + public Boolean getStaged() { + return this.staged; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.common.DiscountedPrice getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.DiscountedPrice getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceSetDiscountedPriceChange with checking for non-null required values + * @return StandalonePriceSetDiscountedPriceChange + */ + public StandalonePriceSetDiscountedPriceChange build() { + Objects.requireNonNull(change, StandalonePriceSetDiscountedPriceChange.class + ": change is missing"); + Objects.requireNonNull(staged, StandalonePriceSetDiscountedPriceChange.class + ": staged is missing"); + Objects.requireNonNull(previousValue, + StandalonePriceSetDiscountedPriceChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceSetDiscountedPriceChange.class + ": nextValue is missing"); + return new StandalonePriceSetDiscountedPriceChangeImpl(change, staged, previousValue, nextValue); + } + + /** + * builds StandalonePriceSetDiscountedPriceChange without checking for non-null required values + * @return StandalonePriceSetDiscountedPriceChange + */ + public StandalonePriceSetDiscountedPriceChange buildUnchecked() { + return new StandalonePriceSetDiscountedPriceChangeImpl(change, staged, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceSetDiscountedPriceChangeBuilder + * @return builder + */ + public static StandalonePriceSetDiscountedPriceChangeBuilder of() { + return new StandalonePriceSetDiscountedPriceChangeBuilder(); + } + + /** + * create builder for StandalonePriceSetDiscountedPriceChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetDiscountedPriceChangeBuilder of( + final StandalonePriceSetDiscountedPriceChange template) { + StandalonePriceSetDiscountedPriceChangeBuilder builder = new StandalonePriceSetDiscountedPriceChangeBuilder(); + builder.change = template.getChange(); + builder.staged = template.getStaged(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChangeImpl.java new file mode 100644 index 00000000000..135488c0017 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChangeImpl.java @@ -0,0 +1,160 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Discounted Price update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetDiscountedPriceChangeImpl implements StandalonePriceSetDiscountedPriceChange, ModelBase { + + private String type; + + private String change; + + private Boolean staged; + + private com.commercetools.history.models.common.DiscountedPrice previousValue; + + private com.commercetools.history.models.common.DiscountedPrice nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceSetDiscountedPriceChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("staged") final Boolean staged, + @JsonProperty("previousValue") final com.commercetools.history.models.common.DiscountedPrice previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.DiscountedPrice nextValue) { + this.change = change; + this.staged = staged; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_SET_DISCOUNTED_PRICE_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceSetDiscountedPriceChangeImpl() { + this.type = STANDALONE_PRICE_SET_DISCOUNTED_PRICE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Indicates if the change was applied to the staged or current price.

    + */ + + public Boolean getStaged() { + return this.staged; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.common.DiscountedPrice getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.DiscountedPrice getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setStaged(final Boolean staged) { + this.staged = staged; + } + + public void setPreviousValue(final com.commercetools.history.models.common.DiscountedPrice previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.DiscountedPrice nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceSetDiscountedPriceChangeImpl that = (StandalonePriceSetDiscountedPriceChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(staged, that.staged) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(staged, that.staged) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(staged) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("staged", staged) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceSetDiscountedPriceChange copyDeep() { + return StandalonePriceSetDiscountedPriceChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChange.java new file mode 100644 index 00000000000..fbbcdc52e6d --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChange.java @@ -0,0 +1,174 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Set Key update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetKeyChange standalonePriceSetKeyChange = StandalonePriceSetKeyChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceSetKeyChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceSetKeyChangeImpl.class) +public interface StandalonePriceSetKeyChange extends Change { + + /** + * discriminator value for StandalonePriceSetKeyChange + */ + String STANDALONE_PRICE_SET_KEY_CHANGE = "StandalonePriceSetKeyChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public String getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public String getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final String previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final String nextValue); + + /** + * factory method + * @return instance of StandalonePriceSetKeyChange + */ + public static StandalonePriceSetKeyChange of() { + return new StandalonePriceSetKeyChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceSetKeyChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceSetKeyChange of(final StandalonePriceSetKeyChange template) { + StandalonePriceSetKeyChangeImpl instance = new StandalonePriceSetKeyChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceSetKeyChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceSetKeyChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceSetKeyChange deepCopy(@Nullable final StandalonePriceSetKeyChange template) { + if (template == null) { + return null; + } + StandalonePriceSetKeyChangeImpl instance = new StandalonePriceSetKeyChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for StandalonePriceSetKeyChange + * @return builder + */ + public static StandalonePriceSetKeyChangeBuilder builder() { + return StandalonePriceSetKeyChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceSetKeyChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetKeyChangeBuilder builder(final StandalonePriceSetKeyChange template) { + return StandalonePriceSetKeyChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceSetKeyChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChangeBuilder.java new file mode 100644 index 00000000000..232cc4a4913 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChangeBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceSetKeyChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetKeyChange standalonePriceSetKeyChange = StandalonePriceSetKeyChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetKeyChangeBuilder implements Builder { + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceSetKeyChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetKeyChangeBuilder previousValue(final String previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetKeyChangeBuilder nextValue(final String nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public String getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceSetKeyChange with checking for non-null required values + * @return StandalonePriceSetKeyChange + */ + public StandalonePriceSetKeyChange build() { + Objects.requireNonNull(change, StandalonePriceSetKeyChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, StandalonePriceSetKeyChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceSetKeyChange.class + ": nextValue is missing"); + return new StandalonePriceSetKeyChangeImpl(change, previousValue, nextValue); + } + + /** + * builds StandalonePriceSetKeyChange without checking for non-null required values + * @return StandalonePriceSetKeyChange + */ + public StandalonePriceSetKeyChange buildUnchecked() { + return new StandalonePriceSetKeyChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceSetKeyChangeBuilder + * @return builder + */ + public static StandalonePriceSetKeyChangeBuilder of() { + return new StandalonePriceSetKeyChangeBuilder(); + } + + /** + * create builder for StandalonePriceSetKeyChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetKeyChangeBuilder of(final StandalonePriceSetKeyChange template) { + StandalonePriceSetKeyChangeBuilder builder = new StandalonePriceSetKeyChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChangeImpl.java new file mode 100644 index 00000000000..18506af194c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Key update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetKeyChangeImpl implements StandalonePriceSetKeyChange, ModelBase { + + private String type; + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceSetKeyChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final String previousValue, + @JsonProperty("nextValue") final String nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_SET_KEY_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceSetKeyChangeImpl() { + this.type = STANDALONE_PRICE_SET_KEY_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public String getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final String previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final String nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceSetKeyChangeImpl that = (StandalonePriceSetKeyChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceSetKeyChange copyDeep() { + return StandalonePriceSetKeyChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChange.java new file mode 100644 index 00000000000..a1f042b7adf --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChange.java @@ -0,0 +1,266 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.common.PriceTier; +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; + +/** + *

    Change triggered by the Add Price Tier, Remove Price Tier, or Set Price Tiers update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetPriceTiersChange standalonePriceSetPriceTiersChange = StandalonePriceSetPriceTiersChange.builder()
    + *             .change("{change}")
    + *             .plusAddedItems(addedItemsBuilder -> addedItemsBuilder)
    + *             .plusRemovedItems(removedItemsBuilder -> removedItemsBuilder)
    + *             .plusPreviousValue(previousValueBuilder -> previousValueBuilder)
    + *             .plusNextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceSetPriceTiersChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceSetPriceTiersChangeImpl.class) +public interface StandalonePriceSetPriceTiersChange extends Change { + + /** + * discriminator value for StandalonePriceSetPriceTiersChange + */ + String STANDALONE_PRICE_SET_PRICE_TIERS_CHANGE = "StandalonePriceSetPriceTiersChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Elements added to the array.

    + * @return addedItems + */ + @NotNull + @Valid + @JsonProperty("addedItems") + public List getAddedItems(); + + /** + *

    Elements removed from the array.

    + * @return removedItems + */ + @NotNull + @Valid + @JsonProperty("removedItems") + public List getRemovedItems(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public List getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public List getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Elements added to the array.

    + * @param addedItems values to be set + */ + + @JsonIgnore + public void setAddedItems(final PriceTier... addedItems); + + /** + *

    Elements added to the array.

    + * @param addedItems values to be set + */ + + public void setAddedItems(final List addedItems); + + /** + *

    Elements removed from the array.

    + * @param removedItems values to be set + */ + + @JsonIgnore + public void setRemovedItems(final PriceTier... removedItems); + + /** + *

    Elements removed from the array.

    + * @param removedItems values to be set + */ + + public void setRemovedItems(final List removedItems); + + /** + *

    Value before the change.

    + * @param previousValue values to be set + */ + + @JsonIgnore + public void setPreviousValue(final PriceTier... previousValue); + + /** + *

    Value before the change.

    + * @param previousValue values to be set + */ + + public void setPreviousValue(final List previousValue); + + /** + *

    Value after the change.

    + * @param nextValue values to be set + */ + + @JsonIgnore + public void setNextValue(final PriceTier... nextValue); + + /** + *

    Value after the change.

    + * @param nextValue values to be set + */ + + public void setNextValue(final List nextValue); + + /** + * factory method + * @return instance of StandalonePriceSetPriceTiersChange + */ + public static StandalonePriceSetPriceTiersChange of() { + return new StandalonePriceSetPriceTiersChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceSetPriceTiersChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceSetPriceTiersChange of(final StandalonePriceSetPriceTiersChange template) { + StandalonePriceSetPriceTiersChangeImpl instance = new StandalonePriceSetPriceTiersChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddedItems(template.getAddedItems()); + instance.setRemovedItems(template.getRemovedItems()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceSetPriceTiersChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceSetPriceTiersChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceSetPriceTiersChange deepCopy( + @Nullable final StandalonePriceSetPriceTiersChange template) { + if (template == null) { + return null; + } + StandalonePriceSetPriceTiersChangeImpl instance = new StandalonePriceSetPriceTiersChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddedItems(Optional.ofNullable(template.getAddedItems()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.PriceTier::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setRemovedItems(Optional.ofNullable(template.getRemovedItems()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.PriceTier::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setPreviousValue(Optional.ofNullable(template.getPreviousValue()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.PriceTier::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setNextValue(Optional.ofNullable(template.getNextValue()) + .map(t -> t.stream() + .map(com.commercetools.history.models.common.PriceTier::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for StandalonePriceSetPriceTiersChange + * @return builder + */ + public static StandalonePriceSetPriceTiersChangeBuilder builder() { + return StandalonePriceSetPriceTiersChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceSetPriceTiersChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetPriceTiersChangeBuilder builder(final StandalonePriceSetPriceTiersChange template) { + return StandalonePriceSetPriceTiersChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceSetPriceTiersChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChangeBuilder.java new file mode 100644 index 00000000000..d8a3e6f13d4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChangeBuilder.java @@ -0,0 +1,495 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceSetPriceTiersChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetPriceTiersChange standalonePriceSetPriceTiersChange = StandalonePriceSetPriceTiersChange.builder()
    + *             .change("{change}")
    + *             .plusAddedItems(addedItemsBuilder -> addedItemsBuilder)
    + *             .plusRemovedItems(removedItemsBuilder -> removedItemsBuilder)
    + *             .plusPreviousValue(previousValueBuilder -> previousValueBuilder)
    + *             .plusNextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetPriceTiersChangeBuilder implements Builder { + + private String change; + + private java.util.List addedItems; + + private java.util.List removedItems; + + private java.util.List previousValue; + + private java.util.List nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Elements added to the array.

    + * @param addedItems value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder addedItems( + final com.commercetools.history.models.common.PriceTier... addedItems) { + this.addedItems = new ArrayList<>(Arrays.asList(addedItems)); + return this; + } + + /** + *

    Elements added to the array.

    + * @param addedItems value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder addedItems( + final java.util.List addedItems) { + this.addedItems = addedItems; + return this; + } + + /** + *

    Elements added to the array.

    + * @param addedItems value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder plusAddedItems( + final com.commercetools.history.models.common.PriceTier... addedItems) { + if (this.addedItems == null) { + this.addedItems = new ArrayList<>(); + } + this.addedItems.addAll(Arrays.asList(addedItems)); + return this; + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder plusAddedItems( + Function builder) { + if (this.addedItems == null) { + this.addedItems = new ArrayList<>(); + } + this.addedItems.add(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of()).build()); + return this; + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder withAddedItems( + Function builder) { + this.addedItems = new ArrayList<>(); + this.addedItems.add(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of()).build()); + return this; + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder addAddedItems( + Function builder) { + return plusAddedItems(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of())); + } + + /** + *

    Elements added to the array.

    + * @param builder function to build the addedItems value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder setAddedItems( + Function builder) { + return addedItems(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of())); + } + + /** + *

    Elements removed from the array.

    + * @param removedItems value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder removedItems( + final com.commercetools.history.models.common.PriceTier... removedItems) { + this.removedItems = new ArrayList<>(Arrays.asList(removedItems)); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param removedItems value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder removedItems( + final java.util.List removedItems) { + this.removedItems = removedItems; + return this; + } + + /** + *

    Elements removed from the array.

    + * @param removedItems value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder plusRemovedItems( + final com.commercetools.history.models.common.PriceTier... removedItems) { + if (this.removedItems == null) { + this.removedItems = new ArrayList<>(); + } + this.removedItems.addAll(Arrays.asList(removedItems)); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder plusRemovedItems( + Function builder) { + if (this.removedItems == null) { + this.removedItems = new ArrayList<>(); + } + this.removedItems.add(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of()).build()); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder withRemovedItems( + Function builder) { + this.removedItems = new ArrayList<>(); + this.removedItems.add(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of()).build()); + return this; + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder addRemovedItems( + Function builder) { + return plusRemovedItems(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of())); + } + + /** + *

    Elements removed from the array.

    + * @param builder function to build the removedItems value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder setRemovedItems( + Function builder) { + return removedItems(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of())); + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder previousValue( + final com.commercetools.history.models.common.PriceTier... previousValue) { + this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder previousValue( + final java.util.List previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder plusPreviousValue( + final com.commercetools.history.models.common.PriceTier... previousValue) { + if (this.previousValue == null) { + this.previousValue = new ArrayList<>(); + } + this.previousValue.addAll(Arrays.asList(previousValue)); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder plusPreviousValue( + Function builder) { + if (this.previousValue == null) { + this.previousValue = new ArrayList<>(); + } + this.previousValue.add(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of()).build()); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = new ArrayList<>(); + this.previousValue.add(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of()).build()); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder addPreviousValue( + Function builder) { + return plusPreviousValue(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of())); + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder setPreviousValue( + Function builder) { + return previousValue(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of())); + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder nextValue( + final com.commercetools.history.models.common.PriceTier... nextValue) { + this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder nextValue( + final java.util.List nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder plusNextValue( + final com.commercetools.history.models.common.PriceTier... nextValue) { + if (this.nextValue == null) { + this.nextValue = new ArrayList<>(); + } + this.nextValue.addAll(Arrays.asList(nextValue)); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder plusNextValue( + Function builder) { + if (this.nextValue == null) { + this.nextValue = new ArrayList<>(); + } + this.nextValue.add(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of()).build()); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder withNextValue( + Function builder) { + this.nextValue = new ArrayList<>(); + this.nextValue.add(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of()).build()); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder addNextValue( + Function builder) { + return plusNextValue(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of())); + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetPriceTiersChangeBuilder setNextValue( + Function builder) { + return nextValue(builder.apply(com.commercetools.history.models.common.PriceTierBuilder.of())); + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Elements added to the array.

    + * @return addedItems + */ + + public java.util.List getAddedItems() { + return this.addedItems; + } + + /** + *

    Elements removed from the array.

    + * @return removedItems + */ + + public java.util.List getRemovedItems() { + return this.removedItems; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public java.util.List getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public java.util.List getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceSetPriceTiersChange with checking for non-null required values + * @return StandalonePriceSetPriceTiersChange + */ + public StandalonePriceSetPriceTiersChange build() { + Objects.requireNonNull(change, StandalonePriceSetPriceTiersChange.class + ": change is missing"); + Objects.requireNonNull(addedItems, StandalonePriceSetPriceTiersChange.class + ": addedItems is missing"); + Objects.requireNonNull(removedItems, StandalonePriceSetPriceTiersChange.class + ": removedItems is missing"); + Objects.requireNonNull(previousValue, StandalonePriceSetPriceTiersChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceSetPriceTiersChange.class + ": nextValue is missing"); + return new StandalonePriceSetPriceTiersChangeImpl(change, addedItems, removedItems, previousValue, nextValue); + } + + /** + * builds StandalonePriceSetPriceTiersChange without checking for non-null required values + * @return StandalonePriceSetPriceTiersChange + */ + public StandalonePriceSetPriceTiersChange buildUnchecked() { + return new StandalonePriceSetPriceTiersChangeImpl(change, addedItems, removedItems, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceSetPriceTiersChangeBuilder + * @return builder + */ + public static StandalonePriceSetPriceTiersChangeBuilder of() { + return new StandalonePriceSetPriceTiersChangeBuilder(); + } + + /** + * create builder for StandalonePriceSetPriceTiersChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetPriceTiersChangeBuilder of(final StandalonePriceSetPriceTiersChange template) { + StandalonePriceSetPriceTiersChangeBuilder builder = new StandalonePriceSetPriceTiersChangeBuilder(); + builder.change = template.getChange(); + builder.addedItems = template.getAddedItems(); + builder.removedItems = template.getRemovedItems(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChangeImpl.java new file mode 100644 index 00000000000..be2229b99fa --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChangeImpl.java @@ -0,0 +1,197 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Add Price Tier, Remove Price Tier, or Set Price Tiers update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetPriceTiersChangeImpl implements StandalonePriceSetPriceTiersChange, ModelBase { + + private String type; + + private String change; + + private java.util.List addedItems; + + private java.util.List removedItems; + + private java.util.List previousValue; + + private java.util.List nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceSetPriceTiersChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("addedItems") final java.util.List addedItems, + @JsonProperty("removedItems") final java.util.List removedItems, + @JsonProperty("previousValue") final java.util.List previousValue, + @JsonProperty("nextValue") final java.util.List nextValue) { + this.change = change; + this.addedItems = addedItems; + this.removedItems = removedItems; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_SET_PRICE_TIERS_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceSetPriceTiersChangeImpl() { + this.type = STANDALONE_PRICE_SET_PRICE_TIERS_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Elements added to the array.

    + */ + + public java.util.List getAddedItems() { + return this.addedItems; + } + + /** + *

    Elements removed from the array.

    + */ + + public java.util.List getRemovedItems() { + return this.removedItems; + } + + /** + *

    Value before the change.

    + */ + + public java.util.List getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public java.util.List getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setAddedItems(final com.commercetools.history.models.common.PriceTier... addedItems) { + this.addedItems = new ArrayList<>(Arrays.asList(addedItems)); + } + + public void setAddedItems(final java.util.List addedItems) { + this.addedItems = addedItems; + } + + public void setRemovedItems(final com.commercetools.history.models.common.PriceTier... removedItems) { + this.removedItems = new ArrayList<>(Arrays.asList(removedItems)); + } + + public void setRemovedItems(final java.util.List removedItems) { + this.removedItems = removedItems; + } + + public void setPreviousValue(final com.commercetools.history.models.common.PriceTier... previousValue) { + this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); + } + + public void setPreviousValue( + final java.util.List previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.PriceTier... nextValue) { + this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); + } + + public void setNextValue(final java.util.List nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceSetPriceTiersChangeImpl that = (StandalonePriceSetPriceTiersChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(addedItems, that.addedItems) + .append(removedItems, that.removedItems) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(addedItems, that.addedItems) + .append(removedItems, that.removedItems) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(addedItems) + .append(removedItems) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("addedItems", addedItems) + .append("removedItems", removedItems) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceSetPriceTiersChange copyDeep() { + return StandalonePriceSetPriceTiersChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChange.java new file mode 100644 index 00000000000..94aa44c16e3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChange.java @@ -0,0 +1,184 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.history.models.change_value.ValidFromAndUntilValue; +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; + +/** + *

    Change triggered by the Set Valid From and Until update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetValidFromAndUntilChange standalonePriceSetValidFromAndUntilChange = StandalonePriceSetValidFromAndUntilChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceSetValidFromAndUntilChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceSetValidFromAndUntilChangeImpl.class) +public interface StandalonePriceSetValidFromAndUntilChange extends Change { + + /** + * discriminator value for StandalonePriceSetValidFromAndUntilChange + */ + String STANDALONE_PRICE_SET_VALID_FROM_AND_UNTIL_CHANGE = "StandalonePriceSetValidFromAndUntilChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public ValidFromAndUntilValue getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public ValidFromAndUntilValue getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final ValidFromAndUntilValue previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final ValidFromAndUntilValue nextValue); + + /** + * factory method + * @return instance of StandalonePriceSetValidFromAndUntilChange + */ + public static StandalonePriceSetValidFromAndUntilChange of() { + return new StandalonePriceSetValidFromAndUntilChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceSetValidFromAndUntilChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceSetValidFromAndUntilChange of( + final StandalonePriceSetValidFromAndUntilChange template) { + StandalonePriceSetValidFromAndUntilChangeImpl instance = new StandalonePriceSetValidFromAndUntilChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceSetValidFromAndUntilChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceSetValidFromAndUntilChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceSetValidFromAndUntilChange deepCopy( + @Nullable final StandalonePriceSetValidFromAndUntilChange template) { + if (template == null) { + return null; + } + StandalonePriceSetValidFromAndUntilChangeImpl instance = new StandalonePriceSetValidFromAndUntilChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.change_value.ValidFromAndUntilValue.deepCopy(template.getPreviousValue())); + instance.setNextValue( + com.commercetools.history.models.change_value.ValidFromAndUntilValue.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for StandalonePriceSetValidFromAndUntilChange + * @return builder + */ + public static StandalonePriceSetValidFromAndUntilChangeBuilder builder() { + return StandalonePriceSetValidFromAndUntilChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceSetValidFromAndUntilChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetValidFromAndUntilChangeBuilder builder( + final StandalonePriceSetValidFromAndUntilChange template) { + return StandalonePriceSetValidFromAndUntilChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceSetValidFromAndUntilChange( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChangeBuilder.java new file mode 100644 index 00000000000..c685fe3438d --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChangeBuilder.java @@ -0,0 +1,191 @@ + +package com.commercetools.history.models.change; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceSetValidFromAndUntilChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetValidFromAndUntilChange standalonePriceSetValidFromAndUntilChange = StandalonePriceSetValidFromAndUntilChange.builder()
    + *             .change("{change}")
    + *             .previousValue(previousValueBuilder -> previousValueBuilder)
    + *             .nextValue(nextValueBuilder -> nextValueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetValidFromAndUntilChangeBuilder + implements Builder { + + private String change; + + private com.commercetools.history.models.change_value.ValidFromAndUntilValue previousValue; + + private com.commercetools.history.models.change_value.ValidFromAndUntilValue nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceSetValidFromAndUntilChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetValidFromAndUntilChangeBuilder previousValue( + Function builder) { + this.previousValue = builder + .apply(com.commercetools.history.models.change_value.ValidFromAndUntilValueBuilder.of()) + .build(); + return this; + } + + /** + *

    Value before the change.

    + * @param builder function to build the previousValue value + * @return Builder + */ + + public StandalonePriceSetValidFromAndUntilChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder + .apply(com.commercetools.history.models.change_value.ValidFromAndUntilValueBuilder.of()); + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetValidFromAndUntilChangeBuilder previousValue( + final com.commercetools.history.models.change_value.ValidFromAndUntilValue previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetValidFromAndUntilChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.change_value.ValidFromAndUntilValueBuilder.of()) + .build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public StandalonePriceSetValidFromAndUntilChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder + .apply(com.commercetools.history.models.change_value.ValidFromAndUntilValueBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetValidFromAndUntilChangeBuilder nextValue( + final com.commercetools.history.models.change_value.ValidFromAndUntilValue nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public com.commercetools.history.models.change_value.ValidFromAndUntilValue getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.change_value.ValidFromAndUntilValue getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceSetValidFromAndUntilChange with checking for non-null required values + * @return StandalonePriceSetValidFromAndUntilChange + */ + public StandalonePriceSetValidFromAndUntilChange build() { + Objects.requireNonNull(change, StandalonePriceSetValidFromAndUntilChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, + StandalonePriceSetValidFromAndUntilChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceSetValidFromAndUntilChange.class + ": nextValue is missing"); + return new StandalonePriceSetValidFromAndUntilChangeImpl(change, previousValue, nextValue); + } + + /** + * builds StandalonePriceSetValidFromAndUntilChange without checking for non-null required values + * @return StandalonePriceSetValidFromAndUntilChange + */ + public StandalonePriceSetValidFromAndUntilChange buildUnchecked() { + return new StandalonePriceSetValidFromAndUntilChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceSetValidFromAndUntilChangeBuilder + * @return builder + */ + public static StandalonePriceSetValidFromAndUntilChangeBuilder of() { + return new StandalonePriceSetValidFromAndUntilChangeBuilder(); + } + + /** + * create builder for StandalonePriceSetValidFromAndUntilChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetValidFromAndUntilChangeBuilder of( + final StandalonePriceSetValidFromAndUntilChange template) { + StandalonePriceSetValidFromAndUntilChangeBuilder builder = new StandalonePriceSetValidFromAndUntilChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChangeImpl.java new file mode 100644 index 00000000000..c70c2c01ea1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChangeImpl.java @@ -0,0 +1,142 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Valid From and Until update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetValidFromAndUntilChangeImpl + implements StandalonePriceSetValidFromAndUntilChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.change_value.ValidFromAndUntilValue previousValue; + + private com.commercetools.history.models.change_value.ValidFromAndUntilValue nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceSetValidFromAndUntilChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.change_value.ValidFromAndUntilValue previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.change_value.ValidFromAndUntilValue nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_SET_VALID_FROM_AND_UNTIL_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceSetValidFromAndUntilChangeImpl() { + this.type = STANDALONE_PRICE_SET_VALID_FROM_AND_UNTIL_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public com.commercetools.history.models.change_value.ValidFromAndUntilValue getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.change_value.ValidFromAndUntilValue getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue( + final com.commercetools.history.models.change_value.ValidFromAndUntilValue previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.change_value.ValidFromAndUntilValue nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceSetValidFromAndUntilChangeImpl that = (StandalonePriceSetValidFromAndUntilChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceSetValidFromAndUntilChange copyDeep() { + return StandalonePriceSetValidFromAndUntilChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChange.java new file mode 100644 index 00000000000..72bc7415b51 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChange.java @@ -0,0 +1,175 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Set Valid From update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetValidFromChange standalonePriceSetValidFromChange = StandalonePriceSetValidFromChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceSetValidFromChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceSetValidFromChangeImpl.class) +public interface StandalonePriceSetValidFromChange extends Change { + + /** + * discriminator value for StandalonePriceSetValidFromChange + */ + String STANDALONE_PRICE_SET_VALID_FROM_CHANGE = "StandalonePriceSetValidFromChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public String getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public String getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final String previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final String nextValue); + + /** + * factory method + * @return instance of StandalonePriceSetValidFromChange + */ + public static StandalonePriceSetValidFromChange of() { + return new StandalonePriceSetValidFromChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceSetValidFromChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceSetValidFromChange of(final StandalonePriceSetValidFromChange template) { + StandalonePriceSetValidFromChangeImpl instance = new StandalonePriceSetValidFromChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceSetValidFromChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceSetValidFromChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceSetValidFromChange deepCopy( + @Nullable final StandalonePriceSetValidFromChange template) { + if (template == null) { + return null; + } + StandalonePriceSetValidFromChangeImpl instance = new StandalonePriceSetValidFromChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for StandalonePriceSetValidFromChange + * @return builder + */ + public static StandalonePriceSetValidFromChangeBuilder builder() { + return StandalonePriceSetValidFromChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceSetValidFromChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetValidFromChangeBuilder builder(final StandalonePriceSetValidFromChange template) { + return StandalonePriceSetValidFromChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceSetValidFromChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChangeBuilder.java new file mode 100644 index 00000000000..7e5d86c0935 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChangeBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceSetValidFromChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetValidFromChange standalonePriceSetValidFromChange = StandalonePriceSetValidFromChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetValidFromChangeBuilder implements Builder { + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceSetValidFromChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetValidFromChangeBuilder previousValue(final String previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetValidFromChangeBuilder nextValue(final String nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public String getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceSetValidFromChange with checking for non-null required values + * @return StandalonePriceSetValidFromChange + */ + public StandalonePriceSetValidFromChange build() { + Objects.requireNonNull(change, StandalonePriceSetValidFromChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, StandalonePriceSetValidFromChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceSetValidFromChange.class + ": nextValue is missing"); + return new StandalonePriceSetValidFromChangeImpl(change, previousValue, nextValue); + } + + /** + * builds StandalonePriceSetValidFromChange without checking for non-null required values + * @return StandalonePriceSetValidFromChange + */ + public StandalonePriceSetValidFromChange buildUnchecked() { + return new StandalonePriceSetValidFromChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceSetValidFromChangeBuilder + * @return builder + */ + public static StandalonePriceSetValidFromChangeBuilder of() { + return new StandalonePriceSetValidFromChangeBuilder(); + } + + /** + * create builder for StandalonePriceSetValidFromChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetValidFromChangeBuilder of(final StandalonePriceSetValidFromChange template) { + StandalonePriceSetValidFromChangeBuilder builder = new StandalonePriceSetValidFromChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChangeImpl.java new file mode 100644 index 00000000000..622ed460788 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Valid From update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetValidFromChangeImpl implements StandalonePriceSetValidFromChange, ModelBase { + + private String type; + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceSetValidFromChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final String previousValue, + @JsonProperty("nextValue") final String nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_SET_VALID_FROM_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceSetValidFromChangeImpl() { + this.type = STANDALONE_PRICE_SET_VALID_FROM_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public String getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final String previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final String nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceSetValidFromChangeImpl that = (StandalonePriceSetValidFromChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceSetValidFromChange copyDeep() { + return StandalonePriceSetValidFromChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChange.java new file mode 100644 index 00000000000..30feed62a08 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChange.java @@ -0,0 +1,175 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *

    Change triggered by the Set Valid Until update action.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetValidUntilChange standalonePriceSetValidUntilChange = StandalonePriceSetValidUntilChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceSetValidUntilChange") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceSetValidUntilChangeImpl.class) +public interface StandalonePriceSetValidUntilChange extends Change { + + /** + * discriminator value for StandalonePriceSetValidUntilChange + */ + String STANDALONE_PRICE_SET_VALID_UNTIL_CHANGE = "StandalonePriceSetValidUntilChange"; + + /** + * + * @return change + */ + @NotNull + @JsonProperty("change") + public String getChange(); + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    Value before the change.

    + * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public String getPreviousValue(); + + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public String getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *

    Value before the change.

    + * @param previousValue value to be set + */ + + public void setPreviousValue(final String previousValue); + + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final String nextValue); + + /** + * factory method + * @return instance of StandalonePriceSetValidUntilChange + */ + public static StandalonePriceSetValidUntilChange of() { + return new StandalonePriceSetValidUntilChangeImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceSetValidUntilChange + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceSetValidUntilChange of(final StandalonePriceSetValidUntilChange template) { + StandalonePriceSetValidUntilChangeImpl instance = new StandalonePriceSetValidUntilChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + public StandalonePriceSetValidUntilChange copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceSetValidUntilChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceSetValidUntilChange deepCopy( + @Nullable final StandalonePriceSetValidUntilChange template) { + if (template == null) { + return null; + } + StandalonePriceSetValidUntilChangeImpl instance = new StandalonePriceSetValidUntilChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for StandalonePriceSetValidUntilChange + * @return builder + */ + public static StandalonePriceSetValidUntilChangeBuilder builder() { + return StandalonePriceSetValidUntilChangeBuilder.of(); + } + + /** + * create builder for StandalonePriceSetValidUntilChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetValidUntilChangeBuilder builder(final StandalonePriceSetValidUntilChange template) { + return StandalonePriceSetValidUntilChangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceSetValidUntilChange(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChangeBuilder.java new file mode 100644 index 00000000000..17559f5c836 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChangeBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.history.models.change; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceSetValidUntilChangeBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceSetValidUntilChange standalonePriceSetValidUntilChange = StandalonePriceSetValidUntilChange.builder()
    + *             .change("{change}")
    + *             .previousValue("{previousValue}")
    + *             .nextValue("{nextValue}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetValidUntilChangeBuilder implements Builder { + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * set the value to the change + * @param change value to be set + * @return Builder + */ + + public StandalonePriceSetValidUntilChangeBuilder change(final String change) { + this.change = change; + return this; + } + + /** + *

    Value before the change.

    + * @param previousValue value to be set + * @return Builder + */ + + public StandalonePriceSetValidUntilChangeBuilder previousValue(final String previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public StandalonePriceSetValidUntilChangeBuilder nextValue(final String nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + * @return previousValue + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + * @return nextValue + */ + + public String getNextValue() { + return this.nextValue; + } + + /** + * builds StandalonePriceSetValidUntilChange with checking for non-null required values + * @return StandalonePriceSetValidUntilChange + */ + public StandalonePriceSetValidUntilChange build() { + Objects.requireNonNull(change, StandalonePriceSetValidUntilChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, StandalonePriceSetValidUntilChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, StandalonePriceSetValidUntilChange.class + ": nextValue is missing"); + return new StandalonePriceSetValidUntilChangeImpl(change, previousValue, nextValue); + } + + /** + * builds StandalonePriceSetValidUntilChange without checking for non-null required values + * @return StandalonePriceSetValidUntilChange + */ + public StandalonePriceSetValidUntilChange buildUnchecked() { + return new StandalonePriceSetValidUntilChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of StandalonePriceSetValidUntilChangeBuilder + * @return builder + */ + public static StandalonePriceSetValidUntilChangeBuilder of() { + return new StandalonePriceSetValidUntilChangeBuilder(); + } + + /** + * create builder for StandalonePriceSetValidUntilChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceSetValidUntilChangeBuilder of(final StandalonePriceSetValidUntilChange template) { + StandalonePriceSetValidUntilChangeBuilder builder = new StandalonePriceSetValidUntilChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChangeImpl.java new file mode 100644 index 00000000000..47d8b670327 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChangeImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Change triggered by the Set Valid Until update action.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceSetValidUntilChangeImpl implements StandalonePriceSetValidUntilChange, ModelBase { + + private String type; + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceSetValidUntilChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final String previousValue, + @JsonProperty("nextValue") final String nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = STANDALONE_PRICE_SET_VALID_UNTIL_CHANGE; + } + + /** + * create empty instance + */ + public StandalonePriceSetValidUntilChangeImpl() { + this.type = STANDALONE_PRICE_SET_VALID_UNTIL_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *

    Value before the change.

    + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *

    Value after the change.

    + */ + + public String getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final String previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final String nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceSetValidUntilChangeImpl that = (StandalonePriceSetValidUntilChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("change", change) + .append("previousValue", previousValue) + .append("nextValue", nextValue) + .build(); + } + + @Override + public StandalonePriceSetValidUntilChange copyDeep() { + return StandalonePriceSetValidUntilChange.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/UnpublishChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/UnpublishChange.java index 4d307b39cd9..72585c9268e 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/UnpublishChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/UnpublishChange.java @@ -15,7 +15,8 @@ import jakarta.validation.constraints.NotNull; /** - *

    Change triggered by the Unpublish update action.

    + *

    Change triggered when ProductCatalogData published transitions from true to false.

    + *

    For better traceability of the Unpublish update action, use the ProductUnpublished Message.

    * *
    * Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/UnpublishChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/UnpublishChangeImpl.java index 4cd8a898189..063749c636d 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/UnpublishChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/UnpublishChangeImpl.java @@ -17,7 +17,8 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

    Change triggered by the Unpublish update action.

    + *

    Change triggered when ProductCatalogData published transitions from true to false.

    + *

    For better traceability of the Unpublish update action, use the ProductUnpublished Message.

    */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class UnpublishChangeImpl implements UnpublishChange, ModelBase { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java index 321b541dd55..b4059290479 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java @@ -74,12 +74,18 @@ public interface ChangeHistoryResourceType extends JsonEnum {

    for Review

    */ ChangeHistoryResourceType REVIEW = ChangeHistoryResourceTypeEnum.REVIEW; /** +

    for ShippingMethod

    */ + ChangeHistoryResourceType SHIPPING_METHOD = ChangeHistoryResourceTypeEnum.SHIPPING_METHOD; + /**

    for ShoppingList

    */ ChangeHistoryResourceType SHOPPING_LIST = ChangeHistoryResourceTypeEnum.SHOPPING_LIST; /**

    for StagedQuote

    */ ChangeHistoryResourceType STAGED_QUOTE = ChangeHistoryResourceTypeEnum.STAGED_QUOTE; /** +

    for StandalonePrice

    */ + ChangeHistoryResourceType STANDALONE_PRICE = ChangeHistoryResourceTypeEnum.STANDALONE_PRICE; + /**

    for State

    */ ChangeHistoryResourceType STATE = ChangeHistoryResourceTypeEnum.STATE; /** @@ -194,6 +200,11 @@ enum ChangeHistoryResourceTypeEnum implements ChangeHistoryResourceType { */ REVIEW("review"), + /** + * shipping-method + */ + SHIPPING_METHOD("shipping-method"), + /** * shopping-list */ @@ -204,6 +215,11 @@ enum ChangeHistoryResourceTypeEnum implements ChangeHistoryResourceType { */ STAGED_QUOTE("staged-quote"), + /** + * standalone-price + */ + STANDALONE_PRICE("standalone-price"), + /** * state */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/UpdateType.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/UpdateType.java index df967b705fe..483904cb500 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/UpdateType.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/UpdateType.java @@ -66,8 +66,12 @@ public interface UpdateType extends JsonEnum { UpdateType ADD_ROLES = UpdateTypeEnum.ADD_ROLES; + UpdateType ADD_SHIPPING = UpdateTypeEnum.ADD_SHIPPING; + UpdateType ADD_SHIPPING_ADDRESS_ID = UpdateTypeEnum.ADD_SHIPPING_ADDRESS_ID; + UpdateType ADD_SHIPPING_RATE = UpdateTypeEnum.ADD_SHIPPING_RATE; + UpdateType ADD_TAX_RATE = UpdateTypeEnum.ADD_TAX_RATE; UpdateType ADD_TEXT_LINE_ITEM = UpdateTypeEnum.ADD_TEXT_LINE_ITEM; @@ -78,10 +82,16 @@ public interface UpdateType extends JsonEnum { UpdateType ADD_VARIANT = UpdateTypeEnum.ADD_VARIANT; + UpdateType ADD_ZONE = UpdateTypeEnum.ADD_ZONE; + + UpdateType CHANGE_ACTIVE = UpdateTypeEnum.CHANGE_ACTIVE; + UpdateType CHANGE_ADDRESS = UpdateTypeEnum.CHANGE_ADDRESS; UpdateType CHANGE_AMOUNT_PLANNED = UpdateTypeEnum.CHANGE_AMOUNT_PLANNED; + UpdateType CHANGE_APPROVAL_RULE_MODE = UpdateTypeEnum.CHANGE_APPROVAL_RULE_MODE; + UpdateType CHANGE_ASSET_NAME = UpdateTypeEnum.CHANGE_ASSET_NAME; UpdateType CHANGE_ASSET_ORDER = UpdateTypeEnum.CHANGE_ASSET_ORDER; @@ -100,10 +110,16 @@ public interface UpdateType extends JsonEnum { UpdateType CHANGE_CART_PREDICATE = UpdateTypeEnum.CHANGE_CART_PREDICATE; + UpdateType CHANGE_CUSTOM_LINE_ITEM_PRICE_ROUNDING_MODE = UpdateTypeEnum.CHANGE_CUSTOM_LINE_ITEM_PRICE_ROUNDING_MODE; + UpdateType CHANGE_CUSTOM_LINE_ITEM_QUANTITY = UpdateTypeEnum.CHANGE_CUSTOM_LINE_ITEM_QUANTITY; + UpdateType CHANGE_CUSTOMER = UpdateTypeEnum.CHANGE_CUSTOMER; + UpdateType CHANGE_DESCRIPTION = UpdateTypeEnum.CHANGE_DESCRIPTION; + UpdateType CHANGE_DISCOUNT_TYPE_COMBINATION = UpdateTypeEnum.CHANGE_DISCOUNT_TYPE_COMBINATION; + UpdateType CHANGE_EMAIL = UpdateTypeEnum.CHANGE_EMAIL; UpdateType CHANGE_ENUM_KEY = UpdateTypeEnum.CHANGE_ENUM_KEY; @@ -116,20 +132,30 @@ public interface UpdateType extends JsonEnum { UpdateType CHANGE_GROUPS = UpdateTypeEnum.CHANGE_GROUPS; + UpdateType CHANGE_INCLUDED_IN_STATISTICS = UpdateTypeEnum.CHANGE_INCLUDED_IN_STATISTICS; + UpdateType CHANGE_INITIAL = UpdateTypeEnum.CHANGE_INITIAL; UpdateType CHANGE_INPUT_HINT = UpdateTypeEnum.CHANGE_INPUT_HINT; UpdateType CHANGE_IS_ACTIVE = UpdateTypeEnum.CHANGE_IS_ACTIVE; + UpdateType CHANGE_IS_DEFAULT = UpdateTypeEnum.CHANGE_IS_DEFAULT; + UpdateType CHANGE_IS_SEARCHABLE = UpdateTypeEnum.CHANGE_IS_SEARCHABLE; UpdateType CHANGE_KEY = UpdateTypeEnum.CHANGE_KEY; UpdateType CHANGE_LABEL = UpdateTypeEnum.CHANGE_LABEL; + UpdateType CHANGE_LAST_VARIANT_ID = UpdateTypeEnum.CHANGE_LAST_VARIANT_ID; + UpdateType CHANGE_LINE_ITEM_NAME = UpdateTypeEnum.CHANGE_LINE_ITEM_NAME; + UpdateType CHANGE_LINE_ITEM_PRICE_ROUNDING_MODE = UpdateTypeEnum.CHANGE_LINE_ITEM_PRICE_ROUNDING_MODE; + + UpdateType CHANGE_LINE_ITEM_PUBLISHED = UpdateTypeEnum.CHANGE_LINE_ITEM_PUBLISHED; + UpdateType CHANGE_LINE_ITEM_QUANTITY = UpdateTypeEnum.CHANGE_LINE_ITEM_QUANTITY; UpdateType CHANGE_LINE_ITEMS_ORDER = UpdateTypeEnum.CHANGE_LINE_ITEMS_ORDER; @@ -158,6 +184,8 @@ public interface UpdateType extends JsonEnum { UpdateType CHANGE_PRICE = UpdateTypeEnum.CHANGE_PRICE; + UpdateType CHANGE_PRICE_ROUNDING_MODE = UpdateTypeEnum.CHANGE_PRICE_ROUNDING_MODE; + UpdateType CHANGE_PRODUCT_SELECTION_ACTIVE = UpdateTypeEnum.CHANGE_PRODUCT_SELECTION_ACTIVE; UpdateType CHANGE_QUANTITY = UpdateTypeEnum.CHANGE_QUANTITY; @@ -186,6 +214,8 @@ public interface UpdateType extends JsonEnum { UpdateType CHANGE_TAX_CALCULATION_MODE = UpdateTypeEnum.CHANGE_TAX_CALCULATION_MODE; + UpdateType CHANGE_TAX_CATEGORY = UpdateTypeEnum.CHANGE_TAX_CATEGORY; + UpdateType CHANGE_TAX_MODE = UpdateTypeEnum.CHANGE_TAX_MODE; UpdateType CHANGE_TAX_ROUNDING_MODE = UpdateTypeEnum.CHANGE_TAX_ROUNDING_MODE; @@ -196,6 +226,8 @@ public interface UpdateType extends JsonEnum { UpdateType CHANGE_TEXT_LINE_ITEMS_ORDER = UpdateTypeEnum.CHANGE_TEXT_LINE_ITEMS_ORDER; + UpdateType CHANGE_TOP_LEVEL_UNIT = UpdateTypeEnum.CHANGE_TOP_LEVEL_UNIT; + UpdateType CHANGE_TRANSACTION_INTERACTION_ID = UpdateTypeEnum.CHANGE_TRANSACTION_INTERACTION_ID; UpdateType CHANGE_TRANSACTION_STATE = UpdateTypeEnum.CHANGE_TRANSACTION_STATE; @@ -206,6 +238,8 @@ public interface UpdateType extends JsonEnum { UpdateType CHANGE_VALUE = UpdateTypeEnum.CHANGE_VALUE; + UpdateType EXCLUDE_PRODUCT = UpdateTypeEnum.EXCLUDE_PRODUCT; + UpdateType MOVE_IMAGE_TO_POSITION = UpdateTypeEnum.MOVE_IMAGE_TO_POSITION; UpdateType PUBLISH = UpdateTypeEnum.PUBLISH; @@ -254,22 +288,36 @@ public interface UpdateType extends JsonEnum { UpdateType REMOVE_ROLES = UpdateTypeEnum.REMOVE_ROLES; + UpdateType REMOVE_SHIPPING = UpdateTypeEnum.REMOVE_SHIPPING; + UpdateType REMOVE_SHIPPING_ADDRESS_ID = UpdateTypeEnum.REMOVE_SHIPPING_ADDRESS_ID; + UpdateType REMOVE_SHIPPING_RATE = UpdateTypeEnum.REMOVE_SHIPPING_RATE; + UpdateType REMOVE_TAX_RATE = UpdateTypeEnum.REMOVE_TAX_RATE; UpdateType REMOVE_TEXT_LINE_ITEM = UpdateTypeEnum.REMOVE_TEXT_LINE_ITEM; UpdateType REMOVE_VARIANT = UpdateTypeEnum.REMOVE_VARIANT; + UpdateType REMOVE_ZONE = UpdateTypeEnum.REMOVE_ZONE; + + UpdateType REPLACE_TAX_RATE = UpdateTypeEnum.REPLACE_TAX_RATE; + UpdateType REQUEST_QUOTE_RENEGOTIATION = UpdateTypeEnum.REQUEST_QUOTE_RENEGOTIATION; + UpdateType REVERT_STAGED_CHANGES = UpdateTypeEnum.REVERT_STAGED_CHANGES; + + UpdateType REVERT_STAGED_VARIANT_CHANGES = UpdateTypeEnum.REVERT_STAGED_VARIANT_CHANGES; + UpdateType SET_ADDRESS = UpdateTypeEnum.SET_ADDRESS; UpdateType SET_ADDRESS_CUSTOM_FIELD = UpdateTypeEnum.SET_ADDRESS_CUSTOM_FIELD; UpdateType SET_ADDRESS_CUSTOM_TYPE = UpdateTypeEnum.SET_ADDRESS_CUSTOM_TYPE; + UpdateType SET_ANCESTORS = UpdateTypeEnum.SET_ANCESTORS; + UpdateType SET_ANONYMOUS_ID = UpdateTypeEnum.SET_ANONYMOUS_ID; UpdateType SET_APPLICATION_VERSION = UpdateTypeEnum.SET_APPLICATION_VERSION; @@ -280,11 +328,13 @@ public interface UpdateType extends JsonEnum { UpdateType SET_ASSET_DESCRIPTION = UpdateTypeEnum.SET_ASSET_DESCRIPTION; + UpdateType SET_ASSET_KEY = UpdateTypeEnum.SET_ASSET_KEY; + UpdateType SET_ASSET_SOURCES = UpdateTypeEnum.SET_ASSET_SOURCES; UpdateType SET_ASSET_TAGS = UpdateTypeEnum.SET_ASSET_TAGS; - UpdateType SET_ASSET_KEY = UpdateTypeEnum.SET_ASSET_KEY; + UpdateType SET_ASSOCIATES = UpdateTypeEnum.SET_ASSOCIATES; UpdateType SET_ATTRIBUTE = UpdateTypeEnum.SET_ATTRIBUTE; @@ -294,6 +344,12 @@ public interface UpdateType extends JsonEnum { UpdateType SET_BILLING_ADDRESS = UpdateTypeEnum.SET_BILLING_ADDRESS; + UpdateType SET_BILLING_ADDRESS_CUSTOM_FIELD = UpdateTypeEnum.SET_BILLING_ADDRESS_CUSTOM_FIELD; + + UpdateType SET_BILLING_ADDRESS_CUSTOM_TYPE = UpdateTypeEnum.SET_BILLING_ADDRESS_CUSTOM_TYPE; + + UpdateType SET_BUSINESS_UNIT = UpdateTypeEnum.SET_BUSINESS_UNIT; + UpdateType SET_CART_PREDICATE = UpdateTypeEnum.SET_CART_PREDICATE; UpdateType SET_CATEGORY_ORDER_HINT = UpdateTypeEnum.SET_CATEGORY_ORDER_HINT; @@ -312,6 +368,10 @@ public interface UpdateType extends JsonEnum { UpdateType SET_CUSTOM_LINE_ITEM_CUSTOM_TYPE = UpdateTypeEnum.SET_CUSTOM_LINE_ITEM_CUSTOM_TYPE; + UpdateType SET_CUSTOM_LINE_ITEM_DISCOUNTED_PRICE = UpdateTypeEnum.SET_CUSTOM_LINE_ITEM_DISCOUNTED_PRICE; + + UpdateType SET_CUSTOM_LINE_ITEM_DISCOUNTED_PRICE_PER_QUANTITY = UpdateTypeEnum.SET_CUSTOM_LINE_ITEM_DISCOUNTED_PRICE_PER_QUANTITY; + UpdateType SET_CUSTOM_LINE_ITEM_MONEY = UpdateTypeEnum.SET_CUSTOM_LINE_ITEM_MONEY; UpdateType SET_CUSTOM_LINE_ITEM_SHIPPING_DETAILS = UpdateTypeEnum.SET_CUSTOM_LINE_ITEM_SHIPPING_DETAILS; @@ -336,6 +396,8 @@ public interface UpdateType extends JsonEnum { UpdateType SET_CUSTOMER_GROUP = UpdateTypeEnum.SET_CUSTOMER_GROUP; + UpdateType SET_CUSTOMER_GROUP_ASSIGNMENTS = UpdateTypeEnum.SET_CUSTOMER_GROUP_ASSIGNMENTS; + UpdateType SET_CUSTOMER_ID = UpdateTypeEnum.SET_CUSTOMER_ID; UpdateType SET_CUSTOMER_NUMBER = UpdateTypeEnum.SET_CUSTOMER_NUMBER; @@ -350,10 +412,22 @@ public interface UpdateType extends JsonEnum { UpdateType SET_DELIVERY_ADDRESS = UpdateTypeEnum.SET_DELIVERY_ADDRESS; + UpdateType SET_DELIVERY_ADDRESS_CUSTOM_FIELD = UpdateTypeEnum.SET_DELIVERY_ADDRESS_CUSTOM_FIELD; + + UpdateType SET_DELIVERY_ADDRESS_CUSTOM_TYPE = UpdateTypeEnum.SET_DELIVERY_ADDRESS_CUSTOM_TYPE; + + UpdateType SET_DELIVERY_CUSTOM_FIELD = UpdateTypeEnum.SET_DELIVERY_CUSTOM_FIELD; + + UpdateType SET_DELIVERY_CUSTOM_TYPE = UpdateTypeEnum.SET_DELIVERY_CUSTOM_TYPE; + UpdateType SET_DELIVERY_ITEMS = UpdateTypeEnum.SET_DELIVERY_ITEMS; UpdateType SET_DESCRIPTION = UpdateTypeEnum.SET_DESCRIPTION; + UpdateType SET_DIRECT_DISCOUNTS = UpdateTypeEnum.SET_DIRECT_DISCOUNTS; + + UpdateType SET_DISCOUNT_ON_TOTAL_PRICE = UpdateTypeEnum.SET_DISCOUNT_ON_TOTAL_PRICE; + UpdateType SET_DISCOUNTED_PRICE = UpdateTypeEnum.SET_DISCOUNTED_PRICE; UpdateType SET_DISTRIBUTION_CHANNELS = UpdateTypeEnum.SET_DISTRIBUTION_CHANNELS; @@ -368,12 +442,20 @@ public interface UpdateType extends JsonEnum { UpdateType SET_IMAGE_LABEL = UpdateTypeEnum.SET_IMAGE_LABEL; + UpdateType SET_INHERITED_ASSOCIATES = UpdateTypeEnum.SET_INHERITED_ASSOCIATES; + + UpdateType SET_INHERITED_STORES = UpdateTypeEnum.SET_INHERITED_STORES; + UpdateType SET_INPUT_TIP = UpdateTypeEnum.SET_INPUT_TIP; UpdateType SET_INTERFACE_ID = UpdateTypeEnum.SET_INTERFACE_ID; UpdateType SET_IS_VALID = UpdateTypeEnum.SET_IS_VALID; + UpdateType SET_ITEM_SHIPPING_ADDRESS_CUSTOM_FIELD = UpdateTypeEnum.SET_ITEM_SHIPPING_ADDRESS_CUSTOM_FIELD; + + UpdateType SET_ITEM_SHIPPING_ADDRESS_CUSTOM_TYPE = UpdateTypeEnum.SET_ITEM_SHIPPING_ADDRESS_CUSTOM_TYPE; + UpdateType SET_KEY = UpdateTypeEnum.SET_KEY; UpdateType SET_LANGUAGES = UpdateTypeEnum.SET_LANGUAGES; @@ -410,10 +492,16 @@ public interface UpdateType extends JsonEnum { UpdateType SET_LOCALE = UpdateTypeEnum.SET_LOCALE; + UpdateType SET_LOCALIZED_DESCRIPTION = UpdateTypeEnum.SET_LOCALIZED_DESCRIPTION; + + UpdateType SET_LOCALIZED_NAME = UpdateTypeEnum.SET_LOCALIZED_NAME; + UpdateType SET_MAX_APPLICATIONS = UpdateTypeEnum.SET_MAX_APPLICATIONS; UpdateType SET_MAX_APPLICATIONS_PER_CUSTOMER = UpdateTypeEnum.SET_MAX_APPLICATIONS_PER_CUSTOMER; + UpdateType SET_MAX_CART_QUANTITY = UpdateTypeEnum.SET_MAX_CART_QUANTITY; + UpdateType SET_META_DESCRIPTION = UpdateTypeEnum.SET_META_DESCRIPTION; UpdateType SET_META_KEYWORDS = UpdateTypeEnum.SET_META_KEYWORDS; @@ -428,6 +516,8 @@ public interface UpdateType extends JsonEnum { UpdateType SET_MIDDLE_NAME = UpdateTypeEnum.SET_MIDDLE_NAME; + UpdateType SET_MIN_CART_QUANTITY = UpdateTypeEnum.SET_MIN_CART_QUANTITY; + UpdateType SET_NAME = UpdateTypeEnum.SET_NAME; UpdateType SET_ORDER_NUMBER = UpdateTypeEnum.SET_ORDER_NUMBER; @@ -438,6 +528,10 @@ public interface UpdateType extends JsonEnum { UpdateType SET_ORDER_TOTAL_TAX = UpdateTypeEnum.SET_ORDER_TOTAL_TAX; + UpdateType SET_PARCEL_CUSTOM_FIELD = UpdateTypeEnum.SET_PARCEL_CUSTOM_FIELD; + + UpdateType SET_PARCEL_CUSTOM_TYPE = UpdateTypeEnum.SET_PARCEL_CUSTOM_TYPE; + UpdateType SET_PARCEL_ITEMS = UpdateTypeEnum.SET_PARCEL_ITEMS; UpdateType SET_PARCEL_MEASUREMENTS = UpdateTypeEnum.SET_PARCEL_MEASUREMENTS; @@ -446,8 +540,18 @@ public interface UpdateType extends JsonEnum { UpdateType SET_PASSWORD = UpdateTypeEnum.SET_PASSWORD; + UpdateType SET_PREDICATE = UpdateTypeEnum.SET_PREDICATE; + + UpdateType SET_PRICE_KEY = UpdateTypeEnum.SET_PRICE_KEY; + + UpdateType SET_PRICE_MODE = UpdateTypeEnum.SET_PRICE_MODE; + + UpdateType SET_PRICE_TIERS = UpdateTypeEnum.SET_PRICE_TIERS; + UpdateType SET_PRICES = UpdateTypeEnum.SET_PRICES; + UpdateType SET_PRODUCT_ATTRIBUTE = UpdateTypeEnum.SET_PRODUCT_ATTRIBUTE; + UpdateType SET_PRODUCT_COUNT = UpdateTypeEnum.SET_PRODUCT_COUNT; UpdateType SET_PRODUCT_PRICE_CUSTOM_FIELD = UpdateTypeEnum.SET_PRODUCT_PRICE_CUSTOM_FIELD; @@ -464,10 +568,18 @@ public interface UpdateType extends JsonEnum { UpdateType SET_RATING = UpdateTypeEnum.SET_RATING; + UpdateType SET_REFERENCES = UpdateTypeEnum.SET_REFERENCES; + UpdateType SET_RESERVATIONS = UpdateTypeEnum.SET_RESERVATIONS; UpdateType SET_RESTOCKABLE_IN_DAYS = UpdateTypeEnum.SET_RESTOCKABLE_IN_DAYS; + UpdateType SET_RETURN_INFO = UpdateTypeEnum.SET_RETURN_INFO; + + UpdateType SET_RETURN_ITEM_CUSTOM_FIELD = UpdateTypeEnum.SET_RETURN_ITEM_CUSTOM_FIELD; + + UpdateType SET_RETURN_ITEM_CUSTOM_TYPE = UpdateTypeEnum.SET_RETURN_ITEM_CUSTOM_TYPE; + UpdateType SET_RETURN_PAYMENT_STATE = UpdateTypeEnum.SET_RETURN_PAYMENT_STATE; UpdateType SET_RETURN_SHIPMENT_STATE = UpdateTypeEnum.SET_RETURN_SHIPMENT_STATE; @@ -482,6 +594,16 @@ public interface UpdateType extends JsonEnum { UpdateType SET_SHIPPING_ADDRESS = UpdateTypeEnum.SET_SHIPPING_ADDRESS; + UpdateType SET_SHIPPING_ADDRESS_CUSTOM_FIELD = UpdateTypeEnum.SET_SHIPPING_ADDRESS_CUSTOM_FIELD; + + UpdateType SET_SHIPPING_ADDRESS_CUSTOM_TYPE = UpdateTypeEnum.SET_SHIPPING_ADDRESS_CUSTOM_TYPE; + + UpdateType SET_SHIPPING_CUSTOM_FIELD = UpdateTypeEnum.SET_SHIPPING_CUSTOM_FIELD; + + UpdateType SET_SHIPPING_CUSTOM_TYPE = UpdateTypeEnum.SET_SHIPPING_CUSTOM_TYPE; + + UpdateType SET_SHIPPING_INFO_DISCOUNTED_PRICE = UpdateTypeEnum.SET_SHIPPING_INFO_DISCOUNTED_PRICE; + UpdateType SET_SHIPPING_INFO_PRICE = UpdateTypeEnum.SET_SHIPPING_INFO_PRICE; UpdateType SET_SHIPPING_INFO_TAXED_PRICE = UpdateTypeEnum.SET_SHIPPING_INFO_TAXED_PRICE; @@ -490,6 +612,8 @@ public interface UpdateType extends JsonEnum { UpdateType SET_SHIPPING_METHOD_TAX_AMOUNT = UpdateTypeEnum.SET_SHIPPING_METHOD_TAX_AMOUNT; + UpdateType SET_SHIPPING_METHOD_TAX_CATEGORY = UpdateTypeEnum.SET_SHIPPING_METHOD_TAX_CATEGORY; + UpdateType SET_SHIPPING_METHOD_TAX_RATE = UpdateTypeEnum.SET_SHIPPING_METHOD_TAX_RATE; UpdateType SET_SHIPPING_RATE = UpdateTypeEnum.SET_SHIPPING_RATE; @@ -518,6 +642,8 @@ public interface UpdateType extends JsonEnum { UpdateType SET_TAX_CATEGORY = UpdateTypeEnum.SET_TAX_CATEGORY; + UpdateType SET_TAXED_SHIPPING_PRICE = UpdateTypeEnum.SET_TAXED_SHIPPING_PRICE; + UpdateType SET_TEXT = UpdateTypeEnum.SET_TEXT; UpdateType SET_TEXT_LINE_ITEM_CUSTOM_FIELD = UpdateTypeEnum.SET_TEXT_LINE_ITEM_CUSTOM_FIELD; @@ -528,8 +654,14 @@ public interface UpdateType extends JsonEnum { UpdateType SET_TITLE = UpdateTypeEnum.SET_TITLE; + UpdateType SET_TRANSACTION_CUSTOM_FIELD = UpdateTypeEnum.SET_TRANSACTION_CUSTOM_FIELD; + + UpdateType SET_TRANSACTION_CUSTOM_TYPE = UpdateTypeEnum.SET_TRANSACTION_CUSTOM_TYPE; + UpdateType SET_TRANSITIONS = UpdateTypeEnum.SET_TRANSITIONS; + UpdateType SET_UNIT_TYPE = UpdateTypeEnum.SET_UNIT_TYPE; + UpdateType SET_VALID_FROM = UpdateTypeEnum.SET_VALID_FROM; UpdateType SET_VALID_FROM_AND_UNTIL = UpdateTypeEnum.SET_VALID_FROM_AND_UNTIL; @@ -542,6 +674,8 @@ public interface UpdateType extends JsonEnum { UpdateType SET_VARIANT_AVAILABILITY = UpdateTypeEnum.SET_VARIANT_AVAILABILITY; + UpdateType SET_VARIANT_EXCLUSION = UpdateTypeEnum.SET_VARIANT_EXCLUSION; + UpdateType SET_VARIANT_SELECTION = UpdateTypeEnum.SET_VARIANT_SELECTION; UpdateType SET_VAT_ID = UpdateTypeEnum.SET_VAT_ID; @@ -689,11 +823,21 @@ enum UpdateTypeEnum implements UpdateType { */ ADD_ROLES("addRoles"), + /** + * addShipping + */ + ADD_SHIPPING("addShipping"), + /** * addShippingAddressId */ ADD_SHIPPING_ADDRESS_ID("addShippingAddressId"), + /** + * addShippingRate + */ + ADD_SHIPPING_RATE("addShippingRate"), + /** * addTaxRate */ @@ -719,6 +863,16 @@ enum UpdateTypeEnum implements UpdateType { */ ADD_VARIANT("addVariant"), + /** + * addZone + */ + ADD_ZONE("addZone"), + + /** + * changeActive + */ + CHANGE_ACTIVE("changeActive"), + /** * changeAddress */ @@ -729,6 +883,11 @@ enum UpdateTypeEnum implements UpdateType { */ CHANGE_AMOUNT_PLANNED("changeAmountPlanned"), + /** + * changeApprovalRuleMode + */ + CHANGE_APPROVAL_RULE_MODE("changeApprovalRuleMode"), + /** * changeAssetName */ @@ -774,16 +933,31 @@ enum UpdateTypeEnum implements UpdateType { */ CHANGE_CART_PREDICATE("changeCartPredicate"), + /** + * changeCustomLineItemPriceRoundingMode + */ + CHANGE_CUSTOM_LINE_ITEM_PRICE_ROUNDING_MODE("changeCustomLineItemPriceRoundingMode"), + /** * changeCustomLineItemQuantity */ CHANGE_CUSTOM_LINE_ITEM_QUANTITY("changeCustomLineItemQuantity"), + /** + * changeCustomer + */ + CHANGE_CUSTOMER("changeCustomer"), + /** * changeDescription */ CHANGE_DESCRIPTION("changeDescription"), + /** + * changeDiscountTypeCombination + */ + CHANGE_DISCOUNT_TYPE_COMBINATION("changeDiscountTypeCombination"), + /** * changeEmail */ @@ -814,6 +988,11 @@ enum UpdateTypeEnum implements UpdateType { */ CHANGE_GROUPS("changeGroups"), + /** + * changeIncludedInStatistics + */ + CHANGE_INCLUDED_IN_STATISTICS("changeIncludedInStatistics"), + /** * changeInitial */ @@ -829,6 +1008,11 @@ enum UpdateTypeEnum implements UpdateType { */ CHANGE_IS_ACTIVE("changeIsActive"), + /** + * changeIsDefault + */ + CHANGE_IS_DEFAULT("changeIsDefault"), + /** * changeIsSearchable */ @@ -844,11 +1028,26 @@ enum UpdateTypeEnum implements UpdateType { */ CHANGE_LABEL("changeLabel"), + /** + * changeLastVariantId + */ + CHANGE_LAST_VARIANT_ID("changeLastVariantId"), + /** * changeLineItemName */ CHANGE_LINE_ITEM_NAME("changeLineItemName"), + /** + * changeLineItemPriceRoundingMode + */ + CHANGE_LINE_ITEM_PRICE_ROUNDING_MODE("changeLineItemPriceRoundingMode"), + + /** + * changeLineItemPublished + */ + CHANGE_LINE_ITEM_PUBLISHED("changeLineItemPublished"), + /** * changeLineItemQuantity */ @@ -919,6 +1118,11 @@ enum UpdateTypeEnum implements UpdateType { */ CHANGE_PRICE("changePrice"), + /** + * changePriceRoundingMode + */ + CHANGE_PRICE_ROUNDING_MODE("changePriceRoundingMode"), + /** * changeProductSelectionActive */ @@ -989,6 +1193,11 @@ enum UpdateTypeEnum implements UpdateType { */ CHANGE_TAX_CALCULATION_MODE("changeTaxCalculationMode"), + /** + * changeTaxCategory + */ + CHANGE_TAX_CATEGORY("changeTaxCategory"), + /** * changeTaxMode */ @@ -1014,6 +1223,11 @@ enum UpdateTypeEnum implements UpdateType { */ CHANGE_TEXT_LINE_ITEMS_ORDER("changeTextLineItemsOrder"), + /** + * changeTopLevelUnit + */ + CHANGE_TOP_LEVEL_UNIT("changeTopLevelUnit"), + /** * changeTransactionInteractionId */ @@ -1039,6 +1253,11 @@ enum UpdateTypeEnum implements UpdateType { */ CHANGE_VALUE("changeValue"), + /** + * excludeProduct + */ + EXCLUDE_PRODUCT("excludeProduct"), + /** * moveImageToPosition */ @@ -1159,11 +1378,21 @@ enum UpdateTypeEnum implements UpdateType { */ REMOVE_ROLES("removeRoles"), + /** + * removeShipping + */ + REMOVE_SHIPPING("removeShipping"), + /** * removeShippingAddressId */ REMOVE_SHIPPING_ADDRESS_ID("removeShippingAddressId"), + /** + * removeShippingRate + */ + REMOVE_SHIPPING_RATE("removeShippingRate"), + /** * removeTaxRate */ @@ -1179,11 +1408,31 @@ enum UpdateTypeEnum implements UpdateType { */ REMOVE_VARIANT("removeVariant"), + /** + * removeZone + */ + REMOVE_ZONE("removeZone"), + + /** + * replaceTaxRate + */ + REPLACE_TAX_RATE("replaceTaxRate"), + /** * requestQuoteRenegotiation */ REQUEST_QUOTE_RENEGOTIATION("requestQuoteRenegotiation"), + /** + * revertStagedChanges + */ + REVERT_STAGED_CHANGES("revertStagedChanges"), + + /** + * revertStagedVariantChanges + */ + REVERT_STAGED_VARIANT_CHANGES("revertStagedVariantChanges"), + /** * setAddress */ @@ -1199,6 +1448,11 @@ enum UpdateTypeEnum implements UpdateType { */ SET_ADDRESS_CUSTOM_TYPE("setAddressCustomType"), + /** + * setAncestors + */ + SET_ANCESTORS("setAncestors"), + /** * setAnonymousId */ @@ -1224,6 +1478,11 @@ enum UpdateTypeEnum implements UpdateType { */ SET_ASSET_DESCRIPTION("setAssetDescription"), + /** + * setAssetKey + */ + SET_ASSET_KEY("setAssetKey"), + /** * setAssetSources */ @@ -1235,9 +1494,9 @@ enum UpdateTypeEnum implements UpdateType { SET_ASSET_TAGS("setAssetTags"), /** - * setAssetKey + * setAssociates */ - SET_ASSET_KEY("setAssetKey"), + SET_ASSOCIATES("setAssociates"), /** * setAttribute @@ -1259,6 +1518,21 @@ enum UpdateTypeEnum implements UpdateType { */ SET_BILLING_ADDRESS("setBillingAddress"), + /** + * setBillingAddressCustomField + */ + SET_BILLING_ADDRESS_CUSTOM_FIELD("setBillingAddressCustomField"), + + /** + * setBillingAddressCustomType + */ + SET_BILLING_ADDRESS_CUSTOM_TYPE("setBillingAddressCustomType"), + + /** + * setBusinessUnit + */ + SET_BUSINESS_UNIT("setBusinessUnit"), + /** * setCartPredicate */ @@ -1304,6 +1578,16 @@ enum UpdateTypeEnum implements UpdateType { */ SET_CUSTOM_LINE_ITEM_CUSTOM_TYPE("setCustomLineItemCustomType"), + /** + * setCustomLineItemDiscountedPrice + */ + SET_CUSTOM_LINE_ITEM_DISCOUNTED_PRICE("setCustomLineItemDiscountedPrice"), + + /** + * setCustomLineItemDiscountedPricePerQuantity + */ + SET_CUSTOM_LINE_ITEM_DISCOUNTED_PRICE_PER_QUANTITY("setCustomLineItemDiscountedPricePerQuantity"), + /** * setCustomLineItemMoney */ @@ -1364,6 +1648,11 @@ enum UpdateTypeEnum implements UpdateType { */ SET_CUSTOMER_GROUP("setCustomerGroup"), + /** + * setCustomerGroupAssignments + */ + SET_CUSTOMER_GROUP_ASSIGNMENTS("setCustomerGroupAssignments"), + /** * setCustomerId */ @@ -1399,6 +1688,26 @@ enum UpdateTypeEnum implements UpdateType { */ SET_DELIVERY_ADDRESS("setDeliveryAddress"), + /** + * setDeliveryAddressCustomField + */ + SET_DELIVERY_ADDRESS_CUSTOM_FIELD("setDeliveryAddressCustomField"), + + /** + * setDeliveryAddressCustomType + */ + SET_DELIVERY_ADDRESS_CUSTOM_TYPE("setDeliveryAddressCustomType"), + + /** + * setDeliveryCustomField + */ + SET_DELIVERY_CUSTOM_FIELD("setDeliveryCustomField"), + + /** + * setDeliveryCustomType + */ + SET_DELIVERY_CUSTOM_TYPE("setDeliveryCustomType"), + /** * setDeliveryItems */ @@ -1409,6 +1718,16 @@ enum UpdateTypeEnum implements UpdateType { */ SET_DESCRIPTION("setDescription"), + /** + * setDirectDiscounts + */ + SET_DIRECT_DISCOUNTS("setDirectDiscounts"), + + /** + * setDiscountOnTotalPrice + */ + SET_DISCOUNT_ON_TOTAL_PRICE("setDiscountOnTotalPrice"), + /** * setDiscountedPrice */ @@ -1444,6 +1763,16 @@ enum UpdateTypeEnum implements UpdateType { */ SET_IMAGE_LABEL("setImageLabel"), + /** + * setInheritedAssociates + */ + SET_INHERITED_ASSOCIATES("setInheritedAssociates"), + + /** + * setInheritedStores + */ + SET_INHERITED_STORES("setInheritedStores"), + /** * setInputTip */ @@ -1459,6 +1788,16 @@ enum UpdateTypeEnum implements UpdateType { */ SET_IS_VALID("setIsValid"), + /** + * setItemShippingAddressCustomField + */ + SET_ITEM_SHIPPING_ADDRESS_CUSTOM_FIELD("setItemShippingAddressCustomField"), + + /** + * setItemShippingAddressCustomType + */ + SET_ITEM_SHIPPING_ADDRESS_CUSTOM_TYPE("setItemShippingAddressCustomType"), + /** * setKey */ @@ -1549,6 +1888,16 @@ enum UpdateTypeEnum implements UpdateType { */ SET_LOCALE("setLocale"), + /** + * setLocalizedDescription + */ + SET_LOCALIZED_DESCRIPTION("setLocalizedDescription"), + + /** + * setLocalizedName + */ + SET_LOCALIZED_NAME("setLocalizedName"), + /** * setMaxApplications */ @@ -1559,6 +1908,11 @@ enum UpdateTypeEnum implements UpdateType { */ SET_MAX_APPLICATIONS_PER_CUSTOMER("setMaxApplicationsPerCustomer"), + /** + * setMaxCartQuantity + */ + SET_MAX_CART_QUANTITY("setMaxCartQuantity"), + /** * setMetaDescription */ @@ -1594,6 +1948,11 @@ enum UpdateTypeEnum implements UpdateType { */ SET_MIDDLE_NAME("setMiddleName"), + /** + * setMinCartQuantity + */ + SET_MIN_CART_QUANTITY("setMinCartQuantity"), + /** * setName */ @@ -1619,6 +1978,16 @@ enum UpdateTypeEnum implements UpdateType { */ SET_ORDER_TOTAL_TAX("setOrderTotalTax"), + /** + * setParcelCustomField + */ + SET_PARCEL_CUSTOM_FIELD("setParcelCustomField"), + + /** + * setParcelCustomType + */ + SET_PARCEL_CUSTOM_TYPE("setParcelCustomType"), + /** * setParcelItems */ @@ -1639,11 +2008,36 @@ enum UpdateTypeEnum implements UpdateType { */ SET_PASSWORD("setPassword"), + /** + * setPredicate + */ + SET_PREDICATE("setPredicate"), + + /** + * setPriceKey + */ + SET_PRICE_KEY("setPriceKey"), + + /** + * setPriceMode + */ + SET_PRICE_MODE("setPriceMode"), + + /** + * setPriceTiers + */ + SET_PRICE_TIERS("setPriceTiers"), + /** * setPrices */ SET_PRICES("setPrices"), + /** + * setProductAttribute + */ + SET_PRODUCT_ATTRIBUTE("setProductAttribute"), + /** * setProductCount */ @@ -1684,6 +2078,11 @@ enum UpdateTypeEnum implements UpdateType { */ SET_RATING("setRating"), + /** + * setReferences + */ + SET_REFERENCES("setReferences"), + /** * setReservations */ @@ -1694,6 +2093,21 @@ enum UpdateTypeEnum implements UpdateType { */ SET_RESTOCKABLE_IN_DAYS("setRestockableInDays"), + /** + * setReturnInfo + */ + SET_RETURN_INFO("setReturnInfo"), + + /** + * setReturnItemCustomField + */ + SET_RETURN_ITEM_CUSTOM_FIELD("setReturnItemCustomField"), + + /** + * setReturnItemCustomType + */ + SET_RETURN_ITEM_CUSTOM_TYPE("setReturnItemCustomType"), + /** * setReturnPaymentState */ @@ -1729,6 +2143,31 @@ enum UpdateTypeEnum implements UpdateType { */ SET_SHIPPING_ADDRESS("setShippingAddress"), + /** + * setShippingAddressCustomField + */ + SET_SHIPPING_ADDRESS_CUSTOM_FIELD("setShippingAddressCustomField"), + + /** + * setShippingAddressCustomType + */ + SET_SHIPPING_ADDRESS_CUSTOM_TYPE("setShippingAddressCustomType"), + + /** + * setShippingCustomField + */ + SET_SHIPPING_CUSTOM_FIELD("setShippingCustomField"), + + /** + * setShippingCustomType + */ + SET_SHIPPING_CUSTOM_TYPE("setShippingCustomType"), + + /** + * setShippingInfoDiscountedPrice + */ + SET_SHIPPING_INFO_DISCOUNTED_PRICE("setShippingInfoDiscountedPrice"), + /** * setShippingInfoPrice */ @@ -1749,6 +2188,11 @@ enum UpdateTypeEnum implements UpdateType { */ SET_SHIPPING_METHOD_TAX_AMOUNT("setShippingMethodTaxAmount"), + /** + * setShippingMethodTaxCategory + */ + SET_SHIPPING_METHOD_TAX_CATEGORY("setShippingMethodTaxCategory"), + /** * setShippingMethodTaxRate */ @@ -1819,6 +2263,11 @@ enum UpdateTypeEnum implements UpdateType { */ SET_TAX_CATEGORY("setTaxCategory"), + /** + * setTaxedShippingPrice + */ + SET_TAXED_SHIPPING_PRICE("setTaxedShippingPrice"), + /** * setText */ @@ -1844,11 +2293,26 @@ enum UpdateTypeEnum implements UpdateType { */ SET_TITLE("setTitle"), + /** + * setTransactionCustomField + */ + SET_TRANSACTION_CUSTOM_FIELD("setTransactionCustomField"), + + /** + * setTransactionCustomType + */ + SET_TRANSACTION_CUSTOM_TYPE("setTransactionCustomType"), + /** * setTransitions */ SET_TRANSITIONS("setTransitions"), + /** + * setUnitType + */ + SET_UNIT_TYPE("setUnitType"), + /** * setValidFrom */ @@ -1879,6 +2343,11 @@ enum UpdateTypeEnum implements UpdateType { */ SET_VARIANT_AVAILABILITY("setVariantAvailability"), + /** + * setVariantExclusion + */ + SET_VARIANT_EXCLUSION("setVariantExclusion"), + /** * setVariantSelection */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/BestDeal.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/BestDeal.java new file mode 100644 index 00000000000..231e299db46 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/BestDeal.java @@ -0,0 +1,130 @@ + +package com.commercetools.history.models.common; + +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; + +/** + *

    Indicates if a Product Discount or Cart Discount offers the best deal for a Cart or Order.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BestDeal bestDeal = BestDeal.builder()
    + *             .chosenDiscountType("{chosenDiscountType}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("BestDeal") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BestDealImpl.class) +public interface BestDeal extends DiscountTypeCombination { + + /** + * discriminator value for BestDeal + */ + String BEST_DEAL = "BestDeal"; + + /** + *

    Discount type that offers the best deal; the value can be ProductDiscount or CartDiscount.

    + * @return chosenDiscountType + */ + @NotNull + @JsonProperty("chosenDiscountType") + public String getChosenDiscountType(); + + /** + *

    Discount type that offers the best deal; the value can be ProductDiscount or CartDiscount.

    + * @param chosenDiscountType value to be set + */ + + public void setChosenDiscountType(final String chosenDiscountType); + + /** + * factory method + * @return instance of BestDeal + */ + public static BestDeal of() { + return new BestDealImpl(); + } + + /** + * factory method to create a shallow copy BestDeal + * @param template instance to be copied + * @return copy instance + */ + public static BestDeal of(final BestDeal template) { + BestDealImpl instance = new BestDealImpl(); + instance.setChosenDiscountType(template.getChosenDiscountType()); + return instance; + } + + public BestDeal copyDeep(); + + /** + * factory method to create a deep copy of BestDeal + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BestDeal deepCopy(@Nullable final BestDeal template) { + if (template == null) { + return null; + } + BestDealImpl instance = new BestDealImpl(); + instance.setChosenDiscountType(template.getChosenDiscountType()); + return instance; + } + + /** + * builder factory method for BestDeal + * @return builder + */ + public static BestDealBuilder builder() { + return BestDealBuilder.of(); + } + + /** + * create builder for BestDeal instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BestDealBuilder builder(final BestDeal template) { + return BestDealBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBestDeal(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/BestDealBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/BestDealBuilder.java new file mode 100644 index 00000000000..f89b24a52a1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/BestDealBuilder.java @@ -0,0 +1,82 @@ + +package com.commercetools.history.models.common; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BestDealBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     BestDeal bestDeal = BestDeal.builder()
    + *             .chosenDiscountType("{chosenDiscountType}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BestDealBuilder implements Builder { + + private String chosenDiscountType; + + /** + *

    Discount type that offers the best deal; the value can be ProductDiscount or CartDiscount.

    + * @param chosenDiscountType value to be set + * @return Builder + */ + + public BestDealBuilder chosenDiscountType(final String chosenDiscountType) { + this.chosenDiscountType = chosenDiscountType; + return this; + } + + /** + *

    Discount type that offers the best deal; the value can be ProductDiscount or CartDiscount.

    + * @return chosenDiscountType + */ + + public String getChosenDiscountType() { + return this.chosenDiscountType; + } + + /** + * builds BestDeal with checking for non-null required values + * @return BestDeal + */ + public BestDeal build() { + Objects.requireNonNull(chosenDiscountType, BestDeal.class + ": chosenDiscountType is missing"); + return new BestDealImpl(chosenDiscountType); + } + + /** + * builds BestDeal without checking for non-null required values + * @return BestDeal + */ + public BestDeal buildUnchecked() { + return new BestDealImpl(chosenDiscountType); + } + + /** + * factory method for an instance of BestDealBuilder + * @return builder + */ + public static BestDealBuilder of() { + return new BestDealBuilder(); + } + + /** + * create builder for BestDeal instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BestDealBuilder of(final BestDeal template) { + BestDealBuilder builder = new BestDealBuilder(); + builder.chosenDiscountType = template.getChosenDiscountType(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/BestDealImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/BestDealImpl.java new file mode 100644 index 00000000000..4f55c9bedda --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/BestDealImpl.java @@ -0,0 +1,98 @@ + +package com.commercetools.history.models.common; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    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 { + + private String type; + + private String chosenDiscountType; + + /** + * create instance with all properties + */ + @JsonCreator + BestDealImpl(@JsonProperty("chosenDiscountType") final String chosenDiscountType) { + this.chosenDiscountType = chosenDiscountType; + this.type = BEST_DEAL; + } + + /** + * create empty instance + */ + public BestDealImpl() { + this.type = BEST_DEAL; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    Discount type that offers the best deal; the value can be ProductDiscount or CartDiscount.

    + */ + + public String getChosenDiscountType() { + return this.chosenDiscountType; + } + + public void setChosenDiscountType(final String chosenDiscountType) { + this.chosenDiscountType = chosenDiscountType; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BestDealImpl that = (BestDealImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(chosenDiscountType, that.chosenDiscountType) + .append(type, that.type) + .append(chosenDiscountType, that.chosenDiscountType) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(chosenDiscountType).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("chosenDiscountType", chosenDiscountType) + .build(); + } + + @Override + public BestDeal copyDeep() { + return BestDeal.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DirectDiscount.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DirectDiscount.java new file mode 100644 index 00000000000..1b4f8d0fd6a --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DirectDiscount.java @@ -0,0 +1,163 @@ + +package com.commercetools.history.models.common; + +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; +import jakarta.validation.constraints.NotNull; + +/** + *

    Represents a CartDiscount that is only associated with a single Cart or Order.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     DirectDiscount directDiscount = DirectDiscount.builder()
    + *             .id("{id}")
    + *             .value(valueBuilder -> valueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = DirectDiscountImpl.class) +public interface DirectDiscount { + + /** + *

    Unique identifier of the Direct Discount.

    + * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

    Effect of the Discount on the Cart.

    + * @return value + */ + @NotNull + @Valid + @JsonProperty("value") + public CartDiscountValue getValue(); + + /** + *

    Segment of the Cart that is discounted.

    + *

    Empty when the value is set to giftLineItem.

    + * @return target + */ + @Valid + @JsonProperty("target") + public CartDiscountTarget getTarget(); + + /** + *

    Unique identifier of the Direct Discount.

    + * @param id value to be set + */ + + public void setId(final String id); + + /** + *

    Effect of the Discount on the Cart.

    + * @param value value to be set + */ + + public void setValue(final CartDiscountValue value); + + /** + *

    Segment of the Cart that is discounted.

    + *

    Empty when the value is set to giftLineItem.

    + * @param target value to be set + */ + + public void setTarget(final CartDiscountTarget target); + + /** + * factory method + * @return instance of DirectDiscount + */ + public static DirectDiscount of() { + return new DirectDiscountImpl(); + } + + /** + * factory method to create a shallow copy DirectDiscount + * @param template instance to be copied + * @return copy instance + */ + public static DirectDiscount of(final DirectDiscount template) { + DirectDiscountImpl instance = new DirectDiscountImpl(); + instance.setId(template.getId()); + instance.setValue(template.getValue()); + instance.setTarget(template.getTarget()); + return instance; + } + + public DirectDiscount copyDeep(); + + /** + * factory method to create a deep copy of DirectDiscount + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static DirectDiscount deepCopy(@Nullable final DirectDiscount template) { + if (template == null) { + return null; + } + DirectDiscountImpl instance = new DirectDiscountImpl(); + instance.setId(template.getId()); + instance.setValue(com.commercetools.history.models.common.CartDiscountValue.deepCopy(template.getValue())); + instance.setTarget(com.commercetools.history.models.common.CartDiscountTarget.deepCopy(template.getTarget())); + return instance; + } + + /** + * builder factory method for DirectDiscount + * @return builder + */ + public static DirectDiscountBuilder builder() { + return DirectDiscountBuilder.of(); + } + + /** + * create builder for DirectDiscount instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static DirectDiscountBuilder builder(final DirectDiscount template) { + return DirectDiscountBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withDirectDiscount(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DirectDiscountBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DirectDiscountBuilder.java new file mode 100644 index 00000000000..18c441bd68a --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DirectDiscountBuilder.java @@ -0,0 +1,188 @@ + +package com.commercetools.history.models.common; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * DirectDiscountBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     DirectDiscount directDiscount = DirectDiscount.builder()
    + *             .id("{id}")
    + *             .value(valueBuilder -> valueBuilder)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class DirectDiscountBuilder implements Builder { + + private String id; + + private com.commercetools.history.models.common.CartDiscountValue value; + + @Nullable + private com.commercetools.history.models.common.CartDiscountTarget target; + + /** + *

    Unique identifier of the Direct Discount.

    + * @param id value to be set + * @return Builder + */ + + public DirectDiscountBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

    Effect of the Discount on the Cart.

    + * @param builder function to build the value value + * @return Builder + */ + + public DirectDiscountBuilder value( + Function builder) { + this.value = builder.apply(com.commercetools.history.models.common.CartDiscountValueBuilder.of()).build(); + return this; + } + + /** + *

    Effect of the Discount on the Cart.

    + * @param builder function to build the value value + * @return Builder + */ + + public DirectDiscountBuilder withValue( + Function builder) { + this.value = builder.apply(com.commercetools.history.models.common.CartDiscountValueBuilder.of()); + return this; + } + + /** + *

    Effect of the Discount on the Cart.

    + * @param value value to be set + * @return Builder + */ + + public DirectDiscountBuilder value(final com.commercetools.history.models.common.CartDiscountValue value) { + this.value = value; + return this; + } + + /** + *

    Segment of the Cart that is discounted.

    + *

    Empty when the value is set to giftLineItem.

    + * @param builder function to build the target value + * @return Builder + */ + + public DirectDiscountBuilder target( + Function builder) { + this.target = builder.apply(com.commercetools.history.models.common.CartDiscountTargetBuilder.of()).build(); + return this; + } + + /** + *

    Segment of the Cart that is discounted.

    + *

    Empty when the value is set to giftLineItem.

    + * @param builder function to build the target value + * @return Builder + */ + + public DirectDiscountBuilder withTarget( + Function builder) { + this.target = builder.apply(com.commercetools.history.models.common.CartDiscountTargetBuilder.of()); + return this; + } + + /** + *

    Segment of the Cart that is discounted.

    + *

    Empty when the value is set to giftLineItem.

    + * @param target value to be set + * @return Builder + */ + + public DirectDiscountBuilder target( + @Nullable final com.commercetools.history.models.common.CartDiscountTarget target) { + this.target = target; + return this; + } + + /** + *

    Unique identifier of the Direct Discount.

    + * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

    Effect of the Discount on the Cart.

    + * @return value + */ + + public com.commercetools.history.models.common.CartDiscountValue getValue() { + return this.value; + } + + /** + *

    Segment of the Cart that is discounted.

    + *

    Empty when the value is set to giftLineItem.

    + * @return target + */ + + @Nullable + public com.commercetools.history.models.common.CartDiscountTarget getTarget() { + return this.target; + } + + /** + * builds DirectDiscount with checking for non-null required values + * @return DirectDiscount + */ + public DirectDiscount build() { + Objects.requireNonNull(id, DirectDiscount.class + ": id is missing"); + Objects.requireNonNull(value, DirectDiscount.class + ": value is missing"); + return new DirectDiscountImpl(id, value, target); + } + + /** + * builds DirectDiscount without checking for non-null required values + * @return DirectDiscount + */ + public DirectDiscount buildUnchecked() { + return new DirectDiscountImpl(id, value, target); + } + + /** + * factory method for an instance of DirectDiscountBuilder + * @return builder + */ + public static DirectDiscountBuilder of() { + return new DirectDiscountBuilder(); + } + + /** + * create builder for DirectDiscount instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static DirectDiscountBuilder of(final DirectDiscount template) { + DirectDiscountBuilder builder = new DirectDiscountBuilder(); + builder.id = template.getId(); + builder.value = template.getValue(); + builder.target = template.getTarget(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DirectDiscountImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DirectDiscountImpl.java new file mode 100644 index 00000000000..cf8ddb98714 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DirectDiscountImpl.java @@ -0,0 +1,122 @@ + +package com.commercetools.history.models.common; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    Represents a CartDiscount that is only associated with a single Cart or Order.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class DirectDiscountImpl implements DirectDiscount, ModelBase { + + private String id; + + private com.commercetools.history.models.common.CartDiscountValue value; + + private com.commercetools.history.models.common.CartDiscountTarget target; + + /** + * create instance with all properties + */ + @JsonCreator + DirectDiscountImpl(@JsonProperty("id") final String id, + @JsonProperty("value") final com.commercetools.history.models.common.CartDiscountValue value, + @JsonProperty("target") final com.commercetools.history.models.common.CartDiscountTarget target) { + this.id = id; + this.value = value; + this.target = target; + } + + /** + * create empty instance + */ + public DirectDiscountImpl() { + } + + /** + *

    Unique identifier of the Direct Discount.

    + */ + + public String getId() { + return this.id; + } + + /** + *

    Effect of the Discount on the Cart.

    + */ + + public com.commercetools.history.models.common.CartDiscountValue getValue() { + return this.value; + } + + /** + *

    Segment of the Cart that is discounted.

    + *

    Empty when the value is set to giftLineItem.

    + */ + + public com.commercetools.history.models.common.CartDiscountTarget getTarget() { + return this.target; + } + + public void setId(final String id) { + this.id = id; + } + + public void setValue(final com.commercetools.history.models.common.CartDiscountValue value) { + this.value = value; + } + + public void setTarget(final com.commercetools.history.models.common.CartDiscountTarget target) { + this.target = target; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + DirectDiscountImpl that = (DirectDiscountImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(value, that.value) + .append(target, that.target) + .append(id, that.id) + .append(value, that.value) + .append(target, that.target) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id).append(value).append(target).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("value", value) + .append("target", target) + .build(); + } + + @Override + public DirectDiscount copyDeep() { + return DirectDiscount.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DiscountTypeCombination.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DiscountTypeCombination.java new file mode 100644 index 00000000000..544424bd269 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DiscountTypeCombination.java @@ -0,0 +1,101 @@ + +package com.commercetools.history.models.common; + +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; + +/** + * DiscountTypeCombination + * + *
    + * Example to create a subtype instance using the builder pattern + *
    + *
    
    + *     DiscountTypeCombination discountTypeCombination = DiscountTypeCombination.bestDealBuilder()
    + *             chosenDiscountType("{chosenDiscountType}")
    + *             .build()
    + * 
    + *
    + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type", defaultImpl = DiscountTypeCombinationImpl.class, visible = true) +@JsonDeserialize(as = DiscountTypeCombinationImpl.class) +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface DiscountTypeCombination { + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + public DiscountTypeCombination copyDeep(); + + /** + * factory method to create a deep copy of DiscountTypeCombination + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static DiscountTypeCombination deepCopy(@Nullable final DiscountTypeCombination template) { + if (template == null) { + return null; + } + + if (!(template instanceof DiscountTypeCombinationImpl)) { + return template.copyDeep(); + } + DiscountTypeCombinationImpl instance = new DiscountTypeCombinationImpl(); + return instance; + } + + /** + * builder for bestDeal subtype + * @return builder + */ + public static com.commercetools.history.models.common.BestDealBuilder bestDealBuilder() { + return com.commercetools.history.models.common.BestDealBuilder.of(); + } + + /** + * builder for stacking subtype + * @return builder + */ + public static com.commercetools.history.models.common.StackingBuilder stackingBuilder() { + return com.commercetools.history.models.common.StackingBuilder.of(); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withDiscountTypeCombination(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DiscountTypeCombinationBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DiscountTypeCombinationBuilder.java new file mode 100644 index 00000000000..3b9f52f05d0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DiscountTypeCombinationBuilder.java @@ -0,0 +1,30 @@ + +package com.commercetools.history.models.common; + +import java.util.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * DiscountTypeCombinationBuilder + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class DiscountTypeCombinationBuilder { + + public com.commercetools.history.models.common.BestDealBuilder bestDealBuilder() { + return com.commercetools.history.models.common.BestDealBuilder.of(); + } + + public com.commercetools.history.models.common.StackingBuilder stackingBuilder() { + return com.commercetools.history.models.common.StackingBuilder.of(); + } + + /** + * factory method for an instance of DiscountTypeCombinationBuilder + * @return builder + */ + public static DiscountTypeCombinationBuilder of() { + return new DiscountTypeCombinationBuilder(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DiscountTypeCombinationImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DiscountTypeCombinationImpl.java new file mode 100644 index 00000000000..2d0c9ef88f9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/DiscountTypeCombinationImpl.java @@ -0,0 +1,76 @@ + +package com.commercetools.history.models.common; + +import java.time.*; +import java.util.*; + +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; + +/** + * DiscountTypeCombination + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class DiscountTypeCombinationImpl implements DiscountTypeCombination, ModelBase { + + private String type; + + /** + * create instance with all properties + */ + @JsonCreator + DiscountTypeCombinationImpl(@JsonProperty("type") final String type) { + this.type = type; + } + + /** + * create empty instance + */ + public DiscountTypeCombinationImpl() { + } + + /** + * + */ + + 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; + + DiscountTypeCombinationImpl that = (DiscountTypeCombinationImpl) 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 DiscountTypeCombination copyDeep() { + return DiscountTypeCombination.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/Stacking.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/Stacking.java new file mode 100644 index 00000000000..0efa14d932a --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/Stacking.java @@ -0,0 +1,110 @@ + +package com.commercetools.history.models.common; + +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; + +/** + *

    Indicates both Product Discounts and Cart Discounts apply to a Cart and Order.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     Stacking stacking = Stacking.builder()
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("Stacking") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StackingImpl.class) +public interface Stacking extends DiscountTypeCombination { + + /** + * discriminator value for Stacking + */ + String STACKING = "Stacking"; + + /** + * factory method + * @return instance of Stacking + */ + public static Stacking of() { + return new StackingImpl(); + } + + /** + * factory method to create a shallow copy Stacking + * @param template instance to be copied + * @return copy instance + */ + public static Stacking of(final Stacking template) { + StackingImpl instance = new StackingImpl(); + return instance; + } + + public Stacking copyDeep(); + + /** + * factory method to create a deep copy of Stacking + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static Stacking deepCopy(@Nullable final Stacking template) { + if (template == null) { + return null; + } + StackingImpl instance = new StackingImpl(); + return instance; + } + + /** + * builder factory method for Stacking + * @return builder + */ + public static StackingBuilder builder() { + return StackingBuilder.of(); + } + + /** + * create builder for Stacking instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StackingBuilder builder(final Stacking template) { + return StackingBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStacking(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StackingBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StackingBuilder.java new file mode 100644 index 00000000000..b228271c2ee --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StackingBuilder.java @@ -0,0 +1,57 @@ + +package com.commercetools.history.models.common; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StackingBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     Stacking stacking = Stacking.builder()
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StackingBuilder implements Builder { + + /** + * builds Stacking with checking for non-null required values + * @return Stacking + */ + public Stacking build() { + return new StackingImpl(); + } + + /** + * builds Stacking without checking for non-null required values + * @return Stacking + */ + public Stacking buildUnchecked() { + return new StackingImpl(); + } + + /** + * factory method for an instance of StackingBuilder + * @return builder + */ + public static StackingBuilder of() { + return new StackingBuilder(); + } + + /** + * create builder for Stacking instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StackingBuilder of(final Stacking template) { + StackingBuilder builder = new StackingBuilder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StackingImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StackingImpl.java new file mode 100644 index 00000000000..7ba20b03394 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StackingImpl.java @@ -0,0 +1,69 @@ + +package com.commercetools.history.models.common; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +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; + +/** + *

    Indicates both Product Discounts and Cart Discounts apply to a Cart and Order.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StackingImpl implements Stacking, ModelBase { + + private String type; + + /** + * create instance with all properties + */ + @JsonCreator + public StackingImpl() { + this.type = STACKING; + } + + /** + * + */ + + 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; + + StackingImpl that = (StackingImpl) 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 Stacking copyDeep() { + return Stacking.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifier.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifier.java new file mode 100644 index 00000000000..1c8964d6d67 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifier.java @@ -0,0 +1,147 @@ + +package com.commercetools.history.models.common; + +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; + +/** + *

    ResourceIdentifier to a Zone. Either id or key is required. If both are set, an InvalidJsonInput error is returned.

    + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ZoneResourceIdentifier zoneResourceIdentifier = ZoneResourceIdentifier.builder()
    + *             .typeId(ReferenceTypeId.APPROVAL_FLOW)
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("zone") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ZoneResourceIdentifierImpl.class) +public interface ZoneResourceIdentifier extends ResourceIdentifier { + + /** + * discriminator value for ZoneResourceIdentifier + */ + String ZONE = "zone"; + + /** + *

    Unique identifier of the referenced Zone. Required if key is absent.

    + * @return id + */ + + @JsonProperty("id") + public String getId(); + + /** + *

    User-defined unique identifier of the referenced Zone. Required if id is absent.

    + * @return key + */ + + @JsonProperty("key") + public String getKey(); + + /** + *

    Unique identifier of the referenced Zone. Required if key is absent.

    + * @param id value to be set + */ + + public void setId(final String id); + + /** + *

    User-defined unique identifier of the referenced Zone. Required if id is absent.

    + * @param key value to be set + */ + + public void setKey(final String key); + + /** + * factory method + * @return instance of ZoneResourceIdentifier + */ + public static ZoneResourceIdentifier of() { + return new ZoneResourceIdentifierImpl(); + } + + /** + * factory method to create a shallow copy ZoneResourceIdentifier + * @param template instance to be copied + * @return copy instance + */ + public static ZoneResourceIdentifier of(final ZoneResourceIdentifier template) { + ZoneResourceIdentifierImpl instance = new ZoneResourceIdentifierImpl(); + instance.setId(template.getId()); + instance.setKey(template.getKey()); + instance.setTypeId(template.getTypeId()); + return instance; + } + + public ZoneResourceIdentifier copyDeep(); + + /** + * factory method to create a deep copy of ZoneResourceIdentifier + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ZoneResourceIdentifier deepCopy(@Nullable final ZoneResourceIdentifier template) { + if (template == null) { + return null; + } + ZoneResourceIdentifierImpl instance = new ZoneResourceIdentifierImpl(); + instance.setId(template.getId()); + instance.setKey(template.getKey()); + instance.setTypeId(template.getTypeId()); + return instance; + } + + /** + * builder factory method for ZoneResourceIdentifier + * @return builder + */ + public static ZoneResourceIdentifierBuilder builder() { + return ZoneResourceIdentifierBuilder.of(); + } + + /** + * create builder for ZoneResourceIdentifier instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ZoneResourceIdentifierBuilder builder(final ZoneResourceIdentifier template) { + return ZoneResourceIdentifierBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withZoneResourceIdentifier(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifierBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifierBuilder.java new file mode 100644 index 00000000000..16cb26e7168 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifierBuilder.java @@ -0,0 +1,134 @@ + +package com.commercetools.history.models.common; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ZoneResourceIdentifierBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ZoneResourceIdentifier zoneResourceIdentifier = ZoneResourceIdentifier.builder()
    + *             .typeId(ReferenceTypeId.APPROVAL_FLOW)
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ZoneResourceIdentifierBuilder implements Builder { + + @Nullable + private String id; + + @Nullable + private String key; + + private com.commercetools.history.models.common.ReferenceTypeId typeId; + + /** + *

    Unique identifier of the referenced Zone. Required if key is absent.

    + * @param id value to be set + * @return Builder + */ + + public ZoneResourceIdentifierBuilder id(@Nullable final String id) { + this.id = id; + return this; + } + + /** + *

    User-defined unique identifier of the referenced Zone. Required if id is absent.

    + * @param key value to be set + * @return Builder + */ + + public ZoneResourceIdentifierBuilder key(@Nullable final String key) { + this.key = key; + return this; + } + + /** + *

    Type of resource the value should reference. Supported resource type identifiers are:

    + * @param typeId value to be set + * @return Builder + */ + + public ZoneResourceIdentifierBuilder typeId(final com.commercetools.history.models.common.ReferenceTypeId typeId) { + this.typeId = typeId; + return this; + } + + /** + *

    Unique identifier of the referenced Zone. Required if key is absent.

    + * @return id + */ + + @Nullable + public String getId() { + return this.id; + } + + /** + *

    User-defined unique identifier of the referenced Zone. Required if id is absent.

    + * @return key + */ + + @Nullable + public String getKey() { + return this.key; + } + + /** + *

    Type of resource the value should reference. Supported resource type identifiers are:

    + * @return typeId + */ + + public com.commercetools.history.models.common.ReferenceTypeId getTypeId() { + return this.typeId; + } + + /** + * builds ZoneResourceIdentifier with checking for non-null required values + * @return ZoneResourceIdentifier + */ + public ZoneResourceIdentifier build() { + Objects.requireNonNull(typeId, ZoneResourceIdentifier.class + ": typeId is missing"); + return new ZoneResourceIdentifierImpl(id, key, typeId); + } + + /** + * builds ZoneResourceIdentifier without checking for non-null required values + * @return ZoneResourceIdentifier + */ + public ZoneResourceIdentifier buildUnchecked() { + return new ZoneResourceIdentifierImpl(id, key, typeId); + } + + /** + * factory method for an instance of ZoneResourceIdentifierBuilder + * @return builder + */ + public static ZoneResourceIdentifierBuilder of() { + return new ZoneResourceIdentifierBuilder(); + } + + /** + * create builder for ZoneResourceIdentifier instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ZoneResourceIdentifierBuilder of(final ZoneResourceIdentifier template) { + ZoneResourceIdentifierBuilder builder = new ZoneResourceIdentifierBuilder(); + builder.id = template.getId(); + builder.key = template.getKey(); + builder.typeId = template.getTypeId(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifierImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifierImpl.java new file mode 100644 index 00000000000..b6db1ef9f76 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifierImpl.java @@ -0,0 +1,120 @@ + +package com.commercetools.history.models.common; + +import java.time.*; +import java.util.*; + +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; + +/** + *

    ResourceIdentifier to a Zone. Either id or key is required. If both are set, an InvalidJsonInput error is returned.

    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ZoneResourceIdentifierImpl implements ZoneResourceIdentifier, ModelBase { + + private String id; + + private String key; + + private com.commercetools.history.models.common.ReferenceTypeId typeId; + + /** + * create instance with all properties + */ + @JsonCreator + ZoneResourceIdentifierImpl(@JsonProperty("id") final String id, @JsonProperty("key") final String key, + @JsonProperty("typeId") final com.commercetools.history.models.common.ReferenceTypeId typeId) { + this.id = id; + this.key = key; + this.typeId = typeId; + } + + /** + * create empty instance + */ + public ZoneResourceIdentifierImpl() { + } + + /** + *

    Unique identifier of the referenced Zone. Required if key is absent.

    + */ + + public String getId() { + return this.id; + } + + /** + *

    User-defined unique identifier of the referenced Zone. Required if id is absent.

    + */ + + public String getKey() { + return this.key; + } + + /** + *

    Type of resource the value should reference. Supported resource type identifiers are:

    + */ + + public com.commercetools.history.models.common.ReferenceTypeId getTypeId() { + return this.typeId; + } + + public void setId(final String id) { + this.id = id; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setTypeId(final com.commercetools.history.models.common.ReferenceTypeId typeId) { + this.typeId = typeId; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ZoneResourceIdentifierImpl that = (ZoneResourceIdentifierImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(key, that.key) + .append(typeId, that.typeId) + .append(id, that.id) + .append(key, that.key) + .append(typeId, that.typeId) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id).append(key).append(typeId).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("key", key) + .append("typeId", typeId) + .build(); + } + + @Override + public ZoneResourceIdentifier copyDeep() { + return ZoneResourceIdentifier.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/Label.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/Label.java index 30d9002ddd1..22d1f15b698 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/Label.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/Label.java @@ -149,6 +149,14 @@ public static com.commercetools.history.models.label.ReviewLabelBuilder reviewLa return com.commercetools.history.models.label.ReviewLabelBuilder.of(); } + /** + * builder for shippingMethodLabel subtype + * @return builder + */ + public static com.commercetools.history.models.label.ShippingMethodLabelBuilder shippingMethodLabelBuilder() { + return com.commercetools.history.models.label.ShippingMethodLabelBuilder.of(); + } + /** * builder for stagedQuoteLabel subtype * @return builder @@ -157,6 +165,14 @@ public static com.commercetools.history.models.label.StagedQuoteLabelBuilder sta return com.commercetools.history.models.label.StagedQuoteLabelBuilder.of(); } + /** + * builder for standalonePriceLabel subtype + * @return builder + */ + public static com.commercetools.history.models.label.StandalonePriceLabelBuilder standalonePriceLabelBuilder() { + return com.commercetools.history.models.label.StandalonePriceLabelBuilder.of(); + } + /** * builder for stringLabel subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/LabelBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/LabelBuilder.java index a3d588c9289..c98fb83c321 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/LabelBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/LabelBuilder.java @@ -55,10 +55,18 @@ public com.commercetools.history.models.label.ReviewLabelBuilder reviewLabelBuil return com.commercetools.history.models.label.ReviewLabelBuilder.of(); } + public com.commercetools.history.models.label.ShippingMethodLabelBuilder shippingMethodLabelBuilder() { + return com.commercetools.history.models.label.ShippingMethodLabelBuilder.of(); + } + public com.commercetools.history.models.label.StagedQuoteLabelBuilder stagedQuoteLabelBuilder() { return com.commercetools.history.models.label.StagedQuoteLabelBuilder.of(); } + public com.commercetools.history.models.label.StandalonePriceLabelBuilder standalonePriceLabelBuilder() { + return com.commercetools.history.models.label.StandalonePriceLabelBuilder.of(); + } + public com.commercetools.history.models.label.StringLabelBuilder stringLabelBuilder() { return com.commercetools.history.models.label.StringLabelBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/ShippingMethodLabel.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/ShippingMethodLabel.java new file mode 100644 index 00000000000..873f1c0d712 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/ShippingMethodLabel.java @@ -0,0 +1,155 @@ + +package com.commercetools.history.models.label; + +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; + +/** + * ShippingMethodLabel + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodLabel shippingMethodLabel = ShippingMethodLabel.builder()
    + *             .name("{name}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("ShippingMethodLabel") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ShippingMethodLabelImpl.class) +public interface ShippingMethodLabel extends Label { + + /** + * discriminator value for ShippingMethodLabel + */ + String SHIPPING_METHOD_LABEL = "ShippingMethodLabel"; + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    User-defined unique identifier of the Shipping Method.

    + * @return key + */ + + @JsonProperty("key") + public String getKey(); + + /** + *

    Unique name identifier of the Shipping Method.

    + * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *

    User-defined unique identifier of the Shipping Method.

    + * @param key value to be set + */ + + public void setKey(final String key); + + /** + *

    Unique name identifier of the Shipping Method.

    + * @param name value to be set + */ + + public void setName(final String name); + + /** + * factory method + * @return instance of ShippingMethodLabel + */ + public static ShippingMethodLabel of() { + return new ShippingMethodLabelImpl(); + } + + /** + * factory method to create a shallow copy ShippingMethodLabel + * @param template instance to be copied + * @return copy instance + */ + public static ShippingMethodLabel of(final ShippingMethodLabel template) { + ShippingMethodLabelImpl instance = new ShippingMethodLabelImpl(); + instance.setKey(template.getKey()); + instance.setName(template.getName()); + return instance; + } + + public ShippingMethodLabel copyDeep(); + + /** + * factory method to create a deep copy of ShippingMethodLabel + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ShippingMethodLabel deepCopy(@Nullable final ShippingMethodLabel template) { + if (template == null) { + return null; + } + ShippingMethodLabelImpl instance = new ShippingMethodLabelImpl(); + instance.setKey(template.getKey()); + instance.setName(template.getName()); + return instance; + } + + /** + * builder factory method for ShippingMethodLabel + * @return builder + */ + public static ShippingMethodLabelBuilder builder() { + return ShippingMethodLabelBuilder.of(); + } + + /** + * create builder for ShippingMethodLabel instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodLabelBuilder builder(final ShippingMethodLabel template) { + return ShippingMethodLabelBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withShippingMethodLabel(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/ShippingMethodLabelBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/ShippingMethodLabelBuilder.java new file mode 100644 index 00000000000..e1340656157 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/ShippingMethodLabelBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.history.models.label; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ShippingMethodLabelBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     ShippingMethodLabel shippingMethodLabel = ShippingMethodLabel.builder()
    + *             .name("{name}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodLabelBuilder implements Builder { + + @Nullable + private String key; + + private String name; + + /** + *

    User-defined unique identifier of the Shipping Method.

    + * @param key value to be set + * @return Builder + */ + + public ShippingMethodLabelBuilder key(@Nullable final String key) { + this.key = key; + return this; + } + + /** + *

    Unique name identifier of the Shipping Method.

    + * @param name value to be set + * @return Builder + */ + + public ShippingMethodLabelBuilder name(final String name) { + this.name = name; + return this; + } + + /** + *

    User-defined unique identifier of the Shipping Method.

    + * @return key + */ + + @Nullable + public String getKey() { + return this.key; + } + + /** + *

    Unique name identifier of the Shipping Method.

    + * @return name + */ + + public String getName() { + return this.name; + } + + /** + * builds ShippingMethodLabel with checking for non-null required values + * @return ShippingMethodLabel + */ + public ShippingMethodLabel build() { + Objects.requireNonNull(name, ShippingMethodLabel.class + ": name is missing"); + return new ShippingMethodLabelImpl(key, name); + } + + /** + * builds ShippingMethodLabel without checking for non-null required values + * @return ShippingMethodLabel + */ + public ShippingMethodLabel buildUnchecked() { + return new ShippingMethodLabelImpl(key, name); + } + + /** + * factory method for an instance of ShippingMethodLabelBuilder + * @return builder + */ + public static ShippingMethodLabelBuilder of() { + return new ShippingMethodLabelBuilder(); + } + + /** + * create builder for ShippingMethodLabel instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ShippingMethodLabelBuilder of(final ShippingMethodLabel template) { + ShippingMethodLabelBuilder builder = new ShippingMethodLabelBuilder(); + builder.key = template.getKey(); + builder.name = template.getName(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/ShippingMethodLabelImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/ShippingMethodLabelImpl.java new file mode 100644 index 00000000000..256c261385b --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/ShippingMethodLabelImpl.java @@ -0,0 +1,116 @@ + +package com.commercetools.history.models.label; + +import java.time.*; +import java.util.*; + +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; + +/** + * ShippingMethodLabel + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ShippingMethodLabelImpl implements ShippingMethodLabel, ModelBase { + + private String type; + + private String key; + + private String name; + + /** + * create instance with all properties + */ + @JsonCreator + ShippingMethodLabelImpl(@JsonProperty("key") final String key, @JsonProperty("name") final String name) { + this.key = key; + this.name = name; + this.type = SHIPPING_METHOD_LABEL; + } + + /** + * create empty instance + */ + public ShippingMethodLabelImpl() { + this.type = SHIPPING_METHOD_LABEL; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    User-defined unique identifier of the Shipping Method.

    + */ + + public String getKey() { + return this.key; + } + + /** + *

    Unique name identifier of the Shipping Method.

    + */ + + public String getName() { + return this.name; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setName(final String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ShippingMethodLabelImpl that = (ShippingMethodLabelImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(key, that.key) + .append(name, that.name) + .append(type, that.type) + .append(key, that.key) + .append(name, that.name) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(key).append(name).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("key", key) + .append("name", name) + .build(); + } + + @Override + public ShippingMethodLabel copyDeep() { + return ShippingMethodLabel.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/StandalonePriceLabel.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/StandalonePriceLabel.java new file mode 100644 index 00000000000..83f12b193a4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/StandalonePriceLabel.java @@ -0,0 +1,155 @@ + +package com.commercetools.history.models.label; + +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; + +/** + * StandalonePriceLabel + * + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceLabel standalonePriceLabel = StandalonePriceLabel.builder()
    + *             .sku("{sku}")
    + *             .build()
    + * 
    + *
    + */ +@io.vrap.rmf.base.client.utils.json.SubType("StandalonePriceLabel") +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = StandalonePriceLabelImpl.class) +public interface StandalonePriceLabel extends Label { + + /** + * discriminator value for StandalonePriceLabel + */ + String STANDALONE_PRICE_LABEL = "StandalonePriceLabel"; + + /** + * + * @return type + */ + @NotNull + @JsonProperty("type") + public String getType(); + + /** + *

    User-defined unique identifier of the Standalone Price.

    + * @return key + */ + + @JsonProperty("key") + public String getKey(); + + /** + *

    Unique Product SKU variant identifier to which the Standalone Price is associated.

    + * @return sku + */ + @NotNull + @JsonProperty("sku") + public String getSku(); + + /** + *

    User-defined unique identifier of the Standalone Price.

    + * @param key value to be set + */ + + public void setKey(final String key); + + /** + *

    Unique Product SKU variant identifier to which the Standalone Price is associated.

    + * @param sku value to be set + */ + + public void setSku(final String sku); + + /** + * factory method + * @return instance of StandalonePriceLabel + */ + public static StandalonePriceLabel of() { + return new StandalonePriceLabelImpl(); + } + + /** + * factory method to create a shallow copy StandalonePriceLabel + * @param template instance to be copied + * @return copy instance + */ + public static StandalonePriceLabel of(final StandalonePriceLabel template) { + StandalonePriceLabelImpl instance = new StandalonePriceLabelImpl(); + instance.setKey(template.getKey()); + instance.setSku(template.getSku()); + return instance; + } + + public StandalonePriceLabel copyDeep(); + + /** + * factory method to create a deep copy of StandalonePriceLabel + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static StandalonePriceLabel deepCopy(@Nullable final StandalonePriceLabel template) { + if (template == null) { + return null; + } + StandalonePriceLabelImpl instance = new StandalonePriceLabelImpl(); + instance.setKey(template.getKey()); + instance.setSku(template.getSku()); + return instance; + } + + /** + * builder factory method for StandalonePriceLabel + * @return builder + */ + public static StandalonePriceLabelBuilder builder() { + return StandalonePriceLabelBuilder.of(); + } + + /** + * create builder for StandalonePriceLabel instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceLabelBuilder builder(final StandalonePriceLabel template) { + return StandalonePriceLabelBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withStandalonePriceLabel(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/StandalonePriceLabelBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/StandalonePriceLabelBuilder.java new file mode 100644 index 00000000000..c5024a85fb5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/StandalonePriceLabelBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.history.models.label; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * StandalonePriceLabelBuilder + *
    + * Example to create an instance using the builder pattern + *
    + *
    
    + *     StandalonePriceLabel standalonePriceLabel = StandalonePriceLabel.builder()
    + *             .sku("{sku}")
    + *             .build()
    + * 
    + *
    + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceLabelBuilder implements Builder { + + @Nullable + private String key; + + private String sku; + + /** + *

    User-defined unique identifier of the Standalone Price.

    + * @param key value to be set + * @return Builder + */ + + public StandalonePriceLabelBuilder key(@Nullable final String key) { + this.key = key; + return this; + } + + /** + *

    Unique Product SKU variant identifier to which the Standalone Price is associated.

    + * @param sku value to be set + * @return Builder + */ + + public StandalonePriceLabelBuilder sku(final String sku) { + this.sku = sku; + return this; + } + + /** + *

    User-defined unique identifier of the Standalone Price.

    + * @return key + */ + + @Nullable + public String getKey() { + return this.key; + } + + /** + *

    Unique Product SKU variant identifier to which the Standalone Price is associated.

    + * @return sku + */ + + public String getSku() { + return this.sku; + } + + /** + * builds StandalonePriceLabel with checking for non-null required values + * @return StandalonePriceLabel + */ + public StandalonePriceLabel build() { + Objects.requireNonNull(sku, StandalonePriceLabel.class + ": sku is missing"); + return new StandalonePriceLabelImpl(key, sku); + } + + /** + * builds StandalonePriceLabel without checking for non-null required values + * @return StandalonePriceLabel + */ + public StandalonePriceLabel buildUnchecked() { + return new StandalonePriceLabelImpl(key, sku); + } + + /** + * factory method for an instance of StandalonePriceLabelBuilder + * @return builder + */ + public static StandalonePriceLabelBuilder of() { + return new StandalonePriceLabelBuilder(); + } + + /** + * create builder for StandalonePriceLabel instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static StandalonePriceLabelBuilder of(final StandalonePriceLabel template) { + StandalonePriceLabelBuilder builder = new StandalonePriceLabelBuilder(); + builder.key = template.getKey(); + builder.sku = template.getSku(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/StandalonePriceLabelImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/StandalonePriceLabelImpl.java new file mode 100644 index 00000000000..3726244e20d --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/label/StandalonePriceLabelImpl.java @@ -0,0 +1,116 @@ + +package com.commercetools.history.models.label; + +import java.time.*; +import java.util.*; + +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; + +/** + * StandalonePriceLabel + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class StandalonePriceLabelImpl implements StandalonePriceLabel, ModelBase { + + private String type; + + private String key; + + private String sku; + + /** + * create instance with all properties + */ + @JsonCreator + StandalonePriceLabelImpl(@JsonProperty("key") final String key, @JsonProperty("sku") final String sku) { + this.key = key; + this.sku = sku; + this.type = STANDALONE_PRICE_LABEL; + } + + /** + * create empty instance + */ + public StandalonePriceLabelImpl() { + this.type = STANDALONE_PRICE_LABEL; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

    User-defined unique identifier of the Standalone Price.

    + */ + + public String getKey() { + return this.key; + } + + /** + *

    Unique Product SKU variant identifier to which the Standalone Price is associated.

    + */ + + public String getSku() { + return this.sku; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setSku(final String sku) { + this.sku = sku; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + StandalonePriceLabelImpl that = (StandalonePriceLabelImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(key, that.key) + .append(sku, that.sku) + .append(type, that.type) + .append(key, that.key) + .append(sku, that.sku) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(key).append(sku).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("key", key) + .append("sku", sku) + .build(); + } + + @Override + public StandalonePriceLabel copyDeep() { + return StandalonePriceLabel.deepCopy(this); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChangeTest.java new file mode 100644 index 00000000000..609859f3dfe --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeCustomLineItemPriceRoundingModeChangeTest.java @@ -0,0 +1,71 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ChangeCustomLineItemPriceRoundingModeChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ChangeCustomLineItemPriceRoundingModeChangeBuilder builder) { + ChangeCustomLineItemPriceRoundingModeChange changeCustomLineItemPriceRoundingModeChange = builder + .buildUnchecked(); + Assertions.assertThat(changeCustomLineItemPriceRoundingModeChange) + .isInstanceOf(ChangeCustomLineItemPriceRoundingModeChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ChangeCustomLineItemPriceRoundingModeChange.builder().change("change") }, + new Object[] { "customLineItem", + ChangeCustomLineItemPriceRoundingModeChange.builder() + .customLineItem(new com.commercetools.history.models.common.LocalizedStringImpl()) }, + new Object[] { "customLineItemId", + ChangeCustomLineItemPriceRoundingModeChange.builder().customLineItemId("customLineItemId") }, + new Object[] { "previousValue", ChangeCustomLineItemPriceRoundingModeChange.builder() + .previousValue(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")) }, + new Object[] { "nextValue", ChangeCustomLineItemPriceRoundingModeChange.builder() + .nextValue(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")) } }; + } + + @Test + public void change() { + ChangeCustomLineItemPriceRoundingModeChange value = ChangeCustomLineItemPriceRoundingModeChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void customLineItem() { + ChangeCustomLineItemPriceRoundingModeChange value = ChangeCustomLineItemPriceRoundingModeChange.of(); + value.setCustomLineItem(new com.commercetools.history.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getCustomLineItem()) + .isEqualTo(new com.commercetools.history.models.common.LocalizedStringImpl()); + } + + @Test + public void customLineItemId() { + ChangeCustomLineItemPriceRoundingModeChange value = ChangeCustomLineItemPriceRoundingModeChange.of(); + value.setCustomLineItemId("customLineItemId"); + Assertions.assertThat(value.getCustomLineItemId()).isEqualTo("customLineItemId"); + } + + @Test + public void previousValue() { + ChangeCustomLineItemPriceRoundingModeChange value = ChangeCustomLineItemPriceRoundingModeChange.of(); + value.setPreviousValue(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")); + } + + @Test + public void nextValue() { + ChangeCustomLineItemPriceRoundingModeChange value = ChangeCustomLineItemPriceRoundingModeChange.of(); + value.setNextValue(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChangeTest.java new file mode 100644 index 00000000000..3841c3a13c2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeDiscountTypeCombinationChangeTest.java @@ -0,0 +1,50 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ChangeDiscountTypeCombinationChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ChangeDiscountTypeCombinationChangeBuilder builder) { + ChangeDiscountTypeCombinationChange changeDiscountTypeCombinationChange = builder.buildUnchecked(); + Assertions.assertThat(changeDiscountTypeCombinationChange) + .isInstanceOf(ChangeDiscountTypeCombinationChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ChangeDiscountTypeCombinationChange.builder().change("change") }, + new Object[] { "previousValue", ChangeDiscountTypeCombinationChange.builder() + .previousValue(new com.commercetools.history.models.common.DiscountTypeCombinationImpl()) }, + new Object[] { "nextValue", ChangeDiscountTypeCombinationChange.builder() + .nextValue(new com.commercetools.history.models.common.DiscountTypeCombinationImpl()) } }; + } + + @Test + public void change() { + ChangeDiscountTypeCombinationChange value = ChangeDiscountTypeCombinationChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ChangeDiscountTypeCombinationChange value = ChangeDiscountTypeCombinationChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.DiscountTypeCombinationImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.DiscountTypeCombinationImpl()); + } + + @Test + public void nextValue() { + ChangeDiscountTypeCombinationChange value = ChangeDiscountTypeCombinationChange.of(); + value.setNextValue(new com.commercetools.history.models.common.DiscountTypeCombinationImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.DiscountTypeCombinationImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChangeTest.java new file mode 100644 index 00000000000..3f4b7e34f4d --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeLineItemPriceRoundingModeChangeTest.java @@ -0,0 +1,77 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ChangeLineItemPriceRoundingModeChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ChangeLineItemPriceRoundingModeChangeBuilder builder) { + ChangeLineItemPriceRoundingModeChange changeLineItemPriceRoundingModeChange = builder.buildUnchecked(); + Assertions.assertThat(changeLineItemPriceRoundingModeChange) + .isInstanceOf(ChangeLineItemPriceRoundingModeChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ChangeLineItemPriceRoundingModeChange.builder().change("change") }, + new Object[] { "variant", ChangeLineItemPriceRoundingModeChange.builder().variant("variant") }, + new Object[] { "lineItem", + ChangeLineItemPriceRoundingModeChange.builder() + .lineItem(new com.commercetools.history.models.common.LocalizedStringImpl()) }, + new Object[] { "lineItemId", ChangeLineItemPriceRoundingModeChange.builder().lineItemId("lineItemId") }, + new Object[] { "previousValue", ChangeLineItemPriceRoundingModeChange.builder() + .previousValue(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")) }, + new Object[] { "nextValue", ChangeLineItemPriceRoundingModeChange.builder() + .nextValue(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")) } }; + } + + @Test + public void change() { + ChangeLineItemPriceRoundingModeChange value = ChangeLineItemPriceRoundingModeChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void variant() { + ChangeLineItemPriceRoundingModeChange value = ChangeLineItemPriceRoundingModeChange.of(); + value.setVariant("variant"); + Assertions.assertThat(value.getVariant()).isEqualTo("variant"); + } + + @Test + public void lineItem() { + ChangeLineItemPriceRoundingModeChange value = ChangeLineItemPriceRoundingModeChange.of(); + value.setLineItem(new com.commercetools.history.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getLineItem()) + .isEqualTo(new com.commercetools.history.models.common.LocalizedStringImpl()); + } + + @Test + public void lineItemId() { + ChangeLineItemPriceRoundingModeChange value = ChangeLineItemPriceRoundingModeChange.of(); + value.setLineItemId("lineItemId"); + Assertions.assertThat(value.getLineItemId()).isEqualTo("lineItemId"); + } + + @Test + public void previousValue() { + ChangeLineItemPriceRoundingModeChange value = ChangeLineItemPriceRoundingModeChange.of(); + value.setPreviousValue(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")); + } + + @Test + public void nextValue() { + ChangeLineItemPriceRoundingModeChange value = ChangeLineItemPriceRoundingModeChange.of(); + value.setNextValue(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(com.commercetools.history.models.common.RoundingMode.findEnum("HalfEven")); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChangeTest.java new file mode 100644 index 00000000000..1af45a35f29 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetDirectDiscountsChangeTest.java @@ -0,0 +1,81 @@ + +package com.commercetools.history.models.change; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class SetDirectDiscountsChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, SetDirectDiscountsChangeBuilder builder) { + SetDirectDiscountsChange setDirectDiscountsChange = builder.buildUnchecked(); + Assertions.assertThat(setDirectDiscountsChange).isInstanceOf(SetDirectDiscountsChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", SetDirectDiscountsChange.builder().change("change") }, + new Object[] { "addedItems", + SetDirectDiscountsChange.builder() + .addedItems(Collections.singletonList( + new com.commercetools.history.models.common.DirectDiscountImpl())) }, + new Object[] { "removedItems", + SetDirectDiscountsChange.builder() + .removedItems(Collections.singletonList( + new com.commercetools.history.models.common.DirectDiscountImpl())) }, + new Object[] { "previousValue", + SetDirectDiscountsChange.builder() + .previousValue(Collections.singletonList( + new com.commercetools.history.models.common.DirectDiscountImpl())) }, + new Object[] { "nextValue", + SetDirectDiscountsChange.builder() + .nextValue(Collections.singletonList( + new com.commercetools.history.models.common.DirectDiscountImpl())) } }; + } + + @Test + public void change() { + SetDirectDiscountsChange value = SetDirectDiscountsChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void addedItems() { + SetDirectDiscountsChange value = SetDirectDiscountsChange.of(); + value.setAddedItems( + Collections.singletonList(new com.commercetools.history.models.common.DirectDiscountImpl())); + Assertions.assertThat(value.getAddedItems()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.DirectDiscountImpl())); + } + + @Test + public void removedItems() { + SetDirectDiscountsChange value = SetDirectDiscountsChange.of(); + value.setRemovedItems( + Collections.singletonList(new com.commercetools.history.models.common.DirectDiscountImpl())); + Assertions.assertThat(value.getRemovedItems()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.DirectDiscountImpl())); + } + + @Test + public void previousValue() { + SetDirectDiscountsChange value = SetDirectDiscountsChange.of(); + value.setPreviousValue( + Collections.singletonList(new com.commercetools.history.models.common.DirectDiscountImpl())); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.DirectDiscountImpl())); + } + + @Test + public void nextValue() { + SetDirectDiscountsChange value = SetDirectDiscountsChange.of(); + value.setNextValue(Collections.singletonList(new com.commercetools.history.models.common.DirectDiscountImpl())); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.DirectDiscountImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetReferencesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetReferencesChangeTest.java new file mode 100644 index 00000000000..246668452f4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetReferencesChangeTest.java @@ -0,0 +1,77 @@ + +package com.commercetools.history.models.change; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class SetReferencesChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, SetReferencesChangeBuilder builder) { + SetReferencesChange setReferencesChange = builder.buildUnchecked(); + Assertions.assertThat(setReferencesChange).isInstanceOf(SetReferencesChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", SetReferencesChange.builder().change("change") }, + new Object[] { "addedItems", + SetReferencesChange.builder() + .addedItems(Collections + .singletonList(new com.commercetools.history.models.common.ReferenceImpl())) }, + new Object[] { "removedItems", + SetReferencesChange.builder() + .removedItems(Collections + .singletonList(new com.commercetools.history.models.common.ReferenceImpl())) }, + new Object[] { "previousValue", + SetReferencesChange.builder() + .previousValue(Collections + .singletonList(new com.commercetools.history.models.common.ReferenceImpl())) }, + new Object[] { "nextValue", SetReferencesChange.builder() + .nextValue( + Collections.singletonList(new com.commercetools.history.models.common.ReferenceImpl())) } }; + } + + @Test + public void change() { + SetReferencesChange value = SetReferencesChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void addedItems() { + SetReferencesChange value = SetReferencesChange.of(); + value.setAddedItems(Collections.singletonList(new com.commercetools.history.models.common.ReferenceImpl())); + Assertions.assertThat(value.getAddedItems()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.ReferenceImpl())); + } + + @Test + public void removedItems() { + SetReferencesChange value = SetReferencesChange.of(); + value.setRemovedItems(Collections.singletonList(new com.commercetools.history.models.common.ReferenceImpl())); + Assertions.assertThat(value.getRemovedItems()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.ReferenceImpl())); + } + + @Test + public void previousValue() { + SetReferencesChange value = SetReferencesChange.of(); + value.setPreviousValue(Collections.singletonList(new com.commercetools.history.models.common.ReferenceImpl())); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.ReferenceImpl())); + } + + @Test + public void nextValue() { + SetReferencesChange value = SetReferencesChange.of(); + value.setNextValue(Collections.singletonList(new com.commercetools.history.models.common.ReferenceImpl())); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.ReferenceImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChangeTest.java new file mode 100644 index 00000000000..767ae42ae52 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetShippingInfoDiscountedPriceChangeTest.java @@ -0,0 +1,50 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class SetShippingInfoDiscountedPriceChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, SetShippingInfoDiscountedPriceChangeBuilder builder) { + SetShippingInfoDiscountedPriceChange setShippingInfoDiscountedPriceChange = builder.buildUnchecked(); + Assertions.assertThat(setShippingInfoDiscountedPriceChange) + .isInstanceOf(SetShippingInfoDiscountedPriceChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", SetShippingInfoDiscountedPriceChange.builder().change("change") }, + new Object[] { "previousValue", SetShippingInfoDiscountedPriceChange.builder() + .previousValue(new com.commercetools.history.models.common.DiscountedLineItemPriceImpl()) }, + new Object[] { "nextValue", SetShippingInfoDiscountedPriceChange.builder() + .nextValue(new com.commercetools.history.models.common.DiscountedLineItemPriceImpl()) } }; + } + + @Test + public void change() { + SetShippingInfoDiscountedPriceChange value = SetShippingInfoDiscountedPriceChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + SetShippingInfoDiscountedPriceChange value = SetShippingInfoDiscountedPriceChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.DiscountedLineItemPriceImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.DiscountedLineItemPriceImpl()); + } + + @Test + public void nextValue() { + SetShippingInfoDiscountedPriceChange value = SetShippingInfoDiscountedPriceChange.of(); + value.setNextValue(new com.commercetools.history.models.common.DiscountedLineItemPriceImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.DiscountedLineItemPriceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChangeTest.java new file mode 100644 index 00000000000..eee695cc71a --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetShippingMethodTaxCategoryChangeTest.java @@ -0,0 +1,62 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class SetShippingMethodTaxCategoryChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, SetShippingMethodTaxCategoryChangeBuilder builder) { + SetShippingMethodTaxCategoryChange setShippingMethodTaxCategoryChange = builder.buildUnchecked(); + Assertions.assertThat(setShippingMethodTaxCategoryChange) + .isInstanceOf(SetShippingMethodTaxCategoryChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", SetShippingMethodTaxCategoryChange.builder().change("change") }, + new Object[] { "taxMode", + SetShippingMethodTaxCategoryChange.builder() + .taxMode(com.commercetools.history.models.common.TaxMode.findEnum("Platform")) }, + new Object[] { "previousValue", + SetShippingMethodTaxCategoryChange.builder() + .previousValue(new com.commercetools.history.models.common.ReferenceImpl()) }, + new Object[] { "nextValue", SetShippingMethodTaxCategoryChange.builder() + .nextValue(new com.commercetools.history.models.common.ReferenceImpl()) } }; + } + + @Test + public void change() { + SetShippingMethodTaxCategoryChange value = SetShippingMethodTaxCategoryChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void taxMode() { + SetShippingMethodTaxCategoryChange value = SetShippingMethodTaxCategoryChange.of(); + value.setTaxMode(com.commercetools.history.models.common.TaxMode.findEnum("Platform")); + Assertions.assertThat(value.getTaxMode()) + .isEqualTo(com.commercetools.history.models.common.TaxMode.findEnum("Platform")); + } + + @Test + public void previousValue() { + SetShippingMethodTaxCategoryChange value = SetShippingMethodTaxCategoryChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.ReferenceImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.ReferenceImpl()); + } + + @Test + public void nextValue() { + SetShippingMethodTaxCategoryChange value = SetShippingMethodTaxCategoryChange.of(); + value.setNextValue(new com.commercetools.history.models.common.ReferenceImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.ReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChangeTest.java new file mode 100644 index 00000000000..957c3f457ec --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetTaxedShippingPriceChangeTest.java @@ -0,0 +1,49 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class SetTaxedShippingPriceChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, SetTaxedShippingPriceChangeBuilder builder) { + SetTaxedShippingPriceChange setTaxedShippingPriceChange = builder.buildUnchecked(); + Assertions.assertThat(setTaxedShippingPriceChange).isInstanceOf(SetTaxedShippingPriceChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", SetTaxedShippingPriceChange.builder().change("change") }, + new Object[] { "previousValue", + SetTaxedShippingPriceChange.builder() + .previousValue(new com.commercetools.history.models.common.TaxedPriceImpl()) }, + new Object[] { "nextValue", SetTaxedShippingPriceChange.builder() + .nextValue(new com.commercetools.history.models.common.TaxedPriceImpl()) } }; + } + + @Test + public void change() { + SetTaxedShippingPriceChange value = SetTaxedShippingPriceChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + SetTaxedShippingPriceChange value = SetTaxedShippingPriceChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.TaxedPriceImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.TaxedPriceImpl()); + } + + @Test + public void nextValue() { + SetTaxedShippingPriceChange value = SetTaxedShippingPriceChange.of(); + value.setNextValue(new com.commercetools.history.models.common.TaxedPriceImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.TaxedPriceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChangeTest.java new file mode 100644 index 00000000000..7ecb1b1b289 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodAddShippingRateChangeTest.java @@ -0,0 +1,51 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodAddShippingRateChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodAddShippingRateChangeBuilder builder) { + ShippingMethodAddShippingRateChange shippingMethodAddShippingRateChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodAddShippingRateChange) + .isInstanceOf(ShippingMethodAddShippingRateChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ShippingMethodAddShippingRateChange.builder().change("change") }, + new Object[] { "zone", + ShippingMethodAddShippingRateChange.builder() + .zone(new com.commercetools.history.models.common.ZoneResourceIdentifierImpl()) }, + new Object[] { "nextValue", ShippingMethodAddShippingRateChange.builder() + .nextValue(new com.commercetools.history.models.common.ShippingRateImpl()) } }; + } + + @Test + public void change() { + ShippingMethodAddShippingRateChange value = ShippingMethodAddShippingRateChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void zone() { + ShippingMethodAddShippingRateChange value = ShippingMethodAddShippingRateChange.of(); + value.setZone(new com.commercetools.history.models.common.ZoneResourceIdentifierImpl()); + Assertions.assertThat(value.getZone()) + .isEqualTo(new com.commercetools.history.models.common.ZoneResourceIdentifierImpl()); + } + + @Test + public void nextValue() { + ShippingMethodAddShippingRateChange value = ShippingMethodAddShippingRateChange.of(); + value.setNextValue(new com.commercetools.history.models.common.ShippingRateImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.ShippingRateImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChangeTest.java new file mode 100644 index 00000000000..f5f078aed60 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodAddZoneChangeTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodAddZoneChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodAddZoneChangeBuilder builder) { + ShippingMethodAddZoneChange shippingMethodAddZoneChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodAddZoneChange).isInstanceOf(ShippingMethodAddZoneChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", ShippingMethodAddZoneChange.builder().change("change") }, + new Object[] { "nextValue", ShippingMethodAddZoneChange.builder() + .nextValue(new com.commercetools.history.models.common.ReferenceImpl()) } }; + } + + @Test + public void change() { + ShippingMethodAddZoneChange value = ShippingMethodAddZoneChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void nextValue() { + ShippingMethodAddZoneChange value = ShippingMethodAddZoneChange.of(); + value.setNextValue(new com.commercetools.history.models.common.ReferenceImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.ReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChangeTest.java new file mode 100644 index 00000000000..72289c54534 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeActiveChangeTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodChangeActiveChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodChangeActiveChangeBuilder builder) { + ShippingMethodChangeActiveChange shippingMethodChangeActiveChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodChangeActiveChange).isInstanceOf(ShippingMethodChangeActiveChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", ShippingMethodChangeActiveChange.builder().change("change") }, + new Object[] { "previousValue", ShippingMethodChangeActiveChange.builder().previousValue(true) }, + new Object[] { "nextValue", ShippingMethodChangeActiveChange.builder().nextValue(true) } }; + } + + @Test + public void change() { + ShippingMethodChangeActiveChange value = ShippingMethodChangeActiveChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodChangeActiveChange value = ShippingMethodChangeActiveChange.of(); + value.setPreviousValue(true); + Assertions.assertThat(value.getPreviousValue()).isEqualTo(true); + } + + @Test + public void nextValue() { + ShippingMethodChangeActiveChange value = ShippingMethodChangeActiveChange.of(); + value.setNextValue(true); + Assertions.assertThat(value.getNextValue()).isEqualTo(true); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChangeTest.java new file mode 100644 index 00000000000..f6c39ef4947 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeIsDefaultChangeTest.java @@ -0,0 +1,46 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodChangeIsDefaultChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodChangeIsDefaultChangeBuilder builder) { + ShippingMethodChangeIsDefaultChange shippingMethodChangeIsDefaultChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodChangeIsDefaultChange) + .isInstanceOf(ShippingMethodChangeIsDefaultChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ShippingMethodChangeIsDefaultChange.builder().change("change") }, + new Object[] { "previousValue", ShippingMethodChangeIsDefaultChange.builder().previousValue(true) }, + new Object[] { "nextValue", ShippingMethodChangeIsDefaultChange.builder().nextValue(true) } }; + } + + @Test + public void change() { + ShippingMethodChangeIsDefaultChange value = ShippingMethodChangeIsDefaultChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodChangeIsDefaultChange value = ShippingMethodChangeIsDefaultChange.of(); + value.setPreviousValue(true); + Assertions.assertThat(value.getPreviousValue()).isEqualTo(true); + } + + @Test + public void nextValue() { + ShippingMethodChangeIsDefaultChange value = ShippingMethodChangeIsDefaultChange.of(); + value.setNextValue(true); + Assertions.assertThat(value.getNextValue()).isEqualTo(true); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChangeTest.java new file mode 100644 index 00000000000..124d38cf606 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeNameChangeTest.java @@ -0,0 +1,45 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodChangeNameChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodChangeNameChangeBuilder builder) { + ShippingMethodChangeNameChange shippingMethodChangeNameChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodChangeNameChange).isInstanceOf(ShippingMethodChangeNameChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", ShippingMethodChangeNameChange.builder().change("change") }, + new Object[] { "previousValue", + ShippingMethodChangeNameChange.builder().previousValue("previousValue") }, + new Object[] { "nextValue", ShippingMethodChangeNameChange.builder().nextValue("nextValue") } }; + } + + @Test + public void change() { + ShippingMethodChangeNameChange value = ShippingMethodChangeNameChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodChangeNameChange value = ShippingMethodChangeNameChange.of(); + value.setPreviousValue("previousValue"); + Assertions.assertThat(value.getPreviousValue()).isEqualTo("previousValue"); + } + + @Test + public void nextValue() { + ShippingMethodChangeNameChange value = ShippingMethodChangeNameChange.of(); + value.setNextValue("nextValue"); + Assertions.assertThat(value.getNextValue()).isEqualTo("nextValue"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChangeTest.java new file mode 100644 index 00000000000..2e1ac40989c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodChangeTaxCategoryChangeTest.java @@ -0,0 +1,51 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodChangeTaxCategoryChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodChangeTaxCategoryChangeBuilder builder) { + ShippingMethodChangeTaxCategoryChange shippingMethodChangeTaxCategoryChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodChangeTaxCategoryChange) + .isInstanceOf(ShippingMethodChangeTaxCategoryChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ShippingMethodChangeTaxCategoryChange.builder().change("change") }, + new Object[] { "previousValue", + ShippingMethodChangeTaxCategoryChange.builder() + .previousValue(new com.commercetools.history.models.common.ReferenceImpl()) }, + new Object[] { "nextValue", ShippingMethodChangeTaxCategoryChange.builder() + .nextValue(new com.commercetools.history.models.common.ReferenceImpl()) } }; + } + + @Test + public void change() { + ShippingMethodChangeTaxCategoryChange value = ShippingMethodChangeTaxCategoryChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodChangeTaxCategoryChange value = ShippingMethodChangeTaxCategoryChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.ReferenceImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.ReferenceImpl()); + } + + @Test + public void nextValue() { + ShippingMethodChangeTaxCategoryChange value = ShippingMethodChangeTaxCategoryChange.of(); + value.setNextValue(new com.commercetools.history.models.common.ReferenceImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.ReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChangeTest.java new file mode 100644 index 00000000000..8fafdc5d7fe --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveShippingRateChangeTest.java @@ -0,0 +1,51 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodRemoveShippingRateChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodRemoveShippingRateChangeBuilder builder) { + ShippingMethodRemoveShippingRateChange shippingMethodRemoveShippingRateChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodRemoveShippingRateChange) + .isInstanceOf(ShippingMethodRemoveShippingRateChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ShippingMethodRemoveShippingRateChange.builder().change("change") }, + new Object[] { "zone", + ShippingMethodRemoveShippingRateChange.builder() + .zone(new com.commercetools.history.models.common.ZoneResourceIdentifierImpl()) }, + new Object[] { "previousValue", ShippingMethodRemoveShippingRateChange.builder() + .previousValue(new com.commercetools.history.models.common.ShippingRateImpl()) } }; + } + + @Test + public void change() { + ShippingMethodRemoveShippingRateChange value = ShippingMethodRemoveShippingRateChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void zone() { + ShippingMethodRemoveShippingRateChange value = ShippingMethodRemoveShippingRateChange.of(); + value.setZone(new com.commercetools.history.models.common.ZoneResourceIdentifierImpl()); + Assertions.assertThat(value.getZone()) + .isEqualTo(new com.commercetools.history.models.common.ZoneResourceIdentifierImpl()); + } + + @Test + public void previousValue() { + ShippingMethodRemoveShippingRateChange value = ShippingMethodRemoveShippingRateChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.ShippingRateImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.ShippingRateImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChangeTest.java new file mode 100644 index 00000000000..3b90280624f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodRemoveZoneChangeTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodRemoveZoneChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodRemoveZoneChangeBuilder builder) { + ShippingMethodRemoveZoneChange shippingMethodRemoveZoneChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodRemoveZoneChange).isInstanceOf(ShippingMethodRemoveZoneChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", ShippingMethodRemoveZoneChange.builder().change("change") }, + new Object[] { "previousValue", ShippingMethodRemoveZoneChange.builder() + .previousValue(new com.commercetools.history.models.common.ReferenceImpl()) } }; + } + + @Test + public void change() { + ShippingMethodRemoveZoneChange value = ShippingMethodRemoveZoneChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodRemoveZoneChange value = ShippingMethodRemoveZoneChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.ReferenceImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.ReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChangeTest.java new file mode 100644 index 00000000000..ef780b56f74 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomFieldChangeTest.java @@ -0,0 +1,64 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodSetCustomFieldChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodSetCustomFieldChangeBuilder builder) { + ShippingMethodSetCustomFieldChange shippingMethodSetCustomFieldChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodSetCustomFieldChange) + .isInstanceOf(ShippingMethodSetCustomFieldChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ShippingMethodSetCustomFieldChange.builder().change("change") }, + new Object[] { "name", ShippingMethodSetCustomFieldChange.builder().name("name") }, + new Object[] { "customTypeId", + ShippingMethodSetCustomFieldChange.builder().customTypeId("customTypeId") }, + new Object[] { "previousValue", + ShippingMethodSetCustomFieldChange.builder().previousValue("previousValue") }, + new Object[] { "nextValue", ShippingMethodSetCustomFieldChange.builder().nextValue("nextValue") } }; + } + + @Test + public void change() { + ShippingMethodSetCustomFieldChange value = ShippingMethodSetCustomFieldChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void name() { + ShippingMethodSetCustomFieldChange value = ShippingMethodSetCustomFieldChange.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } + + @Test + public void customTypeId() { + ShippingMethodSetCustomFieldChange value = ShippingMethodSetCustomFieldChange.of(); + value.setCustomTypeId("customTypeId"); + Assertions.assertThat(value.getCustomTypeId()).isEqualTo("customTypeId"); + } + + @Test + public void previousValue() { + ShippingMethodSetCustomFieldChange value = ShippingMethodSetCustomFieldChange.of(); + value.setPreviousValue("previousValue"); + Assertions.assertThat(value.getPreviousValue()).isEqualTo("previousValue"); + } + + @Test + public void nextValue() { + ShippingMethodSetCustomFieldChange value = ShippingMethodSetCustomFieldChange.of(); + value.setNextValue("nextValue"); + Assertions.assertThat(value.getNextValue()).isEqualTo("nextValue"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChangeTest.java new file mode 100644 index 00000000000..23af7f310fe --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetCustomTypeChangeTest.java @@ -0,0 +1,49 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodSetCustomTypeChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodSetCustomTypeChangeBuilder builder) { + ShippingMethodSetCustomTypeChange shippingMethodSetCustomTypeChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodSetCustomTypeChange).isInstanceOf(ShippingMethodSetCustomTypeChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", ShippingMethodSetCustomTypeChange.builder().change("change") }, + new Object[] { "previousValue", + ShippingMethodSetCustomTypeChange.builder() + .previousValue(new com.commercetools.history.models.common.CustomFieldsImpl()) }, + new Object[] { "nextValue", ShippingMethodSetCustomTypeChange.builder() + .nextValue(new com.commercetools.history.models.common.CustomFieldsImpl()) } }; + } + + @Test + public void change() { + ShippingMethodSetCustomTypeChange value = ShippingMethodSetCustomTypeChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodSetCustomTypeChange value = ShippingMethodSetCustomTypeChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.CustomFieldsImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.CustomFieldsImpl()); + } + + @Test + public void nextValue() { + ShippingMethodSetCustomTypeChange value = ShippingMethodSetCustomTypeChange.of(); + value.setNextValue(new com.commercetools.history.models.common.CustomFieldsImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.CustomFieldsImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChangeTest.java new file mode 100644 index 00000000000..bfa30d232e2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetKeyChangeTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodSetKeyChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodSetKeyChangeBuilder builder) { + ShippingMethodSetKeyChange shippingMethodSetKeyChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodSetKeyChange).isInstanceOf(ShippingMethodSetKeyChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", ShippingMethodSetKeyChange.builder().change("change") }, + new Object[] { "previousValue", ShippingMethodSetKeyChange.builder().previousValue("previousValue") }, + new Object[] { "nextValue", ShippingMethodSetKeyChange.builder().nextValue("nextValue") } }; + } + + @Test + public void change() { + ShippingMethodSetKeyChange value = ShippingMethodSetKeyChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodSetKeyChange value = ShippingMethodSetKeyChange.of(); + value.setPreviousValue("previousValue"); + Assertions.assertThat(value.getPreviousValue()).isEqualTo("previousValue"); + } + + @Test + public void nextValue() { + ShippingMethodSetKeyChange value = ShippingMethodSetKeyChange.of(); + value.setNextValue("nextValue"); + Assertions.assertThat(value.getNextValue()).isEqualTo("nextValue"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChangeTest.java new file mode 100644 index 00000000000..be85b70a281 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedDescriptionChangeTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodSetLocalizedDescriptionChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodSetLocalizedDescriptionChangeBuilder builder) { + ShippingMethodSetLocalizedDescriptionChange shippingMethodSetLocalizedDescriptionChange = builder + .buildUnchecked(); + Assertions.assertThat(shippingMethodSetLocalizedDescriptionChange) + .isInstanceOf(ShippingMethodSetLocalizedDescriptionChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ShippingMethodSetLocalizedDescriptionChange.builder().change("change") }, + new Object[] { "previousValue", + ShippingMethodSetLocalizedDescriptionChange.builder() + .previousValue(new com.commercetools.history.models.common.LocalizedStringImpl()) }, + new Object[] { "nextValue", ShippingMethodSetLocalizedDescriptionChange.builder() + .nextValue(new com.commercetools.history.models.common.LocalizedStringImpl()) } }; + } + + @Test + public void change() { + ShippingMethodSetLocalizedDescriptionChange value = ShippingMethodSetLocalizedDescriptionChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodSetLocalizedDescriptionChange value = ShippingMethodSetLocalizedDescriptionChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.LocalizedStringImpl()); + } + + @Test + public void nextValue() { + ShippingMethodSetLocalizedDescriptionChange value = ShippingMethodSetLocalizedDescriptionChange.of(); + value.setNextValue(new com.commercetools.history.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.LocalizedStringImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChangeTest.java new file mode 100644 index 00000000000..79fdc542375 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetLocalizedNameChangeTest.java @@ -0,0 +1,51 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodSetLocalizedNameChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodSetLocalizedNameChangeBuilder builder) { + ShippingMethodSetLocalizedNameChange shippingMethodSetLocalizedNameChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodSetLocalizedNameChange) + .isInstanceOf(ShippingMethodSetLocalizedNameChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", ShippingMethodSetLocalizedNameChange.builder().change("change") }, + new Object[] { "previousValue", + ShippingMethodSetLocalizedNameChange.builder() + .previousValue(new com.commercetools.history.models.common.LocalizedStringImpl()) }, + new Object[] { "nextValue", ShippingMethodSetLocalizedNameChange.builder() + .nextValue(new com.commercetools.history.models.common.LocalizedStringImpl()) } }; + } + + @Test + public void change() { + ShippingMethodSetLocalizedNameChange value = ShippingMethodSetLocalizedNameChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodSetLocalizedNameChange value = ShippingMethodSetLocalizedNameChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.LocalizedStringImpl()); + } + + @Test + public void nextValue() { + ShippingMethodSetLocalizedNameChange value = ShippingMethodSetLocalizedNameChange.of(); + value.setNextValue(new com.commercetools.history.models.common.LocalizedStringImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.LocalizedStringImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChangeTest.java new file mode 100644 index 00000000000..91067ff3a25 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ShippingMethodSetPredicateChangeTest.java @@ -0,0 +1,45 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodSetPredicateChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodSetPredicateChangeBuilder builder) { + ShippingMethodSetPredicateChange shippingMethodSetPredicateChange = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodSetPredicateChange).isInstanceOf(ShippingMethodSetPredicateChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", ShippingMethodSetPredicateChange.builder().change("change") }, + new Object[] { "previousValue", + ShippingMethodSetPredicateChange.builder().previousValue("previousValue") }, + new Object[] { "nextValue", ShippingMethodSetPredicateChange.builder().nextValue("nextValue") } }; + } + + @Test + public void change() { + ShippingMethodSetPredicateChange value = ShippingMethodSetPredicateChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + ShippingMethodSetPredicateChange value = ShippingMethodSetPredicateChange.of(); + value.setPreviousValue("previousValue"); + Assertions.assertThat(value.getPreviousValue()).isEqualTo("previousValue"); + } + + @Test + public void nextValue() { + ShippingMethodSetPredicateChange value = ShippingMethodSetPredicateChange.of(); + value.setNextValue("nextValue"); + Assertions.assertThat(value.getNextValue()).isEqualTo("nextValue"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChangeTest.java new file mode 100644 index 00000000000..4f01f0a5b3f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceChangeActiveChangeTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceChangeActiveChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceChangeActiveChangeBuilder builder) { + StandalonePriceChangeActiveChange standalonePriceChangeActiveChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceChangeActiveChange).isInstanceOf(StandalonePriceChangeActiveChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", StandalonePriceChangeActiveChange.builder().change("change") }, + new Object[] { "previousValue", StandalonePriceChangeActiveChange.builder().previousValue(true) }, + new Object[] { "nextValue", StandalonePriceChangeActiveChange.builder().nextValue(true) } }; + } + + @Test + public void change() { + StandalonePriceChangeActiveChange value = StandalonePriceChangeActiveChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + StandalonePriceChangeActiveChange value = StandalonePriceChangeActiveChange.of(); + value.setPreviousValue(true); + Assertions.assertThat(value.getPreviousValue()).isEqualTo(true); + } + + @Test + public void nextValue() { + StandalonePriceChangeActiveChange value = StandalonePriceChangeActiveChange.of(); + value.setNextValue(true); + Assertions.assertThat(value.getNextValue()).isEqualTo(true); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChangeTest.java new file mode 100644 index 00000000000..6c238275839 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceChangeValueChangeTest.java @@ -0,0 +1,56 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceChangeValueChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceChangeValueChangeBuilder builder) { + StandalonePriceChangeValueChange standalonePriceChangeValueChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceChangeValueChange).isInstanceOf(StandalonePriceChangeValueChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", StandalonePriceChangeValueChange.builder().change("change") }, + new Object[] { "staged", StandalonePriceChangeValueChange.builder().staged(true) }, + new Object[] { "previousValue", + StandalonePriceChangeValueChange.builder() + .previousValue(new com.commercetools.history.models.common.MoneyImpl()) }, + new Object[] { "nextValue", StandalonePriceChangeValueChange.builder() + .nextValue(new com.commercetools.history.models.common.MoneyImpl()) } }; + } + + @Test + public void change() { + StandalonePriceChangeValueChange value = StandalonePriceChangeValueChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void staged() { + StandalonePriceChangeValueChange value = StandalonePriceChangeValueChange.of(); + value.setStaged(true); + Assertions.assertThat(value.getStaged()).isEqualTo(true); + } + + @Test + public void previousValue() { + StandalonePriceChangeValueChange value = StandalonePriceChangeValueChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.MoneyImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.MoneyImpl()); + } + + @Test + public void nextValue() { + StandalonePriceChangeValueChange value = StandalonePriceChangeValueChange.of(); + value.setNextValue(new com.commercetools.history.models.common.MoneyImpl()); + Assertions.assertThat(value.getNextValue()).isEqualTo(new com.commercetools.history.models.common.MoneyImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChangeTest.java new file mode 100644 index 00000000000..efc39cf0642 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomFieldChangeTest.java @@ -0,0 +1,64 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceSetCustomFieldChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceSetCustomFieldChangeBuilder builder) { + StandalonePriceSetCustomFieldChange standalonePriceSetCustomFieldChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceSetCustomFieldChange) + .isInstanceOf(StandalonePriceSetCustomFieldChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", StandalonePriceSetCustomFieldChange.builder().change("change") }, + new Object[] { "name", StandalonePriceSetCustomFieldChange.builder().name("name") }, + new Object[] { "customTypeId", + StandalonePriceSetCustomFieldChange.builder().customTypeId("customTypeId") }, + new Object[] { "previousValue", + StandalonePriceSetCustomFieldChange.builder().previousValue("previousValue") }, + new Object[] { "nextValue", StandalonePriceSetCustomFieldChange.builder().nextValue("nextValue") } }; + } + + @Test + public void change() { + StandalonePriceSetCustomFieldChange value = StandalonePriceSetCustomFieldChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void name() { + StandalonePriceSetCustomFieldChange value = StandalonePriceSetCustomFieldChange.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } + + @Test + public void customTypeId() { + StandalonePriceSetCustomFieldChange value = StandalonePriceSetCustomFieldChange.of(); + value.setCustomTypeId("customTypeId"); + Assertions.assertThat(value.getCustomTypeId()).isEqualTo("customTypeId"); + } + + @Test + public void previousValue() { + StandalonePriceSetCustomFieldChange value = StandalonePriceSetCustomFieldChange.of(); + value.setPreviousValue("previousValue"); + Assertions.assertThat(value.getPreviousValue()).isEqualTo("previousValue"); + } + + @Test + public void nextValue() { + StandalonePriceSetCustomFieldChange value = StandalonePriceSetCustomFieldChange.of(); + value.setNextValue("nextValue"); + Assertions.assertThat(value.getNextValue()).isEqualTo("nextValue"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChangeTest.java new file mode 100644 index 00000000000..948fb5b66b5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetCustomTypeChangeTest.java @@ -0,0 +1,51 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceSetCustomTypeChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceSetCustomTypeChangeBuilder builder) { + StandalonePriceSetCustomTypeChange standalonePriceSetCustomTypeChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceSetCustomTypeChange) + .isInstanceOf(StandalonePriceSetCustomTypeChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", StandalonePriceSetCustomTypeChange.builder().change("change") }, + new Object[] { "previousValue", + StandalonePriceSetCustomTypeChange.builder() + .previousValue(new com.commercetools.history.models.common.CustomFieldsImpl()) }, + new Object[] { "nextValue", StandalonePriceSetCustomTypeChange.builder() + .nextValue(new com.commercetools.history.models.common.CustomFieldsImpl()) } }; + } + + @Test + public void change() { + StandalonePriceSetCustomTypeChange value = StandalonePriceSetCustomTypeChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + StandalonePriceSetCustomTypeChange value = StandalonePriceSetCustomTypeChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.CustomFieldsImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.CustomFieldsImpl()); + } + + @Test + public void nextValue() { + StandalonePriceSetCustomTypeChange value = StandalonePriceSetCustomTypeChange.of(); + value.setNextValue(new com.commercetools.history.models.common.CustomFieldsImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.CustomFieldsImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChangeTest.java new file mode 100644 index 00000000000..7a82d4c3e1b --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetDiscountedPriceChangeTest.java @@ -0,0 +1,59 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceSetDiscountedPriceChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceSetDiscountedPriceChangeBuilder builder) { + StandalonePriceSetDiscountedPriceChange standalonePriceSetDiscountedPriceChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceSetDiscountedPriceChange) + .isInstanceOf(StandalonePriceSetDiscountedPriceChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", StandalonePriceSetDiscountedPriceChange.builder().change("change") }, + new Object[] { "staged", StandalonePriceSetDiscountedPriceChange.builder().staged(true) }, + new Object[] { "previousValue", + StandalonePriceSetDiscountedPriceChange.builder() + .previousValue(new com.commercetools.history.models.common.DiscountedPriceImpl()) }, + new Object[] { "nextValue", StandalonePriceSetDiscountedPriceChange.builder() + .nextValue(new com.commercetools.history.models.common.DiscountedPriceImpl()) } }; + } + + @Test + public void change() { + StandalonePriceSetDiscountedPriceChange value = StandalonePriceSetDiscountedPriceChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void staged() { + StandalonePriceSetDiscountedPriceChange value = StandalonePriceSetDiscountedPriceChange.of(); + value.setStaged(true); + Assertions.assertThat(value.getStaged()).isEqualTo(true); + } + + @Test + public void previousValue() { + StandalonePriceSetDiscountedPriceChange value = StandalonePriceSetDiscountedPriceChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.DiscountedPriceImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.DiscountedPriceImpl()); + } + + @Test + public void nextValue() { + StandalonePriceSetDiscountedPriceChange value = StandalonePriceSetDiscountedPriceChange.of(); + value.setNextValue(new com.commercetools.history.models.common.DiscountedPriceImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.DiscountedPriceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChangeTest.java new file mode 100644 index 00000000000..26154da0fb6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetKeyChangeTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceSetKeyChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceSetKeyChangeBuilder builder) { + StandalonePriceSetKeyChange standalonePriceSetKeyChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceSetKeyChange).isInstanceOf(StandalonePriceSetKeyChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", StandalonePriceSetKeyChange.builder().change("change") }, + new Object[] { "previousValue", StandalonePriceSetKeyChange.builder().previousValue("previousValue") }, + new Object[] { "nextValue", StandalonePriceSetKeyChange.builder().nextValue("nextValue") } }; + } + + @Test + public void change() { + StandalonePriceSetKeyChange value = StandalonePriceSetKeyChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + StandalonePriceSetKeyChange value = StandalonePriceSetKeyChange.of(); + value.setPreviousValue("previousValue"); + Assertions.assertThat(value.getPreviousValue()).isEqualTo("previousValue"); + } + + @Test + public void nextValue() { + StandalonePriceSetKeyChange value = StandalonePriceSetKeyChange.of(); + value.setNextValue("nextValue"); + Assertions.assertThat(value.getNextValue()).isEqualTo("nextValue"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChangeTest.java new file mode 100644 index 00000000000..e411b0cede5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetPriceTiersChangeTest.java @@ -0,0 +1,79 @@ + +package com.commercetools.history.models.change; + +import java.util.Collections; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceSetPriceTiersChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceSetPriceTiersChangeBuilder builder) { + StandalonePriceSetPriceTiersChange standalonePriceSetPriceTiersChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceSetPriceTiersChange) + .isInstanceOf(StandalonePriceSetPriceTiersChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", StandalonePriceSetPriceTiersChange.builder().change("change") }, + new Object[] { "addedItems", + StandalonePriceSetPriceTiersChange.builder() + .addedItems(Collections + .singletonList(new com.commercetools.history.models.common.PriceTierImpl())) }, + new Object[] { "removedItems", + StandalonePriceSetPriceTiersChange.builder() + .removedItems(Collections + .singletonList(new com.commercetools.history.models.common.PriceTierImpl())) }, + new Object[] { "previousValue", + StandalonePriceSetPriceTiersChange.builder() + .previousValue(Collections + .singletonList(new com.commercetools.history.models.common.PriceTierImpl())) }, + new Object[] { "nextValue", StandalonePriceSetPriceTiersChange.builder() + .nextValue( + Collections.singletonList(new com.commercetools.history.models.common.PriceTierImpl())) } }; + } + + @Test + public void change() { + StandalonePriceSetPriceTiersChange value = StandalonePriceSetPriceTiersChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void addedItems() { + StandalonePriceSetPriceTiersChange value = StandalonePriceSetPriceTiersChange.of(); + value.setAddedItems(Collections.singletonList(new com.commercetools.history.models.common.PriceTierImpl())); + Assertions.assertThat(value.getAddedItems()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.PriceTierImpl())); + } + + @Test + public void removedItems() { + StandalonePriceSetPriceTiersChange value = StandalonePriceSetPriceTiersChange.of(); + value.setRemovedItems(Collections.singletonList(new com.commercetools.history.models.common.PriceTierImpl())); + Assertions.assertThat(value.getRemovedItems()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.PriceTierImpl())); + } + + @Test + public void previousValue() { + StandalonePriceSetPriceTiersChange value = StandalonePriceSetPriceTiersChange.of(); + value.setPreviousValue(Collections.singletonList(new com.commercetools.history.models.common.PriceTierImpl())); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.PriceTierImpl())); + } + + @Test + public void nextValue() { + StandalonePriceSetPriceTiersChange value = StandalonePriceSetPriceTiersChange.of(); + value.setNextValue(Collections.singletonList(new com.commercetools.history.models.common.PriceTierImpl())); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(Collections.singletonList(new com.commercetools.history.models.common.PriceTierImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChangeTest.java new file mode 100644 index 00000000000..5fe2aefe3d2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromAndUntilChangeTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceSetValidFromAndUntilChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceSetValidFromAndUntilChangeBuilder builder) { + StandalonePriceSetValidFromAndUntilChange standalonePriceSetValidFromAndUntilChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceSetValidFromAndUntilChange) + .isInstanceOf(StandalonePriceSetValidFromAndUntilChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", StandalonePriceSetValidFromAndUntilChange.builder().change("change") }, + new Object[] { "previousValue", + StandalonePriceSetValidFromAndUntilChange.builder() + .previousValue( + new com.commercetools.history.models.change_value.ValidFromAndUntilValueImpl()) }, + new Object[] { "nextValue", StandalonePriceSetValidFromAndUntilChange.builder() + .nextValue(new com.commercetools.history.models.change_value.ValidFromAndUntilValueImpl()) } }; + } + + @Test + public void change() { + StandalonePriceSetValidFromAndUntilChange value = StandalonePriceSetValidFromAndUntilChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + StandalonePriceSetValidFromAndUntilChange value = StandalonePriceSetValidFromAndUntilChange.of(); + value.setPreviousValue(new com.commercetools.history.models.change_value.ValidFromAndUntilValueImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.change_value.ValidFromAndUntilValueImpl()); + } + + @Test + public void nextValue() { + StandalonePriceSetValidFromAndUntilChange value = StandalonePriceSetValidFromAndUntilChange.of(); + value.setNextValue(new com.commercetools.history.models.change_value.ValidFromAndUntilValueImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.change_value.ValidFromAndUntilValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChangeTest.java new file mode 100644 index 00000000000..29d12c2f902 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidFromChangeTest.java @@ -0,0 +1,45 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceSetValidFromChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceSetValidFromChangeBuilder builder) { + StandalonePriceSetValidFromChange standalonePriceSetValidFromChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceSetValidFromChange).isInstanceOf(StandalonePriceSetValidFromChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "change", StandalonePriceSetValidFromChange.builder().change("change") }, + new Object[] { "previousValue", + StandalonePriceSetValidFromChange.builder().previousValue("previousValue") }, + new Object[] { "nextValue", StandalonePriceSetValidFromChange.builder().nextValue("nextValue") } }; + } + + @Test + public void change() { + StandalonePriceSetValidFromChange value = StandalonePriceSetValidFromChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + StandalonePriceSetValidFromChange value = StandalonePriceSetValidFromChange.of(); + value.setPreviousValue("previousValue"); + Assertions.assertThat(value.getPreviousValue()).isEqualTo("previousValue"); + } + + @Test + public void nextValue() { + StandalonePriceSetValidFromChange value = StandalonePriceSetValidFromChange.of(); + value.setNextValue("nextValue"); + Assertions.assertThat(value.getNextValue()).isEqualTo("nextValue"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChangeTest.java new file mode 100644 index 00000000000..4ab5b7317d0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/StandalonePriceSetValidUntilChangeTest.java @@ -0,0 +1,47 @@ + +package com.commercetools.history.models.change; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceSetValidUntilChangeTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceSetValidUntilChangeBuilder builder) { + StandalonePriceSetValidUntilChange standalonePriceSetValidUntilChange = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceSetValidUntilChange) + .isInstanceOf(StandalonePriceSetValidUntilChange.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "change", StandalonePriceSetValidUntilChange.builder().change("change") }, + new Object[] { "previousValue", + StandalonePriceSetValidUntilChange.builder().previousValue("previousValue") }, + new Object[] { "nextValue", StandalonePriceSetValidUntilChange.builder().nextValue("nextValue") } }; + } + + @Test + public void change() { + StandalonePriceSetValidUntilChange value = StandalonePriceSetValidUntilChange.of(); + value.setChange("change"); + Assertions.assertThat(value.getChange()).isEqualTo("change"); + } + + @Test + public void previousValue() { + StandalonePriceSetValidUntilChange value = StandalonePriceSetValidUntilChange.of(); + value.setPreviousValue("previousValue"); + Assertions.assertThat(value.getPreviousValue()).isEqualTo("previousValue"); + } + + @Test + public void nextValue() { + StandalonePriceSetValidUntilChange value = StandalonePriceSetValidUntilChange.of(); + value.setNextValue("nextValue"); + Assertions.assertThat(value.getNextValue()).isEqualTo("nextValue"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/BestDealTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/BestDealTest.java new file mode 100644 index 00000000000..38e41bcb43c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/BestDealTest.java @@ -0,0 +1,29 @@ + +package com.commercetools.history.models.common; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class BestDealTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, BestDealBuilder builder) { + BestDeal bestDeal = builder.buildUnchecked(); + Assertions.assertThat(bestDeal).isInstanceOf(BestDeal.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { "chosenDiscountType", BestDeal.builder().chosenDiscountType("chosenDiscountType") } }; + } + + @Test + public void chosenDiscountType() { + BestDeal value = BestDeal.of(); + value.setChosenDiscountType("chosenDiscountType"); + Assertions.assertThat(value.getChosenDiscountType()).isEqualTo("chosenDiscountType"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/DirectDiscountTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/DirectDiscountTest.java new file mode 100644 index 00000000000..fc9349ce7f0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/DirectDiscountTest.java @@ -0,0 +1,49 @@ + +package com.commercetools.history.models.common; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class DirectDiscountTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, DirectDiscountBuilder builder) { + DirectDiscount directDiscount = builder.buildUnchecked(); + Assertions.assertThat(directDiscount).isInstanceOf(DirectDiscount.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "id", DirectDiscount.builder().id("id") }, + new Object[] { "value", + DirectDiscount.builder() + .value(new com.commercetools.history.models.common.CartDiscountValueImpl()) }, + new Object[] { "target", DirectDiscount.builder() + .target(new com.commercetools.history.models.common.CartDiscountTargetImpl()) } }; + } + + @Test + public void id() { + DirectDiscount value = DirectDiscount.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void value() { + DirectDiscount value = DirectDiscount.of(); + value.setValue(new com.commercetools.history.models.common.CartDiscountValueImpl()); + Assertions.assertThat(value.getValue()) + .isEqualTo(new com.commercetools.history.models.common.CartDiscountValueImpl()); + } + + @Test + public void target() { + DirectDiscount value = DirectDiscount.of(); + value.setTarget(new com.commercetools.history.models.common.CartDiscountTargetImpl()); + Assertions.assertThat(value.getTarget()) + .isEqualTo(new com.commercetools.history.models.common.CartDiscountTargetImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/StackingTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/StackingTest.java new file mode 100644 index 00000000000..0d176bf4f1c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/StackingTest.java @@ -0,0 +1,6 @@ + +package com.commercetools.history.models.common; + +public class StackingTest { + +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifierTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifierTest.java new file mode 100644 index 00000000000..074ed6a5607 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/ZoneResourceIdentifierTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.history.models.common; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ZoneResourceIdentifierTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ZoneResourceIdentifierBuilder builder) { + ZoneResourceIdentifier zoneResourceIdentifier = builder.buildUnchecked(); + Assertions.assertThat(zoneResourceIdentifier).isInstanceOf(ZoneResourceIdentifier.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "id", ZoneResourceIdentifier.builder().id("id") }, + new Object[] { "key", ZoneResourceIdentifier.builder().key("key") } }; + } + + @Test + public void id() { + ZoneResourceIdentifier value = ZoneResourceIdentifier.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void key() { + ZoneResourceIdentifier value = ZoneResourceIdentifier.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/label/ShippingMethodLabelTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/label/ShippingMethodLabelTest.java new file mode 100644 index 00000000000..c93d5e3c879 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/label/ShippingMethodLabelTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.history.models.label; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class ShippingMethodLabelTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, ShippingMethodLabelBuilder builder) { + ShippingMethodLabel shippingMethodLabel = builder.buildUnchecked(); + Assertions.assertThat(shippingMethodLabel).isInstanceOf(ShippingMethodLabel.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "key", ShippingMethodLabel.builder().key("key") }, + new Object[] { "name", ShippingMethodLabel.builder().name("name") } }; + } + + @Test + public void key() { + ShippingMethodLabel value = ShippingMethodLabel.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } + + @Test + public void name() { + ShippingMethodLabel value = ShippingMethodLabel.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } +} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/label/StandalonePriceLabelTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/label/StandalonePriceLabelTest.java new file mode 100644 index 00000000000..6e49078f059 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/label/StandalonePriceLabelTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.history.models.label; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +public class StandalonePriceLabelTest { + + @ParameterizedTest(name = "#{index} with {0}") + @MethodSource("objectBuilder") + public void buildUnchecked(String name, StandalonePriceLabelBuilder builder) { + StandalonePriceLabel standalonePriceLabel = builder.buildUnchecked(); + Assertions.assertThat(standalonePriceLabel).isInstanceOf(StandalonePriceLabel.class); + } + + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { "key", StandalonePriceLabel.builder().key("key") }, + new Object[] { "sku", StandalonePriceLabel.builder().sku("sku") } }; + } + + @Test + public void key() { + StandalonePriceLabel value = StandalonePriceLabel.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } + + @Test + public void sku() { + StandalonePriceLabel value = StandalonePriceLabel.of(); + value.setSku("sku"); + Assertions.assertThat(value.getSku()).isEqualTo("sku"); + } +} diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..1b7abe7eb63 --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +4465506821491443b54a78f0459a455c97fc1cff diff --git a/references.txt b/references.txt index ab8b0327af2..8a91dd011ec 100644 --- a/references.txt +++ b/references.txt @@ -500,3 +500,17 @@ bfb534af33764ac81a3784290b35530d926fccf1 603e489748f9c32c1891d60d6f767892a8ea5207 dd952279caa05a020c427ea1899d4bf0897cb802 a3e408093873cfed8ced6708aa90deec2e7daa44 +89eb52374e92eaaae7deb3c863bce47531efddc7 +b5fec4fbabbe620e9007e5937f794799bbd68ee3 +053837aaa0191604eafa5aaaf8a09203075ad21f +d3cb53c9923eec30fa2e9c2a753ac19b94caa014 +c97b1be520cd26bc9401ef9dc14b1b15a2e71e77 +a9036bab196a3dde968700b8bcd043559ebeec2d +6298096bb01ac2075d96bfea807b7168d20ed5b9 +cfeb9640b4cf9fa824cb127eae48ed1b5485e542 +f3a3bef7b8cff61f85884a40a74d4baeb9d35b93 +cbeea260f9f18bcf07ccb45817d3243a37753972 +8ad4b29dfcc94ee497a2d38943174b3f15e119e6 +b5bff392d7576a913753815a876d62e929b30fb1 +2a88ce377b090f11908153e9de2141df11c04447 +3505c9432594c0f08addbb9e19eea2ea9ea7b2e0