diff --git a/api-java-mixin.raml b/api-java-mixin.raml index e14926c1d99..e30fe47bd6f 100644 --- a/api-java-mixin.raml +++ b/api-java-mixin.raml @@ -107,7 +107,7 @@ types: CustomObjectPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' CustomObjectReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' Customer: (java-extends): 'CustomerMixin, com.commercetools.api.models.DomainResource, com.commercetools.api.models.Referencable, com.commercetools.api.models.ResourceIdentifiable, com.commercetools.api.models.Customizable, com.commercetools.api.models.WithKey' (java-mixin): | @@ -123,7 +123,7 @@ types: CustomerPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' CustomerReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' CustomerResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' CustomerUpdate: @@ -157,7 +157,7 @@ types: CustomerGroupPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' CustomerGroupReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' CustomerGroupResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' CustomerGroupUpdate: @@ -190,7 +190,7 @@ types: DiscountCodePagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' DiscountCodeReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' DiscountCodeResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' DiscountCodeUpdate: @@ -230,7 +230,7 @@ types: InventoryPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' InventoryEntryReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' InventoryEntryResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' InventoryEntryUpdate: @@ -259,7 +259,7 @@ types: OrderPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' OrderReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' OrderUpdate: (java-extends): 'com.commercetools.api.models.ResourceUpdate' OrderUpdateAction: @@ -330,7 +330,7 @@ types: OrderEditPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' OrderEditReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' OrderEditResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' OrderEditUpdate: @@ -428,7 +428,7 @@ types: PaymentPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' PaymentReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' PaymentResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' PaymentUpdate: @@ -486,7 +486,7 @@ types: ProductProjectionPagedSearchResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' ProductReference: - (java-extends): 'com.commercetools.api.models.Identifiable, ProductReferenceMixin' + (java-extends): 'com.commercetools.api.models.Identifiable, ProductReferenceMixin, com.commercetools.api.models.IdentifiableObjHolder' ProductResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' ProductUpdate: @@ -577,7 +577,7 @@ types: ProductDiscountPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' ProductDiscountReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' ProductDiscountResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' ProductDiscountUpdate: @@ -601,7 +601,7 @@ types: ProductTypePagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' ProductTypeReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' ProductTypeResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' ProductTypeUpdate: @@ -642,7 +642,7 @@ types: ProductSelectionProductPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' ProductSelectionReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' ProductSelectionResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' ProductSelectionUpdate: @@ -669,7 +669,7 @@ types: QuotePagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' QuoteReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' QuoteResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' QuoteUpdate: @@ -685,7 +685,7 @@ types: QuoteRequestPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' QuoteRequestReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' QuoteRequestResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' QuoteRequestUpdate: @@ -736,7 +736,7 @@ types: ReviewPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' ReviewReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' ReviewResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' ReviewUpdate: @@ -770,7 +770,7 @@ types: ShippingMethodPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' ShippingMethodReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' ShippingMethodResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' ShippingMethodUpdate: @@ -799,7 +799,7 @@ types: ShoppingListPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' ShoppingListReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' ShoppingListResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' ShoppingListUpdate: @@ -858,7 +858,7 @@ types: StagedQuotePagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' StagedQuoteReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' StagedQuoteResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' StagedQuoteUpdate: @@ -902,7 +902,7 @@ types: StatePagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' StateReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' StateResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' StateUpdate: @@ -922,7 +922,7 @@ types: StorePagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' StoreReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' StoreResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' StoreUpdate: @@ -967,7 +967,7 @@ types: TaxCategoryPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' TaxCategoryReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' TaxCategoryResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' TaxCategoryUpdate: @@ -1005,7 +1005,7 @@ types: ZonePagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' ZoneReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' ZoneResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' ZoneUpdate: @@ -1091,7 +1091,7 @@ types: (java-extends): 'com.commercetools.api.models.WithKey' (java-builder-implements): 'ResourceIdentifierBuilderMixin' TypeReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' (java-mixin): | @Override public default TypeResourceIdentifier toResourceIdentifier() { @@ -1129,7 +1129,7 @@ types: AttributeReference: (java-extends): 'com.commercetools.api.models.WithKey' AttributeGroupReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' AttributeGroupResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' AttributeGroupPagedQueryResponse: @@ -1151,7 +1151,7 @@ types: BusinessUnitPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' BusinessUnitReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' BusinessUnitResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' BusinessUnitUpdate: @@ -1174,7 +1174,7 @@ types: CartPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' CartReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' CartResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' CartUpdate: @@ -1231,7 +1231,7 @@ types: CategoryPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' CategoryReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' CategoryResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' @@ -1255,7 +1255,7 @@ types: CartDiscountPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' CartDiscountReference: - (java-extends): 'com.commercetools.api.models.Identifiable' + (java-extends): 'com.commercetools.api.models.Identifiable, com.commercetools.api.models.IdentifiableObjHolder' CartDiscountResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' CartDiscountUpdate: @@ -1282,7 +1282,7 @@ types: ChannelPagedQueryResponse: (java-extends): 'com.commercetools.api.models.ResourcePagedQueryResponse' ChannelReference: - (java-extends): 'com.commercetools.api.models.Identifiable, ChannelReferenceMixin' + (java-extends): 'com.commercetools.api.models.Identifiable, ChannelReferenceMixin, com.commercetools.api.models.IdentifiableObjHolder' ChannelResourceIdentifier: (java-extends): 'com.commercetools.api.models.Identifiable' ChannelUpdate: diff --git a/changes.md b/changes.md index b79290f0c86..e925826e5fd 100644 --- a/changes.md +++ b/changes.md @@ -3,86 +3,15 @@
Added Type(s) -- added type `ApprovalFlowSetCustomFieldAction` -- added type `ApprovalFlowSetCustomTypeAction` -
- - -
-Removed Type(s) - -- :warning: removed type `NotEnabledError` -- :warning: removed type `GraphQLNotEnabledError` -
- - -
-Added Property(s) - -- added property `custom` to type `ApprovalFlow` -
- - -
-Added Enum(s) - -- added enum `associate-role` to type `AttributeReferenceTypeId` -- added enum `business-unit` to type `AttributeReferenceTypeId` -- added enum `cart-discount` to type `AttributeReferenceTypeId` -- added enum `approval-flow` to type `CustomFieldReferenceValue` -- added enum `approval-flow` to type `ResourceTypeId` -
- -**History changes** - -
-Added Type(s) - -- added type `AttributeLocalizedEnumValue` -- added type `AttributePlainEnumValue` -- added type `ChannelRoleEnum` -- added type `StateRoleEnum` -- added type `StateTypeEnum` -
- - -
-Removed Type(s) - -- :warning: removed type `ChannelRole` -- :warning: removed type `StateRole` -- :warning: removed type `StateType` -
- - -
-Removed Property(s) - -- :warning: removed property `previousValue` from type `AddAddressChange` -- :warning: removed property `previousValue` from type `AddLocationChange` -- :warning: removed property `nextValue` from type `RemoveLocationChange` -- :warning: removed property `nextValue` from type `RemoveTaxRateChange` -
- - -
-Changed Property(s) - -- :warning: changed property `previousValue` of type `AddChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `nextValue` of type `AddChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `nextValue` of type `AddLocalizedEnumValueChange` from type `LocalizedEnumValue` to `AttributeLocalizedEnumValue` -- :warning: changed property `nextValue` of type `AddPlainEnumValueChange` from type `EnumValue` to `AttributePlainEnumValue` -- :warning: changed property `previousValue` of type `AddStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `nextValue` of type `AddStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `previousValue` of type `ChangeStateTypeChange` from type `StateType` to `StateTypeEnum` -- :warning: changed property `nextValue` of type `ChangeStateTypeChange` from type `StateType` to `StateTypeEnum` -- :warning: changed property `previousValue` of type `RemoveChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `nextValue` of type `RemoveChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `previousValue` of type `RemoveStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `nextValue` of type `RemoveStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `previousValue` of type `SetChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `nextValue` of type `SetChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `previousValue` of type `SetStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `nextValue` of type `SetStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` +- added type `CartDiscountCreatedMessage` +- added type `CartDiscountDeletedMessage` +- added type `CartDiscountStoreAddedMessage` +- added type `CartDiscountStoreRemovedMessage` +- added type `CartDiscountStoresSetMessage` +- added type `CartDiscountCreatedMessagePayload` +- added type `CartDiscountDeletedMessagePayload` +- added type `CartDiscountStoreAddedMessagePayload` +- added type `CartDiscountStoreRemovedMessagePayload` +- added type `CartDiscountStoresSetMessagePayload`
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 399b18cbfec..d443f039640 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -726,10 +726,10 @@ type ApprovalFlowRejection { } input ApprovalFlowUpdateAction { - approve: ApproveApprovalFlow reject: RejectApprovalFlow setCustomField: SetApprovalFlowCustomField setCustomType: SetApprovalFlowCustomType + approve: ApproveApprovalFlow } type ApprovalRule implements Versioned { @@ -821,13 +821,13 @@ type ApprovalRuleStatusSet implements MessagePayload { } input ApprovalRuleUpdateAction { - setApprovers: SetApprovalRuleApprovers setKey: SetApprovalRuleKey setName: SetApprovalRuleName setDescription: SetApprovalRuleDescription setPredicate: SetApprovalRulePredicate setRequesters: SetApprovalRuleRequesters setStatus: SetApprovalRuleStatus + setApprovers: SetApprovalRuleApprovers } input ApproveApprovalFlow { @@ -1213,7 +1213,7 @@ input AttributeTypeDraft { ltext: SimpleAttributeTypeDraft } -"AuthenticationMode values. BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +"AuthenticationMode values." enum AuthenticationMode { ExternalAuth Password @@ -1251,17 +1251,6 @@ input AzureServiceBusDestinationInput { connectionString: String! } -input CartDiscountValueBaseMoneyInput { - centPrecision: MoneyInput - highPrecision: HighPrecisionMoneyInput - - "CurrencyCode and centAmount are deprecated. Please use `Money`(centPrecision) or `HighPrecisionMoney`(highPrecision)." - currencyCode: Currency - - "CurrencyCode and centAmount are deprecated. Please use `Money`(centPrecision) or `HighPrecisionMoney`(highPrecision)." - centAmount: Long -} - interface BaseMoney { type: String! currencyCode: Currency! @@ -1734,6 +1723,15 @@ type CartDiscount implements Versioned & ReferenceExpandable { lastModifiedBy: Initiator } +type CartDiscountCreated implements MessagePayload { + cartDiscount: CartDiscount! + type: String! +} + +type CartDiscountDeleted implements MessagePayload { + type: String! +} + input CartDiscountDraft { value: CartDiscountValueInput! cartPredicate: String! @@ -1779,6 +1777,24 @@ type CartDiscountQueryResult { results: [CartDiscount!]! } +type CartDiscountStoreAdded implements MessagePayload { + store: Store! + storeRef: KeyReference! + type: String! +} + +type CartDiscountStoreRemoved implements MessagePayload { + store: Store! + storeRef: KeyReference! + type: String! +} + +type CartDiscountStoresSet implements MessagePayload { + storesRef: [KeyReference!]! + stores: [Store!]! + type: String! +} + interface CartDiscountTarget { type: String! } @@ -1825,6 +1841,17 @@ interface CartDiscountValue { type: String! } +input CartDiscountValueBaseMoneyInput { + centPrecision: MoneyInput + highPrecision: HighPrecisionMoneyInput + + "CurrencyCode and centAmount are deprecated. Please use `Money`(centPrecision) or `HighPrecisionMoney`(highPrecision)." + currencyCode: Currency + + "CurrencyCode and centAmount are deprecated. Please use `Money`(centPrecision) or `HighPrecisionMoney`(highPrecision)." + centAmount: Long +} + input CartDiscountValueInput { relative: RelativeDiscountValueInput absolute: AbsoluteDiscountValueInput @@ -1874,14 +1901,14 @@ type CartLimitsProjection { } enum CartOrigin { - "The cart was created by our platform and belongs to a Quote." - Quote + "The cart was created by the customer. This is the default value" + Customer "The cart was created by the merchant on behalf of the customer" Merchant - "The cart was created by the customer. This is the default value" - Customer + "The cart was created by our platform and belongs to a Quote." + Quote } "Fields to access carts. Includes direct access to a single cart and searching for carts." @@ -3665,8 +3692,6 @@ input CustomerSignUpDraft { customerGroup: ResourceIdentifierInput isEmailVerified: Boolean anonymousId: String - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" authenticationMode: AuthenticationMode } @@ -3957,6 +3982,13 @@ input DiscountCodeUpdateAction { setValidUntil: SetDiscountCodeValidUntil } +type DiscountOnTotalPrice { + discountedAmount: BaseMoney! + includedDiscounts: [DiscountedTotalPricePortion!]! + discountedNetAmount: BaseMoney + discountedGrossAmount: BaseMoney +} + type DiscountedLineItemPortion { discount: CartDiscount discountRef: Reference! @@ -4273,8 +4305,8 @@ input FieldTypeSetTypeDraft { } type FixedPriceDiscountValue implements CartDiscountValue { - money: [BaseMoney!]! type: String! + money: [BaseMoney!]! } input FixedPriceDiscountValueInput { @@ -5395,9 +5427,15 @@ type Mutation { createDiscountCode(draft: DiscountCodeDraft!): DiscountCode updateDiscountCode(id: String!, version: Long!, actions: [DiscountCodeUpdateAction!]!): DiscountCode deleteDiscountCode(id: String!, version: Long!): DiscountCode - createCartDiscount(draft: CartDiscountDraft!): CartDiscount + createCartDiscount(draft: CartDiscountDraft!, + + "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." + storeKey: KeyReferenceInput): CartDiscount updateCartDiscount(version: Long!, actions: [CartDiscountUpdateAction!]!, + "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." + storeKey: KeyReferenceInput, + "Queries with specified ID" id: String, @@ -5405,6 +5443,9 @@ type Mutation { key: String): CartDiscount deleteCartDiscount(version: Long!, + "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." + storeKey: KeyReferenceInput, + "Queries with specified ID" id: String, @@ -6439,17 +6480,6 @@ type OrderCustomFieldRemoved implements MessagePayload & OrderMessagePayload { type: String! } -type OrderCustomTypeRemoved implements MessagePayload & OrderMessagePayload { - previousTypeId: String - type: String! -} - -type OrderCustomTypeSet implements MessagePayload & OrderMessagePayload { - customFields: CustomFieldsType! - previousTypeId: String - type: String! -} - type OrderCustomLineItemAdded implements MessagePayload & OrderMessagePayload { customLineItem: CustomLineItem! type: String! @@ -6478,6 +6508,17 @@ type OrderCustomLineItemRemoved implements MessagePayload & OrderMessagePayload type: String! } +type OrderCustomTypeRemoved implements MessagePayload & OrderMessagePayload { + previousTypeId: String + type: String! +} + +type OrderCustomTypeSet implements MessagePayload & OrderMessagePayload { + customFields: CustomFieldsType! + previousTypeId: String + type: String! +} + type OrderCustomerEmailSet implements MessagePayload & OrderMessagePayload { email: String oldEmail: String @@ -7218,8 +7259,6 @@ type ProductAssignment { productSelectionRef: Reference! productSelection: ProductSelection variantSelection: ProductVariantSelection - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" variantExclusion: ProductVariantExclusion } @@ -7487,8 +7526,6 @@ type ProductOfSelection { productRef: Reference! product: Product variantSelection: ProductVariantSelection - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" variantExclusion: ProductVariantExclusion } @@ -7904,7 +7941,7 @@ enum ProductSelectionMode { "Mode of Product Selection used to include a specific list of individual Products" Individual - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta. Mode of Product Selection used to exclude a specific list of individual Products" + "Mode of Product Selection used to exclude a specific list of individual Products" IndividualExclusion } @@ -7915,7 +7952,6 @@ type ProductSelectionProductAdded 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 ProductSelectionProductExcluded implements MessagePayload { variantExclusion: ProductVariantExclusion product: Product @@ -7961,20 +7997,15 @@ input ProductSelectionSettingInActionInput { input ProductSelectionUpdateAction { addProduct: AddProductSelectionProduct changeName: ChangeProductSelectionName - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" excludeProduct: ExcludeProductSelectionProduct removeProduct: RemoveProductSelectionProduct setCustomField: SetProductSelectionCustomField setCustomType: SetProductSelectionCustomType setKey: SetProductSelectionKey - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setVariantExclusion: SetProductSelectionVariantExclusion setVariantSelection: SetProductSelectionVariantSelection } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ProductSelectionVariantExclusionChanged implements MessagePayload { oldVariantExclusion: ProductVariantExclusion newVariantExclusion: ProductVariantExclusion @@ -8227,12 +8258,10 @@ type ProductVariantDeleted 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 ProductVariantExclusion { 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" input ProductVariantExclusionDraft { skus: [String!] } @@ -8280,6 +8309,7 @@ type ProjectCustomLimitsProjection { products: ProductLimitsProjection! shoppingLists: ShoppingListLimitsProjection! extensions: ExtensionLimitsProjection! + subscriptions: SubscriptionsLimitsProjection! productDiscounts: ProductDiscountLimitsProjection! cartDiscounts: CartDiscountLimitsProjection! orderEdits: OrderEditLimitsProjection! @@ -9662,7 +9692,6 @@ type ScoreShippingRateInputDraftOutput implements ShippingRateInputDraftOutput { } input SearchFacetInput { - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" model: SearchFacetModelInput string: String } @@ -9673,7 +9702,6 @@ input SearchFacetModelInput { } input SearchFilterInput { - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" model: SearchFilterModelInput string: String } @@ -9752,7 +9780,6 @@ type SelectionOfProduct { productSelectionRef: Reference! productSelection: ProductSelection variantSelection: ProductVariantSelection - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" variantExclusion: ProductVariantExclusion createdAt: DateTime! } @@ -13231,6 +13258,10 @@ input SubscriptionUpdateAction { setMessages: SetSubscriptionMessages } +type SubscriptionsLimitsProjection { + maxSubscriptions: Limit! +} + type SuggestResult { searchKeywords: [SuggestResultEntry!]! } @@ -13528,13 +13559,6 @@ type TimeType implements FieldType { name: String! } -type DiscountOnTotalPrice { - discountedAmount: BaseMoney! - includedDiscounts: [DiscountedTotalPricePortion!]! - discountedNetAmount: BaseMoney - discountedGrossAmount: BaseMoney -} - type TrackingData { trackingId: String carrier: String diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDDelete.java index 48feff37540..af76f18f60d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDDelete.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - * + *

Deleting a Cart Discount produces the CartDiscountDeleted Message.

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

Deleting a Cart Discount produces the CartDiscountDeleted Message.

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

Creating a Cart Discount produces the CartDiscountCreated Message.

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

Creating a Cart Discount produces the CartDiscountCreated Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDDelete.java index 940f32891d2..605809ed0a1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDDelete.java @@ -21,6 +21,7 @@ /** *

To delete a CartDiscount, specify the manage_cart_discounts:{projectKey}:{storeKey} scope for all Stores associated with the CartDiscount.

+ *

Deleting a Cart Discount produces the CartDiscountDeleted Message.

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

To delete a CartDiscount, specify the manage_cart_discounts:{projectKey}:{storeKey} scope for all Stores associated with the CartDiscount.

+ *

Deleting a Cart Discount produces the CartDiscountDeleted Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost.java index 8bb51b40a96..2a5ca1d0673 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost.java @@ -21,6 +21,7 @@ /** *

When using the endpoint, the Store specified in the path and the Stores specified in the payload's stores field are added to the CartDiscount.

+ *

Creating a Cart Discount produces the CartDiscountCreated Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString.java index 0f69d573a22..4e393369147 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString.java @@ -22,6 +22,7 @@ /** *

When using the endpoint, the Store specified in the path and the Stores specified in the payload's stores field are added to the CartDiscount.

+ *

Creating a Cart Discount produces the CartDiscountCreated Message.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReference.java index 9b327f0f521..f31c546b8cf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/attribute_group/AttributeGroupReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = AttributeGroupReferenceImpl.class) -public interface AttributeGroupReference extends Reference, com.commercetools.api.models.Identifiable { +public interface AttributeGroupReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for AttributeGroupReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitReference.java index feee2a6bdf8..911366a2c95 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = BusinessUnitReferenceImpl.class) -public interface BusinessUnitReference extends Reference, com.commercetools.api.models.Identifiable { +public interface BusinessUnitReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for BusinessUnitReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartReference.java index 7faa097c534..b0cbf8055cd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = CartReferenceImpl.class) -public interface CartReference extends Reference, com.commercetools.api.models.Identifiable { +public interface CartReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for CartReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartState.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartState.java index 95e7fee6e52..3ae65a1b43a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartState.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartState.java @@ -22,12 +22,12 @@ public interface CartState extends JsonEnum { */ CartState ACTIVE = CartStateEnum.ACTIVE; /** -

An anonymous Cart was merged into a Customer's Cart on sign-in, and no further operations are allowed on the Cart.

+

An anonymous Cart was merged into a Customer's Cart on sign-in, and no further operations are allowed on the Cart.

*/ CartState MERGED = CartStateEnum.MERGED; /** -

A Cart was ordered, and no further operations are allowed on the Cart.

+

A Cart was ordered, and no further operations are allowed on the Cart.

*/ CartState ORDERED = CartStateEnum.ORDERED; 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 96963b6096f..2e98f238059 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 @@ -24,13 +24,13 @@ 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 Line Item quantity is zero or negative, but 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. + 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.

However, an Order can be created if the InventoryEntry restockableInDays is set (including 0).

diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemMode.java index 464cf15fe46..b3ebe37c73c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemMode.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemMode.java @@ -17,7 +17,7 @@ public interface LineItemMode extends JsonEnum { /** -

The Line Item is added during Cart creation or using the Add LineItem update action. +

The Line Item is added during Cart creation or using the Add LineItem update action. The Line Item quantity can be changed without restriction.

*/ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountAddStoreAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountAddStoreAction.java index ef6d336265d..f821ed6936c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountAddStoreAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountAddStoreAction.java @@ -17,6 +17,7 @@ /** *

If a referenced Store does not exist, a ReferencedResourceNotFound error is returned.

+ *

This action generates a CartDiscountStoreAdded 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/cart_discount/CartDiscountAddStoreActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountAddStoreActionImpl.java index 1da80c2a537..017956542a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountAddStoreActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountAddStoreActionImpl.java @@ -18,6 +18,7 @@ /** *

If a referenced Store does not exist, a ReferencedResourceNotFound error is returned.

+ *

This action generates a CartDiscountStoreAdded Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CartDiscountAddStoreActionImpl implements CartDiscountAddStoreAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountReference.java index 4a4e6f5510c..2593c616f59 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = CartDiscountReferenceImpl.class) -public interface CartDiscountReference extends Reference, com.commercetools.api.models.Identifiable { +public interface CartDiscountReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for CartDiscountReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountRemoveStoreAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountRemoveStoreAction.java index e9109d8be70..9a5a1556875 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountRemoveStoreAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountRemoveStoreAction.java @@ -17,6 +17,7 @@ /** *

If a referenced Store does not exist, a ReferencedResourceNotFound error is returned.

+ *

This action generates a CartDiscountStoreRemoved 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/cart_discount/CartDiscountRemoveStoreActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountRemoveStoreActionImpl.java index d7d3f57678a..ae414ff828e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountRemoveStoreActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountRemoveStoreActionImpl.java @@ -18,6 +18,7 @@ /** *

If a referenced Store does not exist, a ReferencedResourceNotFound error is returned.

+ *

This action generates a CartDiscountStoreRemoved Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CartDiscountRemoveStoreActionImpl implements CartDiscountRemoveStoreAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountSetStoresAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountSetStoresAction.java index b89a112e0d5..9c0adcb03c9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountSetStoresAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountSetStoresAction.java @@ -17,6 +17,7 @@ /** *

If a referenced Store does not exist, a ReferencedResourceNotFound error is returned.

+ *

This action generates a CartDiscountStoresSet 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/cart_discount/CartDiscountSetStoresActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountSetStoresActionImpl.java index 5eccc12212b..8ec8d4b7324 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountSetStoresActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountSetStoresActionImpl.java @@ -18,6 +18,7 @@ /** *

If a referenced Store does not exist, a ReferencedResourceNotFound error is returned.

+ *

This action generates a CartDiscountStoresSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CartDiscountSetStoresActionImpl implements CartDiscountSetStoresAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryReference.java index 0dc95e37f1f..347f3afc254 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = CategoryReferenceImpl.class) -public interface CategoryReference extends Reference, com.commercetools.api.models.Identifiable { +public interface CategoryReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for CategoryReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/channel/ChannelReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/channel/ChannelReference.java index 318caee9b88..0e9cdce85a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/channel/ChannelReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/channel/ChannelReference.java @@ -30,8 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ChannelReferenceImpl.class) -public interface ChannelReference - extends Reference, com.commercetools.api.models.Identifiable, ChannelReferenceMixin { +public interface ChannelReference extends Reference, com.commercetools.api.models.Identifiable, + ChannelReferenceMixin, com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for ChannelReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/custom_object/CustomObjectReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/custom_object/CustomObjectReference.java index 9494eccc770..4deacdc6a03 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/custom_object/CustomObjectReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/custom_object/CustomObjectReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = CustomObjectReferenceImpl.class) -public interface CustomObjectReference extends Reference, com.commercetools.api.models.Identifiable { +public interface CustomObjectReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for CustomObjectReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerReference.java index aab40b03807..bc42c54b826 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = CustomerReferenceImpl.class) -public interface CustomerReference extends Reference, com.commercetools.api.models.Identifiable { +public interface CustomerReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for CustomerReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameAction.java index 7b1a3ae3fac..a699efdaeda 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * CustomerSetFirstNameAction + *

Setting the first name of the Customer produces the CustomeFirstNameSet 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/CustomerSetFirstNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionImpl.java index bb54f43a690..5eb2e801d3e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetFirstNameActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * CustomerSetFirstNameAction + *

Setting the first name of the Customer produces the CustomeFirstNameSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetFirstNameActionImpl implements CustomerSetFirstNameAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameAction.java index cfce06300c7..977d1f61c8e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Setting the last name of the Customer produces the CustomerLastNameSetMessage.

+ *

Setting the last name of the Customer produces the CustomerLastNameSet 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/CustomerSetLastNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionImpl.java index 7366c610ea8..e7e11a67590 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetLastNameActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

Setting the last name of the Customer produces the CustomerLastNameSetMessage.

+ *

Setting the last name of the Customer produces the CustomerLastNameSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetLastNameActionImpl implements CustomerSetLastNameAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleAction.java index fed35d0755a..fbc043275fd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Setting the title of the Customer produces the CustomerTitleSetMessage.

+ *

Setting the title of the Customer produces the CustomerTitleSet 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/CustomerSetTitleActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionImpl.java index c5933494df2..17288d7789e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetTitleActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

Setting the title of the Customer produces the CustomerTitleSetMessage.

+ *

Setting the title of the Customer produces the CustomerTitleSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CustomerSetTitleActionImpl implements CustomerSetTitleAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer_group/CustomerGroupReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer_group/CustomerGroupReference.java index 924c0568717..fcf06cba3a6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer_group/CustomerGroupReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer_group/CustomerGroupReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = CustomerGroupReferenceImpl.class) -public interface CustomerGroupReference extends Reference, com.commercetools.api.models.Identifiable { +public interface CustomerGroupReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for CustomerGroupReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeReference.java index c25e0a4ec31..dcda69e121b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/discount_code/DiscountCodeReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = DiscountCodeReferenceImpl.class) -public interface DiscountCodeReference extends Reference, com.commercetools.api.models.Identifiable { +public interface DiscountCodeReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for DiscountCodeReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelError.java index 6f1f46a333e..464d27f444e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelError.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelError.java @@ -25,7 +25,7 @@ *

The error is returned as a failed response to:

*
    *
  • Add Distribution Channel, Set Distribution Channel, Add Supply Channel, and Set Supply Channel update actions.
  • - *
  • Create a Standalone Price request.
  • + *
  • Create StandalonePrice request.
  • *
* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelErrorImpl.java index 8fb75bf4695..b4a494ee5d3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLMissingRoleOnChannelErrorImpl.java @@ -25,7 +25,7 @@ *

The error is returned as a failed response to:

*
    *
  • Add Distribution Channel, Set Distribution Channel, Add Supply Channel, and Set Supply Channel update actions.
  • - *
  • Create a Standalone Price request.
  • + *
  • Create StandalonePrice request.
  • *
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelError.java index 136640eaeec..34031d996c1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelError.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelError.java @@ -25,7 +25,7 @@ *

The error is returned as a failed response to:

*
    *
  • Add Distribution Channel, Set Distribution Channel, Add Supply Channel, and Set Supply Channel update actions.
  • - *
  • Create a Standalone Price request.
  • + *
  • Create StandalonePrice request.
  • *
* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelErrorImpl.java index bec956f735e..b177e8cdfe6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/MissingRoleOnChannelErrorImpl.java @@ -25,7 +25,7 @@ *

The error is returned as a failed response to:

*
    *
  • Add Distribution Channel, Set Distribution Channel, Add Supply Channel, and Set Supply Channel update actions.
  • - *
  • Create a Standalone Price request.
  • + *
  • Create StandalonePrice request.
  • *
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/inventory/InventoryEntryReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/inventory/InventoryEntryReference.java index 88d4be4ace0..0729387dd19 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/inventory/InventoryEntryReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/inventory/InventoryEntryReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = InventoryEntryReferenceImpl.class) -public interface InventoryEntryReference extends Reference, com.commercetools.api.models.Identifiable { +public interface InventoryEntryReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for InventoryEntryReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameAction.java index 5cdb85bf962..657551aaed2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Setting the first name of the Customer produces the CustomerFirstNameSetMessage.

+ *

Setting the first name of the Customer produces the CustomerFirstNameSet 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/me/MyCustomerSetFirstNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionImpl.java index 350b6a1de44..3fe4530fde8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetFirstNameActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

Setting the first name of the Customer produces the CustomerFirstNameSetMessage.

+ *

Setting the first name of the Customer produces the CustomerFirstNameSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerSetFirstNameActionImpl implements MyCustomerSetFirstNameAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameAction.java index 73eaed609fb..635c90893da 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Setting the last name of the Customer produces the CustomerLastNameSetMessage.

+ *

Setting the last name of the Customer produces the CustomerLastNameSet 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/me/MyCustomerSetLastNameActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionImpl.java index 4969248bc1b..87c07526880 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCustomerSetLastNameActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

Setting the last name of the Customer produces the CustomerLastNameSetMessage.

+ *

Setting the last name of the Customer produces the CustomerLastNameSet Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MyCustomerSetLastNameActionImpl implements MyCustomerSetLastNameAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessage.java new file mode 100644 index 00000000000..d9d61a1a991 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessage.java @@ -0,0 +1,159 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.cart_discount.CartDiscount; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Generated after a successful Create CartDiscount request.

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

+ *     CartDiscountCreatedMessage cartDiscountCreatedMessage = CartDiscountCreatedMessage.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)
+ *             .cartDiscount(cartDiscountBuilder -> cartDiscountBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartDiscountCreatedMessageImpl.class) +public interface CartDiscountCreatedMessage extends Message { + + /** + * discriminator value for CartDiscountCreatedMessage + */ + String CART_DISCOUNT_CREATED = "CartDiscountCreated"; + + /** + *

The Cart Discount that was created.

+ * @return cartDiscount + */ + @NotNull + @Valid + @JsonProperty("cartDiscount") + public CartDiscount getCartDiscount(); + + /** + *

The Cart Discount that was created.

+ * @param cartDiscount value to be set + */ + + public void setCartDiscount(final CartDiscount cartDiscount); + + /** + * factory method + * @return instance of CartDiscountCreatedMessage + */ + public static CartDiscountCreatedMessage of() { + return new CartDiscountCreatedMessageImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountCreatedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountCreatedMessage of(final CartDiscountCreatedMessage template) { + CartDiscountCreatedMessageImpl instance = new CartDiscountCreatedMessageImpl(); + 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.setCartDiscount(template.getCartDiscount()); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountCreatedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountCreatedMessage deepCopy(@Nullable final CartDiscountCreatedMessage template) { + if (template == null) { + return null; + } + CartDiscountCreatedMessageImpl instance = new CartDiscountCreatedMessageImpl(); + 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.setCartDiscount( + com.commercetools.api.models.cart_discount.CartDiscount.deepCopy(template.getCartDiscount())); + return instance; + } + + /** + * builder factory method for CartDiscountCreatedMessage + * @return builder + */ + public static CartDiscountCreatedMessageBuilder builder() { + return CartDiscountCreatedMessageBuilder.of(); + } + + /** + * create builder for CartDiscountCreatedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountCreatedMessageBuilder builder(final CartDiscountCreatedMessage template) { + return CartDiscountCreatedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountCreatedMessage(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/CartDiscountCreatedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessageBuilder.java new file mode 100644 index 00000000000..a0dd7b6b6c9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessageBuilder.java @@ -0,0 +1,452 @@ + +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; + +/** + * CartDiscountCreatedMessageBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountCreatedMessage cartDiscountCreatedMessage = CartDiscountCreatedMessage.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)
+ *             .cartDiscount(cartDiscountBuilder -> cartDiscountBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountCreatedMessageBuilder 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.cart_discount.CartDiscount cartDiscount; + + /** + *

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

+ * @param id value to be set + * @return Builder + */ + + public CartDiscountCreatedMessageBuilder 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 CartDiscountCreatedMessageBuilder 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 CartDiscountCreatedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

Value of createdAt.

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

Value of createdBy.

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

Value of createdBy.

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

Value of createdBy.

+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CartDiscountCreatedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

+ * @param createdBy value to be set + * @return Builder + */ + + public CartDiscountCreatedMessageBuilder 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 CartDiscountCreatedMessageBuilder 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 CartDiscountCreatedMessageBuilder 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 CartDiscountCreatedMessageBuilder 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 CartDiscountCreatedMessageBuilder 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 CartDiscountCreatedMessageBuilder 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 CartDiscountCreatedMessageBuilder 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 CartDiscountCreatedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

The Cart Discount that was created.

+ * @param builder function to build the cartDiscount value + * @return Builder + */ + + public CartDiscountCreatedMessageBuilder cartDiscount( + Function builder) { + this.cartDiscount = builder.apply(com.commercetools.api.models.cart_discount.CartDiscountBuilder.of()).build(); + return this; + } + + /** + *

The Cart Discount that was created.

+ * @param builder function to build the cartDiscount value + * @return Builder + */ + + public CartDiscountCreatedMessageBuilder withCartDiscount( + Function builder) { + this.cartDiscount = builder.apply(com.commercetools.api.models.cart_discount.CartDiscountBuilder.of()); + return this; + } + + /** + *

The Cart Discount that was created.

+ * @param cartDiscount value to be set + * @return Builder + */ + + public CartDiscountCreatedMessageBuilder cartDiscount( + final com.commercetools.api.models.cart_discount.CartDiscount cartDiscount) { + this.cartDiscount = cartDiscount; + 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; + } + + /** + *

Value of createdBy.

+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ * @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 Cart Discount that was created.

+ * @return cartDiscount + */ + + public com.commercetools.api.models.cart_discount.CartDiscount getCartDiscount() { + return this.cartDiscount; + } + + /** + * builds CartDiscountCreatedMessage with checking for non-null required values + * @return CartDiscountCreatedMessage + */ + public CartDiscountCreatedMessage build() { + Objects.requireNonNull(id, CartDiscountCreatedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CartDiscountCreatedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CartDiscountCreatedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, CartDiscountCreatedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, CartDiscountCreatedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CartDiscountCreatedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, CartDiscountCreatedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(cartDiscount, CartDiscountCreatedMessage.class + ": cartDiscount is missing"); + return new CartDiscountCreatedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, cartDiscount); + } + + /** + * builds CartDiscountCreatedMessage without checking for non-null required values + * @return CartDiscountCreatedMessage + */ + public CartDiscountCreatedMessage buildUnchecked() { + return new CartDiscountCreatedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, cartDiscount); + } + + /** + * factory method for an instance of CartDiscountCreatedMessageBuilder + * @return builder + */ + public static CartDiscountCreatedMessageBuilder of() { + return new CartDiscountCreatedMessageBuilder(); + } + + /** + * create builder for CartDiscountCreatedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountCreatedMessageBuilder of(final CartDiscountCreatedMessage template) { + CartDiscountCreatedMessageBuilder builder = new CartDiscountCreatedMessageBuilder(); + 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.cartDiscount = template.getCartDiscount(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessageImpl.java new file mode 100644 index 00000000000..47bf1d837fe --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessageImpl.java @@ -0,0 +1,296 @@ + +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 Create CartDiscount request.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountCreatedMessageImpl implements CartDiscountCreatedMessage, 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.cart_discount.CartDiscount cartDiscount; + + /** + * create instance with all properties + */ + @JsonCreator + CartDiscountCreatedMessageImpl(@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("cartDiscount") final com.commercetools.api.models.cart_discount.CartDiscount cartDiscount) { + 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.cartDiscount = cartDiscount; + this.type = CART_DISCOUNT_CREATED; + } + + /** + * create empty instance + */ + public CartDiscountCreatedMessageImpl() { + this.type = CART_DISCOUNT_CREATED; + } + + /** + *

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; + } + + /** + *

Value of createdBy.

+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + 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 Cart Discount that was created.

+ */ + + public com.commercetools.api.models.cart_discount.CartDiscount getCartDiscount() { + return this.cartDiscount; + } + + 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 setCartDiscount(final com.commercetools.api.models.cart_discount.CartDiscount cartDiscount) { + this.cartDiscount = cartDiscount; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartDiscountCreatedMessageImpl that = (CartDiscountCreatedMessageImpl) 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(cartDiscount, that.cartDiscount) + .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(cartDiscount, that.cartDiscount) + .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(cartDiscount) + .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("cartDiscount", cartDiscount) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayload.java new file mode 100644 index 00000000000..91663c79620 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayload.java @@ -0,0 +1,131 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.cart_discount.CartDiscount; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Generated after a successful Create CartDiscount request.

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

+ *     CartDiscountCreatedMessagePayload cartDiscountCreatedMessagePayload = CartDiscountCreatedMessagePayload.builder()
+ *             .cartDiscount(cartDiscountBuilder -> cartDiscountBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartDiscountCreatedMessagePayloadImpl.class) +public interface CartDiscountCreatedMessagePayload extends MessagePayload { + + /** + * discriminator value for CartDiscountCreatedMessagePayload + */ + String CART_DISCOUNT_CREATED = "CartDiscountCreated"; + + /** + *

The Cart Discount that was created.

+ * @return cartDiscount + */ + @NotNull + @Valid + @JsonProperty("cartDiscount") + public CartDiscount getCartDiscount(); + + /** + *

The Cart Discount that was created.

+ * @param cartDiscount value to be set + */ + + public void setCartDiscount(final CartDiscount cartDiscount); + + /** + * factory method + * @return instance of CartDiscountCreatedMessagePayload + */ + public static CartDiscountCreatedMessagePayload of() { + return new CartDiscountCreatedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountCreatedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountCreatedMessagePayload of(final CartDiscountCreatedMessagePayload template) { + CartDiscountCreatedMessagePayloadImpl instance = new CartDiscountCreatedMessagePayloadImpl(); + instance.setCartDiscount(template.getCartDiscount()); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountCreatedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountCreatedMessagePayload deepCopy( + @Nullable final CartDiscountCreatedMessagePayload template) { + if (template == null) { + return null; + } + CartDiscountCreatedMessagePayloadImpl instance = new CartDiscountCreatedMessagePayloadImpl(); + instance.setCartDiscount( + com.commercetools.api.models.cart_discount.CartDiscount.deepCopy(template.getCartDiscount())); + return instance; + } + + /** + * builder factory method for CartDiscountCreatedMessagePayload + * @return builder + */ + public static CartDiscountCreatedMessagePayloadBuilder builder() { + return CartDiscountCreatedMessagePayloadBuilder.of(); + } + + /** + * create builder for CartDiscountCreatedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountCreatedMessagePayloadBuilder builder(final CartDiscountCreatedMessagePayload template) { + return CartDiscountCreatedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountCreatedMessagePayload(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/CartDiscountCreatedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayloadBuilder.java new file mode 100644 index 00000000000..4a6429a9431 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayloadBuilder.java @@ -0,0 +1,108 @@ + +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; + +/** + * CartDiscountCreatedMessagePayloadBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountCreatedMessagePayload cartDiscountCreatedMessagePayload = CartDiscountCreatedMessagePayload.builder()
+ *             .cartDiscount(cartDiscountBuilder -> cartDiscountBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountCreatedMessagePayloadBuilder implements Builder { + + private com.commercetools.api.models.cart_discount.CartDiscount cartDiscount; + + /** + *

The Cart Discount that was created.

+ * @param builder function to build the cartDiscount value + * @return Builder + */ + + public CartDiscountCreatedMessagePayloadBuilder cartDiscount( + Function builder) { + this.cartDiscount = builder.apply(com.commercetools.api.models.cart_discount.CartDiscountBuilder.of()).build(); + return this; + } + + /** + *

The Cart Discount that was created.

+ * @param builder function to build the cartDiscount value + * @return Builder + */ + + public CartDiscountCreatedMessagePayloadBuilder withCartDiscount( + Function builder) { + this.cartDiscount = builder.apply(com.commercetools.api.models.cart_discount.CartDiscountBuilder.of()); + return this; + } + + /** + *

The Cart Discount that was created.

+ * @param cartDiscount value to be set + * @return Builder + */ + + public CartDiscountCreatedMessagePayloadBuilder cartDiscount( + final com.commercetools.api.models.cart_discount.CartDiscount cartDiscount) { + this.cartDiscount = cartDiscount; + return this; + } + + /** + *

The Cart Discount that was created.

+ * @return cartDiscount + */ + + public com.commercetools.api.models.cart_discount.CartDiscount getCartDiscount() { + return this.cartDiscount; + } + + /** + * builds CartDiscountCreatedMessagePayload with checking for non-null required values + * @return CartDiscountCreatedMessagePayload + */ + public CartDiscountCreatedMessagePayload build() { + Objects.requireNonNull(cartDiscount, CartDiscountCreatedMessagePayload.class + ": cartDiscount is missing"); + return new CartDiscountCreatedMessagePayloadImpl(cartDiscount); + } + + /** + * builds CartDiscountCreatedMessagePayload without checking for non-null required values + * @return CartDiscountCreatedMessagePayload + */ + public CartDiscountCreatedMessagePayload buildUnchecked() { + return new CartDiscountCreatedMessagePayloadImpl(cartDiscount); + } + + /** + * factory method for an instance of CartDiscountCreatedMessagePayloadBuilder + * @return builder + */ + public static CartDiscountCreatedMessagePayloadBuilder of() { + return new CartDiscountCreatedMessagePayloadBuilder(); + } + + /** + * create builder for CartDiscountCreatedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountCreatedMessagePayloadBuilder of(final CartDiscountCreatedMessagePayload template) { + CartDiscountCreatedMessagePayloadBuilder builder = new CartDiscountCreatedMessagePayloadBuilder(); + builder.cartDiscount = template.getCartDiscount(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayloadImpl.java new file mode 100644 index 00000000000..1b6785eff7b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayloadImpl.java @@ -0,0 +1,95 @@ + +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 Create CartDiscount request.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountCreatedMessagePayloadImpl implements CartDiscountCreatedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.cart_discount.CartDiscount cartDiscount; + + /** + * create instance with all properties + */ + @JsonCreator + CartDiscountCreatedMessagePayloadImpl( + @JsonProperty("cartDiscount") final com.commercetools.api.models.cart_discount.CartDiscount cartDiscount) { + this.cartDiscount = cartDiscount; + this.type = CART_DISCOUNT_CREATED; + } + + /** + * create empty instance + */ + public CartDiscountCreatedMessagePayloadImpl() { + this.type = CART_DISCOUNT_CREATED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

The Cart Discount that was created.

+ */ + + public com.commercetools.api.models.cart_discount.CartDiscount getCartDiscount() { + return this.cartDiscount; + } + + public void setCartDiscount(final com.commercetools.api.models.cart_discount.CartDiscount cartDiscount) { + this.cartDiscount = cartDiscount; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartDiscountCreatedMessagePayloadImpl that = (CartDiscountCreatedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(cartDiscount, that.cartDiscount) + .append(type, that.type) + .append(cartDiscount, that.cartDiscount) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(cartDiscount).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("cartDiscount", cartDiscount) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessage.java new file mode 100644 index 00000000000..aa466a92660 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessage.java @@ -0,0 +1,136 @@ + +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 Delete CartDiscount request.

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

+ *     CartDiscountDeletedMessage cartDiscountDeletedMessage = CartDiscountDeletedMessage.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") +@JsonDeserialize(as = CartDiscountDeletedMessageImpl.class) +public interface CartDiscountDeletedMessage extends Message { + + /** + * discriminator value for CartDiscountDeletedMessage + */ + String CART_DISCOUNT_DELETED = "CartDiscountDeleted"; + + /** + * factory method + * @return instance of CartDiscountDeletedMessage + */ + public static CartDiscountDeletedMessage of() { + return new CartDiscountDeletedMessageImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountDeletedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountDeletedMessage of(final CartDiscountDeletedMessage template) { + CartDiscountDeletedMessageImpl instance = new CartDiscountDeletedMessageImpl(); + 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()); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountDeletedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountDeletedMessage deepCopy(@Nullable final CartDiscountDeletedMessage template) { + if (template == null) { + return null; + } + CartDiscountDeletedMessageImpl instance = new CartDiscountDeletedMessageImpl(); + 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())); + return instance; + } + + /** + * builder factory method for CartDiscountDeletedMessage + * @return builder + */ + public static CartDiscountDeletedMessageBuilder builder() { + return CartDiscountDeletedMessageBuilder.of(); + } + + /** + * create builder for CartDiscountDeletedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountDeletedMessageBuilder builder(final CartDiscountDeletedMessage template) { + return CartDiscountDeletedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountDeletedMessage(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/CartDiscountDeletedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessageBuilder.java new file mode 100644 index 00000000000..2bc70afffdd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessageBuilder.java @@ -0,0 +1,402 @@ + +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; + +/** + * CartDiscountDeletedMessageBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountDeletedMessage cartDiscountDeletedMessage = CartDiscountDeletedMessage.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 CartDiscountDeletedMessageBuilder 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; + + /** + *

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

+ * @param id value to be set + * @return Builder + */ + + public CartDiscountDeletedMessageBuilder 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 CartDiscountDeletedMessageBuilder 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 CartDiscountDeletedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

Value of createdAt.

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

Value of createdBy.

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

Value of createdBy.

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

Value of createdBy.

+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CartDiscountDeletedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

+ * @param createdBy value to be set + * @return Builder + */ + + public CartDiscountDeletedMessageBuilder 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 CartDiscountDeletedMessageBuilder 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 CartDiscountDeletedMessageBuilder 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 CartDiscountDeletedMessageBuilder 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 CartDiscountDeletedMessageBuilder 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 CartDiscountDeletedMessageBuilder 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 CartDiscountDeletedMessageBuilder 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 CartDiscountDeletedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + 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; + } + + /** + *

Value of createdBy.

+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ * @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; + } + + /** + * builds CartDiscountDeletedMessage with checking for non-null required values + * @return CartDiscountDeletedMessage + */ + public CartDiscountDeletedMessage build() { + Objects.requireNonNull(id, CartDiscountDeletedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CartDiscountDeletedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CartDiscountDeletedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, CartDiscountDeletedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, CartDiscountDeletedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CartDiscountDeletedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, CartDiscountDeletedMessage.class + ": resourceVersion is missing"); + return new CartDiscountDeletedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers); + } + + /** + * builds CartDiscountDeletedMessage without checking for non-null required values + * @return CartDiscountDeletedMessage + */ + public CartDiscountDeletedMessage buildUnchecked() { + return new CartDiscountDeletedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers); + } + + /** + * factory method for an instance of CartDiscountDeletedMessageBuilder + * @return builder + */ + public static CartDiscountDeletedMessageBuilder of() { + return new CartDiscountDeletedMessageBuilder(); + } + + /** + * create builder for CartDiscountDeletedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountDeletedMessageBuilder of(final CartDiscountDeletedMessage template) { + CartDiscountDeletedMessageBuilder builder = new CartDiscountDeletedMessageBuilder(); + 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(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessageImpl.java new file mode 100644 index 00000000000..55f07bd770e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessageImpl.java @@ -0,0 +1,276 @@ + +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 Delete CartDiscount request.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountDeletedMessageImpl implements CartDiscountDeletedMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + /** + * create instance with all properties + */ + @JsonCreator + CartDiscountDeletedMessageImpl(@JsonProperty("id") final String id, @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.type = CART_DISCOUNT_DELETED; + } + + /** + * create empty instance + */ + public CartDiscountDeletedMessageImpl() { + this.type = CART_DISCOUNT_DELETED; + } + + /** + *

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; + } + + /** + *

Value of createdBy.

+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + 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; + } + + 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; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartDiscountDeletedMessageImpl that = (CartDiscountDeletedMessageImpl) 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(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) + .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) + .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) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayload.java new file mode 100644 index 00000000000..1765b7f4204 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayload.java @@ -0,0 +1,108 @@ + +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 Delete CartDiscount request.

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

+ *     CartDiscountDeletedMessagePayload cartDiscountDeletedMessagePayload = CartDiscountDeletedMessagePayload.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartDiscountDeletedMessagePayloadImpl.class) +public interface CartDiscountDeletedMessagePayload extends MessagePayload { + + /** + * discriminator value for CartDiscountDeletedMessagePayload + */ + String CART_DISCOUNT_DELETED = "CartDiscountDeleted"; + + /** + * factory method + * @return instance of CartDiscountDeletedMessagePayload + */ + public static CartDiscountDeletedMessagePayload of() { + return new CartDiscountDeletedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountDeletedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountDeletedMessagePayload of(final CartDiscountDeletedMessagePayload template) { + CartDiscountDeletedMessagePayloadImpl instance = new CartDiscountDeletedMessagePayloadImpl(); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountDeletedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountDeletedMessagePayload deepCopy( + @Nullable final CartDiscountDeletedMessagePayload template) { + if (template == null) { + return null; + } + CartDiscountDeletedMessagePayloadImpl instance = new CartDiscountDeletedMessagePayloadImpl(); + return instance; + } + + /** + * builder factory method for CartDiscountDeletedMessagePayload + * @return builder + */ + public static CartDiscountDeletedMessagePayloadBuilder builder() { + return CartDiscountDeletedMessagePayloadBuilder.of(); + } + + /** + * create builder for CartDiscountDeletedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountDeletedMessagePayloadBuilder builder(final CartDiscountDeletedMessagePayload template) { + return CartDiscountDeletedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountDeletedMessagePayload(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/CartDiscountDeletedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayloadBuilder.java new file mode 100644 index 00000000000..d97af71c0a9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayloadBuilder.java @@ -0,0 +1,57 @@ + +package com.commercetools.api.models.message; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CartDiscountDeletedMessagePayloadBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountDeletedMessagePayload cartDiscountDeletedMessagePayload = CartDiscountDeletedMessagePayload.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountDeletedMessagePayloadBuilder implements Builder { + + /** + * builds CartDiscountDeletedMessagePayload with checking for non-null required values + * @return CartDiscountDeletedMessagePayload + */ + public CartDiscountDeletedMessagePayload build() { + return new CartDiscountDeletedMessagePayloadImpl(); + } + + /** + * builds CartDiscountDeletedMessagePayload without checking for non-null required values + * @return CartDiscountDeletedMessagePayload + */ + public CartDiscountDeletedMessagePayload buildUnchecked() { + return new CartDiscountDeletedMessagePayloadImpl(); + } + + /** + * factory method for an instance of CartDiscountDeletedMessagePayloadBuilder + * @return builder + */ + public static CartDiscountDeletedMessagePayloadBuilder of() { + return new CartDiscountDeletedMessagePayloadBuilder(); + } + + /** + * create builder for CartDiscountDeletedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountDeletedMessagePayloadBuilder of(final CartDiscountDeletedMessagePayload template) { + CartDiscountDeletedMessagePayloadBuilder builder = new CartDiscountDeletedMessagePayloadBuilder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayloadImpl.java new file mode 100644 index 00000000000..1466ddee476 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayloadImpl.java @@ -0,0 +1,65 @@ + +package com.commercetools.api.models.message; + +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; + +/** + *

Generated after a successful Delete CartDiscount request.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountDeletedMessagePayloadImpl implements CartDiscountDeletedMessagePayload, ModelBase { + + private String type; + + /** + * create instance with all properties + */ + @JsonCreator + CartDiscountDeletedMessagePayloadImpl() { + this.type = CART_DISCOUNT_DELETED; + } + + /** + * + */ + + 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; + + CartDiscountDeletedMessagePayloadImpl that = (CartDiscountDeletedMessagePayloadImpl) 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(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessage.java new file mode 100644 index 00000000000..eff12768e7d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessage.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.store.StoreKeyReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Generated after a successful Add Store update action.

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

+ *     CartDiscountStoreAddedMessage cartDiscountStoreAddedMessage = CartDiscountStoreAddedMessage.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)
+ *             .store(storeBuilder -> storeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartDiscountStoreAddedMessageImpl.class) +public interface CartDiscountStoreAddedMessage extends Message { + + /** + * discriminator value for CartDiscountStoreAddedMessage + */ + String CART_DISCOUNT_STORE_ADDED = "CartDiscountStoreAdded"; + + /** + *

The Store that was added to the Cart Discount.

+ * @return store + */ + @NotNull + @Valid + @JsonProperty("store") + public StoreKeyReference getStore(); + + /** + *

The Store that was added to the Cart Discount.

+ * @param store value to be set + */ + + public void setStore(final StoreKeyReference store); + + /** + * factory method + * @return instance of CartDiscountStoreAddedMessage + */ + public static CartDiscountStoreAddedMessage of() { + return new CartDiscountStoreAddedMessageImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountStoreAddedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountStoreAddedMessage of(final CartDiscountStoreAddedMessage template) { + CartDiscountStoreAddedMessageImpl instance = new CartDiscountStoreAddedMessageImpl(); + 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.setStore(template.getStore()); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountStoreAddedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountStoreAddedMessage deepCopy(@Nullable final CartDiscountStoreAddedMessage template) { + if (template == null) { + return null; + } + CartDiscountStoreAddedMessageImpl instance = new CartDiscountStoreAddedMessageImpl(); + 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.setStore(com.commercetools.api.models.store.StoreKeyReference.deepCopy(template.getStore())); + return instance; + } + + /** + * builder factory method for CartDiscountStoreAddedMessage + * @return builder + */ + public static CartDiscountStoreAddedMessageBuilder builder() { + return CartDiscountStoreAddedMessageBuilder.of(); + } + + /** + * create builder for CartDiscountStoreAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoreAddedMessageBuilder builder(final CartDiscountStoreAddedMessage template) { + return CartDiscountStoreAddedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountStoreAddedMessage(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/CartDiscountStoreAddedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessageBuilder.java new file mode 100644 index 00000000000..17a9eb4b107 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessageBuilder.java @@ -0,0 +1,452 @@ + +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; + +/** + * CartDiscountStoreAddedMessageBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountStoreAddedMessage cartDiscountStoreAddedMessage = CartDiscountStoreAddedMessage.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)
+ *             .store(storeBuilder -> storeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoreAddedMessageBuilder 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.store.StoreKeyReference store; + + /** + *

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

+ * @param id value to be set + * @return Builder + */ + + public CartDiscountStoreAddedMessageBuilder 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 CartDiscountStoreAddedMessageBuilder 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 CartDiscountStoreAddedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

Value of createdAt.

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

Value of createdBy.

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

Value of createdBy.

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

Value of createdBy.

+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CartDiscountStoreAddedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

+ * @param createdBy value to be set + * @return Builder + */ + + public CartDiscountStoreAddedMessageBuilder 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 CartDiscountStoreAddedMessageBuilder 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 CartDiscountStoreAddedMessageBuilder 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 CartDiscountStoreAddedMessageBuilder 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 CartDiscountStoreAddedMessageBuilder 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 CartDiscountStoreAddedMessageBuilder 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 CartDiscountStoreAddedMessageBuilder 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 CartDiscountStoreAddedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

The Store that was added to the Cart Discount.

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

The Store that was added to the Cart Discount.

+ * @param builder function to build the store value + * @return Builder + */ + + public CartDiscountStoreAddedMessageBuilder withStore( + Function builder) { + this.store = builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()); + return this; + } + + /** + *

The Store that was added to the Cart Discount.

+ * @param store value to be set + * @return Builder + */ + + public CartDiscountStoreAddedMessageBuilder store( + final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + 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; + } + + /** + *

Value of createdBy.

+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ * @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 Store that was added to the Cart Discount.

+ * @return store + */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + /** + * builds CartDiscountStoreAddedMessage with checking for non-null required values + * @return CartDiscountStoreAddedMessage + */ + public CartDiscountStoreAddedMessage build() { + Objects.requireNonNull(id, CartDiscountStoreAddedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CartDiscountStoreAddedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CartDiscountStoreAddedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, CartDiscountStoreAddedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, CartDiscountStoreAddedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CartDiscountStoreAddedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, CartDiscountStoreAddedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(store, CartDiscountStoreAddedMessage.class + ": store is missing"); + return new CartDiscountStoreAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, store); + } + + /** + * builds CartDiscountStoreAddedMessage without checking for non-null required values + * @return CartDiscountStoreAddedMessage + */ + public CartDiscountStoreAddedMessage buildUnchecked() { + return new CartDiscountStoreAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, store); + } + + /** + * factory method for an instance of CartDiscountStoreAddedMessageBuilder + * @return builder + */ + public static CartDiscountStoreAddedMessageBuilder of() { + return new CartDiscountStoreAddedMessageBuilder(); + } + + /** + * create builder for CartDiscountStoreAddedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoreAddedMessageBuilder of(final CartDiscountStoreAddedMessage template) { + CartDiscountStoreAddedMessageBuilder builder = new CartDiscountStoreAddedMessageBuilder(); + 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.store = template.getStore(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessageImpl.java new file mode 100644 index 00000000000..09481bc7ba0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessageImpl.java @@ -0,0 +1,296 @@ + +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 Store update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoreAddedMessageImpl implements CartDiscountStoreAddedMessage, 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.store.StoreKeyReference store; + + /** + * create instance with all properties + */ + @JsonCreator + CartDiscountStoreAddedMessageImpl(@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("store") final com.commercetools.api.models.store.StoreKeyReference store) { + 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.store = store; + this.type = CART_DISCOUNT_STORE_ADDED; + } + + /** + * create empty instance + */ + public CartDiscountStoreAddedMessageImpl() { + this.type = CART_DISCOUNT_STORE_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; + } + + /** + *

Value of createdBy.

+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + 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 Store that was added to the Cart Discount.

+ */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + 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 setStore(final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartDiscountStoreAddedMessageImpl that = (CartDiscountStoreAddedMessageImpl) 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(store, that.store) + .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(store, that.store) + .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(store) + .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("store", store) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayload.java new file mode 100644 index 00000000000..54f02982c96 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayload.java @@ -0,0 +1,131 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.store.StoreKeyReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Generated after a successful Add Store update action.

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

+ *     CartDiscountStoreAddedMessagePayload cartDiscountStoreAddedMessagePayload = CartDiscountStoreAddedMessagePayload.builder()
+ *             .store(storeBuilder -> storeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartDiscountStoreAddedMessagePayloadImpl.class) +public interface CartDiscountStoreAddedMessagePayload extends MessagePayload { + + /** + * discriminator value for CartDiscountStoreAddedMessagePayload + */ + String CART_DISCOUNT_STORE_ADDED = "CartDiscountStoreAdded"; + + /** + *

The Store that was added to the Cart Discount.

+ * @return store + */ + @NotNull + @Valid + @JsonProperty("store") + public StoreKeyReference getStore(); + + /** + *

The Store that was added to the Cart Discount.

+ * @param store value to be set + */ + + public void setStore(final StoreKeyReference store); + + /** + * factory method + * @return instance of CartDiscountStoreAddedMessagePayload + */ + public static CartDiscountStoreAddedMessagePayload of() { + return new CartDiscountStoreAddedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountStoreAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountStoreAddedMessagePayload of(final CartDiscountStoreAddedMessagePayload template) { + CartDiscountStoreAddedMessagePayloadImpl instance = new CartDiscountStoreAddedMessagePayloadImpl(); + instance.setStore(template.getStore()); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountStoreAddedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountStoreAddedMessagePayload deepCopy( + @Nullable final CartDiscountStoreAddedMessagePayload template) { + if (template == null) { + return null; + } + CartDiscountStoreAddedMessagePayloadImpl instance = new CartDiscountStoreAddedMessagePayloadImpl(); + instance.setStore(com.commercetools.api.models.store.StoreKeyReference.deepCopy(template.getStore())); + return instance; + } + + /** + * builder factory method for CartDiscountStoreAddedMessagePayload + * @return builder + */ + public static CartDiscountStoreAddedMessagePayloadBuilder builder() { + return CartDiscountStoreAddedMessagePayloadBuilder.of(); + } + + /** + * create builder for CartDiscountStoreAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoreAddedMessagePayloadBuilder builder( + final CartDiscountStoreAddedMessagePayload template) { + return CartDiscountStoreAddedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountStoreAddedMessagePayload(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/CartDiscountStoreAddedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayloadBuilder.java new file mode 100644 index 00000000000..67529a31e3e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayloadBuilder.java @@ -0,0 +1,108 @@ + +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; + +/** + * CartDiscountStoreAddedMessagePayloadBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountStoreAddedMessagePayload cartDiscountStoreAddedMessagePayload = CartDiscountStoreAddedMessagePayload.builder()
+ *             .store(storeBuilder -> storeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoreAddedMessagePayloadBuilder implements Builder { + + private com.commercetools.api.models.store.StoreKeyReference store; + + /** + *

The Store that was added to the Cart Discount.

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

The Store that was added to the Cart Discount.

+ * @param builder function to build the store value + * @return Builder + */ + + public CartDiscountStoreAddedMessagePayloadBuilder withStore( + Function builder) { + this.store = builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()); + return this; + } + + /** + *

The Store that was added to the Cart Discount.

+ * @param store value to be set + * @return Builder + */ + + public CartDiscountStoreAddedMessagePayloadBuilder store( + final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + return this; + } + + /** + *

The Store that was added to the Cart Discount.

+ * @return store + */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + /** + * builds CartDiscountStoreAddedMessagePayload with checking for non-null required values + * @return CartDiscountStoreAddedMessagePayload + */ + public CartDiscountStoreAddedMessagePayload build() { + Objects.requireNonNull(store, CartDiscountStoreAddedMessagePayload.class + ": store is missing"); + return new CartDiscountStoreAddedMessagePayloadImpl(store); + } + + /** + * builds CartDiscountStoreAddedMessagePayload without checking for non-null required values + * @return CartDiscountStoreAddedMessagePayload + */ + public CartDiscountStoreAddedMessagePayload buildUnchecked() { + return new CartDiscountStoreAddedMessagePayloadImpl(store); + } + + /** + * factory method for an instance of CartDiscountStoreAddedMessagePayloadBuilder + * @return builder + */ + public static CartDiscountStoreAddedMessagePayloadBuilder of() { + return new CartDiscountStoreAddedMessagePayloadBuilder(); + } + + /** + * create builder for CartDiscountStoreAddedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoreAddedMessagePayloadBuilder of(final CartDiscountStoreAddedMessagePayload template) { + CartDiscountStoreAddedMessagePayloadBuilder builder = new CartDiscountStoreAddedMessagePayloadBuilder(); + builder.store = template.getStore(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayloadImpl.java new file mode 100644 index 00000000000..0e6952dd7c5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayloadImpl.java @@ -0,0 +1,95 @@ + +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 Store update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoreAddedMessagePayloadImpl implements CartDiscountStoreAddedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.store.StoreKeyReference store; + + /** + * create instance with all properties + */ + @JsonCreator + CartDiscountStoreAddedMessagePayloadImpl( + @JsonProperty("store") final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + this.type = CART_DISCOUNT_STORE_ADDED; + } + + /** + * create empty instance + */ + public CartDiscountStoreAddedMessagePayloadImpl() { + this.type = CART_DISCOUNT_STORE_ADDED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

The Store that was added to the Cart Discount.

+ */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + public void setStore(final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartDiscountStoreAddedMessagePayloadImpl that = (CartDiscountStoreAddedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(store, that.store) + .append(type, that.type) + .append(store, that.store) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(store).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("store", store) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessage.java new file mode 100644 index 00000000000..9a5dc184eee --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessage.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.store.StoreKeyReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Generated after a successful Remove Store update action.

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

+ *     CartDiscountStoreRemovedMessage cartDiscountStoreRemovedMessage = CartDiscountStoreRemovedMessage.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)
+ *             .store(storeBuilder -> storeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartDiscountStoreRemovedMessageImpl.class) +public interface CartDiscountStoreRemovedMessage extends Message { + + /** + * discriminator value for CartDiscountStoreRemovedMessage + */ + String CART_DISCOUNT_STORE_REMOVED = "CartDiscountStoreRemoved"; + + /** + *

The Store that was removed from the Cart Discount.

+ * @return store + */ + @NotNull + @Valid + @JsonProperty("store") + public StoreKeyReference getStore(); + + /** + *

The Store that was removed from the Cart Discount.

+ * @param store value to be set + */ + + public void setStore(final StoreKeyReference store); + + /** + * factory method + * @return instance of CartDiscountStoreRemovedMessage + */ + public static CartDiscountStoreRemovedMessage of() { + return new CartDiscountStoreRemovedMessageImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountStoreRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountStoreRemovedMessage of(final CartDiscountStoreRemovedMessage template) { + CartDiscountStoreRemovedMessageImpl instance = new CartDiscountStoreRemovedMessageImpl(); + 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.setStore(template.getStore()); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountStoreRemovedMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountStoreRemovedMessage deepCopy(@Nullable final CartDiscountStoreRemovedMessage template) { + if (template == null) { + return null; + } + CartDiscountStoreRemovedMessageImpl instance = new CartDiscountStoreRemovedMessageImpl(); + 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.setStore(com.commercetools.api.models.store.StoreKeyReference.deepCopy(template.getStore())); + return instance; + } + + /** + * builder factory method for CartDiscountStoreRemovedMessage + * @return builder + */ + public static CartDiscountStoreRemovedMessageBuilder builder() { + return CartDiscountStoreRemovedMessageBuilder.of(); + } + + /** + * create builder for CartDiscountStoreRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoreRemovedMessageBuilder builder(final CartDiscountStoreRemovedMessage template) { + return CartDiscountStoreRemovedMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountStoreRemovedMessage(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/CartDiscountStoreRemovedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessageBuilder.java new file mode 100644 index 00000000000..5664b971ed0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessageBuilder.java @@ -0,0 +1,453 @@ + +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; + +/** + * CartDiscountStoreRemovedMessageBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountStoreRemovedMessage cartDiscountStoreRemovedMessage = CartDiscountStoreRemovedMessage.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)
+ *             .store(storeBuilder -> storeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoreRemovedMessageBuilder 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.store.StoreKeyReference store; + + /** + *

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

+ * @param id value to be set + * @return Builder + */ + + public CartDiscountStoreRemovedMessageBuilder 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 CartDiscountStoreRemovedMessageBuilder 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 CartDiscountStoreRemovedMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

Value of createdAt.

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

Value of createdBy.

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

Value of createdBy.

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

Value of createdBy.

+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CartDiscountStoreRemovedMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

+ * @param createdBy value to be set + * @return Builder + */ + + public CartDiscountStoreRemovedMessageBuilder 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 CartDiscountStoreRemovedMessageBuilder 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 CartDiscountStoreRemovedMessageBuilder 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 CartDiscountStoreRemovedMessageBuilder 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 CartDiscountStoreRemovedMessageBuilder 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 CartDiscountStoreRemovedMessageBuilder 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 CartDiscountStoreRemovedMessageBuilder 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 CartDiscountStoreRemovedMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

The Store that was removed from the Cart Discount.

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

The Store that was removed from the Cart Discount.

+ * @param builder function to build the store value + * @return Builder + */ + + public CartDiscountStoreRemovedMessageBuilder withStore( + Function builder) { + this.store = builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()); + return this; + } + + /** + *

The Store that was removed from the Cart Discount.

+ * @param store value to be set + * @return Builder + */ + + public CartDiscountStoreRemovedMessageBuilder store( + final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + 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; + } + + /** + *

Value of createdBy.

+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ * @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 Store that was removed from the Cart Discount.

+ * @return store + */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + /** + * builds CartDiscountStoreRemovedMessage with checking for non-null required values + * @return CartDiscountStoreRemovedMessage + */ + public CartDiscountStoreRemovedMessage build() { + Objects.requireNonNull(id, CartDiscountStoreRemovedMessage.class + ": id is missing"); + Objects.requireNonNull(version, CartDiscountStoreRemovedMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CartDiscountStoreRemovedMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, CartDiscountStoreRemovedMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, CartDiscountStoreRemovedMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CartDiscountStoreRemovedMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, CartDiscountStoreRemovedMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(store, CartDiscountStoreRemovedMessage.class + ": store is missing"); + return new CartDiscountStoreRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, store); + } + + /** + * builds CartDiscountStoreRemovedMessage without checking for non-null required values + * @return CartDiscountStoreRemovedMessage + */ + public CartDiscountStoreRemovedMessage buildUnchecked() { + return new CartDiscountStoreRemovedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, store); + } + + /** + * factory method for an instance of CartDiscountStoreRemovedMessageBuilder + * @return builder + */ + public static CartDiscountStoreRemovedMessageBuilder of() { + return new CartDiscountStoreRemovedMessageBuilder(); + } + + /** + * create builder for CartDiscountStoreRemovedMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoreRemovedMessageBuilder of(final CartDiscountStoreRemovedMessage template) { + CartDiscountStoreRemovedMessageBuilder builder = new CartDiscountStoreRemovedMessageBuilder(); + 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.store = template.getStore(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessageImpl.java new file mode 100644 index 00000000000..c5dd3483531 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessageImpl.java @@ -0,0 +1,297 @@ + +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 Store update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoreRemovedMessageImpl implements CartDiscountStoreRemovedMessage, 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.store.StoreKeyReference store; + + /** + * create instance with all properties + */ + @JsonCreator + CartDiscountStoreRemovedMessageImpl(@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("store") final com.commercetools.api.models.store.StoreKeyReference store) { + 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.store = store; + this.type = CART_DISCOUNT_STORE_REMOVED; + } + + /** + * create empty instance + */ + public CartDiscountStoreRemovedMessageImpl() { + this.type = CART_DISCOUNT_STORE_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; + } + + /** + *

Value of createdBy.

+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + 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 Store that was removed from the Cart Discount.

+ */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + 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 setStore(final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartDiscountStoreRemovedMessageImpl that = (CartDiscountStoreRemovedMessageImpl) 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(store, that.store) + .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(store, that.store) + .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(store) + .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("store", store) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayload.java new file mode 100644 index 00000000000..ca8a4bbcd86 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayload.java @@ -0,0 +1,132 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.store.StoreKeyReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Generated after a successful Remove Store update action.

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

+ *     CartDiscountStoreRemovedMessagePayload cartDiscountStoreRemovedMessagePayload = CartDiscountStoreRemovedMessagePayload.builder()
+ *             .store(storeBuilder -> storeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartDiscountStoreRemovedMessagePayloadImpl.class) +public interface CartDiscountStoreRemovedMessagePayload extends MessagePayload { + + /** + * discriminator value for CartDiscountStoreRemovedMessagePayload + */ + String CART_DISCOUNT_STORE_REMOVED = "CartDiscountStoreRemoved"; + + /** + *

The Store that was removed from the Cart Discount.

+ * @return store + */ + @NotNull + @Valid + @JsonProperty("store") + public StoreKeyReference getStore(); + + /** + *

The Store that was removed from the Cart Discount.

+ * @param store value to be set + */ + + public void setStore(final StoreKeyReference store); + + /** + * factory method + * @return instance of CartDiscountStoreRemovedMessagePayload + */ + public static CartDiscountStoreRemovedMessagePayload of() { + return new CartDiscountStoreRemovedMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountStoreRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountStoreRemovedMessagePayload of(final CartDiscountStoreRemovedMessagePayload template) { + CartDiscountStoreRemovedMessagePayloadImpl instance = new CartDiscountStoreRemovedMessagePayloadImpl(); + instance.setStore(template.getStore()); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountStoreRemovedMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountStoreRemovedMessagePayload deepCopy( + @Nullable final CartDiscountStoreRemovedMessagePayload template) { + if (template == null) { + return null; + } + CartDiscountStoreRemovedMessagePayloadImpl instance = new CartDiscountStoreRemovedMessagePayloadImpl(); + instance.setStore(com.commercetools.api.models.store.StoreKeyReference.deepCopy(template.getStore())); + return instance; + } + + /** + * builder factory method for CartDiscountStoreRemovedMessagePayload + * @return builder + */ + public static CartDiscountStoreRemovedMessagePayloadBuilder builder() { + return CartDiscountStoreRemovedMessagePayloadBuilder.of(); + } + + /** + * create builder for CartDiscountStoreRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoreRemovedMessagePayloadBuilder builder( + final CartDiscountStoreRemovedMessagePayload template) { + return CartDiscountStoreRemovedMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountStoreRemovedMessagePayload( + 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/CartDiscountStoreRemovedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayloadBuilder.java new file mode 100644 index 00000000000..8d413959f35 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayloadBuilder.java @@ -0,0 +1,109 @@ + +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; + +/** + * CartDiscountStoreRemovedMessagePayloadBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountStoreRemovedMessagePayload cartDiscountStoreRemovedMessagePayload = CartDiscountStoreRemovedMessagePayload.builder()
+ *             .store(storeBuilder -> storeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoreRemovedMessagePayloadBuilder implements Builder { + + private com.commercetools.api.models.store.StoreKeyReference store; + + /** + *

The Store that was removed from the Cart Discount.

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

The Store that was removed from the Cart Discount.

+ * @param builder function to build the store value + * @return Builder + */ + + public CartDiscountStoreRemovedMessagePayloadBuilder withStore( + Function builder) { + this.store = builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()); + return this; + } + + /** + *

The Store that was removed from the Cart Discount.

+ * @param store value to be set + * @return Builder + */ + + public CartDiscountStoreRemovedMessagePayloadBuilder store( + final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + return this; + } + + /** + *

The Store that was removed from the Cart Discount.

+ * @return store + */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + /** + * builds CartDiscountStoreRemovedMessagePayload with checking for non-null required values + * @return CartDiscountStoreRemovedMessagePayload + */ + public CartDiscountStoreRemovedMessagePayload build() { + Objects.requireNonNull(store, CartDiscountStoreRemovedMessagePayload.class + ": store is missing"); + return new CartDiscountStoreRemovedMessagePayloadImpl(store); + } + + /** + * builds CartDiscountStoreRemovedMessagePayload without checking for non-null required values + * @return CartDiscountStoreRemovedMessagePayload + */ + public CartDiscountStoreRemovedMessagePayload buildUnchecked() { + return new CartDiscountStoreRemovedMessagePayloadImpl(store); + } + + /** + * factory method for an instance of CartDiscountStoreRemovedMessagePayloadBuilder + * @return builder + */ + public static CartDiscountStoreRemovedMessagePayloadBuilder of() { + return new CartDiscountStoreRemovedMessagePayloadBuilder(); + } + + /** + * create builder for CartDiscountStoreRemovedMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoreRemovedMessagePayloadBuilder of( + final CartDiscountStoreRemovedMessagePayload template) { + CartDiscountStoreRemovedMessagePayloadBuilder builder = new CartDiscountStoreRemovedMessagePayloadBuilder(); + builder.store = template.getStore(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayloadImpl.java new file mode 100644 index 00000000000..634c329e298 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayloadImpl.java @@ -0,0 +1,95 @@ + +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 Store update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoreRemovedMessagePayloadImpl implements CartDiscountStoreRemovedMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.store.StoreKeyReference store; + + /** + * create instance with all properties + */ + @JsonCreator + CartDiscountStoreRemovedMessagePayloadImpl( + @JsonProperty("store") final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + this.type = CART_DISCOUNT_STORE_REMOVED; + } + + /** + * create empty instance + */ + public CartDiscountStoreRemovedMessagePayloadImpl() { + this.type = CART_DISCOUNT_STORE_REMOVED; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

The Store that was removed from the Cart Discount.

+ */ + + public com.commercetools.api.models.store.StoreKeyReference getStore() { + return this.store; + } + + public void setStore(final com.commercetools.api.models.store.StoreKeyReference store) { + this.store = store; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartDiscountStoreRemovedMessagePayloadImpl that = (CartDiscountStoreRemovedMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(store, that.store) + .append(type, that.type) + .append(store, that.store) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(store).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("store", store) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessage.java new file mode 100644 index 00000000000..af9f2e5fe52 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessage.java @@ -0,0 +1,171 @@ + +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 javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.store.StoreKeyReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Generated after a successful Set Stores update action.

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

+ *     CartDiscountStoresSetMessage cartDiscountStoresSetMessage = CartDiscountStoresSetMessage.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)
+ *             .plusStores(storesBuilder -> storesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartDiscountStoresSetMessageImpl.class) +public interface CartDiscountStoresSetMessage extends Message { + + /** + * discriminator value for CartDiscountStoresSetMessage + */ + String CART_DISCOUNT_STORES_SET = "CartDiscountStoresSet"; + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @return stores + */ + @NotNull + @Valid + @JsonProperty("stores") + public List getStores(); + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param stores values to be set + */ + + @JsonIgnore + public void setStores(final StoreKeyReference... stores); + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param stores values to be set + */ + + public void setStores(final List stores); + + /** + * factory method + * @return instance of CartDiscountStoresSetMessage + */ + public static CartDiscountStoresSetMessage of() { + return new CartDiscountStoresSetMessageImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountStoresSetMessage + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountStoresSetMessage of(final CartDiscountStoresSetMessage template) { + CartDiscountStoresSetMessageImpl instance = new CartDiscountStoresSetMessageImpl(); + 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.setStores(template.getStores()); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountStoresSetMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountStoresSetMessage deepCopy(@Nullable final CartDiscountStoresSetMessage template) { + if (template == null) { + return null; + } + CartDiscountStoresSetMessageImpl instance = new CartDiscountStoresSetMessageImpl(); + 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.setStores(Optional.ofNullable(template.getStores()) + .map(t -> t.stream() + .map(com.commercetools.api.models.store.StoreKeyReference::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for CartDiscountStoresSetMessage + * @return builder + */ + public static CartDiscountStoresSetMessageBuilder builder() { + return CartDiscountStoresSetMessageBuilder.of(); + } + + /** + * create builder for CartDiscountStoresSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoresSetMessageBuilder builder(final CartDiscountStoresSetMessage template) { + return CartDiscountStoresSetMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountStoresSetMessage(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/CartDiscountStoresSetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessageBuilder.java new file mode 100644 index 00000000000..11c844d7026 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessageBuilder.java @@ -0,0 +1,505 @@ + +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; + +/** + * CartDiscountStoresSetMessageBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountStoresSetMessage cartDiscountStoresSetMessage = CartDiscountStoresSetMessage.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)
+ *             .plusStores(storesBuilder -> storesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoresSetMessageBuilder 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 java.util.List stores; + + /** + *

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

+ * @param id value to be set + * @return Builder + */ + + public CartDiscountStoresSetMessageBuilder 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 CartDiscountStoresSetMessageBuilder 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 CartDiscountStoresSetMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

Value of createdAt.

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

Value of createdBy.

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

Value of createdBy.

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

Value of createdBy.

+ * @param lastModifiedBy value to be set + * @return Builder + */ + + public CartDiscountStoresSetMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

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

Present on resources created after 1 February 2019 except for events not tracked.

+ * @param createdBy value to be set + * @return Builder + */ + + public CartDiscountStoresSetMessageBuilder 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 CartDiscountStoresSetMessageBuilder 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 CartDiscountStoresSetMessageBuilder 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 CartDiscountStoresSetMessageBuilder 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 CartDiscountStoresSetMessageBuilder 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 CartDiscountStoresSetMessageBuilder 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 CartDiscountStoresSetMessageBuilder 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 CartDiscountStoresSetMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param stores value to be set + * @return Builder + */ + + public CartDiscountStoresSetMessageBuilder stores( + final com.commercetools.api.models.store.StoreKeyReference... stores) { + this.stores = new ArrayList<>(Arrays.asList(stores)); + return this; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

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

Stores of the Cart Discount after the Set Stores update action.

+ * @param stores value to be set + * @return Builder + */ + + public CartDiscountStoresSetMessageBuilder plusStores( + final com.commercetools.api.models.store.StoreKeyReference... stores) { + if (this.stores == null) { + this.stores = new ArrayList<>(); + } + this.stores.addAll(Arrays.asList(stores)); + return this; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param builder function to build the stores value + * @return Builder + */ + + public CartDiscountStoresSetMessageBuilder plusStores( + Function builder) { + if (this.stores == null) { + this.stores = new ArrayList<>(); + } + this.stores.add(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()).build()); + return this; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param builder function to build the stores value + * @return Builder + */ + + public CartDiscountStoresSetMessageBuilder withStores( + Function builder) { + this.stores = new ArrayList<>(); + this.stores.add(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()).build()); + return this; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param builder function to build the stores value + * @return Builder + */ + + public CartDiscountStoresSetMessageBuilder addStores( + Function builder) { + return plusStores(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of())); + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param builder function to build the stores value + * @return Builder + */ + + public CartDiscountStoresSetMessageBuilder setStores( + Function builder) { + return stores(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.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; + } + + /** + *

Value of createdBy.

+ * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ * @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; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @return stores + */ + + public java.util.List getStores() { + return this.stores; + } + + /** + * builds CartDiscountStoresSetMessage with checking for non-null required values + * @return CartDiscountStoresSetMessage + */ + public CartDiscountStoresSetMessage build() { + Objects.requireNonNull(id, CartDiscountStoresSetMessage.class + ": id is missing"); + Objects.requireNonNull(version, CartDiscountStoresSetMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, CartDiscountStoresSetMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, CartDiscountStoresSetMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, CartDiscountStoresSetMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, CartDiscountStoresSetMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, CartDiscountStoresSetMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(stores, CartDiscountStoresSetMessage.class + ": stores is missing"); + return new CartDiscountStoresSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, stores); + } + + /** + * builds CartDiscountStoresSetMessage without checking for non-null required values + * @return CartDiscountStoresSetMessage + */ + public CartDiscountStoresSetMessage buildUnchecked() { + return new CartDiscountStoresSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, stores); + } + + /** + * factory method for an instance of CartDiscountStoresSetMessageBuilder + * @return builder + */ + public static CartDiscountStoresSetMessageBuilder of() { + return new CartDiscountStoresSetMessageBuilder(); + } + + /** + * create builder for CartDiscountStoresSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoresSetMessageBuilder of(final CartDiscountStoresSetMessage template) { + CartDiscountStoresSetMessageBuilder builder = new CartDiscountStoresSetMessageBuilder(); + 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.stores = template.getStores(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessageImpl.java new file mode 100644 index 00000000000..c630d304609 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessageImpl.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 Stores update action.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoresSetMessageImpl implements CartDiscountStoresSetMessage, 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 stores; + + /** + * create instance with all properties + */ + @JsonCreator + CartDiscountStoresSetMessageImpl(@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("stores") final java.util.List stores) { + 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.stores = stores; + this.type = CART_DISCOUNT_STORES_SET; + } + + /** + * create empty instance + */ + public CartDiscountStoresSetMessageImpl() { + this.type = CART_DISCOUNT_STORES_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; + } + + /** + *

Value of createdBy.

+ */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

Present on resources created after 1 February 2019 except for events not tracked.

+ */ + + 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; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ */ + + public java.util.List getStores() { + return this.stores; + } + + 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 setStores(final com.commercetools.api.models.store.StoreKeyReference... stores) { + this.stores = new ArrayList<>(Arrays.asList(stores)); + } + + public void setStores(final java.util.List stores) { + this.stores = stores; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartDiscountStoresSetMessageImpl that = (CartDiscountStoresSetMessageImpl) 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(stores, that.stores) + .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(stores, that.stores) + .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(stores) + .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("stores", stores) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayload.java new file mode 100644 index 00000000000..59f62e6932c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayload.java @@ -0,0 +1,144 @@ + +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 javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.api.models.store.StoreKeyReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Generated after a successful Set Stores update action.

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

+ *     CartDiscountStoresSetMessagePayload cartDiscountStoresSetMessagePayload = CartDiscountStoresSetMessagePayload.builder()
+ *             .plusStores(storesBuilder -> storesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartDiscountStoresSetMessagePayloadImpl.class) +public interface CartDiscountStoresSetMessagePayload extends MessagePayload { + + /** + * discriminator value for CartDiscountStoresSetMessagePayload + */ + String CART_DISCOUNT_STORES_SET = "CartDiscountStoresSet"; + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @return stores + */ + @NotNull + @Valid + @JsonProperty("stores") + public List getStores(); + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param stores values to be set + */ + + @JsonIgnore + public void setStores(final StoreKeyReference... stores); + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param stores values to be set + */ + + public void setStores(final List stores); + + /** + * factory method + * @return instance of CartDiscountStoresSetMessagePayload + */ + public static CartDiscountStoresSetMessagePayload of() { + return new CartDiscountStoresSetMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy CartDiscountStoresSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static CartDiscountStoresSetMessagePayload of(final CartDiscountStoresSetMessagePayload template) { + CartDiscountStoresSetMessagePayloadImpl instance = new CartDiscountStoresSetMessagePayloadImpl(); + instance.setStores(template.getStores()); + return instance; + } + + /** + * factory method to create a deep copy of CartDiscountStoresSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartDiscountStoresSetMessagePayload deepCopy( + @Nullable final CartDiscountStoresSetMessagePayload template) { + if (template == null) { + return null; + } + CartDiscountStoresSetMessagePayloadImpl instance = new CartDiscountStoresSetMessagePayloadImpl(); + instance.setStores(Optional.ofNullable(template.getStores()) + .map(t -> t.stream() + .map(com.commercetools.api.models.store.StoreKeyReference::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for CartDiscountStoresSetMessagePayload + * @return builder + */ + public static CartDiscountStoresSetMessagePayloadBuilder builder() { + return CartDiscountStoresSetMessagePayloadBuilder.of(); + } + + /** + * create builder for CartDiscountStoresSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoresSetMessagePayloadBuilder builder( + final CartDiscountStoresSetMessagePayload template) { + return CartDiscountStoresSetMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartDiscountStoresSetMessagePayload(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/CartDiscountStoresSetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayloadBuilder.java new file mode 100644 index 00000000000..543b6bc46bc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayloadBuilder.java @@ -0,0 +1,161 @@ + +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; + +/** + * CartDiscountStoresSetMessagePayloadBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartDiscountStoresSetMessagePayload cartDiscountStoresSetMessagePayload = CartDiscountStoresSetMessagePayload.builder()
+ *             .plusStores(storesBuilder -> storesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartDiscountStoresSetMessagePayloadBuilder implements Builder { + + private java.util.List stores; + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param stores value to be set + * @return Builder + */ + + public CartDiscountStoresSetMessagePayloadBuilder stores( + final com.commercetools.api.models.store.StoreKeyReference... stores) { + this.stores = new ArrayList<>(Arrays.asList(stores)); + return this; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

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

Stores of the Cart Discount after the Set Stores update action.

+ * @param stores value to be set + * @return Builder + */ + + public CartDiscountStoresSetMessagePayloadBuilder plusStores( + final com.commercetools.api.models.store.StoreKeyReference... stores) { + if (this.stores == null) { + this.stores = new ArrayList<>(); + } + this.stores.addAll(Arrays.asList(stores)); + return this; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param builder function to build the stores value + * @return Builder + */ + + public CartDiscountStoresSetMessagePayloadBuilder plusStores( + Function builder) { + if (this.stores == null) { + this.stores = new ArrayList<>(); + } + this.stores.add(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()).build()); + return this; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param builder function to build the stores value + * @return Builder + */ + + public CartDiscountStoresSetMessagePayloadBuilder withStores( + Function builder) { + this.stores = new ArrayList<>(); + this.stores.add(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of()).build()); + return this; + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param builder function to build the stores value + * @return Builder + */ + + public CartDiscountStoresSetMessagePayloadBuilder addStores( + Function builder) { + return plusStores(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of())); + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @param builder function to build the stores value + * @return Builder + */ + + public CartDiscountStoresSetMessagePayloadBuilder setStores( + Function builder) { + return stores(builder.apply(com.commercetools.api.models.store.StoreKeyReferenceBuilder.of())); + } + + /** + *

Stores of the Cart Discount after the Set Stores update action.

+ * @return stores + */ + + public java.util.List getStores() { + return this.stores; + } + + /** + * builds CartDiscountStoresSetMessagePayload with checking for non-null required values + * @return CartDiscountStoresSetMessagePayload + */ + public CartDiscountStoresSetMessagePayload build() { + Objects.requireNonNull(stores, CartDiscountStoresSetMessagePayload.class + ": stores is missing"); + return new CartDiscountStoresSetMessagePayloadImpl(stores); + } + + /** + * builds CartDiscountStoresSetMessagePayload without checking for non-null required values + * @return CartDiscountStoresSetMessagePayload + */ + public CartDiscountStoresSetMessagePayload buildUnchecked() { + return new CartDiscountStoresSetMessagePayloadImpl(stores); + } + + /** + * factory method for an instance of CartDiscountStoresSetMessagePayloadBuilder + * @return builder + */ + public static CartDiscountStoresSetMessagePayloadBuilder of() { + return new CartDiscountStoresSetMessagePayloadBuilder(); + } + + /** + * create builder for CartDiscountStoresSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartDiscountStoresSetMessagePayloadBuilder of(final CartDiscountStoresSetMessagePayload template) { + CartDiscountStoresSetMessagePayloadBuilder builder = new CartDiscountStoresSetMessagePayloadBuilder(); + builder.stores = template.getStores(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayloadImpl.java new file mode 100644 index 00000000000..b9da811d11f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayloadImpl.java @@ -0,0 +1,99 @@ + +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 Stores update action.

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

Stores of the Cart Discount after the Set Stores update action.

+ */ + + public java.util.List getStores() { + return this.stores; + } + + public void setStores(final com.commercetools.api.models.store.StoreKeyReference... stores) { + this.stores = new ArrayList<>(Arrays.asList(stores)); + } + + public void setStores(final java.util.List stores) { + this.stores = stores; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartDiscountStoresSetMessagePayloadImpl that = (CartDiscountStoresSetMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(stores, that.stores) + .append(type, that.type) + .append(stores, that.stores) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(stores).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("stores", stores) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java index f41ca425f73..444e5b5d3b0 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 @@ -94,6 +94,11 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoreModeChangedMessageImpl.class, name = BusinessUnitStoreModeChangedMessage.BUSINESS_UNIT_STORE_MODE_CHANGED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoreRemovedMessageImpl.class, name = BusinessUnitStoreRemovedMessage.BUSINESS_UNIT_STORE_REMOVED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoresSetMessageImpl.class, name = BusinessUnitStoresSetMessage.BUSINESS_UNIT_STORES_SET), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountCreatedMessageImpl.class, name = CartDiscountCreatedMessage.CART_DISCOUNT_CREATED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountDeletedMessageImpl.class, name = CartDiscountDeletedMessage.CART_DISCOUNT_DELETED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountStoreAddedMessageImpl.class, name = CartDiscountStoreAddedMessage.CART_DISCOUNT_STORE_ADDED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountStoreRemovedMessageImpl.class, name = CartDiscountStoreRemovedMessage.CART_DISCOUNT_STORE_REMOVED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountStoresSetMessageImpl.class, name = CartDiscountStoresSetMessage.CART_DISCOUNT_STORES_SET), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CategoryCreatedMessageImpl.class, name = CategoryCreatedMessage.CATEGORY_CREATED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CategorySlugChangedMessageImpl.class, name = CategorySlugChangedMessage.CATEGORY_SLUG_CHANGED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomLineItemStateTransitionMessageImpl.class, name = CustomLineItemStateTransitionMessage.CUSTOM_LINE_ITEM_STATE_TRANSITION), @@ -640,6 +645,26 @@ public static Message deepCopy(@Nullable final Message template) { return com.commercetools.api.models.message.BusinessUnitStoresSetMessage .deepCopy((com.commercetools.api.models.message.BusinessUnitStoresSetMessage) template); } + if (template instanceof com.commercetools.api.models.message.CartDiscountCreatedMessage) { + return com.commercetools.api.models.message.CartDiscountCreatedMessage + .deepCopy((com.commercetools.api.models.message.CartDiscountCreatedMessage) template); + } + if (template instanceof com.commercetools.api.models.message.CartDiscountDeletedMessage) { + return com.commercetools.api.models.message.CartDiscountDeletedMessage + .deepCopy((com.commercetools.api.models.message.CartDiscountDeletedMessage) template); + } + if (template instanceof com.commercetools.api.models.message.CartDiscountStoreAddedMessage) { + return com.commercetools.api.models.message.CartDiscountStoreAddedMessage + .deepCopy((com.commercetools.api.models.message.CartDiscountStoreAddedMessage) template); + } + if (template instanceof com.commercetools.api.models.message.CartDiscountStoreRemovedMessage) { + return com.commercetools.api.models.message.CartDiscountStoreRemovedMessage + .deepCopy((com.commercetools.api.models.message.CartDiscountStoreRemovedMessage) template); + } + if (template instanceof com.commercetools.api.models.message.CartDiscountStoresSetMessage) { + return com.commercetools.api.models.message.CartDiscountStoresSetMessage + .deepCopy((com.commercetools.api.models.message.CartDiscountStoresSetMessage) template); + } if (template instanceof com.commercetools.api.models.message.CategoryCreatedMessage) { return com.commercetools.api.models.message.CategoryCreatedMessage .deepCopy((com.commercetools.api.models.message.CategoryCreatedMessage) template); @@ -1536,6 +1561,46 @@ public static com.commercetools.api.models.message.BusinessUnitStoresSetMessageB return com.commercetools.api.models.message.BusinessUnitStoresSetMessageBuilder.of(); } + /** + * builder for cartDiscountCreated subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountCreatedMessageBuilder cartDiscountCreatedBuilder() { + return com.commercetools.api.models.message.CartDiscountCreatedMessageBuilder.of(); + } + + /** + * builder for cartDiscountDeleted subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountDeletedMessageBuilder cartDiscountDeletedBuilder() { + return com.commercetools.api.models.message.CartDiscountDeletedMessageBuilder.of(); + } + + /** + * builder for cartDiscountStoreAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountStoreAddedMessageBuilder cartDiscountStoreAddedBuilder() { + return com.commercetools.api.models.message.CartDiscountStoreAddedMessageBuilder.of(); + } + + /** + * builder for cartDiscountStoreRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountStoreRemovedMessageBuilder cartDiscountStoreRemovedBuilder() { + return com.commercetools.api.models.message.CartDiscountStoreRemovedMessageBuilder.of(); + } + + /** + * builder for cartDiscountStoresSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountStoresSetMessageBuilder cartDiscountStoresSetBuilder() { + return com.commercetools.api.models.message.CartDiscountStoresSetMessageBuilder.of(); + } + /** * builder for categoryCreated 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 ca32aa7d207..b8bc4baacc8 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 @@ -223,6 +223,26 @@ public com.commercetools.api.models.message.BusinessUnitStoresSetMessageBuilder return com.commercetools.api.models.message.BusinessUnitStoresSetMessageBuilder.of(); } + public com.commercetools.api.models.message.CartDiscountCreatedMessageBuilder cartDiscountCreatedBuilder() { + return com.commercetools.api.models.message.CartDiscountCreatedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.CartDiscountDeletedMessageBuilder cartDiscountDeletedBuilder() { + return com.commercetools.api.models.message.CartDiscountDeletedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.CartDiscountStoreAddedMessageBuilder cartDiscountStoreAddedBuilder() { + return com.commercetools.api.models.message.CartDiscountStoreAddedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.CartDiscountStoreRemovedMessageBuilder cartDiscountStoreRemovedBuilder() { + return com.commercetools.api.models.message.CartDiscountStoreRemovedMessageBuilder.of(); + } + + public com.commercetools.api.models.message.CartDiscountStoresSetMessageBuilder cartDiscountStoresSetBuilder() { + return com.commercetools.api.models.message.CartDiscountStoresSetMessageBuilder.of(); + } + public com.commercetools.api.models.message.CategoryCreatedMessageBuilder categoryCreatedBuilder() { return com.commercetools.api.models.message.CategoryCreatedMessageBuilder.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 f3cd5daaaf1..545c91b9a33 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 @@ -81,6 +81,11 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoreModeChangedMessagePayloadImpl.class, name = BusinessUnitStoreModeChangedMessagePayload.BUSINESS_UNIT_STORE_MODE_CHANGED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoreRemovedMessagePayloadImpl.class, name = BusinessUnitStoreRemovedMessagePayload.BUSINESS_UNIT_STORE_REMOVED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayloadImpl.class, name = BusinessUnitStoresSetMessagePayload.BUSINESS_UNIT_STORES_SET), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountCreatedMessagePayloadImpl.class, name = CartDiscountCreatedMessagePayload.CART_DISCOUNT_CREATED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountDeletedMessagePayloadImpl.class, name = CartDiscountDeletedMessagePayload.CART_DISCOUNT_DELETED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountStoreAddedMessagePayloadImpl.class, name = CartDiscountStoreAddedMessagePayload.CART_DISCOUNT_STORE_ADDED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountStoreRemovedMessagePayloadImpl.class, name = CartDiscountStoreRemovedMessagePayload.CART_DISCOUNT_STORE_REMOVED), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountStoresSetMessagePayloadImpl.class, name = CartDiscountStoresSetMessagePayload.CART_DISCOUNT_STORES_SET), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CategoryCreatedMessagePayloadImpl.class, name = CategoryCreatedMessagePayload.CATEGORY_CREATED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CategorySlugChangedMessagePayloadImpl.class, name = CategorySlugChangedMessagePayload.CATEGORY_SLUG_CHANGED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CustomLineItemStateTransitionMessagePayloadImpl.class, name = CustomLineItemStateTransitionMessagePayload.CUSTOM_LINE_ITEM_STATE_TRANSITION), @@ -477,6 +482,26 @@ public static MessagePayload deepCopy(@Nullable final MessagePayload template) { return com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayload .deepCopy((com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayload) template); } + if (template instanceof com.commercetools.api.models.message.CartDiscountCreatedMessagePayload) { + return com.commercetools.api.models.message.CartDiscountCreatedMessagePayload + .deepCopy((com.commercetools.api.models.message.CartDiscountCreatedMessagePayload) template); + } + if (template instanceof com.commercetools.api.models.message.CartDiscountDeletedMessagePayload) { + return com.commercetools.api.models.message.CartDiscountDeletedMessagePayload + .deepCopy((com.commercetools.api.models.message.CartDiscountDeletedMessagePayload) template); + } + if (template instanceof com.commercetools.api.models.message.CartDiscountStoreAddedMessagePayload) { + return com.commercetools.api.models.message.CartDiscountStoreAddedMessagePayload + .deepCopy((com.commercetools.api.models.message.CartDiscountStoreAddedMessagePayload) template); + } + if (template instanceof com.commercetools.api.models.message.CartDiscountStoreRemovedMessagePayload) { + return com.commercetools.api.models.message.CartDiscountStoreRemovedMessagePayload + .deepCopy((com.commercetools.api.models.message.CartDiscountStoreRemovedMessagePayload) template); + } + if (template instanceof com.commercetools.api.models.message.CartDiscountStoresSetMessagePayload) { + return com.commercetools.api.models.message.CartDiscountStoresSetMessagePayload + .deepCopy((com.commercetools.api.models.message.CartDiscountStoresSetMessagePayload) template); + } if (template instanceof com.commercetools.api.models.message.CategoryCreatedMessagePayload) { return com.commercetools.api.models.message.CategoryCreatedMessagePayload .deepCopy((com.commercetools.api.models.message.CategoryCreatedMessagePayload) template); @@ -1365,6 +1390,46 @@ public static com.commercetools.api.models.message.BusinessUnitStoresSetMessageP return com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayloadBuilder.of(); } + /** + * builder for cartDiscountCreated subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountCreatedMessagePayloadBuilder cartDiscountCreatedBuilder() { + return com.commercetools.api.models.message.CartDiscountCreatedMessagePayloadBuilder.of(); + } + + /** + * builder for cartDiscountDeleted subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountDeletedMessagePayloadBuilder cartDiscountDeletedBuilder() { + return com.commercetools.api.models.message.CartDiscountDeletedMessagePayloadBuilder.of(); + } + + /** + * builder for cartDiscountStoreAdded subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountStoreAddedMessagePayloadBuilder cartDiscountStoreAddedBuilder() { + return com.commercetools.api.models.message.CartDiscountStoreAddedMessagePayloadBuilder.of(); + } + + /** + * builder for cartDiscountStoreRemoved subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountStoreRemovedMessagePayloadBuilder cartDiscountStoreRemovedBuilder() { + return com.commercetools.api.models.message.CartDiscountStoreRemovedMessagePayloadBuilder.of(); + } + + /** + * builder for cartDiscountStoresSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.CartDiscountStoresSetMessagePayloadBuilder cartDiscountStoresSetBuilder() { + return com.commercetools.api.models.message.CartDiscountStoresSetMessagePayloadBuilder.of(); + } + /** * builder for categoryCreated 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 6ac4e1ba841..77d2e3ded5a 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 @@ -223,6 +223,26 @@ public com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayloadB return com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.CartDiscountCreatedMessagePayloadBuilder cartDiscountCreatedBuilder() { + return com.commercetools.api.models.message.CartDiscountCreatedMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.CartDiscountDeletedMessagePayloadBuilder cartDiscountDeletedBuilder() { + return com.commercetools.api.models.message.CartDiscountDeletedMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.CartDiscountStoreAddedMessagePayloadBuilder cartDiscountStoreAddedBuilder() { + return com.commercetools.api.models.message.CartDiscountStoreAddedMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.CartDiscountStoreRemovedMessagePayloadBuilder cartDiscountStoreRemovedBuilder() { + return com.commercetools.api.models.message.CartDiscountStoreRemovedMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.CartDiscountStoresSetMessagePayloadBuilder cartDiscountStoresSetBuilder() { + return com.commercetools.api.models.message.CartDiscountStoresSetMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.CategoryCreatedMessagePayloadBuilder categoryCreatedBuilder() { return com.commercetools.api.models.message.CategoryCreatedMessagePayloadBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderReference.java index e84ce86980d..17672e6388b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = OrderReferenceImpl.class) -public interface OrderReference extends Reference, com.commercetools.api.models.Identifiable { +public interface OrderReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for OrderReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditReference.java index 48876d82a57..347423edc4d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order_edit/OrderEditReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = OrderEditReferenceImpl.class) -public interface OrderEditReference extends Reference, com.commercetools.api.models.Identifiable { +public interface OrderEditReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for OrderEditReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentReference.java index e97a746cd93..a95caf6e991 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/payment/PaymentReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = PaymentReferenceImpl.class) -public interface PaymentReference extends Reference, com.commercetools.api.models.Identifiable { +public interface PaymentReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for PaymentReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductReference.java index 510d8632300..5f79e4d152a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductReference.java @@ -30,8 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ProductReferenceImpl.class) -public interface ProductReference - extends Reference, com.commercetools.api.models.Identifiable, ProductReferenceMixin { +public interface ProductReference extends Reference, com.commercetools.api.models.Identifiable, + ProductReferenceMixin, com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for ProductReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountReference.java index e6d5bee422d..b9b87132ba1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_discount/ProductDiscountReference.java @@ -30,8 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ProductDiscountReferenceImpl.class) -public interface ProductDiscountReference - extends Reference, com.commercetools.api.models.Identifiable { +public interface ProductDiscountReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for ProductDiscountReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_selection/ProductSelectionReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_selection/ProductSelectionReference.java index ea4b151e54a..2a4943bd178 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_selection/ProductSelectionReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_selection/ProductSelectionReference.java @@ -31,7 +31,8 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ProductSelectionReferenceImpl.class) public interface ProductSelectionReference - extends Reference, com.commercetools.api.models.Identifiable { + extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for ProductSelectionReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeReference.java index f3dbb9fa375..00c4d75bdd6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ProductTypeReferenceImpl.class) -public interface ProductTypeReference extends Reference, com.commercetools.api.models.Identifiable { +public interface ProductTypeReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for ProductTypeReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/OrderSearchStatus.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/OrderSearchStatus.java index f158485f191..fae0249cbb4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/OrderSearchStatus.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/OrderSearchStatus.java @@ -17,7 +17,7 @@ public interface OrderSearchStatus extends JsonEnum { /** -

indicates that the Search Orders endpoint is fully operational.

+

indicates that the Search Orders endpoint is fully operational.

*/ OrderSearchStatus ACTIVATED = OrderSearchStatusEnum.ACTIVATED; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteReference.java index 345cf69e83e..c20425a1c6e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote/QuoteReference.java @@ -29,7 +29,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = QuoteReferenceImpl.class) -public interface QuoteReference extends Reference, com.commercetools.api.models.Identifiable { +public interface QuoteReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for QuoteReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote_request/QuoteRequestReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote_request/QuoteRequestReference.java index f0186c05f2a..a1d9dc72977 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote_request/QuoteRequestReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/quote_request/QuoteRequestReference.java @@ -29,7 +29,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = QuoteRequestReferenceImpl.class) -public interface QuoteRequestReference extends Reference, com.commercetools.api.models.Identifiable { +public interface QuoteRequestReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for QuoteRequestReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/review/ReviewReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/review/ReviewReference.java index 067328545e0..12c7721d787 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/review/ReviewReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/review/ReviewReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ReviewReferenceImpl.class) -public interface ReviewReference extends Reference, com.commercetools.api.models.Identifiable { +public interface ReviewReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for ReviewReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodReference.java index 932a800cbba..c1b69aa1df8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ShippingMethodReferenceImpl.class) -public interface ShippingMethodReference extends Reference, com.commercetools.api.models.Identifiable { +public interface ShippingMethodReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for ShippingMethodReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListReference.java index 76688616550..7fa3f821b4b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shopping_list/ShoppingListReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ShoppingListReferenceImpl.class) -public interface ShoppingListReference extends Reference, com.commercetools.api.models.Identifiable { +public interface ShoppingListReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for ShoppingListReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteReference.java index d9895d3b2ae..13e8dc21bd2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/staged_quote/StagedQuoteReference.java @@ -29,7 +29,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = StagedQuoteReferenceImpl.class) -public interface StagedQuoteReference extends Reference, com.commercetools.api.models.Identifiable { +public interface StagedQuoteReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for StagedQuoteReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeActiveAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeActiveAction.java index 5e25f20dfb1..79de9bcf7c1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeActiveAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeActiveAction.java @@ -14,7 +14,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Updating the value of a StandalonePrice produces the StandalonePriceActiveChangedMessage.

+ *

Updating the value of a StandalonePrice produces the StandalonePriceActiveChanged 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/standalone_price/StandalonePriceChangeActiveActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeActiveActionImpl.java index adb9d64b741..656844a0216 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeActiveActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceChangeActiveActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

Updating the value of a StandalonePrice produces the StandalonePriceActiveChangedMessage.

+ *

Updating the value of a StandalonePrice produces the StandalonePriceActiveChanged Message.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class StandalonePriceChangeActiveActionImpl implements StandalonePriceChangeActiveAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateReference.java index cb683a9f760..f5adf71aec7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/state/StateReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = StateReferenceImpl.class) -public interface StateReference extends Reference, com.commercetools.api.models.Identifiable { +public interface StateReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for StateReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreReference.java index e3abe00f304..e7ffcde9a15 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/store/StoreReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = StoreReferenceImpl.class) -public interface StoreReference extends Reference, com.commercetools.api.models.Identifiable { +public interface StoreReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for StoreReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionResourceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionResourceTypeId.java index cdeba7186fc..120ba821a1f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionResourceTypeId.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ChangeSubscriptionResourceTypeId.java @@ -97,7 +97,7 @@ public interface ChangeSubscriptionResourceTypeId extends JsonEnum { */ ChangeSubscriptionResourceTypeId KEY_VALUE_DOCUMENT = ChangeSubscriptionResourceTypeIdEnum.KEY_VALUE_DOCUMENT; /** -

Changes to Orders. Changes to Orders via Order Edits do not trigger a Message. To achieve this, a MessageSubscription to Order Edit Applied Message is necessary.

+

Changes to Orders. Changes to Orders via Order Edits do not trigger a Message. To achieve this, a MessageSubscription to OrderEditApplied Message is necessary.

*/ ChangeSubscriptionResourceTypeId ORDER = ChangeSubscriptionResourceTypeIdEnum.ORDER; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxCategoryReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxCategoryReference.java index 5637d9bcf91..42701d6a3a5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxCategoryReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxCategoryReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = TaxCategoryReferenceImpl.class) -public interface TaxCategoryReference extends Reference, com.commercetools.api.models.Identifiable { +public interface TaxCategoryReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for TaxCategoryReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/TypeReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/TypeReference.java index a57b33cdfd6..afe016d19dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/TypeReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/TypeReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = TypeReferenceImpl.class) -public interface TypeReference extends Reference, com.commercetools.api.models.Identifiable { +public interface TypeReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for TypeReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/zone/ZoneReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/zone/ZoneReference.java index 8912d7a5117..e542f168666 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/zone/ZoneReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/zone/ZoneReference.java @@ -30,7 +30,8 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = ZoneReferenceImpl.class) -public interface ZoneReference extends Reference, com.commercetools.api.models.Identifiable { +public interface ZoneReference extends Reference, com.commercetools.api.models.Identifiable, + com.commercetools.api.models.IdentifiableObjHolder { /** * discriminator value for ZoneReference diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountCreatedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountCreatedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..61431df4828 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountCreatedMessagePayloadQueryBuilderDsl.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 CartDiscountCreatedMessagePayloadQueryBuilderDsl { + public CartDiscountCreatedMessagePayloadQueryBuilderDsl() { + } + + public static CartDiscountCreatedMessagePayloadQueryBuilderDsl of() { + return new CartDiscountCreatedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountCreatedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate cartDiscount( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("cartDiscount")) + .inner(fn.apply( + com.commercetools.api.predicates.query.cart_discount.CartDiscountQueryBuilderDsl.of())), + CartDiscountCreatedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountCreatedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountCreatedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..95dbdd20920 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountCreatedMessageQueryBuilderDsl.java @@ -0,0 +1,104 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CartDiscountCreatedMessageQueryBuilderDsl { + public CartDiscountCreatedMessageQueryBuilderDsl() { + } + + public static CartDiscountCreatedMessageQueryBuilderDsl of() { + return new CartDiscountCreatedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CartDiscountCreatedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CartDiscountCreatedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountCreatedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountCreatedMessageQueryBuilderDsl::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())), + CartDiscountCreatedMessageQueryBuilderDsl::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())), + CartDiscountCreatedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CartDiscountCreatedMessageQueryBuilderDsl::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())), + CartDiscountCreatedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CartDiscountCreatedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountCreatedMessageQueryBuilderDsl::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())), + CartDiscountCreatedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate cartDiscount( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("cartDiscount")) + .inner(fn.apply( + com.commercetools.api.predicates.query.cart_discount.CartDiscountQueryBuilderDsl.of())), + CartDiscountCreatedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountDeletedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountDeletedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..a31393af739 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountDeletedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,20 @@ + +package com.commercetools.api.predicates.query.message; + +import com.commercetools.api.predicates.query.*; + +public class CartDiscountDeletedMessagePayloadQueryBuilderDsl { + public CartDiscountDeletedMessagePayloadQueryBuilderDsl() { + } + + public static CartDiscountDeletedMessagePayloadQueryBuilderDsl of() { + return new CartDiscountDeletedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountDeletedMessagePayloadQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountDeletedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountDeletedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..8e96d42125f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountDeletedMessageQueryBuilderDsl.java @@ -0,0 +1,94 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CartDiscountDeletedMessageQueryBuilderDsl { + public CartDiscountDeletedMessageQueryBuilderDsl() { + } + + public static CartDiscountDeletedMessageQueryBuilderDsl of() { + return new CartDiscountDeletedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CartDiscountDeletedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CartDiscountDeletedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountDeletedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountDeletedMessageQueryBuilderDsl::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())), + CartDiscountDeletedMessageQueryBuilderDsl::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())), + CartDiscountDeletedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CartDiscountDeletedMessageQueryBuilderDsl::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())), + CartDiscountDeletedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CartDiscountDeletedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountDeletedMessageQueryBuilderDsl::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())), + CartDiscountDeletedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreAddedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreAddedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..8c76cc57fb2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreAddedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CartDiscountStoreAddedMessagePayloadQueryBuilderDsl { + public CartDiscountStoreAddedMessagePayloadQueryBuilderDsl() { + } + + public static CartDiscountStoreAddedMessagePayloadQueryBuilderDsl of() { + return new CartDiscountStoreAddedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreAddedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate store( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("store")) + .inner(fn.apply(com.commercetools.api.predicates.query.store.StoreKeyReferenceQueryBuilderDsl.of())), + CartDiscountStoreAddedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreAddedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreAddedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..508160267db --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreAddedMessageQueryBuilderDsl.java @@ -0,0 +1,102 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CartDiscountStoreAddedMessageQueryBuilderDsl { + public CartDiscountStoreAddedMessageQueryBuilderDsl() { + } + + public static CartDiscountStoreAddedMessageQueryBuilderDsl of() { + return new CartDiscountStoreAddedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreAddedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreAddedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreAddedMessageQueryBuilderDsl::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())), + CartDiscountStoreAddedMessageQueryBuilderDsl::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())), + CartDiscountStoreAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreAddedMessageQueryBuilderDsl::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())), + CartDiscountStoreAddedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreAddedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreAddedMessageQueryBuilderDsl::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())), + CartDiscountStoreAddedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate store( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("store")) + .inner(fn.apply(com.commercetools.api.predicates.query.store.StoreKeyReferenceQueryBuilderDsl.of())), + CartDiscountStoreAddedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..a46b5c2bc76 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl { + public CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl() { + } + + public static CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl of() { + return new CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate store( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("store")) + .inner(fn.apply(com.commercetools.api.predicates.query.store.StoreKeyReferenceQueryBuilderDsl.of())), + CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreRemovedMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreRemovedMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..1e060a88c37 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoreRemovedMessageQueryBuilderDsl.java @@ -0,0 +1,102 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CartDiscountStoreRemovedMessageQueryBuilderDsl { + public CartDiscountStoreRemovedMessageQueryBuilderDsl() { + } + + public static CartDiscountStoreRemovedMessageQueryBuilderDsl of() { + return new CartDiscountStoreRemovedMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreRemovedMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreRemovedMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreRemovedMessageQueryBuilderDsl::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())), + CartDiscountStoreRemovedMessageQueryBuilderDsl::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())), + CartDiscountStoreRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreRemovedMessageQueryBuilderDsl::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())), + CartDiscountStoreRemovedMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreRemovedMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoreRemovedMessageQueryBuilderDsl::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())), + CartDiscountStoreRemovedMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate store( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("store")) + .inner(fn.apply(com.commercetools.api.predicates.query.store.StoreKeyReferenceQueryBuilderDsl.of())), + CartDiscountStoreRemovedMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoresSetMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoresSetMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..ad05ed81d93 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoresSetMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,35 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CartDiscountStoresSetMessagePayloadQueryBuilderDsl { + public CartDiscountStoresSetMessagePayloadQueryBuilderDsl() { + } + + public static CartDiscountStoresSetMessagePayloadQueryBuilderDsl of() { + return new CartDiscountStoresSetMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate stores( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("stores")) + .inner(fn.apply(com.commercetools.api.predicates.query.store.StoreKeyReferenceQueryBuilderDsl.of())), + CartDiscountStoresSetMessagePayloadQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder stores() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("stores")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessagePayloadQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoresSetMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoresSetMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..ce2da265868 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/CartDiscountStoresSetMessageQueryBuilderDsl.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class CartDiscountStoresSetMessageQueryBuilderDsl { + public CartDiscountStoresSetMessageQueryBuilderDsl() { + } + + public static CartDiscountStoresSetMessageQueryBuilderDsl of() { + return new CartDiscountStoresSetMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessageQueryBuilderDsl::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())), + CartDiscountStoresSetMessageQueryBuilderDsl::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())), + CartDiscountStoresSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessageQueryBuilderDsl::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())), + CartDiscountStoresSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessageQueryBuilderDsl::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())), + CartDiscountStoresSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate stores( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("stores")) + .inner(fn.apply(com.commercetools.api.predicates.query.store.StoreKeyReferenceQueryBuilderDsl.of())), + CartDiscountStoresSetMessageQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder stores() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("stores")), + p -> new CombinationQueryPredicate<>(p, CartDiscountStoresSetMessageQueryBuilderDsl::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 145857b266c..5d8661f538a 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 @@ -431,6 +431,44 @@ public CombinationQueryPredicate asBusinessUnitSt MessagePayloadQueryBuilderDsl::of); } + public CombinationQueryPredicate asCartDiscountCreated( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.CartDiscountCreatedMessagePayloadQueryBuilderDsl.of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCartDiscountDeleted( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.CartDiscountDeletedMessagePayloadQueryBuilderDsl.of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCartDiscountStoreAdded( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CartDiscountStoreAddedMessagePayloadQueryBuilderDsl.of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCartDiscountStoreRemoved( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.CartDiscountStoreRemovedMessagePayloadQueryBuilderDsl.of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCartDiscountStoresSet( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.CartDiscountStoresSetMessagePayloadQueryBuilderDsl.of()), + MessagePayloadQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCategoryCreated( 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 4571a2a1f42..d93d2e52ba6 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 @@ -492,6 +492,42 @@ public CombinationQueryPredicate asBusinessUnitStoresSet MessageQueryBuilderDsl::of); } + public CombinationQueryPredicate asCartDiscountCreated( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.message.CartDiscountCreatedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCartDiscountDeleted( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.message.CartDiscountDeletedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCartDiscountStoreAdded( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.message.CartDiscountStoreAddedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCartDiscountStoreRemoved( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.CartDiscountStoreRemovedMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asCartDiscountStoresSet( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.message.CartDiscountStoresSetMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCategoryCreated( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/models/IdentifiableObjHolder.java b/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/models/IdentifiableObjHolder.java new file mode 100644 index 00000000000..a4de366479a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/models/IdentifiableObjHolder.java @@ -0,0 +1,6 @@ + +package com.commercetools.api.models; + +public interface IdentifiableObjHolder extends Identifiable { + public T getObj(); +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayloadTest.java new file mode 100644 index 00000000000..ff2457252a5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessagePayloadTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountCreatedMessagePayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CartDiscountCreatedMessagePayloadBuilder builder) { + CartDiscountCreatedMessagePayload cartDiscountCreatedMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(cartDiscountCreatedMessagePayload).isInstanceOf(CartDiscountCreatedMessagePayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CartDiscountCreatedMessagePayload.builder() + .cartDiscount(new com.commercetools.api.models.cart_discount.CartDiscountImpl()) } }; + } + + @Test + public void cartDiscount() { + CartDiscountCreatedMessagePayload value = CartDiscountCreatedMessagePayload.of(); + value.setCartDiscount(new com.commercetools.api.models.cart_discount.CartDiscountImpl()); + Assertions.assertThat(value.getCartDiscount()) + .isEqualTo(new com.commercetools.api.models.cart_discount.CartDiscountImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessageTest.java new file mode 100644 index 00000000000..e4d19ef5b00 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountCreatedMessageTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountCreatedMessageTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CartDiscountCreatedMessageBuilder builder) { + CartDiscountCreatedMessage cartDiscountCreatedMessage = builder.buildUnchecked(); + Assertions.assertThat(cartDiscountCreatedMessage).isInstanceOf(CartDiscountCreatedMessage.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CartDiscountCreatedMessage.builder() + .cartDiscount(new com.commercetools.api.models.cart_discount.CartDiscountImpl()) } }; + } + + @Test + public void cartDiscount() { + CartDiscountCreatedMessage value = CartDiscountCreatedMessage.of(); + value.setCartDiscount(new com.commercetools.api.models.cart_discount.CartDiscountImpl()); + Assertions.assertThat(value.getCartDiscount()) + .isEqualTo(new com.commercetools.api.models.cart_discount.CartDiscountImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayloadTest.java new file mode 100644 index 00000000000..6b4ca868c6e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessagePayloadTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountDeletedMessagePayloadTest { + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessageTest.java new file mode 100644 index 00000000000..4802c1dc28d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountDeletedMessageTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountDeletedMessageTest { + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayloadTest.java new file mode 100644 index 00000000000..98ff07df391 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessagePayloadTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountStoreAddedMessagePayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CartDiscountStoreAddedMessagePayloadBuilder builder) { + CartDiscountStoreAddedMessagePayload cartDiscountStoreAddedMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(cartDiscountStoreAddedMessagePayload) + .isInstanceOf(CartDiscountStoreAddedMessagePayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CartDiscountStoreAddedMessagePayload.builder() + .store(new com.commercetools.api.models.store.StoreKeyReferenceImpl()) } }; + } + + @Test + public void store() { + CartDiscountStoreAddedMessagePayload value = CartDiscountStoreAddedMessagePayload.of(); + value.setStore(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + Assertions.assertThat(value.getStore()) + .isEqualTo(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessageTest.java new file mode 100644 index 00000000000..3fb812eb5ba --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreAddedMessageTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountStoreAddedMessageTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CartDiscountStoreAddedMessageBuilder builder) { + CartDiscountStoreAddedMessage cartDiscountStoreAddedMessage = builder.buildUnchecked(); + Assertions.assertThat(cartDiscountStoreAddedMessage).isInstanceOf(CartDiscountStoreAddedMessage.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CartDiscountStoreAddedMessage.builder() + .store(new com.commercetools.api.models.store.StoreKeyReferenceImpl()) } }; + } + + @Test + public void store() { + CartDiscountStoreAddedMessage value = CartDiscountStoreAddedMessage.of(); + value.setStore(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + Assertions.assertThat(value.getStore()) + .isEqualTo(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayloadTest.java new file mode 100644 index 00000000000..6deb5bddcab --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessagePayloadTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountStoreRemovedMessagePayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CartDiscountStoreRemovedMessagePayloadBuilder builder) { + CartDiscountStoreRemovedMessagePayload cartDiscountStoreRemovedMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(cartDiscountStoreRemovedMessagePayload) + .isInstanceOf(CartDiscountStoreRemovedMessagePayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CartDiscountStoreRemovedMessagePayload.builder() + .store(new com.commercetools.api.models.store.StoreKeyReferenceImpl()) } }; + } + + @Test + public void store() { + CartDiscountStoreRemovedMessagePayload value = CartDiscountStoreRemovedMessagePayload.of(); + value.setStore(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + Assertions.assertThat(value.getStore()) + .isEqualTo(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessageTest.java new file mode 100644 index 00000000000..f9dee64c042 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoreRemovedMessageTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountStoreRemovedMessageTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CartDiscountStoreRemovedMessageBuilder builder) { + CartDiscountStoreRemovedMessage cartDiscountStoreRemovedMessage = builder.buildUnchecked(); + Assertions.assertThat(cartDiscountStoreRemovedMessage).isInstanceOf(CartDiscountStoreRemovedMessage.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CartDiscountStoreRemovedMessage.builder() + .store(new com.commercetools.api.models.store.StoreKeyReferenceImpl()) } }; + } + + @Test + public void store() { + CartDiscountStoreRemovedMessage value = CartDiscountStoreRemovedMessage.of(); + value.setStore(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + Assertions.assertThat(value.getStore()) + .isEqualTo(new com.commercetools.api.models.store.StoreKeyReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayloadTest.java new file mode 100644 index 00000000000..c7774fd7816 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessagePayloadTest.java @@ -0,0 +1,41 @@ + +package com.commercetools.api.models.message; + +import java.util.Collections; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountStoresSetMessagePayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CartDiscountStoresSetMessagePayloadBuilder builder) { + CartDiscountStoresSetMessagePayload cartDiscountStoresSetMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(cartDiscountStoresSetMessagePayload) + .isInstanceOf(CartDiscountStoresSetMessagePayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CartDiscountStoresSetMessagePayload.builder() + .stores(Collections.singletonList(new com.commercetools.api.models.store.StoreKeyReferenceImpl())) } }; + } + + @Test + public void stores() { + CartDiscountStoresSetMessagePayload value = CartDiscountStoresSetMessagePayload.of(); + value.setStores(Collections.singletonList(new com.commercetools.api.models.store.StoreKeyReferenceImpl())); + Assertions.assertThat(value.getStores()) + .isEqualTo(Collections.singletonList(new com.commercetools.api.models.store.StoreKeyReferenceImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessageTest.java new file mode 100644 index 00000000000..14b0e99f6c8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/CartDiscountStoresSetMessageTest.java @@ -0,0 +1,40 @@ + +package com.commercetools.api.models.message; + +import java.util.Collections; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartDiscountStoresSetMessageTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CartDiscountStoresSetMessageBuilder builder) { + CartDiscountStoresSetMessage cartDiscountStoresSetMessage = builder.buildUnchecked(); + Assertions.assertThat(cartDiscountStoresSetMessage).isInstanceOf(CartDiscountStoresSetMessage.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { CartDiscountStoresSetMessage.builder() + .stores(Collections.singletonList(new com.commercetools.api.models.store.StoreKeyReferenceImpl())) } }; + } + + @Test + public void stores() { + CartDiscountStoresSetMessage value = CartDiscountStoresSetMessage.of(); + value.setStores(Collections.singletonList(new com.commercetools.api.models.store.StoreKeyReferenceImpl())); + Assertions.assertThat(value.getStores()) + .isEqualTo(Collections.singletonList(new com.commercetools.api.models.store.StoreKeyReferenceImpl())); + } +} diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..1ebfdeb08f3 --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +55d9271f5bdd3dd7ea1967878e72d27de0e70d70 diff --git a/references.txt b/references.txt index 01457936474..35a6ca71dca 100644 --- a/references.txt +++ b/references.txt @@ -173,3 +173,10 @@ d216fff1d56706c8f7cb20b8c9d10b917b8f7781 580c5cde461a20eb43322d6bb592ac2de30eb61f abf2e5abe5909b6f2f44aa192852d2a12c5aa519 d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7 +281ab8a36f5fd144e39212855c2991eaeb29407a +5804c065e8051fa2b49be3dc0e9393bc280a7bdc +05300c0ea84527a9f8ce73ac1f319c9e6a9f46cb +47e18782ed2049ecdae7413ff7df9c3a796b8132 +14cae25763d9bd24ec49dc1a4698532d5a21a7ef +de74b7108b22564877be0b8f52e66b3febc1760f +de74b7108b22564877be0b8f52e66b3febc1760f