From 06c4b8db14626d89eba6115c848739b65445a365 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:38:10 +0000 Subject: [PATCH] build(codegen): updating SDK --- .../main/resources/graphql/schema.graphqls | 214 +++++++- ...eyByStoreKeyProductProjectionsByIDGet.java | 3 +- ...StoreKeyProductProjectionsKeyByKeyGet.java | 3 +- .../ByProjectKeyProductsRequestBuilder.java | 4 + .../ByProjectKeyProductsSearchHead.java | 109 ++++ .../ByProjectKeyProductsSearchPost.java | 130 +++++ .../ByProjectKeyProductsSearchPostString.java | 129 +++++ ...rojectKeyProductsSearchRequestBuilder.java | 38 ++ .../models/approval_flow/ApprovalFlow.java | 18 - .../approval_flow/ApprovalFlowBuilder.java | 53 +- .../approval_flow/ApprovalFlowImpl.java | 22 +- .../ApprovalFlowSetCustomFieldAction.java | 143 ----- ...provalFlowSetCustomFieldActionBuilder.java | 109 ---- .../ApprovalFlowSetCustomTypeAction.java | 144 ----- ...pprovalFlowSetCustomTypeActionBuilder.java | 160 ------ .../ApprovalFlowSetCustomTypeActionImpl.java | 114 ---- .../ApprovalFlowUpdateAction.java | 28 +- .../ApprovalFlowUpdateActionBuilder.java | 8 - .../models/business_unit/BusinessUnit.java | 6 +- .../business_unit/BusinessUnitImpl.java | 2 +- .../business_unit/BusinessUnitStatus.java | 2 +- .../models/business_unit/CompanyBuilder.java | 16 +- .../api/models/business_unit/CompanyImpl.java | 2 +- .../models/business_unit/DivisionBuilder.java | 16 +- .../models/business_unit/DivisionImpl.java | 2 +- .../api/models/cart/ExternalTaxRateDraft.java | 6 +- .../cart/ExternalTaxRateDraftBuilder.java | 16 +- .../models/cart/ExternalTaxRateDraftImpl.java | 2 +- .../api/models/error/ErrorObject.java | 13 + .../api/models/error/ErrorObjectBuilder.java | 4 + .../api/models/error/ErrorResponse.java | 4 + .../api/models/error/GraphQLErrorObject.java | 13 + .../error/GraphQLErrorObjectBuilder.java | 4 + .../models/error/GraphQLNotEnabledError.java | 118 ++++ .../error/GraphQLNotEnabledErrorBuilder.java | 95 ++++ .../error/GraphQLNotEnabledErrorImpl.java | 97 ++++ .../api/models/error/NotEnabledError.java | 136 +++++ .../models/error/NotEnabledErrorBuilder.java | 120 +++++ .../api/models/error/NotEnabledErrorImpl.java | 116 ++++ .../api/models/order/ShipmentState.java | 2 +- .../ProductPagedSearchResponse.java | 206 +++++++ .../ProductPagedSearchResponseBuilder.java | 289 ++++++++++ .../ProductPagedSearchResponseImpl.java | 163 ++++++ .../ProductSearchAndExpression.java | 136 +++++ .../ProductSearchAndExpressionBuilder.java | 161 ++++++ .../ProductSearchAndExpressionImpl.java | 81 +++ .../product_search/ProductSearchAnyValue.java | 161 ++++++ .../ProductSearchAnyValueBuilder.java | 209 ++++++++ .../ProductSearchAnyValueImpl.java | 179 +++++++ .../ProductSearchAttributeType.java | 252 +++++++++ .../ProductSearchCompoundExpression.java | 118 ++++ ...roductSearchCompoundExpressionBuilder.java | 57 ++ .../ProductSearchCompoundExpressionImpl.java | 54 ++ .../ProductSearchDateRangeExpression.java | 124 +++++ ...oductSearchDateRangeExpressionBuilder.java | 109 ++++ .../ProductSearchDateRangeExpressionImpl.java | 77 +++ .../ProductSearchDateRangeValue.java | 178 ++++++ .../ProductSearchDateRangeValueBuilder.java | 235 ++++++++ .../ProductSearchDateRangeValueImpl.java | 199 +++++++ .../ProductSearchDateTimeRangeExpression.java | 126 +++++ ...tSearchDateTimeRangeExpressionBuilder.java | 111 ++++ ...ductSearchDateTimeRangeExpressionImpl.java | 77 +++ .../ProductSearchDateTimeRangeValue.java | 178 ++++++ ...roductSearchDateTimeRangeValueBuilder.java | 235 ++++++++ .../ProductSearchDateTimeRangeValueImpl.java | 201 +++++++ .../ProductSearchErrorResponse.java | 172 ++++++ .../ProductSearchErrorResponseBuilder.java | 191 +++++++ .../ProductSearchErrorResponseImpl.java | 121 +++++ .../ProductSearchExactExpression.java | 124 +++++ .../ProductSearchExactExpressionBuilder.java | 109 ++++ .../ProductSearchExactExpressionImpl.java | 77 +++ .../ProductSearchExistsExpression.java | 124 +++++ .../ProductSearchExistsExpressionBuilder.java | 109 ++++ .../ProductSearchExistsExpressionImpl.java | 77 +++ .../ProductSearchExistsValue.java | 126 +++++ .../ProductSearchExistsValueBuilder.java | 160 ++++++ .../ProductSearchExistsValueImpl.java | 140 +++++ .../ProductSearchFacetBucketResult.java | 139 +++++ ...ProductSearchFacetBucketResultBuilder.java | 192 +++++++ .../ProductSearchFacetBucketResultImpl.java | 104 ++++ .../ProductSearchFacetCountExpression.java | 125 +++++ ...ductSearchFacetCountExpressionBuilder.java | 110 ++++ ...ProductSearchFacetCountExpressionImpl.java | 77 +++ .../ProductSearchFacetCountValue.java | 174 ++++++ .../ProductSearchFacetCountValueBuilder.java | 187 +++++++ .../ProductSearchFacetCountValueImpl.java | 136 +++++ ...roductSearchFacetDistinctBucketSortBy.java | 119 +++++ ...archFacetDistinctBucketSortExpression.java | 143 +++++ ...etDistinctBucketSortExpressionBuilder.java | 111 ++++ ...FacetDistinctBucketSortExpressionImpl.java | 100 ++++ .../ProductSearchFacetDistinctExpression.java | 126 +++++ ...tSearchFacetDistinctExpressionBuilder.java | 111 ++++ ...ductSearchFacetDistinctExpressionImpl.java | 78 +++ .../ProductSearchFacetDistinctStartsWith.java | 141 +++++ ...tSearchFacetDistinctStartsWithBuilder.java | 108 ++++ ...ductSearchFacetDistinctStartsWithImpl.java | 98 ++++ .../ProductSearchFacetDistinctValue.java | 321 +++++++++++ ...roductSearchFacetDistinctValueBuilder.java | 472 ++++++++++++++++ .../ProductSearchFacetDistinctValueImpl.java | 305 +++++++++++ .../ProductSearchFacetEnumCount.java | 119 +++++ .../ProductSearchFacetEnumScope.java | 119 +++++ .../ProductSearchFacetExpression.java | 114 ++++ .../ProductSearchFacetExpressionBuilder.java | 57 ++ .../ProductSearchFacetExpressionImpl.java | 54 ++ .../ProductSearchFacetRangesExpression.java | 125 +++++ ...uctSearchFacetRangesExpressionBuilder.java | 111 ++++ ...roductSearchFacetRangesExpressionImpl.java | 77 +++ .../ProductSearchFacetRangesFacetRange.java | 154 ++++++ ...uctSearchFacetRangesFacetRangeBuilder.java | 134 +++++ ...roductSearchFacetRangesFacetRangeImpl.java | 116 ++++ .../ProductSearchFacetRangesValue.java | 258 +++++++++ .../ProductSearchFacetRangesValueBuilder.java | 374 +++++++++++++ .../ProductSearchFacetRangesValueImpl.java | 227 ++++++++ .../ProductSearchFacetResult.java | 136 +++++ .../ProductSearchFacetResultBucket.java | 139 +++++ ...ProductSearchFacetResultBucketBuilder.java | 107 ++++ .../ProductSearchFacetResultBucketImpl.java} | 37 +- .../ProductSearchFacetResultBuilder.java | 167 ++++++ .../ProductSearchFacetResultCount.java | 124 +++++ .../ProductSearchFacetResultCountBuilder.java | 107 ++++ .../ProductSearchFacetResultCountImpl.java} | 45 +- .../ProductSearchFacetResultExpression.java | 130 +++++ ...uctSearchFacetResultExpressionBuilder.java | 82 +++ ...roductSearchFacetResultExpressionImpl.java | 76 +++ .../ProductSearchFacetResultImpl.java | 83 +++ .../ProductSearchFacetScope.java | 112 ++++ .../ProductSearchFilterExpression.java | 136 +++++ .../ProductSearchFilterExpressionBuilder.java | 167 ++++++ .../ProductSearchFilterExpressionImpl.java | 82 +++ .../ProductSearchFullTextExpression.java | 124 +++++ ...roductSearchFullTextExpressionBuilder.java | 111 ++++ .../ProductSearchFullTextExpressionImpl.java | 77 +++ .../ProductSearchFullTextValue.java | 161 ++++++ .../ProductSearchFullTextValueBuilder.java | 210 ++++++++ .../ProductSearchFullTextValueImpl.java | 179 +++++++ .../product_search/ProductSearchHit.java | 171 ++++++ .../ProductSearchHitBuilder.java | 245 +++++++++ .../product_search/ProductSearchHitImpl.java | 123 +++++ .../ProductSearchLongRangeExpression.java | 124 +++++ ...oductSearchLongRangeExpressionBuilder.java | 109 ++++ .../ProductSearchLongRangeExpressionImpl.java | 77 +++ .../ProductSearchLongRangeValue.java | 177 ++++++ .../ProductSearchLongRangeValueBuilder.java | 235 ++++++++ .../ProductSearchLongRangeValueImpl.java | 199 +++++++ .../ProductSearchMatchType.java | 112 ++++ .../ProductSearchMatchingVariant.java | 138 +++++ .../ProductSearchMatchingVariantBuilder.java | 109 ++++ .../ProductSearchMatchingVariantImpl.java | 95 ++++ .../ProductSearchNotExpression.java | 136 +++++ .../ProductSearchNotExpressionBuilder.java | 161 ++++++ .../ProductSearchNotExpressionImpl.java | 81 +++ .../ProductSearchNumberRangeExpression.java | 125 +++++ ...uctSearchNumberRangeExpressionBuilder.java | 111 ++++ ...roductSearchNumberRangeExpressionImpl.java | 77 +++ .../ProductSearchNumberRangeValue.java | 177 ++++++ .../ProductSearchNumberRangeValueBuilder.java | 235 ++++++++ .../ProductSearchNumberRangeValueImpl.java | 199 +++++++ .../ProductSearchOrExpression.java | 136 +++++ .../ProductSearchOrExpressionBuilder.java | 161 ++++++ .../ProductSearchOrExpressionImpl.java | 81 +++ .../ProductSearchPrefixExpression.java | 124 +++++ .../ProductSearchPrefixExpressionBuilder.java | 109 ++++ .../ProductSearchPrefixExpressionImpl.java | 77 +++ .../ProductSearchProjectionParams.java | 247 +++++++++ .../ProductSearchProjectionParamsBuilder.java | 287 ++++++++++ .../ProductSearchProjectionParamsImpl.java | 223 ++++++++ .../product_search/ProductSearchQuery.java | 110 ++++ .../ProductSearchQueryBuilder.java | 57 ++ .../ProductSearchQueryExpression.java | 142 +++++ .../ProductSearchQueryExpressionBuilder.java | 57 ++ .../ProductSearchQueryExpressionImpl.java | 54 ++ .../ProductSearchQueryExpressionValue.java | 188 +++++++ ...ductSearchQueryExpressionValueBuilder.java | 135 +++++ ...ProductSearchQueryExpressionValueImpl.java | 118 ++++ .../ProductSearchQueryImpl.java | 54 ++ .../product_search/ProductSearchRequest.java | 266 +++++++++ .../ProductSearchRequestBuilder.java | 505 ++++++++++++++++++ .../ProductSearchRequestImpl.java | 230 ++++++++ .../product_search/ProductSearchSortMode.java | 126 +++++ .../ProductSearchSortOrder.java | 119 +++++ .../product_search/ProductSearchSorting.java | 226 ++++++++ .../ProductSearchSortingBuilder.java | 266 +++++++++ .../ProductSearchSortingImpl.java | 200 +++++++ ...tSearchSuggestionCompletionExpression.java | 129 +++++ ...SuggestionCompletionExpressionBuilder.java | 114 ++++ ...rchSuggestionCompletionExpressionImpl.java | 79 +++ ...chSuggestionCompletionExpressionValue.java | 161 ++++++ ...stionCompletionExpressionValueBuilder.java | 134 +++++ ...ggestionCompletionExpressionValueImpl.java | 117 ++++ .../ProductSearchSuggestionExpression.java | 107 ++++ ...ductSearchSuggestionExpressionBuilder.java | 57 ++ ...ProductSearchSuggestionExpressionImpl.java | 54 ++ ...roductSearchSuggestionExpressionValue.java | 110 ++++ ...earchSuggestionExpressionValueBuilder.java | 58 ++ ...ctSearchSuggestionExpressionValueImpl.java | 54 ++ .../ProductSearchTimeRangeExpression.java | 124 +++++ ...oductSearchTimeRangeExpressionBuilder.java | 109 ++++ .../ProductSearchTimeRangeExpressionImpl.java | 77 +++ .../ProductSearchTimeRangeValue.java | 178 ++++++ .../ProductSearchTimeRangeValueBuilder.java | 235 ++++++++ .../ProductSearchTimeRangeValueImpl.java | 199 +++++++ .../ProductSearchWildCardExpression.java | 124 +++++ ...roductSearchWildCardExpressionBuilder.java | 109 ++++ .../ProductSearchWildCardExpressionImpl.java | 77 +++ .../product_type/AttributeReferenceType.java | 2 +- .../AttributeReferenceTypeBuilder.java | 2 +- .../AttributeReferenceTypeId.java | 30 -- .../models/project/ProductSearchStatus.java | 119 +++++ ...rojectChangeProductSearchStatusAction.java | 129 +++++ ...hangeProductSearchStatusActionBuilder.java | 84 +++ ...ctChangeProductSearchStatusActionImpl.java | 95 ++++ .../models/project/ProjectUpdateAction.java | 13 + .../project/ProjectUpdateActionBuilder.java | 4 + .../project/SearchIndexingConfiguration.java | 18 + .../SearchIndexingConfigurationBuilder.java | 57 +- .../SearchIndexingConfigurationImpl.java | 22 +- .../api/models/tax_category/TaxRate.java | 10 +- .../models/tax_category/TaxRateBuilder.java | 20 +- .../api/models/tax_category/TaxRateDraft.java | 6 +- .../tax_category/TaxRateDraftBuilder.java | 16 +- .../models/tax_category/TaxRateDraftImpl.java | 2 +- .../api/models/tax_category/TaxRateImpl.java | 4 +- .../models/type/CustomFieldReferenceType.java | 2 +- .../type/CustomFieldReferenceTypeBuilder.java | 2 +- .../type/CustomFieldReferenceValue.java | 10 - .../api/models/type/ResourceTypeId.java | 10 - .../ApprovalFlowQueryBuilderDsl.java | 9 - ...owSetCustomFieldActionQueryBuilderDsl.java | 32 -- ...lowSetCustomTypeActionQueryBuilderDsl.java | 41 -- ...provalFlowUpdateActionQueryBuilderDsl.java | 14 - .../error/ErrorObjectQueryBuilderDsl.java | 7 + .../error/ErrorResponseQueryBuilderDsl.java | 8 + .../GraphQLErrorObjectQueryBuilderDsl.java | 7 + ...GraphQLNotEnabledErrorQueryBuilderDsl.java | 20 + .../error/NotEnabledErrorQueryBuilderDsl.java | 26 + ...uctPagedSearchResponseQueryBuilderDsl.java | 57 ++ ...uctSearchAndExpressionQueryBuilderDsl.java | 31 ++ .../ProductSearchAnyValueQueryBuilderDsl.java | 50 ++ ...archCompoundExpressionQueryBuilderDsl.java | 46 ++ ...rchDateRangeExpressionQueryBuilderDsl.java | 26 + ...ctSearchDateRangeValueQueryBuilderDsl.java | 52 ++ ...ateTimeRangeExpressionQueryBuilderDsl.java | 26 + ...archDateTimeRangeValueQueryBuilderDsl.java | 56 ++ ...uctSearchErrorResponseQueryBuilderDsl.java | 42 ++ ...tSearchExactExpressionQueryBuilderDsl.java | 25 + ...SearchExistsExpressionQueryBuilderDsl.java | 26 + ...oductSearchExistsValueQueryBuilderDsl.java | 38 ++ ...earchFacetBucketResultQueryBuilderDsl.java | 37 ++ ...chFacetCountExpressionQueryBuilderDsl.java | 26 + ...tSearchFacetCountValueQueryBuilderDsl.java | 44 ++ ...ctBucketSortExpressionQueryBuilderDsl.java | 25 + ...acetDistinctExpressionQueryBuilderDsl.java | 26 + ...acetDistinctStartsWithQueryBuilderDsl.java | 26 + ...archFacetDistinctValueQueryBuilderDsl.java | 99 ++++ ...tSearchFacetExpressionQueryBuilderDsl.java | 39 ++ ...hFacetRangesExpressionQueryBuilderDsl.java | 26 + ...hFacetRangesFacetRangeQueryBuilderDsl.java | 30 ++ ...SearchFacetRangesValueQueryBuilderDsl.java | 77 +++ ...earchFacetResultBucketQueryBuilderDsl.java | 24 + ...SearchFacetResultCountQueryBuilderDsl.java | 25 + ...hFacetResultExpressionQueryBuilderDsl.java | 35 ++ ...oductSearchFacetResultQueryBuilderDsl.java | 31 ++ ...SearchFilterExpressionQueryBuilderDsl.java | 31 ++ ...archFullTextExpressionQueryBuilderDsl.java | 26 + ...uctSearchFullTextValueQueryBuilderDsl.java | 50 ++ .../ProductSearchHitQueryBuilderDsl.java | 45 ++ ...rchLongRangeExpressionQueryBuilderDsl.java | 26 + ...ctSearchLongRangeValueQueryBuilderDsl.java | 52 ++ ...tSearchMatchingVariantQueryBuilderDsl.java | 24 + ...uctSearchNotExpressionQueryBuilderDsl.java | 31 ++ ...hNumberRangeExpressionQueryBuilderDsl.java | 26 + ...SearchNumberRangeValueQueryBuilderDsl.java | 52 ++ ...ductSearchOrExpressionQueryBuilderDsl.java | 31 ++ ...SearchPrefixExpressionQueryBuilderDsl.java | 25 + ...SearchProjectionParamsQueryBuilderDsl.java | 62 +++ ...tSearchQueryExpressionQueryBuilderDsl.java | 88 +++ ...chQueryExpressionValueQueryBuilderDsl.java | 94 ++++ .../ProductSearchQueryQueryBuilderDsl.java | 30 ++ .../ProductSearchRequestQueryBuilderDsl.java | 92 ++++ .../ProductSearchSortingQueryBuilderDsl.java | 62 +++ ...onCompletionExpressionQueryBuilderDsl.java | 26 + ...pletionExpressionValueQueryBuilderDsl.java | 33 ++ ...chSuggestionExpressionQueryBuilderDsl.java | 23 + ...gestionExpressionValueQueryBuilderDsl.java | 23 + ...rchTimeRangeExpressionQueryBuilderDsl.java | 26 + ...ctSearchTimeRangeValueQueryBuilderDsl.java | 52 ++ ...archWildCardExpressionQueryBuilderDsl.java | 25 + ...ductSearchStatusActionQueryBuilderDsl.java | 26 + .../ProjectUpdateActionQueryBuilderDsl.java | 7 + ...hIndexingConfigurationQueryBuilderDsl.java | 10 + .../ByProjectKeyProductsSearchTest.java | 85 +++ .../ApprovalFlowSetCustomFieldActionTest.java | 44 -- .../ApprovalFlowSetCustomTypeActionTest.java | 48 -- .../approval_flow/ApprovalFlowTest.java | 11 +- .../error/GraphQLNotEnabledErrorTest.java | 13 + .../api/models/error/NotEnabledErrorTest.java | 36 ++ .../ProductPagedSearchResponseTest.java | 77 +++ .../ProductSearchAndExpressionTest.java | 43 ++ .../ProductSearchAnyValueTest.java | 52 ++ .../ProductSearchCompoundExpressionTest.java | 13 + .../ProductSearchDateRangeExpressionTest.java | 38 ++ .../ProductSearchDateRangeValueTest.java | 63 +++ ...ductSearchDateTimeRangeExpressionTest.java | 39 ++ .../ProductSearchDateTimeRangeValueTest.java | 66 +++ .../ProductSearchErrorResponseTest.java | 57 ++ .../ProductSearchExactExpressionTest.java | 38 ++ .../ProductSearchExistsExpressionTest.java | 38 ++ .../ProductSearchExistsValueTest.java | 36 ++ .../ProductSearchFacetBucketResultTest.java | 43 ++ ...ProductSearchFacetCountExpressionTest.java | 38 ++ .../ProductSearchFacetCountValueTest.java | 70 +++ ...FacetDistinctBucketSortExpressionTest.java | 54 ++ ...ductSearchFacetDistinctExpressionTest.java | 39 ++ ...ductSearchFacetDistinctStartsWithTest.java | 45 ++ .../ProductSearchFacetDistinctValueTest.java | 149 ++++++ .../ProductSearchFacetExpressionTest.java | 13 + ...roductSearchFacetRangesExpressionTest.java | 39 ++ ...roductSearchFacetRangesFacetRangeTest.java | 53 ++ .../ProductSearchFacetRangesValueTest.java | 113 ++++ .../ProductSearchFacetResultBucketTest.java | 44 ++ .../ProductSearchFacetResultCountTest.java | 36 ++ ...roductSearchFacetResultExpressionTest.java | 37 ++ .../ProductSearchFacetResultTest.java | 43 ++ .../ProductSearchFilterExpressionTest.java | 43 ++ .../ProductSearchFullTextExpressionTest.java | 38 ++ .../ProductSearchFullTextValueTest.java | 55 ++ .../product_search/ProductSearchHitTest.java | 61 +++ .../ProductSearchLongRangeExpressionTest.java | 38 ++ .../ProductSearchLongRangeValueTest.java | 60 +++ .../ProductSearchMatchingVariantTest.java | 44 ++ .../ProductSearchNotExpressionTest.java | 43 ++ ...roductSearchNumberRangeExpressionTest.java | 39 ++ .../ProductSearchNumberRangeValueTest.java | 60 +++ .../ProductSearchOrExpressionTest.java | 43 ++ .../ProductSearchPrefixExpressionTest.java | 38 ++ .../ProductSearchProjectionParamsTest.java | 95 ++++ .../ProductSearchQueryExpressionTest.java | 13 + ...ProductSearchQueryExpressionValueTest.java | 56 ++ .../ProductSearchQueryTest.java | 13 + .../ProductSearchRequestTest.java | 112 ++++ .../ProductSearchSortingTest.java | 94 ++++ ...rchSuggestionCompletionExpressionTest.java | 43 ++ ...ggestionCompletionExpressionValueTest.java | 55 ++ ...ProductSearchSuggestionExpressionTest.java | 13 + ...ctSearchSuggestionExpressionValueTest.java | 13 + .../ProductSearchTimeRangeExpressionTest.java | 38 ++ .../ProductSearchTimeRangeValueTest.java | 62 +++ .../ProductSearchWildCardExpressionTest.java | 38 ++ .../AttributeReferenceTypeTest.java | 8 +- ...ctChangeProductSearchStatusActionTest.java | 39 ++ .../SearchIndexingConfigurationTest.java | 11 + .../type/CustomFieldReferenceTypeTest.java | 7 +- .../models/change/AddAddressChange.java | 20 + .../change/AddAddressChangeBuilder.java | 53 +- .../models/change/AddAddressChangeImpl.java | 25 +- .../models/change/AddChannelRolesChange.java | 14 +- .../change/AddChannelRolesChangeBuilder.java | 20 +- .../change/AddChannelRolesChangeImpl.java | 20 +- .../change/AddLocalizedEnumValueChange.java | 8 +- .../AddLocalizedEnumValueChangeBuilder.java | 14 +- .../AddLocalizedEnumValueChangeImpl.java | 8 +- .../models/change/AddLocationChange.java | 20 + .../change/AddLocationChangeBuilder.java | 54 +- .../models/change/AddLocationChangeImpl.java | 25 +- .../change/AddPlainEnumValueChange.java | 8 +- .../AddPlainEnumValueChangeBuilder.java | 15 +- .../change/AddPlainEnumValueChangeImpl.java | 8 +- .../models/change/AddStateRolesChange.java | 14 +- .../change/AddStateRolesChangeBuilder.java | 21 +- .../change/AddStateRolesChangeImpl.java | 20 +- .../history/models/change/Change.java | 1 + .../change/ChangeDescriptionChange.java | 6 +- .../change/ChangeDescriptionChangeImpl.java | 6 +- .../ChangeLocalizedDescriptionChange.java | 6 +- .../ChangeLocalizedDescriptionChangeImpl.java | 6 +- .../change/ChangeLocalizedNameChange.java | 4 + .../change/ChangeLocalizedNameChangeImpl.java | 4 + .../models/change/ChangeNameChange.java | 8 + .../models/change/ChangeNameChangeImpl.java | 8 + .../models/change/ChangeStateTypeChange.java | 14 +- .../change/ChangeStateTypeChangeBuilder.java | 17 +- .../change/ChangeStateTypeChangeImpl.java | 16 +- .../change/RemoveChannelRolesChange.java | 14 +- .../RemoveChannelRolesChangeBuilder.java | 20 +- .../change/RemoveChannelRolesChangeImpl.java | 20 +- .../models/change/RemoveLocationChange.java | 19 + .../change/RemoveLocationChangeBuilder.java | 53 +- .../change/RemoveLocationChangeImpl.java | 27 +- .../models/change/RemoveStateRolesChange.java | 14 +- .../change/RemoveStateRolesChangeBuilder.java | 20 +- .../change/RemoveStateRolesChangeImpl.java | 20 +- .../models/change/RemoveTaxRateChange.java | 19 + .../change/RemoveTaxRateChangeBuilder.java | 53 +- .../change/RemoveTaxRateChangeImpl.java | 27 +- .../models/change/SetChannelRolesChange.java | 14 +- .../change/SetChannelRolesChangeBuilder.java | 20 +- .../change/SetChannelRolesChangeImpl.java | 20 +- .../models/change/SetDescriptionChange.java | 8 + .../change/SetDescriptionChangeImpl.java | 8 + .../change/SetLocalizedDescriptionChange.java | 2 + .../SetLocalizedDescriptionChangeImpl.java | 2 + .../models/change/SetStateRolesChange.java | 14 +- .../change/SetStateRolesChangeBuilder.java | 21 +- .../change/SetStateRolesChangeImpl.java | 20 +- .../common/AttributeLocalizedEnumValue.java | 141 ----- .../AttributeLocalizedEnumValueBuilder.java | 133 ----- .../AttributeLocalizedEnumValueImpl.java | 98 ---- .../common/AttributePlainEnumValue.java | 139 ----- .../AttributePlainEnumValueBuilder.java | 107 ---- ...{ChannelRoleEnum.java => ChannelRole.java} | 32 +- .../{StateRoleEnum.java => StateRole.java} | 26 +- .../{StateTypeEnum.java => StateType.java} | 55 +- .../models/change/AddAddressChangeTest.java | 15 +- .../change/AddChannelRolesChangeTest.java | 16 +- .../AddLocalizedEnumValueChangeTest.java | 6 +- .../models/change/AddLocationChangeTest.java | 15 +- .../change/AddPlainEnumValueChangeTest.java | 6 +- .../change/AddStateRolesChangeTest.java | 12 +- .../change/ChangeStateTypeChangeTest.java | 12 +- .../change/RemoveChannelRolesChangeTest.java | 16 +- .../change/RemoveLocationChangeTest.java | 12 +- .../change/RemoveStateRolesChangeTest.java | 12 +- .../change/RemoveTaxRateChangeTest.java | 12 +- .../change/SetChannelRolesChangeTest.java | 16 +- .../change/SetStateRolesChangeTest.java | 12 +- .../AttributeLocalizedEnumValueTest.java | 46 -- .../common/AttributePlainEnumValueTest.java | 44 -- reference.txt | 1 + references.txt | 1 + 429 files changed, 31154 insertions(+), 2273 deletions(-) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchPost.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchPostString.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchRequestBuilder.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldAction.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionBuilder.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeAction.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionBuilder.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledError.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledError.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledErrorBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledErrorImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponse.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAttributeType.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponse.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResult.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortBy.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWith.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetEnumCount.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetEnumScope.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRange.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResult.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucket.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketBuilder.java rename commercetools/{commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueImpl.java => commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketImpl.java} (60%) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCount.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountBuilder.java rename commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/{approval_flow/ApprovalFlowSetCustomFieldActionImpl.java => product_search/ProductSearchFacetResultCountImpl.java} (53%) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetScope.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHit.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHitBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHitImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchType.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariant.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQuery.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortMode.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortOrder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSorting.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValue.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpression.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProductSearchStatus.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionImpl.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowSetCustomFieldActionQueryBuilderDsl.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowSetCustomTypeActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLNotEnabledErrorQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/NotEnabledErrorQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductPagedSearchResponseQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchAndExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchAnyValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchCompoundExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateRangeExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateRangeValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateTimeRangeExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateTimeRangeValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchErrorResponseQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExactExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExistsExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExistsValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetBucketResultQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetCountExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetCountValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctStartsWithQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesFacetRangeQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultBucketQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultCountQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFilterExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFullTextExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFullTextValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchHitQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchLongRangeExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchLongRangeValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchMatchingVariantQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNotExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNumberRangeExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNumberRangeValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchOrExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchPrefixExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryExpressionValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchRequestQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSortingQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionCompletionExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionExpressionValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchTimeRangeExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchTimeRangeValueQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchWildCardExpressionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectChangeProductSearchStatusActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsSearchTest.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionTest.java delete mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/NotEnabledErrorTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchHitTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionTest.java delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValue.java delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueBuilder.java delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueImpl.java delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValue.java delete mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueBuilder.java rename commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/{ChannelRoleEnum.java => ChannelRole.java} (71%) rename commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/{StateRoleEnum.java => StateRole.java} (72%) rename commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/{StateTypeEnum.java => StateType.java} (60%) delete mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueTest.java delete mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueTest.java create mode 100644 reference.txt 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..af055beca45 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -27,6 +27,8 @@ type APIClientWithoutSecretQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [APIClientWithoutSecret!]! } @@ -123,6 +125,7 @@ input AddCartDiscountCode { validateDuplicates: Boolean = false } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input AddCartDiscountStore { store: ResourceIdentifierInput! } @@ -656,6 +659,7 @@ input ApplyStagedChanges { dummy: 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 ApprovalFlow implements Versioned { status: String! approvals: [ApprovalFlowApproval!]! @@ -668,7 +672,6 @@ type ApprovalFlow implements Versioned { eligibleApprovers: [RuleApprover!]! pendingApprovers: [RuleApprover!]! currentTierPendingApprovers: [RuleApprover!]! - custom: CustomFieldsType id: String! version: Long! createdAt: DateTime! @@ -677,11 +680,13 @@ type ApprovalFlow implements Versioned { lastModifiedBy: Initiator } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApprovalFlowApproval { approver: Associate! approvedAt: DateTime! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApprovalFlowApproved implements MessagePayload { associate: Customer order: Order @@ -690,6 +695,7 @@ type ApprovalFlowApproved 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 ApprovalFlowCompleted implements MessagePayload { status: String! order: Order @@ -697,6 +703,7 @@ type ApprovalFlowCompleted 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 ApprovalFlowCreated implements MessagePayload { approvalFlow: ApprovalFlow! type: String! @@ -706,10 +713,13 @@ type ApprovalFlowQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ApprovalFlow!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApprovalFlowRejected implements MessagePayload { rejectionReason: String associate: Customer @@ -719,19 +729,23 @@ type ApprovalFlowRejected 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 ApprovalFlowRejection { rejecter: Associate! rejectedAt: DateTime! reason: 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 ApprovalFlowUpdateAction { + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" approve: ApproveApprovalFlow + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" reject: RejectApprovalFlow - setCustomField: SetApprovalFlowCustomField - setCustomType: SetApprovalFlowCustomType } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApprovalRule implements Versioned { key: String name: String! @@ -750,23 +764,27 @@ type ApprovalRule implements Versioned { lastModifiedBy: Initiator } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApprovalRuleApproversSet implements MessagePayload { oldApprovers: ApproverHierarchy! approvers: ApproverHierarchy! 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 ApprovalRuleCreated implements MessagePayload { approvalRule: ApprovalRule! 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 ApprovalRuleDescriptionSet implements MessagePayload { oldDescription: String description: String 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" input ApprovalRuleDraft { key: String name: String! @@ -777,18 +795,21 @@ input ApprovalRuleDraft { requesters: [RuleRequesterDraft!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApprovalRuleKeySet implements MessagePayload { oldKey: String key: String 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 ApprovalRuleNameSet implements MessagePayload { oldName: String! name: String! 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 ApprovalRulePredicateSet implements MessagePayload { oldPredicate: String! predicate: String! @@ -799,61 +820,87 @@ type ApprovalRuleQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ApprovalRule!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApprovalRuleRequestersSet implements MessagePayload { oldRequesters: [RuleRequester!]! requesters: [RuleRequester!]! 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" enum ApprovalRuleStatus { Active Inactive } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApprovalRuleStatusSet implements MessagePayload { oldStatus: ApprovalRuleStatus! status: ApprovalRuleStatus! 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" input ApprovalRuleUpdateAction { + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setApprovers: SetApprovalRuleApprovers + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setKey: SetApprovalRuleKey + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setName: SetApprovalRuleName + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setDescription: SetApprovalRuleDescription + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setPredicate: SetApprovalRulePredicate + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setRequesters: SetApprovalRuleRequesters + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setStatus: SetApprovalRuleStatus } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input ApproveApprovalFlow { dummy: 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 ApproverConjunction { and: [ApproverDisjunction!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input ApproverConjunctionDraft { and: [ApproverDisjunctionDraft!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApproverDisjunction { or: [RuleApprover!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input ApproverDisjunctionDraft { or: [RuleApproverDraft!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type ApproverHierarchy { tiers: [ApproverConjunction!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input ApproverHierarchyDraft { tiers: [ApproverConjunctionDraft!]! } @@ -879,14 +926,22 @@ type AsAssociate implements CartQueryInterface & OrderQueryInterface & QuoteQuer "Queries with specified key" key: String): Quote quotes(where: String, sort: [String!], limit: Int, offset: Int): QuoteQueryResult! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" approvalRule( "Queries with specified ID" id: String, "Queries with specified key" key: String): ApprovalRule + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" approvalRules(where: String, sort: [String!], limit: Int, offset: Int): ApprovalRuleQueryResult! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" approvalFlow(id: String!): ApprovalFlow + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" approvalFlows(where: String, sort: [String!], limit: Int, offset: Int): ApprovalFlowQueryResult! businessUnit( "Queries with specified ID" @@ -1045,6 +1100,8 @@ type AssociateRoleQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [AssociateRole!]! } @@ -1159,6 +1216,8 @@ type AttributeGroupQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [AttributeGroup!]! } @@ -1536,6 +1595,8 @@ type BusinessUnitQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [BusinessUnit!]! } @@ -1638,6 +1699,7 @@ type Cart implements Versioned & ReferenceExpandable { customLineItems: [CustomLineItem!]! totalPrice: Money! taxedPrice: TaxedPrice + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" discountOnTotalPrice: DiscountOnTotalPrice shippingAddress: Address billingAddress: Address @@ -1722,7 +1784,11 @@ type CartDiscount implements Versioned & ReferenceExpandable { descriptionAllLocales: [LocalizedString!] referenceRefs: [Reference!]! custom: CustomFieldsType + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" storesRef: [KeyReference!]! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" stores: [Store!]! value: CartDiscountValue! target: CartDiscountTarget @@ -1748,6 +1814,8 @@ input CartDiscountDraft { isActive: Boolean = true custom: CustomFieldsDraft key: String + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" stores: [ResourceIdentifierInput!] } @@ -1775,6 +1843,8 @@ type CartDiscountQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [CartDiscount!]! } @@ -1792,17 +1862,23 @@ input CartDiscountTargetInput { totalPrice: CartDiscountTotalPriceTargetInput } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type CartDiscountTotalPriceTarget implements CartDiscountTarget { 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" input CartDiscountTotalPriceTargetInput { dummy: String } - input CartDiscountUpdateAction { + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setStores: SetCartDiscountStores + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" addStore: AddCartDiscountStore + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" removeStore: RemoveCartDiscountStore changeCartPredicate: ChangeCartDiscountCartPredicate changeIsActive: ChangeCartDiscountIsActive @@ -1894,6 +1970,8 @@ type CartQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Cart!]! } @@ -2123,6 +2201,8 @@ type CategoryQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Category!]! } @@ -2819,6 +2899,8 @@ type ChannelQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Channel!]! } @@ -2910,6 +2992,8 @@ type CommercetoolsSubscriptionQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [CommercetoolsSubscription!]! } @@ -3229,6 +3313,8 @@ type CustomObjectQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [CustomObject!]! } @@ -3489,6 +3575,8 @@ type CustomerGroupQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [CustomerGroup!]! } @@ -3570,6 +3658,8 @@ type CustomerQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Customer!]! } @@ -3917,6 +4007,8 @@ type DiscountCodeQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [DiscountCode!]! } @@ -4000,6 +4092,7 @@ type DiscountedProductSearchPriceValue { discount: ProductDiscount } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type DiscountedTotalPricePortion { discount: CartDiscount discountRef: Reference! @@ -4124,6 +4217,8 @@ type ExtensionQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Extension!]! } @@ -4275,7 +4370,7 @@ input FieldTypeSetTypeDraft { type FixedPriceDiscountValue implements CartDiscountValue { money: [BaseMoney!]! type: String! -} + } input FixedPriceDiscountValueInput { money: [CartDiscountValueBaseMoneyInput!]! @@ -4647,6 +4742,8 @@ type InventoryEntryQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [InventoryEntry!]! } @@ -5146,6 +5243,8 @@ type MessageQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Message!]! } @@ -5983,10 +6082,14 @@ type Mutation { "Queries with specified key" key: String): Quote + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" createApprovalRule(draft: ApprovalRuleDraft!, "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument!): ApprovalRule + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" updateApprovalRule(version: Long!, actions: [ApprovalRuleUpdateAction!]!, "Create/modify entity as an associate in business-unit." @@ -5997,6 +6100,8 @@ type Mutation { "Queries with specified key" key: String): ApprovalRule + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" updateApprovalFlow(version: Long!, actions: [ApprovalFlowUpdateAction!]!, "Create/modify entity as an associate in business-unit." @@ -6221,6 +6326,8 @@ type MyPaymentQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [MyPayment!]! } @@ -6344,6 +6451,7 @@ type Order implements Versioned & ReferenceExpandable { customLineItems: [CustomLineItem!]! totalPrice: Money! taxedPrice: TaxedPrice + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" discountOnTotalPrice: DiscountOnTotalPrice shippingAddress: Address billingAddress: Address @@ -6574,6 +6682,8 @@ type OrderEditQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [OrderEdit!]! } @@ -6683,6 +6793,8 @@ type OrderQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Order!]! } @@ -6996,6 +7108,8 @@ type PaymentQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Payment!]! } @@ -7076,6 +7190,8 @@ enum Permission { AcceptMyQuotes AcceptOthersQuotes AddChildUnits + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" CreateApprovalRules CreateMyCarts CreateMyOrdersFromMyCarts @@ -7093,7 +7209,11 @@ enum Permission { ReassignOthersQuotes RenegotiateMyQuotes RenegotiateOthersQuotes + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" UpdateApprovalFlows + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" UpdateApprovalRules UpdateAssociates UpdateBusinessUnitDetails @@ -7227,6 +7347,8 @@ type ProductAssignmentQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ProductAssignment!]! } @@ -7424,6 +7546,8 @@ type ProductDiscountQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ProductDiscount!]! } @@ -7496,6 +7620,8 @@ type ProductOfSelectionQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ProductOfSelection!]! } @@ -7771,6 +7897,8 @@ type ProductQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Product!]! } @@ -7938,6 +8066,8 @@ type ProductSelectionQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ProductSelection!]! } @@ -8046,6 +8176,8 @@ type ProductTypeDefinitionQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ProductTypeDefinition!]! } @@ -8224,7 +8356,7 @@ type ProductVariantAvailabilityWithChannels { type ProductVariantDeleted implements MessagePayload { removedImageUrls: Set! variant: ProductVariant - type: String! + 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" @@ -8730,6 +8862,8 @@ type QuoteQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Quote!]! } @@ -8826,6 +8960,8 @@ type QuoteRequestQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [QuoteRequest!]! } @@ -9053,6 +9189,7 @@ type RefreshTokenLimitsProjection { total: RefreshTokenLimitWithCurrent! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input RejectApprovalFlow { reason: String } @@ -9106,6 +9243,7 @@ input RemoveCartDiscountCode { discountCode: ReferenceInput! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input RemoveCartDiscountStore { store: ResourceIdentifierInput! } @@ -9519,6 +9657,8 @@ type ReviewQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Review!]! } @@ -9582,20 +9722,24 @@ enum RoundingMode { HalfUp } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type RuleApprover { associateRole: AssociateRole! associateRoleRef: KeyReference! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input RuleApproverDraft { associateRole: ResourceIdentifierInput! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type RuleRequester { associateRole: AssociateRole! associateRoleRef: KeyReference! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input RuleRequesterDraft { associateRole: ResourceIdentifierInput! } @@ -9689,7 +9833,7 @@ input SearchFilterModelInput { type SearchIndexingConfiguration { products: SearchIndexingConfigurationValues orders: OrderSearchConfiguration -} + } type SearchIndexingConfigurationValues { status: SearchIndexingStatus @@ -9752,15 +9896,18 @@ 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! -} + } type SelectionOfProductQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [SelectionOfProduct!]! } @@ -9768,42 +9915,37 @@ type SelectionOfProductQueryResult { "A set." scalar Set -input SetApprovalFlowCustomField { - name: String! - value: String -} - -input SetApprovalFlowCustomType { - fields: [CustomFieldInput!] - type: ResourceIdentifierInput - typeKey: String - typeId: 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 SetApprovalRuleApprovers { approvers: ApproverHierarchyDraft! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input SetApprovalRuleDescription { description: 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 SetApprovalRuleKey { key: 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 SetApprovalRuleName { name: 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 SetApprovalRulePredicate { predicate: 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 SetApprovalRuleRequesters { requesters: [RuleRequesterDraft!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input SetApprovalRuleStatus { status: ApprovalRuleStatus! } @@ -9959,13 +10101,13 @@ input SetCartCustomLineItemTaxAmount { customLineItemId: String customLineItemKey: String externalTaxAmount: ExternalTaxAmountDraft -} + } input SetCartCustomLineItemTaxRate { customLineItemId: String customLineItemKey: String externalTaxRate: ExternalTaxRateDraft -} + } input SetCartCustomShippingMethod { shippingMethodName: String! @@ -10021,6 +10163,7 @@ input SetCartDiscountKey { key: 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 SetCartDiscountStores { stores: [ResourceIdentifierInput!] } @@ -11407,27 +11550,27 @@ input SetStagedOrderCustomLineItemTaxAmount { customLineItemId: String customLineItemKey: String externalTaxAmount: ExternalTaxAmountDraft -} + } type SetStagedOrderCustomLineItemTaxAmountOutput implements StagedOrderUpdateActionOutput { type: String! customLineItemId: String customLineItemKey: String externalTaxAmount: ExternalTaxAmountDraftOutput -} + } input SetStagedOrderCustomLineItemTaxRate { customLineItemId: String customLineItemKey: String externalTaxRate: ExternalTaxRateDraft -} + } type SetStagedOrderCustomLineItemTaxRateOutput implements StagedOrderUpdateActionOutput { type: String! customLineItemId: String customLineItemKey: String externalTaxRate: ExternalTaxRateDraftOutput -} + } input SetStagedOrderCustomShippingMethod { shippingMethodName: String! @@ -12283,6 +12426,8 @@ type ShippingMethodQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ShippingMethod!]! } @@ -12560,6 +12705,8 @@ type ShoppingListQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ShoppingList!]! } @@ -12772,6 +12919,8 @@ type StagedQuoteQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [StagedQuote!]! } @@ -12885,6 +13034,8 @@ type StandalonePriceQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [StandalonePrice!]! } @@ -13004,6 +13155,8 @@ type StateQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [State!]! } @@ -13148,6 +13301,8 @@ type StoreQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Store!]! } @@ -13322,6 +13477,8 @@ type TaxCategoryQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [TaxCategory!]! } @@ -13528,6 +13685,7 @@ type TimeType implements FieldType { name: 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 DiscountOnTotalPrice { discountedAmount: BaseMoney! includedDiscounts: [DiscountedTotalPricePortion!]! @@ -13757,6 +13915,8 @@ type TypeDefinitionQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [TypeDefinition!]! } @@ -13905,6 +14065,8 @@ type ZoneQueryResult { offset: Int! count: Int! total: Long! + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [Zone!]! } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java index 9acee87b615..1cc7c299b9a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java @@ -20,8 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Gets the current or staged representation of a Product by its ID from the specified Store. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price and inventory.

- *

If ProductSelection is used, it affects the availability of the Product in the specified Store.

+ *

Gets the current or staged representation of a Product by its ID from the specified Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price and inventory.

*

When used with an API Client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) Product Projections.

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

Gets the current or staged representation of a Product by its key from the specified Store. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price and inventory.

- *

If ProductSelection is used, it affects the availability of the Product in the specified Store.

+ *

Gets the current or staged representation of a Product by its key from the specified Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price and inventory.

*

When used with an API Client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) Product Projections.

* *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsRequestBuilder.java index 03a61f6686e..0c5b88d6e65 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsRequestBuilder.java @@ -45,4 +45,8 @@ public ByProjectKeyProductsByIDRequestBuilder withId(String ID) { return new ByProjectKeyProductsByIDRequestBuilder(apiHttpClient, projectKey, ID); } + public ByProjectKeyProductsSearchRequestBuilder search() { + return new ByProjectKeyProductsSearchRequestBuilder(apiHttpClient, projectKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchHead.java new file mode 100644 index 00000000000..360c6a9624d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchHead.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks whether a search index for the Project's Products exists.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .products()
+ *            .search()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductsSearchHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyProductsSearchHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyProductsSearchHead(ByProjectKeyProductsSearchHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/products/search", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductsSearchHead that = (ByProjectKeyProductsSearchHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyProductsSearchHead copy() { + return new ByProjectKeyProductsSearchHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchPost.java new file mode 100644 index 00000000000..119763c0c39 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchPost.java @@ -0,0 +1,130 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .products()
+ *            .search()
+ *            .post(null)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductsSearchPost extends + TypeBodyApiMethod + implements com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + private com.commercetools.api.models.product_search.ProductSearchRequest productSearchRequest; + + public ByProjectKeyProductsSearchPost(final ApiHttpClient apiHttpClient, String projectKey, + com.commercetools.api.models.product_search.ProductSearchRequest productSearchRequest) { + super(apiHttpClient); + this.projectKey = projectKey; + this.productSearchRequest = productSearchRequest; + } + + public ByProjectKeyProductsSearchPost(ByProjectKeyProductsSearchPost t) { + super(t); + this.projectKey = t.projectKey; + this.productSearchRequest = t.productSearchRequest; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/products/search", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + io.vrap.rmf.base.client.utils.json.JsonUtils + .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(productSearchRequest))); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, + com.commercetools.api.models.product_search.ProductPagedSearchResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.product_search.ProductPagedSearchResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public com.commercetools.api.models.product_search.ProductSearchRequest getBody() { + return productSearchRequest; + } + + public ByProjectKeyProductsSearchPost withBody( + com.commercetools.api.models.product_search.ProductSearchRequest productSearchRequest) { + ByProjectKeyProductsSearchPost t = copy(); + t.productSearchRequest = productSearchRequest; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductsSearchPost that = (ByProjectKeyProductsSearchPost) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(productSearchRequest, that.productSearchRequest) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(productSearchRequest).toHashCode(); + } + + @Override + protected ByProjectKeyProductsSearchPost copy() { + return new ByProjectKeyProductsSearchPost(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchPostString.java new file mode 100644 index 00000000000..38adff311d1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchPostString.java @@ -0,0 +1,129 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.nio.charset.StandardCharsets; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + * + * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .products()
+ *            .search()
+ *            .post("")
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductsSearchPostString extends + StringBodyApiMethod + implements com.commercetools.api.client.ErrorableTrait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + private String productSearchRequest; + + public ByProjectKeyProductsSearchPostString(final ApiHttpClient apiHttpClient, String projectKey, + String productSearchRequest) { + super(apiHttpClient); + this.projectKey = projectKey; + this.productSearchRequest = productSearchRequest; + } + + public ByProjectKeyProductsSearchPostString(ByProjectKeyProductsSearchPostString t) { + super(t); + this.projectKey = t.projectKey; + this.productSearchRequest = t.productSearchRequest; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/products/search", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(), + productSearchRequest.getBytes(StandardCharsets.UTF_8)); + + } + + @Override + public ApiHttpResponse executeBlocking( + final ApiHttpClient client, final Duration timeout) { + return executeBlocking(client, timeout, + com.commercetools.api.models.product_search.ProductPagedSearchResponse.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.commercetools.api.models.product_search.ProductPagedSearchResponse.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public String getBody() { + return productSearchRequest; + } + + public ByProjectKeyProductsSearchPostString withBody(String productSearchRequest) { + ByProjectKeyProductsSearchPostString t = copy(); + t.productSearchRequest = productSearchRequest; + return t; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductsSearchPostString that = (ByProjectKeyProductsSearchPostString) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(productSearchRequest, that.productSearchRequest) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(productSearchRequest).toHashCode(); + } + + @Override + protected ByProjectKeyProductsSearchPostString copy() { + return new ByProjectKeyProductsSearchPostString(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchRequestBuilder.java new file mode 100644 index 00000000000..23ab2b8c1e2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsSearchRequestBuilder.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.client; + +import java.util.function.UnaryOperator; + +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.utils.Generated; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductsSearchRequestBuilder { + + private final ApiHttpClient apiHttpClient; + private final String projectKey; + + public ByProjectKeyProductsSearchRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey) { + this.apiHttpClient = apiHttpClient; + this.projectKey = projectKey; + } + + public ByProjectKeyProductsSearchPost post( + com.commercetools.api.models.product_search.ProductSearchRequest productSearchRequest) { + return new ByProjectKeyProductsSearchPost(apiHttpClient, projectKey, productSearchRequest); + } + + public ByProjectKeyProductsSearchPostString post(final String productSearchRequest) { + return new ByProjectKeyProductsSearchPostString(apiHttpClient, projectKey, productSearchRequest); + } + + public ByProjectKeyProductsSearchPost post( + UnaryOperator op) { + return post(op.apply(com.commercetools.api.models.product_search.ProductSearchRequestBuilder.of()).build()); + } + + public ByProjectKeyProductsSearchHead head() { + return new ByProjectKeyProductsSearchHead(apiHttpClient, projectKey); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlow.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlow.java index f363e3a27ca..63fb0ae7630 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlow.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlow.java @@ -18,7 +18,6 @@ import com.commercetools.api.models.common.CreatedBy; import com.commercetools.api.models.common.LastModifiedBy; import com.commercetools.api.models.order.OrderReference; -import com.commercetools.api.models.type.CustomFields; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -179,14 +178,6 @@ public interface ApprovalFlow extends BaseResource { @JsonProperty("currentTierPendingApprovers") public List getCurrentTierPendingApprovers(); - /** - *

Custom Fields on the Approval Flow.

- * @return custom - */ - @Valid - @JsonProperty("custom") - public CustomFields getCustom(); - /** *

Unique identifier of the Approval Flow.

* @param id value to be set @@ -332,13 +323,6 @@ public interface ApprovalFlow extends BaseResource { public void setCurrentTierPendingApprovers(final List currentTierPendingApprovers); - /** - *

Custom Fields on the Approval Flow.

- * @param custom value to be set - */ - - public void setCustom(final CustomFields custom); - /** * factory method * @return instance of ApprovalFlow @@ -369,7 +353,6 @@ public static ApprovalFlow of(final ApprovalFlow template) { instance.setEligibleApprovers(template.getEligibleApprovers()); instance.setPendingApprovers(template.getPendingApprovers()); instance.setCurrentTierPendingApprovers(template.getCurrentTierPendingApprovers()); - instance.setCustom(template.getCustom()); return instance; } @@ -422,7 +405,6 @@ public static ApprovalFlow deepCopy(@Nullable final ApprovalFlow template) { .map(com.commercetools.api.models.approval_rule.RuleApprover::deepCopy) .collect(Collectors.toList())) .orElse(null)); - instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom())); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowBuilder.java index eeb39000b46..e8daa37b5ea 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowBuilder.java @@ -68,9 +68,6 @@ public class ApprovalFlowBuilder implements Builder { private java.util.List currentTierPendingApprovers; - @Nullable - private com.commercetools.api.models.type.CustomFields custom; - /** *

Unique identifier of the Approval Flow.

* @param id value to be set @@ -763,41 +760,6 @@ public ApprovalFlowBuilder setCurrentTierPendingApprovers( builder.apply(com.commercetools.api.models.approval_rule.RuleApproverBuilder.of())); } - /** - *

Custom Fields on the Approval Flow.

- * @param builder function to build the custom value - * @return Builder - */ - - public ApprovalFlowBuilder custom( - Function builder) { - this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsBuilder.of()).build(); - return this; - } - - /** - *

Custom Fields on the Approval Flow.

- * @param builder function to build the custom value - * @return Builder - */ - - public ApprovalFlowBuilder withCustom( - Function builder) { - this.custom = builder.apply(com.commercetools.api.models.type.CustomFieldsBuilder.of()); - return this; - } - - /** - *

Custom Fields on the Approval Flow.

- * @param custom value to be set - * @return Builder - */ - - public ApprovalFlowBuilder custom(@Nullable final com.commercetools.api.models.type.CustomFields custom) { - this.custom = custom; - return this; - } - /** *

Unique identifier of the Approval Flow.

* @return id @@ -936,16 +898,6 @@ public java.util.List g return this.currentTierPendingApprovers; } - /** - *

Custom Fields on the Approval Flow.

- * @return custom - */ - - @Nullable - public com.commercetools.api.models.type.CustomFields getCustom() { - return this.custom; - } - /** * builds ApprovalFlow with checking for non-null required values * @return ApprovalFlow @@ -966,7 +918,7 @@ public ApprovalFlow build() { ApprovalFlow.class + ": currentTierPendingApprovers is missing"); return new ApprovalFlowImpl(id, version, createdAt, lastModifiedAt, createdBy, lastModifiedBy, order, businessUnit, rules, status, rejection, approvals, eligibleApprovers, pendingApprovers, - currentTierPendingApprovers, custom); + currentTierPendingApprovers); } /** @@ -976,7 +928,7 @@ public ApprovalFlow build() { public ApprovalFlow buildUnchecked() { return new ApprovalFlowImpl(id, version, createdAt, lastModifiedAt, createdBy, lastModifiedBy, order, businessUnit, rules, status, rejection, approvals, eligibleApprovers, pendingApprovers, - currentTierPendingApprovers, custom); + currentTierPendingApprovers); } /** @@ -1009,7 +961,6 @@ public static ApprovalFlowBuilder of(final ApprovalFlow template) { builder.eligibleApprovers = template.getEligibleApprovers(); builder.pendingApprovers = template.getPendingApprovers(); builder.currentTierPendingApprovers = template.getCurrentTierPendingApprovers(); - builder.custom = template.getCustom(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowImpl.java index c28c4d34dcb..e27f15824d7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowImpl.java @@ -52,8 +52,6 @@ public class ApprovalFlowImpl implements ApprovalFlow, ModelBase { private java.util.List currentTierPendingApprovers; - private com.commercetools.api.models.type.CustomFields custom; - /** * create instance with all properties */ @@ -71,8 +69,7 @@ public class ApprovalFlowImpl implements ApprovalFlow, ModelBase { @JsonProperty("approvals") final java.util.List approvals, @JsonProperty("eligibleApprovers") final java.util.List eligibleApprovers, @JsonProperty("pendingApprovers") final java.util.List pendingApprovers, - @JsonProperty("currentTierPendingApprovers") final java.util.List currentTierPendingApprovers, - @JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom) { + @JsonProperty("currentTierPendingApprovers") final java.util.List currentTierPendingApprovers) { this.id = id; this.version = version; this.createdAt = createdAt; @@ -88,7 +85,6 @@ public class ApprovalFlowImpl implements ApprovalFlow, ModelBase { this.eligibleApprovers = eligibleApprovers; this.pendingApprovers = pendingApprovers; this.currentTierPendingApprovers = currentTierPendingApprovers; - this.custom = custom; } /** @@ -217,14 +213,6 @@ public java.util.List g return this.currentTierPendingApprovers; } - /** - *

Custom Fields on the Approval Flow.

- */ - - public com.commercetools.api.models.type.CustomFields getCustom() { - return this.custom; - } - public void setId(final String id) { this.id = id; } @@ -312,10 +300,6 @@ public void setCurrentTierPendingApprovers( this.currentTierPendingApprovers = currentTierPendingApprovers; } - public void setCustom(final com.commercetools.api.models.type.CustomFields custom) { - this.custom = custom; - } - @Override public boolean equals(Object o) { if (this == o) @@ -341,7 +325,6 @@ public boolean equals(Object o) { .append(eligibleApprovers, that.eligibleApprovers) .append(pendingApprovers, that.pendingApprovers) .append(currentTierPendingApprovers, that.currentTierPendingApprovers) - .append(custom, that.custom) .append(id, that.id) .append(version, that.version) .append(createdAt, that.createdAt) @@ -357,7 +340,6 @@ public boolean equals(Object o) { .append(eligibleApprovers, that.eligibleApprovers) .append(pendingApprovers, that.pendingApprovers) .append(currentTierPendingApprovers, that.currentTierPendingApprovers) - .append(custom, that.custom) .isEquals(); } @@ -378,7 +360,6 @@ public int hashCode() { .append(eligibleApprovers) .append(pendingApprovers) .append(currentTierPendingApprovers) - .append(custom) .toHashCode(); } @@ -399,7 +380,6 @@ public String toString() { .append("eligibleApprovers", eligibleApprovers) .append("pendingApprovers", pendingApprovers) .append("currentTierPendingApprovers", currentTierPendingApprovers) - .append("custom", custom) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldAction.java deleted file mode 100644 index be07a26383c..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldAction.java +++ /dev/null @@ -1,143 +0,0 @@ - -package com.commercetools.api.models.approval_flow; - -import java.time.*; -import java.util.*; -import java.util.function.Function; - -import javax.annotation.Nullable; -import javax.validation.constraints.NotNull; - -import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.annotation.*; - -import io.vrap.rmf.base.client.utils.Generated; - -/** - * ApprovalFlowSetCustomFieldAction - * - *
- * Example to create an instance using the builder pattern - *
- *

- *     ApprovalFlowSetCustomFieldAction approvalFlowSetCustomFieldAction = ApprovalFlowSetCustomFieldAction.builder()
- *             .name("{name}")
- *             .build()
- * 
- *
- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -@JsonDeserialize(as = ApprovalFlowSetCustomFieldActionImpl.class) -public interface ApprovalFlowSetCustomFieldAction extends ApprovalFlowUpdateAction { - - /** - * discriminator value for ApprovalFlowSetCustomFieldAction - */ - String SET_CUSTOM_FIELD = "setCustomField"; - - /** - *

Name of the Custom Field.

- * @return name - */ - @NotNull - @JsonProperty("name") - public String getName(); - - /** - *

If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

- * @return value - */ - - @JsonProperty("value") - public Object getValue(); - - /** - *

Name of the Custom Field.

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

If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

- * @param value value to be set - */ - - public void setValue(final Object value); - - /** - * factory method - * @return instance of ApprovalFlowSetCustomFieldAction - */ - public static ApprovalFlowSetCustomFieldAction of() { - return new ApprovalFlowSetCustomFieldActionImpl(); - } - - /** - * factory method to create a shallow copy ApprovalFlowSetCustomFieldAction - * @param template instance to be copied - * @return copy instance - */ - public static ApprovalFlowSetCustomFieldAction of(final ApprovalFlowSetCustomFieldAction template) { - ApprovalFlowSetCustomFieldActionImpl instance = new ApprovalFlowSetCustomFieldActionImpl(); - instance.setName(template.getName()); - instance.setValue(template.getValue()); - return instance; - } - - /** - * factory method to create a deep copy of ApprovalFlowSetCustomFieldAction - * @param template instance to be copied - * @return copy instance - */ - @Nullable - public static ApprovalFlowSetCustomFieldAction deepCopy(@Nullable final ApprovalFlowSetCustomFieldAction template) { - if (template == null) { - return null; - } - ApprovalFlowSetCustomFieldActionImpl instance = new ApprovalFlowSetCustomFieldActionImpl(); - instance.setName(template.getName()); - instance.setValue(template.getValue()); - return instance; - } - - /** - * builder factory method for ApprovalFlowSetCustomFieldAction - * @return builder - */ - public static ApprovalFlowSetCustomFieldActionBuilder builder() { - return ApprovalFlowSetCustomFieldActionBuilder.of(); - } - - /** - * create builder for ApprovalFlowSetCustomFieldAction instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static ApprovalFlowSetCustomFieldActionBuilder builder(final ApprovalFlowSetCustomFieldAction template) { - return ApprovalFlowSetCustomFieldActionBuilder.of(template); - } - - /** - * accessor map function - * @param mapped type - * @param helper function to map the object - * @return mapped value - */ - default T withApprovalFlowSetCustomFieldAction(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/approval_flow/ApprovalFlowSetCustomFieldActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionBuilder.java deleted file mode 100644 index c355ca1cd55..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ - -package com.commercetools.api.models.approval_flow; - -import java.util.*; - -import javax.annotation.Nullable; - -import io.vrap.rmf.base.client.Builder; -import io.vrap.rmf.base.client.utils.Generated; - -/** - * ApprovalFlowSetCustomFieldActionBuilder - *
- * Example to create an instance using the builder pattern - *
- *

- *     ApprovalFlowSetCustomFieldAction approvalFlowSetCustomFieldAction = ApprovalFlowSetCustomFieldAction.builder()
- *             .name("{name}")
- *             .build()
- * 
- *
- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class ApprovalFlowSetCustomFieldActionBuilder implements Builder { - - private String name; - - @Nullable - private java.lang.Object value; - - /** - *

Name of the Custom Field.

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

If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

- * @param value value to be set - * @return Builder - */ - - public ApprovalFlowSetCustomFieldActionBuilder value(@Nullable final java.lang.Object value) { - this.value = value; - return this; - } - - /** - *

Name of the Custom Field.

- * @return name - */ - - public String getName() { - return this.name; - } - - /** - *

If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

- * @return value - */ - - @Nullable - public java.lang.Object getValue() { - return this.value; - } - - /** - * builds ApprovalFlowSetCustomFieldAction with checking for non-null required values - * @return ApprovalFlowSetCustomFieldAction - */ - public ApprovalFlowSetCustomFieldAction build() { - Objects.requireNonNull(name, ApprovalFlowSetCustomFieldAction.class + ": name is missing"); - return new ApprovalFlowSetCustomFieldActionImpl(name, value); - } - - /** - * builds ApprovalFlowSetCustomFieldAction without checking for non-null required values - * @return ApprovalFlowSetCustomFieldAction - */ - public ApprovalFlowSetCustomFieldAction buildUnchecked() { - return new ApprovalFlowSetCustomFieldActionImpl(name, value); - } - - /** - * factory method for an instance of ApprovalFlowSetCustomFieldActionBuilder - * @return builder - */ - public static ApprovalFlowSetCustomFieldActionBuilder of() { - return new ApprovalFlowSetCustomFieldActionBuilder(); - } - - /** - * create builder for ApprovalFlowSetCustomFieldAction instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static ApprovalFlowSetCustomFieldActionBuilder of(final ApprovalFlowSetCustomFieldAction template) { - ApprovalFlowSetCustomFieldActionBuilder builder = new ApprovalFlowSetCustomFieldActionBuilder(); - builder.name = template.getName(); - builder.value = template.getValue(); - return builder; - } - -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeAction.java deleted file mode 100644 index bd50b747c35..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeAction.java +++ /dev/null @@ -1,144 +0,0 @@ - -package com.commercetools.api.models.approval_flow; - -import java.time.*; -import java.util.*; -import java.util.function.Function; - -import javax.annotation.Nullable; -import javax.validation.Valid; - -import com.commercetools.api.models.type.FieldContainer; -import com.commercetools.api.models.type.TypeResourceIdentifier; -import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.annotation.*; - -import io.vrap.rmf.base.client.utils.Generated; - -/** - * ApprovalFlowSetCustomTypeAction - * - *
- * Example to create an instance using the builder pattern - *
- *

- *     ApprovalFlowSetCustomTypeAction approvalFlowSetCustomTypeAction = ApprovalFlowSetCustomTypeAction.builder()
- *             .build()
- * 
- *
- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -@JsonDeserialize(as = ApprovalFlowSetCustomTypeActionImpl.class) -public interface ApprovalFlowSetCustomTypeAction extends ApprovalFlowUpdateAction { - - /** - * discriminator value for ApprovalFlowSetCustomTypeAction - */ - String SET_CUSTOM_TYPE = "setCustomType"; - - /** - *

Defines the Type that extends the ApprovalFlow with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.

- * @return type - */ - @Valid - @JsonProperty("type") - public TypeResourceIdentifier getType(); - - /** - *

Sets the Custom Fields fields for the ApprovalFlow.

- * @return fields - */ - @Valid - @JsonProperty("fields") - public FieldContainer getFields(); - - /** - *

Defines the Type that extends the ApprovalFlow with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.

- * @param type value to be set - */ - - public void setType(final TypeResourceIdentifier type); - - /** - *

Sets the Custom Fields fields for the ApprovalFlow.

- * @param fields value to be set - */ - - public void setFields(final FieldContainer fields); - - /** - * factory method - * @return instance of ApprovalFlowSetCustomTypeAction - */ - public static ApprovalFlowSetCustomTypeAction of() { - return new ApprovalFlowSetCustomTypeActionImpl(); - } - - /** - * factory method to create a shallow copy ApprovalFlowSetCustomTypeAction - * @param template instance to be copied - * @return copy instance - */ - public static ApprovalFlowSetCustomTypeAction of(final ApprovalFlowSetCustomTypeAction template) { - ApprovalFlowSetCustomTypeActionImpl instance = new ApprovalFlowSetCustomTypeActionImpl(); - instance.setType(template.getType()); - instance.setFields(template.getFields()); - return instance; - } - - /** - * factory method to create a deep copy of ApprovalFlowSetCustomTypeAction - * @param template instance to be copied - * @return copy instance - */ - @Nullable - public static ApprovalFlowSetCustomTypeAction deepCopy(@Nullable final ApprovalFlowSetCustomTypeAction template) { - if (template == null) { - return null; - } - ApprovalFlowSetCustomTypeActionImpl instance = new ApprovalFlowSetCustomTypeActionImpl(); - instance.setType(com.commercetools.api.models.type.TypeResourceIdentifier.deepCopy(template.getType())); - instance.setFields(com.commercetools.api.models.type.FieldContainer.deepCopy(template.getFields())); - return instance; - } - - /** - * builder factory method for ApprovalFlowSetCustomTypeAction - * @return builder - */ - public static ApprovalFlowSetCustomTypeActionBuilder builder() { - return ApprovalFlowSetCustomTypeActionBuilder.of(); - } - - /** - * create builder for ApprovalFlowSetCustomTypeAction instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static ApprovalFlowSetCustomTypeActionBuilder builder(final ApprovalFlowSetCustomTypeAction template) { - return ApprovalFlowSetCustomTypeActionBuilder.of(template); - } - - /** - * accessor map function - * @param mapped type - * @param helper function to map the object - * @return mapped value - */ - default T withApprovalFlowSetCustomTypeAction(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/approval_flow/ApprovalFlowSetCustomTypeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionBuilder.java deleted file mode 100644 index 8a4cafa39bb..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionBuilder.java +++ /dev/null @@ -1,160 +0,0 @@ - -package com.commercetools.api.models.approval_flow; - -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; - -/** - * ApprovalFlowSetCustomTypeActionBuilder - *
- * Example to create an instance using the builder pattern - *
- *

- *     ApprovalFlowSetCustomTypeAction approvalFlowSetCustomTypeAction = ApprovalFlowSetCustomTypeAction.builder()
- *             .build()
- * 
- *
- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class ApprovalFlowSetCustomTypeActionBuilder implements Builder { - - @Nullable - private com.commercetools.api.models.type.TypeResourceIdentifier type; - - @Nullable - private com.commercetools.api.models.type.FieldContainer fields; - - /** - *

Defines the Type that extends the ApprovalFlow with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.

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

Defines the Type that extends the ApprovalFlow with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.

- * @param builder function to build the type value - * @return Builder - */ - - public ApprovalFlowSetCustomTypeActionBuilder withType( - Function builder) { - this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of()); - return this; - } - - /** - *

Defines the Type that extends the ApprovalFlow with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.

- * @param type value to be set - * @return Builder - */ - - public ApprovalFlowSetCustomTypeActionBuilder type( - @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) { - this.type = type; - return this; - } - - /** - *

Sets the Custom Fields fields for the ApprovalFlow.

- * @param builder function to build the fields value - * @return Builder - */ - - public ApprovalFlowSetCustomTypeActionBuilder fields( - Function builder) { - this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build(); - return this; - } - - /** - *

Sets the Custom Fields fields for the ApprovalFlow.

- * @param builder function to build the fields value - * @return Builder - */ - - public ApprovalFlowSetCustomTypeActionBuilder withFields( - Function builder) { - this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()); - return this; - } - - /** - *

Sets the Custom Fields fields for the ApprovalFlow.

- * @param fields value to be set - * @return Builder - */ - - public ApprovalFlowSetCustomTypeActionBuilder fields( - @Nullable final com.commercetools.api.models.type.FieldContainer fields) { - this.fields = fields; - return this; - } - - /** - *

Defines the Type that extends the ApprovalFlow with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.

- * @return type - */ - - @Nullable - public com.commercetools.api.models.type.TypeResourceIdentifier getType() { - return this.type; - } - - /** - *

Sets the Custom Fields fields for the ApprovalFlow.

- * @return fields - */ - - @Nullable - public com.commercetools.api.models.type.FieldContainer getFields() { - return this.fields; - } - - /** - * builds ApprovalFlowSetCustomTypeAction with checking for non-null required values - * @return ApprovalFlowSetCustomTypeAction - */ - public ApprovalFlowSetCustomTypeAction build() { - return new ApprovalFlowSetCustomTypeActionImpl(type, fields); - } - - /** - * builds ApprovalFlowSetCustomTypeAction without checking for non-null required values - * @return ApprovalFlowSetCustomTypeAction - */ - public ApprovalFlowSetCustomTypeAction buildUnchecked() { - return new ApprovalFlowSetCustomTypeActionImpl(type, fields); - } - - /** - * factory method for an instance of ApprovalFlowSetCustomTypeActionBuilder - * @return builder - */ - public static ApprovalFlowSetCustomTypeActionBuilder of() { - return new ApprovalFlowSetCustomTypeActionBuilder(); - } - - /** - * create builder for ApprovalFlowSetCustomTypeAction instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static ApprovalFlowSetCustomTypeActionBuilder of(final ApprovalFlowSetCustomTypeAction template) { - ApprovalFlowSetCustomTypeActionBuilder builder = new ApprovalFlowSetCustomTypeActionBuilder(); - builder.type = template.getType(); - builder.fields = template.getFields(); - return builder; - } - -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionImpl.java deleted file mode 100644 index 97c4d3b52a3..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionImpl.java +++ /dev/null @@ -1,114 +0,0 @@ - -package com.commercetools.api.models.approval_flow; - -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; - -/** - * ApprovalFlowSetCustomTypeAction - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class ApprovalFlowSetCustomTypeActionImpl implements ApprovalFlowSetCustomTypeAction, ModelBase { - - private String action; - - private com.commercetools.api.models.type.TypeResourceIdentifier type; - - private com.commercetools.api.models.type.FieldContainer fields; - - /** - * create instance with all properties - */ - @JsonCreator - ApprovalFlowSetCustomTypeActionImpl( - @JsonProperty("type") final com.commercetools.api.models.type.TypeResourceIdentifier type, - @JsonProperty("fields") final com.commercetools.api.models.type.FieldContainer fields) { - this.type = type; - this.fields = fields; - this.action = SET_CUSTOM_TYPE; - } - - /** - * create empty instance - */ - public ApprovalFlowSetCustomTypeActionImpl() { - this.action = SET_CUSTOM_TYPE; - } - - /** - * - */ - - public String getAction() { - return this.action; - } - - /** - *

Defines the Type that extends the ApprovalFlow with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.

- */ - - public com.commercetools.api.models.type.TypeResourceIdentifier getType() { - return this.type; - } - - /** - *

Sets the Custom Fields fields for the ApprovalFlow.

- */ - - public com.commercetools.api.models.type.FieldContainer getFields() { - return this.fields; - } - - public void setType(final com.commercetools.api.models.type.TypeResourceIdentifier type) { - this.type = type; - } - - public void setFields(final com.commercetools.api.models.type.FieldContainer fields) { - this.fields = fields; - } - - @Override - public boolean equals(Object o) { - if (this == o) - return true; - - if (o == null || getClass() != o.getClass()) - return false; - - ApprovalFlowSetCustomTypeActionImpl that = (ApprovalFlowSetCustomTypeActionImpl) o; - - return new EqualsBuilder().append(action, that.action) - .append(type, that.type) - .append(fields, that.fields) - .append(action, that.action) - .append(type, that.type) - .append(fields, that.fields) - .isEquals(); - } - - @Override - public int hashCode() { - return new HashCodeBuilder(17, 37).append(action).append(type).append(fields).toHashCode(); - } - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) - .append("type", type) - .append("fields", fields) - .build(); - } - -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowUpdateAction.java index 44d0540e416..91b00aeff4d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowUpdateAction.java @@ -27,9 +27,7 @@ */ @JsonSubTypes({ @JsonSubTypes.Type(value = com.commercetools.api.models.approval_flow.ApprovalFlowApproveActionImpl.class, name = ApprovalFlowApproveAction.APPROVE), - @JsonSubTypes.Type(value = com.commercetools.api.models.approval_flow.ApprovalFlowRejectActionImpl.class, name = ApprovalFlowRejectAction.REJECT), - @JsonSubTypes.Type(value = com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomFieldActionImpl.class, name = ApprovalFlowSetCustomFieldAction.SET_CUSTOM_FIELD), - @JsonSubTypes.Type(value = com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomTypeActionImpl.class, name = ApprovalFlowSetCustomTypeAction.SET_CUSTOM_TYPE) }) + @JsonSubTypes.Type(value = com.commercetools.api.models.approval_flow.ApprovalFlowRejectActionImpl.class, name = ApprovalFlowRejectAction.REJECT) }) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "action", defaultImpl = ApprovalFlowUpdateActionImpl.class, visible = true) @JsonDeserialize(as = ApprovalFlowUpdateActionImpl.class) @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @@ -61,14 +59,6 @@ public static ApprovalFlowUpdateAction deepCopy(@Nullable final ApprovalFlowUpda return com.commercetools.api.models.approval_flow.ApprovalFlowRejectAction .deepCopy((com.commercetools.api.models.approval_flow.ApprovalFlowRejectAction) template); } - if (template instanceof com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomFieldAction) { - return com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomFieldAction - .deepCopy((com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomFieldAction) template); - } - if (template instanceof com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomTypeAction) { - return com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomTypeAction - .deepCopy((com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomTypeAction) template); - } ApprovalFlowUpdateActionImpl instance = new ApprovalFlowUpdateActionImpl(); return instance; } @@ -89,22 +79,6 @@ public static com.commercetools.api.models.approval_flow.ApprovalFlowRejectActio return com.commercetools.api.models.approval_flow.ApprovalFlowRejectActionBuilder.of(); } - /** - * builder for setCustomField subtype - * @return builder - */ - public static com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomFieldActionBuilder setCustomFieldBuilder() { - return com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomFieldActionBuilder.of(); - } - - /** - * builder for setCustomType subtype - * @return builder - */ - public static com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomTypeActionBuilder setCustomTypeBuilder() { - return com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomTypeActionBuilder.of(); - } - /** * accessor map function * @param mapped type diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowUpdateActionBuilder.java index 54f8459a28c..ec823062d9c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowUpdateActionBuilder.java @@ -19,14 +19,6 @@ public com.commercetools.api.models.approval_flow.ApprovalFlowRejectActionBuilde return com.commercetools.api.models.approval_flow.ApprovalFlowRejectActionBuilder.of(); } - public com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomFieldActionBuilder setCustomFieldBuilder() { - return com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomFieldActionBuilder.of(); - } - - public com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomTypeActionBuilder setCustomTypeBuilder() { - return com.commercetools.api.models.approval_flow.ApprovalFlowSetCustomTypeActionBuilder.of(); - } - /** * factory method for an instance of ApprovalFlowUpdateActionBuilder * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java index 4a2b7ba5cf0..1437d1f7379 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java @@ -227,7 +227,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models public List getAssociates(); /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @return inheritedAssociates */ @Valid @@ -436,7 +436,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models public void setAssociates(final List associates); /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param inheritedAssociates values to be set */ @@ -444,7 +444,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models public void setInheritedAssociates(final InheritedAssociate... inheritedAssociates); /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param inheritedAssociates values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java index ea389aabbd9..cc795cbd2eb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java @@ -299,7 +299,7 @@ public java.util.List getA } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

*/ public java.util.List getInheritedAssociates() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitStatus.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitStatus.java index 6f3026c6318..e304d20c885 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitStatus.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitStatus.java @@ -22,7 +22,7 @@ public interface BusinessUnitStatus extends JsonEnum { */ BusinessUnitStatus ACTIVE = BusinessUnitStatusEnum.ACTIVE; /** -

The Business Unit cannot be used in Carts, Orders, Quote Requests, and Quotes and can only be edited using the general endpoint. +

The Business Unit cannot be used in Carts, Orders, Quote Requests, and Quotes and can only be edited using the general endpoint. Status doesn't affect inheritance. Even if a parent unit is inactive, its children remain active and can inherit role assignments.

*/ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java index f168b418994..0fded39cd47 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java @@ -678,7 +678,7 @@ public CompanyBuilder setAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param inheritedAssociates value to be set * @return Builder */ @@ -690,7 +690,7 @@ public CompanyBuilder inheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param inheritedAssociates value to be set * @return Builder */ @@ -702,7 +702,7 @@ public CompanyBuilder inheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param inheritedAssociates value to be set * @return Builder */ @@ -717,7 +717,7 @@ public CompanyBuilder plusInheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param builder function to build the inheritedAssociates value * @return Builder */ @@ -733,7 +733,7 @@ public CompanyBuilder plusInheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param builder function to build the inheritedAssociates value * @return Builder */ @@ -747,7 +747,7 @@ public CompanyBuilder withInheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param builder function to build the inheritedAssociates value * @return Builder */ @@ -759,7 +759,7 @@ public CompanyBuilder addInheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param builder function to build the inheritedAssociates value * @return Builder */ @@ -1039,7 +1039,7 @@ public java.util.List getA } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @return inheritedAssociates */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java index 4a01e018067..0f99e3afa17 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java @@ -299,7 +299,7 @@ public java.util.List getA } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

*/ public java.util.List getInheritedAssociates() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java index 9147c8c3c0a..98f15fad28e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java @@ -678,7 +678,7 @@ public DivisionBuilder setAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param inheritedAssociates value to be set * @return Builder */ @@ -690,7 +690,7 @@ public DivisionBuilder inheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param inheritedAssociates value to be set * @return Builder */ @@ -702,7 +702,7 @@ public DivisionBuilder inheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param inheritedAssociates value to be set * @return Builder */ @@ -717,7 +717,7 @@ public DivisionBuilder plusInheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param builder function to build the inheritedAssociates value * @return Builder */ @@ -733,7 +733,7 @@ public DivisionBuilder plusInheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param builder function to build the inheritedAssociates value * @return Builder */ @@ -747,7 +747,7 @@ public DivisionBuilder withInheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param builder function to build the inheritedAssociates value * @return Builder */ @@ -759,7 +759,7 @@ public DivisionBuilder addInheritedAssociates( } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @param builder function to build the inheritedAssociates value * @return Builder */ @@ -1039,7 +1039,7 @@ public java.util.List getA } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

* @return inheritedAssociates */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java index 5324792f3b3..cd49986e855 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java @@ -299,7 +299,7 @@ public java.util.List getA } /** - *

Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

+ *

Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode is set to ExplicitAndFromParent.

*/ public java.util.List getInheritedAssociates() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraft.java index 78f1e264286..67aa8b28fdb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraft.java @@ -82,7 +82,7 @@ public interface ExternalTaxRateDraft extends io.vrap.rmf.base.client.DraftFor countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @return subRates */ @Valid @@ -132,7 +132,7 @@ public interface ExternalTaxRateDraft extends io.vrap.rmf.base.client.DraftFor countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @param subRates values to be set */ @@ -140,7 +140,7 @@ public interface ExternalTaxRateDraft extends io.vrap.rmf.base.client.DraftFor countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @param subRates values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraftBuilder.java index fce4635de68..53f9e6fa050 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraftBuilder.java @@ -104,7 +104,7 @@ public ExternalTaxRateDraftBuilder state(@Nullable final String state) { } /** - *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @param subRates value to be set * @return Builder */ @@ -116,7 +116,7 @@ public ExternalTaxRateDraftBuilder subRates( } /** - *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @param subRates value to be set * @return Builder */ @@ -128,7 +128,7 @@ public ExternalTaxRateDraftBuilder subRates( } /** - *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @param subRates value to be set * @return Builder */ @@ -143,7 +143,7 @@ public ExternalTaxRateDraftBuilder plusSubRates( } /** - *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -158,7 +158,7 @@ public ExternalTaxRateDraftBuilder plusSubRates( } /** - *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -171,7 +171,7 @@ public ExternalTaxRateDraftBuilder withSubRates( } /** - *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -182,7 +182,7 @@ public ExternalTaxRateDraftBuilder addSubRates( } /** - *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -248,7 +248,7 @@ public String getState() { } /** - *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

* @return subRates */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraftImpl.java index bd4f81d54af..a1b2ead99e3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/ExternalTaxRateDraftImpl.java @@ -104,7 +104,7 @@ public String getState() { } /** - *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

*/ public java.util.List getSubRates() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObject.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObject.java index e96cdb863dc..189bc7d2b74 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObject.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObject.java @@ -79,6 +79,7 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.error.MissingTaxRateForCountryErrorImpl.class, name = MissingTaxRateForCountryError.MISSING_TAX_RATE_FOR_COUNTRY), @JsonSubTypes.Type(value = com.commercetools.api.models.error.MoneyOverflowErrorImpl.class, name = MoneyOverflowError.MONEY_OVERFLOW), @JsonSubTypes.Type(value = com.commercetools.api.models.error.NoMatchingProductDiscountFoundErrorImpl.class, name = NoMatchingProductDiscountFoundError.NO_MATCHING_PRODUCT_DISCOUNT_FOUND), + @JsonSubTypes.Type(value = com.commercetools.api.models.error.NotEnabledErrorImpl.class, name = NotEnabledError.NOT_ENABLED), @JsonSubTypes.Type(value = com.commercetools.api.models.error.ObjectNotFoundErrorImpl.class, name = ObjectNotFoundError.OBJECT_NOT_FOUND), @JsonSubTypes.Type(value = com.commercetools.api.models.error.OutOfStockErrorImpl.class, name = OutOfStockError.OUT_OF_STOCK), @JsonSubTypes.Type(value = com.commercetools.api.models.error.OverCapacityErrorImpl.class, name = OverCapacityError.OVER_CAPACITY), @@ -362,6 +363,10 @@ public static ErrorObject deepCopy(@Nullable final ErrorObject template) { return com.commercetools.api.models.error.NoMatchingProductDiscountFoundError .deepCopy((com.commercetools.api.models.error.NoMatchingProductDiscountFoundError) template); } + if (template instanceof com.commercetools.api.models.error.NotEnabledError) { + return com.commercetools.api.models.error.NotEnabledError + .deepCopy((com.commercetools.api.models.error.NotEnabledError) template); + } if (template instanceof com.commercetools.api.models.error.ObjectNotFoundError) { return com.commercetools.api.models.error.ObjectNotFoundError .deepCopy((com.commercetools.api.models.error.ObjectNotFoundError) template); @@ -872,6 +877,14 @@ public static com.commercetools.api.models.error.NoMatchingProductDiscountFoundE return com.commercetools.api.models.error.NoMatchingProductDiscountFoundErrorBuilder.of(); } + /** + * builder for notEnabled subtype + * @return builder + */ + public static com.commercetools.api.models.error.NotEnabledErrorBuilder notEnabledBuilder() { + return com.commercetools.api.models.error.NotEnabledErrorBuilder.of(); + } + /** * builder for objectNotFound subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObjectBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObjectBuilder.java index 8035fa4598e..f8a44197dcc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObjectBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObjectBuilder.java @@ -215,6 +215,10 @@ public com.commercetools.api.models.error.NoMatchingProductDiscountFoundErrorBui return com.commercetools.api.models.error.NoMatchingProductDiscountFoundErrorBuilder.of(); } + public com.commercetools.api.models.error.NotEnabledErrorBuilder notEnabledBuilder() { + return com.commercetools.api.models.error.NotEnabledErrorBuilder.of(); + } + public com.commercetools.api.models.error.ObjectNotFoundErrorBuilder objectNotFoundBuilder() { return com.commercetools.api.models.error.ObjectNotFoundErrorBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorResponse.java index 201a8a76b45..550d5522c07 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorResponse.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorResponse.java @@ -124,6 +124,10 @@ public static ErrorResponse deepCopy(@Nullable final ErrorResponse template) { return com.commercetools.api.models.error.AuthErrorResponse .deepCopy((com.commercetools.api.models.error.AuthErrorResponse) template); } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchErrorResponse) { + return com.commercetools.api.models.product_search.ProductSearchErrorResponse + .deepCopy((com.commercetools.api.models.product_search.ProductSearchErrorResponse) template); + } ErrorResponseImpl instance = new ErrorResponseImpl(); instance.setStatusCode(template.getStatusCode()); instance.setMessage(template.getMessage()); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java index 540c7ca722f..656ac28416a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java @@ -77,6 +77,7 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLMissingTaxRateForCountryErrorImpl.class, name = GraphQLMissingTaxRateForCountryError.MISSING_TAX_RATE_FOR_COUNTRY), @JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLMoneyOverflowErrorImpl.class, name = GraphQLMoneyOverflowError.MONEY_OVERFLOW), @JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLNoMatchingProductDiscountFoundErrorImpl.class, name = GraphQLNoMatchingProductDiscountFoundError.NO_MATCHING_PRODUCT_DISCOUNT_FOUND), + @JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLNotEnabledErrorImpl.class, name = GraphQLNotEnabledError.NOT_ENABLED), @JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLObjectNotFoundErrorImpl.class, name = GraphQLObjectNotFoundError.OBJECT_NOT_FOUND), @JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLOutOfStockErrorImpl.class, name = GraphQLOutOfStockError.OUT_OF_STOCK), @JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLOverCapacityErrorImpl.class, name = GraphQLOverCapacityError.OVER_CAPACITY), @@ -345,6 +346,10 @@ public static GraphQLErrorObject deepCopy(@Nullable final GraphQLErrorObject tem return com.commercetools.api.models.error.GraphQLNoMatchingProductDiscountFoundError .deepCopy((com.commercetools.api.models.error.GraphQLNoMatchingProductDiscountFoundError) template); } + if (template instanceof com.commercetools.api.models.error.GraphQLNotEnabledError) { + return com.commercetools.api.models.error.GraphQLNotEnabledError + .deepCopy((com.commercetools.api.models.error.GraphQLNotEnabledError) template); + } if (template instanceof com.commercetools.api.models.error.GraphQLObjectNotFoundError) { return com.commercetools.api.models.error.GraphQLObjectNotFoundError .deepCopy((com.commercetools.api.models.error.GraphQLObjectNotFoundError) template); @@ -854,6 +859,14 @@ public static com.commercetools.api.models.error.GraphQLNoMatchingProductDiscoun return com.commercetools.api.models.error.GraphQLNoMatchingProductDiscountFoundErrorBuilder.of(); } + /** + * builder for notEnabled subtype + * @return builder + */ + public static com.commercetools.api.models.error.GraphQLNotEnabledErrorBuilder notEnabledBuilder() { + return com.commercetools.api.models.error.GraphQLNotEnabledErrorBuilder.of(); + } + /** * builder for objectNotFound subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectBuilder.java index 90c26e39b08..fa030d9c7e7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectBuilder.java @@ -215,6 +215,10 @@ public com.commercetools.api.models.error.GraphQLNoMatchingProductDiscountFoundE return com.commercetools.api.models.error.GraphQLNoMatchingProductDiscountFoundErrorBuilder.of(); } + public com.commercetools.api.models.error.GraphQLNotEnabledErrorBuilder notEnabledBuilder() { + return com.commercetools.api.models.error.GraphQLNotEnabledErrorBuilder.of(); + } + public com.commercetools.api.models.error.GraphQLObjectNotFoundErrorBuilder objectNotFoundBuilder() { return com.commercetools.api.models.error.GraphQLObjectNotFoundErrorBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledError.java new file mode 100644 index 00000000000..98ccb3b670f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledError.java @@ -0,0 +1,118 @@ + +package com.commercetools.api.models.error; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Returned when the Project-specific category recommendations feature is not enabled for the Project.

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

+ *     GraphQLNotEnabledError graphQLNotEnabledError = GraphQLNotEnabledError.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = GraphQLNotEnabledErrorImpl.class) +public interface GraphQLNotEnabledError extends GraphQLErrorObject { + + /** + * discriminator value for GraphQLNotEnabledError + */ + String NOT_ENABLED = "NotEnabled"; + + /** + * + * @return code + */ + @NotNull + @JsonProperty("code") + public String getCode(); + + /** + * factory method + * @return instance of GraphQLNotEnabledError + */ + public static GraphQLNotEnabledError of() { + return new GraphQLNotEnabledErrorImpl(); + } + + /** + * factory method to create a shallow copy GraphQLNotEnabledError + * @param template instance to be copied + * @return copy instance + */ + public static GraphQLNotEnabledError of(final GraphQLNotEnabledError template) { + GraphQLNotEnabledErrorImpl instance = new GraphQLNotEnabledErrorImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + return instance; + } + + /** + * factory method to create a deep copy of GraphQLNotEnabledError + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static GraphQLNotEnabledError deepCopy(@Nullable final GraphQLNotEnabledError template) { + if (template == null) { + return null; + } + GraphQLNotEnabledErrorImpl instance = new GraphQLNotEnabledErrorImpl(); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + return instance; + } + + /** + * builder factory method for GraphQLNotEnabledError + * @return builder + */ + public static GraphQLNotEnabledErrorBuilder builder() { + return GraphQLNotEnabledErrorBuilder.of(); + } + + /** + * create builder for GraphQLNotEnabledError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLNotEnabledErrorBuilder builder(final GraphQLNotEnabledError template) { + return GraphQLNotEnabledErrorBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withGraphQLNotEnabledError(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/error/GraphQLNotEnabledErrorBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorBuilder.java new file mode 100644 index 00000000000..19add0cb2f5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorBuilder.java @@ -0,0 +1,95 @@ + +package com.commercetools.api.models.error; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * GraphQLNotEnabledErrorBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     GraphQLNotEnabledError graphQLNotEnabledError = GraphQLNotEnabledError.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLNotEnabledErrorBuilder implements Builder { + + private Map values = new HashMap<>(); + + /** + *

Error-specific additional fields.

+ * @param values properties to be set + * @return Builder + */ + + public GraphQLNotEnabledErrorBuilder values(final Map values) { + this.values = values; + return this; + } + + /** + *

Error-specific additional fields.

+ * @param key property name + * @param value property value + * @return Builder + */ + + public GraphQLNotEnabledErrorBuilder addValue(final String key, final java.lang.Object value) { + if (this.values == null) { + values = new HashMap<>(); + } + values.put(key, value); + return this; + } + + /** + *

Error-specific additional fields.

+ * @return pattern properties + */ + + public Map getValues() { + return this.values; + } + + /** + * builds GraphQLNotEnabledError with checking for non-null required values + * @return GraphQLNotEnabledError + */ + public GraphQLNotEnabledError build() { + return new GraphQLNotEnabledErrorImpl(values); + } + + /** + * builds GraphQLNotEnabledError without checking for non-null required values + * @return GraphQLNotEnabledError + */ + public GraphQLNotEnabledError buildUnchecked() { + return new GraphQLNotEnabledErrorImpl(values); + } + + /** + * factory method for an instance of GraphQLNotEnabledErrorBuilder + * @return builder + */ + public static GraphQLNotEnabledErrorBuilder of() { + return new GraphQLNotEnabledErrorBuilder(); + } + + /** + * create builder for GraphQLNotEnabledError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static GraphQLNotEnabledErrorBuilder of(final GraphQLNotEnabledError template) { + GraphQLNotEnabledErrorBuilder builder = new GraphQLNotEnabledErrorBuilder(); + builder.values = template.values(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorImpl.java new file mode 100644 index 00000000000..c5ee495ca54 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorImpl.java @@ -0,0 +1,97 @@ + +package com.commercetools.api.models.error; + +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; + +/** + *

Returned when the Project-specific category recommendations feature is not enabled for the Project.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class GraphQLNotEnabledErrorImpl implements GraphQLNotEnabledError, ModelBase { + + private String code; + + private Map values; + + /** + * create instance with all properties + */ + @JsonCreator + GraphQLNotEnabledErrorImpl(@JsonProperty("values") final Map values) { + this.values = values; + this.code = NOT_ENABLED; + } + + /** + * create empty instance + */ + public GraphQLNotEnabledErrorImpl() { + this.code = NOT_ENABLED; + } + + /** + * + */ + + public String getCode() { + return this.code; + } + + /** + *

Error-specific additional fields.

+ */ + + public Map values() { + return values; + } + + public void setValue(String key, java.lang.Object value) { + if (values == null) { + values = new HashMap<>(); + } + values.put(key, value); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + GraphQLNotEnabledErrorImpl that = (GraphQLNotEnabledErrorImpl) o; + + return new EqualsBuilder().append(code, that.code) + .append(values, that.values) + .append(code, that.code) + .append(values, that.values) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(code).append(values).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code) + .append("values", values) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledError.java new file mode 100644 index 00000000000..325d14ecf46 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledError.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.error; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Returned when the Project-specific category recommendations feature is not enabled for the Project.

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

+ *     NotEnabledError notEnabledError = NotEnabledError.builder()
+ *             .message("{message}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = NotEnabledErrorImpl.class) +public interface NotEnabledError extends ErrorObject { + + /** + * discriminator value for NotEnabledError + */ + String NOT_ENABLED = "NotEnabled"; + + /** + * + * @return code + */ + @NotNull + @JsonProperty("code") + public String getCode(); + + /** + *

"The category recommendations API is not yet enabled for your project."

+ * @return message + */ + @NotNull + @JsonProperty("message") + public String getMessage(); + + /** + *

"The category recommendations API is not yet enabled for your project."

+ * @param message value to be set + */ + + public void setMessage(final String message); + + /** + * factory method + * @return instance of NotEnabledError + */ + public static NotEnabledError of() { + return new NotEnabledErrorImpl(); + } + + /** + * factory method to create a shallow copy NotEnabledError + * @param template instance to be copied + * @return copy instance + */ + public static NotEnabledError of(final NotEnabledError template) { + NotEnabledErrorImpl instance = new NotEnabledErrorImpl(); + instance.setMessage(template.getMessage()); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + return instance; + } + + /** + * factory method to create a deep copy of NotEnabledError + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static NotEnabledError deepCopy(@Nullable final NotEnabledError template) { + if (template == null) { + return null; + } + NotEnabledErrorImpl instance = new NotEnabledErrorImpl(); + instance.setMessage(template.getMessage()); + Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); + return instance; + } + + /** + * builder factory method for NotEnabledError + * @return builder + */ + public static NotEnabledErrorBuilder builder() { + return NotEnabledErrorBuilder.of(); + } + + /** + * create builder for NotEnabledError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static NotEnabledErrorBuilder builder(final NotEnabledError template) { + return NotEnabledErrorBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withNotEnabledError(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/error/NotEnabledErrorBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledErrorBuilder.java new file mode 100644 index 00000000000..71e313e2acc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledErrorBuilder.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.models.error; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * NotEnabledErrorBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     NotEnabledError notEnabledError = NotEnabledError.builder()
+ *             .message("{message}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class NotEnabledErrorBuilder implements Builder { + + private String message; + + private Map values = new HashMap<>(); + + /** + *

"The category recommendations API is not yet enabled for your project."

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

Error-specific additional fields.

+ * @param values properties to be set + * @return Builder + */ + + public NotEnabledErrorBuilder values(final Map values) { + this.values = values; + return this; + } + + /** + *

Error-specific additional fields.

+ * @param key property name + * @param value property value + * @return Builder + */ + + public NotEnabledErrorBuilder addValue(final String key, final java.lang.Object value) { + if (this.values == null) { + values = new HashMap<>(); + } + values.put(key, value); + return this; + } + + /** + *

"The category recommendations API is not yet enabled for your project."

+ * @return message + */ + + public String getMessage() { + return this.message; + } + + /** + *

Error-specific additional fields.

+ * @return pattern properties + */ + + public Map getValues() { + return this.values; + } + + /** + * builds NotEnabledError with checking for non-null required values + * @return NotEnabledError + */ + public NotEnabledError build() { + Objects.requireNonNull(message, NotEnabledError.class + ": message is missing"); + return new NotEnabledErrorImpl(message, values); + } + + /** + * builds NotEnabledError without checking for non-null required values + * @return NotEnabledError + */ + public NotEnabledError buildUnchecked() { + return new NotEnabledErrorImpl(message, values); + } + + /** + * factory method for an instance of NotEnabledErrorBuilder + * @return builder + */ + public static NotEnabledErrorBuilder of() { + return new NotEnabledErrorBuilder(); + } + + /** + * create builder for NotEnabledError instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static NotEnabledErrorBuilder of(final NotEnabledError template) { + NotEnabledErrorBuilder builder = new NotEnabledErrorBuilder(); + builder.message = template.getMessage(); + builder.values = template.values(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledErrorImpl.java new file mode 100644 index 00000000000..1d2fb6eae65 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/NotEnabledErrorImpl.java @@ -0,0 +1,116 @@ + +package com.commercetools.api.models.error; + +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; + +/** + *

Returned when the Project-specific category recommendations feature is not enabled for the Project.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class NotEnabledErrorImpl implements NotEnabledError, ModelBase { + + private String code; + + private String message; + + private Map values; + + /** + * create instance with all properties + */ + @JsonCreator + NotEnabledErrorImpl(@JsonProperty("message") final String message, + @JsonProperty("values") final Map values) { + this.message = message; + this.values = values; + this.code = NOT_ENABLED; + } + + /** + * create empty instance + */ + public NotEnabledErrorImpl() { + this.code = NOT_ENABLED; + } + + /** + * + */ + + public String getCode() { + return this.code; + } + + /** + *

"The category recommendations API is not yet enabled for your project."

+ */ + + public String getMessage() { + return this.message; + } + + /** + *

Error-specific additional fields.

+ */ + + public Map values() { + return values; + } + + public void setMessage(final String message) { + this.message = message; + } + + public void setValue(String key, java.lang.Object value) { + if (values == null) { + values = new HashMap<>(); + } + values.put(key, value); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + NotEnabledErrorImpl that = (NotEnabledErrorImpl) o; + + return new EqualsBuilder().append(code, that.code) + .append(message, that.message) + .append(values, that.values) + .append(code, that.code) + .append(message, that.message) + .append(values, that.values) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(code).append(message).append(values).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("code", code) + .append("message", message) + .append("values", values) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ShipmentState.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ShipmentState.java index a6d982c476c..61418d20e99 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ShipmentState.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ShipmentState.java @@ -11,7 +11,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Indicates the shipment status of the Order.

+ *

Indicates the shipment status of the Parcel.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface ShipmentState extends JsonEnum { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponse.java new file mode 100644 index 00000000000..9ff374b07ab --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponse.java @@ -0,0 +1,206 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductPagedSearchResponse + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductPagedSearchResponse productPagedSearchResponse = ProductPagedSearchResponse.builder()
+ *             .total(0.3)
+ *             .plusHits(hitsBuilder -> hitsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductPagedSearchResponseImpl.class) +public interface ProductPagedSearchResponse { + + /** + *

Total number of results matching the query.

+ * @return total + */ + @NotNull + @JsonProperty("total") + public Long getTotal(); + + /** + *

Number of elements skipped.

+ * @return offset + */ + + @JsonProperty("offset") + public Integer getOffset(); + + /** + *

Number of results requested.

+ * @return limit + */ + + @JsonProperty("limit") + public Integer getLimit(); + + /** + *

Results of faceting.

+ * @return facets + */ + @Valid + @JsonProperty("facets") + public ProductSearchFacetResult getFacets(); + + /** + *

Actual results.

+ * @return hits + */ + @NotNull + @Valid + @JsonProperty("hits") + public List getHits(); + + /** + *

Total number of results matching the query.

+ * @param total value to be set + */ + + public void setTotal(final Long total); + + /** + *

Number of elements skipped.

+ * @param offset value to be set + */ + + public void setOffset(final Integer offset); + + /** + *

Number of results requested.

+ * @param limit value to be set + */ + + public void setLimit(final Integer limit); + + /** + *

Results of faceting.

+ * @param facets value to be set + */ + + public void setFacets(final ProductSearchFacetResult facets); + + /** + *

Actual results.

+ * @param hits values to be set + */ + + @JsonIgnore + public void setHits(final ProductSearchHit... hits); + + /** + *

Actual results.

+ * @param hits values to be set + */ + + public void setHits(final List hits); + + /** + * factory method + * @return instance of ProductPagedSearchResponse + */ + public static ProductPagedSearchResponse of() { + return new ProductPagedSearchResponseImpl(); + } + + /** + * factory method to create a shallow copy ProductPagedSearchResponse + * @param template instance to be copied + * @return copy instance + */ + public static ProductPagedSearchResponse of(final ProductPagedSearchResponse template) { + ProductPagedSearchResponseImpl instance = new ProductPagedSearchResponseImpl(); + instance.setTotal(template.getTotal()); + instance.setOffset(template.getOffset()); + instance.setLimit(template.getLimit()); + instance.setFacets(template.getFacets()); + instance.setHits(template.getHits()); + return instance; + } + + /** + * factory method to create a deep copy of ProductPagedSearchResponse + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductPagedSearchResponse deepCopy(@Nullable final ProductPagedSearchResponse template) { + if (template == null) { + return null; + } + ProductPagedSearchResponseImpl instance = new ProductPagedSearchResponseImpl(); + instance.setTotal(template.getTotal()); + instance.setOffset(template.getOffset()); + instance.setLimit(template.getLimit()); + instance.setFacets( + com.commercetools.api.models.product_search.ProductSearchFacetResult.deepCopy(template.getFacets())); + instance.setHits(Optional.ofNullable(template.getHits()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchHit::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductPagedSearchResponse + * @return builder + */ + public static ProductPagedSearchResponseBuilder builder() { + return ProductPagedSearchResponseBuilder.of(); + } + + /** + * create builder for ProductPagedSearchResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductPagedSearchResponseBuilder builder(final ProductPagedSearchResponse template) { + return ProductPagedSearchResponseBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductPagedSearchResponse(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/product_search/ProductPagedSearchResponseBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseBuilder.java new file mode 100644 index 00000000000..5e62290c836 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseBuilder.java @@ -0,0 +1,289 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductPagedSearchResponseBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductPagedSearchResponse productPagedSearchResponse = ProductPagedSearchResponse.builder()
+ *             .total(0.3)
+ *             .plusHits(hitsBuilder -> hitsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductPagedSearchResponseBuilder implements Builder { + + private Long total; + + @Nullable + private Integer offset; + + @Nullable + private Integer limit; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchFacetResult facets; + + private java.util.List hits; + + /** + *

Total number of results matching the query.

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

Number of elements skipped.

+ * @param offset value to be set + * @return Builder + */ + + public ProductPagedSearchResponseBuilder offset(@Nullable final Integer offset) { + this.offset = offset; + return this; + } + + /** + *

Number of results requested.

+ * @param limit value to be set + * @return Builder + */ + + public ProductPagedSearchResponseBuilder limit(@Nullable final Integer limit) { + this.limit = limit; + return this; + } + + /** + *

Results of faceting.

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

Results of faceting.

+ * @param builder function to build the facets value + * @return Builder + */ + + public ProductPagedSearchResponseBuilder withFacets( + Function builder) { + this.facets = builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetResultBuilder.of()); + return this; + } + + /** + *

Results of faceting.

+ * @param facets value to be set + * @return Builder + */ + + public ProductPagedSearchResponseBuilder facets( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetResult facets) { + this.facets = facets; + return this; + } + + /** + *

Actual results.

+ * @param hits value to be set + * @return Builder + */ + + public ProductPagedSearchResponseBuilder hits( + final com.commercetools.api.models.product_search.ProductSearchHit... hits) { + this.hits = new ArrayList<>(Arrays.asList(hits)); + return this; + } + + /** + *

Actual results.

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

Actual results.

+ * @param hits value to be set + * @return Builder + */ + + public ProductPagedSearchResponseBuilder plusHits( + final com.commercetools.api.models.product_search.ProductSearchHit... hits) { + if (this.hits == null) { + this.hits = new ArrayList<>(); + } + this.hits.addAll(Arrays.asList(hits)); + return this; + } + + /** + *

Actual results.

+ * @param builder function to build the hits value + * @return Builder + */ + + public ProductPagedSearchResponseBuilder plusHits( + Function builder) { + if (this.hits == null) { + this.hits = new ArrayList<>(); + } + this.hits.add(builder.apply(com.commercetools.api.models.product_search.ProductSearchHitBuilder.of()).build()); + return this; + } + + /** + *

Actual results.

+ * @param builder function to build the hits value + * @return Builder + */ + + public ProductPagedSearchResponseBuilder withHits( + Function builder) { + this.hits = new ArrayList<>(); + this.hits.add(builder.apply(com.commercetools.api.models.product_search.ProductSearchHitBuilder.of()).build()); + return this; + } + + /** + *

Actual results.

+ * @param builder function to build the hits value + * @return Builder + */ + + public ProductPagedSearchResponseBuilder addHits( + Function builder) { + return plusHits(builder.apply(com.commercetools.api.models.product_search.ProductSearchHitBuilder.of())); + } + + /** + *

Actual results.

+ * @param builder function to build the hits value + * @return Builder + */ + + public ProductPagedSearchResponseBuilder setHits( + Function builder) { + return hits(builder.apply(com.commercetools.api.models.product_search.ProductSearchHitBuilder.of())); + } + + /** + *

Total number of results matching the query.

+ * @return total + */ + + public Long getTotal() { + return this.total; + } + + /** + *

Number of elements skipped.

+ * @return offset + */ + + @Nullable + public Integer getOffset() { + return this.offset; + } + + /** + *

Number of results requested.

+ * @return limit + */ + + @Nullable + public Integer getLimit() { + return this.limit; + } + + /** + *

Results of faceting.

+ * @return facets + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchFacetResult getFacets() { + return this.facets; + } + + /** + *

Actual results.

+ * @return hits + */ + + public java.util.List getHits() { + return this.hits; + } + + /** + * builds ProductPagedSearchResponse with checking for non-null required values + * @return ProductPagedSearchResponse + */ + public ProductPagedSearchResponse build() { + Objects.requireNonNull(total, ProductPagedSearchResponse.class + ": total is missing"); + Objects.requireNonNull(hits, ProductPagedSearchResponse.class + ": hits is missing"); + return new ProductPagedSearchResponseImpl(total, offset, limit, facets, hits); + } + + /** + * builds ProductPagedSearchResponse without checking for non-null required values + * @return ProductPagedSearchResponse + */ + public ProductPagedSearchResponse buildUnchecked() { + return new ProductPagedSearchResponseImpl(total, offset, limit, facets, hits); + } + + /** + * factory method for an instance of ProductPagedSearchResponseBuilder + * @return builder + */ + public static ProductPagedSearchResponseBuilder of() { + return new ProductPagedSearchResponseBuilder(); + } + + /** + * create builder for ProductPagedSearchResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductPagedSearchResponseBuilder of(final ProductPagedSearchResponse template) { + ProductPagedSearchResponseBuilder builder = new ProductPagedSearchResponseBuilder(); + builder.total = template.getTotal(); + builder.offset = template.getOffset(); + builder.limit = template.getLimit(); + builder.facets = template.getFacets(); + builder.hits = template.getHits(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseImpl.java new file mode 100644 index 00000000000..8e3c2acb775 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseImpl.java @@ -0,0 +1,163 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductPagedSearchResponse + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductPagedSearchResponseImpl implements ProductPagedSearchResponse, ModelBase { + + private Long total; + + private Integer offset; + + private Integer limit; + + private com.commercetools.api.models.product_search.ProductSearchFacetResult facets; + + private java.util.List hits; + + /** + * create instance with all properties + */ + @JsonCreator + ProductPagedSearchResponseImpl(@JsonProperty("total") final Long total, + @JsonProperty("offset") final Integer offset, @JsonProperty("limit") final Integer limit, + @JsonProperty("facets") final com.commercetools.api.models.product_search.ProductSearchFacetResult facets, + @JsonProperty("hits") final java.util.List hits) { + this.total = total; + this.offset = offset; + this.limit = limit; + this.facets = facets; + this.hits = hits; + } + + /** + * create empty instance + */ + public ProductPagedSearchResponseImpl() { + } + + /** + *

Total number of results matching the query.

+ */ + + public Long getTotal() { + return this.total; + } + + /** + *

Number of elements skipped.

+ */ + + public Integer getOffset() { + return this.offset; + } + + /** + *

Number of results requested.

+ */ + + public Integer getLimit() { + return this.limit; + } + + /** + *

Results of faceting.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetResult getFacets() { + return this.facets; + } + + /** + *

Actual results.

+ */ + + public java.util.List getHits() { + return this.hits; + } + + public void setTotal(final Long total) { + this.total = total; + } + + public void setOffset(final Integer offset) { + this.offset = offset; + } + + public void setLimit(final Integer limit) { + this.limit = limit; + } + + public void setFacets(final com.commercetools.api.models.product_search.ProductSearchFacetResult facets) { + this.facets = facets; + } + + public void setHits(final com.commercetools.api.models.product_search.ProductSearchHit... hits) { + this.hits = new ArrayList<>(Arrays.asList(hits)); + } + + public void setHits(final java.util.List hits) { + this.hits = hits; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductPagedSearchResponseImpl that = (ProductPagedSearchResponseImpl) o; + + return new EqualsBuilder().append(total, that.total) + .append(offset, that.offset) + .append(limit, that.limit) + .append(facets, that.facets) + .append(hits, that.hits) + .append(total, that.total) + .append(offset, that.offset) + .append(limit, that.limit) + .append(facets, that.facets) + .append(hits, that.hits) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(total) + .append(offset) + .append(limit) + .append(facets) + .append(hits) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("total", total) + .append("offset", offset) + .append("limit", limit) + .append("facets", facets) + .append("hits", hits) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpression.java new file mode 100644 index 00000000000..9945a715241 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpression.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchAndExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchAndExpression productSearchAndExpression = ProductSearchAndExpression.builder()
+ *             .plusAnd(andBuilder -> andBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchAndExpressionImpl.class) +public interface ProductSearchAndExpression extends ProductSearchCompoundExpression { + + /** + * + * @return and + */ + @NotNull + @Valid + @JsonProperty("and") + public List getAnd(); + + /** + * set and + * @param and values to be set + */ + + @JsonIgnore + public void setAnd(final ProductSearchQuery... and); + + /** + * set and + * @param and values to be set + */ + + public void setAnd(final List and); + + /** + * factory method + * @return instance of ProductSearchAndExpression + */ + public static ProductSearchAndExpression of() { + return new ProductSearchAndExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchAndExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchAndExpression of(final ProductSearchAndExpression template) { + ProductSearchAndExpressionImpl instance = new ProductSearchAndExpressionImpl(); + instance.setAnd(template.getAnd()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchAndExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchAndExpression deepCopy(@Nullable final ProductSearchAndExpression template) { + if (template == null) { + return null; + } + ProductSearchAndExpressionImpl instance = new ProductSearchAndExpressionImpl(); + instance.setAnd(Optional.ofNullable(template.getAnd()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchQuery::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductSearchAndExpression + * @return builder + */ + public static ProductSearchAndExpressionBuilder builder() { + return ProductSearchAndExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchAndExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchAndExpressionBuilder builder(final ProductSearchAndExpression template) { + return ProductSearchAndExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchAndExpression(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/product_search/ProductSearchAndExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionBuilder.java new file mode 100644 index 00000000000..15324671736 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionBuilder.java @@ -0,0 +1,161 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchAndExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchAndExpression productSearchAndExpression = ProductSearchAndExpression.builder()
+ *             .plusAnd(andBuilder -> andBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchAndExpressionBuilder implements Builder { + + private java.util.List and; + + /** + * set values to the and + * @param and value to be set + * @return Builder + */ + + public ProductSearchAndExpressionBuilder and( + final com.commercetools.api.models.product_search.ProductSearchQuery... and) { + this.and = new ArrayList<>(Arrays.asList(and)); + return this; + } + + /** + * set value to the and + * @param and value to be set + * @return Builder + */ + + public ProductSearchAndExpressionBuilder and( + final java.util.List and) { + this.and = and; + return this; + } + + /** + * add values to the and + * @param and value to be set + * @return Builder + */ + + public ProductSearchAndExpressionBuilder plusAnd( + final com.commercetools.api.models.product_search.ProductSearchQuery... and) { + if (this.and == null) { + this.and = new ArrayList<>(); + } + this.and.addAll(Arrays.asList(and)); + return this; + } + + /** + * add the value to the and using the builder function + * @param builder function to build the and value + * @return Builder + */ + + public ProductSearchAndExpressionBuilder plusAnd( + Function builder) { + if (this.and == null) { + this.and = new ArrayList<>(); + } + this.and.add(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()).build()); + return this; + } + + /** + * set the value to the and using the builder function + * @param builder function to build the and value + * @return Builder + */ + + public ProductSearchAndExpressionBuilder withAnd( + Function builder) { + this.and = new ArrayList<>(); + this.and.add(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()).build()); + return this; + } + + /** + * add the value to the and using the builder function + * @param builder function to build the and value + * @return Builder + */ + + public ProductSearchAndExpressionBuilder addAnd( + Function builder) { + return plusAnd(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of())); + } + + /** + * set the value to the and using the builder function + * @param builder function to build the and value + * @return Builder + */ + + public ProductSearchAndExpressionBuilder setAnd( + Function builder) { + return and(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of())); + } + + /** + * value of and} + * @return and + */ + + public java.util.List getAnd() { + return this.and; + } + + /** + * builds ProductSearchAndExpression with checking for non-null required values + * @return ProductSearchAndExpression + */ + public ProductSearchAndExpression build() { + Objects.requireNonNull(and, ProductSearchAndExpression.class + ": and is missing"); + return new ProductSearchAndExpressionImpl(and); + } + + /** + * builds ProductSearchAndExpression without checking for non-null required values + * @return ProductSearchAndExpression + */ + public ProductSearchAndExpression buildUnchecked() { + return new ProductSearchAndExpressionImpl(and); + } + + /** + * factory method for an instance of ProductSearchAndExpressionBuilder + * @return builder + */ + public static ProductSearchAndExpressionBuilder of() { + return new ProductSearchAndExpressionBuilder(); + } + + /** + * create builder for ProductSearchAndExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchAndExpressionBuilder of(final ProductSearchAndExpression template) { + ProductSearchAndExpressionBuilder builder = new ProductSearchAndExpressionBuilder(); + builder.and = template.getAnd(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionImpl.java new file mode 100644 index 00000000000..08bee5a153c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionImpl.java @@ -0,0 +1,81 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchAndExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchAndExpressionImpl implements ProductSearchAndExpression, ModelBase { + + private java.util.List and; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchAndExpressionImpl( + @JsonProperty("and") final java.util.List and) { + this.and = and; + } + + /** + * create empty instance + */ + public ProductSearchAndExpressionImpl() { + } + + /** + * + */ + + public java.util.List getAnd() { + return this.and; + } + + public void setAnd(final com.commercetools.api.models.product_search.ProductSearchQuery... and) { + this.and = new ArrayList<>(Arrays.asList(and)); + } + + public void setAnd(final java.util.List and) { + this.and = and; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchAndExpressionImpl that = (ProductSearchAndExpressionImpl) o; + + return new EqualsBuilder().append(and, that.and).append(and, that.and).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(and).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("and", and).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValue.java new file mode 100644 index 00000000000..02fe3307366 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValue.java @@ -0,0 +1,161 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchAnyValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchAnyValue productSearchAnyValue = ProductSearchAnyValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchAnyValueImpl.class) +public interface ProductSearchAnyValue extends ProductSearchQueryExpressionValue { + + /** + * + * @return value + */ + @NotNull + @JsonProperty("value") + public Object getValue(); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @JsonProperty("language") + public String getLanguage(); + + /** + * + * @return caseInsensitive + */ + + @JsonProperty("caseInsensitive") + public Boolean getCaseInsensitive(); + + /** + * set value + * @param value value to be set + */ + + public void setValue(final Object value); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + */ + + public void setLanguage(final String language); + + /** + * set caseInsensitive + * @param caseInsensitive value to be set + */ + + public void setCaseInsensitive(final Boolean caseInsensitive); + + /** + * factory method + * @return instance of ProductSearchAnyValue + */ + public static ProductSearchAnyValue of() { + return new ProductSearchAnyValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchAnyValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchAnyValue of(final ProductSearchAnyValue template) { + ProductSearchAnyValueImpl instance = new ProductSearchAnyValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setValue(template.getValue()); + instance.setLanguage(template.getLanguage()); + instance.setCaseInsensitive(template.getCaseInsensitive()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchAnyValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchAnyValue deepCopy(@Nullable final ProductSearchAnyValue template) { + if (template == null) { + return null; + } + ProductSearchAnyValueImpl instance = new ProductSearchAnyValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setValue(template.getValue()); + instance.setLanguage(template.getLanguage()); + instance.setCaseInsensitive(template.getCaseInsensitive()); + return instance; + } + + /** + * builder factory method for ProductSearchAnyValue + * @return builder + */ + public static ProductSearchAnyValueBuilder builder() { + return ProductSearchAnyValueBuilder.of(); + } + + /** + * create builder for ProductSearchAnyValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchAnyValueBuilder builder(final ProductSearchAnyValue template) { + return ProductSearchAnyValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchAnyValue(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/product_search/ProductSearchAnyValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueBuilder.java new file mode 100644 index 00000000000..f8881474f71 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueBuilder.java @@ -0,0 +1,209 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchAnyValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchAnyValue productSearchAnyValue = ProductSearchAnyValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchAnyValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private java.lang.Object value; + + @Nullable + private String language; + + @Nullable + private Boolean caseInsensitive; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchAnyValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public ProductSearchAnyValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchAnyValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * set the value to the value + * @param value value to be set + * @return Builder + */ + + public ProductSearchAnyValueBuilder value(final java.lang.Object value) { + this.value = value; + return this; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + * @return Builder + */ + + public ProductSearchAnyValueBuilder language(@Nullable final String language) { + this.language = language; + return this; + } + + /** + * set the value to the caseInsensitive + * @param caseInsensitive value to be set + * @return Builder + */ + + public ProductSearchAnyValueBuilder caseInsensitive(@Nullable final Boolean caseInsensitive) { + this.caseInsensitive = caseInsensitive; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * value of value} + * @return value + */ + + public java.lang.Object getValue() { + return this.value; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @Nullable + public String getLanguage() { + return this.language; + } + + /** + * value of caseInsensitive} + * @return caseInsensitive + */ + + @Nullable + public Boolean getCaseInsensitive() { + return this.caseInsensitive; + } + + /** + * builds ProductSearchAnyValue with checking for non-null required values + * @return ProductSearchAnyValue + */ + public ProductSearchAnyValue build() { + Objects.requireNonNull(field, ProductSearchAnyValue.class + ": field is missing"); + Objects.requireNonNull(value, ProductSearchAnyValue.class + ": value is missing"); + return new ProductSearchAnyValueImpl(field, boost, attributeType, value, language, caseInsensitive); + } + + /** + * builds ProductSearchAnyValue without checking for non-null required values + * @return ProductSearchAnyValue + */ + public ProductSearchAnyValue buildUnchecked() { + return new ProductSearchAnyValueImpl(field, boost, attributeType, value, language, caseInsensitive); + } + + /** + * factory method for an instance of ProductSearchAnyValueBuilder + * @return builder + */ + public static ProductSearchAnyValueBuilder of() { + return new ProductSearchAnyValueBuilder(); + } + + /** + * create builder for ProductSearchAnyValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchAnyValueBuilder of(final ProductSearchAnyValue template) { + ProductSearchAnyValueBuilder builder = new ProductSearchAnyValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.attributeType = template.getAttributeType(); + builder.value = template.getValue(); + builder.language = template.getLanguage(); + builder.caseInsensitive = template.getCaseInsensitive(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueImpl.java new file mode 100644 index 00000000000..db6140ef0b0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueImpl.java @@ -0,0 +1,179 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchAnyValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchAnyValueImpl implements ProductSearchAnyValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private java.lang.Object value; + + private String language; + + private Boolean caseInsensitive; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchAnyValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Double boost, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("value") final java.lang.Object value, @JsonProperty("language") final String language, + @JsonProperty("caseInsensitive") final Boolean caseInsensitive) { + this.field = field; + this.boost = boost; + this.attributeType = attributeType; + this.value = value; + this.language = language; + this.caseInsensitive = caseInsensitive; + } + + /** + * create empty instance + */ + public ProductSearchAnyValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * + */ + + public java.lang.Object getValue() { + return this.value; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ */ + + public String getLanguage() { + return this.language; + } + + /** + * + */ + + public Boolean getCaseInsensitive() { + return this.caseInsensitive; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setValue(final java.lang.Object value) { + this.value = value; + } + + public void setLanguage(final String language) { + this.language = language; + } + + public void setCaseInsensitive(final Boolean caseInsensitive) { + this.caseInsensitive = caseInsensitive; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchAnyValueImpl that = (ProductSearchAnyValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(value, that.value) + .append(language, that.language) + .append(caseInsensitive, that.caseInsensitive) + .append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(value, that.value) + .append(language, that.language) + .append(caseInsensitive, that.caseInsensitive) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(boost) + .append(attributeType) + .append(value) + .append(language) + .append(caseInsensitive) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("attributeType", attributeType) + .append("value", value) + .append("language", language) + .append("caseInsensitive", caseInsensitive) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAttributeType.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAttributeType.java new file mode 100644 index 00000000000..ec0183d0041 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchAttributeType.java @@ -0,0 +1,252 @@ + +package com.commercetools.api.models.product_search; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchAttributeType + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface ProductSearchAttributeType extends JsonEnum { + + ProductSearchAttributeType BOOLEAN = ProductSearchAttributeTypeEnum.BOOLEAN; + + ProductSearchAttributeType TEXT = ProductSearchAttributeTypeEnum.TEXT; + + ProductSearchAttributeType LTEXT = ProductSearchAttributeTypeEnum.LTEXT; + + ProductSearchAttributeType ENUM = ProductSearchAttributeTypeEnum.ENUM; + + ProductSearchAttributeType LENUM = ProductSearchAttributeTypeEnum.LENUM; + + ProductSearchAttributeType NUMBER = ProductSearchAttributeTypeEnum.NUMBER; + + ProductSearchAttributeType MONEY = ProductSearchAttributeTypeEnum.MONEY; + + ProductSearchAttributeType DATE = ProductSearchAttributeTypeEnum.DATE; + + ProductSearchAttributeType DATETIME = ProductSearchAttributeTypeEnum.DATETIME; + + ProductSearchAttributeType TIME = ProductSearchAttributeTypeEnum.TIME; + + ProductSearchAttributeType REFERENCE = ProductSearchAttributeTypeEnum.REFERENCE; + + ProductSearchAttributeType SET_BOOLEAN = ProductSearchAttributeTypeEnum.SET_BOOLEAN; + + ProductSearchAttributeType SET_TEXT = ProductSearchAttributeTypeEnum.SET_TEXT; + + ProductSearchAttributeType SET_LTEXT = ProductSearchAttributeTypeEnum.SET_LTEXT; + + ProductSearchAttributeType SET_ENUM = ProductSearchAttributeTypeEnum.SET_ENUM; + + ProductSearchAttributeType SET_LENUM = ProductSearchAttributeTypeEnum.SET_LENUM; + + ProductSearchAttributeType SET_NUMBER = ProductSearchAttributeTypeEnum.SET_NUMBER; + + ProductSearchAttributeType SET_MONEY = ProductSearchAttributeTypeEnum.SET_MONEY; + + ProductSearchAttributeType SET_DATE = ProductSearchAttributeTypeEnum.SET_DATE; + + ProductSearchAttributeType SET_DATETIME = ProductSearchAttributeTypeEnum.SET_DATETIME; + + ProductSearchAttributeType SET_TIME = ProductSearchAttributeTypeEnum.SET_TIME; + + ProductSearchAttributeType SET_REFERENCE = ProductSearchAttributeTypeEnum.SET_REFERENCE; + + /** + * possible values of ProductSearchAttributeType + */ + enum ProductSearchAttributeTypeEnum implements ProductSearchAttributeType { + /** + * boolean + */ + BOOLEAN("boolean"), + + /** + * text + */ + TEXT("text"), + + /** + * ltext + */ + LTEXT("ltext"), + + /** + * enum + */ + ENUM("enum"), + + /** + * lenum + */ + LENUM("lenum"), + + /** + * number + */ + NUMBER("number"), + + /** + * money + */ + MONEY("money"), + + /** + * date + */ + DATE("date"), + + /** + * datetime + */ + DATETIME("datetime"), + + /** + * time + */ + TIME("time"), + + /** + * reference + */ + REFERENCE("reference"), + + /** + * set_boolean + */ + SET_BOOLEAN("set_boolean"), + + /** + * set_text + */ + SET_TEXT("set_text"), + + /** + * set_ltext + */ + SET_LTEXT("set_ltext"), + + /** + * set_enum + */ + SET_ENUM("set_enum"), + + /** + * set_lenum + */ + SET_LENUM("set_lenum"), + + /** + * set_number + */ + SET_NUMBER("set_number"), + + /** + * set_money + */ + SET_MONEY("set_money"), + + /** + * set_date + */ + SET_DATE("set_date"), + + /** + * set_datetime + */ + SET_DATETIME("set_datetime"), + + /** + * set_time + */ + SET_TIME("set_time"), + + /** + * set_reference + */ + SET_REFERENCE("set_reference"); + private final String jsonName; + + private ProductSearchAttributeTypeEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of ProductSearchAttributeType + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static ProductSearchAttributeType findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ProductSearchAttributeType() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static ProductSearchAttributeType[] values() { + return ProductSearchAttributeTypeEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpression.java new file mode 100644 index 00000000000..b26720ae71f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpression.java @@ -0,0 +1,118 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchCompoundExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

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

+ *     ProductSearchCompoundExpression productSearchCompoundExpression = ProductSearchCompoundExpression.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchCompoundExpressionBuilder implements Builder { + + /** + * builds ProductSearchCompoundExpression with checking for non-null required values + * @return ProductSearchCompoundExpression + */ + public ProductSearchCompoundExpression build() { + return new ProductSearchCompoundExpressionImpl(); + } + + /** + * builds ProductSearchCompoundExpression without checking for non-null required values + * @return ProductSearchCompoundExpression + */ + public ProductSearchCompoundExpression buildUnchecked() { + return new ProductSearchCompoundExpressionImpl(); + } + + /** + * factory method for an instance of ProductSearchCompoundExpressionBuilder + * @return builder + */ + public static ProductSearchCompoundExpressionBuilder of() { + return new ProductSearchCompoundExpressionBuilder(); + } + + /** + * create builder for ProductSearchCompoundExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchCompoundExpressionBuilder of(final ProductSearchCompoundExpression template) { + ProductSearchCompoundExpressionBuilder builder = new ProductSearchCompoundExpressionBuilder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpressionImpl.java new file mode 100644 index 00000000000..2aacad91f08 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpressionImpl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchCompoundExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchCompoundExpressionImpl implements ProductSearchCompoundExpression, ModelBase { + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchCompoundExpressionImpl() { + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchCompoundExpressionImpl that = (ProductSearchCompoundExpressionImpl) o; + + return new EqualsBuilder().isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpression.java new file mode 100644 index 00000000000..ec252c07315 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpression.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchDateRangeExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchDateRangeExpression productSearchDateRangeExpression = ProductSearchDateRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchDateRangeExpressionImpl.class) +public interface ProductSearchDateRangeExpression extends ProductSearchQueryExpression { + + /** + * + * @return range + */ + @NotNull + @Valid + @JsonProperty("range") + public ProductSearchDateRangeValue getRange(); + + /** + * set range + * @param range value to be set + */ + + public void setRange(final ProductSearchDateRangeValue range); + + /** + * factory method + * @return instance of ProductSearchDateRangeExpression + */ + public static ProductSearchDateRangeExpression of() { + return new ProductSearchDateRangeExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchDateRangeExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchDateRangeExpression of(final ProductSearchDateRangeExpression template) { + ProductSearchDateRangeExpressionImpl instance = new ProductSearchDateRangeExpressionImpl(); + instance.setRange(template.getRange()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchDateRangeExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchDateRangeExpression deepCopy(@Nullable final ProductSearchDateRangeExpression template) { + if (template == null) { + return null; + } + ProductSearchDateRangeExpressionImpl instance = new ProductSearchDateRangeExpressionImpl(); + instance.setRange( + com.commercetools.api.models.product_search.ProductSearchDateRangeValue.deepCopy(template.getRange())); + return instance; + } + + /** + * builder factory method for ProductSearchDateRangeExpression + * @return builder + */ + public static ProductSearchDateRangeExpressionBuilder builder() { + return ProductSearchDateRangeExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchDateRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchDateRangeExpressionBuilder builder(final ProductSearchDateRangeExpression template) { + return ProductSearchDateRangeExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchDateRangeExpression(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/product_search/ProductSearchDateRangeExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionBuilder.java new file mode 100644 index 00000000000..050f91d44bf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchDateRangeExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchDateRangeExpression productSearchDateRangeExpression = ProductSearchDateRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchDateRangeExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchDateRangeValue range; + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchDateRangeExpressionBuilder range( + Function builder) { + this.range = builder.apply(com.commercetools.api.models.product_search.ProductSearchDateRangeValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchDateRangeExpressionBuilder withRange( + Function builder) { + this.range = builder.apply(com.commercetools.api.models.product_search.ProductSearchDateRangeValueBuilder.of()); + return this; + } + + /** + * set the value to the range + * @param range value to be set + * @return Builder + */ + + public ProductSearchDateRangeExpressionBuilder range( + final com.commercetools.api.models.product_search.ProductSearchDateRangeValue range) { + this.range = range; + return this; + } + + /** + * value of range} + * @return range + */ + + public com.commercetools.api.models.product_search.ProductSearchDateRangeValue getRange() { + return this.range; + } + + /** + * builds ProductSearchDateRangeExpression with checking for non-null required values + * @return ProductSearchDateRangeExpression + */ + public ProductSearchDateRangeExpression build() { + Objects.requireNonNull(range, ProductSearchDateRangeExpression.class + ": range is missing"); + return new ProductSearchDateRangeExpressionImpl(range); + } + + /** + * builds ProductSearchDateRangeExpression without checking for non-null required values + * @return ProductSearchDateRangeExpression + */ + public ProductSearchDateRangeExpression buildUnchecked() { + return new ProductSearchDateRangeExpressionImpl(range); + } + + /** + * factory method for an instance of ProductSearchDateRangeExpressionBuilder + * @return builder + */ + public static ProductSearchDateRangeExpressionBuilder of() { + return new ProductSearchDateRangeExpressionBuilder(); + } + + /** + * create builder for ProductSearchDateRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchDateRangeExpressionBuilder of(final ProductSearchDateRangeExpression template) { + ProductSearchDateRangeExpressionBuilder builder = new ProductSearchDateRangeExpressionBuilder(); + builder.range = template.getRange(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionImpl.java new file mode 100644 index 00000000000..fd49d069072 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchDateRangeExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchDateRangeExpressionImpl implements ProductSearchDateRangeExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchDateRangeValue range; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchDateRangeExpressionImpl( + @JsonProperty("range") final com.commercetools.api.models.product_search.ProductSearchDateRangeValue range) { + this.range = range; + } + + /** + * create empty instance + */ + public ProductSearchDateRangeExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchDateRangeValue getRange() { + return this.range; + } + + public void setRange(final com.commercetools.api.models.product_search.ProductSearchDateRangeValue range) { + this.range = range; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchDateRangeExpressionImpl that = (ProductSearchDateRangeExpressionImpl) o; + + return new EqualsBuilder().append(range, that.range).append(range, that.range).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(range).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("range", range).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValue.java new file mode 100644 index 00000000000..a3b562d4822 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValue.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.time.LocalDate; +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; + +/** + * ProductSearchDateRangeValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchDateRangeValue productSearchDateRangeValue = ProductSearchDateRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchDateRangeValueImpl.class) +public interface ProductSearchDateRangeValue extends ProductSearchQueryExpressionValue { + + /** + * + * @return gte + */ + + @JsonProperty("gte") + public LocalDate getGte(); + + /** + * + * @return gt + */ + + @JsonProperty("gt") + public LocalDate getGt(); + + /** + * + * @return lte + */ + + @JsonProperty("lte") + public LocalDate getLte(); + + /** + * + * @return lt + */ + + @JsonProperty("lt") + public LocalDate getLt(); + + /** + * set gte + * @param gte value to be set + */ + + public void setGte(final LocalDate gte); + + /** + * set gt + * @param gt value to be set + */ + + public void setGt(final LocalDate gt); + + /** + * set lte + * @param lte value to be set + */ + + public void setLte(final LocalDate lte); + + /** + * set lt + * @param lt value to be set + */ + + public void setLt(final LocalDate lt); + + /** + * factory method + * @return instance of ProductSearchDateRangeValue + */ + public static ProductSearchDateRangeValue of() { + return new ProductSearchDateRangeValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchDateRangeValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchDateRangeValue of(final ProductSearchDateRangeValue template) { + ProductSearchDateRangeValueImpl instance = new ProductSearchDateRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchDateRangeValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchDateRangeValue deepCopy(@Nullable final ProductSearchDateRangeValue template) { + if (template == null) { + return null; + } + ProductSearchDateRangeValueImpl instance = new ProductSearchDateRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * builder factory method for ProductSearchDateRangeValue + * @return builder + */ + public static ProductSearchDateRangeValueBuilder builder() { + return ProductSearchDateRangeValueBuilder.of(); + } + + /** + * create builder for ProductSearchDateRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchDateRangeValueBuilder builder(final ProductSearchDateRangeValue template) { + return ProductSearchDateRangeValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchDateRangeValue(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/product_search/ProductSearchDateRangeValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueBuilder.java new file mode 100644 index 00000000000..68eb6d1a4ec --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueBuilder.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchDateRangeValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchDateRangeValue productSearchDateRangeValue = ProductSearchDateRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchDateRangeValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + @Nullable + private java.time.LocalDate gte; + + @Nullable + private java.time.LocalDate gt; + + @Nullable + private java.time.LocalDate lte; + + @Nullable + private java.time.LocalDate lt; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchDateRangeValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public ProductSearchDateRangeValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchDateRangeValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * set the value to the gte + * @param gte value to be set + * @return Builder + */ + + public ProductSearchDateRangeValueBuilder gte(@Nullable final java.time.LocalDate gte) { + this.gte = gte; + return this; + } + + /** + * set the value to the gt + * @param gt value to be set + * @return Builder + */ + + public ProductSearchDateRangeValueBuilder gt(@Nullable final java.time.LocalDate gt) { + this.gt = gt; + return this; + } + + /** + * set the value to the lte + * @param lte value to be set + * @return Builder + */ + + public ProductSearchDateRangeValueBuilder lte(@Nullable final java.time.LocalDate lte) { + this.lte = lte; + return this; + } + + /** + * set the value to the lt + * @param lt value to be set + * @return Builder + */ + + public ProductSearchDateRangeValueBuilder lt(@Nullable final java.time.LocalDate lt) { + this.lt = lt; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * value of gte} + * @return gte + */ + + @Nullable + public java.time.LocalDate getGte() { + return this.gte; + } + + /** + * value of gt} + * @return gt + */ + + @Nullable + public java.time.LocalDate getGt() { + return this.gt; + } + + /** + * value of lte} + * @return lte + */ + + @Nullable + public java.time.LocalDate getLte() { + return this.lte; + } + + /** + * value of lt} + * @return lt + */ + + @Nullable + public java.time.LocalDate getLt() { + return this.lt; + } + + /** + * builds ProductSearchDateRangeValue with checking for non-null required values + * @return ProductSearchDateRangeValue + */ + public ProductSearchDateRangeValue build() { + Objects.requireNonNull(field, ProductSearchDateRangeValue.class + ": field is missing"); + return new ProductSearchDateRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * builds ProductSearchDateRangeValue without checking for non-null required values + * @return ProductSearchDateRangeValue + */ + public ProductSearchDateRangeValue buildUnchecked() { + return new ProductSearchDateRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * factory method for an instance of ProductSearchDateRangeValueBuilder + * @return builder + */ + public static ProductSearchDateRangeValueBuilder of() { + return new ProductSearchDateRangeValueBuilder(); + } + + /** + * create builder for ProductSearchDateRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchDateRangeValueBuilder of(final ProductSearchDateRangeValue template) { + ProductSearchDateRangeValueBuilder builder = new ProductSearchDateRangeValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.attributeType = template.getAttributeType(); + builder.gte = template.getGte(); + builder.gt = template.getGt(); + builder.lte = template.getLte(); + builder.lt = template.getLt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueImpl.java new file mode 100644 index 00000000000..35718ed90c3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueImpl.java @@ -0,0 +1,199 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchDateRangeValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchDateRangeValueImpl implements ProductSearchDateRangeValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private java.time.LocalDate gte; + + private java.time.LocalDate gt; + + private java.time.LocalDate lte; + + private java.time.LocalDate lt; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchDateRangeValueImpl(@JsonProperty("field") final String field, + @JsonProperty("boost") final Double boost, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("gte") final java.time.LocalDate gte, @JsonProperty("gt") final java.time.LocalDate gt, + @JsonProperty("lte") final java.time.LocalDate lte, @JsonProperty("lt") final java.time.LocalDate lt) { + this.field = field; + this.boost = boost; + this.attributeType = attributeType; + this.gte = gte; + this.gt = gt; + this.lte = lte; + this.lt = lt; + } + + /** + * create empty instance + */ + public ProductSearchDateRangeValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * + */ + + public java.time.LocalDate getGte() { + return this.gte; + } + + /** + * + */ + + public java.time.LocalDate getGt() { + return this.gt; + } + + /** + * + */ + + public java.time.LocalDate getLte() { + return this.lte; + } + + /** + * + */ + + public java.time.LocalDate getLt() { + return this.lt; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setGte(final java.time.LocalDate gte) { + this.gte = gte; + } + + public void setGt(final java.time.LocalDate gt) { + this.gt = gt; + } + + public void setLte(final java.time.LocalDate lte) { + this.lte = lte; + } + + public void setLt(final java.time.LocalDate lt) { + this.lt = lt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchDateRangeValueImpl that = (ProductSearchDateRangeValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(boost) + .append(attributeType) + .append(gte) + .append(gt) + .append(lte) + .append(lt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("attributeType", attributeType) + .append("gte", gte) + .append("gt", gt) + .append("lte", lte) + .append("lt", lt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpression.java new file mode 100644 index 00000000000..36ed733cf55 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpression.java @@ -0,0 +1,126 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchDateTimeRangeExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchDateTimeRangeExpression productSearchDateTimeRangeExpression = ProductSearchDateTimeRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchDateTimeRangeExpressionImpl.class) +public interface ProductSearchDateTimeRangeExpression extends ProductSearchQueryExpression { + + /** + * + * @return range + */ + @NotNull + @Valid + @JsonProperty("range") + public ProductSearchDateTimeRangeValue getRange(); + + /** + * set range + * @param range value to be set + */ + + public void setRange(final ProductSearchDateTimeRangeValue range); + + /** + * factory method + * @return instance of ProductSearchDateTimeRangeExpression + */ + public static ProductSearchDateTimeRangeExpression of() { + return new ProductSearchDateTimeRangeExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchDateTimeRangeExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchDateTimeRangeExpression of(final ProductSearchDateTimeRangeExpression template) { + ProductSearchDateTimeRangeExpressionImpl instance = new ProductSearchDateTimeRangeExpressionImpl(); + instance.setRange(template.getRange()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchDateTimeRangeExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchDateTimeRangeExpression deepCopy( + @Nullable final ProductSearchDateTimeRangeExpression template) { + if (template == null) { + return null; + } + ProductSearchDateTimeRangeExpressionImpl instance = new ProductSearchDateTimeRangeExpressionImpl(); + instance.setRange( + com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue.deepCopy(template.getRange())); + return instance; + } + + /** + * builder factory method for ProductSearchDateTimeRangeExpression + * @return builder + */ + public static ProductSearchDateTimeRangeExpressionBuilder builder() { + return ProductSearchDateTimeRangeExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchDateTimeRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchDateTimeRangeExpressionBuilder builder( + final ProductSearchDateTimeRangeExpression template) { + return ProductSearchDateTimeRangeExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchDateTimeRangeExpression(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/product_search/ProductSearchDateTimeRangeExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionBuilder.java new file mode 100644 index 00000000000..37827232eed --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionBuilder.java @@ -0,0 +1,111 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchDateTimeRangeExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchDateTimeRangeExpression productSearchDateTimeRangeExpression = ProductSearchDateTimeRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchDateTimeRangeExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue range; + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchDateTimeRangeExpressionBuilder range( + Function builder) { + this.range = builder + .apply(com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchDateTimeRangeExpressionBuilder withRange( + Function builder) { + this.range = builder + .apply(com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValueBuilder.of()); + return this; + } + + /** + * set the value to the range + * @param range value to be set + * @return Builder + */ + + public ProductSearchDateTimeRangeExpressionBuilder range( + final com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue range) { + this.range = range; + return this; + } + + /** + * value of range} + * @return range + */ + + public com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue getRange() { + return this.range; + } + + /** + * builds ProductSearchDateTimeRangeExpression with checking for non-null required values + * @return ProductSearchDateTimeRangeExpression + */ + public ProductSearchDateTimeRangeExpression build() { + Objects.requireNonNull(range, ProductSearchDateTimeRangeExpression.class + ": range is missing"); + return new ProductSearchDateTimeRangeExpressionImpl(range); + } + + /** + * builds ProductSearchDateTimeRangeExpression without checking for non-null required values + * @return ProductSearchDateTimeRangeExpression + */ + public ProductSearchDateTimeRangeExpression buildUnchecked() { + return new ProductSearchDateTimeRangeExpressionImpl(range); + } + + /** + * factory method for an instance of ProductSearchDateTimeRangeExpressionBuilder + * @return builder + */ + public static ProductSearchDateTimeRangeExpressionBuilder of() { + return new ProductSearchDateTimeRangeExpressionBuilder(); + } + + /** + * create builder for ProductSearchDateTimeRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchDateTimeRangeExpressionBuilder of(final ProductSearchDateTimeRangeExpression template) { + ProductSearchDateTimeRangeExpressionBuilder builder = new ProductSearchDateTimeRangeExpressionBuilder(); + builder.range = template.getRange(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionImpl.java new file mode 100644 index 00000000000..ec851b6c4d0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchDateTimeRangeExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchDateTimeRangeExpressionImpl implements ProductSearchDateTimeRangeExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue range; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchDateTimeRangeExpressionImpl( + @JsonProperty("range") final com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue range) { + this.range = range; + } + + /** + * create empty instance + */ + public ProductSearchDateTimeRangeExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue getRange() { + return this.range; + } + + public void setRange(final com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue range) { + this.range = range; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchDateTimeRangeExpressionImpl that = (ProductSearchDateTimeRangeExpressionImpl) o; + + return new EqualsBuilder().append(range, that.range).append(range, that.range).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(range).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("range", range).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValue.java new file mode 100644 index 00000000000..a12425d2f47 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValue.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.time.ZonedDateTime; +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; + +/** + * ProductSearchDateTimeRangeValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchDateTimeRangeValue productSearchDateTimeRangeValue = ProductSearchDateTimeRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchDateTimeRangeValueImpl.class) +public interface ProductSearchDateTimeRangeValue extends ProductSearchQueryExpressionValue { + + /** + * + * @return gte + */ + + @JsonProperty("gte") + public ZonedDateTime getGte(); + + /** + * + * @return gt + */ + + @JsonProperty("gt") + public ZonedDateTime getGt(); + + /** + * + * @return lte + */ + + @JsonProperty("lte") + public ZonedDateTime getLte(); + + /** + * + * @return lt + */ + + @JsonProperty("lt") + public ZonedDateTime getLt(); + + /** + * set gte + * @param gte value to be set + */ + + public void setGte(final ZonedDateTime gte); + + /** + * set gt + * @param gt value to be set + */ + + public void setGt(final ZonedDateTime gt); + + /** + * set lte + * @param lte value to be set + */ + + public void setLte(final ZonedDateTime lte); + + /** + * set lt + * @param lt value to be set + */ + + public void setLt(final ZonedDateTime lt); + + /** + * factory method + * @return instance of ProductSearchDateTimeRangeValue + */ + public static ProductSearchDateTimeRangeValue of() { + return new ProductSearchDateTimeRangeValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchDateTimeRangeValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchDateTimeRangeValue of(final ProductSearchDateTimeRangeValue template) { + ProductSearchDateTimeRangeValueImpl instance = new ProductSearchDateTimeRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchDateTimeRangeValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchDateTimeRangeValue deepCopy(@Nullable final ProductSearchDateTimeRangeValue template) { + if (template == null) { + return null; + } + ProductSearchDateTimeRangeValueImpl instance = new ProductSearchDateTimeRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * builder factory method for ProductSearchDateTimeRangeValue + * @return builder + */ + public static ProductSearchDateTimeRangeValueBuilder builder() { + return ProductSearchDateTimeRangeValueBuilder.of(); + } + + /** + * create builder for ProductSearchDateTimeRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchDateTimeRangeValueBuilder builder(final ProductSearchDateTimeRangeValue template) { + return ProductSearchDateTimeRangeValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchDateTimeRangeValue(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/product_search/ProductSearchDateTimeRangeValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueBuilder.java new file mode 100644 index 00000000000..c475500c569 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueBuilder.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchDateTimeRangeValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchDateTimeRangeValue productSearchDateTimeRangeValue = ProductSearchDateTimeRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchDateTimeRangeValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + @Nullable + private java.time.ZonedDateTime gte; + + @Nullable + private java.time.ZonedDateTime gt; + + @Nullable + private java.time.ZonedDateTime lte; + + @Nullable + private java.time.ZonedDateTime lt; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchDateTimeRangeValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public ProductSearchDateTimeRangeValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchDateTimeRangeValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * set the value to the gte + * @param gte value to be set + * @return Builder + */ + + public ProductSearchDateTimeRangeValueBuilder gte(@Nullable final java.time.ZonedDateTime gte) { + this.gte = gte; + return this; + } + + /** + * set the value to the gt + * @param gt value to be set + * @return Builder + */ + + public ProductSearchDateTimeRangeValueBuilder gt(@Nullable final java.time.ZonedDateTime gt) { + this.gt = gt; + return this; + } + + /** + * set the value to the lte + * @param lte value to be set + * @return Builder + */ + + public ProductSearchDateTimeRangeValueBuilder lte(@Nullable final java.time.ZonedDateTime lte) { + this.lte = lte; + return this; + } + + /** + * set the value to the lt + * @param lt value to be set + * @return Builder + */ + + public ProductSearchDateTimeRangeValueBuilder lt(@Nullable final java.time.ZonedDateTime lt) { + this.lt = lt; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * value of gte} + * @return gte + */ + + @Nullable + public java.time.ZonedDateTime getGte() { + return this.gte; + } + + /** + * value of gt} + * @return gt + */ + + @Nullable + public java.time.ZonedDateTime getGt() { + return this.gt; + } + + /** + * value of lte} + * @return lte + */ + + @Nullable + public java.time.ZonedDateTime getLte() { + return this.lte; + } + + /** + * value of lt} + * @return lt + */ + + @Nullable + public java.time.ZonedDateTime getLt() { + return this.lt; + } + + /** + * builds ProductSearchDateTimeRangeValue with checking for non-null required values + * @return ProductSearchDateTimeRangeValue + */ + public ProductSearchDateTimeRangeValue build() { + Objects.requireNonNull(field, ProductSearchDateTimeRangeValue.class + ": field is missing"); + return new ProductSearchDateTimeRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * builds ProductSearchDateTimeRangeValue without checking for non-null required values + * @return ProductSearchDateTimeRangeValue + */ + public ProductSearchDateTimeRangeValue buildUnchecked() { + return new ProductSearchDateTimeRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * factory method for an instance of ProductSearchDateTimeRangeValueBuilder + * @return builder + */ + public static ProductSearchDateTimeRangeValueBuilder of() { + return new ProductSearchDateTimeRangeValueBuilder(); + } + + /** + * create builder for ProductSearchDateTimeRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchDateTimeRangeValueBuilder of(final ProductSearchDateTimeRangeValue template) { + ProductSearchDateTimeRangeValueBuilder builder = new ProductSearchDateTimeRangeValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.attributeType = template.getAttributeType(); + builder.gte = template.getGte(); + builder.gt = template.getGt(); + builder.lte = template.getLte(); + builder.lt = template.getLt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueImpl.java new file mode 100644 index 00000000000..41183e6e2fb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueImpl.java @@ -0,0 +1,201 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchDateTimeRangeValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchDateTimeRangeValueImpl implements ProductSearchDateTimeRangeValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private java.time.ZonedDateTime gte; + + private java.time.ZonedDateTime gt; + + private java.time.ZonedDateTime lte; + + private java.time.ZonedDateTime lt; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchDateTimeRangeValueImpl(@JsonProperty("field") final String field, + @JsonProperty("boost") final Double boost, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("gte") final java.time.ZonedDateTime gte, + @JsonProperty("gt") final java.time.ZonedDateTime gt, + @JsonProperty("lte") final java.time.ZonedDateTime lte, + @JsonProperty("lt") final java.time.ZonedDateTime lt) { + this.field = field; + this.boost = boost; + this.attributeType = attributeType; + this.gte = gte; + this.gt = gt; + this.lte = lte; + this.lt = lt; + } + + /** + * create empty instance + */ + public ProductSearchDateTimeRangeValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * + */ + + public java.time.ZonedDateTime getGte() { + return this.gte; + } + + /** + * + */ + + public java.time.ZonedDateTime getGt() { + return this.gt; + } + + /** + * + */ + + public java.time.ZonedDateTime getLte() { + return this.lte; + } + + /** + * + */ + + public java.time.ZonedDateTime getLt() { + return this.lt; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setGte(final java.time.ZonedDateTime gte) { + this.gte = gte; + } + + public void setGt(final java.time.ZonedDateTime gt) { + this.gt = gt; + } + + public void setLte(final java.time.ZonedDateTime lte) { + this.lte = lte; + } + + public void setLt(final java.time.ZonedDateTime lt) { + this.lt = lt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchDateTimeRangeValueImpl that = (ProductSearchDateTimeRangeValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(boost) + .append(attributeType) + .append(gte) + .append(gt) + .append(lte) + .append(lt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("attributeType", attributeType) + .append("gte", gte) + .append("gt", gt) + .append("lte", lte) + .append("lt", lt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponse.java new file mode 100644 index 00000000000..35df04370bf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponse.java @@ -0,0 +1,172 @@ + +package com.commercetools.api.models.product_search; + +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.error.ErrorObject; +import com.commercetools.api.models.error.ErrorResponse; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchErrorResponse + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchErrorResponse productSearchErrorResponse = ProductSearchErrorResponse.builder()
+ *             .statusCode(1)
+ *             .message("{message}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchErrorResponseImpl.class) +public interface ProductSearchErrorResponse extends ErrorResponse { + + /** + *

The http status code of the response.

+ * @return statusCode + */ + @NotNull + @JsonProperty("statusCode") + public Integer getStatusCode(); + + /** + *

Describes the error.

+ * @return message + */ + @NotNull + @JsonProperty("message") + public String getMessage(); + + /** + *

The errors that caused this error response.

+ * @return errors + */ + @Valid + @JsonProperty("errors") + public List getErrors(); + + /** + *

The http status code of the response.

+ * @param statusCode value to be set + */ + + public void setStatusCode(final Integer statusCode); + + /** + *

Describes the error.

+ * @param message value to be set + */ + + public void setMessage(final String message); + + /** + *

The errors that caused this error response.

+ * @param errors values to be set + */ + + @JsonIgnore + public void setErrors(final ErrorObject... errors); + + /** + *

The errors that caused this error response.

+ * @param errors values to be set + */ + + public void setErrors(final List errors); + + /** + * factory method + * @return instance of ProductSearchErrorResponse + */ + public static ProductSearchErrorResponse of() { + return new ProductSearchErrorResponseImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchErrorResponse + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchErrorResponse of(final ProductSearchErrorResponse template) { + ProductSearchErrorResponseImpl instance = new ProductSearchErrorResponseImpl(); + instance.setStatusCode(template.getStatusCode()); + instance.setMessage(template.getMessage()); + instance.setErrors(template.getErrors()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchErrorResponse + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchErrorResponse deepCopy(@Nullable final ProductSearchErrorResponse template) { + if (template == null) { + return null; + } + ProductSearchErrorResponseImpl instance = new ProductSearchErrorResponseImpl(); + instance.setStatusCode(template.getStatusCode()); + instance.setMessage(template.getMessage()); + instance.setErrors(Optional.ofNullable(template.getErrors()) + .map(t -> t.stream() + .map(com.commercetools.api.models.error.ErrorObject::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductSearchErrorResponse + * @return builder + */ + public static ProductSearchErrorResponseBuilder builder() { + return ProductSearchErrorResponseBuilder.of(); + } + + /** + * create builder for ProductSearchErrorResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchErrorResponseBuilder builder(final ProductSearchErrorResponse template) { + return ProductSearchErrorResponseBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchErrorResponse(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/product_search/ProductSearchErrorResponseBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseBuilder.java new file mode 100644 index 00000000000..09259e124cf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseBuilder.java @@ -0,0 +1,191 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchErrorResponseBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchErrorResponse productSearchErrorResponse = ProductSearchErrorResponse.builder()
+ *             .statusCode(1)
+ *             .message("{message}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchErrorResponseBuilder implements Builder { + + private Integer statusCode; + + private String message; + + @Nullable + private java.util.List errors; + + /** + *

The http status code of the response.

+ * @param statusCode value to be set + * @return Builder + */ + + public ProductSearchErrorResponseBuilder statusCode(final Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + *

Describes the error.

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

The errors that caused this error response.

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

The errors that caused this error response.

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

The errors that caused this error response.

+ * @param errors value to be set + * @return Builder + */ + + public ProductSearchErrorResponseBuilder plusErrors( + @Nullable final com.commercetools.api.models.error.ErrorObject... errors) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.addAll(Arrays.asList(errors)); + return this; + } + + /** + *

The errors that caused this error response.

+ * @param builder function to build the errors value + * @return Builder + */ + + public ProductSearchErrorResponseBuilder plusErrors( + Function> builder) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(builder.apply(com.commercetools.api.models.error.ErrorObjectBuilder.of()).build()); + return this; + } + + /** + *

The errors that caused this error response.

+ * @param builder function to build the errors value + * @return Builder + */ + + public ProductSearchErrorResponseBuilder withErrors( + Function> builder) { + this.errors = new ArrayList<>(); + this.errors.add(builder.apply(com.commercetools.api.models.error.ErrorObjectBuilder.of()).build()); + return this; + } + + /** + *

The http status code of the response.

+ * @return statusCode + */ + + public Integer getStatusCode() { + return this.statusCode; + } + + /** + *

Describes the error.

+ * @return message + */ + + public String getMessage() { + return this.message; + } + + /** + *

The errors that caused this error response.

+ * @return errors + */ + + @Nullable + public java.util.List getErrors() { + return this.errors; + } + + /** + * builds ProductSearchErrorResponse with checking for non-null required values + * @return ProductSearchErrorResponse + */ + public ProductSearchErrorResponse build() { + Objects.requireNonNull(statusCode, ProductSearchErrorResponse.class + ": statusCode is missing"); + Objects.requireNonNull(message, ProductSearchErrorResponse.class + ": message is missing"); + return new ProductSearchErrorResponseImpl(statusCode, message, errors); + } + + /** + * builds ProductSearchErrorResponse without checking for non-null required values + * @return ProductSearchErrorResponse + */ + public ProductSearchErrorResponse buildUnchecked() { + return new ProductSearchErrorResponseImpl(statusCode, message, errors); + } + + /** + * factory method for an instance of ProductSearchErrorResponseBuilder + * @return builder + */ + public static ProductSearchErrorResponseBuilder of() { + return new ProductSearchErrorResponseBuilder(); + } + + /** + * create builder for ProductSearchErrorResponse instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchErrorResponseBuilder of(final ProductSearchErrorResponse template) { + ProductSearchErrorResponseBuilder builder = new ProductSearchErrorResponseBuilder(); + builder.statusCode = template.getStatusCode(); + builder.message = template.getMessage(); + builder.errors = template.getErrors(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseImpl.java new file mode 100644 index 00000000000..5b63985b9c3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseImpl.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchErrorResponse + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchErrorResponseImpl implements ProductSearchErrorResponse, ModelBase { + + private Integer statusCode; + + private String message; + + private java.util.List errors; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchErrorResponseImpl(@JsonProperty("statusCode") final Integer statusCode, + @JsonProperty("message") final String message, + @JsonProperty("errors") final java.util.List errors) { + this.statusCode = statusCode; + this.message = message; + this.errors = errors; + } + + /** + * create empty instance + */ + public ProductSearchErrorResponseImpl() { + } + + /** + *

The http status code of the response.

+ */ + + public Integer getStatusCode() { + return this.statusCode; + } + + /** + *

Describes the error.

+ */ + + public String getMessage() { + return this.message; + } + + /** + *

The errors that caused this error response.

+ */ + + public java.util.List getErrors() { + return this.errors; + } + + public void setStatusCode(final Integer statusCode) { + this.statusCode = statusCode; + } + + public void setMessage(final String message) { + this.message = message; + } + + public void setErrors(final com.commercetools.api.models.error.ErrorObject... errors) { + this.errors = new ArrayList<>(Arrays.asList(errors)); + } + + public void setErrors(final java.util.List errors) { + this.errors = errors; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchErrorResponseImpl that = (ProductSearchErrorResponseImpl) o; + + return new EqualsBuilder().append(statusCode, that.statusCode) + .append(message, that.message) + .append(errors, that.errors) + .append(statusCode, that.statusCode) + .append(message, that.message) + .append(errors, that.errors) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(statusCode).append(message).append(errors).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("statusCode", statusCode) + .append("message", message) + .append("errors", errors) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpression.java new file mode 100644 index 00000000000..88964009757 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpression.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchExactExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchExactExpression productSearchExactExpression = ProductSearchExactExpression.builder()
+ *             .exact(exactBuilder -> exactBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchExactExpressionImpl.class) +public interface ProductSearchExactExpression extends ProductSearchQueryExpression { + + /** + * + * @return exact + */ + @NotNull + @Valid + @JsonProperty("exact") + public ProductSearchAnyValue getExact(); + + /** + * set exact + * @param exact value to be set + */ + + public void setExact(final ProductSearchAnyValue exact); + + /** + * factory method + * @return instance of ProductSearchExactExpression + */ + public static ProductSearchExactExpression of() { + return new ProductSearchExactExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchExactExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchExactExpression of(final ProductSearchExactExpression template) { + ProductSearchExactExpressionImpl instance = new ProductSearchExactExpressionImpl(); + instance.setExact(template.getExact()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchExactExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchExactExpression deepCopy(@Nullable final ProductSearchExactExpression template) { + if (template == null) { + return null; + } + ProductSearchExactExpressionImpl instance = new ProductSearchExactExpressionImpl(); + instance.setExact( + com.commercetools.api.models.product_search.ProductSearchAnyValue.deepCopy(template.getExact())); + return instance; + } + + /** + * builder factory method for ProductSearchExactExpression + * @return builder + */ + public static ProductSearchExactExpressionBuilder builder() { + return ProductSearchExactExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchExactExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchExactExpressionBuilder builder(final ProductSearchExactExpression template) { + return ProductSearchExactExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchExactExpression(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/product_search/ProductSearchExactExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionBuilder.java new file mode 100644 index 00000000000..ef71694a0c9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchExactExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchExactExpression productSearchExactExpression = ProductSearchExactExpression.builder()
+ *             .exact(exactBuilder -> exactBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchExactExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchAnyValue exact; + + /** + * set the value to the exact using the builder function + * @param builder function to build the exact value + * @return Builder + */ + + public ProductSearchExactExpressionBuilder exact( + Function builder) { + this.exact = builder.apply(com.commercetools.api.models.product_search.ProductSearchAnyValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the exact using the builder function + * @param builder function to build the exact value + * @return Builder + */ + + public ProductSearchExactExpressionBuilder withExact( + Function builder) { + this.exact = builder.apply(com.commercetools.api.models.product_search.ProductSearchAnyValueBuilder.of()); + return this; + } + + /** + * set the value to the exact + * @param exact value to be set + * @return Builder + */ + + public ProductSearchExactExpressionBuilder exact( + final com.commercetools.api.models.product_search.ProductSearchAnyValue exact) { + this.exact = exact; + return this; + } + + /** + * value of exact} + * @return exact + */ + + public com.commercetools.api.models.product_search.ProductSearchAnyValue getExact() { + return this.exact; + } + + /** + * builds ProductSearchExactExpression with checking for non-null required values + * @return ProductSearchExactExpression + */ + public ProductSearchExactExpression build() { + Objects.requireNonNull(exact, ProductSearchExactExpression.class + ": exact is missing"); + return new ProductSearchExactExpressionImpl(exact); + } + + /** + * builds ProductSearchExactExpression without checking for non-null required values + * @return ProductSearchExactExpression + */ + public ProductSearchExactExpression buildUnchecked() { + return new ProductSearchExactExpressionImpl(exact); + } + + /** + * factory method for an instance of ProductSearchExactExpressionBuilder + * @return builder + */ + public static ProductSearchExactExpressionBuilder of() { + return new ProductSearchExactExpressionBuilder(); + } + + /** + * create builder for ProductSearchExactExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchExactExpressionBuilder of(final ProductSearchExactExpression template) { + ProductSearchExactExpressionBuilder builder = new ProductSearchExactExpressionBuilder(); + builder.exact = template.getExact(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionImpl.java new file mode 100644 index 00000000000..02fabdad73d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchExactExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchExactExpressionImpl implements ProductSearchExactExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchAnyValue exact; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchExactExpressionImpl( + @JsonProperty("exact") final com.commercetools.api.models.product_search.ProductSearchAnyValue exact) { + this.exact = exact; + } + + /** + * create empty instance + */ + public ProductSearchExactExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAnyValue getExact() { + return this.exact; + } + + public void setExact(final com.commercetools.api.models.product_search.ProductSearchAnyValue exact) { + this.exact = exact; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchExactExpressionImpl that = (ProductSearchExactExpressionImpl) o; + + return new EqualsBuilder().append(exact, that.exact).append(exact, that.exact).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(exact).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("exact", exact).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpression.java new file mode 100644 index 00000000000..2d9c737b1cf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpression.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchExistsExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchExistsExpression productSearchExistsExpression = ProductSearchExistsExpression.builder()
+ *             .exists(existsBuilder -> existsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchExistsExpressionImpl.class) +public interface ProductSearchExistsExpression extends ProductSearchQueryExpression { + + /** + * + * @return exists + */ + @NotNull + @Valid + @JsonProperty("exists") + public ProductSearchExistsValue getExists(); + + /** + * set exists + * @param exists value to be set + */ + + public void setExists(final ProductSearchExistsValue exists); + + /** + * factory method + * @return instance of ProductSearchExistsExpression + */ + public static ProductSearchExistsExpression of() { + return new ProductSearchExistsExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchExistsExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchExistsExpression of(final ProductSearchExistsExpression template) { + ProductSearchExistsExpressionImpl instance = new ProductSearchExistsExpressionImpl(); + instance.setExists(template.getExists()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchExistsExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchExistsExpression deepCopy(@Nullable final ProductSearchExistsExpression template) { + if (template == null) { + return null; + } + ProductSearchExistsExpressionImpl instance = new ProductSearchExistsExpressionImpl(); + instance.setExists( + com.commercetools.api.models.product_search.ProductSearchExistsValue.deepCopy(template.getExists())); + return instance; + } + + /** + * builder factory method for ProductSearchExistsExpression + * @return builder + */ + public static ProductSearchExistsExpressionBuilder builder() { + return ProductSearchExistsExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchExistsExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchExistsExpressionBuilder builder(final ProductSearchExistsExpression template) { + return ProductSearchExistsExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchExistsExpression(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/product_search/ProductSearchExistsExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionBuilder.java new file mode 100644 index 00000000000..a2588d2c050 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchExistsExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchExistsExpression productSearchExistsExpression = ProductSearchExistsExpression.builder()
+ *             .exists(existsBuilder -> existsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchExistsExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchExistsValue exists; + + /** + * set the value to the exists using the builder function + * @param builder function to build the exists value + * @return Builder + */ + + public ProductSearchExistsExpressionBuilder exists( + Function builder) { + this.exists = builder.apply(com.commercetools.api.models.product_search.ProductSearchExistsValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the exists using the builder function + * @param builder function to build the exists value + * @return Builder + */ + + public ProductSearchExistsExpressionBuilder withExists( + Function builder) { + this.exists = builder.apply(com.commercetools.api.models.product_search.ProductSearchExistsValueBuilder.of()); + return this; + } + + /** + * set the value to the exists + * @param exists value to be set + * @return Builder + */ + + public ProductSearchExistsExpressionBuilder exists( + final com.commercetools.api.models.product_search.ProductSearchExistsValue exists) { + this.exists = exists; + return this; + } + + /** + * value of exists} + * @return exists + */ + + public com.commercetools.api.models.product_search.ProductSearchExistsValue getExists() { + return this.exists; + } + + /** + * builds ProductSearchExistsExpression with checking for non-null required values + * @return ProductSearchExistsExpression + */ + public ProductSearchExistsExpression build() { + Objects.requireNonNull(exists, ProductSearchExistsExpression.class + ": exists is missing"); + return new ProductSearchExistsExpressionImpl(exists); + } + + /** + * builds ProductSearchExistsExpression without checking for non-null required values + * @return ProductSearchExistsExpression + */ + public ProductSearchExistsExpression buildUnchecked() { + return new ProductSearchExistsExpressionImpl(exists); + } + + /** + * factory method for an instance of ProductSearchExistsExpressionBuilder + * @return builder + */ + public static ProductSearchExistsExpressionBuilder of() { + return new ProductSearchExistsExpressionBuilder(); + } + + /** + * create builder for ProductSearchExistsExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchExistsExpressionBuilder of(final ProductSearchExistsExpression template) { + ProductSearchExistsExpressionBuilder builder = new ProductSearchExistsExpressionBuilder(); + builder.exists = template.getExists(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionImpl.java new file mode 100644 index 00000000000..d0168963c41 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchExistsExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchExistsExpressionImpl implements ProductSearchExistsExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchExistsValue exists; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchExistsExpressionImpl( + @JsonProperty("exists") final com.commercetools.api.models.product_search.ProductSearchExistsValue exists) { + this.exists = exists; + } + + /** + * create empty instance + */ + public ProductSearchExistsExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchExistsValue getExists() { + return this.exists; + } + + public void setExists(final com.commercetools.api.models.product_search.ProductSearchExistsValue exists) { + this.exists = exists; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchExistsExpressionImpl that = (ProductSearchExistsExpressionImpl) o; + + return new EqualsBuilder().append(exists, that.exists).append(exists, that.exists).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(exists).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("exists", exists).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValue.java new file mode 100644 index 00000000000..8845d0ac909 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValue.java @@ -0,0 +1,126 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchExistsValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchExistsValue productSearchExistsValue = ProductSearchExistsValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchExistsValueImpl.class) +public interface ProductSearchExistsValue extends ProductSearchQueryExpressionValue { + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @JsonProperty("language") + public String getLanguage(); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + */ + + public void setLanguage(final String language); + + /** + * factory method + * @return instance of ProductSearchExistsValue + */ + public static ProductSearchExistsValue of() { + return new ProductSearchExistsValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchExistsValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchExistsValue of(final ProductSearchExistsValue template) { + ProductSearchExistsValueImpl instance = new ProductSearchExistsValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setLanguage(template.getLanguage()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchExistsValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchExistsValue deepCopy(@Nullable final ProductSearchExistsValue template) { + if (template == null) { + return null; + } + ProductSearchExistsValueImpl instance = new ProductSearchExistsValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setLanguage(template.getLanguage()); + return instance; + } + + /** + * builder factory method for ProductSearchExistsValue + * @return builder + */ + public static ProductSearchExistsValueBuilder builder() { + return ProductSearchExistsValueBuilder.of(); + } + + /** + * create builder for ProductSearchExistsValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchExistsValueBuilder builder(final ProductSearchExistsValue template) { + return ProductSearchExistsValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchExistsValue(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/product_search/ProductSearchExistsValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueBuilder.java new file mode 100644 index 00000000000..79280241aa8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueBuilder.java @@ -0,0 +1,160 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchExistsValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchExistsValue productSearchExistsValue = ProductSearchExistsValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchExistsValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + @Nullable + private String language; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchExistsValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public ProductSearchExistsValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchExistsValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + * @return Builder + */ + + public ProductSearchExistsValueBuilder language(@Nullable final String language) { + this.language = language; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @Nullable + public String getLanguage() { + return this.language; + } + + /** + * builds ProductSearchExistsValue with checking for non-null required values + * @return ProductSearchExistsValue + */ + public ProductSearchExistsValue build() { + Objects.requireNonNull(field, ProductSearchExistsValue.class + ": field is missing"); + return new ProductSearchExistsValueImpl(field, boost, attributeType, language); + } + + /** + * builds ProductSearchExistsValue without checking for non-null required values + * @return ProductSearchExistsValue + */ + public ProductSearchExistsValue buildUnchecked() { + return new ProductSearchExistsValueImpl(field, boost, attributeType, language); + } + + /** + * factory method for an instance of ProductSearchExistsValueBuilder + * @return builder + */ + public static ProductSearchExistsValueBuilder of() { + return new ProductSearchExistsValueBuilder(); + } + + /** + * create builder for ProductSearchExistsValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchExistsValueBuilder of(final ProductSearchExistsValue template) { + ProductSearchExistsValueBuilder builder = new ProductSearchExistsValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.attributeType = template.getAttributeType(); + builder.language = template.getLanguage(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueImpl.java new file mode 100644 index 00000000000..c67fb4ecf03 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchExistsValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchExistsValueImpl implements ProductSearchExistsValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private String language; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchExistsValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Double boost, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("language") final String language) { + this.field = field; + this.boost = boost; + this.attributeType = attributeType; + this.language = language; + } + + /** + * create empty instance + */ + public ProductSearchExistsValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ */ + + public String getLanguage() { + return this.language; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setLanguage(final String language) { + this.language = language; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchExistsValueImpl that = (ProductSearchExistsValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(language, that.language) + .append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(language, that.language) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(boost) + .append(attributeType) + .append(language) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("attributeType", attributeType) + .append("language", language) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResult.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResult.java new file mode 100644 index 00000000000..d038fc17727 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResult.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetBucketResult + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetBucketResult productSearchFacetBucketResult = ProductSearchFacetBucketResult.builder()
+ *             .name("{name}")
+ *             .plusBuckets(bucketsBuilder -> bucketsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetBucketResultImpl.class) +public interface ProductSearchFacetBucketResult extends ProductSearchFacetResultExpression { + + /** + *

Contains results of the facet.

+ * @return buckets + */ + @NotNull + @Valid + @JsonProperty("buckets") + public List getBuckets(); + + /** + *

Contains results of the facet.

+ * @param buckets values to be set + */ + + @JsonIgnore + public void setBuckets(final ProductSearchFacetResultBucket... buckets); + + /** + *

Contains results of the facet.

+ * @param buckets values to be set + */ + + public void setBuckets(final List buckets); + + /** + * factory method + * @return instance of ProductSearchFacetBucketResult + */ + public static ProductSearchFacetBucketResult of() { + return new ProductSearchFacetBucketResultImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetBucketResult + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetBucketResult of(final ProductSearchFacetBucketResult template) { + ProductSearchFacetBucketResultImpl instance = new ProductSearchFacetBucketResultImpl(); + instance.setName(template.getName()); + instance.setBuckets(template.getBuckets()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetBucketResult + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetBucketResult deepCopy(@Nullable final ProductSearchFacetBucketResult template) { + if (template == null) { + return null; + } + ProductSearchFacetBucketResultImpl instance = new ProductSearchFacetBucketResultImpl(); + instance.setName(template.getName()); + instance.setBuckets(Optional.ofNullable(template.getBuckets()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchFacetResultBucket::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductSearchFacetBucketResult + * @return builder + */ + public static ProductSearchFacetBucketResultBuilder builder() { + return ProductSearchFacetBucketResultBuilder.of(); + } + + /** + * create builder for ProductSearchFacetBucketResult instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetBucketResultBuilder builder(final ProductSearchFacetBucketResult template) { + return ProductSearchFacetBucketResultBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetBucketResult(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/product_search/ProductSearchFacetBucketResultBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultBuilder.java new file mode 100644 index 00000000000..49b0bed752d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultBuilder.java @@ -0,0 +1,192 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetBucketResultBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetBucketResult productSearchFacetBucketResult = ProductSearchFacetBucketResult.builder()
+ *             .name("{name}")
+ *             .plusBuckets(bucketsBuilder -> bucketsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetBucketResultBuilder implements Builder { + + private String name; + + private java.util.List buckets; + + /** + *

Name of the facet.

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

Contains results of the facet.

+ * @param buckets value to be set + * @return Builder + */ + + public ProductSearchFacetBucketResultBuilder buckets( + final com.commercetools.api.models.product_search.ProductSearchFacetResultBucket... buckets) { + this.buckets = new ArrayList<>(Arrays.asList(buckets)); + return this; + } + + /** + *

Contains results of the facet.

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

Contains results of the facet.

+ * @param buckets value to be set + * @return Builder + */ + + public ProductSearchFacetBucketResultBuilder plusBuckets( + final com.commercetools.api.models.product_search.ProductSearchFacetResultBucket... buckets) { + if (this.buckets == null) { + this.buckets = new ArrayList<>(); + } + this.buckets.addAll(Arrays.asList(buckets)); + return this; + } + + /** + *

Contains results of the facet.

+ * @param builder function to build the buckets value + * @return Builder + */ + + public ProductSearchFacetBucketResultBuilder plusBuckets( + Function builder) { + if (this.buckets == null) { + this.buckets = new ArrayList<>(); + } + this.buckets.add( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetResultBucketBuilder.of()) + .build()); + return this; + } + + /** + *

Contains results of the facet.

+ * @param builder function to build the buckets value + * @return Builder + */ + + public ProductSearchFacetBucketResultBuilder withBuckets( + Function builder) { + this.buckets = new ArrayList<>(); + this.buckets.add( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetResultBucketBuilder.of()) + .build()); + return this; + } + + /** + *

Contains results of the facet.

+ * @param builder function to build the buckets value + * @return Builder + */ + + public ProductSearchFacetBucketResultBuilder addBuckets( + Function builder) { + return plusBuckets( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetResultBucketBuilder.of())); + } + + /** + *

Contains results of the facet.

+ * @param builder function to build the buckets value + * @return Builder + */ + + public ProductSearchFacetBucketResultBuilder setBuckets( + Function builder) { + return buckets( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetResultBucketBuilder.of())); + } + + /** + *

Name of the facet.

+ * @return name + */ + + public String getName() { + return this.name; + } + + /** + *

Contains results of the facet.

+ * @return buckets + */ + + public java.util.List getBuckets() { + return this.buckets; + } + + /** + * builds ProductSearchFacetBucketResult with checking for non-null required values + * @return ProductSearchFacetBucketResult + */ + public ProductSearchFacetBucketResult build() { + Objects.requireNonNull(name, ProductSearchFacetBucketResult.class + ": name is missing"); + Objects.requireNonNull(buckets, ProductSearchFacetBucketResult.class + ": buckets is missing"); + return new ProductSearchFacetBucketResultImpl(name, buckets); + } + + /** + * builds ProductSearchFacetBucketResult without checking for non-null required values + * @return ProductSearchFacetBucketResult + */ + public ProductSearchFacetBucketResult buildUnchecked() { + return new ProductSearchFacetBucketResultImpl(name, buckets); + } + + /** + * factory method for an instance of ProductSearchFacetBucketResultBuilder + * @return builder + */ + public static ProductSearchFacetBucketResultBuilder of() { + return new ProductSearchFacetBucketResultBuilder(); + } + + /** + * create builder for ProductSearchFacetBucketResult instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetBucketResultBuilder of(final ProductSearchFacetBucketResult template) { + ProductSearchFacetBucketResultBuilder builder = new ProductSearchFacetBucketResultBuilder(); + builder.name = template.getName(); + builder.buckets = template.getBuckets(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultImpl.java new file mode 100644 index 00000000000..0750d661379 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultImpl.java @@ -0,0 +1,104 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetBucketResult + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetBucketResultImpl implements ProductSearchFacetBucketResult, ModelBase { + + private String name; + + private java.util.List buckets; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetBucketResultImpl(@JsonProperty("name") final String name, + @JsonProperty("buckets") final java.util.List buckets) { + this.name = name; + this.buckets = buckets; + } + + /** + * create empty instance + */ + public ProductSearchFacetBucketResultImpl() { + } + + /** + *

Name of the facet.

+ */ + + public String getName() { + return this.name; + } + + /** + *

Contains results of the facet.

+ */ + + public java.util.List getBuckets() { + return this.buckets; + } + + public void setName(final String name) { + this.name = name; + } + + public void setBuckets( + final com.commercetools.api.models.product_search.ProductSearchFacetResultBucket... buckets) { + this.buckets = new ArrayList<>(Arrays.asList(buckets)); + } + + public void setBuckets( + final java.util.List buckets) { + this.buckets = buckets; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetBucketResultImpl that = (ProductSearchFacetBucketResultImpl) o; + + return new EqualsBuilder().append(name, that.name) + .append(buckets, that.buckets) + .append(name, that.name) + .append(buckets, that.buckets) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(name).append(buckets).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name) + .append("buckets", buckets) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpression.java new file mode 100644 index 00000000000..49b62e3a853 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpression.java @@ -0,0 +1,125 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetCountExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetCountExpression productSearchFacetCountExpression = ProductSearchFacetCountExpression.builder()
+ *             .count(countBuilder -> countBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetCountExpressionImpl.class) +public interface ProductSearchFacetCountExpression extends ProductSearchFacetExpression { + + /** + *

Definition of the count facet.

+ * @return count + */ + @NotNull + @Valid + @JsonProperty("count") + public ProductSearchFacetCountValue getCount(); + + /** + *

Definition of the count facet.

+ * @param count value to be set + */ + + public void setCount(final ProductSearchFacetCountValue count); + + /** + * factory method + * @return instance of ProductSearchFacetCountExpression + */ + public static ProductSearchFacetCountExpression of() { + return new ProductSearchFacetCountExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetCountExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetCountExpression of(final ProductSearchFacetCountExpression template) { + ProductSearchFacetCountExpressionImpl instance = new ProductSearchFacetCountExpressionImpl(); + instance.setCount(template.getCount()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetCountExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetCountExpression deepCopy( + @Nullable final ProductSearchFacetCountExpression template) { + if (template == null) { + return null; + } + ProductSearchFacetCountExpressionImpl instance = new ProductSearchFacetCountExpressionImpl(); + instance.setCount( + com.commercetools.api.models.product_search.ProductSearchFacetCountValue.deepCopy(template.getCount())); + return instance; + } + + /** + * builder factory method for ProductSearchFacetCountExpression + * @return builder + */ + public static ProductSearchFacetCountExpressionBuilder builder() { + return ProductSearchFacetCountExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchFacetCountExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetCountExpressionBuilder builder(final ProductSearchFacetCountExpression template) { + return ProductSearchFacetCountExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetCountExpression(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/product_search/ProductSearchFacetCountExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionBuilder.java new file mode 100644 index 00000000000..ff7f40f3bee --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionBuilder.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetCountExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetCountExpression productSearchFacetCountExpression = ProductSearchFacetCountExpression.builder()
+ *             .count(countBuilder -> countBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetCountExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchFacetCountValue count; + + /** + *

Definition of the count facet.

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

Definition of the count facet.

+ * @param builder function to build the count value + * @return Builder + */ + + public ProductSearchFacetCountExpressionBuilder withCount( + Function builder) { + this.count = builder + .apply(com.commercetools.api.models.product_search.ProductSearchFacetCountValueBuilder.of()); + return this; + } + + /** + *

Definition of the count facet.

+ * @param count value to be set + * @return Builder + */ + + public ProductSearchFacetCountExpressionBuilder count( + final com.commercetools.api.models.product_search.ProductSearchFacetCountValue count) { + this.count = count; + return this; + } + + /** + *

Definition of the count facet.

+ * @return count + */ + + public com.commercetools.api.models.product_search.ProductSearchFacetCountValue getCount() { + return this.count; + } + + /** + * builds ProductSearchFacetCountExpression with checking for non-null required values + * @return ProductSearchFacetCountExpression + */ + public ProductSearchFacetCountExpression build() { + Objects.requireNonNull(count, ProductSearchFacetCountExpression.class + ": count is missing"); + return new ProductSearchFacetCountExpressionImpl(count); + } + + /** + * builds ProductSearchFacetCountExpression without checking for non-null required values + * @return ProductSearchFacetCountExpression + */ + public ProductSearchFacetCountExpression buildUnchecked() { + return new ProductSearchFacetCountExpressionImpl(count); + } + + /** + * factory method for an instance of ProductSearchFacetCountExpressionBuilder + * @return builder + */ + public static ProductSearchFacetCountExpressionBuilder of() { + return new ProductSearchFacetCountExpressionBuilder(); + } + + /** + * create builder for ProductSearchFacetCountExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetCountExpressionBuilder of(final ProductSearchFacetCountExpression template) { + ProductSearchFacetCountExpressionBuilder builder = new ProductSearchFacetCountExpressionBuilder(); + builder.count = template.getCount(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionImpl.java new file mode 100644 index 00000000000..989d7318035 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetCountExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetCountExpressionImpl implements ProductSearchFacetCountExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchFacetCountValue count; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetCountExpressionImpl( + @JsonProperty("count") final com.commercetools.api.models.product_search.ProductSearchFacetCountValue count) { + this.count = count; + } + + /** + * create empty instance + */ + public ProductSearchFacetCountExpressionImpl() { + } + + /** + *

Definition of the count facet.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetCountValue getCount() { + return this.count; + } + + public void setCount(final com.commercetools.api.models.product_search.ProductSearchFacetCountValue count) { + this.count = count; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetCountExpressionImpl that = (ProductSearchFacetCountExpressionImpl) o; + + return new EqualsBuilder().append(count, that.count).append(count, that.count).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(count).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("count", count).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValue.java new file mode 100644 index 00000000000..b2c8473f84e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValue.java @@ -0,0 +1,174 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetCountValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetCountValue productSearchFacetCountValue = ProductSearchFacetCountValue.builder()
+ *             .name("{name}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetCountValueImpl.class) +public interface ProductSearchFacetCountValue { + + /** + * + * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @return scope + */ + + @JsonProperty("scope") + public ProductSearchFacetEnumScope getScope(); + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @return filter + */ + @Valid + @JsonProperty("filter") + public ProductSearchQuery getFilter(); + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @return level + */ + + @JsonProperty("level") + public ProductSearchFacetEnumCount getLevel(); + + /** + * set name + * @param name value to be set + */ + + public void setName(final String name); + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @param scope value to be set + */ + + public void setScope(final ProductSearchFacetEnumScope scope); + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @param filter value to be set + */ + + public void setFilter(final ProductSearchQuery filter); + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @param level value to be set + */ + + public void setLevel(final ProductSearchFacetEnumCount level); + + /** + * factory method + * @return instance of ProductSearchFacetCountValue + */ + public static ProductSearchFacetCountValue of() { + return new ProductSearchFacetCountValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetCountValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetCountValue of(final ProductSearchFacetCountValue template) { + ProductSearchFacetCountValueImpl instance = new ProductSearchFacetCountValueImpl(); + instance.setName(template.getName()); + instance.setScope(template.getScope()); + instance.setFilter(template.getFilter()); + instance.setLevel(template.getLevel()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetCountValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetCountValue deepCopy(@Nullable final ProductSearchFacetCountValue template) { + if (template == null) { + return null; + } + ProductSearchFacetCountValueImpl instance = new ProductSearchFacetCountValueImpl(); + instance.setName(template.getName()); + instance.setScope(template.getScope()); + instance.setFilter( + com.commercetools.api.models.product_search.ProductSearchQuery.deepCopy(template.getFilter())); + instance.setLevel(template.getLevel()); + return instance; + } + + /** + * builder factory method for ProductSearchFacetCountValue + * @return builder + */ + public static ProductSearchFacetCountValueBuilder builder() { + return ProductSearchFacetCountValueBuilder.of(); + } + + /** + * create builder for ProductSearchFacetCountValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetCountValueBuilder builder(final ProductSearchFacetCountValue template) { + return ProductSearchFacetCountValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetCountValue(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/product_search/ProductSearchFacetCountValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueBuilder.java new file mode 100644 index 00000000000..2fa4aadd398 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueBuilder.java @@ -0,0 +1,187 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetCountValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetCountValue productSearchFacetCountValue = ProductSearchFacetCountValue.builder()
+ *             .name("{name}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetCountValueBuilder implements Builder { + + private String name; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchQuery filter; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchFacetEnumCount level; + + /** + * set the value to the name + * @param name value to be set + * @return Builder + */ + + public ProductSearchFacetCountValueBuilder name(final String name) { + this.name = name; + return this; + } + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @param scope value to be set + * @return Builder + */ + + public ProductSearchFacetCountValueBuilder scope( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope) { + this.scope = scope; + return this; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

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

Additional filtering expression to apply to the search result before calculating the facet.

+ * @param builder function to build the filter value + * @return Builder + */ + + public ProductSearchFacetCountValueBuilder withFilter( + Function builder) { + this.filter = builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()); + return this; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @param filter value to be set + * @return Builder + */ + + public ProductSearchFacetCountValueBuilder filter( + @Nullable final com.commercetools.api.models.product_search.ProductSearchQuery filter) { + this.filter = filter; + return this; + } + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @param level value to be set + * @return Builder + */ + + public ProductSearchFacetCountValueBuilder level( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetEnumCount level) { + this.level = level; + return this; + } + + /** + * value of name} + * @return name + */ + + public String getName() { + return this.name; + } + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @return scope + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchFacetEnumScope getScope() { + return this.scope; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @return filter + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchQuery getFilter() { + return this.filter; + } + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @return level + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchFacetEnumCount getLevel() { + return this.level; + } + + /** + * builds ProductSearchFacetCountValue with checking for non-null required values + * @return ProductSearchFacetCountValue + */ + public ProductSearchFacetCountValue build() { + Objects.requireNonNull(name, ProductSearchFacetCountValue.class + ": name is missing"); + return new ProductSearchFacetCountValueImpl(name, scope, filter, level); + } + + /** + * builds ProductSearchFacetCountValue without checking for non-null required values + * @return ProductSearchFacetCountValue + */ + public ProductSearchFacetCountValue buildUnchecked() { + return new ProductSearchFacetCountValueImpl(name, scope, filter, level); + } + + /** + * factory method for an instance of ProductSearchFacetCountValueBuilder + * @return builder + */ + public static ProductSearchFacetCountValueBuilder of() { + return new ProductSearchFacetCountValueBuilder(); + } + + /** + * create builder for ProductSearchFacetCountValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetCountValueBuilder of(final ProductSearchFacetCountValue template) { + ProductSearchFacetCountValueBuilder builder = new ProductSearchFacetCountValueBuilder(); + builder.name = template.getName(); + builder.scope = template.getScope(); + builder.filter = template.getFilter(); + builder.level = template.getLevel(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueImpl.java new file mode 100644 index 00000000000..5b86d946452 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueImpl.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetCountValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetCountValueImpl implements ProductSearchFacetCountValue, ModelBase { + + private String name; + + private com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope; + + private com.commercetools.api.models.product_search.ProductSearchQuery filter; + + private com.commercetools.api.models.product_search.ProductSearchFacetEnumCount level; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetCountValueImpl(@JsonProperty("name") final String name, + @JsonProperty("scope") final com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope, + @JsonProperty("filter") final com.commercetools.api.models.product_search.ProductSearchQuery filter, + @JsonProperty("level") final com.commercetools.api.models.product_search.ProductSearchFacetEnumCount level) { + this.name = name; + this.scope = scope; + this.filter = filter; + this.level = level; + } + + /** + * create empty instance + */ + public ProductSearchFacetCountValueImpl() { + } + + /** + * + */ + + public String getName() { + return this.name; + } + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetEnumScope getScope() { + return this.scope; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchQuery getFilter() { + return this.filter; + } + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetEnumCount getLevel() { + return this.level; + } + + public void setName(final String name) { + this.name = name; + } + + public void setScope(final com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope) { + this.scope = scope; + } + + public void setFilter(final com.commercetools.api.models.product_search.ProductSearchQuery filter) { + this.filter = filter; + } + + public void setLevel(final com.commercetools.api.models.product_search.ProductSearchFacetEnumCount level) { + this.level = level; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetCountValueImpl that = (ProductSearchFacetCountValueImpl) o; + + return new EqualsBuilder().append(name, that.name) + .append(scope, that.scope) + .append(filter, that.filter) + .append(level, that.level) + .append(name, that.name) + .append(scope, that.scope) + .append(filter, that.filter) + .append(level, that.level) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(name).append(scope).append(filter).append(level).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name) + .append("scope", scope) + .append("filter", filter) + .append("level", level) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortBy.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortBy.java new file mode 100644 index 00000000000..c8d254117b3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortBy.java @@ -0,0 +1,119 @@ + +package com.commercetools.api.models.product_search; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetDistinctBucketSortBy + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface ProductSearchFacetDistinctBucketSortBy extends JsonEnum { + + /** +

Sort buckets by the count value.

+ + */ + ProductSearchFacetDistinctBucketSortBy COUNT = ProductSearchFacetDistinctBucketSortByEnum.COUNT; + /** +

Sort buckets by the bucket key.

+ + */ + ProductSearchFacetDistinctBucketSortBy KEY = ProductSearchFacetDistinctBucketSortByEnum.KEY; + + /** + * possible values of ProductSearchFacetDistinctBucketSortBy + */ + enum ProductSearchFacetDistinctBucketSortByEnum implements ProductSearchFacetDistinctBucketSortBy { + /** + * count + */ + COUNT("count"), + + /** + * key + */ + KEY("key"); + private final String jsonName; + + private ProductSearchFacetDistinctBucketSortByEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of ProductSearchFacetDistinctBucketSortBy + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static ProductSearchFacetDistinctBucketSortBy findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ProductSearchFacetDistinctBucketSortBy() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static ProductSearchFacetDistinctBucketSortBy[] values() { + return ProductSearchFacetDistinctBucketSortByEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpression.java new file mode 100644 index 00000000000..33a3b44ef7e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpression.java @@ -0,0 +1,143 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetDistinctBucketSortExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetDistinctBucketSortExpression productSearchFacetDistinctBucketSortExpression = ProductSearchFacetDistinctBucketSortExpression.builder()
+ *             .by(ProductSearchFacetDistinctBucketSortBy.COUNT)
+ *             .order(ProductSearchSortOrder.ASC)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetDistinctBucketSortExpressionImpl.class) +public interface ProductSearchFacetDistinctBucketSortExpression { + + /** + *

Defines whether to sort by bucket count or key.

+ * @return by + */ + @NotNull + @JsonProperty("by") + public ProductSearchFacetDistinctBucketSortBy getBy(); + + /** + *

Defines the sorting order.

+ * @return order + */ + @NotNull + @JsonProperty("order") + public ProductSearchSortOrder getOrder(); + + /** + *

Defines whether to sort by bucket count or key.

+ * @param by value to be set + */ + + public void setBy(final ProductSearchFacetDistinctBucketSortBy by); + + /** + *

Defines the sorting order.

+ * @param order value to be set + */ + + public void setOrder(final ProductSearchSortOrder order); + + /** + * factory method + * @return instance of ProductSearchFacetDistinctBucketSortExpression + */ + public static ProductSearchFacetDistinctBucketSortExpression of() { + return new ProductSearchFacetDistinctBucketSortExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetDistinctBucketSortExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetDistinctBucketSortExpression of( + final ProductSearchFacetDistinctBucketSortExpression template) { + ProductSearchFacetDistinctBucketSortExpressionImpl instance = new ProductSearchFacetDistinctBucketSortExpressionImpl(); + instance.setBy(template.getBy()); + instance.setOrder(template.getOrder()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetDistinctBucketSortExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetDistinctBucketSortExpression deepCopy( + @Nullable final ProductSearchFacetDistinctBucketSortExpression template) { + if (template == null) { + return null; + } + ProductSearchFacetDistinctBucketSortExpressionImpl instance = new ProductSearchFacetDistinctBucketSortExpressionImpl(); + instance.setBy(template.getBy()); + instance.setOrder(template.getOrder()); + return instance; + } + + /** + * builder factory method for ProductSearchFacetDistinctBucketSortExpression + * @return builder + */ + public static ProductSearchFacetDistinctBucketSortExpressionBuilder builder() { + return ProductSearchFacetDistinctBucketSortExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchFacetDistinctBucketSortExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetDistinctBucketSortExpressionBuilder builder( + final ProductSearchFacetDistinctBucketSortExpression template) { + return ProductSearchFacetDistinctBucketSortExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetDistinctBucketSortExpression( + 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/product_search/ProductSearchFacetDistinctBucketSortExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionBuilder.java new file mode 100644 index 00000000000..c200c9eb7b0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionBuilder.java @@ -0,0 +1,111 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetDistinctBucketSortExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetDistinctBucketSortExpression productSearchFacetDistinctBucketSortExpression = ProductSearchFacetDistinctBucketSortExpression.builder()
+ *             .by(ProductSearchFacetDistinctBucketSortBy.COUNT)
+ *             .order(ProductSearchSortOrder.ASC)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetDistinctBucketSortExpressionBuilder + implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy by; + + private com.commercetools.api.models.product_search.ProductSearchSortOrder order; + + /** + *

Defines whether to sort by bucket count or key.

+ * @param by value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctBucketSortExpressionBuilder by( + final com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy by) { + this.by = by; + return this; + } + + /** + *

Defines the sorting order.

+ * @param order value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctBucketSortExpressionBuilder order( + final com.commercetools.api.models.product_search.ProductSearchSortOrder order) { + this.order = order; + return this; + } + + /** + *

Defines whether to sort by bucket count or key.

+ * @return by + */ + + public com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy getBy() { + return this.by; + } + + /** + *

Defines the sorting order.

+ * @return order + */ + + public com.commercetools.api.models.product_search.ProductSearchSortOrder getOrder() { + return this.order; + } + + /** + * builds ProductSearchFacetDistinctBucketSortExpression with checking for non-null required values + * @return ProductSearchFacetDistinctBucketSortExpression + */ + public ProductSearchFacetDistinctBucketSortExpression build() { + Objects.requireNonNull(by, ProductSearchFacetDistinctBucketSortExpression.class + ": by is missing"); + Objects.requireNonNull(order, ProductSearchFacetDistinctBucketSortExpression.class + ": order is missing"); + return new ProductSearchFacetDistinctBucketSortExpressionImpl(by, order); + } + + /** + * builds ProductSearchFacetDistinctBucketSortExpression without checking for non-null required values + * @return ProductSearchFacetDistinctBucketSortExpression + */ + public ProductSearchFacetDistinctBucketSortExpression buildUnchecked() { + return new ProductSearchFacetDistinctBucketSortExpressionImpl(by, order); + } + + /** + * factory method for an instance of ProductSearchFacetDistinctBucketSortExpressionBuilder + * @return builder + */ + public static ProductSearchFacetDistinctBucketSortExpressionBuilder of() { + return new ProductSearchFacetDistinctBucketSortExpressionBuilder(); + } + + /** + * create builder for ProductSearchFacetDistinctBucketSortExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetDistinctBucketSortExpressionBuilder of( + final ProductSearchFacetDistinctBucketSortExpression template) { + ProductSearchFacetDistinctBucketSortExpressionBuilder builder = new ProductSearchFacetDistinctBucketSortExpressionBuilder(); + builder.by = template.getBy(); + builder.order = template.getOrder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionImpl.java new file mode 100644 index 00000000000..95c6f959764 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetDistinctBucketSortExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetDistinctBucketSortExpressionImpl + implements ProductSearchFacetDistinctBucketSortExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy by; + + private com.commercetools.api.models.product_search.ProductSearchSortOrder order; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetDistinctBucketSortExpressionImpl( + @JsonProperty("by") final com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy by, + @JsonProperty("order") final com.commercetools.api.models.product_search.ProductSearchSortOrder order) { + this.by = by; + this.order = order; + } + + /** + * create empty instance + */ + public ProductSearchFacetDistinctBucketSortExpressionImpl() { + } + + /** + *

Defines whether to sort by bucket count or key.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy getBy() { + return this.by; + } + + /** + *

Defines the sorting order.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchSortOrder getOrder() { + return this.order; + } + + public void setBy(final com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy by) { + this.by = by; + } + + public void setOrder(final com.commercetools.api.models.product_search.ProductSearchSortOrder order) { + this.order = order; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetDistinctBucketSortExpressionImpl that = (ProductSearchFacetDistinctBucketSortExpressionImpl) o; + + return new EqualsBuilder().append(by, that.by) + .append(order, that.order) + .append(by, that.by) + .append(order, that.order) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(by).append(order).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("by", by) + .append("order", order) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpression.java new file mode 100644 index 00000000000..82125b67027 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpression.java @@ -0,0 +1,126 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetDistinctExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetDistinctExpression productSearchFacetDistinctExpression = ProductSearchFacetDistinctExpression.builder()
+ *             .distinct(distinctBuilder -> distinctBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetDistinctExpressionImpl.class) +public interface ProductSearchFacetDistinctExpression extends ProductSearchFacetExpression { + + /** + *

Definition of the distinct facet.

+ * @return distinct + */ + @NotNull + @Valid + @JsonProperty("distinct") + public ProductSearchFacetDistinctValue getDistinct(); + + /** + *

Definition of the distinct facet.

+ * @param distinct value to be set + */ + + public void setDistinct(final ProductSearchFacetDistinctValue distinct); + + /** + * factory method + * @return instance of ProductSearchFacetDistinctExpression + */ + public static ProductSearchFacetDistinctExpression of() { + return new ProductSearchFacetDistinctExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetDistinctExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetDistinctExpression of(final ProductSearchFacetDistinctExpression template) { + ProductSearchFacetDistinctExpressionImpl instance = new ProductSearchFacetDistinctExpressionImpl(); + instance.setDistinct(template.getDistinct()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetDistinctExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetDistinctExpression deepCopy( + @Nullable final ProductSearchFacetDistinctExpression template) { + if (template == null) { + return null; + } + ProductSearchFacetDistinctExpressionImpl instance = new ProductSearchFacetDistinctExpressionImpl(); + instance.setDistinct(com.commercetools.api.models.product_search.ProductSearchFacetDistinctValue + .deepCopy(template.getDistinct())); + return instance; + } + + /** + * builder factory method for ProductSearchFacetDistinctExpression + * @return builder + */ + public static ProductSearchFacetDistinctExpressionBuilder builder() { + return ProductSearchFacetDistinctExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchFacetDistinctExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetDistinctExpressionBuilder builder( + final ProductSearchFacetDistinctExpression template) { + return ProductSearchFacetDistinctExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetDistinctExpression(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/product_search/ProductSearchFacetDistinctExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionBuilder.java new file mode 100644 index 00000000000..26157a0b157 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionBuilder.java @@ -0,0 +1,111 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetDistinctExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetDistinctExpression productSearchFacetDistinctExpression = ProductSearchFacetDistinctExpression.builder()
+ *             .distinct(distinctBuilder -> distinctBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetDistinctExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchFacetDistinctValue distinct; + + /** + *

Definition of the distinct facet.

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

Definition of the distinct facet.

+ * @param builder function to build the distinct value + * @return Builder + */ + + public ProductSearchFacetDistinctExpressionBuilder withDistinct( + Function builder) { + this.distinct = builder + .apply(com.commercetools.api.models.product_search.ProductSearchFacetDistinctValueBuilder.of()); + return this; + } + + /** + *

Definition of the distinct facet.

+ * @param distinct value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctExpressionBuilder distinct( + final com.commercetools.api.models.product_search.ProductSearchFacetDistinctValue distinct) { + this.distinct = distinct; + return this; + } + + /** + *

Definition of the distinct facet.

+ * @return distinct + */ + + public com.commercetools.api.models.product_search.ProductSearchFacetDistinctValue getDistinct() { + return this.distinct; + } + + /** + * builds ProductSearchFacetDistinctExpression with checking for non-null required values + * @return ProductSearchFacetDistinctExpression + */ + public ProductSearchFacetDistinctExpression build() { + Objects.requireNonNull(distinct, ProductSearchFacetDistinctExpression.class + ": distinct is missing"); + return new ProductSearchFacetDistinctExpressionImpl(distinct); + } + + /** + * builds ProductSearchFacetDistinctExpression without checking for non-null required values + * @return ProductSearchFacetDistinctExpression + */ + public ProductSearchFacetDistinctExpression buildUnchecked() { + return new ProductSearchFacetDistinctExpressionImpl(distinct); + } + + /** + * factory method for an instance of ProductSearchFacetDistinctExpressionBuilder + * @return builder + */ + public static ProductSearchFacetDistinctExpressionBuilder of() { + return new ProductSearchFacetDistinctExpressionBuilder(); + } + + /** + * create builder for ProductSearchFacetDistinctExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetDistinctExpressionBuilder of(final ProductSearchFacetDistinctExpression template) { + ProductSearchFacetDistinctExpressionBuilder builder = new ProductSearchFacetDistinctExpressionBuilder(); + builder.distinct = template.getDistinct(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionImpl.java new file mode 100644 index 00000000000..44cca90ec49 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionImpl.java @@ -0,0 +1,78 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetDistinctExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetDistinctExpressionImpl implements ProductSearchFacetDistinctExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchFacetDistinctValue distinct; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetDistinctExpressionImpl( + @JsonProperty("distinct") final com.commercetools.api.models.product_search.ProductSearchFacetDistinctValue distinct) { + this.distinct = distinct; + } + + /** + * create empty instance + */ + public ProductSearchFacetDistinctExpressionImpl() { + } + + /** + *

Definition of the distinct facet.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetDistinctValue getDistinct() { + return this.distinct; + } + + public void setDistinct( + final com.commercetools.api.models.product_search.ProductSearchFacetDistinctValue distinct) { + this.distinct = distinct; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetDistinctExpressionImpl that = (ProductSearchFacetDistinctExpressionImpl) o; + + return new EqualsBuilder().append(distinct, that.distinct).append(distinct, that.distinct).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(distinct).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("distinct", distinct).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWith.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWith.java new file mode 100644 index 00000000000..4ebc4696be5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWith.java @@ -0,0 +1,141 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetDistinctStartsWith + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetDistinctStartsWith productSearchFacetDistinctStartsWith = ProductSearchFacetDistinctStartsWith.builder()
+ *             .value("{value}")
+ *             .caseInsensitive(true)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetDistinctStartsWithImpl.class) +public interface ProductSearchFacetDistinctStartsWith { + + /** + *

Text to match against the start of the target value.

+ * @return value + */ + @NotNull + @JsonProperty("value") + public String getValue(); + + /** + *

If true, the value is not case sensitive.

+ * @return caseInsensitive + */ + @NotNull + @JsonProperty("caseInsensitive") + public Boolean getCaseInsensitive(); + + /** + *

Text to match against the start of the target value.

+ * @param value value to be set + */ + + public void setValue(final String value); + + /** + *

If true, the value is not case sensitive.

+ * @param caseInsensitive value to be set + */ + + public void setCaseInsensitive(final Boolean caseInsensitive); + + /** + * factory method + * @return instance of ProductSearchFacetDistinctStartsWith + */ + public static ProductSearchFacetDistinctStartsWith of() { + return new ProductSearchFacetDistinctStartsWithImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetDistinctStartsWith + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetDistinctStartsWith of(final ProductSearchFacetDistinctStartsWith template) { + ProductSearchFacetDistinctStartsWithImpl instance = new ProductSearchFacetDistinctStartsWithImpl(); + instance.setValue(template.getValue()); + instance.setCaseInsensitive(template.getCaseInsensitive()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetDistinctStartsWith + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetDistinctStartsWith deepCopy( + @Nullable final ProductSearchFacetDistinctStartsWith template) { + if (template == null) { + return null; + } + ProductSearchFacetDistinctStartsWithImpl instance = new ProductSearchFacetDistinctStartsWithImpl(); + instance.setValue(template.getValue()); + instance.setCaseInsensitive(template.getCaseInsensitive()); + return instance; + } + + /** + * builder factory method for ProductSearchFacetDistinctStartsWith + * @return builder + */ + public static ProductSearchFacetDistinctStartsWithBuilder builder() { + return ProductSearchFacetDistinctStartsWithBuilder.of(); + } + + /** + * create builder for ProductSearchFacetDistinctStartsWith instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetDistinctStartsWithBuilder builder( + final ProductSearchFacetDistinctStartsWith template) { + return ProductSearchFacetDistinctStartsWithBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetDistinctStartsWith(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/product_search/ProductSearchFacetDistinctStartsWithBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithBuilder.java new file mode 100644 index 00000000000..9ae1f7fb743 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithBuilder.java @@ -0,0 +1,108 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetDistinctStartsWithBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetDistinctStartsWith productSearchFacetDistinctStartsWith = ProductSearchFacetDistinctStartsWith.builder()
+ *             .value("{value}")
+ *             .caseInsensitive(true)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetDistinctStartsWithBuilder implements Builder { + + private String value; + + private Boolean caseInsensitive; + + /** + *

Text to match against the start of the target value.

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

If true, the value is not case sensitive.

+ * @param caseInsensitive value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctStartsWithBuilder caseInsensitive(final Boolean caseInsensitive) { + this.caseInsensitive = caseInsensitive; + return this; + } + + /** + *

Text to match against the start of the target value.

+ * @return value + */ + + public String getValue() { + return this.value; + } + + /** + *

If true, the value is not case sensitive.

+ * @return caseInsensitive + */ + + public Boolean getCaseInsensitive() { + return this.caseInsensitive; + } + + /** + * builds ProductSearchFacetDistinctStartsWith with checking for non-null required values + * @return ProductSearchFacetDistinctStartsWith + */ + public ProductSearchFacetDistinctStartsWith build() { + Objects.requireNonNull(value, ProductSearchFacetDistinctStartsWith.class + ": value is missing"); + Objects.requireNonNull(caseInsensitive, + ProductSearchFacetDistinctStartsWith.class + ": caseInsensitive is missing"); + return new ProductSearchFacetDistinctStartsWithImpl(value, caseInsensitive); + } + + /** + * builds ProductSearchFacetDistinctStartsWith without checking for non-null required values + * @return ProductSearchFacetDistinctStartsWith + */ + public ProductSearchFacetDistinctStartsWith buildUnchecked() { + return new ProductSearchFacetDistinctStartsWithImpl(value, caseInsensitive); + } + + /** + * factory method for an instance of ProductSearchFacetDistinctStartsWithBuilder + * @return builder + */ + public static ProductSearchFacetDistinctStartsWithBuilder of() { + return new ProductSearchFacetDistinctStartsWithBuilder(); + } + + /** + * create builder for ProductSearchFacetDistinctStartsWith instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetDistinctStartsWithBuilder of(final ProductSearchFacetDistinctStartsWith template) { + ProductSearchFacetDistinctStartsWithBuilder builder = new ProductSearchFacetDistinctStartsWithBuilder(); + builder.value = template.getValue(); + builder.caseInsensitive = template.getCaseInsensitive(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithImpl.java new file mode 100644 index 00000000000..d45da5b1fd0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithImpl.java @@ -0,0 +1,98 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetDistinctStartsWith + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetDistinctStartsWithImpl implements ProductSearchFacetDistinctStartsWith, ModelBase { + + private String value; + + private Boolean caseInsensitive; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetDistinctStartsWithImpl(@JsonProperty("value") final String value, + @JsonProperty("caseInsensitive") final Boolean caseInsensitive) { + this.value = value; + this.caseInsensitive = caseInsensitive; + } + + /** + * create empty instance + */ + public ProductSearchFacetDistinctStartsWithImpl() { + } + + /** + *

Text to match against the start of the target value.

+ */ + + public String getValue() { + return this.value; + } + + /** + *

If true, the value is not case sensitive.

+ */ + + public Boolean getCaseInsensitive() { + return this.caseInsensitive; + } + + public void setValue(final String value) { + this.value = value; + } + + public void setCaseInsensitive(final Boolean caseInsensitive) { + this.caseInsensitive = caseInsensitive; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetDistinctStartsWithImpl that = (ProductSearchFacetDistinctStartsWithImpl) o; + + return new EqualsBuilder().append(value, that.value) + .append(caseInsensitive, that.caseInsensitive) + .append(value, that.value) + .append(caseInsensitive, that.caseInsensitive) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(value).append(caseInsensitive).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("value", value) + .append("caseInsensitive", caseInsensitive) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValue.java new file mode 100644 index 00000000000..3b3691197f8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValue.java @@ -0,0 +1,321 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetDistinctValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetDistinctValue productSearchFacetDistinctValue = ProductSearchFacetDistinctValue.builder()
+ *             .name("{name}")
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetDistinctValueImpl.class) +public interface ProductSearchFacetDistinctValue { + + /** + *

Name of the count facet.

+ * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @return scope + */ + + @JsonProperty("scope") + public ProductSearchFacetEnumScope getScope(); + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @return filter + */ + @Valid + @JsonProperty("filter") + public ProductSearchQuery getFilter(); + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @return count + */ + + @JsonProperty("count") + public ProductSearchFacetEnumCount getCount(); + + /** + *

The field to facet on. Can be any searchable field on the Product.

+ * @return field + */ + @NotNull + @JsonProperty("field") + public String getField(); + + /** + *

Specify which bucket keys the facets results should include.

+ * @return includes + */ + + @JsonProperty("includes") + public List getIncludes(); + + /** + *

Filter bucket keys in the facet results by the start of the key.

+ * @return startsWith + */ + @Valid + @JsonProperty("startsWith") + public ProductSearchFacetDistinctStartsWith getStartsWith(); + + /** + *

Define how the buckets are sorted.

+ * @return sort + */ + @Valid + @JsonProperty("sort") + public ProductSearchFacetDistinctBucketSortExpression getSort(); + + /** + *

Maximum number of buckets to return.

+ * @return size + */ + + @JsonProperty("size") + public Integer getSize(); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @JsonProperty("language") + public String getLanguage(); + + /** + *

If the field is an Attribute, this must be the Attribute type.

+ * @return attributeType + */ + + @JsonProperty("attributeType") + public ProductSearchAttributeType getAttributeType(); + + /** + *

Default value to use if the specified field is not present on some Products.

+ * @return missing + */ + + @JsonProperty("missing") + public String getMissing(); + + /** + *

Name of the count facet.

+ * @param name value to be set + */ + + public void setName(final String name); + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @param scope value to be set + */ + + public void setScope(final ProductSearchFacetEnumScope scope); + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @param filter value to be set + */ + + public void setFilter(final ProductSearchQuery filter); + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @param count value to be set + */ + + public void setCount(final ProductSearchFacetEnumCount count); + + /** + *

The field to facet on. Can be any searchable field on the Product.

+ * @param field value to be set + */ + + public void setField(final String field); + + /** + *

Specify which bucket keys the facets results should include.

+ * @param includes values to be set + */ + + @JsonIgnore + public void setIncludes(final String... includes); + + /** + *

Specify which bucket keys the facets results should include.

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

Filter bucket keys in the facet results by the start of the key.

+ * @param startsWith value to be set + */ + + public void setStartsWith(final ProductSearchFacetDistinctStartsWith startsWith); + + /** + *

Define how the buckets are sorted.

+ * @param sort value to be set + */ + + public void setSort(final ProductSearchFacetDistinctBucketSortExpression sort); + + /** + *

Maximum number of buckets to return.

+ * @param size value to be set + */ + + public void setSize(final Integer size); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + */ + + public void setLanguage(final String language); + + /** + *

If the field is an Attribute, this must be the Attribute type.

+ * @param attributeType value to be set + */ + + public void setAttributeType(final ProductSearchAttributeType attributeType); + + /** + *

Default value to use if the specified field is not present on some Products.

+ * @param missing value to be set + */ + + public void setMissing(final String missing); + + /** + * factory method + * @return instance of ProductSearchFacetDistinctValue + */ + public static ProductSearchFacetDistinctValue of() { + return new ProductSearchFacetDistinctValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetDistinctValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetDistinctValue of(final ProductSearchFacetDistinctValue template) { + ProductSearchFacetDistinctValueImpl instance = new ProductSearchFacetDistinctValueImpl(); + instance.setName(template.getName()); + instance.setScope(template.getScope()); + instance.setFilter(template.getFilter()); + instance.setCount(template.getCount()); + instance.setField(template.getField()); + instance.setIncludes(template.getIncludes()); + instance.setStartsWith(template.getStartsWith()); + instance.setSort(template.getSort()); + instance.setSize(template.getSize()); + instance.setLanguage(template.getLanguage()); + instance.setAttributeType(template.getAttributeType()); + instance.setMissing(template.getMissing()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetDistinctValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetDistinctValue deepCopy(@Nullable final ProductSearchFacetDistinctValue template) { + if (template == null) { + return null; + } + ProductSearchFacetDistinctValueImpl instance = new ProductSearchFacetDistinctValueImpl(); + instance.setName(template.getName()); + instance.setScope(template.getScope()); + instance.setFilter( + com.commercetools.api.models.product_search.ProductSearchQuery.deepCopy(template.getFilter())); + instance.setCount(template.getCount()); + instance.setField(template.getField()); + instance.setIncludes(Optional.ofNullable(template.getIncludes()).map(ArrayList::new).orElse(null)); + instance.setStartsWith(com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWith + .deepCopy(template.getStartsWith())); + instance.setSort(com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpression + .deepCopy(template.getSort())); + instance.setSize(template.getSize()); + instance.setLanguage(template.getLanguage()); + instance.setAttributeType(template.getAttributeType()); + instance.setMissing(template.getMissing()); + return instance; + } + + /** + * builder factory method for ProductSearchFacetDistinctValue + * @return builder + */ + public static ProductSearchFacetDistinctValueBuilder builder() { + return ProductSearchFacetDistinctValueBuilder.of(); + } + + /** + * create builder for ProductSearchFacetDistinctValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetDistinctValueBuilder builder(final ProductSearchFacetDistinctValue template) { + return ProductSearchFacetDistinctValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetDistinctValue(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/product_search/ProductSearchFacetDistinctValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueBuilder.java new file mode 100644 index 00000000000..0eb01e3c0ce --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueBuilder.java @@ -0,0 +1,472 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetDistinctValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetDistinctValue productSearchFacetDistinctValue = ProductSearchFacetDistinctValue.builder()
+ *             .name("{name}")
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetDistinctValueBuilder implements Builder { + + private String name; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchQuery filter; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count; + + private String field; + + @Nullable + private java.util.List includes; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWith startsWith; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpression sort; + + @Nullable + private Integer size; + + @Nullable + private String language; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + @Nullable + private String missing; + + /** + *

Name of the count facet.

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

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @param scope value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder scope( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope) { + this.scope = scope; + return this; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

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

Additional filtering expression to apply to the search result before calculating the facet.

+ * @param builder function to build the filter value + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder withFilter( + Function builder) { + this.filter = builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()); + return this; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @param filter value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder filter( + @Nullable final com.commercetools.api.models.product_search.ProductSearchQuery filter) { + this.filter = filter; + return this; + } + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @param count value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder count( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count) { + this.count = count; + return this; + } + + /** + *

The field to facet on. Can be any searchable field on the Product.

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

Specify which bucket keys the facets results should include.

+ * @param includes value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder includes(@Nullable final String... includes) { + this.includes = new ArrayList<>(Arrays.asList(includes)); + return this; + } + + /** + *

Specify which bucket keys the facets results should include.

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

Specify which bucket keys the facets results should include.

+ * @param includes value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder plusIncludes(@Nullable final String... includes) { + if (this.includes == null) { + this.includes = new ArrayList<>(); + } + this.includes.addAll(Arrays.asList(includes)); + return this; + } + + /** + *

Filter bucket keys in the facet results by the start of the key.

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

Filter bucket keys in the facet results by the start of the key.

+ * @param builder function to build the startsWith value + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder withStartsWith( + Function builder) { + this.startsWith = builder + .apply(com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWithBuilder.of()); + return this; + } + + /** + *

Filter bucket keys in the facet results by the start of the key.

+ * @param startsWith value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder startsWith( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWith startsWith) { + this.startsWith = startsWith; + return this; + } + + /** + *

Define how the buckets are sorted.

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

Define how the buckets are sorted.

+ * @param builder function to build the sort value + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder withSort( + Function builder) { + this.sort = builder.apply( + com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpressionBuilder.of()); + return this; + } + + /** + *

Define how the buckets are sorted.

+ * @param sort value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder sort( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpression sort) { + this.sort = sort; + return this; + } + + /** + *

Maximum number of buckets to return.

+ * @param size value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder size(@Nullable final Integer size) { + this.size = size; + return this; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

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

If the field is an Attribute, this must be the Attribute type.

+ * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchFacetDistinctValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + *

Default value to use if the specified field is not present on some Products.

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

Name of the count facet.

+ * @return name + */ + + public String getName() { + return this.name; + } + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @return scope + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchFacetEnumScope getScope() { + return this.scope; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @return filter + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchQuery getFilter() { + return this.filter; + } + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @return count + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchFacetEnumCount getCount() { + return this.count; + } + + /** + *

The field to facet on. Can be any searchable field on the Product.

+ * @return field + */ + + public String getField() { + return this.field; + } + + /** + *

Specify which bucket keys the facets results should include.

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

Filter bucket keys in the facet results by the start of the key.

+ * @return startsWith + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWith getStartsWith() { + return this.startsWith; + } + + /** + *

Define how the buckets are sorted.

+ * @return sort + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpression getSort() { + return this.sort; + } + + /** + *

Maximum number of buckets to return.

+ * @return size + */ + + @Nullable + public Integer getSize() { + return this.size; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @Nullable + public String getLanguage() { + return this.language; + } + + /** + *

If the field is an Attribute, this must be the Attribute type.

+ * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + *

Default value to use if the specified field is not present on some Products.

+ * @return missing + */ + + @Nullable + public String getMissing() { + return this.missing; + } + + /** + * builds ProductSearchFacetDistinctValue with checking for non-null required values + * @return ProductSearchFacetDistinctValue + */ + public ProductSearchFacetDistinctValue build() { + Objects.requireNonNull(name, ProductSearchFacetDistinctValue.class + ": name is missing"); + Objects.requireNonNull(field, ProductSearchFacetDistinctValue.class + ": field is missing"); + return new ProductSearchFacetDistinctValueImpl(name, scope, filter, count, field, includes, startsWith, sort, + size, language, attributeType, missing); + } + + /** + * builds ProductSearchFacetDistinctValue without checking for non-null required values + * @return ProductSearchFacetDistinctValue + */ + public ProductSearchFacetDistinctValue buildUnchecked() { + return new ProductSearchFacetDistinctValueImpl(name, scope, filter, count, field, includes, startsWith, sort, + size, language, attributeType, missing); + } + + /** + * factory method for an instance of ProductSearchFacetDistinctValueBuilder + * @return builder + */ + public static ProductSearchFacetDistinctValueBuilder of() { + return new ProductSearchFacetDistinctValueBuilder(); + } + + /** + * create builder for ProductSearchFacetDistinctValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetDistinctValueBuilder of(final ProductSearchFacetDistinctValue template) { + ProductSearchFacetDistinctValueBuilder builder = new ProductSearchFacetDistinctValueBuilder(); + builder.name = template.getName(); + builder.scope = template.getScope(); + builder.filter = template.getFilter(); + builder.count = template.getCount(); + builder.field = template.getField(); + builder.includes = template.getIncludes(); + builder.startsWith = template.getStartsWith(); + builder.sort = template.getSort(); + builder.size = template.getSize(); + builder.language = template.getLanguage(); + builder.attributeType = template.getAttributeType(); + builder.missing = template.getMissing(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueImpl.java new file mode 100644 index 00000000000..437937de554 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueImpl.java @@ -0,0 +1,305 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetDistinctValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetDistinctValueImpl implements ProductSearchFacetDistinctValue, ModelBase { + + private String name; + + private com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope; + + private com.commercetools.api.models.product_search.ProductSearchQuery filter; + + private com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count; + + private String field; + + private java.util.List includes; + + private com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWith startsWith; + + private com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpression sort; + + private Integer size; + + private String language; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private String missing; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetDistinctValueImpl(@JsonProperty("name") final String name, + @JsonProperty("scope") final com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope, + @JsonProperty("filter") final com.commercetools.api.models.product_search.ProductSearchQuery filter, + @JsonProperty("count") final com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count, + @JsonProperty("field") final String field, @JsonProperty("includes") final java.util.List includes, + @JsonProperty("startsWith") final com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWith startsWith, + @JsonProperty("sort") final com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpression sort, + @JsonProperty("size") final Integer size, @JsonProperty("language") final String language, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("missing") final String missing) { + this.name = name; + this.scope = scope; + this.filter = filter; + this.count = count; + this.field = field; + this.includes = includes; + this.startsWith = startsWith; + this.sort = sort; + this.size = size; + this.language = language; + this.attributeType = attributeType; + this.missing = missing; + } + + /** + * create empty instance + */ + public ProductSearchFacetDistinctValueImpl() { + } + + /** + *

Name of the count facet.

+ */ + + public String getName() { + return this.name; + } + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetEnumScope getScope() { + return this.scope; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchQuery getFilter() { + return this.filter; + } + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetEnumCount getCount() { + return this.count; + } + + /** + *

The field to facet on. Can be any searchable field on the Product.

+ */ + + public String getField() { + return this.field; + } + + /** + *

Specify which bucket keys the facets results should include.

+ */ + + public java.util.List getIncludes() { + return this.includes; + } + + /** + *

Filter bucket keys in the facet results by the start of the key.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWith getStartsWith() { + return this.startsWith; + } + + /** + *

Define how the buckets are sorted.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpression getSort() { + return this.sort; + } + + /** + *

Maximum number of buckets to return.

+ */ + + public Integer getSize() { + return this.size; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ */ + + public String getLanguage() { + return this.language; + } + + /** + *

If the field is an Attribute, this must be the Attribute type.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + *

Default value to use if the specified field is not present on some Products.

+ */ + + public String getMissing() { + return this.missing; + } + + public void setName(final String name) { + this.name = name; + } + + public void setScope(final com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope) { + this.scope = scope; + } + + public void setFilter(final com.commercetools.api.models.product_search.ProductSearchQuery filter) { + this.filter = filter; + } + + public void setCount(final com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count) { + this.count = count; + } + + public void setField(final String field) { + this.field = field; + } + + public void setIncludes(final String... includes) { + this.includes = new ArrayList<>(Arrays.asList(includes)); + } + + public void setIncludes(final java.util.List includes) { + this.includes = includes; + } + + public void setStartsWith( + final com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWith startsWith) { + this.startsWith = startsWith; + } + + public void setSort( + final com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpression sort) { + this.sort = sort; + } + + public void setSize(final Integer size) { + this.size = size; + } + + public void setLanguage(final String language) { + this.language = language; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setMissing(final String missing) { + this.missing = missing; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetDistinctValueImpl that = (ProductSearchFacetDistinctValueImpl) o; + + return new EqualsBuilder().append(name, that.name) + .append(scope, that.scope) + .append(filter, that.filter) + .append(count, that.count) + .append(field, that.field) + .append(includes, that.includes) + .append(startsWith, that.startsWith) + .append(sort, that.sort) + .append(size, that.size) + .append(language, that.language) + .append(attributeType, that.attributeType) + .append(missing, that.missing) + .append(name, that.name) + .append(scope, that.scope) + .append(filter, that.filter) + .append(count, that.count) + .append(field, that.field) + .append(includes, that.includes) + .append(startsWith, that.startsWith) + .append(sort, that.sort) + .append(size, that.size) + .append(language, that.language) + .append(attributeType, that.attributeType) + .append(missing, that.missing) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(name) + .append(scope) + .append(filter) + .append(count) + .append(field) + .append(includes) + .append(startsWith) + .append(sort) + .append(size) + .append(language) + .append(attributeType) + .append(missing) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name) + .append("scope", scope) + .append("filter", filter) + .append("count", count) + .append("field", field) + .append("includes", includes) + .append("startsWith", startsWith) + .append("sort", sort) + .append("size", size) + .append("language", language) + .append("attributeType", attributeType) + .append("missing", missing) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetEnumCount.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetEnumCount.java new file mode 100644 index 00000000000..b3226d9d99d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetEnumCount.java @@ -0,0 +1,119 @@ + +package com.commercetools.api.models.product_search; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetEnumCount + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface ProductSearchFacetEnumCount extends JsonEnum { + + /** +

The query should count Products.

+ + */ + ProductSearchFacetEnumCount PRODUCTS = ProductSearchFacetEnumCountEnum.PRODUCTS; + /** +

The query should count Product Variants.

+ + */ + ProductSearchFacetEnumCount VARIANTS = ProductSearchFacetEnumCountEnum.VARIANTS; + + /** + * possible values of ProductSearchFacetEnumCount + */ + enum ProductSearchFacetEnumCountEnum implements ProductSearchFacetEnumCount { + /** + * products + */ + PRODUCTS("products"), + + /** + * variants + */ + VARIANTS("variants"); + private final String jsonName; + + private ProductSearchFacetEnumCountEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of ProductSearchFacetEnumCount + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static ProductSearchFacetEnumCount findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ProductSearchFacetEnumCount() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static ProductSearchFacetEnumCount[] values() { + return ProductSearchFacetEnumCountEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetEnumScope.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetEnumScope.java new file mode 100644 index 00000000000..4fd0ba33eec --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetEnumScope.java @@ -0,0 +1,119 @@ + +package com.commercetools.api.models.product_search; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetEnumScope + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface ProductSearchFacetEnumScope extends JsonEnum { + + /** +

Count all Products (or Product Variants) without considering the search query.

+ + */ + ProductSearchFacetEnumScope ALL = ProductSearchFacetEnumScopeEnum.ALL; + /** +

Only count the Products (or Product Variants) that matches the search query.

+ + */ + ProductSearchFacetEnumScope QUERY = ProductSearchFacetEnumScopeEnum.QUERY; + + /** + * possible values of ProductSearchFacetEnumScope + */ + enum ProductSearchFacetEnumScopeEnum implements ProductSearchFacetEnumScope { + /** + * all + */ + ALL("all"), + + /** + * query + */ + QUERY("query"); + private final String jsonName; + + private ProductSearchFacetEnumScopeEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of ProductSearchFacetEnumScope + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static ProductSearchFacetEnumScope findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ProductSearchFacetEnumScope() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static ProductSearchFacetEnumScope[] values() { + return ProductSearchFacetEnumScopeEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpression.java new file mode 100644 index 00000000000..f23eb85daf9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpression.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

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

+ *     ProductSearchFacetExpression productSearchFacetExpression = ProductSearchFacetExpression.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetExpressionBuilder implements Builder { + + /** + * builds ProductSearchFacetExpression with checking for non-null required values + * @return ProductSearchFacetExpression + */ + public ProductSearchFacetExpression build() { + return new ProductSearchFacetExpressionImpl(); + } + + /** + * builds ProductSearchFacetExpression without checking for non-null required values + * @return ProductSearchFacetExpression + */ + public ProductSearchFacetExpression buildUnchecked() { + return new ProductSearchFacetExpressionImpl(); + } + + /** + * factory method for an instance of ProductSearchFacetExpressionBuilder + * @return builder + */ + public static ProductSearchFacetExpressionBuilder of() { + return new ProductSearchFacetExpressionBuilder(); + } + + /** + * create builder for ProductSearchFacetExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetExpressionBuilder of(final ProductSearchFacetExpression template) { + ProductSearchFacetExpressionBuilder builder = new ProductSearchFacetExpressionBuilder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpressionImpl.java new file mode 100644 index 00000000000..49c9385394d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpressionImpl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetExpressionImpl implements ProductSearchFacetExpression, ModelBase { + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetExpressionImpl() { + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetExpressionImpl that = (ProductSearchFacetExpressionImpl) o; + + return new EqualsBuilder().isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpression.java new file mode 100644 index 00000000000..57f3aea2597 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpression.java @@ -0,0 +1,125 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetRangesExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetRangesExpression productSearchFacetRangesExpression = ProductSearchFacetRangesExpression.builder()
+ *             .ranges(rangesBuilder -> rangesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetRangesExpressionImpl.class) +public interface ProductSearchFacetRangesExpression extends ProductSearchFacetExpression { + + /** + *

Definition of the ranges facet.

+ * @return ranges + */ + @NotNull + @Valid + @JsonProperty("ranges") + public ProductSearchFacetRangesValue getRanges(); + + /** + *

Definition of the ranges facet.

+ * @param ranges value to be set + */ + + public void setRanges(final ProductSearchFacetRangesValue ranges); + + /** + * factory method + * @return instance of ProductSearchFacetRangesExpression + */ + public static ProductSearchFacetRangesExpression of() { + return new ProductSearchFacetRangesExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetRangesExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetRangesExpression of(final ProductSearchFacetRangesExpression template) { + ProductSearchFacetRangesExpressionImpl instance = new ProductSearchFacetRangesExpressionImpl(); + instance.setRanges(template.getRanges()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetRangesExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetRangesExpression deepCopy( + @Nullable final ProductSearchFacetRangesExpression template) { + if (template == null) { + return null; + } + ProductSearchFacetRangesExpressionImpl instance = new ProductSearchFacetRangesExpressionImpl(); + instance.setRanges( + com.commercetools.api.models.product_search.ProductSearchFacetRangesValue.deepCopy(template.getRanges())); + return instance; + } + + /** + * builder factory method for ProductSearchFacetRangesExpression + * @return builder + */ + public static ProductSearchFacetRangesExpressionBuilder builder() { + return ProductSearchFacetRangesExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchFacetRangesExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetRangesExpressionBuilder builder(final ProductSearchFacetRangesExpression template) { + return ProductSearchFacetRangesExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetRangesExpression(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/product_search/ProductSearchFacetRangesExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionBuilder.java new file mode 100644 index 00000000000..5f9fd216167 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionBuilder.java @@ -0,0 +1,111 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetRangesExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetRangesExpression productSearchFacetRangesExpression = ProductSearchFacetRangesExpression.builder()
+ *             .ranges(rangesBuilder -> rangesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetRangesExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchFacetRangesValue ranges; + + /** + *

Definition of the ranges facet.

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

Definition of the ranges facet.

+ * @param builder function to build the ranges value + * @return Builder + */ + + public ProductSearchFacetRangesExpressionBuilder withRanges( + Function builder) { + this.ranges = builder + .apply(com.commercetools.api.models.product_search.ProductSearchFacetRangesValueBuilder.of()); + return this; + } + + /** + *

Definition of the ranges facet.

+ * @param ranges value to be set + * @return Builder + */ + + public ProductSearchFacetRangesExpressionBuilder ranges( + final com.commercetools.api.models.product_search.ProductSearchFacetRangesValue ranges) { + this.ranges = ranges; + return this; + } + + /** + *

Definition of the ranges facet.

+ * @return ranges + */ + + public com.commercetools.api.models.product_search.ProductSearchFacetRangesValue getRanges() { + return this.ranges; + } + + /** + * builds ProductSearchFacetRangesExpression with checking for non-null required values + * @return ProductSearchFacetRangesExpression + */ + public ProductSearchFacetRangesExpression build() { + Objects.requireNonNull(ranges, ProductSearchFacetRangesExpression.class + ": ranges is missing"); + return new ProductSearchFacetRangesExpressionImpl(ranges); + } + + /** + * builds ProductSearchFacetRangesExpression without checking for non-null required values + * @return ProductSearchFacetRangesExpression + */ + public ProductSearchFacetRangesExpression buildUnchecked() { + return new ProductSearchFacetRangesExpressionImpl(ranges); + } + + /** + * factory method for an instance of ProductSearchFacetRangesExpressionBuilder + * @return builder + */ + public static ProductSearchFacetRangesExpressionBuilder of() { + return new ProductSearchFacetRangesExpressionBuilder(); + } + + /** + * create builder for ProductSearchFacetRangesExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetRangesExpressionBuilder of(final ProductSearchFacetRangesExpression template) { + ProductSearchFacetRangesExpressionBuilder builder = new ProductSearchFacetRangesExpressionBuilder(); + builder.ranges = template.getRanges(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionImpl.java new file mode 100644 index 00000000000..adcff139652 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetRangesExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetRangesExpressionImpl implements ProductSearchFacetRangesExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchFacetRangesValue ranges; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetRangesExpressionImpl( + @JsonProperty("ranges") final com.commercetools.api.models.product_search.ProductSearchFacetRangesValue ranges) { + this.ranges = ranges; + } + + /** + * create empty instance + */ + public ProductSearchFacetRangesExpressionImpl() { + } + + /** + *

Definition of the ranges facet.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetRangesValue getRanges() { + return this.ranges; + } + + public void setRanges(final com.commercetools.api.models.product_search.ProductSearchFacetRangesValue ranges) { + this.ranges = ranges; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetRangesExpressionImpl that = (ProductSearchFacetRangesExpressionImpl) o; + + return new EqualsBuilder().append(ranges, that.ranges).append(ranges, that.ranges).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(ranges).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("ranges", ranges).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRange.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRange.java new file mode 100644 index 00000000000..8313a4a96d7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRange.java @@ -0,0 +1,154 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + *

Values for from and to must be a number or DateTime.

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

+ *     ProductSearchFacetRangesFacetRange productSearchFacetRangesFacetRange = ProductSearchFacetRangesFacetRange.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetRangesFacetRangeImpl.class) +public interface ProductSearchFacetRangesFacetRange { + + /** + *

Starting value of the bucket (inclusive).

+ * @return from + */ + + @JsonProperty("from") + public Object getFrom(); + + /** + *

Ending value of the bucket (non-inclusive).

+ * @return to + */ + + @JsonProperty("to") + public Object getTo(); + + /** + *

Key to assign the bucket.

+ * @return key + */ + + @JsonProperty("key") + public String getKey(); + + /** + *

Starting value of the bucket (inclusive).

+ * @param from value to be set + */ + + public void setFrom(final Object from); + + /** + *

Ending value of the bucket (non-inclusive).

+ * @param to value to be set + */ + + public void setTo(final Object to); + + /** + *

Key to assign the bucket.

+ * @param key value to be set + */ + + public void setKey(final String key); + + /** + * factory method + * @return instance of ProductSearchFacetRangesFacetRange + */ + public static ProductSearchFacetRangesFacetRange of() { + return new ProductSearchFacetRangesFacetRangeImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetRangesFacetRange + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetRangesFacetRange of(final ProductSearchFacetRangesFacetRange template) { + ProductSearchFacetRangesFacetRangeImpl instance = new ProductSearchFacetRangesFacetRangeImpl(); + instance.setFrom(template.getFrom()); + instance.setTo(template.getTo()); + instance.setKey(template.getKey()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetRangesFacetRange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetRangesFacetRange deepCopy( + @Nullable final ProductSearchFacetRangesFacetRange template) { + if (template == null) { + return null; + } + ProductSearchFacetRangesFacetRangeImpl instance = new ProductSearchFacetRangesFacetRangeImpl(); + instance.setFrom(template.getFrom()); + instance.setTo(template.getTo()); + instance.setKey(template.getKey()); + return instance; + } + + /** + * builder factory method for ProductSearchFacetRangesFacetRange + * @return builder + */ + public static ProductSearchFacetRangesFacetRangeBuilder builder() { + return ProductSearchFacetRangesFacetRangeBuilder.of(); + } + + /** + * create builder for ProductSearchFacetRangesFacetRange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetRangesFacetRangeBuilder builder(final ProductSearchFacetRangesFacetRange template) { + return ProductSearchFacetRangesFacetRangeBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetRangesFacetRange(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/product_search/ProductSearchFacetRangesFacetRangeBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeBuilder.java new file mode 100644 index 00000000000..4910186b67b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeBuilder.java @@ -0,0 +1,134 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetRangesFacetRangeBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetRangesFacetRange productSearchFacetRangesFacetRange = ProductSearchFacetRangesFacetRange.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetRangesFacetRangeBuilder implements Builder { + + @Nullable + private java.lang.Object from; + + @Nullable + private java.lang.Object to; + + @Nullable + private String key; + + /** + *

Starting value of the bucket (inclusive).

+ * @param from value to be set + * @return Builder + */ + + public ProductSearchFacetRangesFacetRangeBuilder from(@Nullable final java.lang.Object from) { + this.from = from; + return this; + } + + /** + *

Ending value of the bucket (non-inclusive).

+ * @param to value to be set + * @return Builder + */ + + public ProductSearchFacetRangesFacetRangeBuilder to(@Nullable final java.lang.Object to) { + this.to = to; + return this; + } + + /** + *

Key to assign the bucket.

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

Starting value of the bucket (inclusive).

+ * @return from + */ + + @Nullable + public java.lang.Object getFrom() { + return this.from; + } + + /** + *

Ending value of the bucket (non-inclusive).

+ * @return to + */ + + @Nullable + public java.lang.Object getTo() { + return this.to; + } + + /** + *

Key to assign the bucket.

+ * @return key + */ + + @Nullable + public String getKey() { + return this.key; + } + + /** + * builds ProductSearchFacetRangesFacetRange with checking for non-null required values + * @return ProductSearchFacetRangesFacetRange + */ + public ProductSearchFacetRangesFacetRange build() { + return new ProductSearchFacetRangesFacetRangeImpl(from, to, key); + } + + /** + * builds ProductSearchFacetRangesFacetRange without checking for non-null required values + * @return ProductSearchFacetRangesFacetRange + */ + public ProductSearchFacetRangesFacetRange buildUnchecked() { + return new ProductSearchFacetRangesFacetRangeImpl(from, to, key); + } + + /** + * factory method for an instance of ProductSearchFacetRangesFacetRangeBuilder + * @return builder + */ + public static ProductSearchFacetRangesFacetRangeBuilder of() { + return new ProductSearchFacetRangesFacetRangeBuilder(); + } + + /** + * create builder for ProductSearchFacetRangesFacetRange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetRangesFacetRangeBuilder of(final ProductSearchFacetRangesFacetRange template) { + ProductSearchFacetRangesFacetRangeBuilder builder = new ProductSearchFacetRangesFacetRangeBuilder(); + builder.from = template.getFrom(); + builder.to = template.getTo(); + builder.key = template.getKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeImpl.java new file mode 100644 index 00000000000..ac9e0517b4d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeImpl.java @@ -0,0 +1,116 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + *

Values for from and to must be a number or DateTime.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetRangesFacetRangeImpl implements ProductSearchFacetRangesFacetRange, ModelBase { + + private java.lang.Object from; + + private java.lang.Object to; + + private String key; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetRangesFacetRangeImpl(@JsonProperty("from") final java.lang.Object from, + @JsonProperty("to") final java.lang.Object to, @JsonProperty("key") final String key) { + this.from = from; + this.to = to; + this.key = key; + } + + /** + * create empty instance + */ + public ProductSearchFacetRangesFacetRangeImpl() { + } + + /** + *

Starting value of the bucket (inclusive).

+ */ + + public java.lang.Object getFrom() { + return this.from; + } + + /** + *

Ending value of the bucket (non-inclusive).

+ */ + + public java.lang.Object getTo() { + return this.to; + } + + /** + *

Key to assign the bucket.

+ */ + + public String getKey() { + return this.key; + } + + public void setFrom(final java.lang.Object from) { + this.from = from; + } + + public void setTo(final java.lang.Object to) { + this.to = to; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetRangesFacetRangeImpl that = (ProductSearchFacetRangesFacetRangeImpl) o; + + return new EqualsBuilder().append(from, that.from) + .append(to, that.to) + .append(key, that.key) + .append(from, that.from) + .append(to, that.to) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(from).append(to).append(key).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("from", from) + .append("to", to) + .append("key", key) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValue.java new file mode 100644 index 00000000000..6dbbfa731a2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValue.java @@ -0,0 +1,258 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetRangesValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetRangesValue productSearchFacetRangesValue = ProductSearchFacetRangesValue.builder()
+ *             .name("{name}")
+ *             .field("{field}")
+ *             .plusRanges(rangesBuilder -> rangesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetRangesValueImpl.class) +public interface ProductSearchFacetRangesValue { + + /** + *

Name to assign the ranges facet.

+ * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @return scope + */ + + @JsonProperty("scope") + public ProductSearchFacetEnumScope getScope(); + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @return filter + */ + @Valid + @JsonProperty("filter") + public ProductSearchQuery getFilter(); + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @return count + */ + + @JsonProperty("count") + public ProductSearchFacetEnumCount getCount(); + + /** + *

The field to facet on. Can be any searchable field on the Product.

+ * @return field + */ + @NotNull + @JsonProperty("field") + public String getField(); + + /** + *

Define ranges for the facet.

+ * @return ranges + */ + @NotNull + @Valid + @JsonProperty("ranges") + public List getRanges(); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @JsonProperty("language") + public String getLanguage(); + + /** + *

If the field is an Attribute, this must be the Attribute type.

+ * @return attributeType + */ + + @JsonProperty("attributeType") + public ProductSearchAttributeType getAttributeType(); + + /** + *

Name to assign the ranges facet.

+ * @param name value to be set + */ + + public void setName(final String name); + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @param scope value to be set + */ + + public void setScope(final ProductSearchFacetEnumScope scope); + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @param filter value to be set + */ + + public void setFilter(final ProductSearchQuery filter); + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @param count value to be set + */ + + public void setCount(final ProductSearchFacetEnumCount count); + + /** + *

The field to facet on. Can be any searchable field on the Product.

+ * @param field value to be set + */ + + public void setField(final String field); + + /** + *

Define ranges for the facet.

+ * @param ranges values to be set + */ + + @JsonIgnore + public void setRanges(final ProductSearchFacetRangesFacetRange... ranges); + + /** + *

Define ranges for the facet.

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

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + */ + + public void setLanguage(final String language); + + /** + *

If the field is an Attribute, this must be the Attribute type.

+ * @param attributeType value to be set + */ + + public void setAttributeType(final ProductSearchAttributeType attributeType); + + /** + * factory method + * @return instance of ProductSearchFacetRangesValue + */ + public static ProductSearchFacetRangesValue of() { + return new ProductSearchFacetRangesValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetRangesValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetRangesValue of(final ProductSearchFacetRangesValue template) { + ProductSearchFacetRangesValueImpl instance = new ProductSearchFacetRangesValueImpl(); + instance.setName(template.getName()); + instance.setScope(template.getScope()); + instance.setFilter(template.getFilter()); + instance.setCount(template.getCount()); + instance.setField(template.getField()); + instance.setRanges(template.getRanges()); + instance.setLanguage(template.getLanguage()); + instance.setAttributeType(template.getAttributeType()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetRangesValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetRangesValue deepCopy(@Nullable final ProductSearchFacetRangesValue template) { + if (template == null) { + return null; + } + ProductSearchFacetRangesValueImpl instance = new ProductSearchFacetRangesValueImpl(); + instance.setName(template.getName()); + instance.setScope(template.getScope()); + instance.setFilter( + com.commercetools.api.models.product_search.ProductSearchQuery.deepCopy(template.getFilter())); + instance.setCount(template.getCount()); + instance.setField(template.getField()); + instance.setRanges(Optional.ofNullable(template.getRanges()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRange::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setLanguage(template.getLanguage()); + instance.setAttributeType(template.getAttributeType()); + return instance; + } + + /** + * builder factory method for ProductSearchFacetRangesValue + * @return builder + */ + public static ProductSearchFacetRangesValueBuilder builder() { + return ProductSearchFacetRangesValueBuilder.of(); + } + + /** + * create builder for ProductSearchFacetRangesValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetRangesValueBuilder builder(final ProductSearchFacetRangesValue template) { + return ProductSearchFacetRangesValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetRangesValue(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/product_search/ProductSearchFacetRangesValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueBuilder.java new file mode 100644 index 00000000000..3ec645abc73 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueBuilder.java @@ -0,0 +1,374 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetRangesValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetRangesValue productSearchFacetRangesValue = ProductSearchFacetRangesValue.builder()
+ *             .name("{name}")
+ *             .field("{field}")
+ *             .plusRanges(rangesBuilder -> rangesBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetRangesValueBuilder implements Builder { + + private String name; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchQuery filter; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count; + + private String field; + + private java.util.List ranges; + + @Nullable + private String language; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + /** + *

Name to assign the ranges facet.

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

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @param scope value to be set + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder scope( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope) { + this.scope = scope; + return this; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

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

Additional filtering expression to apply to the search result before calculating the facet.

+ * @param builder function to build the filter value + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder withFilter( + Function builder) { + this.filter = builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()); + return this; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @param filter value to be set + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder filter( + @Nullable final com.commercetools.api.models.product_search.ProductSearchQuery filter) { + this.filter = filter; + return this; + } + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @param count value to be set + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder count( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count) { + this.count = count; + return this; + } + + /** + *

The field to facet on. Can be any searchable field on the Product.

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

Define ranges for the facet.

+ * @param ranges value to be set + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder ranges( + final com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRange... ranges) { + this.ranges = new ArrayList<>(Arrays.asList(ranges)); + return this; + } + + /** + *

Define ranges for the facet.

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

Define ranges for the facet.

+ * @param ranges value to be set + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder plusRanges( + final com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRange... ranges) { + if (this.ranges == null) { + this.ranges = new ArrayList<>(); + } + this.ranges.addAll(Arrays.asList(ranges)); + return this; + } + + /** + *

Define ranges for the facet.

+ * @param builder function to build the ranges value + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder plusRanges( + Function builder) { + if (this.ranges == null) { + this.ranges = new ArrayList<>(); + } + this.ranges.add( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRangeBuilder.of()) + .build()); + return this; + } + + /** + *

Define ranges for the facet.

+ * @param builder function to build the ranges value + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder withRanges( + Function builder) { + this.ranges = new ArrayList<>(); + this.ranges.add( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRangeBuilder.of()) + .build()); + return this; + } + + /** + *

Define ranges for the facet.

+ * @param builder function to build the ranges value + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder addRanges( + Function builder) { + return plusRanges( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRangeBuilder.of())); + } + + /** + *

Define ranges for the facet.

+ * @param builder function to build the ranges value + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder setRanges( + Function builder) { + return ranges( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRangeBuilder.of())); + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

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

If the field is an Attribute, this must be the Attribute type.

+ * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchFacetRangesValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + *

Name to assign the ranges facet.

+ * @return name + */ + + public String getName() { + return this.name; + } + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ * @return scope + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchFacetEnumScope getScope() { + return this.scope; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ * @return filter + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchQuery getFilter() { + return this.filter; + } + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ * @return count + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchFacetEnumCount getCount() { + return this.count; + } + + /** + *

The field to facet on. Can be any searchable field on the Product.

+ * @return field + */ + + public String getField() { + return this.field; + } + + /** + *

Define ranges for the facet.

+ * @return ranges + */ + + public java.util.List getRanges() { + return this.ranges; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @Nullable + public String getLanguage() { + return this.language; + } + + /** + *

If the field is an Attribute, this must be the Attribute type.

+ * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * builds ProductSearchFacetRangesValue with checking for non-null required values + * @return ProductSearchFacetRangesValue + */ + public ProductSearchFacetRangesValue build() { + Objects.requireNonNull(name, ProductSearchFacetRangesValue.class + ": name is missing"); + Objects.requireNonNull(field, ProductSearchFacetRangesValue.class + ": field is missing"); + Objects.requireNonNull(ranges, ProductSearchFacetRangesValue.class + ": ranges is missing"); + return new ProductSearchFacetRangesValueImpl(name, scope, filter, count, field, ranges, language, + attributeType); + } + + /** + * builds ProductSearchFacetRangesValue without checking for non-null required values + * @return ProductSearchFacetRangesValue + */ + public ProductSearchFacetRangesValue buildUnchecked() { + return new ProductSearchFacetRangesValueImpl(name, scope, filter, count, field, ranges, language, + attributeType); + } + + /** + * factory method for an instance of ProductSearchFacetRangesValueBuilder + * @return builder + */ + public static ProductSearchFacetRangesValueBuilder of() { + return new ProductSearchFacetRangesValueBuilder(); + } + + /** + * create builder for ProductSearchFacetRangesValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetRangesValueBuilder of(final ProductSearchFacetRangesValue template) { + ProductSearchFacetRangesValueBuilder builder = new ProductSearchFacetRangesValueBuilder(); + builder.name = template.getName(); + builder.scope = template.getScope(); + builder.filter = template.getFilter(); + builder.count = template.getCount(); + builder.field = template.getField(); + builder.ranges = template.getRanges(); + builder.language = template.getLanguage(); + builder.attributeType = template.getAttributeType(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueImpl.java new file mode 100644 index 00000000000..0f583a37d79 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueImpl.java @@ -0,0 +1,227 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetRangesValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetRangesValueImpl implements ProductSearchFacetRangesValue, ModelBase { + + private String name; + + private com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope; + + private com.commercetools.api.models.product_search.ProductSearchQuery filter; + + private com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count; + + private String field; + + private java.util.List ranges; + + private String language; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetRangesValueImpl(@JsonProperty("name") final String name, + @JsonProperty("scope") final com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope, + @JsonProperty("filter") final com.commercetools.api.models.product_search.ProductSearchQuery filter, + @JsonProperty("count") final com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count, + @JsonProperty("field") final String field, + @JsonProperty("ranges") final java.util.List ranges, + @JsonProperty("language") final String language, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.name = name; + this.scope = scope; + this.filter = filter; + this.count = count; + this.field = field; + this.ranges = ranges; + this.language = language; + this.attributeType = attributeType; + } + + /** + * create empty instance + */ + public ProductSearchFacetRangesValueImpl() { + } + + /** + *

Name to assign the ranges facet.

+ */ + + public String getName() { + return this.name; + } + + /** + *

Whether the facet must consider only the Products resulting from the search (query) or all the Products (all).

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetEnumScope getScope() { + return this.scope; + } + + /** + *

Additional filtering expression to apply to the search result before calculating the facet.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchQuery getFilter() { + return this.filter; + } + + /** + *

Specify whether to count Products (products) or Product Variants (variants).

+ */ + + public com.commercetools.api.models.product_search.ProductSearchFacetEnumCount getCount() { + return this.count; + } + + /** + *

The field to facet on. Can be any searchable field on the Product.

+ */ + + public String getField() { + return this.field; + } + + /** + *

Define ranges for the facet.

+ */ + + public java.util.List getRanges() { + return this.ranges; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ */ + + public String getLanguage() { + return this.language; + } + + /** + *

If the field is an Attribute, this must be the Attribute type.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + public void setName(final String name) { + this.name = name; + } + + public void setScope(final com.commercetools.api.models.product_search.ProductSearchFacetEnumScope scope) { + this.scope = scope; + } + + public void setFilter(final com.commercetools.api.models.product_search.ProductSearchQuery filter) { + this.filter = filter; + } + + public void setCount(final com.commercetools.api.models.product_search.ProductSearchFacetEnumCount count) { + this.count = count; + } + + public void setField(final String field) { + this.field = field; + } + + public void setRanges( + final com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRange... ranges) { + this.ranges = new ArrayList<>(Arrays.asList(ranges)); + } + + public void setRanges( + final java.util.List ranges) { + this.ranges = ranges; + } + + public void setLanguage(final String language) { + this.language = language; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetRangesValueImpl that = (ProductSearchFacetRangesValueImpl) o; + + return new EqualsBuilder().append(name, that.name) + .append(scope, that.scope) + .append(filter, that.filter) + .append(count, that.count) + .append(field, that.field) + .append(ranges, that.ranges) + .append(language, that.language) + .append(attributeType, that.attributeType) + .append(name, that.name) + .append(scope, that.scope) + .append(filter, that.filter) + .append(count, that.count) + .append(field, that.field) + .append(ranges, that.ranges) + .append(language, that.language) + .append(attributeType, that.attributeType) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(name) + .append(scope) + .append(filter) + .append(count) + .append(field) + .append(ranges) + .append(language) + .append(attributeType) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name) + .append("scope", scope) + .append("filter", filter) + .append("count", count) + .append("field", field) + .append("ranges", ranges) + .append("language", language) + .append("attributeType", attributeType) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResult.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResult.java new file mode 100644 index 00000000000..6c5cc45d56b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResult.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetResult + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetResult productSearchFacetResult = ProductSearchFacetResult.builder()
+ *             .plusResults(resultsBuilder -> resultsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetResultImpl.class) +public interface ProductSearchFacetResult { + + /** + *

Results of the facets.

+ * @return results + */ + @NotNull + @Valid + @JsonProperty("results") + public List getResults(); + + /** + *

Results of the facets.

+ * @param results values to be set + */ + + @JsonIgnore + public void setResults(final ProductSearchFacetResultExpression... results); + + /** + *

Results of the facets.

+ * @param results values to be set + */ + + public void setResults(final List results); + + /** + * factory method + * @return instance of ProductSearchFacetResult + */ + public static ProductSearchFacetResult of() { + return new ProductSearchFacetResultImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetResult + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetResult of(final ProductSearchFacetResult template) { + ProductSearchFacetResultImpl instance = new ProductSearchFacetResultImpl(); + instance.setResults(template.getResults()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetResult + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetResult deepCopy(@Nullable final ProductSearchFacetResult template) { + if (template == null) { + return null; + } + ProductSearchFacetResultImpl instance = new ProductSearchFacetResultImpl(); + instance.setResults(Optional.ofNullable(template.getResults()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchFacetResultExpression::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductSearchFacetResult + * @return builder + */ + public static ProductSearchFacetResultBuilder builder() { + return ProductSearchFacetResultBuilder.of(); + } + + /** + * create builder for ProductSearchFacetResult instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetResultBuilder builder(final ProductSearchFacetResult template) { + return ProductSearchFacetResultBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetResult(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/product_search/ProductSearchFacetResultBucket.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucket.java new file mode 100644 index 00000000000..ee22f34f0f0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucket.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetResultBucket + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetResultBucket productSearchFacetResultBucket = ProductSearchFacetResultBucket.builder()
+ *             .key("{key}")
+ *             .count(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetResultBucketImpl.class) +public interface ProductSearchFacetResultBucket { + + /** + *

Key of the bucket.

+ * @return key + */ + @NotNull + @JsonProperty("key") + public String getKey(); + + /** + *

Number of values in the bucket.

+ * @return count + */ + @NotNull + @JsonProperty("count") + public Integer getCount(); + + /** + *

Key of the bucket.

+ * @param key value to be set + */ + + public void setKey(final String key); + + /** + *

Number of values in the bucket.

+ * @param count value to be set + */ + + public void setCount(final Integer count); + + /** + * factory method + * @return instance of ProductSearchFacetResultBucket + */ + public static ProductSearchFacetResultBucket of() { + return new ProductSearchFacetResultBucketImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetResultBucket + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetResultBucket of(final ProductSearchFacetResultBucket template) { + ProductSearchFacetResultBucketImpl instance = new ProductSearchFacetResultBucketImpl(); + instance.setKey(template.getKey()); + instance.setCount(template.getCount()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetResultBucket + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetResultBucket deepCopy(@Nullable final ProductSearchFacetResultBucket template) { + if (template == null) { + return null; + } + ProductSearchFacetResultBucketImpl instance = new ProductSearchFacetResultBucketImpl(); + instance.setKey(template.getKey()); + instance.setCount(template.getCount()); + return instance; + } + + /** + * builder factory method for ProductSearchFacetResultBucket + * @return builder + */ + public static ProductSearchFacetResultBucketBuilder builder() { + return ProductSearchFacetResultBucketBuilder.of(); + } + + /** + * create builder for ProductSearchFacetResultBucket instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetResultBucketBuilder builder(final ProductSearchFacetResultBucket template) { + return ProductSearchFacetResultBucketBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetResultBucket(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/product_search/ProductSearchFacetResultBucketBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketBuilder.java new file mode 100644 index 00000000000..77f1a084e15 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketBuilder.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetResultBucketBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetResultBucket productSearchFacetResultBucket = ProductSearchFacetResultBucket.builder()
+ *             .key("{key}")
+ *             .count(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetResultBucketBuilder implements Builder { + + private String key; + + private Integer count; + + /** + *

Key of the bucket.

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

Number of values in the bucket.

+ * @param count value to be set + * @return Builder + */ + + public ProductSearchFacetResultBucketBuilder count(final Integer count) { + this.count = count; + return this; + } + + /** + *

Key of the bucket.

+ * @return key + */ + + public String getKey() { + return this.key; + } + + /** + *

Number of values in the bucket.

+ * @return count + */ + + public Integer getCount() { + return this.count; + } + + /** + * builds ProductSearchFacetResultBucket with checking for non-null required values + * @return ProductSearchFacetResultBucket + */ + public ProductSearchFacetResultBucket build() { + Objects.requireNonNull(key, ProductSearchFacetResultBucket.class + ": key is missing"); + Objects.requireNonNull(count, ProductSearchFacetResultBucket.class + ": count is missing"); + return new ProductSearchFacetResultBucketImpl(key, count); + } + + /** + * builds ProductSearchFacetResultBucket without checking for non-null required values + * @return ProductSearchFacetResultBucket + */ + public ProductSearchFacetResultBucket buildUnchecked() { + return new ProductSearchFacetResultBucketImpl(key, count); + } + + /** + * factory method for an instance of ProductSearchFacetResultBucketBuilder + * @return builder + */ + public static ProductSearchFacetResultBucketBuilder of() { + return new ProductSearchFacetResultBucketBuilder(); + } + + /** + * create builder for ProductSearchFacetResultBucket instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetResultBucketBuilder of(final ProductSearchFacetResultBucket template) { + ProductSearchFacetResultBucketBuilder builder = new ProductSearchFacetResultBucketBuilder(); + builder.key = template.getKey(); + builder.count = template.getCount(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketImpl.java similarity index 60% rename from commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueImpl.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketImpl.java index 248be829df2..061ec9bda0b 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketImpl.java @@ -1,5 +1,5 @@ -package com.commercetools.history.models.common; +package com.commercetools.api.models.product_search; import java.time.*; import java.util.*; @@ -17,32 +17,33 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

A plain enum value must be unique within the enum, else a DuplicateEnumValues error is returned.

+ * ProductSearchFacetResultBucket */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class AttributePlainEnumValueImpl implements AttributePlainEnumValue, ModelBase { +public class ProductSearchFacetResultBucketImpl implements ProductSearchFacetResultBucket, ModelBase { private String key; - private String label; + private Integer count; /** * create instance with all properties */ @JsonCreator - AttributePlainEnumValueImpl(@JsonProperty("key") final String key, @JsonProperty("label") final String label) { + ProductSearchFacetResultBucketImpl(@JsonProperty("key") final String key, + @JsonProperty("count") final Integer count) { this.key = key; - this.label = label; + this.count = count; } /** * create empty instance */ - public AttributePlainEnumValueImpl() { + public ProductSearchFacetResultBucketImpl() { } /** - *

Key of the value used as a programmatic identifier, for example in facets & filters.

+ *

Key of the bucket.

*/ public String getKey() { @@ -50,19 +51,19 @@ public String getKey() { } /** - *

Descriptive label of the value.

+ *

Number of values in the bucket.

*/ - public String getLabel() { - return this.label; + public Integer getCount() { + return this.count; } public void setKey(final String key) { this.key = key; } - public void setLabel(final String label) { - this.label = label; + public void setCount(final Integer count) { + this.count = count; } @Override @@ -73,24 +74,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; - AttributePlainEnumValueImpl that = (AttributePlainEnumValueImpl) o; + ProductSearchFacetResultBucketImpl that = (ProductSearchFacetResultBucketImpl) o; return new EqualsBuilder().append(key, that.key) - .append(label, that.label) + .append(count, that.count) .append(key, that.key) - .append(label, that.label) + .append(count, that.count) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(key).append(label).toHashCode(); + return new HashCodeBuilder(17, 37).append(key).append(count).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("key", key) - .append("label", label) + .append("count", count) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBuilder.java new file mode 100644 index 00000000000..fffd7cc0e2b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBuilder.java @@ -0,0 +1,167 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetResultBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetResult productSearchFacetResult = ProductSearchFacetResult.builder()
+ *             .plusResults(resultsBuilder -> resultsBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetResultBuilder implements Builder { + + private java.util.List results; + + /** + *

Results of the facets.

+ * @param results value to be set + * @return Builder + */ + + public ProductSearchFacetResultBuilder results( + final com.commercetools.api.models.product_search.ProductSearchFacetResultExpression... results) { + this.results = new ArrayList<>(Arrays.asList(results)); + return this; + } + + /** + *

Results of the facets.

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

Results of the facets.

+ * @param results value to be set + * @return Builder + */ + + public ProductSearchFacetResultBuilder plusResults( + final com.commercetools.api.models.product_search.ProductSearchFacetResultExpression... results) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.addAll(Arrays.asList(results)); + return this; + } + + /** + *

Results of the facets.

+ * @param builder function to build the results value + * @return Builder + */ + + public ProductSearchFacetResultBuilder plusResults( + Function builder) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.add( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetResultExpressionBuilder.of()) + .build()); + return this; + } + + /** + *

Results of the facets.

+ * @param builder function to build the results value + * @return Builder + */ + + public ProductSearchFacetResultBuilder withResults( + Function builder) { + this.results = new ArrayList<>(); + this.results.add( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetResultExpressionBuilder.of()) + .build()); + return this; + } + + /** + *

Results of the facets.

+ * @param builder function to build the results value + * @return Builder + */ + + public ProductSearchFacetResultBuilder addResults( + Function builder) { + return plusResults( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetResultExpressionBuilder.of())); + } + + /** + *

Results of the facets.

+ * @param builder function to build the results value + * @return Builder + */ + + public ProductSearchFacetResultBuilder setResults( + Function builder) { + return results( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetResultExpressionBuilder.of())); + } + + /** + *

Results of the facets.

+ * @return results + */ + + public java.util.List getResults() { + return this.results; + } + + /** + * builds ProductSearchFacetResult with checking for non-null required values + * @return ProductSearchFacetResult + */ + public ProductSearchFacetResult build() { + Objects.requireNonNull(results, ProductSearchFacetResult.class + ": results is missing"); + return new ProductSearchFacetResultImpl(results); + } + + /** + * builds ProductSearchFacetResult without checking for non-null required values + * @return ProductSearchFacetResult + */ + public ProductSearchFacetResult buildUnchecked() { + return new ProductSearchFacetResultImpl(results); + } + + /** + * factory method for an instance of ProductSearchFacetResultBuilder + * @return builder + */ + public static ProductSearchFacetResultBuilder of() { + return new ProductSearchFacetResultBuilder(); + } + + /** + * create builder for ProductSearchFacetResult instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetResultBuilder of(final ProductSearchFacetResult template) { + ProductSearchFacetResultBuilder builder = new ProductSearchFacetResultBuilder(); + builder.results = template.getResults(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCount.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCount.java new file mode 100644 index 00000000000..3553189dba3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCount.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetResultCount + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetResultCount productSearchFacetResultCount = ProductSearchFacetResultCount.builder()
+ *             .name("{name}")
+ *             .value(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetResultCountImpl.class) +public interface ProductSearchFacetResultCount extends ProductSearchFacetResultExpression { + + /** + *

Number of Products (or Product Variants) matching the query.

+ * @return value + */ + @NotNull + @JsonProperty("value") + public Long getValue(); + + /** + *

Number of Products (or Product Variants) matching the query.

+ * @param value value to be set + */ + + public void setValue(final Long value); + + /** + * factory method + * @return instance of ProductSearchFacetResultCount + */ + public static ProductSearchFacetResultCount of() { + return new ProductSearchFacetResultCountImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetResultCount + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetResultCount of(final ProductSearchFacetResultCount template) { + ProductSearchFacetResultCountImpl instance = new ProductSearchFacetResultCountImpl(); + instance.setName(template.getName()); + instance.setValue(template.getValue()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetResultCount + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetResultCount deepCopy(@Nullable final ProductSearchFacetResultCount template) { + if (template == null) { + return null; + } + ProductSearchFacetResultCountImpl instance = new ProductSearchFacetResultCountImpl(); + instance.setName(template.getName()); + instance.setValue(template.getValue()); + return instance; + } + + /** + * builder factory method for ProductSearchFacetResultCount + * @return builder + */ + public static ProductSearchFacetResultCountBuilder builder() { + return ProductSearchFacetResultCountBuilder.of(); + } + + /** + * create builder for ProductSearchFacetResultCount instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetResultCountBuilder builder(final ProductSearchFacetResultCount template) { + return ProductSearchFacetResultCountBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetResultCount(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/product_search/ProductSearchFacetResultCountBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountBuilder.java new file mode 100644 index 00000000000..b9a16ac9ec3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountBuilder.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetResultCountBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetResultCount productSearchFacetResultCount = ProductSearchFacetResultCount.builder()
+ *             .name("{name}")
+ *             .value(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetResultCountBuilder implements Builder { + + private String name; + + private Long value; + + /** + *

Name of the facet.

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

Number of Products (or Product Variants) matching the query.

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

Name of the facet.

+ * @return name + */ + + public String getName() { + return this.name; + } + + /** + *

Number of Products (or Product Variants) matching the query.

+ * @return value + */ + + public Long getValue() { + return this.value; + } + + /** + * builds ProductSearchFacetResultCount with checking for non-null required values + * @return ProductSearchFacetResultCount + */ + public ProductSearchFacetResultCount build() { + Objects.requireNonNull(name, ProductSearchFacetResultCount.class + ": name is missing"); + Objects.requireNonNull(value, ProductSearchFacetResultCount.class + ": value is missing"); + return new ProductSearchFacetResultCountImpl(name, value); + } + + /** + * builds ProductSearchFacetResultCount without checking for non-null required values + * @return ProductSearchFacetResultCount + */ + public ProductSearchFacetResultCount buildUnchecked() { + return new ProductSearchFacetResultCountImpl(name, value); + } + + /** + * factory method for an instance of ProductSearchFacetResultCountBuilder + * @return builder + */ + public static ProductSearchFacetResultCountBuilder of() { + return new ProductSearchFacetResultCountBuilder(); + } + + /** + * create builder for ProductSearchFacetResultCount instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetResultCountBuilder of(final ProductSearchFacetResultCount template) { + ProductSearchFacetResultCountBuilder builder = new ProductSearchFacetResultCountBuilder(); + builder.name = template.getName(); + builder.value = template.getValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountImpl.java similarity index 53% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionImpl.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountImpl.java index 2fc74043460..85741595df4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountImpl.java @@ -1,5 +1,5 @@ -package com.commercetools.api.models.approval_flow; +package com.commercetools.api.models.product_search; import java.time.*; import java.util.*; @@ -17,45 +17,33 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * ApprovalFlowSetCustomFieldAction + * ProductSearchFacetResultCount */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class ApprovalFlowSetCustomFieldActionImpl implements ApprovalFlowSetCustomFieldAction, ModelBase { - - private String action; +public class ProductSearchFacetResultCountImpl implements ProductSearchFacetResultCount, ModelBase { private String name; - private java.lang.Object value; + private Long value; /** * create instance with all properties */ @JsonCreator - ApprovalFlowSetCustomFieldActionImpl(@JsonProperty("name") final String name, - @JsonProperty("value") final java.lang.Object value) { + ProductSearchFacetResultCountImpl(@JsonProperty("name") final String name, + @JsonProperty("value") final Long value) { this.name = name; this.value = value; - this.action = SET_CUSTOM_FIELD; } /** * create empty instance */ - public ApprovalFlowSetCustomFieldActionImpl() { - this.action = SET_CUSTOM_FIELD; + public ProductSearchFacetResultCountImpl() { } /** - * - */ - - public String getAction() { - return this.action; - } - - /** - *

Name of the Custom Field.

+ *

Name of the facet.

*/ public String getName() { @@ -63,10 +51,10 @@ public String getName() { } /** - *

If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

+ *

Number of Products (or Product Variants) matching the query.

*/ - public java.lang.Object getValue() { + public Long getValue() { return this.value; } @@ -74,7 +62,7 @@ public void setName(final String name) { this.name = name; } - public void setValue(final java.lang.Object value) { + public void setValue(final Long value) { this.value = value; } @@ -86,12 +74,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; - ApprovalFlowSetCustomFieldActionImpl that = (ApprovalFlowSetCustomFieldActionImpl) o; + ProductSearchFacetResultCountImpl that = (ProductSearchFacetResultCountImpl) o; - return new EqualsBuilder().append(action, that.action) - .append(name, that.name) + return new EqualsBuilder().append(name, that.name) .append(value, that.value) - .append(action, that.action) .append(name, that.name) .append(value, that.value) .isEquals(); @@ -99,13 +85,12 @@ public boolean equals(Object o) { @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(action).append(name).append(value).toHashCode(); + return new HashCodeBuilder(17, 37).append(name).append(value).toHashCode(); } @Override public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) - .append("name", name) + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name) .append("value", value) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpression.java new file mode 100644 index 00000000000..e91959a4b41 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpression.java @@ -0,0 +1,130 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetResultExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetResultExpression productSearchFacetResultExpression = ProductSearchFacetResultExpression.builder()
+ *             .name("{name}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFacetResultExpressionImpl.class) +public interface ProductSearchFacetResultExpression { + + /** + *

Name of the facet.

+ * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *

Name of the facet.

+ * @param name value to be set + */ + + public void setName(final String name); + + /** + * factory method + * @return instance of ProductSearchFacetResultExpression + */ + public static ProductSearchFacetResultExpression of() { + return new ProductSearchFacetResultExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFacetResultExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFacetResultExpression of(final ProductSearchFacetResultExpression template) { + ProductSearchFacetResultExpressionImpl instance = new ProductSearchFacetResultExpressionImpl(); + instance.setName(template.getName()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFacetResultExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFacetResultExpression deepCopy( + @Nullable final ProductSearchFacetResultExpression template) { + if (template == null) { + return null; + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchFacetBucketResult) { + return com.commercetools.api.models.product_search.ProductSearchFacetBucketResult + .deepCopy((com.commercetools.api.models.product_search.ProductSearchFacetBucketResult) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchFacetResultCount) { + return com.commercetools.api.models.product_search.ProductSearchFacetResultCount + .deepCopy((com.commercetools.api.models.product_search.ProductSearchFacetResultCount) template); + } + ProductSearchFacetResultExpressionImpl instance = new ProductSearchFacetResultExpressionImpl(); + instance.setName(template.getName()); + return instance; + } + + /** + * builder factory method for ProductSearchFacetResultExpression + * @return builder + */ + public static ProductSearchFacetResultExpressionBuilder builder() { + return ProductSearchFacetResultExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchFacetResultExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetResultExpressionBuilder builder(final ProductSearchFacetResultExpression template) { + return ProductSearchFacetResultExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFacetResultExpression(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/product_search/ProductSearchFacetResultExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionBuilder.java new file mode 100644 index 00000000000..3ff90f1f6d5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionBuilder.java @@ -0,0 +1,82 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetResultExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFacetResultExpression productSearchFacetResultExpression = ProductSearchFacetResultExpression.builder()
+ *             .name("{name}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetResultExpressionBuilder implements Builder { + + private String name; + + /** + *

Name of the facet.

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

Name of the facet.

+ * @return name + */ + + public String getName() { + return this.name; + } + + /** + * builds ProductSearchFacetResultExpression with checking for non-null required values + * @return ProductSearchFacetResultExpression + */ + public ProductSearchFacetResultExpression build() { + Objects.requireNonNull(name, ProductSearchFacetResultExpression.class + ": name is missing"); + return new ProductSearchFacetResultExpressionImpl(name); + } + + /** + * builds ProductSearchFacetResultExpression without checking for non-null required values + * @return ProductSearchFacetResultExpression + */ + public ProductSearchFacetResultExpression buildUnchecked() { + return new ProductSearchFacetResultExpressionImpl(name); + } + + /** + * factory method for an instance of ProductSearchFacetResultExpressionBuilder + * @return builder + */ + public static ProductSearchFacetResultExpressionBuilder of() { + return new ProductSearchFacetResultExpressionBuilder(); + } + + /** + * create builder for ProductSearchFacetResultExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFacetResultExpressionBuilder of(final ProductSearchFacetResultExpression template) { + ProductSearchFacetResultExpressionBuilder builder = new ProductSearchFacetResultExpressionBuilder(); + builder.name = template.getName(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionImpl.java new file mode 100644 index 00000000000..2e86656e634 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionImpl.java @@ -0,0 +1,76 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetResultExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetResultExpressionImpl implements ProductSearchFacetResultExpression, ModelBase { + + private String name; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetResultExpressionImpl(@JsonProperty("name") final String name) { + this.name = name; + } + + /** + * create empty instance + */ + public ProductSearchFacetResultExpressionImpl() { + } + + /** + *

Name of the facet.

+ */ + + public String getName() { + return this.name; + } + + public void setName(final String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetResultExpressionImpl that = (ProductSearchFacetResultExpressionImpl) o; + + return new EqualsBuilder().append(name, that.name).append(name, that.name).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(name).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultImpl.java new file mode 100644 index 00000000000..e1c30267a79 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultImpl.java @@ -0,0 +1,83 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFacetResult + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFacetResultImpl implements ProductSearchFacetResult, ModelBase { + + private java.util.List results; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFacetResultImpl( + @JsonProperty("results") final java.util.List results) { + this.results = results; + } + + /** + * create empty instance + */ + public ProductSearchFacetResultImpl() { + } + + /** + *

Results of the facets.

+ */ + + public java.util.List getResults() { + return this.results; + } + + public void setResults( + final com.commercetools.api.models.product_search.ProductSearchFacetResultExpression... results) { + this.results = new ArrayList<>(Arrays.asList(results)); + } + + public void setResults( + final java.util.List results) { + this.results = results; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFacetResultImpl that = (ProductSearchFacetResultImpl) o; + + return new EqualsBuilder().append(results, that.results).append(results, that.results).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(results).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("results", results).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetScope.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetScope.java new file mode 100644 index 00000000000..b04a66d6e4a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetScope.java @@ -0,0 +1,112 @@ + +package com.commercetools.api.models.product_search; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFacetScope + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface ProductSearchFacetScope extends JsonEnum { + + ProductSearchFacetScope ALL = ProductSearchFacetScopeEnum.ALL; + + ProductSearchFacetScope QUERY = ProductSearchFacetScopeEnum.QUERY; + + /** + * possible values of ProductSearchFacetScope + */ + enum ProductSearchFacetScopeEnum implements ProductSearchFacetScope { + /** + * all + */ + ALL("all"), + + /** + * query + */ + QUERY("query"); + private final String jsonName; + + private ProductSearchFacetScopeEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of ProductSearchFacetScope + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static ProductSearchFacetScope findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ProductSearchFacetScope() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static ProductSearchFacetScope[] values() { + return ProductSearchFacetScopeEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpression.java new file mode 100644 index 00000000000..15acec5e2fe --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpression.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFilterExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFilterExpression productSearchFilterExpression = ProductSearchFilterExpression.builder()
+ *             .plusFilter(filterBuilder -> filterBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFilterExpressionImpl.class) +public interface ProductSearchFilterExpression extends ProductSearchCompoundExpression { + + /** + * + * @return filter + */ + @NotNull + @Valid + @JsonProperty("filter") + public List getFilter(); + + /** + * set filter + * @param filter values to be set + */ + + @JsonIgnore + public void setFilter(final ProductSearchQueryExpression... filter); + + /** + * set filter + * @param filter values to be set + */ + + public void setFilter(final List filter); + + /** + * factory method + * @return instance of ProductSearchFilterExpression + */ + public static ProductSearchFilterExpression of() { + return new ProductSearchFilterExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFilterExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFilterExpression of(final ProductSearchFilterExpression template) { + ProductSearchFilterExpressionImpl instance = new ProductSearchFilterExpressionImpl(); + instance.setFilter(template.getFilter()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFilterExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFilterExpression deepCopy(@Nullable final ProductSearchFilterExpression template) { + if (template == null) { + return null; + } + ProductSearchFilterExpressionImpl instance = new ProductSearchFilterExpressionImpl(); + instance.setFilter(Optional.ofNullable(template.getFilter()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchQueryExpression::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductSearchFilterExpression + * @return builder + */ + public static ProductSearchFilterExpressionBuilder builder() { + return ProductSearchFilterExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchFilterExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFilterExpressionBuilder builder(final ProductSearchFilterExpression template) { + return ProductSearchFilterExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFilterExpression(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/product_search/ProductSearchFilterExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionBuilder.java new file mode 100644 index 00000000000..74cca6f4c32 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionBuilder.java @@ -0,0 +1,167 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFilterExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFilterExpression productSearchFilterExpression = ProductSearchFilterExpression.builder()
+ *             .plusFilter(filterBuilder -> filterBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFilterExpressionBuilder implements Builder { + + private java.util.List filter; + + /** + * set values to the filter + * @param filter value to be set + * @return Builder + */ + + public ProductSearchFilterExpressionBuilder filter( + final com.commercetools.api.models.product_search.ProductSearchQueryExpression... filter) { + this.filter = new ArrayList<>(Arrays.asList(filter)); + return this; + } + + /** + * set value to the filter + * @param filter value to be set + * @return Builder + */ + + public ProductSearchFilterExpressionBuilder filter( + final java.util.List filter) { + this.filter = filter; + return this; + } + + /** + * add values to the filter + * @param filter value to be set + * @return Builder + */ + + public ProductSearchFilterExpressionBuilder plusFilter( + final com.commercetools.api.models.product_search.ProductSearchQueryExpression... filter) { + if (this.filter == null) { + this.filter = new ArrayList<>(); + } + this.filter.addAll(Arrays.asList(filter)); + return this; + } + + /** + * add the value to the filter using the builder function + * @param builder function to build the filter value + * @return Builder + */ + + public ProductSearchFilterExpressionBuilder plusFilter( + Function builder) { + if (this.filter == null) { + this.filter = new ArrayList<>(); + } + this.filter + .add(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryExpressionBuilder.of()) + .build()); + return this; + } + + /** + * set the value to the filter using the builder function + * @param builder function to build the filter value + * @return Builder + */ + + public ProductSearchFilterExpressionBuilder withFilter( + Function builder) { + this.filter = new ArrayList<>(); + this.filter + .add(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryExpressionBuilder.of()) + .build()); + return this; + } + + /** + * add the value to the filter using the builder function + * @param builder function to build the filter value + * @return Builder + */ + + public ProductSearchFilterExpressionBuilder addFilter( + Function builder) { + return plusFilter( + builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryExpressionBuilder.of())); + } + + /** + * set the value to the filter using the builder function + * @param builder function to build the filter value + * @return Builder + */ + + public ProductSearchFilterExpressionBuilder setFilter( + Function builder) { + return filter( + builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryExpressionBuilder.of())); + } + + /** + * value of filter} + * @return filter + */ + + public java.util.List getFilter() { + return this.filter; + } + + /** + * builds ProductSearchFilterExpression with checking for non-null required values + * @return ProductSearchFilterExpression + */ + public ProductSearchFilterExpression build() { + Objects.requireNonNull(filter, ProductSearchFilterExpression.class + ": filter is missing"); + return new ProductSearchFilterExpressionImpl(filter); + } + + /** + * builds ProductSearchFilterExpression without checking for non-null required values + * @return ProductSearchFilterExpression + */ + public ProductSearchFilterExpression buildUnchecked() { + return new ProductSearchFilterExpressionImpl(filter); + } + + /** + * factory method for an instance of ProductSearchFilterExpressionBuilder + * @return builder + */ + public static ProductSearchFilterExpressionBuilder of() { + return new ProductSearchFilterExpressionBuilder(); + } + + /** + * create builder for ProductSearchFilterExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFilterExpressionBuilder of(final ProductSearchFilterExpression template) { + ProductSearchFilterExpressionBuilder builder = new ProductSearchFilterExpressionBuilder(); + builder.filter = template.getFilter(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionImpl.java new file mode 100644 index 00000000000..cf610138499 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionImpl.java @@ -0,0 +1,82 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFilterExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFilterExpressionImpl implements ProductSearchFilterExpression, ModelBase { + + private java.util.List filter; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFilterExpressionImpl( + @JsonProperty("filter") final java.util.List filter) { + this.filter = filter; + } + + /** + * create empty instance + */ + public ProductSearchFilterExpressionImpl() { + } + + /** + * + */ + + public java.util.List getFilter() { + return this.filter; + } + + public void setFilter(final com.commercetools.api.models.product_search.ProductSearchQueryExpression... filter) { + this.filter = new ArrayList<>(Arrays.asList(filter)); + } + + public void setFilter( + final java.util.List filter) { + this.filter = filter; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFilterExpressionImpl that = (ProductSearchFilterExpressionImpl) o; + + return new EqualsBuilder().append(filter, that.filter).append(filter, that.filter).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(filter).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("filter", filter).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpression.java new file mode 100644 index 00000000000..251cc4765f2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpression.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFullTextExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFullTextExpression productSearchFullTextExpression = ProductSearchFullTextExpression.builder()
+ *             .fullText(fullTextBuilder -> fullTextBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFullTextExpressionImpl.class) +public interface ProductSearchFullTextExpression extends ProductSearchQueryExpression { + + /** + * + * @return fullText + */ + @NotNull + @Valid + @JsonProperty("fullText") + public ProductSearchFullTextValue getFullText(); + + /** + * set fullText + * @param fullText value to be set + */ + + public void setFullText(final ProductSearchFullTextValue fullText); + + /** + * factory method + * @return instance of ProductSearchFullTextExpression + */ + public static ProductSearchFullTextExpression of() { + return new ProductSearchFullTextExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFullTextExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFullTextExpression of(final ProductSearchFullTextExpression template) { + ProductSearchFullTextExpressionImpl instance = new ProductSearchFullTextExpressionImpl(); + instance.setFullText(template.getFullText()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFullTextExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFullTextExpression deepCopy(@Nullable final ProductSearchFullTextExpression template) { + if (template == null) { + return null; + } + ProductSearchFullTextExpressionImpl instance = new ProductSearchFullTextExpressionImpl(); + instance.setFullText( + com.commercetools.api.models.product_search.ProductSearchFullTextValue.deepCopy(template.getFullText())); + return instance; + } + + /** + * builder factory method for ProductSearchFullTextExpression + * @return builder + */ + public static ProductSearchFullTextExpressionBuilder builder() { + return ProductSearchFullTextExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchFullTextExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFullTextExpressionBuilder builder(final ProductSearchFullTextExpression template) { + return ProductSearchFullTextExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFullTextExpression(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/product_search/ProductSearchFullTextExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionBuilder.java new file mode 100644 index 00000000000..141a7aed0f4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionBuilder.java @@ -0,0 +1,111 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFullTextExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFullTextExpression productSearchFullTextExpression = ProductSearchFullTextExpression.builder()
+ *             .fullText(fullTextBuilder -> fullTextBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFullTextExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchFullTextValue fullText; + + /** + * set the value to the fullText using the builder function + * @param builder function to build the fullText value + * @return Builder + */ + + public ProductSearchFullTextExpressionBuilder fullText( + Function builder) { + this.fullText = builder + .apply(com.commercetools.api.models.product_search.ProductSearchFullTextValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the fullText using the builder function + * @param builder function to build the fullText value + * @return Builder + */ + + public ProductSearchFullTextExpressionBuilder withFullText( + Function builder) { + this.fullText = builder + .apply(com.commercetools.api.models.product_search.ProductSearchFullTextValueBuilder.of()); + return this; + } + + /** + * set the value to the fullText + * @param fullText value to be set + * @return Builder + */ + + public ProductSearchFullTextExpressionBuilder fullText( + final com.commercetools.api.models.product_search.ProductSearchFullTextValue fullText) { + this.fullText = fullText; + return this; + } + + /** + * value of fullText} + * @return fullText + */ + + public com.commercetools.api.models.product_search.ProductSearchFullTextValue getFullText() { + return this.fullText; + } + + /** + * builds ProductSearchFullTextExpression with checking for non-null required values + * @return ProductSearchFullTextExpression + */ + public ProductSearchFullTextExpression build() { + Objects.requireNonNull(fullText, ProductSearchFullTextExpression.class + ": fullText is missing"); + return new ProductSearchFullTextExpressionImpl(fullText); + } + + /** + * builds ProductSearchFullTextExpression without checking for non-null required values + * @return ProductSearchFullTextExpression + */ + public ProductSearchFullTextExpression buildUnchecked() { + return new ProductSearchFullTextExpressionImpl(fullText); + } + + /** + * factory method for an instance of ProductSearchFullTextExpressionBuilder + * @return builder + */ + public static ProductSearchFullTextExpressionBuilder of() { + return new ProductSearchFullTextExpressionBuilder(); + } + + /** + * create builder for ProductSearchFullTextExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFullTextExpressionBuilder of(final ProductSearchFullTextExpression template) { + ProductSearchFullTextExpressionBuilder builder = new ProductSearchFullTextExpressionBuilder(); + builder.fullText = template.getFullText(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionImpl.java new file mode 100644 index 00000000000..47d2b923ce9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFullTextExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFullTextExpressionImpl implements ProductSearchFullTextExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchFullTextValue fullText; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFullTextExpressionImpl( + @JsonProperty("fullText") final com.commercetools.api.models.product_search.ProductSearchFullTextValue fullText) { + this.fullText = fullText; + } + + /** + * create empty instance + */ + public ProductSearchFullTextExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchFullTextValue getFullText() { + return this.fullText; + } + + public void setFullText(final com.commercetools.api.models.product_search.ProductSearchFullTextValue fullText) { + this.fullText = fullText; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFullTextExpressionImpl that = (ProductSearchFullTextExpressionImpl) o; + + return new EqualsBuilder().append(fullText, that.fullText).append(fullText, that.fullText).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(fullText).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("fullText", fullText).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValue.java new file mode 100644 index 00000000000..56db09b15bf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValue.java @@ -0,0 +1,161 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFullTextValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFullTextValue productSearchFullTextValue = ProductSearchFullTextValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchFullTextValueImpl.class) +public interface ProductSearchFullTextValue extends ProductSearchQueryExpressionValue { + + /** + * + * @return value + */ + @NotNull + @JsonProperty("value") + public Object getValue(); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @JsonProperty("language") + public String getLanguage(); + + /** + * + * @return mustMatch + */ + + @JsonProperty("mustMatch") + public ProductSearchMatchType getMustMatch(); + + /** + * set value + * @param value value to be set + */ + + public void setValue(final Object value); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + */ + + public void setLanguage(final String language); + + /** + * set mustMatch + * @param mustMatch value to be set + */ + + public void setMustMatch(final ProductSearchMatchType mustMatch); + + /** + * factory method + * @return instance of ProductSearchFullTextValue + */ + public static ProductSearchFullTextValue of() { + return new ProductSearchFullTextValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchFullTextValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchFullTextValue of(final ProductSearchFullTextValue template) { + ProductSearchFullTextValueImpl instance = new ProductSearchFullTextValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setValue(template.getValue()); + instance.setLanguage(template.getLanguage()); + instance.setMustMatch(template.getMustMatch()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchFullTextValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchFullTextValue deepCopy(@Nullable final ProductSearchFullTextValue template) { + if (template == null) { + return null; + } + ProductSearchFullTextValueImpl instance = new ProductSearchFullTextValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setValue(template.getValue()); + instance.setLanguage(template.getLanguage()); + instance.setMustMatch(template.getMustMatch()); + return instance; + } + + /** + * builder factory method for ProductSearchFullTextValue + * @return builder + */ + public static ProductSearchFullTextValueBuilder builder() { + return ProductSearchFullTextValueBuilder.of(); + } + + /** + * create builder for ProductSearchFullTextValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFullTextValueBuilder builder(final ProductSearchFullTextValue template) { + return ProductSearchFullTextValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchFullTextValue(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/product_search/ProductSearchFullTextValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueBuilder.java new file mode 100644 index 00000000000..c3ac0e0801f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueBuilder.java @@ -0,0 +1,210 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchFullTextValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchFullTextValue productSearchFullTextValue = ProductSearchFullTextValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFullTextValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private java.lang.Object value; + + @Nullable + private String language; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchMatchType mustMatch; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchFullTextValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public ProductSearchFullTextValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchFullTextValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * set the value to the value + * @param value value to be set + * @return Builder + */ + + public ProductSearchFullTextValueBuilder value(final java.lang.Object value) { + this.value = value; + return this; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + * @return Builder + */ + + public ProductSearchFullTextValueBuilder language(@Nullable final String language) { + this.language = language; + return this; + } + + /** + * set the value to the mustMatch + * @param mustMatch value to be set + * @return Builder + */ + + public ProductSearchFullTextValueBuilder mustMatch( + @Nullable final com.commercetools.api.models.product_search.ProductSearchMatchType mustMatch) { + this.mustMatch = mustMatch; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * value of value} + * @return value + */ + + public java.lang.Object getValue() { + return this.value; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @Nullable + public String getLanguage() { + return this.language; + } + + /** + * value of mustMatch} + * @return mustMatch + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchMatchType getMustMatch() { + return this.mustMatch; + } + + /** + * builds ProductSearchFullTextValue with checking for non-null required values + * @return ProductSearchFullTextValue + */ + public ProductSearchFullTextValue build() { + Objects.requireNonNull(field, ProductSearchFullTextValue.class + ": field is missing"); + Objects.requireNonNull(value, ProductSearchFullTextValue.class + ": value is missing"); + return new ProductSearchFullTextValueImpl(field, boost, attributeType, value, language, mustMatch); + } + + /** + * builds ProductSearchFullTextValue without checking for non-null required values + * @return ProductSearchFullTextValue + */ + public ProductSearchFullTextValue buildUnchecked() { + return new ProductSearchFullTextValueImpl(field, boost, attributeType, value, language, mustMatch); + } + + /** + * factory method for an instance of ProductSearchFullTextValueBuilder + * @return builder + */ + public static ProductSearchFullTextValueBuilder of() { + return new ProductSearchFullTextValueBuilder(); + } + + /** + * create builder for ProductSearchFullTextValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchFullTextValueBuilder of(final ProductSearchFullTextValue template) { + ProductSearchFullTextValueBuilder builder = new ProductSearchFullTextValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.attributeType = template.getAttributeType(); + builder.value = template.getValue(); + builder.language = template.getLanguage(); + builder.mustMatch = template.getMustMatch(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueImpl.java new file mode 100644 index 00000000000..e0c59f1e363 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueImpl.java @@ -0,0 +1,179 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchFullTextValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchFullTextValueImpl implements ProductSearchFullTextValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private java.lang.Object value; + + private String language; + + private com.commercetools.api.models.product_search.ProductSearchMatchType mustMatch; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchFullTextValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Double boost, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("value") final java.lang.Object value, @JsonProperty("language") final String language, + @JsonProperty("mustMatch") final com.commercetools.api.models.product_search.ProductSearchMatchType mustMatch) { + this.field = field; + this.boost = boost; + this.attributeType = attributeType; + this.value = value; + this.language = language; + this.mustMatch = mustMatch; + } + + /** + * create empty instance + */ + public ProductSearchFullTextValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * + */ + + public java.lang.Object getValue() { + return this.value; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ */ + + public String getLanguage() { + return this.language; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchMatchType getMustMatch() { + return this.mustMatch; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setValue(final java.lang.Object value) { + this.value = value; + } + + public void setLanguage(final String language) { + this.language = language; + } + + public void setMustMatch(final com.commercetools.api.models.product_search.ProductSearchMatchType mustMatch) { + this.mustMatch = mustMatch; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchFullTextValueImpl that = (ProductSearchFullTextValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(value, that.value) + .append(language, that.language) + .append(mustMatch, that.mustMatch) + .append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(value, that.value) + .append(language, that.language) + .append(mustMatch, that.mustMatch) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(boost) + .append(attributeType) + .append(value) + .append(language) + .append(mustMatch) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("attributeType", attributeType) + .append("value", value) + .append("language", language) + .append("mustMatch", mustMatch) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHit.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHit.java new file mode 100644 index 00000000000..e8103923db9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHit.java @@ -0,0 +1,171 @@ + +package com.commercetools.api.models.product_search; + +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.product.ProductProjection; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchHit + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchHit productSearchHit = ProductSearchHit.builder()
+ *             .id("{id}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchHitImpl.class) +public interface ProductSearchHit { + + /** + *

Unique identifier of the Product.

+ * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

Contains Product Projection data for Products matching the projection field in the Search Products request.

+ * @return productProjection + */ + @Valid + @JsonProperty("productProjection") + public ProductProjection getProductProjection(); + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

+ * @return matchingVariants + */ + @Valid + @JsonProperty("matchingVariants") + public List getMatchingVariants(); + + /** + *

Unique identifier of the Product.

+ * @param id value to be set + */ + + public void setId(final String id); + + /** + *

Contains Product Projection data for Products matching the projection field in the Search Products request.

+ * @param productProjection value to be set + */ + + public void setProductProjection(final ProductProjection productProjection); + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

+ * @param matchingVariants values to be set + */ + + @JsonIgnore + public void setMatchingVariants(final ProductSearchMatchingVariant... matchingVariants); + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

+ * @param matchingVariants values to be set + */ + + public void setMatchingVariants(final List matchingVariants); + + /** + * factory method + * @return instance of ProductSearchHit + */ + public static ProductSearchHit of() { + return new ProductSearchHitImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchHit + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchHit of(final ProductSearchHit template) { + ProductSearchHitImpl instance = new ProductSearchHitImpl(); + instance.setId(template.getId()); + instance.setProductProjection(template.getProductProjection()); + instance.setMatchingVariants(template.getMatchingVariants()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchHit + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchHit deepCopy(@Nullable final ProductSearchHit template) { + if (template == null) { + return null; + } + ProductSearchHitImpl instance = new ProductSearchHitImpl(); + instance.setId(template.getId()); + instance.setProductProjection( + com.commercetools.api.models.product.ProductProjection.deepCopy(template.getProductProjection())); + instance.setMatchingVariants(Optional.ofNullable(template.getMatchingVariants()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchMatchingVariant::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductSearchHit + * @return builder + */ + public static ProductSearchHitBuilder builder() { + return ProductSearchHitBuilder.of(); + } + + /** + * create builder for ProductSearchHit instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchHitBuilder builder(final ProductSearchHit template) { + return ProductSearchHitBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchHit(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/product_search/ProductSearchHitBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHitBuilder.java new file mode 100644 index 00000000000..d2032fa7c73 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHitBuilder.java @@ -0,0 +1,245 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchHitBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchHit productSearchHit = ProductSearchHit.builder()
+ *             .id("{id}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchHitBuilder implements Builder { + + private String id; + + @Nullable + private com.commercetools.api.models.product.ProductProjection productProjection; + + @Nullable + private java.util.List matchingVariants; + + /** + *

Unique identifier of the Product.

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

Contains Product Projection data for Products matching the projection field in the Search Products request.

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

Contains Product Projection data for Products matching the projection field in the Search Products request.

+ * @param builder function to build the productProjection value + * @return Builder + */ + + public ProductSearchHitBuilder withProductProjection( + Function builder) { + this.productProjection = builder.apply(com.commercetools.api.models.product.ProductProjectionBuilder.of()); + return this; + } + + /** + *

Contains Product Projection data for Products matching the projection field in the Search Products request.

+ * @param productProjection value to be set + * @return Builder + */ + + public ProductSearchHitBuilder productProjection( + @Nullable final com.commercetools.api.models.product.ProductProjection productProjection) { + this.productProjection = productProjection; + return this; + } + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

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

Contains a list of identifiers (id and SKU) of the matching variants.

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

Contains a list of identifiers (id and SKU) of the matching variants.

+ * @param matchingVariants value to be set + * @return Builder + */ + + public ProductSearchHitBuilder plusMatchingVariants( + @Nullable final com.commercetools.api.models.product_search.ProductSearchMatchingVariant... matchingVariants) { + if (this.matchingVariants == null) { + this.matchingVariants = new ArrayList<>(); + } + this.matchingVariants.addAll(Arrays.asList(matchingVariants)); + return this; + } + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

+ * @param builder function to build the matchingVariants value + * @return Builder + */ + + public ProductSearchHitBuilder plusMatchingVariants( + Function builder) { + if (this.matchingVariants == null) { + this.matchingVariants = new ArrayList<>(); + } + this.matchingVariants + .add(builder.apply(com.commercetools.api.models.product_search.ProductSearchMatchingVariantBuilder.of()) + .build()); + return this; + } + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

+ * @param builder function to build the matchingVariants value + * @return Builder + */ + + public ProductSearchHitBuilder withMatchingVariants( + Function builder) { + this.matchingVariants = new ArrayList<>(); + this.matchingVariants + .add(builder.apply(com.commercetools.api.models.product_search.ProductSearchMatchingVariantBuilder.of()) + .build()); + return this; + } + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

+ * @param builder function to build the matchingVariants value + * @return Builder + */ + + public ProductSearchHitBuilder addMatchingVariants( + Function builder) { + return plusMatchingVariants( + builder.apply(com.commercetools.api.models.product_search.ProductSearchMatchingVariantBuilder.of())); + } + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

+ * @param builder function to build the matchingVariants value + * @return Builder + */ + + public ProductSearchHitBuilder setMatchingVariants( + Function builder) { + return matchingVariants( + builder.apply(com.commercetools.api.models.product_search.ProductSearchMatchingVariantBuilder.of())); + } + + /** + *

Unique identifier of the Product.

+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

Contains Product Projection data for Products matching the projection field in the Search Products request.

+ * @return productProjection + */ + + @Nullable + public com.commercetools.api.models.product.ProductProjection getProductProjection() { + return this.productProjection; + } + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

+ * @return matchingVariants + */ + + @Nullable + public java.util.List getMatchingVariants() { + return this.matchingVariants; + } + + /** + * builds ProductSearchHit with checking for non-null required values + * @return ProductSearchHit + */ + public ProductSearchHit build() { + Objects.requireNonNull(id, ProductSearchHit.class + ": id is missing"); + return new ProductSearchHitImpl(id, productProjection, matchingVariants); + } + + /** + * builds ProductSearchHit without checking for non-null required values + * @return ProductSearchHit + */ + public ProductSearchHit buildUnchecked() { + return new ProductSearchHitImpl(id, productProjection, matchingVariants); + } + + /** + * factory method for an instance of ProductSearchHitBuilder + * @return builder + */ + public static ProductSearchHitBuilder of() { + return new ProductSearchHitBuilder(); + } + + /** + * create builder for ProductSearchHit instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchHitBuilder of(final ProductSearchHit template) { + ProductSearchHitBuilder builder = new ProductSearchHitBuilder(); + builder.id = template.getId(); + builder.productProjection = template.getProductProjection(); + builder.matchingVariants = template.getMatchingVariants(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHitImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHitImpl.java new file mode 100644 index 00000000000..2a04bc85461 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchHitImpl.java @@ -0,0 +1,123 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchHit + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchHitImpl implements ProductSearchHit, ModelBase { + + private String id; + + private com.commercetools.api.models.product.ProductProjection productProjection; + + private java.util.List matchingVariants; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchHitImpl(@JsonProperty("id") final String id, + @JsonProperty("productProjection") final com.commercetools.api.models.product.ProductProjection productProjection, + @JsonProperty("matchingVariants") final java.util.List matchingVariants) { + this.id = id; + this.productProjection = productProjection; + this.matchingVariants = matchingVariants; + } + + /** + * create empty instance + */ + public ProductSearchHitImpl() { + } + + /** + *

Unique identifier of the Product.

+ */ + + public String getId() { + return this.id; + } + + /** + *

Contains Product Projection data for Products matching the projection field in the Search Products request.

+ */ + + public com.commercetools.api.models.product.ProductProjection getProductProjection() { + return this.productProjection; + } + + /** + *

Contains a list of identifiers (id and SKU) of the matching variants.

+ */ + + public java.util.List getMatchingVariants() { + return this.matchingVariants; + } + + public void setId(final String id) { + this.id = id; + } + + public void setProductProjection(final com.commercetools.api.models.product.ProductProjection productProjection) { + this.productProjection = productProjection; + } + + public void setMatchingVariants( + final com.commercetools.api.models.product_search.ProductSearchMatchingVariant... matchingVariants) { + this.matchingVariants = new ArrayList<>(Arrays.asList(matchingVariants)); + } + + public void setMatchingVariants( + final java.util.List matchingVariants) { + this.matchingVariants = matchingVariants; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchHitImpl that = (ProductSearchHitImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(productProjection, that.productProjection) + .append(matchingVariants, that.matchingVariants) + .append(id, that.id) + .append(productProjection, that.productProjection) + .append(matchingVariants, that.matchingVariants) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id).append(productProjection).append(matchingVariants).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("productProjection", productProjection) + .append("matchingVariants", matchingVariants) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpression.java new file mode 100644 index 00000000000..7596bf11ebf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpression.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchLongRangeExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchLongRangeExpression productSearchLongRangeExpression = ProductSearchLongRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchLongRangeExpressionImpl.class) +public interface ProductSearchLongRangeExpression extends ProductSearchQueryExpression { + + /** + * + * @return range + */ + @NotNull + @Valid + @JsonProperty("range") + public ProductSearchLongRangeValue getRange(); + + /** + * set range + * @param range value to be set + */ + + public void setRange(final ProductSearchLongRangeValue range); + + /** + * factory method + * @return instance of ProductSearchLongRangeExpression + */ + public static ProductSearchLongRangeExpression of() { + return new ProductSearchLongRangeExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchLongRangeExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchLongRangeExpression of(final ProductSearchLongRangeExpression template) { + ProductSearchLongRangeExpressionImpl instance = new ProductSearchLongRangeExpressionImpl(); + instance.setRange(template.getRange()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchLongRangeExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchLongRangeExpression deepCopy(@Nullable final ProductSearchLongRangeExpression template) { + if (template == null) { + return null; + } + ProductSearchLongRangeExpressionImpl instance = new ProductSearchLongRangeExpressionImpl(); + instance.setRange( + com.commercetools.api.models.product_search.ProductSearchLongRangeValue.deepCopy(template.getRange())); + return instance; + } + + /** + * builder factory method for ProductSearchLongRangeExpression + * @return builder + */ + public static ProductSearchLongRangeExpressionBuilder builder() { + return ProductSearchLongRangeExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchLongRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchLongRangeExpressionBuilder builder(final ProductSearchLongRangeExpression template) { + return ProductSearchLongRangeExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchLongRangeExpression(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/product_search/ProductSearchLongRangeExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionBuilder.java new file mode 100644 index 00000000000..3c86d379a8e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchLongRangeExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchLongRangeExpression productSearchLongRangeExpression = ProductSearchLongRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchLongRangeExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchLongRangeValue range; + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchLongRangeExpressionBuilder range( + Function builder) { + this.range = builder.apply(com.commercetools.api.models.product_search.ProductSearchLongRangeValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchLongRangeExpressionBuilder withRange( + Function builder) { + this.range = builder.apply(com.commercetools.api.models.product_search.ProductSearchLongRangeValueBuilder.of()); + return this; + } + + /** + * set the value to the range + * @param range value to be set + * @return Builder + */ + + public ProductSearchLongRangeExpressionBuilder range( + final com.commercetools.api.models.product_search.ProductSearchLongRangeValue range) { + this.range = range; + return this; + } + + /** + * value of range} + * @return range + */ + + public com.commercetools.api.models.product_search.ProductSearchLongRangeValue getRange() { + return this.range; + } + + /** + * builds ProductSearchLongRangeExpression with checking for non-null required values + * @return ProductSearchLongRangeExpression + */ + public ProductSearchLongRangeExpression build() { + Objects.requireNonNull(range, ProductSearchLongRangeExpression.class + ": range is missing"); + return new ProductSearchLongRangeExpressionImpl(range); + } + + /** + * builds ProductSearchLongRangeExpression without checking for non-null required values + * @return ProductSearchLongRangeExpression + */ + public ProductSearchLongRangeExpression buildUnchecked() { + return new ProductSearchLongRangeExpressionImpl(range); + } + + /** + * factory method for an instance of ProductSearchLongRangeExpressionBuilder + * @return builder + */ + public static ProductSearchLongRangeExpressionBuilder of() { + return new ProductSearchLongRangeExpressionBuilder(); + } + + /** + * create builder for ProductSearchLongRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchLongRangeExpressionBuilder of(final ProductSearchLongRangeExpression template) { + ProductSearchLongRangeExpressionBuilder builder = new ProductSearchLongRangeExpressionBuilder(); + builder.range = template.getRange(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionImpl.java new file mode 100644 index 00000000000..4117e85f54e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchLongRangeExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchLongRangeExpressionImpl implements ProductSearchLongRangeExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchLongRangeValue range; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchLongRangeExpressionImpl( + @JsonProperty("range") final com.commercetools.api.models.product_search.ProductSearchLongRangeValue range) { + this.range = range; + } + + /** + * create empty instance + */ + public ProductSearchLongRangeExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchLongRangeValue getRange() { + return this.range; + } + + public void setRange(final com.commercetools.api.models.product_search.ProductSearchLongRangeValue range) { + this.range = range; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchLongRangeExpressionImpl that = (ProductSearchLongRangeExpressionImpl) o; + + return new EqualsBuilder().append(range, that.range).append(range, that.range).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(range).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("range", range).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValue.java new file mode 100644 index 00000000000..0bdf479bd8d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValue.java @@ -0,0 +1,177 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchLongRangeValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchLongRangeValue productSearchLongRangeValue = ProductSearchLongRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchLongRangeValueImpl.class) +public interface ProductSearchLongRangeValue extends ProductSearchQueryExpressionValue { + + /** + * + * @return gte + */ + + @JsonProperty("gte") + public Long getGte(); + + /** + * + * @return gt + */ + + @JsonProperty("gt") + public Long getGt(); + + /** + * + * @return lte + */ + + @JsonProperty("lte") + public Long getLte(); + + /** + * + * @return lt + */ + + @JsonProperty("lt") + public Long getLt(); + + /** + * set gte + * @param gte value to be set + */ + + public void setGte(final Long gte); + + /** + * set gt + * @param gt value to be set + */ + + public void setGt(final Long gt); + + /** + * set lte + * @param lte value to be set + */ + + public void setLte(final Long lte); + + /** + * set lt + * @param lt value to be set + */ + + public void setLt(final Long lt); + + /** + * factory method + * @return instance of ProductSearchLongRangeValue + */ + public static ProductSearchLongRangeValue of() { + return new ProductSearchLongRangeValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchLongRangeValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchLongRangeValue of(final ProductSearchLongRangeValue template) { + ProductSearchLongRangeValueImpl instance = new ProductSearchLongRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchLongRangeValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchLongRangeValue deepCopy(@Nullable final ProductSearchLongRangeValue template) { + if (template == null) { + return null; + } + ProductSearchLongRangeValueImpl instance = new ProductSearchLongRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * builder factory method for ProductSearchLongRangeValue + * @return builder + */ + public static ProductSearchLongRangeValueBuilder builder() { + return ProductSearchLongRangeValueBuilder.of(); + } + + /** + * create builder for ProductSearchLongRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchLongRangeValueBuilder builder(final ProductSearchLongRangeValue template) { + return ProductSearchLongRangeValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchLongRangeValue(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/product_search/ProductSearchLongRangeValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueBuilder.java new file mode 100644 index 00000000000..9071206659d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueBuilder.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchLongRangeValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchLongRangeValue productSearchLongRangeValue = ProductSearchLongRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchLongRangeValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + @Nullable + private Long gte; + + @Nullable + private Long gt; + + @Nullable + private Long lte; + + @Nullable + private Long lt; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchLongRangeValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public ProductSearchLongRangeValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchLongRangeValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * set the value to the gte + * @param gte value to be set + * @return Builder + */ + + public ProductSearchLongRangeValueBuilder gte(@Nullable final Long gte) { + this.gte = gte; + return this; + } + + /** + * set the value to the gt + * @param gt value to be set + * @return Builder + */ + + public ProductSearchLongRangeValueBuilder gt(@Nullable final Long gt) { + this.gt = gt; + return this; + } + + /** + * set the value to the lte + * @param lte value to be set + * @return Builder + */ + + public ProductSearchLongRangeValueBuilder lte(@Nullable final Long lte) { + this.lte = lte; + return this; + } + + /** + * set the value to the lt + * @param lt value to be set + * @return Builder + */ + + public ProductSearchLongRangeValueBuilder lt(@Nullable final Long lt) { + this.lt = lt; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * value of gte} + * @return gte + */ + + @Nullable + public Long getGte() { + return this.gte; + } + + /** + * value of gt} + * @return gt + */ + + @Nullable + public Long getGt() { + return this.gt; + } + + /** + * value of lte} + * @return lte + */ + + @Nullable + public Long getLte() { + return this.lte; + } + + /** + * value of lt} + * @return lt + */ + + @Nullable + public Long getLt() { + return this.lt; + } + + /** + * builds ProductSearchLongRangeValue with checking for non-null required values + * @return ProductSearchLongRangeValue + */ + public ProductSearchLongRangeValue build() { + Objects.requireNonNull(field, ProductSearchLongRangeValue.class + ": field is missing"); + return new ProductSearchLongRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * builds ProductSearchLongRangeValue without checking for non-null required values + * @return ProductSearchLongRangeValue + */ + public ProductSearchLongRangeValue buildUnchecked() { + return new ProductSearchLongRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * factory method for an instance of ProductSearchLongRangeValueBuilder + * @return builder + */ + public static ProductSearchLongRangeValueBuilder of() { + return new ProductSearchLongRangeValueBuilder(); + } + + /** + * create builder for ProductSearchLongRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchLongRangeValueBuilder of(final ProductSearchLongRangeValue template) { + ProductSearchLongRangeValueBuilder builder = new ProductSearchLongRangeValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.attributeType = template.getAttributeType(); + builder.gte = template.getGte(); + builder.gt = template.getGt(); + builder.lte = template.getLte(); + builder.lt = template.getLt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueImpl.java new file mode 100644 index 00000000000..526795b08ef --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueImpl.java @@ -0,0 +1,199 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchLongRangeValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchLongRangeValueImpl implements ProductSearchLongRangeValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private Long gte; + + private Long gt; + + private Long lte; + + private Long lt; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchLongRangeValueImpl(@JsonProperty("field") final String field, + @JsonProperty("boost") final Double boost, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("gte") final Long gte, @JsonProperty("gt") final Long gt, @JsonProperty("lte") final Long lte, + @JsonProperty("lt") final Long lt) { + this.field = field; + this.boost = boost; + this.attributeType = attributeType; + this.gte = gte; + this.gt = gt; + this.lte = lte; + this.lt = lt; + } + + /** + * create empty instance + */ + public ProductSearchLongRangeValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * + */ + + public Long getGte() { + return this.gte; + } + + /** + * + */ + + public Long getGt() { + return this.gt; + } + + /** + * + */ + + public Long getLte() { + return this.lte; + } + + /** + * + */ + + public Long getLt() { + return this.lt; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setGte(final Long gte) { + this.gte = gte; + } + + public void setGt(final Long gt) { + this.gt = gt; + } + + public void setLte(final Long lte) { + this.lte = lte; + } + + public void setLt(final Long lt) { + this.lt = lt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchLongRangeValueImpl that = (ProductSearchLongRangeValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(boost) + .append(attributeType) + .append(gte) + .append(gt) + .append(lte) + .append(lt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("attributeType", attributeType) + .append("gte", gte) + .append("gt", gt) + .append("lte", lte) + .append("lt", lt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchType.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchType.java new file mode 100644 index 00000000000..89d6be56c6b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchType.java @@ -0,0 +1,112 @@ + +package com.commercetools.api.models.product_search; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchMatchType + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface ProductSearchMatchType extends JsonEnum { + + ProductSearchMatchType ANY = ProductSearchMatchTypeEnum.ANY; + + ProductSearchMatchType ALL = ProductSearchMatchTypeEnum.ALL; + + /** + * possible values of ProductSearchMatchType + */ + enum ProductSearchMatchTypeEnum implements ProductSearchMatchType { + /** + * any + */ + ANY("any"), + + /** + * all + */ + ALL("all"); + private final String jsonName; + + private ProductSearchMatchTypeEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of ProductSearchMatchType + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static ProductSearchMatchType findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ProductSearchMatchType() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static ProductSearchMatchType[] values() { + return ProductSearchMatchTypeEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariant.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariant.java new file mode 100644 index 00000000000..2f72e0556dd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariant.java @@ -0,0 +1,138 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchMatchingVariant + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchMatchingVariant productSearchMatchingVariant = ProductSearchMatchingVariant.builder()
+ *             .id(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchMatchingVariantImpl.class) +public interface ProductSearchMatchingVariant { + + /** + *

Unique identifier of the variant.

+ * @return id + */ + @NotNull + @JsonProperty("id") + public Integer getId(); + + /** + *

SKU of the matching variant.

+ * @return sku + */ + + @JsonProperty("sku") + public String getSku(); + + /** + *

Unique identifier of the variant.

+ * @param id value to be set + */ + + public void setId(final Integer id); + + /** + *

SKU of the matching variant.

+ * @param sku value to be set + */ + + public void setSku(final String sku); + + /** + * factory method + * @return instance of ProductSearchMatchingVariant + */ + public static ProductSearchMatchingVariant of() { + return new ProductSearchMatchingVariantImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchMatchingVariant + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchMatchingVariant of(final ProductSearchMatchingVariant template) { + ProductSearchMatchingVariantImpl instance = new ProductSearchMatchingVariantImpl(); + instance.setId(template.getId()); + instance.setSku(template.getSku()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchMatchingVariant + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchMatchingVariant deepCopy(@Nullable final ProductSearchMatchingVariant template) { + if (template == null) { + return null; + } + ProductSearchMatchingVariantImpl instance = new ProductSearchMatchingVariantImpl(); + instance.setId(template.getId()); + instance.setSku(template.getSku()); + return instance; + } + + /** + * builder factory method for ProductSearchMatchingVariant + * @return builder + */ + public static ProductSearchMatchingVariantBuilder builder() { + return ProductSearchMatchingVariantBuilder.of(); + } + + /** + * create builder for ProductSearchMatchingVariant instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchMatchingVariantBuilder builder(final ProductSearchMatchingVariant template) { + return ProductSearchMatchingVariantBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchMatchingVariant(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/product_search/ProductSearchMatchingVariantBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantBuilder.java new file mode 100644 index 00000000000..8aad5a48b15 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchMatchingVariantBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchMatchingVariant productSearchMatchingVariant = ProductSearchMatchingVariant.builder()
+ *             .id(0.3)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchMatchingVariantBuilder implements Builder { + + private Integer id; + + @Nullable + private String sku; + + /** + *

Unique identifier of the variant.

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

SKU of the matching variant.

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

Unique identifier of the variant.

+ * @return id + */ + + public Integer getId() { + return this.id; + } + + /** + *

SKU of the matching variant.

+ * @return sku + */ + + @Nullable + public String getSku() { + return this.sku; + } + + /** + * builds ProductSearchMatchingVariant with checking for non-null required values + * @return ProductSearchMatchingVariant + */ + public ProductSearchMatchingVariant build() { + Objects.requireNonNull(id, ProductSearchMatchingVariant.class + ": id is missing"); + return new ProductSearchMatchingVariantImpl(id, sku); + } + + /** + * builds ProductSearchMatchingVariant without checking for non-null required values + * @return ProductSearchMatchingVariant + */ + public ProductSearchMatchingVariant buildUnchecked() { + return new ProductSearchMatchingVariantImpl(id, sku); + } + + /** + * factory method for an instance of ProductSearchMatchingVariantBuilder + * @return builder + */ + public static ProductSearchMatchingVariantBuilder of() { + return new ProductSearchMatchingVariantBuilder(); + } + + /** + * create builder for ProductSearchMatchingVariant instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchMatchingVariantBuilder of(final ProductSearchMatchingVariant template) { + ProductSearchMatchingVariantBuilder builder = new ProductSearchMatchingVariantBuilder(); + builder.id = template.getId(); + builder.sku = template.getSku(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantImpl.java new file mode 100644 index 00000000000..935e82f471c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantImpl.java @@ -0,0 +1,95 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchMatchingVariant + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchMatchingVariantImpl implements ProductSearchMatchingVariant, ModelBase { + + private Integer id; + + private String sku; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchMatchingVariantImpl(@JsonProperty("id") final Integer id, @JsonProperty("sku") final String sku) { + this.id = id; + this.sku = sku; + } + + /** + * create empty instance + */ + public ProductSearchMatchingVariantImpl() { + } + + /** + *

Unique identifier of the variant.

+ */ + + public Integer getId() { + return this.id; + } + + /** + *

SKU of the matching variant.

+ */ + + public String getSku() { + return this.sku; + } + + public void setId(final Integer id) { + this.id = id; + } + + public void setSku(final String sku) { + this.sku = sku; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchMatchingVariantImpl that = (ProductSearchMatchingVariantImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(sku, that.sku) + .append(id, that.id) + .append(sku, that.sku) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id).append(sku).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id).append("sku", sku).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpression.java new file mode 100644 index 00000000000..84c5ef17733 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpression.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchNotExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchNotExpression productSearchNotExpression = ProductSearchNotExpression.builder()
+ *             .plusNot(notBuilder -> notBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchNotExpressionImpl.class) +public interface ProductSearchNotExpression extends ProductSearchCompoundExpression { + + /** + * + * @return not + */ + @NotNull + @Valid + @JsonProperty("not") + public List getNot(); + + /** + * set not + * @param not values to be set + */ + + @JsonIgnore + public void setNot(final ProductSearchQuery... not); + + /** + * set not + * @param not values to be set + */ + + public void setNot(final List not); + + /** + * factory method + * @return instance of ProductSearchNotExpression + */ + public static ProductSearchNotExpression of() { + return new ProductSearchNotExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchNotExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchNotExpression of(final ProductSearchNotExpression template) { + ProductSearchNotExpressionImpl instance = new ProductSearchNotExpressionImpl(); + instance.setNot(template.getNot()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchNotExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchNotExpression deepCopy(@Nullable final ProductSearchNotExpression template) { + if (template == null) { + return null; + } + ProductSearchNotExpressionImpl instance = new ProductSearchNotExpressionImpl(); + instance.setNot(Optional.ofNullable(template.getNot()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchQuery::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductSearchNotExpression + * @return builder + */ + public static ProductSearchNotExpressionBuilder builder() { + return ProductSearchNotExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchNotExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchNotExpressionBuilder builder(final ProductSearchNotExpression template) { + return ProductSearchNotExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchNotExpression(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/product_search/ProductSearchNotExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionBuilder.java new file mode 100644 index 00000000000..2ae6a39f189 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionBuilder.java @@ -0,0 +1,161 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchNotExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchNotExpression productSearchNotExpression = ProductSearchNotExpression.builder()
+ *             .plusNot(notBuilder -> notBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchNotExpressionBuilder implements Builder { + + private java.util.List not; + + /** + * set values to the not + * @param not value to be set + * @return Builder + */ + + public ProductSearchNotExpressionBuilder not( + final com.commercetools.api.models.product_search.ProductSearchQuery... not) { + this.not = new ArrayList<>(Arrays.asList(not)); + return this; + } + + /** + * set value to the not + * @param not value to be set + * @return Builder + */ + + public ProductSearchNotExpressionBuilder not( + final java.util.List not) { + this.not = not; + return this; + } + + /** + * add values to the not + * @param not value to be set + * @return Builder + */ + + public ProductSearchNotExpressionBuilder plusNot( + final com.commercetools.api.models.product_search.ProductSearchQuery... not) { + if (this.not == null) { + this.not = new ArrayList<>(); + } + this.not.addAll(Arrays.asList(not)); + return this; + } + + /** + * add the value to the not using the builder function + * @param builder function to build the not value + * @return Builder + */ + + public ProductSearchNotExpressionBuilder plusNot( + Function builder) { + if (this.not == null) { + this.not = new ArrayList<>(); + } + this.not.add(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()).build()); + return this; + } + + /** + * set the value to the not using the builder function + * @param builder function to build the not value + * @return Builder + */ + + public ProductSearchNotExpressionBuilder withNot( + Function builder) { + this.not = new ArrayList<>(); + this.not.add(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()).build()); + return this; + } + + /** + * add the value to the not using the builder function + * @param builder function to build the not value + * @return Builder + */ + + public ProductSearchNotExpressionBuilder addNot( + Function builder) { + return plusNot(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of())); + } + + /** + * set the value to the not using the builder function + * @param builder function to build the not value + * @return Builder + */ + + public ProductSearchNotExpressionBuilder setNot( + Function builder) { + return not(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of())); + } + + /** + * value of not} + * @return not + */ + + public java.util.List getNot() { + return this.not; + } + + /** + * builds ProductSearchNotExpression with checking for non-null required values + * @return ProductSearchNotExpression + */ + public ProductSearchNotExpression build() { + Objects.requireNonNull(not, ProductSearchNotExpression.class + ": not is missing"); + return new ProductSearchNotExpressionImpl(not); + } + + /** + * builds ProductSearchNotExpression without checking for non-null required values + * @return ProductSearchNotExpression + */ + public ProductSearchNotExpression buildUnchecked() { + return new ProductSearchNotExpressionImpl(not); + } + + /** + * factory method for an instance of ProductSearchNotExpressionBuilder + * @return builder + */ + public static ProductSearchNotExpressionBuilder of() { + return new ProductSearchNotExpressionBuilder(); + } + + /** + * create builder for ProductSearchNotExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchNotExpressionBuilder of(final ProductSearchNotExpression template) { + ProductSearchNotExpressionBuilder builder = new ProductSearchNotExpressionBuilder(); + builder.not = template.getNot(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionImpl.java new file mode 100644 index 00000000000..daeef526956 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionImpl.java @@ -0,0 +1,81 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchNotExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchNotExpressionImpl implements ProductSearchNotExpression, ModelBase { + + private java.util.List not; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchNotExpressionImpl( + @JsonProperty("not") final java.util.List not) { + this.not = not; + } + + /** + * create empty instance + */ + public ProductSearchNotExpressionImpl() { + } + + /** + * + */ + + public java.util.List getNot() { + return this.not; + } + + public void setNot(final com.commercetools.api.models.product_search.ProductSearchQuery... not) { + this.not = new ArrayList<>(Arrays.asList(not)); + } + + public void setNot(final java.util.List not) { + this.not = not; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchNotExpressionImpl that = (ProductSearchNotExpressionImpl) o; + + return new EqualsBuilder().append(not, that.not).append(not, that.not).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(not).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("not", not).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpression.java new file mode 100644 index 00000000000..ed2c747b3ca --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpression.java @@ -0,0 +1,125 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchNumberRangeExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchNumberRangeExpression productSearchNumberRangeExpression = ProductSearchNumberRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchNumberRangeExpressionImpl.class) +public interface ProductSearchNumberRangeExpression extends ProductSearchQueryExpression { + + /** + * + * @return range + */ + @NotNull + @Valid + @JsonProperty("range") + public ProductSearchNumberRangeValue getRange(); + + /** + * set range + * @param range value to be set + */ + + public void setRange(final ProductSearchNumberRangeValue range); + + /** + * factory method + * @return instance of ProductSearchNumberRangeExpression + */ + public static ProductSearchNumberRangeExpression of() { + return new ProductSearchNumberRangeExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchNumberRangeExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchNumberRangeExpression of(final ProductSearchNumberRangeExpression template) { + ProductSearchNumberRangeExpressionImpl instance = new ProductSearchNumberRangeExpressionImpl(); + instance.setRange(template.getRange()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchNumberRangeExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchNumberRangeExpression deepCopy( + @Nullable final ProductSearchNumberRangeExpression template) { + if (template == null) { + return null; + } + ProductSearchNumberRangeExpressionImpl instance = new ProductSearchNumberRangeExpressionImpl(); + instance.setRange( + com.commercetools.api.models.product_search.ProductSearchNumberRangeValue.deepCopy(template.getRange())); + return instance; + } + + /** + * builder factory method for ProductSearchNumberRangeExpression + * @return builder + */ + public static ProductSearchNumberRangeExpressionBuilder builder() { + return ProductSearchNumberRangeExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchNumberRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchNumberRangeExpressionBuilder builder(final ProductSearchNumberRangeExpression template) { + return ProductSearchNumberRangeExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchNumberRangeExpression(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/product_search/ProductSearchNumberRangeExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionBuilder.java new file mode 100644 index 00000000000..80bcc7d079c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionBuilder.java @@ -0,0 +1,111 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchNumberRangeExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchNumberRangeExpression productSearchNumberRangeExpression = ProductSearchNumberRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchNumberRangeExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchNumberRangeValue range; + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchNumberRangeExpressionBuilder range( + Function builder) { + this.range = builder + .apply(com.commercetools.api.models.product_search.ProductSearchNumberRangeValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchNumberRangeExpressionBuilder withRange( + Function builder) { + this.range = builder + .apply(com.commercetools.api.models.product_search.ProductSearchNumberRangeValueBuilder.of()); + return this; + } + + /** + * set the value to the range + * @param range value to be set + * @return Builder + */ + + public ProductSearchNumberRangeExpressionBuilder range( + final com.commercetools.api.models.product_search.ProductSearchNumberRangeValue range) { + this.range = range; + return this; + } + + /** + * value of range} + * @return range + */ + + public com.commercetools.api.models.product_search.ProductSearchNumberRangeValue getRange() { + return this.range; + } + + /** + * builds ProductSearchNumberRangeExpression with checking for non-null required values + * @return ProductSearchNumberRangeExpression + */ + public ProductSearchNumberRangeExpression build() { + Objects.requireNonNull(range, ProductSearchNumberRangeExpression.class + ": range is missing"); + return new ProductSearchNumberRangeExpressionImpl(range); + } + + /** + * builds ProductSearchNumberRangeExpression without checking for non-null required values + * @return ProductSearchNumberRangeExpression + */ + public ProductSearchNumberRangeExpression buildUnchecked() { + return new ProductSearchNumberRangeExpressionImpl(range); + } + + /** + * factory method for an instance of ProductSearchNumberRangeExpressionBuilder + * @return builder + */ + public static ProductSearchNumberRangeExpressionBuilder of() { + return new ProductSearchNumberRangeExpressionBuilder(); + } + + /** + * create builder for ProductSearchNumberRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchNumberRangeExpressionBuilder of(final ProductSearchNumberRangeExpression template) { + ProductSearchNumberRangeExpressionBuilder builder = new ProductSearchNumberRangeExpressionBuilder(); + builder.range = template.getRange(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionImpl.java new file mode 100644 index 00000000000..96b6cd62267 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchNumberRangeExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchNumberRangeExpressionImpl implements ProductSearchNumberRangeExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchNumberRangeValue range; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchNumberRangeExpressionImpl( + @JsonProperty("range") final com.commercetools.api.models.product_search.ProductSearchNumberRangeValue range) { + this.range = range; + } + + /** + * create empty instance + */ + public ProductSearchNumberRangeExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchNumberRangeValue getRange() { + return this.range; + } + + public void setRange(final com.commercetools.api.models.product_search.ProductSearchNumberRangeValue range) { + this.range = range; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchNumberRangeExpressionImpl that = (ProductSearchNumberRangeExpressionImpl) o; + + return new EqualsBuilder().append(range, that.range).append(range, that.range).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(range).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("range", range).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValue.java new file mode 100644 index 00000000000..08f99155b4f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValue.java @@ -0,0 +1,177 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchNumberRangeValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchNumberRangeValue productSearchNumberRangeValue = ProductSearchNumberRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchNumberRangeValueImpl.class) +public interface ProductSearchNumberRangeValue extends ProductSearchQueryExpressionValue { + + /** + * + * @return gte + */ + + @JsonProperty("gte") + public Double getGte(); + + /** + * + * @return gt + */ + + @JsonProperty("gt") + public Double getGt(); + + /** + * + * @return lte + */ + + @JsonProperty("lte") + public Double getLte(); + + /** + * + * @return lt + */ + + @JsonProperty("lt") + public Double getLt(); + + /** + * set gte + * @param gte value to be set + */ + + public void setGte(final Double gte); + + /** + * set gt + * @param gt value to be set + */ + + public void setGt(final Double gt); + + /** + * set lte + * @param lte value to be set + */ + + public void setLte(final Double lte); + + /** + * set lt + * @param lt value to be set + */ + + public void setLt(final Double lt); + + /** + * factory method + * @return instance of ProductSearchNumberRangeValue + */ + public static ProductSearchNumberRangeValue of() { + return new ProductSearchNumberRangeValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchNumberRangeValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchNumberRangeValue of(final ProductSearchNumberRangeValue template) { + ProductSearchNumberRangeValueImpl instance = new ProductSearchNumberRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchNumberRangeValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchNumberRangeValue deepCopy(@Nullable final ProductSearchNumberRangeValue template) { + if (template == null) { + return null; + } + ProductSearchNumberRangeValueImpl instance = new ProductSearchNumberRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * builder factory method for ProductSearchNumberRangeValue + * @return builder + */ + public static ProductSearchNumberRangeValueBuilder builder() { + return ProductSearchNumberRangeValueBuilder.of(); + } + + /** + * create builder for ProductSearchNumberRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchNumberRangeValueBuilder builder(final ProductSearchNumberRangeValue template) { + return ProductSearchNumberRangeValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchNumberRangeValue(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/product_search/ProductSearchNumberRangeValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueBuilder.java new file mode 100644 index 00000000000..978eb215a54 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueBuilder.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchNumberRangeValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchNumberRangeValue productSearchNumberRangeValue = ProductSearchNumberRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchNumberRangeValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + @Nullable + private Double gte; + + @Nullable + private Double gt; + + @Nullable + private Double lte; + + @Nullable + private Double lt; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchNumberRangeValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public ProductSearchNumberRangeValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchNumberRangeValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * set the value to the gte + * @param gte value to be set + * @return Builder + */ + + public ProductSearchNumberRangeValueBuilder gte(@Nullable final Double gte) { + this.gte = gte; + return this; + } + + /** + * set the value to the gt + * @param gt value to be set + * @return Builder + */ + + public ProductSearchNumberRangeValueBuilder gt(@Nullable final Double gt) { + this.gt = gt; + return this; + } + + /** + * set the value to the lte + * @param lte value to be set + * @return Builder + */ + + public ProductSearchNumberRangeValueBuilder lte(@Nullable final Double lte) { + this.lte = lte; + return this; + } + + /** + * set the value to the lt + * @param lt value to be set + * @return Builder + */ + + public ProductSearchNumberRangeValueBuilder lt(@Nullable final Double lt) { + this.lt = lt; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * value of gte} + * @return gte + */ + + @Nullable + public Double getGte() { + return this.gte; + } + + /** + * value of gt} + * @return gt + */ + + @Nullable + public Double getGt() { + return this.gt; + } + + /** + * value of lte} + * @return lte + */ + + @Nullable + public Double getLte() { + return this.lte; + } + + /** + * value of lt} + * @return lt + */ + + @Nullable + public Double getLt() { + return this.lt; + } + + /** + * builds ProductSearchNumberRangeValue with checking for non-null required values + * @return ProductSearchNumberRangeValue + */ + public ProductSearchNumberRangeValue build() { + Objects.requireNonNull(field, ProductSearchNumberRangeValue.class + ": field is missing"); + return new ProductSearchNumberRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * builds ProductSearchNumberRangeValue without checking for non-null required values + * @return ProductSearchNumberRangeValue + */ + public ProductSearchNumberRangeValue buildUnchecked() { + return new ProductSearchNumberRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * factory method for an instance of ProductSearchNumberRangeValueBuilder + * @return builder + */ + public static ProductSearchNumberRangeValueBuilder of() { + return new ProductSearchNumberRangeValueBuilder(); + } + + /** + * create builder for ProductSearchNumberRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchNumberRangeValueBuilder of(final ProductSearchNumberRangeValue template) { + ProductSearchNumberRangeValueBuilder builder = new ProductSearchNumberRangeValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.attributeType = template.getAttributeType(); + builder.gte = template.getGte(); + builder.gt = template.getGt(); + builder.lte = template.getLte(); + builder.lt = template.getLt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueImpl.java new file mode 100644 index 00000000000..bc6de6981d4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueImpl.java @@ -0,0 +1,199 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchNumberRangeValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchNumberRangeValueImpl implements ProductSearchNumberRangeValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private Double gte; + + private Double gt; + + private Double lte; + + private Double lt; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchNumberRangeValueImpl(@JsonProperty("field") final String field, + @JsonProperty("boost") final Double boost, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("gte") final Double gte, @JsonProperty("gt") final Double gt, + @JsonProperty("lte") final Double lte, @JsonProperty("lt") final Double lt) { + this.field = field; + this.boost = boost; + this.attributeType = attributeType; + this.gte = gte; + this.gt = gt; + this.lte = lte; + this.lt = lt; + } + + /** + * create empty instance + */ + public ProductSearchNumberRangeValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * + */ + + public Double getGte() { + return this.gte; + } + + /** + * + */ + + public Double getGt() { + return this.gt; + } + + /** + * + */ + + public Double getLte() { + return this.lte; + } + + /** + * + */ + + public Double getLt() { + return this.lt; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setGte(final Double gte) { + this.gte = gte; + } + + public void setGt(final Double gt) { + this.gt = gt; + } + + public void setLte(final Double lte) { + this.lte = lte; + } + + public void setLt(final Double lt) { + this.lt = lt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchNumberRangeValueImpl that = (ProductSearchNumberRangeValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(boost) + .append(attributeType) + .append(gte) + .append(gt) + .append(lte) + .append(lt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("attributeType", attributeType) + .append("gte", gte) + .append("gt", gt) + .append("lte", lte) + .append("lt", lt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpression.java new file mode 100644 index 00000000000..3f90c04fa49 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpression.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchOrExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchOrExpression productSearchOrExpression = ProductSearchOrExpression.builder()
+ *             .plusOr(orBuilder -> orBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchOrExpressionImpl.class) +public interface ProductSearchOrExpression extends ProductSearchCompoundExpression { + + /** + * + * @return or + */ + @NotNull + @Valid + @JsonProperty("or") + public List getOr(); + + /** + * set or + * @param or values to be set + */ + + @JsonIgnore + public void setOr(final ProductSearchQuery... or); + + /** + * set or + * @param or values to be set + */ + + public void setOr(final List or); + + /** + * factory method + * @return instance of ProductSearchOrExpression + */ + public static ProductSearchOrExpression of() { + return new ProductSearchOrExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchOrExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchOrExpression of(final ProductSearchOrExpression template) { + ProductSearchOrExpressionImpl instance = new ProductSearchOrExpressionImpl(); + instance.setOr(template.getOr()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchOrExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchOrExpression deepCopy(@Nullable final ProductSearchOrExpression template) { + if (template == null) { + return null; + } + ProductSearchOrExpressionImpl instance = new ProductSearchOrExpressionImpl(); + instance.setOr(Optional.ofNullable(template.getOr()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchQuery::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductSearchOrExpression + * @return builder + */ + public static ProductSearchOrExpressionBuilder builder() { + return ProductSearchOrExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchOrExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchOrExpressionBuilder builder(final ProductSearchOrExpression template) { + return ProductSearchOrExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchOrExpression(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/product_search/ProductSearchOrExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionBuilder.java new file mode 100644 index 00000000000..5dba3360f09 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionBuilder.java @@ -0,0 +1,161 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchOrExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchOrExpression productSearchOrExpression = ProductSearchOrExpression.builder()
+ *             .plusOr(orBuilder -> orBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchOrExpressionBuilder implements Builder { + + private java.util.List or; + + /** + * set values to the or + * @param or value to be set + * @return Builder + */ + + public ProductSearchOrExpressionBuilder or( + final com.commercetools.api.models.product_search.ProductSearchQuery... or) { + this.or = new ArrayList<>(Arrays.asList(or)); + return this; + } + + /** + * set value to the or + * @param or value to be set + * @return Builder + */ + + public ProductSearchOrExpressionBuilder or( + final java.util.List or) { + this.or = or; + return this; + } + + /** + * add values to the or + * @param or value to be set + * @return Builder + */ + + public ProductSearchOrExpressionBuilder plusOr( + final com.commercetools.api.models.product_search.ProductSearchQuery... or) { + if (this.or == null) { + this.or = new ArrayList<>(); + } + this.or.addAll(Arrays.asList(or)); + return this; + } + + /** + * add the value to the or using the builder function + * @param builder function to build the or value + * @return Builder + */ + + public ProductSearchOrExpressionBuilder plusOr( + Function builder) { + if (this.or == null) { + this.or = new ArrayList<>(); + } + this.or.add(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()).build()); + return this; + } + + /** + * set the value to the or using the builder function + * @param builder function to build the or value + * @return Builder + */ + + public ProductSearchOrExpressionBuilder withOr( + Function builder) { + this.or = new ArrayList<>(); + this.or.add(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()).build()); + return this; + } + + /** + * add the value to the or using the builder function + * @param builder function to build the or value + * @return Builder + */ + + public ProductSearchOrExpressionBuilder addOr( + Function builder) { + return plusOr(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of())); + } + + /** + * set the value to the or using the builder function + * @param builder function to build the or value + * @return Builder + */ + + public ProductSearchOrExpressionBuilder setOr( + Function builder) { + return or(builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of())); + } + + /** + * value of or} + * @return or + */ + + public java.util.List getOr() { + return this.or; + } + + /** + * builds ProductSearchOrExpression with checking for non-null required values + * @return ProductSearchOrExpression + */ + public ProductSearchOrExpression build() { + Objects.requireNonNull(or, ProductSearchOrExpression.class + ": or is missing"); + return new ProductSearchOrExpressionImpl(or); + } + + /** + * builds ProductSearchOrExpression without checking for non-null required values + * @return ProductSearchOrExpression + */ + public ProductSearchOrExpression buildUnchecked() { + return new ProductSearchOrExpressionImpl(or); + } + + /** + * factory method for an instance of ProductSearchOrExpressionBuilder + * @return builder + */ + public static ProductSearchOrExpressionBuilder of() { + return new ProductSearchOrExpressionBuilder(); + } + + /** + * create builder for ProductSearchOrExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchOrExpressionBuilder of(final ProductSearchOrExpression template) { + ProductSearchOrExpressionBuilder builder = new ProductSearchOrExpressionBuilder(); + builder.or = template.getOr(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionImpl.java new file mode 100644 index 00000000000..ea2a7473fb1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionImpl.java @@ -0,0 +1,81 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchOrExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchOrExpressionImpl implements ProductSearchOrExpression, ModelBase { + + private java.util.List or; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchOrExpressionImpl( + @JsonProperty("or") final java.util.List or) { + this.or = or; + } + + /** + * create empty instance + */ + public ProductSearchOrExpressionImpl() { + } + + /** + * + */ + + public java.util.List getOr() { + return this.or; + } + + public void setOr(final com.commercetools.api.models.product_search.ProductSearchQuery... or) { + this.or = new ArrayList<>(Arrays.asList(or)); + } + + public void setOr(final java.util.List or) { + this.or = or; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchOrExpressionImpl that = (ProductSearchOrExpressionImpl) o; + + return new EqualsBuilder().append(or, that.or).append(or, that.or).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(or).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("or", or).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpression.java new file mode 100644 index 00000000000..8322c3f58f0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpression.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchPrefixExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchPrefixExpression productSearchPrefixExpression = ProductSearchPrefixExpression.builder()
+ *             .prefix(prefixBuilder -> prefixBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchPrefixExpressionImpl.class) +public interface ProductSearchPrefixExpression extends ProductSearchQueryExpression { + + /** + * + * @return prefix + */ + @NotNull + @Valid + @JsonProperty("prefix") + public ProductSearchAnyValue getPrefix(); + + /** + * set prefix + * @param prefix value to be set + */ + + public void setPrefix(final ProductSearchAnyValue prefix); + + /** + * factory method + * @return instance of ProductSearchPrefixExpression + */ + public static ProductSearchPrefixExpression of() { + return new ProductSearchPrefixExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchPrefixExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchPrefixExpression of(final ProductSearchPrefixExpression template) { + ProductSearchPrefixExpressionImpl instance = new ProductSearchPrefixExpressionImpl(); + instance.setPrefix(template.getPrefix()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchPrefixExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchPrefixExpression deepCopy(@Nullable final ProductSearchPrefixExpression template) { + if (template == null) { + return null; + } + ProductSearchPrefixExpressionImpl instance = new ProductSearchPrefixExpressionImpl(); + instance.setPrefix( + com.commercetools.api.models.product_search.ProductSearchAnyValue.deepCopy(template.getPrefix())); + return instance; + } + + /** + * builder factory method for ProductSearchPrefixExpression + * @return builder + */ + public static ProductSearchPrefixExpressionBuilder builder() { + return ProductSearchPrefixExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchPrefixExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchPrefixExpressionBuilder builder(final ProductSearchPrefixExpression template) { + return ProductSearchPrefixExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchPrefixExpression(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/product_search/ProductSearchPrefixExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionBuilder.java new file mode 100644 index 00000000000..bdbe800d672 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchPrefixExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchPrefixExpression productSearchPrefixExpression = ProductSearchPrefixExpression.builder()
+ *             .prefix(prefixBuilder -> prefixBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchPrefixExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchAnyValue prefix; + + /** + * set the value to the prefix using the builder function + * @param builder function to build the prefix value + * @return Builder + */ + + public ProductSearchPrefixExpressionBuilder prefix( + Function builder) { + this.prefix = builder.apply(com.commercetools.api.models.product_search.ProductSearchAnyValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the prefix using the builder function + * @param builder function to build the prefix value + * @return Builder + */ + + public ProductSearchPrefixExpressionBuilder withPrefix( + Function builder) { + this.prefix = builder.apply(com.commercetools.api.models.product_search.ProductSearchAnyValueBuilder.of()); + return this; + } + + /** + * set the value to the prefix + * @param prefix value to be set + * @return Builder + */ + + public ProductSearchPrefixExpressionBuilder prefix( + final com.commercetools.api.models.product_search.ProductSearchAnyValue prefix) { + this.prefix = prefix; + return this; + } + + /** + * value of prefix} + * @return prefix + */ + + public com.commercetools.api.models.product_search.ProductSearchAnyValue getPrefix() { + return this.prefix; + } + + /** + * builds ProductSearchPrefixExpression with checking for non-null required values + * @return ProductSearchPrefixExpression + */ + public ProductSearchPrefixExpression build() { + Objects.requireNonNull(prefix, ProductSearchPrefixExpression.class + ": prefix is missing"); + return new ProductSearchPrefixExpressionImpl(prefix); + } + + /** + * builds ProductSearchPrefixExpression without checking for non-null required values + * @return ProductSearchPrefixExpression + */ + public ProductSearchPrefixExpression buildUnchecked() { + return new ProductSearchPrefixExpressionImpl(prefix); + } + + /** + * factory method for an instance of ProductSearchPrefixExpressionBuilder + * @return builder + */ + public static ProductSearchPrefixExpressionBuilder of() { + return new ProductSearchPrefixExpressionBuilder(); + } + + /** + * create builder for ProductSearchPrefixExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchPrefixExpressionBuilder of(final ProductSearchPrefixExpression template) { + ProductSearchPrefixExpressionBuilder builder = new ProductSearchPrefixExpressionBuilder(); + builder.prefix = template.getPrefix(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionImpl.java new file mode 100644 index 00000000000..f54282bdf2f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchPrefixExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchPrefixExpressionImpl implements ProductSearchPrefixExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchAnyValue prefix; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchPrefixExpressionImpl( + @JsonProperty("prefix") final com.commercetools.api.models.product_search.ProductSearchAnyValue prefix) { + this.prefix = prefix; + } + + /** + * create empty instance + */ + public ProductSearchPrefixExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAnyValue getPrefix() { + return this.prefix; + } + + public void setPrefix(final com.commercetools.api.models.product_search.ProductSearchAnyValue prefix) { + this.prefix = prefix; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchPrefixExpressionImpl that = (ProductSearchPrefixExpressionImpl) o; + + return new EqualsBuilder().append(prefix, that.prefix).append(prefix, that.prefix).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(prefix).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("prefix", prefix).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java new file mode 100644 index 00000000000..6b29bd948c7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java @@ -0,0 +1,247 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchProjectionParams + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchProjectionParams productSearchProjectionParams = ProductSearchProjectionParams.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchProjectionParamsImpl.class) +public interface ProductSearchProjectionParams { + + /** + *

Expands a value of type Reference. In case the referenced object does not exist, the API returns the non-expanded reference.

+ * @return expand + */ + + @JsonProperty("expand") + public String getExpand(); + + /** + *

Set to true to retrieve the staged Product Projection

+ * @return staged + */ + + @JsonProperty("staged") + public Boolean getStaged(); + + /** + *

The currency used for Price selection.

+ * @return priceCurrency + */ + + @JsonProperty("priceCurrency") + public String getPriceCurrency(); + + /** + *

The country used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ * @return priceCountry + */ + + @JsonProperty("priceCountry") + public String getPriceCountry(); + + /** + *

id of an existing CustomerGroup used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ * @return priceCustomerGroup + */ + + @JsonProperty("priceCustomerGroup") + public String getPriceCustomerGroup(); + + /** + *

id of an existing Channel used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ * @return priceChannel + */ + + @JsonProperty("priceChannel") + public String getPriceChannel(); + + /** + *

Used for locale-based projection.

+ * @return localeProjection + */ + + @JsonProperty("localeProjection") + public List getLocaleProjection(); + + /** + *

key of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price and inventory. If the Store has defined Product Selections, they have no effect on the results of this query.

+ * @return storeProjection + */ + + @JsonProperty("storeProjection") + public String getStoreProjection(); + + /** + *

Expands a value of type Reference. In case the referenced object does not exist, the API returns the non-expanded reference.

+ * @param expand value to be set + */ + + public void setExpand(final String expand); + + /** + *

Set to true to retrieve the staged Product Projection

+ * @param staged value to be set + */ + + public void setStaged(final Boolean staged); + + /** + *

The currency used for Price selection.

+ * @param priceCurrency value to be set + */ + + public void setPriceCurrency(final String priceCurrency); + + /** + *

The country used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ * @param priceCountry value to be set + */ + + public void setPriceCountry(final String priceCountry); + + /** + *

id of an existing CustomerGroup used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ * @param priceCustomerGroup value to be set + */ + + public void setPriceCustomerGroup(final String priceCustomerGroup); + + /** + *

id of an existing Channel used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ * @param priceChannel value to be set + */ + + public void setPriceChannel(final String priceChannel); + + /** + *

Used for locale-based projection.

+ * @param localeProjection values to be set + */ + + @JsonIgnore + public void setLocaleProjection(final String... localeProjection); + + /** + *

Used for locale-based projection.

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

key of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price and inventory. If the Store has defined Product Selections, they have no effect on the results of this query.

+ * @param storeProjection value to be set + */ + + public void setStoreProjection(final String storeProjection); + + /** + * factory method + * @return instance of ProductSearchProjectionParams + */ + public static ProductSearchProjectionParams of() { + return new ProductSearchProjectionParamsImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchProjectionParams + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchProjectionParams of(final ProductSearchProjectionParams template) { + ProductSearchProjectionParamsImpl instance = new ProductSearchProjectionParamsImpl(); + instance.setExpand(template.getExpand()); + instance.setStaged(template.getStaged()); + instance.setPriceCurrency(template.getPriceCurrency()); + instance.setPriceCountry(template.getPriceCountry()); + instance.setPriceCustomerGroup(template.getPriceCustomerGroup()); + instance.setPriceChannel(template.getPriceChannel()); + instance.setLocaleProjection(template.getLocaleProjection()); + instance.setStoreProjection(template.getStoreProjection()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchProjectionParams + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchProjectionParams deepCopy(@Nullable final ProductSearchProjectionParams template) { + if (template == null) { + return null; + } + ProductSearchProjectionParamsImpl instance = new ProductSearchProjectionParamsImpl(); + instance.setExpand(template.getExpand()); + instance.setStaged(template.getStaged()); + instance.setPriceCurrency(template.getPriceCurrency()); + instance.setPriceCountry(template.getPriceCountry()); + instance.setPriceCustomerGroup(template.getPriceCustomerGroup()); + instance.setPriceChannel(template.getPriceChannel()); + instance.setLocaleProjection( + Optional.ofNullable(template.getLocaleProjection()).map(ArrayList::new).orElse(null)); + instance.setStoreProjection(template.getStoreProjection()); + return instance; + } + + /** + * builder factory method for ProductSearchProjectionParams + * @return builder + */ + public static ProductSearchProjectionParamsBuilder builder() { + return ProductSearchProjectionParamsBuilder.of(); + } + + /** + * create builder for ProductSearchProjectionParams instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchProjectionParamsBuilder builder(final ProductSearchProjectionParams template) { + return ProductSearchProjectionParamsBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchProjectionParams(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/product_search/ProductSearchProjectionParamsBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java new file mode 100644 index 00000000000..6eba5125d75 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java @@ -0,0 +1,287 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchProjectionParamsBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchProjectionParams productSearchProjectionParams = ProductSearchProjectionParams.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchProjectionParamsBuilder implements Builder { + + @Nullable + private String expand; + + @Nullable + private Boolean staged; + + @Nullable + private String priceCurrency; + + @Nullable + private String priceCountry; + + @Nullable + private String priceCustomerGroup; + + @Nullable + private String priceChannel; + + @Nullable + private java.util.List localeProjection; + + @Nullable + private String storeProjection; + + /** + *

Expands a value of type Reference. In case the referenced object does not exist, the API returns the non-expanded reference.

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

Set to true to retrieve the staged Product Projection

+ * @param staged value to be set + * @return Builder + */ + + public ProductSearchProjectionParamsBuilder staged(@Nullable final Boolean staged) { + this.staged = staged; + return this; + } + + /** + *

The currency used for Price selection.

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

The country used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

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

id of an existing CustomerGroup used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

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

id of an existing Channel used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

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

Used for locale-based projection.

+ * @param localeProjection value to be set + * @return Builder + */ + + public ProductSearchProjectionParamsBuilder localeProjection(@Nullable final String... localeProjection) { + this.localeProjection = new ArrayList<>(Arrays.asList(localeProjection)); + return this; + } + + /** + *

Used for locale-based projection.

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

Used for locale-based projection.

+ * @param localeProjection value to be set + * @return Builder + */ + + public ProductSearchProjectionParamsBuilder plusLocaleProjection(@Nullable final String... localeProjection) { + if (this.localeProjection == null) { + this.localeProjection = new ArrayList<>(); + } + this.localeProjection.addAll(Arrays.asList(localeProjection)); + return this; + } + + /** + *

key of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price and inventory. If the Store has defined Product Selections, they have no effect on the results of this query.

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

Expands a value of type Reference. In case the referenced object does not exist, the API returns the non-expanded reference.

+ * @return expand + */ + + @Nullable + public String getExpand() { + return this.expand; + } + + /** + *

Set to true to retrieve the staged Product Projection

+ * @return staged + */ + + @Nullable + public Boolean getStaged() { + return this.staged; + } + + /** + *

The currency used for Price selection.

+ * @return priceCurrency + */ + + @Nullable + public String getPriceCurrency() { + return this.priceCurrency; + } + + /** + *

The country used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ * @return priceCountry + */ + + @Nullable + public String getPriceCountry() { + return this.priceCountry; + } + + /** + *

id of an existing CustomerGroup used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ * @return priceCustomerGroup + */ + + @Nullable + public String getPriceCustomerGroup() { + return this.priceCustomerGroup; + } + + /** + *

id of an existing Channel used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ * @return priceChannel + */ + + @Nullable + public String getPriceChannel() { + return this.priceChannel; + } + + /** + *

Used for locale-based projection.

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

key of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price and inventory. If the Store has defined Product Selections, they have no effect on the results of this query.

+ * @return storeProjection + */ + + @Nullable + public String getStoreProjection() { + return this.storeProjection; + } + + /** + * builds ProductSearchProjectionParams with checking for non-null required values + * @return ProductSearchProjectionParams + */ + public ProductSearchProjectionParams build() { + return new ProductSearchProjectionParamsImpl(expand, staged, priceCurrency, priceCountry, priceCustomerGroup, + priceChannel, localeProjection, storeProjection); + } + + /** + * builds ProductSearchProjectionParams without checking for non-null required values + * @return ProductSearchProjectionParams + */ + public ProductSearchProjectionParams buildUnchecked() { + return new ProductSearchProjectionParamsImpl(expand, staged, priceCurrency, priceCountry, priceCustomerGroup, + priceChannel, localeProjection, storeProjection); + } + + /** + * factory method for an instance of ProductSearchProjectionParamsBuilder + * @return builder + */ + public static ProductSearchProjectionParamsBuilder of() { + return new ProductSearchProjectionParamsBuilder(); + } + + /** + * create builder for ProductSearchProjectionParams instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchProjectionParamsBuilder of(final ProductSearchProjectionParams template) { + ProductSearchProjectionParamsBuilder builder = new ProductSearchProjectionParamsBuilder(); + builder.expand = template.getExpand(); + builder.staged = template.getStaged(); + builder.priceCurrency = template.getPriceCurrency(); + builder.priceCountry = template.getPriceCountry(); + builder.priceCustomerGroup = template.getPriceCustomerGroup(); + builder.priceChannel = template.getPriceChannel(); + builder.localeProjection = template.getLocaleProjection(); + builder.storeProjection = template.getStoreProjection(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java new file mode 100644 index 00000000000..f4547d3490a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsImpl.java @@ -0,0 +1,223 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchProjectionParams + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchProjectionParamsImpl implements ProductSearchProjectionParams, ModelBase { + + private String expand; + + private Boolean staged; + + private String priceCurrency; + + private String priceCountry; + + private String priceCustomerGroup; + + private String priceChannel; + + private java.util.List localeProjection; + + private String storeProjection; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchProjectionParamsImpl(@JsonProperty("expand") final String expand, + @JsonProperty("staged") final Boolean staged, @JsonProperty("priceCurrency") final String priceCurrency, + @JsonProperty("priceCountry") final String priceCountry, + @JsonProperty("priceCustomerGroup") final String priceCustomerGroup, + @JsonProperty("priceChannel") final String priceChannel, + @JsonProperty("localeProjection") final java.util.List localeProjection, + @JsonProperty("storeProjection") final String storeProjection) { + this.expand = expand; + this.staged = staged; + this.priceCurrency = priceCurrency; + this.priceCountry = priceCountry; + this.priceCustomerGroup = priceCustomerGroup; + this.priceChannel = priceChannel; + this.localeProjection = localeProjection; + this.storeProjection = storeProjection; + } + + /** + * create empty instance + */ + public ProductSearchProjectionParamsImpl() { + } + + /** + *

Expands a value of type Reference. In case the referenced object does not exist, the API returns the non-expanded reference.

+ */ + + public String getExpand() { + return this.expand; + } + + /** + *

Set to true to retrieve the staged Product Projection

+ */ + + public Boolean getStaged() { + return this.staged; + } + + /** + *

The currency used for Price selection.

+ */ + + public String getPriceCurrency() { + return this.priceCurrency; + } + + /** + *

The country used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ */ + + public String getPriceCountry() { + return this.priceCountry; + } + + /** + *

id of an existing CustomerGroup used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ */ + + public String getPriceCustomerGroup() { + return this.priceCustomerGroup; + } + + /** + *

id of an existing Channel used for Price selection. Can only be used in conjunction with the priceCurrency parameter.

+ */ + + public String getPriceChannel() { + return this.priceChannel; + } + + /** + *

Used for locale-based projection.

+ */ + + public java.util.List getLocaleProjection() { + return this.localeProjection; + } + + /** + *

key of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price and inventory. If the Store has defined Product Selections, they have no effect on the results of this query.

+ */ + + public String getStoreProjection() { + return this.storeProjection; + } + + public void setExpand(final String expand) { + this.expand = expand; + } + + public void setStaged(final Boolean staged) { + this.staged = staged; + } + + public void setPriceCurrency(final String priceCurrency) { + this.priceCurrency = priceCurrency; + } + + public void setPriceCountry(final String priceCountry) { + this.priceCountry = priceCountry; + } + + public void setPriceCustomerGroup(final String priceCustomerGroup) { + this.priceCustomerGroup = priceCustomerGroup; + } + + public void setPriceChannel(final String priceChannel) { + this.priceChannel = priceChannel; + } + + public void setLocaleProjection(final String... localeProjection) { + this.localeProjection = new ArrayList<>(Arrays.asList(localeProjection)); + } + + public void setLocaleProjection(final java.util.List localeProjection) { + this.localeProjection = localeProjection; + } + + public void setStoreProjection(final String storeProjection) { + this.storeProjection = storeProjection; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchProjectionParamsImpl that = (ProductSearchProjectionParamsImpl) o; + + return new EqualsBuilder().append(expand, that.expand) + .append(staged, that.staged) + .append(priceCurrency, that.priceCurrency) + .append(priceCountry, that.priceCountry) + .append(priceCustomerGroup, that.priceCustomerGroup) + .append(priceChannel, that.priceChannel) + .append(localeProjection, that.localeProjection) + .append(storeProjection, that.storeProjection) + .append(expand, that.expand) + .append(staged, that.staged) + .append(priceCurrency, that.priceCurrency) + .append(priceCountry, that.priceCountry) + .append(priceCustomerGroup, that.priceCustomerGroup) + .append(priceChannel, that.priceChannel) + .append(localeProjection, that.localeProjection) + .append(storeProjection, that.storeProjection) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(expand) + .append(staged) + .append(priceCurrency) + .append(priceCountry) + .append(priceCustomerGroup) + .append(priceChannel) + .append(localeProjection) + .append(storeProjection) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("expand", expand) + .append("staged", staged) + .append("priceCurrency", priceCurrency) + .append("priceCountry", priceCountry) + .append("priceCustomerGroup", priceCustomerGroup) + .append("priceChannel", priceChannel) + .append("localeProjection", localeProjection) + .append("storeProjection", storeProjection) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQuery.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQuery.java new file mode 100644 index 00000000000..8a265430536 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQuery.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchQuery + * + *
+ * Example to create an instance using the builder pattern + *
+ *

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

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

+ *     ProductSearchQueryExpression productSearchQueryExpression = ProductSearchQueryExpression.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchQueryExpressionImpl.class) +public interface ProductSearchQueryExpression extends ProductSearchQuery { + + /** + * factory method + * @return instance of ProductSearchQueryExpression + */ + public static ProductSearchQueryExpression of() { + return new ProductSearchQueryExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchQueryExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchQueryExpression of(final ProductSearchQueryExpression template) { + ProductSearchQueryExpressionImpl instance = new ProductSearchQueryExpressionImpl(); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchQueryExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchQueryExpression deepCopy(@Nullable final ProductSearchQueryExpression template) { + if (template == null) { + return null; + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchDateRangeExpression) { + return com.commercetools.api.models.product_search.ProductSearchDateRangeExpression + .deepCopy((com.commercetools.api.models.product_search.ProductSearchDateRangeExpression) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchDateTimeRangeExpression) { + return com.commercetools.api.models.product_search.ProductSearchDateTimeRangeExpression.deepCopy( + (com.commercetools.api.models.product_search.ProductSearchDateTimeRangeExpression) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchExactExpression) { + return com.commercetools.api.models.product_search.ProductSearchExactExpression + .deepCopy((com.commercetools.api.models.product_search.ProductSearchExactExpression) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchExistsExpression) { + return com.commercetools.api.models.product_search.ProductSearchExistsExpression + .deepCopy((com.commercetools.api.models.product_search.ProductSearchExistsExpression) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchFullTextExpression) { + return com.commercetools.api.models.product_search.ProductSearchFullTextExpression + .deepCopy((com.commercetools.api.models.product_search.ProductSearchFullTextExpression) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchLongRangeExpression) { + return com.commercetools.api.models.product_search.ProductSearchLongRangeExpression + .deepCopy((com.commercetools.api.models.product_search.ProductSearchLongRangeExpression) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchNumberRangeExpression) { + return com.commercetools.api.models.product_search.ProductSearchNumberRangeExpression.deepCopy( + (com.commercetools.api.models.product_search.ProductSearchNumberRangeExpression) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchPrefixExpression) { + return com.commercetools.api.models.product_search.ProductSearchPrefixExpression + .deepCopy((com.commercetools.api.models.product_search.ProductSearchPrefixExpression) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchTimeRangeExpression) { + return com.commercetools.api.models.product_search.ProductSearchTimeRangeExpression + .deepCopy((com.commercetools.api.models.product_search.ProductSearchTimeRangeExpression) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchWildCardExpression) { + return com.commercetools.api.models.product_search.ProductSearchWildCardExpression + .deepCopy((com.commercetools.api.models.product_search.ProductSearchWildCardExpression) template); + } + ProductSearchQueryExpressionImpl instance = new ProductSearchQueryExpressionImpl(); + return instance; + } + + /** + * builder factory method for ProductSearchQueryExpression + * @return builder + */ + public static ProductSearchQueryExpressionBuilder builder() { + return ProductSearchQueryExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchQueryExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchQueryExpressionBuilder builder(final ProductSearchQueryExpression template) { + return ProductSearchQueryExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchQueryExpression(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/product_search/ProductSearchQueryExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionBuilder.java new file mode 100644 index 00000000000..ca8b10f01a9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionBuilder.java @@ -0,0 +1,57 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchQueryExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchQueryExpression productSearchQueryExpression = ProductSearchQueryExpression.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchQueryExpressionBuilder implements Builder { + + /** + * builds ProductSearchQueryExpression with checking for non-null required values + * @return ProductSearchQueryExpression + */ + public ProductSearchQueryExpression build() { + return new ProductSearchQueryExpressionImpl(); + } + + /** + * builds ProductSearchQueryExpression without checking for non-null required values + * @return ProductSearchQueryExpression + */ + public ProductSearchQueryExpression buildUnchecked() { + return new ProductSearchQueryExpressionImpl(); + } + + /** + * factory method for an instance of ProductSearchQueryExpressionBuilder + * @return builder + */ + public static ProductSearchQueryExpressionBuilder of() { + return new ProductSearchQueryExpressionBuilder(); + } + + /** + * create builder for ProductSearchQueryExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchQueryExpressionBuilder of(final ProductSearchQueryExpression template) { + ProductSearchQueryExpressionBuilder builder = new ProductSearchQueryExpressionBuilder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionImpl.java new file mode 100644 index 00000000000..ac44df9a825 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionImpl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchQueryExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchQueryExpressionImpl implements ProductSearchQueryExpression, ModelBase { + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchQueryExpressionImpl() { + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchQueryExpressionImpl that = (ProductSearchQueryExpressionImpl) o; + + return new EqualsBuilder().isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValue.java new file mode 100644 index 00000000000..459b0ebd22b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValue.java @@ -0,0 +1,188 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchQueryExpressionValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchQueryExpressionValue productSearchQueryExpressionValue = ProductSearchQueryExpressionValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchQueryExpressionValueImpl.class) +public interface ProductSearchQueryExpressionValue { + + /** + * + * @return field + */ + @NotNull + @JsonProperty("field") + public String getField(); + + /** + * + * @return boost + */ + + @JsonProperty("boost") + public Double getBoost(); + + /** + * + * @return attributeType + */ + + @JsonProperty("attributeType") + public ProductSearchAttributeType getAttributeType(); + + /** + * set field + * @param field value to be set + */ + + public void setField(final String field); + + /** + * set boost + * @param boost value to be set + */ + + public void setBoost(final Double boost); + + /** + * set attributeType + * @param attributeType value to be set + */ + + public void setAttributeType(final ProductSearchAttributeType attributeType); + + /** + * factory method + * @return instance of ProductSearchQueryExpressionValue + */ + public static ProductSearchQueryExpressionValue of() { + return new ProductSearchQueryExpressionValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchQueryExpressionValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchQueryExpressionValue of(final ProductSearchQueryExpressionValue template) { + ProductSearchQueryExpressionValueImpl instance = new ProductSearchQueryExpressionValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchQueryExpressionValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchQueryExpressionValue deepCopy( + @Nullable final ProductSearchQueryExpressionValue template) { + if (template == null) { + return null; + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchAnyValue) { + return com.commercetools.api.models.product_search.ProductSearchAnyValue + .deepCopy((com.commercetools.api.models.product_search.ProductSearchAnyValue) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchDateRangeValue) { + return com.commercetools.api.models.product_search.ProductSearchDateRangeValue + .deepCopy((com.commercetools.api.models.product_search.ProductSearchDateRangeValue) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue) { + return com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue + .deepCopy((com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValue) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchExistsValue) { + return com.commercetools.api.models.product_search.ProductSearchExistsValue + .deepCopy((com.commercetools.api.models.product_search.ProductSearchExistsValue) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchFullTextValue) { + return com.commercetools.api.models.product_search.ProductSearchFullTextValue + .deepCopy((com.commercetools.api.models.product_search.ProductSearchFullTextValue) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchLongRangeValue) { + return com.commercetools.api.models.product_search.ProductSearchLongRangeValue + .deepCopy((com.commercetools.api.models.product_search.ProductSearchLongRangeValue) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchNumberRangeValue) { + return com.commercetools.api.models.product_search.ProductSearchNumberRangeValue + .deepCopy((com.commercetools.api.models.product_search.ProductSearchNumberRangeValue) template); + } + if (template instanceof com.commercetools.api.models.product_search.ProductSearchTimeRangeValue) { + return com.commercetools.api.models.product_search.ProductSearchTimeRangeValue + .deepCopy((com.commercetools.api.models.product_search.ProductSearchTimeRangeValue) template); + } + ProductSearchQueryExpressionValueImpl instance = new ProductSearchQueryExpressionValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + return instance; + } + + /** + * builder factory method for ProductSearchQueryExpressionValue + * @return builder + */ + public static ProductSearchQueryExpressionValueBuilder builder() { + return ProductSearchQueryExpressionValueBuilder.of(); + } + + /** + * create builder for ProductSearchQueryExpressionValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchQueryExpressionValueBuilder builder(final ProductSearchQueryExpressionValue template) { + return ProductSearchQueryExpressionValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchQueryExpressionValue(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/product_search/ProductSearchQueryExpressionValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueBuilder.java new file mode 100644 index 00000000000..8f19be883d2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueBuilder.java @@ -0,0 +1,135 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchQueryExpressionValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchQueryExpressionValue productSearchQueryExpressionValue = ProductSearchQueryExpressionValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchQueryExpressionValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchQueryExpressionValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public ProductSearchQueryExpressionValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchQueryExpressionValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * builds ProductSearchQueryExpressionValue with checking for non-null required values + * @return ProductSearchQueryExpressionValue + */ + public ProductSearchQueryExpressionValue build() { + Objects.requireNonNull(field, ProductSearchQueryExpressionValue.class + ": field is missing"); + return new ProductSearchQueryExpressionValueImpl(field, boost, attributeType); + } + + /** + * builds ProductSearchQueryExpressionValue without checking for non-null required values + * @return ProductSearchQueryExpressionValue + */ + public ProductSearchQueryExpressionValue buildUnchecked() { + return new ProductSearchQueryExpressionValueImpl(field, boost, attributeType); + } + + /** + * factory method for an instance of ProductSearchQueryExpressionValueBuilder + * @return builder + */ + public static ProductSearchQueryExpressionValueBuilder of() { + return new ProductSearchQueryExpressionValueBuilder(); + } + + /** + * create builder for ProductSearchQueryExpressionValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchQueryExpressionValueBuilder of(final ProductSearchQueryExpressionValue template) { + ProductSearchQueryExpressionValueBuilder builder = new ProductSearchQueryExpressionValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.attributeType = template.getAttributeType(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueImpl.java new file mode 100644 index 00000000000..de22288be4a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueImpl.java @@ -0,0 +1,118 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchQueryExpressionValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchQueryExpressionValueImpl implements ProductSearchQueryExpressionValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchQueryExpressionValueImpl(@JsonProperty("field") final String field, + @JsonProperty("boost") final Double boost, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.field = field; + this.boost = boost; + this.attributeType = attributeType; + } + + /** + * create empty instance + */ + public ProductSearchQueryExpressionValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchQueryExpressionValueImpl that = (ProductSearchQueryExpressionValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field).append(boost).append(attributeType).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("attributeType", attributeType) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryImpl.java new file mode 100644 index 00000000000..f057bb237d0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryImpl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchQuery + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchQueryImpl implements ProductSearchQuery, ModelBase { + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchQueryImpl() { + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchQueryImpl that = (ProductSearchQueryImpl) o; + + return new EqualsBuilder().isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequest.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequest.java new file mode 100644 index 00000000000..34e43391426 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequest.java @@ -0,0 +1,266 @@ + +package com.commercetools.api.models.product_search; + +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 com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchRequest + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchRequest productSearchRequest = ProductSearchRequest.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchRequestImpl.class) +public interface ProductSearchRequest { + + /** + *

The Product search query.

+ * @return query + */ + @Valid + @JsonProperty("query") + public ProductSearchQuery getQuery(); + + /** + * + * @return postFilter + */ + @Valid + @JsonProperty("postFilter") + public ProductSearchQuery getPostFilter(); + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @return sort + */ + @Valid + @JsonProperty("sort") + public List getSort(); + + /** + *

The maximum number of search results to be returned.

+ * @return limit + */ + + @JsonProperty("limit") + public Integer getLimit(); + + /** + *

The number of search results to be skipped in the response for pagination.

+ * @return offset + */ + + @JsonProperty("offset") + public Integer getOffset(); + + /** + *

The search can return Products where not all Product Variants match the search criteria. If true, the response will include a field called matchingVariants that contains the sku of Product Variants that match the search query. If the query does not specify any variant-level criteria, matchingVariants will be null signifying that all Product Variants are a match.

+ * @return markMatchingVariants + */ + + @JsonProperty("markMatchingVariants") + public Boolean getMarkMatchingVariants(); + + /** + *

Contains Product Projection query parameters. Used to fetch matching Product Projection data of products matching the search query. If not included, Product Projection integration is not used.

+ * @return projection + */ + @Valid + @JsonProperty("projection") + public ProductSearchProjectionParams getProjection(); + + /** + * + * @return facets + */ + @Valid + @JsonProperty("facets") + public List getFacets(); + + /** + *

The Product search query.

+ * @param query value to be set + */ + + public void setQuery(final ProductSearchQuery query); + + /** + * set postFilter + * @param postFilter value to be set + */ + + public void setPostFilter(final ProductSearchQuery postFilter); + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param sort values to be set + */ + + @JsonIgnore + public void setSort(final ProductSearchSorting... sort); + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

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

The maximum number of search results to be returned.

+ * @param limit value to be set + */ + + public void setLimit(final Integer limit); + + /** + *

The number of search results to be skipped in the response for pagination.

+ * @param offset value to be set + */ + + public void setOffset(final Integer offset); + + /** + *

The search can return Products where not all Product Variants match the search criteria. If true, the response will include a field called matchingVariants that contains the sku of Product Variants that match the search query. If the query does not specify any variant-level criteria, matchingVariants will be null signifying that all Product Variants are a match.

+ * @param markMatchingVariants value to be set + */ + + public void setMarkMatchingVariants(final Boolean markMatchingVariants); + + /** + *

Contains Product Projection query parameters. Used to fetch matching Product Projection data of products matching the search query. If not included, Product Projection integration is not used.

+ * @param projection value to be set + */ + + public void setProjection(final ProductSearchProjectionParams projection); + + /** + * set facets + * @param facets values to be set + */ + + @JsonIgnore + public void setFacets(final ProductSearchFacetExpression... facets); + + /** + * set facets + * @param facets values to be set + */ + + public void setFacets(final List facets); + + /** + * factory method + * @return instance of ProductSearchRequest + */ + public static ProductSearchRequest of() { + return new ProductSearchRequestImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchRequest + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchRequest of(final ProductSearchRequest template) { + ProductSearchRequestImpl instance = new ProductSearchRequestImpl(); + instance.setQuery(template.getQuery()); + instance.setPostFilter(template.getPostFilter()); + instance.setSort(template.getSort()); + instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); + instance.setMarkMatchingVariants(template.getMarkMatchingVariants()); + instance.setProjection(template.getProjection()); + instance.setFacets(template.getFacets()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchRequest + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchRequest deepCopy(@Nullable final ProductSearchRequest template) { + if (template == null) { + return null; + } + ProductSearchRequestImpl instance = new ProductSearchRequestImpl(); + instance.setQuery(com.commercetools.api.models.product_search.ProductSearchQuery.deepCopy(template.getQuery())); + instance.setPostFilter( + com.commercetools.api.models.product_search.ProductSearchQuery.deepCopy(template.getPostFilter())); + instance.setSort(Optional.ofNullable(template.getSort()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchSorting::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + instance.setLimit(template.getLimit()); + instance.setOffset(template.getOffset()); + instance.setMarkMatchingVariants(template.getMarkMatchingVariants()); + instance.setProjection(com.commercetools.api.models.product_search.ProductSearchProjectionParams + .deepCopy(template.getProjection())); + instance.setFacets(Optional.ofNullable(template.getFacets()) + .map(t -> t.stream() + .map(com.commercetools.api.models.product_search.ProductSearchFacetExpression::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for ProductSearchRequest + * @return builder + */ + public static ProductSearchRequestBuilder builder() { + return ProductSearchRequestBuilder.of(); + } + + /** + * create builder for ProductSearchRequest instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchRequestBuilder builder(final ProductSearchRequest template) { + return ProductSearchRequestBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchRequest(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/product_search/ProductSearchRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestBuilder.java new file mode 100644 index 00000000000..e35811afcdc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestBuilder.java @@ -0,0 +1,505 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchRequestBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchRequest productSearchRequest = ProductSearchRequest.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchRequestBuilder implements Builder { + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchQuery query; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchQuery postFilter; + + @Nullable + private java.util.List sort; + + @Nullable + private Integer limit; + + @Nullable + private Integer offset; + + @Nullable + private Boolean markMatchingVariants; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchProjectionParams projection; + + @Nullable + private java.util.List facets; + + /** + *

The Product search query.

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

The Product search query.

+ * @param builder function to build the query value + * @return Builder + */ + + public ProductSearchRequestBuilder withQuery( + Function builder) { + this.query = builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()); + return this; + } + + /** + *

The Product search query.

+ * @param query value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder query( + @Nullable final com.commercetools.api.models.product_search.ProductSearchQuery query) { + this.query = query; + return this; + } + + /** + * set the value to the postFilter using the builder function + * @param builder function to build the postFilter value + * @return Builder + */ + + public ProductSearchRequestBuilder postFilter( + Function builder) { + this.postFilter = builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the postFilter using the builder function + * @param builder function to build the postFilter value + * @return Builder + */ + + public ProductSearchRequestBuilder withPostFilter( + Function builder) { + this.postFilter = builder.apply(com.commercetools.api.models.product_search.ProductSearchQueryBuilder.of()); + return this; + } + + /** + * set the value to the postFilter + * @param postFilter value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder postFilter( + @Nullable final com.commercetools.api.models.product_search.ProductSearchQuery postFilter) { + this.postFilter = postFilter; + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

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

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

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

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param sort value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder plusSort( + @Nullable final com.commercetools.api.models.product_search.ProductSearchSorting... sort) { + if (this.sort == null) { + this.sort = new ArrayList<>(); + } + this.sort.addAll(Arrays.asList(sort)); + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param builder function to build the sort value + * @return Builder + */ + + public ProductSearchRequestBuilder plusSort( + Function builder) { + if (this.sort == null) { + this.sort = new ArrayList<>(); + } + this.sort.add( + builder.apply(com.commercetools.api.models.product_search.ProductSearchSortingBuilder.of()).build()); + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param builder function to build the sort value + * @return Builder + */ + + public ProductSearchRequestBuilder withSort( + Function builder) { + this.sort = new ArrayList<>(); + this.sort.add( + builder.apply(com.commercetools.api.models.product_search.ProductSearchSortingBuilder.of()).build()); + return this; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param builder function to build the sort value + * @return Builder + */ + + public ProductSearchRequestBuilder addSort( + Function builder) { + return plusSort(builder.apply(com.commercetools.api.models.product_search.ProductSearchSortingBuilder.of())); + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ * @param builder function to build the sort value + * @return Builder + */ + + public ProductSearchRequestBuilder setSort( + Function builder) { + return sort(builder.apply(com.commercetools.api.models.product_search.ProductSearchSortingBuilder.of())); + } + + /** + *

The maximum number of search results to be returned.

+ * @param limit value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder limit(@Nullable final Integer limit) { + this.limit = limit; + return this; + } + + /** + *

The number of search results to be skipped in the response for pagination.

+ * @param offset value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder offset(@Nullable final Integer offset) { + this.offset = offset; + return this; + } + + /** + *

The search can return Products where not all Product Variants match the search criteria. If true, the response will include a field called matchingVariants that contains the sku of Product Variants that match the search query. If the query does not specify any variant-level criteria, matchingVariants will be null signifying that all Product Variants are a match.

+ * @param markMatchingVariants value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder markMatchingVariants(@Nullable final Boolean markMatchingVariants) { + this.markMatchingVariants = markMatchingVariants; + return this; + } + + /** + *

Contains Product Projection query parameters. Used to fetch matching Product Projection data of products matching the search query. If not included, Product Projection integration is not used.

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

Contains Product Projection query parameters. Used to fetch matching Product Projection data of products matching the search query. If not included, Product Projection integration is not used.

+ * @param builder function to build the projection value + * @return Builder + */ + + public ProductSearchRequestBuilder withProjection( + Function builder) { + this.projection = builder + .apply(com.commercetools.api.models.product_search.ProductSearchProjectionParamsBuilder.of()); + return this; + } + + /** + *

Contains Product Projection query parameters. Used to fetch matching Product Projection data of products matching the search query. If not included, Product Projection integration is not used.

+ * @param projection value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder projection( + @Nullable final com.commercetools.api.models.product_search.ProductSearchProjectionParams projection) { + this.projection = projection; + return this; + } + + /** + * set values to the facets + * @param facets value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder facets( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetExpression... facets) { + this.facets = new ArrayList<>(Arrays.asList(facets)); + return this; + } + + /** + * set value to the facets + * @param facets value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder facets( + @Nullable final java.util.List facets) { + this.facets = facets; + return this; + } + + /** + * add values to the facets + * @param facets value to be set + * @return Builder + */ + + public ProductSearchRequestBuilder plusFacets( + @Nullable final com.commercetools.api.models.product_search.ProductSearchFacetExpression... facets) { + if (this.facets == null) { + this.facets = new ArrayList<>(); + } + this.facets.addAll(Arrays.asList(facets)); + return this; + } + + /** + * add the value to the facets using the builder function + * @param builder function to build the facets value + * @return Builder + */ + + public ProductSearchRequestBuilder plusFacets( + Function builder) { + if (this.facets == null) { + this.facets = new ArrayList<>(); + } + this.facets + .add(builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetExpressionBuilder.of()) + .build()); + return this; + } + + /** + * set the value to the facets using the builder function + * @param builder function to build the facets value + * @return Builder + */ + + public ProductSearchRequestBuilder withFacets( + Function builder) { + this.facets = new ArrayList<>(); + this.facets + .add(builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetExpressionBuilder.of()) + .build()); + return this; + } + + /** + * add the value to the facets using the builder function + * @param builder function to build the facets value + * @return Builder + */ + + public ProductSearchRequestBuilder addFacets( + Function builder) { + return plusFacets( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetExpressionBuilder.of())); + } + + /** + * set the value to the facets using the builder function + * @param builder function to build the facets value + * @return Builder + */ + + public ProductSearchRequestBuilder setFacets( + Function builder) { + return facets( + builder.apply(com.commercetools.api.models.product_search.ProductSearchFacetExpressionBuilder.of())); + } + + /** + *

The Product search query.

+ * @return query + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchQuery getQuery() { + return this.query; + } + + /** + * value of postFilter} + * @return postFilter + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchQuery getPostFilter() { + return this.postFilter; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

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

The maximum number of search results to be returned.

+ * @return limit + */ + + @Nullable + public Integer getLimit() { + return this.limit; + } + + /** + *

The number of search results to be skipped in the response for pagination.

+ * @return offset + */ + + @Nullable + public Integer getOffset() { + return this.offset; + } + + /** + *

The search can return Products where not all Product Variants match the search criteria. If true, the response will include a field called matchingVariants that contains the sku of Product Variants that match the search query. If the query does not specify any variant-level criteria, matchingVariants will be null signifying that all Product Variants are a match.

+ * @return markMatchingVariants + */ + + @Nullable + public Boolean getMarkMatchingVariants() { + return this.markMatchingVariants; + } + + /** + *

Contains Product Projection query parameters. Used to fetch matching Product Projection data of products matching the search query. If not included, Product Projection integration is not used.

+ * @return projection + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchProjectionParams getProjection() { + return this.projection; + } + + /** + * value of facets} + * @return facets + */ + + @Nullable + public java.util.List getFacets() { + return this.facets; + } + + /** + * builds ProductSearchRequest with checking for non-null required values + * @return ProductSearchRequest + */ + public ProductSearchRequest build() { + return new ProductSearchRequestImpl(query, postFilter, sort, limit, offset, markMatchingVariants, projection, + facets); + } + + /** + * builds ProductSearchRequest without checking for non-null required values + * @return ProductSearchRequest + */ + public ProductSearchRequest buildUnchecked() { + return new ProductSearchRequestImpl(query, postFilter, sort, limit, offset, markMatchingVariants, projection, + facets); + } + + /** + * factory method for an instance of ProductSearchRequestBuilder + * @return builder + */ + public static ProductSearchRequestBuilder of() { + return new ProductSearchRequestBuilder(); + } + + /** + * create builder for ProductSearchRequest instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchRequestBuilder of(final ProductSearchRequest template) { + ProductSearchRequestBuilder builder = new ProductSearchRequestBuilder(); + builder.query = template.getQuery(); + builder.postFilter = template.getPostFilter(); + builder.sort = template.getSort(); + builder.limit = template.getLimit(); + builder.offset = template.getOffset(); + builder.markMatchingVariants = template.getMarkMatchingVariants(); + builder.projection = template.getProjection(); + builder.facets = template.getFacets(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestImpl.java new file mode 100644 index 00000000000..7498600c270 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestImpl.java @@ -0,0 +1,230 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchRequest + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchRequestImpl implements ProductSearchRequest, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchQuery query; + + private com.commercetools.api.models.product_search.ProductSearchQuery postFilter; + + private java.util.List sort; + + private Integer limit; + + private Integer offset; + + private Boolean markMatchingVariants; + + private com.commercetools.api.models.product_search.ProductSearchProjectionParams projection; + + private java.util.List facets; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchRequestImpl( + @JsonProperty("query") final com.commercetools.api.models.product_search.ProductSearchQuery query, + @JsonProperty("postFilter") final com.commercetools.api.models.product_search.ProductSearchQuery postFilter, + @JsonProperty("sort") final java.util.List sort, + @JsonProperty("limit") final Integer limit, @JsonProperty("offset") final Integer offset, + @JsonProperty("markMatchingVariants") final Boolean markMatchingVariants, + @JsonProperty("projection") final com.commercetools.api.models.product_search.ProductSearchProjectionParams projection, + @JsonProperty("facets") final java.util.List facets) { + this.query = query; + this.postFilter = postFilter; + this.sort = sort; + this.limit = limit; + this.offset = offset; + this.markMatchingVariants = markMatchingVariants; + this.projection = projection; + this.facets = facets; + } + + /** + * create empty instance + */ + public ProductSearchRequestImpl() { + } + + /** + *

The Product search query.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchQuery getQuery() { + return this.query; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchQuery getPostFilter() { + return this.postFilter; + } + + /** + *

Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

+ */ + + public java.util.List getSort() { + return this.sort; + } + + /** + *

The maximum number of search results to be returned.

+ */ + + public Integer getLimit() { + return this.limit; + } + + /** + *

The number of search results to be skipped in the response for pagination.

+ */ + + public Integer getOffset() { + return this.offset; + } + + /** + *

The search can return Products where not all Product Variants match the search criteria. If true, the response will include a field called matchingVariants that contains the sku of Product Variants that match the search query. If the query does not specify any variant-level criteria, matchingVariants will be null signifying that all Product Variants are a match.

+ */ + + public Boolean getMarkMatchingVariants() { + return this.markMatchingVariants; + } + + /** + *

Contains Product Projection query parameters. Used to fetch matching Product Projection data of products matching the search query. If not included, Product Projection integration is not used.

+ */ + + public com.commercetools.api.models.product_search.ProductSearchProjectionParams getProjection() { + return this.projection; + } + + /** + * + */ + + public java.util.List getFacets() { + return this.facets; + } + + public void setQuery(final com.commercetools.api.models.product_search.ProductSearchQuery query) { + this.query = query; + } + + public void setPostFilter(final com.commercetools.api.models.product_search.ProductSearchQuery postFilter) { + this.postFilter = postFilter; + } + + public void setSort(final com.commercetools.api.models.product_search.ProductSearchSorting... sort) { + this.sort = new ArrayList<>(Arrays.asList(sort)); + } + + public void setSort(final java.util.List sort) { + this.sort = sort; + } + + public void setLimit(final Integer limit) { + this.limit = limit; + } + + public void setOffset(final Integer offset) { + this.offset = offset; + } + + public void setMarkMatchingVariants(final Boolean markMatchingVariants) { + this.markMatchingVariants = markMatchingVariants; + } + + public void setProjection( + final com.commercetools.api.models.product_search.ProductSearchProjectionParams projection) { + this.projection = projection; + } + + public void setFacets(final com.commercetools.api.models.product_search.ProductSearchFacetExpression... facets) { + this.facets = new ArrayList<>(Arrays.asList(facets)); + } + + public void setFacets( + final java.util.List facets) { + this.facets = facets; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchRequestImpl that = (ProductSearchRequestImpl) o; + + return new EqualsBuilder().append(query, that.query) + .append(postFilter, that.postFilter) + .append(sort, that.sort) + .append(limit, that.limit) + .append(offset, that.offset) + .append(markMatchingVariants, that.markMatchingVariants) + .append(projection, that.projection) + .append(facets, that.facets) + .append(query, that.query) + .append(postFilter, that.postFilter) + .append(sort, that.sort) + .append(limit, that.limit) + .append(offset, that.offset) + .append(markMatchingVariants, that.markMatchingVariants) + .append(projection, that.projection) + .append(facets, that.facets) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(query) + .append(postFilter) + .append(sort) + .append(limit) + .append(offset) + .append(markMatchingVariants) + .append(projection) + .append(facets) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("query", query) + .append("postFilter", postFilter) + .append("sort", sort) + .append("limit", limit) + .append("offset", offset) + .append("markMatchingVariants", markMatchingVariants) + .append("projection", projection) + .append("facets", facets) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortMode.java new file mode 100644 index 00000000000..77e8701c996 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortMode.java @@ -0,0 +1,126 @@ + +package com.commercetools.api.models.product_search; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchSortMode + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface ProductSearchSortMode extends JsonEnum { + + ProductSearchSortMode MIN = ProductSearchSortModeEnum.MIN; + + ProductSearchSortMode MAX = ProductSearchSortModeEnum.MAX; + + ProductSearchSortMode AVG = ProductSearchSortModeEnum.AVG; + + ProductSearchSortMode SUM = ProductSearchSortModeEnum.SUM; + + /** + * possible values of ProductSearchSortMode + */ + enum ProductSearchSortModeEnum implements ProductSearchSortMode { + /** + * min + */ + MIN("min"), + + /** + * max + */ + MAX("max"), + + /** + * avg + */ + AVG("avg"), + + /** + * sum + */ + SUM("sum"); + private final String jsonName; + + private ProductSearchSortModeEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of ProductSearchSortMode + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static ProductSearchSortMode findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ProductSearchSortMode() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static ProductSearchSortMode[] values() { + return ProductSearchSortModeEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortOrder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortOrder.java new file mode 100644 index 00000000000..222b100fbf9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortOrder.java @@ -0,0 +1,119 @@ + +package com.commercetools.api.models.product_search; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchSortOrder + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface ProductSearchSortOrder extends JsonEnum { + + /** +

Sort results in ascending order.

+ + */ + ProductSearchSortOrder ASC = ProductSearchSortOrderEnum.ASC; + /** +

Sort results in descending order.

+ + */ + ProductSearchSortOrder DESC = ProductSearchSortOrderEnum.DESC; + + /** + * possible values of ProductSearchSortOrder + */ + enum ProductSearchSortOrderEnum implements ProductSearchSortOrder { + /** + * asc + */ + ASC("asc"), + + /** + * desc + */ + DESC("desc"); + private final String jsonName; + + private ProductSearchSortOrderEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of ProductSearchSortOrder + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static ProductSearchSortOrder findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ProductSearchSortOrder() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static ProductSearchSortOrder[] values() { + return ProductSearchSortOrderEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSorting.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSorting.java new file mode 100644 index 00000000000..79acb3713dc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSorting.java @@ -0,0 +1,226 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchSorting + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchSorting productSearchSorting = ProductSearchSorting.builder()
+ *             .field("{field}")
+ *             .order(ProductSearchSortOrder.ASC)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchSortingImpl.class) +public interface ProductSearchSorting { + + /** + * + * @return field + */ + @NotNull + @JsonProperty("field") + public String getField(); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @JsonProperty("language") + public String getLanguage(); + + /** + * + * @return order + */ + @NotNull + @JsonProperty("order") + public ProductSearchSortOrder getOrder(); + + /** + * + * @return mode + */ + + @JsonProperty("mode") + public ProductSearchSortMode getMode(); + + /** + * + * @return attributeType + */ + + @JsonProperty("attributeType") + public ProductSearchAttributeType getAttributeType(); + + /** + * + * @return filter + */ + @Valid + @JsonProperty("filter") + public ProductSearchQueryExpression getFilter(); + + /** + * + * @return internal + */ + + @JsonProperty("internal") + public Boolean getInternal(); + + /** + * set field + * @param field value to be set + */ + + public void setField(final String field); + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + */ + + public void setLanguage(final String language); + + /** + * set order + * @param order value to be set + */ + + public void setOrder(final ProductSearchSortOrder order); + + /** + * set mode + * @param mode value to be set + */ + + public void setMode(final ProductSearchSortMode mode); + + /** + * set attributeType + * @param attributeType value to be set + */ + + public void setAttributeType(final ProductSearchAttributeType attributeType); + + /** + * set filter + * @param filter value to be set + */ + + public void setFilter(final ProductSearchQueryExpression filter); + + /** + * set internal + * @param internal value to be set + */ + + public void setInternal(final Boolean internal); + + /** + * factory method + * @return instance of ProductSearchSorting + */ + public static ProductSearchSorting of() { + return new ProductSearchSortingImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchSorting + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchSorting of(final ProductSearchSorting template) { + ProductSearchSortingImpl instance = new ProductSearchSortingImpl(); + instance.setField(template.getField()); + instance.setLanguage(template.getLanguage()); + instance.setOrder(template.getOrder()); + instance.setMode(template.getMode()); + instance.setAttributeType(template.getAttributeType()); + instance.setFilter(template.getFilter()); + instance.setInternal(template.getInternal()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchSorting + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchSorting deepCopy(@Nullable final ProductSearchSorting template) { + if (template == null) { + return null; + } + ProductSearchSortingImpl instance = new ProductSearchSortingImpl(); + instance.setField(template.getField()); + instance.setLanguage(template.getLanguage()); + instance.setOrder(template.getOrder()); + instance.setMode(template.getMode()); + instance.setAttributeType(template.getAttributeType()); + instance.setFilter( + com.commercetools.api.models.product_search.ProductSearchQueryExpression.deepCopy(template.getFilter())); + instance.setInternal(template.getInternal()); + return instance; + } + + /** + * builder factory method for ProductSearchSorting + * @return builder + */ + public static ProductSearchSortingBuilder builder() { + return ProductSearchSortingBuilder.of(); + } + + /** + * create builder for ProductSearchSorting instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchSortingBuilder builder(final ProductSearchSorting template) { + return ProductSearchSortingBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchSorting(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/product_search/ProductSearchSortingBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingBuilder.java new file mode 100644 index 00000000000..57b24cb52a7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingBuilder.java @@ -0,0 +1,266 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchSortingBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchSorting productSearchSorting = ProductSearchSorting.builder()
+ *             .field("{field}")
+ *             .order(ProductSearchSortOrder.ASC)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSortingBuilder implements Builder { + + private String field; + + @Nullable + private String language; + + private com.commercetools.api.models.product_search.ProductSearchSortOrder order; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchSortMode mode; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchQueryExpression filter; + + @Nullable + private Boolean internal; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchSortingBuilder field(final String field) { + this.field = field; + return this; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @param language value to be set + * @return Builder + */ + + public ProductSearchSortingBuilder language(@Nullable final String language) { + this.language = language; + return this; + } + + /** + * set the value to the order + * @param order value to be set + * @return Builder + */ + + public ProductSearchSortingBuilder order( + final com.commercetools.api.models.product_search.ProductSearchSortOrder order) { + this.order = order; + return this; + } + + /** + * set the value to the mode + * @param mode value to be set + * @return Builder + */ + + public ProductSearchSortingBuilder mode( + @Nullable final com.commercetools.api.models.product_search.ProductSearchSortMode mode) { + this.mode = mode; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchSortingBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * set the value to the filter using the builder function + * @param builder function to build the filter value + * @return Builder + */ + + public ProductSearchSortingBuilder filter( + Function builder) { + this.filter = builder + .apply(com.commercetools.api.models.product_search.ProductSearchQueryExpressionBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the filter using the builder function + * @param builder function to build the filter value + * @return Builder + */ + + public ProductSearchSortingBuilder withFilter( + Function builder) { + this.filter = builder + .apply(com.commercetools.api.models.product_search.ProductSearchQueryExpressionBuilder.of()); + return this; + } + + /** + * set the value to the filter + * @param filter value to be set + * @return Builder + */ + + public ProductSearchSortingBuilder filter( + @Nullable final com.commercetools.api.models.product_search.ProductSearchQueryExpression filter) { + this.filter = filter; + return this; + } + + /** + * set the value to the internal + * @param internal value to be set + * @return Builder + */ + + public ProductSearchSortingBuilder internal(@Nullable final Boolean internal) { + this.internal = internal; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ * @return language + */ + + @Nullable + public String getLanguage() { + return this.language; + } + + /** + * value of order} + * @return order + */ + + public com.commercetools.api.models.product_search.ProductSearchSortOrder getOrder() { + return this.order; + } + + /** + * value of mode} + * @return mode + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchSortMode getMode() { + return this.mode; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * value of filter} + * @return filter + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchQueryExpression getFilter() { + return this.filter; + } + + /** + * value of internal} + * @return internal + */ + + @Nullable + public Boolean getInternal() { + return this.internal; + } + + /** + * builds ProductSearchSorting with checking for non-null required values + * @return ProductSearchSorting + */ + public ProductSearchSorting build() { + Objects.requireNonNull(field, ProductSearchSorting.class + ": field is missing"); + Objects.requireNonNull(order, ProductSearchSorting.class + ": order is missing"); + return new ProductSearchSortingImpl(field, language, order, mode, attributeType, filter, internal); + } + + /** + * builds ProductSearchSorting without checking for non-null required values + * @return ProductSearchSorting + */ + public ProductSearchSorting buildUnchecked() { + return new ProductSearchSortingImpl(field, language, order, mode, attributeType, filter, internal); + } + + /** + * factory method for an instance of ProductSearchSortingBuilder + * @return builder + */ + public static ProductSearchSortingBuilder of() { + return new ProductSearchSortingBuilder(); + } + + /** + * create builder for ProductSearchSorting instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchSortingBuilder of(final ProductSearchSorting template) { + ProductSearchSortingBuilder builder = new ProductSearchSortingBuilder(); + builder.field = template.getField(); + builder.language = template.getLanguage(); + builder.order = template.getOrder(); + builder.mode = template.getMode(); + builder.attributeType = template.getAttributeType(); + builder.filter = template.getFilter(); + builder.internal = template.getInternal(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingImpl.java new file mode 100644 index 00000000000..82f5f84b4e2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingImpl.java @@ -0,0 +1,200 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchSorting + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSortingImpl implements ProductSearchSorting, ModelBase { + + private String field; + + private String language; + + private com.commercetools.api.models.product_search.ProductSearchSortOrder order; + + private com.commercetools.api.models.product_search.ProductSearchSortMode mode; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private com.commercetools.api.models.product_search.ProductSearchQueryExpression filter; + + private Boolean internal; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchSortingImpl(@JsonProperty("field") final String field, @JsonProperty("language") final String language, + @JsonProperty("order") final com.commercetools.api.models.product_search.ProductSearchSortOrder order, + @JsonProperty("mode") final com.commercetools.api.models.product_search.ProductSearchSortMode mode, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("filter") final com.commercetools.api.models.product_search.ProductSearchQueryExpression filter, + @JsonProperty("internal") final Boolean internal) { + this.field = field; + this.language = language; + this.order = order; + this.mode = mode; + this.attributeType = attributeType; + this.filter = filter; + this.internal = internal; + } + + /** + * create empty instance + */ + public ProductSearchSortingImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + *

String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

+ */ + + public String getLanguage() { + return this.language; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchSortOrder getOrder() { + return this.order; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchSortMode getMode() { + return this.mode; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchQueryExpression getFilter() { + return this.filter; + } + + /** + * + */ + + public Boolean getInternal() { + return this.internal; + } + + public void setField(final String field) { + this.field = field; + } + + public void setLanguage(final String language) { + this.language = language; + } + + public void setOrder(final com.commercetools.api.models.product_search.ProductSearchSortOrder order) { + this.order = order; + } + + public void setMode(final com.commercetools.api.models.product_search.ProductSearchSortMode mode) { + this.mode = mode; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setFilter(final com.commercetools.api.models.product_search.ProductSearchQueryExpression filter) { + this.filter = filter; + } + + public void setInternal(final Boolean internal) { + this.internal = internal; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchSortingImpl that = (ProductSearchSortingImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(language, that.language) + .append(order, that.order) + .append(mode, that.mode) + .append(attributeType, that.attributeType) + .append(filter, that.filter) + .append(internal, that.internal) + .append(field, that.field) + .append(language, that.language) + .append(order, that.order) + .append(mode, that.mode) + .append(attributeType, that.attributeType) + .append(filter, that.filter) + .append(internal, that.internal) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(language) + .append(order) + .append(mode) + .append(attributeType) + .append(filter) + .append(internal) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("language", language) + .append("order", order) + .append("mode", mode) + .append("attributeType", attributeType) + .append("filter", filter) + .append("internal", internal) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpression.java new file mode 100644 index 00000000000..24833ab3489 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpression.java @@ -0,0 +1,129 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchSuggestionCompletionExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchSuggestionCompletionExpression productSearchSuggestionCompletionExpression = ProductSearchSuggestionCompletionExpression.builder()
+ *             .completion(completionBuilder -> completionBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchSuggestionCompletionExpressionImpl.class) +public interface ProductSearchSuggestionCompletionExpression extends ProductSearchSuggestionExpression { + + /** + * + * @return completion + */ + @NotNull + @Valid + @JsonProperty("completion") + public ProductSearchSuggestionCompletionExpressionValue getCompletion(); + + /** + * set completion + * @param completion value to be set + */ + + public void setCompletion(final ProductSearchSuggestionCompletionExpressionValue completion); + + /** + * factory method + * @return instance of ProductSearchSuggestionCompletionExpression + */ + public static ProductSearchSuggestionCompletionExpression of() { + return new ProductSearchSuggestionCompletionExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchSuggestionCompletionExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchSuggestionCompletionExpression of( + final ProductSearchSuggestionCompletionExpression template) { + ProductSearchSuggestionCompletionExpressionImpl instance = new ProductSearchSuggestionCompletionExpressionImpl(); + instance.setCompletion(template.getCompletion()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchSuggestionCompletionExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchSuggestionCompletionExpression deepCopy( + @Nullable final ProductSearchSuggestionCompletionExpression template) { + if (template == null) { + return null; + } + ProductSearchSuggestionCompletionExpressionImpl instance = new ProductSearchSuggestionCompletionExpressionImpl(); + instance.setCompletion( + com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValue + .deepCopy(template.getCompletion())); + return instance; + } + + /** + * builder factory method for ProductSearchSuggestionCompletionExpression + * @return builder + */ + public static ProductSearchSuggestionCompletionExpressionBuilder builder() { + return ProductSearchSuggestionCompletionExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchSuggestionCompletionExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchSuggestionCompletionExpressionBuilder builder( + final ProductSearchSuggestionCompletionExpression template) { + return ProductSearchSuggestionCompletionExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchSuggestionCompletionExpression( + 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/product_search/ProductSearchSuggestionCompletionExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionBuilder.java new file mode 100644 index 00000000000..e948ac2d936 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionBuilder.java @@ -0,0 +1,114 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchSuggestionCompletionExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchSuggestionCompletionExpression productSearchSuggestionCompletionExpression = ProductSearchSuggestionCompletionExpression.builder()
+ *             .completion(completionBuilder -> completionBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSuggestionCompletionExpressionBuilder + implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValue completion; + + /** + * set the value to the completion using the builder function + * @param builder function to build the completion value + * @return Builder + */ + + public ProductSearchSuggestionCompletionExpressionBuilder completion( + Function builder) { + this.completion = builder.apply( + com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the completion using the builder function + * @param builder function to build the completion value + * @return Builder + */ + + public ProductSearchSuggestionCompletionExpressionBuilder withCompletion( + Function builder) { + this.completion = builder.apply( + com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValueBuilder.of()); + return this; + } + + /** + * set the value to the completion + * @param completion value to be set + * @return Builder + */ + + public ProductSearchSuggestionCompletionExpressionBuilder completion( + final com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValue completion) { + this.completion = completion; + return this; + } + + /** + * value of completion} + * @return completion + */ + + public com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValue getCompletion() { + return this.completion; + } + + /** + * builds ProductSearchSuggestionCompletionExpression with checking for non-null required values + * @return ProductSearchSuggestionCompletionExpression + */ + public ProductSearchSuggestionCompletionExpression build() { + Objects.requireNonNull(completion, + ProductSearchSuggestionCompletionExpression.class + ": completion is missing"); + return new ProductSearchSuggestionCompletionExpressionImpl(completion); + } + + /** + * builds ProductSearchSuggestionCompletionExpression without checking for non-null required values + * @return ProductSearchSuggestionCompletionExpression + */ + public ProductSearchSuggestionCompletionExpression buildUnchecked() { + return new ProductSearchSuggestionCompletionExpressionImpl(completion); + } + + /** + * factory method for an instance of ProductSearchSuggestionCompletionExpressionBuilder + * @return builder + */ + public static ProductSearchSuggestionCompletionExpressionBuilder of() { + return new ProductSearchSuggestionCompletionExpressionBuilder(); + } + + /** + * create builder for ProductSearchSuggestionCompletionExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchSuggestionCompletionExpressionBuilder of( + final ProductSearchSuggestionCompletionExpression template) { + ProductSearchSuggestionCompletionExpressionBuilder builder = new ProductSearchSuggestionCompletionExpressionBuilder(); + builder.completion = template.getCompletion(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionImpl.java new file mode 100644 index 00000000000..ecdc750ea8a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionImpl.java @@ -0,0 +1,79 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchSuggestionCompletionExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSuggestionCompletionExpressionImpl + implements ProductSearchSuggestionCompletionExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValue completion; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchSuggestionCompletionExpressionImpl( + @JsonProperty("completion") final com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValue completion) { + this.completion = completion; + } + + /** + * create empty instance + */ + public ProductSearchSuggestionCompletionExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValue getCompletion() { + return this.completion; + } + + public void setCompletion( + final com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValue completion) { + this.completion = completion; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchSuggestionCompletionExpressionImpl that = (ProductSearchSuggestionCompletionExpressionImpl) o; + + return new EqualsBuilder().append(completion, that.completion).append(completion, that.completion).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(completion).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("completion", completion).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValue.java new file mode 100644 index 00000000000..b2b61502227 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValue.java @@ -0,0 +1,161 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchSuggestionCompletionExpressionValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchSuggestionCompletionExpressionValue productSearchSuggestionCompletionExpressionValue = ProductSearchSuggestionCompletionExpressionValue.builder()
+ *             .name("{name}")
+ *             .field("{field}")
+ *             .prefix("{prefix}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchSuggestionCompletionExpressionValueImpl.class) +public interface ProductSearchSuggestionCompletionExpressionValue extends ProductSearchSuggestionExpressionValue { + + /** + * + * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + * + * @return field + */ + @NotNull + @JsonProperty("field") + public String getField(); + + /** + * + * @return prefix + */ + @NotNull + @JsonProperty("prefix") + public String getPrefix(); + + /** + * set name + * @param name value to be set + */ + + public void setName(final String name); + + /** + * set field + * @param field value to be set + */ + + public void setField(final String field); + + /** + * set prefix + * @param prefix value to be set + */ + + public void setPrefix(final String prefix); + + /** + * factory method + * @return instance of ProductSearchSuggestionCompletionExpressionValue + */ + public static ProductSearchSuggestionCompletionExpressionValue of() { + return new ProductSearchSuggestionCompletionExpressionValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchSuggestionCompletionExpressionValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchSuggestionCompletionExpressionValue of( + final ProductSearchSuggestionCompletionExpressionValue template) { + ProductSearchSuggestionCompletionExpressionValueImpl instance = new ProductSearchSuggestionCompletionExpressionValueImpl(); + instance.setName(template.getName()); + instance.setField(template.getField()); + instance.setPrefix(template.getPrefix()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchSuggestionCompletionExpressionValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchSuggestionCompletionExpressionValue deepCopy( + @Nullable final ProductSearchSuggestionCompletionExpressionValue template) { + if (template == null) { + return null; + } + ProductSearchSuggestionCompletionExpressionValueImpl instance = new ProductSearchSuggestionCompletionExpressionValueImpl(); + instance.setName(template.getName()); + instance.setField(template.getField()); + instance.setPrefix(template.getPrefix()); + return instance; + } + + /** + * builder factory method for ProductSearchSuggestionCompletionExpressionValue + * @return builder + */ + public static ProductSearchSuggestionCompletionExpressionValueBuilder builder() { + return ProductSearchSuggestionCompletionExpressionValueBuilder.of(); + } + + /** + * create builder for ProductSearchSuggestionCompletionExpressionValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchSuggestionCompletionExpressionValueBuilder builder( + final ProductSearchSuggestionCompletionExpressionValue template) { + return ProductSearchSuggestionCompletionExpressionValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchSuggestionCompletionExpressionValue( + 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/product_search/ProductSearchSuggestionCompletionExpressionValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueBuilder.java new file mode 100644 index 00000000000..873afd9c933 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueBuilder.java @@ -0,0 +1,134 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchSuggestionCompletionExpressionValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchSuggestionCompletionExpressionValue productSearchSuggestionCompletionExpressionValue = ProductSearchSuggestionCompletionExpressionValue.builder()
+ *             .name("{name}")
+ *             .field("{field}")
+ *             .prefix("{prefix}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSuggestionCompletionExpressionValueBuilder + implements Builder { + + private String name; + + private String field; + + private String prefix; + + /** + * set the value to the name + * @param name value to be set + * @return Builder + */ + + public ProductSearchSuggestionCompletionExpressionValueBuilder name(final String name) { + this.name = name; + return this; + } + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchSuggestionCompletionExpressionValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the prefix + * @param prefix value to be set + * @return Builder + */ + + public ProductSearchSuggestionCompletionExpressionValueBuilder prefix(final String prefix) { + this.prefix = prefix; + return this; + } + + /** + * value of name} + * @return name + */ + + public String getName() { + return this.name; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of prefix} + * @return prefix + */ + + public String getPrefix() { + return this.prefix; + } + + /** + * builds ProductSearchSuggestionCompletionExpressionValue with checking for non-null required values + * @return ProductSearchSuggestionCompletionExpressionValue + */ + public ProductSearchSuggestionCompletionExpressionValue build() { + Objects.requireNonNull(name, ProductSearchSuggestionCompletionExpressionValue.class + ": name is missing"); + Objects.requireNonNull(field, ProductSearchSuggestionCompletionExpressionValue.class + ": field is missing"); + Objects.requireNonNull(prefix, ProductSearchSuggestionCompletionExpressionValue.class + ": prefix is missing"); + return new ProductSearchSuggestionCompletionExpressionValueImpl(name, field, prefix); + } + + /** + * builds ProductSearchSuggestionCompletionExpressionValue without checking for non-null required values + * @return ProductSearchSuggestionCompletionExpressionValue + */ + public ProductSearchSuggestionCompletionExpressionValue buildUnchecked() { + return new ProductSearchSuggestionCompletionExpressionValueImpl(name, field, prefix); + } + + /** + * factory method for an instance of ProductSearchSuggestionCompletionExpressionValueBuilder + * @return builder + */ + public static ProductSearchSuggestionCompletionExpressionValueBuilder of() { + return new ProductSearchSuggestionCompletionExpressionValueBuilder(); + } + + /** + * create builder for ProductSearchSuggestionCompletionExpressionValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchSuggestionCompletionExpressionValueBuilder of( + final ProductSearchSuggestionCompletionExpressionValue template) { + ProductSearchSuggestionCompletionExpressionValueBuilder builder = new ProductSearchSuggestionCompletionExpressionValueBuilder(); + builder.name = template.getName(); + builder.field = template.getField(); + builder.prefix = template.getPrefix(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueImpl.java new file mode 100644 index 00000000000..93a2d38b40b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueImpl.java @@ -0,0 +1,117 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchSuggestionCompletionExpressionValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSuggestionCompletionExpressionValueImpl + implements ProductSearchSuggestionCompletionExpressionValue, ModelBase { + + private String name; + + private String field; + + private String prefix; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchSuggestionCompletionExpressionValueImpl(@JsonProperty("name") final String name, + @JsonProperty("field") final String field, @JsonProperty("prefix") final String prefix) { + this.name = name; + this.field = field; + this.prefix = prefix; + } + + /** + * create empty instance + */ + public ProductSearchSuggestionCompletionExpressionValueImpl() { + } + + /** + * + */ + + public String getName() { + return this.name; + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public String getPrefix() { + return this.prefix; + } + + public void setName(final String name) { + this.name = name; + } + + public void setField(final String field) { + this.field = field; + } + + public void setPrefix(final String prefix) { + this.prefix = prefix; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchSuggestionCompletionExpressionValueImpl that = (ProductSearchSuggestionCompletionExpressionValueImpl) o; + + return new EqualsBuilder().append(name, that.name) + .append(field, that.field) + .append(prefix, that.prefix) + .append(name, that.name) + .append(field, that.field) + .append(prefix, that.prefix) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(name).append(field).append(prefix).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name) + .append("field", field) + .append("prefix", prefix) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpression.java new file mode 100644 index 00000000000..5d9e6068d15 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpression.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchSuggestionExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

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

+ *     ProductSearchSuggestionExpression productSearchSuggestionExpression = ProductSearchSuggestionExpression.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSuggestionExpressionBuilder implements Builder { + + /** + * builds ProductSearchSuggestionExpression with checking for non-null required values + * @return ProductSearchSuggestionExpression + */ + public ProductSearchSuggestionExpression build() { + return new ProductSearchSuggestionExpressionImpl(); + } + + /** + * builds ProductSearchSuggestionExpression without checking for non-null required values + * @return ProductSearchSuggestionExpression + */ + public ProductSearchSuggestionExpression buildUnchecked() { + return new ProductSearchSuggestionExpressionImpl(); + } + + /** + * factory method for an instance of ProductSearchSuggestionExpressionBuilder + * @return builder + */ + public static ProductSearchSuggestionExpressionBuilder of() { + return new ProductSearchSuggestionExpressionBuilder(); + } + + /** + * create builder for ProductSearchSuggestionExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchSuggestionExpressionBuilder of(final ProductSearchSuggestionExpression template) { + ProductSearchSuggestionExpressionBuilder builder = new ProductSearchSuggestionExpressionBuilder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionImpl.java new file mode 100644 index 00000000000..db27f03f826 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionImpl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchSuggestionExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSuggestionExpressionImpl implements ProductSearchSuggestionExpression, ModelBase { + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchSuggestionExpressionImpl() { + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchSuggestionExpressionImpl that = (ProductSearchSuggestionExpressionImpl) o; + + return new EqualsBuilder().isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValue.java new file mode 100644 index 00000000000..3a86761f240 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValue.java @@ -0,0 +1,110 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchSuggestionExpressionValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

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

+ *     ProductSearchSuggestionExpressionValue productSearchSuggestionExpressionValue = ProductSearchSuggestionExpressionValue.builder()
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSuggestionExpressionValueBuilder implements Builder { + + /** + * builds ProductSearchSuggestionExpressionValue with checking for non-null required values + * @return ProductSearchSuggestionExpressionValue + */ + public ProductSearchSuggestionExpressionValue build() { + return new ProductSearchSuggestionExpressionValueImpl(); + } + + /** + * builds ProductSearchSuggestionExpressionValue without checking for non-null required values + * @return ProductSearchSuggestionExpressionValue + */ + public ProductSearchSuggestionExpressionValue buildUnchecked() { + return new ProductSearchSuggestionExpressionValueImpl(); + } + + /** + * factory method for an instance of ProductSearchSuggestionExpressionValueBuilder + * @return builder + */ + public static ProductSearchSuggestionExpressionValueBuilder of() { + return new ProductSearchSuggestionExpressionValueBuilder(); + } + + /** + * create builder for ProductSearchSuggestionExpressionValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchSuggestionExpressionValueBuilder of( + final ProductSearchSuggestionExpressionValue template) { + ProductSearchSuggestionExpressionValueBuilder builder = new ProductSearchSuggestionExpressionValueBuilder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValueImpl.java new file mode 100644 index 00000000000..b4a52382420 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValueImpl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchSuggestionExpressionValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchSuggestionExpressionValueImpl implements ProductSearchSuggestionExpressionValue, ModelBase { + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchSuggestionExpressionValueImpl() { + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchSuggestionExpressionValueImpl that = (ProductSearchSuggestionExpressionValueImpl) o; + + return new EqualsBuilder().isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpression.java new file mode 100644 index 00000000000..15bfbbd13d9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpression.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchTimeRangeExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchTimeRangeExpression productSearchTimeRangeExpression = ProductSearchTimeRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchTimeRangeExpressionImpl.class) +public interface ProductSearchTimeRangeExpression extends ProductSearchQueryExpression { + + /** + * + * @return range + */ + @NotNull + @Valid + @JsonProperty("range") + public ProductSearchTimeRangeValue getRange(); + + /** + * set range + * @param range value to be set + */ + + public void setRange(final ProductSearchTimeRangeValue range); + + /** + * factory method + * @return instance of ProductSearchTimeRangeExpression + */ + public static ProductSearchTimeRangeExpression of() { + return new ProductSearchTimeRangeExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchTimeRangeExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchTimeRangeExpression of(final ProductSearchTimeRangeExpression template) { + ProductSearchTimeRangeExpressionImpl instance = new ProductSearchTimeRangeExpressionImpl(); + instance.setRange(template.getRange()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchTimeRangeExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchTimeRangeExpression deepCopy(@Nullable final ProductSearchTimeRangeExpression template) { + if (template == null) { + return null; + } + ProductSearchTimeRangeExpressionImpl instance = new ProductSearchTimeRangeExpressionImpl(); + instance.setRange( + com.commercetools.api.models.product_search.ProductSearchTimeRangeValue.deepCopy(template.getRange())); + return instance; + } + + /** + * builder factory method for ProductSearchTimeRangeExpression + * @return builder + */ + public static ProductSearchTimeRangeExpressionBuilder builder() { + return ProductSearchTimeRangeExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchTimeRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchTimeRangeExpressionBuilder builder(final ProductSearchTimeRangeExpression template) { + return ProductSearchTimeRangeExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchTimeRangeExpression(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/product_search/ProductSearchTimeRangeExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionBuilder.java new file mode 100644 index 00000000000..74b039a35b1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchTimeRangeExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchTimeRangeExpression productSearchTimeRangeExpression = ProductSearchTimeRangeExpression.builder()
+ *             .range(rangeBuilder -> rangeBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchTimeRangeExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchTimeRangeValue range; + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchTimeRangeExpressionBuilder range( + Function builder) { + this.range = builder.apply(com.commercetools.api.models.product_search.ProductSearchTimeRangeValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the range using the builder function + * @param builder function to build the range value + * @return Builder + */ + + public ProductSearchTimeRangeExpressionBuilder withRange( + Function builder) { + this.range = builder.apply(com.commercetools.api.models.product_search.ProductSearchTimeRangeValueBuilder.of()); + return this; + } + + /** + * set the value to the range + * @param range value to be set + * @return Builder + */ + + public ProductSearchTimeRangeExpressionBuilder range( + final com.commercetools.api.models.product_search.ProductSearchTimeRangeValue range) { + this.range = range; + return this; + } + + /** + * value of range} + * @return range + */ + + public com.commercetools.api.models.product_search.ProductSearchTimeRangeValue getRange() { + return this.range; + } + + /** + * builds ProductSearchTimeRangeExpression with checking for non-null required values + * @return ProductSearchTimeRangeExpression + */ + public ProductSearchTimeRangeExpression build() { + Objects.requireNonNull(range, ProductSearchTimeRangeExpression.class + ": range is missing"); + return new ProductSearchTimeRangeExpressionImpl(range); + } + + /** + * builds ProductSearchTimeRangeExpression without checking for non-null required values + * @return ProductSearchTimeRangeExpression + */ + public ProductSearchTimeRangeExpression buildUnchecked() { + return new ProductSearchTimeRangeExpressionImpl(range); + } + + /** + * factory method for an instance of ProductSearchTimeRangeExpressionBuilder + * @return builder + */ + public static ProductSearchTimeRangeExpressionBuilder of() { + return new ProductSearchTimeRangeExpressionBuilder(); + } + + /** + * create builder for ProductSearchTimeRangeExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchTimeRangeExpressionBuilder of(final ProductSearchTimeRangeExpression template) { + ProductSearchTimeRangeExpressionBuilder builder = new ProductSearchTimeRangeExpressionBuilder(); + builder.range = template.getRange(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionImpl.java new file mode 100644 index 00000000000..440b708daab --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchTimeRangeExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchTimeRangeExpressionImpl implements ProductSearchTimeRangeExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchTimeRangeValue range; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchTimeRangeExpressionImpl( + @JsonProperty("range") final com.commercetools.api.models.product_search.ProductSearchTimeRangeValue range) { + this.range = range; + } + + /** + * create empty instance + */ + public ProductSearchTimeRangeExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchTimeRangeValue getRange() { + return this.range; + } + + public void setRange(final com.commercetools.api.models.product_search.ProductSearchTimeRangeValue range) { + this.range = range; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchTimeRangeExpressionImpl that = (ProductSearchTimeRangeExpressionImpl) o; + + return new EqualsBuilder().append(range, that.range).append(range, that.range).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(range).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("range", range).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValue.java new file mode 100644 index 00000000000..29ec8cfe1d2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValue.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.product_search; + +import java.time.*; +import java.time.LocalTime; +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; + +/** + * ProductSearchTimeRangeValue + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchTimeRangeValue productSearchTimeRangeValue = ProductSearchTimeRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchTimeRangeValueImpl.class) +public interface ProductSearchTimeRangeValue extends ProductSearchQueryExpressionValue { + + /** + * + * @return gte + */ + + @JsonProperty("gte") + public LocalTime getGte(); + + /** + * + * @return gt + */ + + @JsonProperty("gt") + public LocalTime getGt(); + + /** + * + * @return lte + */ + + @JsonProperty("lte") + public LocalTime getLte(); + + /** + * + * @return lt + */ + + @JsonProperty("lt") + public LocalTime getLt(); + + /** + * set gte + * @param gte value to be set + */ + + public void setGte(final LocalTime gte); + + /** + * set gt + * @param gt value to be set + */ + + public void setGt(final LocalTime gt); + + /** + * set lte + * @param lte value to be set + */ + + public void setLte(final LocalTime lte); + + /** + * set lt + * @param lt value to be set + */ + + public void setLt(final LocalTime lt); + + /** + * factory method + * @return instance of ProductSearchTimeRangeValue + */ + public static ProductSearchTimeRangeValue of() { + return new ProductSearchTimeRangeValueImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchTimeRangeValue + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchTimeRangeValue of(final ProductSearchTimeRangeValue template) { + ProductSearchTimeRangeValueImpl instance = new ProductSearchTimeRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchTimeRangeValue + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchTimeRangeValue deepCopy(@Nullable final ProductSearchTimeRangeValue template) { + if (template == null) { + return null; + } + ProductSearchTimeRangeValueImpl instance = new ProductSearchTimeRangeValueImpl(); + instance.setField(template.getField()); + instance.setBoost(template.getBoost()); + instance.setAttributeType(template.getAttributeType()); + instance.setGte(template.getGte()); + instance.setGt(template.getGt()); + instance.setLte(template.getLte()); + instance.setLt(template.getLt()); + return instance; + } + + /** + * builder factory method for ProductSearchTimeRangeValue + * @return builder + */ + public static ProductSearchTimeRangeValueBuilder builder() { + return ProductSearchTimeRangeValueBuilder.of(); + } + + /** + * create builder for ProductSearchTimeRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchTimeRangeValueBuilder builder(final ProductSearchTimeRangeValue template) { + return ProductSearchTimeRangeValueBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchTimeRangeValue(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/product_search/ProductSearchTimeRangeValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueBuilder.java new file mode 100644 index 00000000000..4b44805f75e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueBuilder.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchTimeRangeValueBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchTimeRangeValue productSearchTimeRangeValue = ProductSearchTimeRangeValue.builder()
+ *             .field("{field}")
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchTimeRangeValueBuilder implements Builder { + + private String field; + + @Nullable + private Double boost; + + @Nullable + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + @Nullable + private java.time.LocalTime gte; + + @Nullable + private java.time.LocalTime gt; + + @Nullable + private java.time.LocalTime lte; + + @Nullable + private java.time.LocalTime lt; + + /** + * set the value to the field + * @param field value to be set + * @return Builder + */ + + public ProductSearchTimeRangeValueBuilder field(final String field) { + this.field = field; + return this; + } + + /** + * set the value to the boost + * @param boost value to be set + * @return Builder + */ + + public ProductSearchTimeRangeValueBuilder boost(@Nullable final Double boost) { + this.boost = boost; + return this; + } + + /** + * set the value to the attributeType + * @param attributeType value to be set + * @return Builder + */ + + public ProductSearchTimeRangeValueBuilder attributeType( + @Nullable final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * set the value to the gte + * @param gte value to be set + * @return Builder + */ + + public ProductSearchTimeRangeValueBuilder gte(@Nullable final java.time.LocalTime gte) { + this.gte = gte; + return this; + } + + /** + * set the value to the gt + * @param gt value to be set + * @return Builder + */ + + public ProductSearchTimeRangeValueBuilder gt(@Nullable final java.time.LocalTime gt) { + this.gt = gt; + return this; + } + + /** + * set the value to the lte + * @param lte value to be set + * @return Builder + */ + + public ProductSearchTimeRangeValueBuilder lte(@Nullable final java.time.LocalTime lte) { + this.lte = lte; + return this; + } + + /** + * set the value to the lt + * @param lt value to be set + * @return Builder + */ + + public ProductSearchTimeRangeValueBuilder lt(@Nullable final java.time.LocalTime lt) { + this.lt = lt; + return this; + } + + /** + * value of field} + * @return field + */ + + public String getField() { + return this.field; + } + + /** + * value of boost} + * @return boost + */ + + @Nullable + public Double getBoost() { + return this.boost; + } + + /** + * value of attributeType} + * @return attributeType + */ + + @Nullable + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * value of gte} + * @return gte + */ + + @Nullable + public java.time.LocalTime getGte() { + return this.gte; + } + + /** + * value of gt} + * @return gt + */ + + @Nullable + public java.time.LocalTime getGt() { + return this.gt; + } + + /** + * value of lte} + * @return lte + */ + + @Nullable + public java.time.LocalTime getLte() { + return this.lte; + } + + /** + * value of lt} + * @return lt + */ + + @Nullable + public java.time.LocalTime getLt() { + return this.lt; + } + + /** + * builds ProductSearchTimeRangeValue with checking for non-null required values + * @return ProductSearchTimeRangeValue + */ + public ProductSearchTimeRangeValue build() { + Objects.requireNonNull(field, ProductSearchTimeRangeValue.class + ": field is missing"); + return new ProductSearchTimeRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * builds ProductSearchTimeRangeValue without checking for non-null required values + * @return ProductSearchTimeRangeValue + */ + public ProductSearchTimeRangeValue buildUnchecked() { + return new ProductSearchTimeRangeValueImpl(field, boost, attributeType, gte, gt, lte, lt); + } + + /** + * factory method for an instance of ProductSearchTimeRangeValueBuilder + * @return builder + */ + public static ProductSearchTimeRangeValueBuilder of() { + return new ProductSearchTimeRangeValueBuilder(); + } + + /** + * create builder for ProductSearchTimeRangeValue instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchTimeRangeValueBuilder of(final ProductSearchTimeRangeValue template) { + ProductSearchTimeRangeValueBuilder builder = new ProductSearchTimeRangeValueBuilder(); + builder.field = template.getField(); + builder.boost = template.getBoost(); + builder.attributeType = template.getAttributeType(); + builder.gte = template.getGte(); + builder.gt = template.getGt(); + builder.lte = template.getLte(); + builder.lt = template.getLt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueImpl.java new file mode 100644 index 00000000000..cee3af4cd3e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueImpl.java @@ -0,0 +1,199 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchTimeRangeValue + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchTimeRangeValueImpl implements ProductSearchTimeRangeValue, ModelBase { + + private String field; + + private Double boost; + + private com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType; + + private java.time.LocalTime gte; + + private java.time.LocalTime gt; + + private java.time.LocalTime lte; + + private java.time.LocalTime lt; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchTimeRangeValueImpl(@JsonProperty("field") final String field, + @JsonProperty("boost") final Double boost, + @JsonProperty("attributeType") final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType, + @JsonProperty("gte") final java.time.LocalTime gte, @JsonProperty("gt") final java.time.LocalTime gt, + @JsonProperty("lte") final java.time.LocalTime lte, @JsonProperty("lt") final java.time.LocalTime lt) { + this.field = field; + this.boost = boost; + this.attributeType = attributeType; + this.gte = gte; + this.gt = gt; + this.lte = lte; + this.lt = lt; + } + + /** + * create empty instance + */ + public ProductSearchTimeRangeValueImpl() { + } + + /** + * + */ + + public String getField() { + return this.field; + } + + /** + * + */ + + public Double getBoost() { + return this.boost; + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAttributeType getAttributeType() { + return this.attributeType; + } + + /** + * + */ + + public java.time.LocalTime getGte() { + return this.gte; + } + + /** + * + */ + + public java.time.LocalTime getGt() { + return this.gt; + } + + /** + * + */ + + public java.time.LocalTime getLte() { + return this.lte; + } + + /** + * + */ + + public java.time.LocalTime getLt() { + return this.lt; + } + + public void setField(final String field) { + this.field = field; + } + + public void setBoost(final Double boost) { + this.boost = boost; + } + + public void setAttributeType( + final com.commercetools.api.models.product_search.ProductSearchAttributeType attributeType) { + this.attributeType = attributeType; + } + + public void setGte(final java.time.LocalTime gte) { + this.gte = gte; + } + + public void setGt(final java.time.LocalTime gt) { + this.gt = gt; + } + + public void setLte(final java.time.LocalTime lte) { + this.lte = lte; + } + + public void setLt(final java.time.LocalTime lt) { + this.lt = lt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchTimeRangeValueImpl that = (ProductSearchTimeRangeValueImpl) o; + + return new EqualsBuilder().append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .append(field, that.field) + .append(boost, that.boost) + .append(attributeType, that.attributeType) + .append(gte, that.gte) + .append(gt, that.gt) + .append(lte, that.lte) + .append(lt, that.lt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(field) + .append(boost) + .append(attributeType) + .append(gte) + .append(gt) + .append(lte) + .append(lt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field) + .append("boost", boost) + .append("attributeType", attributeType) + .append("gte", gte) + .append("gt", gt) + .append("lte", lte) + .append("lt", lt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpression.java new file mode 100644 index 00000000000..753736901ae --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpression.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.models.product_search; + +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.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchWildCardExpression + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchWildCardExpression productSearchWildCardExpression = ProductSearchWildCardExpression.builder()
+ *             .wildcard(wildcardBuilder -> wildcardBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProductSearchWildCardExpressionImpl.class) +public interface ProductSearchWildCardExpression extends ProductSearchQueryExpression { + + /** + * + * @return wildcard + */ + @NotNull + @Valid + @JsonProperty("wildcard") + public ProductSearchAnyValue getWildcard(); + + /** + * set wildcard + * @param wildcard value to be set + */ + + public void setWildcard(final ProductSearchAnyValue wildcard); + + /** + * factory method + * @return instance of ProductSearchWildCardExpression + */ + public static ProductSearchWildCardExpression of() { + return new ProductSearchWildCardExpressionImpl(); + } + + /** + * factory method to create a shallow copy ProductSearchWildCardExpression + * @param template instance to be copied + * @return copy instance + */ + public static ProductSearchWildCardExpression of(final ProductSearchWildCardExpression template) { + ProductSearchWildCardExpressionImpl instance = new ProductSearchWildCardExpressionImpl(); + instance.setWildcard(template.getWildcard()); + return instance; + } + + /** + * factory method to create a deep copy of ProductSearchWildCardExpression + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProductSearchWildCardExpression deepCopy(@Nullable final ProductSearchWildCardExpression template) { + if (template == null) { + return null; + } + ProductSearchWildCardExpressionImpl instance = new ProductSearchWildCardExpressionImpl(); + instance.setWildcard( + com.commercetools.api.models.product_search.ProductSearchAnyValue.deepCopy(template.getWildcard())); + return instance; + } + + /** + * builder factory method for ProductSearchWildCardExpression + * @return builder + */ + public static ProductSearchWildCardExpressionBuilder builder() { + return ProductSearchWildCardExpressionBuilder.of(); + } + + /** + * create builder for ProductSearchWildCardExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchWildCardExpressionBuilder builder(final ProductSearchWildCardExpression template) { + return ProductSearchWildCardExpressionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProductSearchWildCardExpression(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/product_search/ProductSearchWildCardExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionBuilder.java new file mode 100644 index 00000000000..ebc37ab45d3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionBuilder.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.models.product_search; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProductSearchWildCardExpressionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProductSearchWildCardExpression productSearchWildCardExpression = ProductSearchWildCardExpression.builder()
+ *             .wildcard(wildcardBuilder -> wildcardBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchWildCardExpressionBuilder implements Builder { + + private com.commercetools.api.models.product_search.ProductSearchAnyValue wildcard; + + /** + * set the value to the wildcard using the builder function + * @param builder function to build the wildcard value + * @return Builder + */ + + public ProductSearchWildCardExpressionBuilder wildcard( + Function builder) { + this.wildcard = builder.apply(com.commercetools.api.models.product_search.ProductSearchAnyValueBuilder.of()) + .build(); + return this; + } + + /** + * set the value to the wildcard using the builder function + * @param builder function to build the wildcard value + * @return Builder + */ + + public ProductSearchWildCardExpressionBuilder withWildcard( + Function builder) { + this.wildcard = builder.apply(com.commercetools.api.models.product_search.ProductSearchAnyValueBuilder.of()); + return this; + } + + /** + * set the value to the wildcard + * @param wildcard value to be set + * @return Builder + */ + + public ProductSearchWildCardExpressionBuilder wildcard( + final com.commercetools.api.models.product_search.ProductSearchAnyValue wildcard) { + this.wildcard = wildcard; + return this; + } + + /** + * value of wildcard} + * @return wildcard + */ + + public com.commercetools.api.models.product_search.ProductSearchAnyValue getWildcard() { + return this.wildcard; + } + + /** + * builds ProductSearchWildCardExpression with checking for non-null required values + * @return ProductSearchWildCardExpression + */ + public ProductSearchWildCardExpression build() { + Objects.requireNonNull(wildcard, ProductSearchWildCardExpression.class + ": wildcard is missing"); + return new ProductSearchWildCardExpressionImpl(wildcard); + } + + /** + * builds ProductSearchWildCardExpression without checking for non-null required values + * @return ProductSearchWildCardExpression + */ + public ProductSearchWildCardExpression buildUnchecked() { + return new ProductSearchWildCardExpressionImpl(wildcard); + } + + /** + * factory method for an instance of ProductSearchWildCardExpressionBuilder + * @return builder + */ + public static ProductSearchWildCardExpressionBuilder of() { + return new ProductSearchWildCardExpressionBuilder(); + } + + /** + * create builder for ProductSearchWildCardExpression instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProductSearchWildCardExpressionBuilder of(final ProductSearchWildCardExpression template) { + ProductSearchWildCardExpressionBuilder builder = new ProductSearchWildCardExpressionBuilder(); + builder.wildcard = template.getWildcard(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionImpl.java new file mode 100644 index 00000000000..44e533b957d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionImpl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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; + +/** + * ProductSearchWildCardExpression + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProductSearchWildCardExpressionImpl implements ProductSearchWildCardExpression, ModelBase { + + private com.commercetools.api.models.product_search.ProductSearchAnyValue wildcard; + + /** + * create instance with all properties + */ + @JsonCreator + ProductSearchWildCardExpressionImpl( + @JsonProperty("wildcard") final com.commercetools.api.models.product_search.ProductSearchAnyValue wildcard) { + this.wildcard = wildcard; + } + + /** + * create empty instance + */ + public ProductSearchWildCardExpressionImpl() { + } + + /** + * + */ + + public com.commercetools.api.models.product_search.ProductSearchAnyValue getWildcard() { + return this.wildcard; + } + + public void setWildcard(final com.commercetools.api.models.product_search.ProductSearchAnyValue wildcard) { + this.wildcard = wildcard; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProductSearchWildCardExpressionImpl that = (ProductSearchWildCardExpressionImpl) o; + + return new EqualsBuilder().append(wildcard, that.wildcard).append(wildcard, that.wildcard).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(wildcard).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("wildcard", wildcard).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceType.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceType.java index 5547f39f81d..e9198b0c880 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceType.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceType.java @@ -21,7 +21,7 @@ *
*

  *     AttributeReferenceType attributeReferenceType = AttributeReferenceType.builder()
- *             .referenceTypeId(AttributeReferenceTypeId.ASSOCIATE_ROLE)
+ *             .referenceTypeId(AttributeReferenceTypeId.CART)
  *             .build()
  * 
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeBuilder.java index 2d0e6db4b8c..0a53527230e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeBuilder.java @@ -13,7 +13,7 @@ *
*

  *     AttributeReferenceType attributeReferenceType = AttributeReferenceType.builder()
- *             .referenceTypeId(AttributeReferenceTypeId.ASSOCIATE_ROLE)
+ *             .referenceTypeId(AttributeReferenceTypeId.CART)
  *             .build()
  * 
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java index 38f564fc9db..9fd83692e12 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java @@ -16,26 +16,11 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface AttributeReferenceTypeId extends JsonEnum { - /** -

References a AssociateRole.

- - */ - AttributeReferenceTypeId ASSOCIATE_ROLE = AttributeReferenceTypeIdEnum.ASSOCIATE_ROLE; - /** -

References a BusinessUnit.

- - */ - AttributeReferenceTypeId BUSINESS_UNIT = AttributeReferenceTypeIdEnum.BUSINESS_UNIT; /**

References a Cart.

*/ AttributeReferenceTypeId CART = AttributeReferenceTypeIdEnum.CART; - /** -

References a CartDiscount.

- - */ - AttributeReferenceTypeId CART_DISCOUNT = AttributeReferenceTypeIdEnum.CART_DISCOUNT; /**

References a Category.

@@ -96,26 +81,11 @@ public interface AttributeReferenceTypeId extends JsonEnum { * possible values of AttributeReferenceTypeId */ enum AttributeReferenceTypeIdEnum implements AttributeReferenceTypeId { - /** - * associate-role - */ - ASSOCIATE_ROLE("associate-role"), - - /** - * business-unit - */ - BUSINESS_UNIT("business-unit"), - /** * cart */ CART("cart"), - /** - * cart-discount - */ - CART_DISCOUNT("cart-discount"), - /** * category */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProductSearchStatus.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProductSearchStatus.java new file mode 100644 index 00000000000..24590cb6974 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProductSearchStatus.java @@ -0,0 +1,119 @@ + +package com.commercetools.api.models.project; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Specifies the status of the Product Search index.

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

indicates that the Search Products endpoint is fully operational.

+ + */ + ProductSearchStatus ACTIVATED = ProductSearchStatusEnum.ACTIVATED; + /** +

indicates that the Product Search feature is currently not active, but can be activated by update action.

+ + */ + ProductSearchStatus DEACTIVATED = ProductSearchStatusEnum.DEACTIVATED; + + /** + * possible values of ProductSearchStatus + */ + enum ProductSearchStatusEnum implements ProductSearchStatus { + /** + * Activated + */ + ACTIVATED("Activated"), + + /** + * Deactivated + */ + DEACTIVATED("Deactivated"); + private final String jsonName; + + private ProductSearchStatusEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of ProductSearchStatus + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static ProductSearchStatus findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ProductSearchStatus() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static ProductSearchStatus[] values() { + return ProductSearchStatusEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusAction.java new file mode 100644 index 00000000000..798705b5bba --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusAction.java @@ -0,0 +1,129 @@ + +package com.commercetools.api.models.project; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProjectChangeProductSearchStatusAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProjectChangeProductSearchStatusAction projectChangeProductSearchStatusAction = ProjectChangeProductSearchStatusAction.builder()
+ *             .status(ProductSearchStatus.ACTIVATED)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ProjectChangeProductSearchStatusActionImpl.class) +public interface ProjectChangeProductSearchStatusAction extends ProjectUpdateAction { + + /** + * discriminator value for ProjectChangeProductSearchStatusAction + */ + String CHANGE_PRODUCT_SEARCH_STATUS = "changeProductSearchStatus"; + + /** + *

Activates or deactivates the Product Search feature. Activation will trigger building a search index for the Products in the Project.

+ * @return status + */ + @NotNull + @JsonProperty("status") + public ProductSearchStatus getStatus(); + + /** + *

Activates or deactivates the Product Search feature. Activation will trigger building a search index for the Products in the Project.

+ * @param status value to be set + */ + + public void setStatus(final ProductSearchStatus status); + + /** + * factory method + * @return instance of ProjectChangeProductSearchStatusAction + */ + public static ProjectChangeProductSearchStatusAction of() { + return new ProjectChangeProductSearchStatusActionImpl(); + } + + /** + * factory method to create a shallow copy ProjectChangeProductSearchStatusAction + * @param template instance to be copied + * @return copy instance + */ + public static ProjectChangeProductSearchStatusAction of(final ProjectChangeProductSearchStatusAction template) { + ProjectChangeProductSearchStatusActionImpl instance = new ProjectChangeProductSearchStatusActionImpl(); + instance.setStatus(template.getStatus()); + return instance; + } + + /** + * factory method to create a deep copy of ProjectChangeProductSearchStatusAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ProjectChangeProductSearchStatusAction deepCopy( + @Nullable final ProjectChangeProductSearchStatusAction template) { + if (template == null) { + return null; + } + ProjectChangeProductSearchStatusActionImpl instance = new ProjectChangeProductSearchStatusActionImpl(); + instance.setStatus(template.getStatus()); + return instance; + } + + /** + * builder factory method for ProjectChangeProductSearchStatusAction + * @return builder + */ + public static ProjectChangeProductSearchStatusActionBuilder builder() { + return ProjectChangeProductSearchStatusActionBuilder.of(); + } + + /** + * create builder for ProjectChangeProductSearchStatusAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProjectChangeProductSearchStatusActionBuilder builder( + final ProjectChangeProductSearchStatusAction template) { + return ProjectChangeProductSearchStatusActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withProjectChangeProductSearchStatusAction( + 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/project/ProjectChangeProductSearchStatusActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionBuilder.java new file mode 100644 index 00000000000..22693d081dd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionBuilder.java @@ -0,0 +1,84 @@ + +package com.commercetools.api.models.project; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ProjectChangeProductSearchStatusActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     ProjectChangeProductSearchStatusAction projectChangeProductSearchStatusAction = ProjectChangeProductSearchStatusAction.builder()
+ *             .status(ProductSearchStatus.ACTIVATED)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProjectChangeProductSearchStatusActionBuilder implements Builder { + + private com.commercetools.api.models.project.ProductSearchStatus status; + + /** + *

Activates or deactivates the Product Search feature. Activation will trigger building a search index for the Products in the Project.

+ * @param status value to be set + * @return Builder + */ + + public ProjectChangeProductSearchStatusActionBuilder status( + final com.commercetools.api.models.project.ProductSearchStatus status) { + this.status = status; + return this; + } + + /** + *

Activates or deactivates the Product Search feature. Activation will trigger building a search index for the Products in the Project.

+ * @return status + */ + + public com.commercetools.api.models.project.ProductSearchStatus getStatus() { + return this.status; + } + + /** + * builds ProjectChangeProductSearchStatusAction with checking for non-null required values + * @return ProjectChangeProductSearchStatusAction + */ + public ProjectChangeProductSearchStatusAction build() { + Objects.requireNonNull(status, ProjectChangeProductSearchStatusAction.class + ": status is missing"); + return new ProjectChangeProductSearchStatusActionImpl(status); + } + + /** + * builds ProjectChangeProductSearchStatusAction without checking for non-null required values + * @return ProjectChangeProductSearchStatusAction + */ + public ProjectChangeProductSearchStatusAction buildUnchecked() { + return new ProjectChangeProductSearchStatusActionImpl(status); + } + + /** + * factory method for an instance of ProjectChangeProductSearchStatusActionBuilder + * @return builder + */ + public static ProjectChangeProductSearchStatusActionBuilder of() { + return new ProjectChangeProductSearchStatusActionBuilder(); + } + + /** + * create builder for ProjectChangeProductSearchStatusAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ProjectChangeProductSearchStatusActionBuilder of( + final ProjectChangeProductSearchStatusAction template) { + ProjectChangeProductSearchStatusActionBuilder builder = new ProjectChangeProductSearchStatusActionBuilder(); + builder.status = template.getStatus(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionImpl.java new file mode 100644 index 00000000000..82e6eacd6ae --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionImpl.java @@ -0,0 +1,95 @@ + +package com.commercetools.api.models.project; + +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; + +/** + * ProjectChangeProductSearchStatusAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ProjectChangeProductSearchStatusActionImpl implements ProjectChangeProductSearchStatusAction, ModelBase { + + private String action; + + private com.commercetools.api.models.project.ProductSearchStatus status; + + /** + * create instance with all properties + */ + @JsonCreator + ProjectChangeProductSearchStatusActionImpl( + @JsonProperty("status") final com.commercetools.api.models.project.ProductSearchStatus status) { + this.status = status; + this.action = CHANGE_PRODUCT_SEARCH_STATUS; + } + + /** + * create empty instance + */ + public ProjectChangeProductSearchStatusActionImpl() { + this.action = CHANGE_PRODUCT_SEARCH_STATUS; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

Activates or deactivates the Product Search feature. Activation will trigger building a search index for the Products in the Project.

+ */ + + public com.commercetools.api.models.project.ProductSearchStatus getStatus() { + return this.status; + } + + public void setStatus(final com.commercetools.api.models.project.ProductSearchStatus status) { + this.status = status; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ProjectChangeProductSearchStatusActionImpl that = (ProjectChangeProductSearchStatusActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(status, that.status) + .append(action, that.action) + .append(status, that.status) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(status).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("status", status) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateAction.java index e5d6224870b..ef6056bf259 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateAction.java @@ -37,6 +37,7 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectChangeNameActionImpl.class, name = ProjectChangeNameAction.CHANGE_NAME), @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectChangeOrderSearchStatusActionImpl.class, name = ProjectChangeOrderSearchStatusAction.CHANGE_ORDER_SEARCH_STATUS), @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectChangeProductSearchIndexingEnabledActionImpl.class, name = ProjectChangeProductSearchIndexingEnabledAction.CHANGE_PRODUCT_SEARCH_INDEXING_ENABLED), + @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectChangeProductSearchStatusActionImpl.class, name = ProjectChangeProductSearchStatusAction.CHANGE_PRODUCT_SEARCH_STATUS), @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectChangeShoppingListsConfigurationActionImpl.class, name = ProjectChangeShoppingListsConfigurationAction.CHANGE_SHOPPING_LISTS_CONFIGURATION), @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectSetBusinessUnitAssociateRoleOnCreationActionImpl.class, name = ProjectSetBusinessUnitAssociateRoleOnCreationAction.SET_MY_BUSINESS_UNIT_ASSOCIATE_ROLE_ON_CREATION), @JsonSubTypes.Type(value = com.commercetools.api.models.project.ProjectSetExternalOAuthActionImpl.class, name = ProjectSetExternalOAuthAction.SET_EXTERNAL_O_AUTH), @@ -104,6 +105,10 @@ public static ProjectUpdateAction deepCopy(@Nullable final ProjectUpdateAction t return com.commercetools.api.models.project.ProjectChangeProductSearchIndexingEnabledAction.deepCopy( (com.commercetools.api.models.project.ProjectChangeProductSearchIndexingEnabledAction) template); } + if (template instanceof com.commercetools.api.models.project.ProjectChangeProductSearchStatusAction) { + return com.commercetools.api.models.project.ProjectChangeProductSearchStatusAction + .deepCopy((com.commercetools.api.models.project.ProjectChangeProductSearchStatusAction) template); + } if (template instanceof com.commercetools.api.models.project.ProjectChangeShoppingListsConfigurationAction) { return com.commercetools.api.models.project.ProjectChangeShoppingListsConfigurationAction.deepCopy( (com.commercetools.api.models.project.ProjectChangeShoppingListsConfigurationAction) template); @@ -204,6 +209,14 @@ public static com.commercetools.api.models.project.ProjectChangeProductSearchInd return com.commercetools.api.models.project.ProjectChangeProductSearchIndexingEnabledActionBuilder.of(); } + /** + * builder for changeProductSearchStatus subtype + * @return builder + */ + public static com.commercetools.api.models.project.ProjectChangeProductSearchStatusActionBuilder changeProductSearchStatusBuilder() { + return com.commercetools.api.models.project.ProjectChangeProductSearchStatusActionBuilder.of(); + } + /** * builder for changeShoppingListsConfiguration subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateActionBuilder.java index 8d3367421c2..7658daeb34d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/ProjectUpdateActionBuilder.java @@ -51,6 +51,10 @@ public com.commercetools.api.models.project.ProjectChangeProductSearchIndexingEn return com.commercetools.api.models.project.ProjectChangeProductSearchIndexingEnabledActionBuilder.of(); } + public com.commercetools.api.models.project.ProjectChangeProductSearchStatusActionBuilder changeProductSearchStatusBuilder() { + return com.commercetools.api.models.project.ProjectChangeProductSearchStatusActionBuilder.of(); + } + public com.commercetools.api.models.project.ProjectChangeShoppingListsConfigurationActionBuilder changeShoppingListsConfigurationBuilder() { return com.commercetools.api.models.project.ProjectChangeShoppingListsConfigurationActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfiguration.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfiguration.java index bf775d30785..c970e5a77f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfiguration.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfiguration.java @@ -37,6 +37,14 @@ public interface SearchIndexingConfiguration { @JsonProperty("products") public SearchIndexingConfigurationValues getProducts(); + /** + *

Configuration for the Product Search feature.

+ * @return productsNew + */ + @Valid + @JsonProperty("productsNew") + public SearchIndexingConfigurationValues getProductsNew(); + /** *

Configuration for the Order Search feature.

* @return orders @@ -52,6 +60,13 @@ public interface SearchIndexingConfiguration { public void setProducts(final SearchIndexingConfigurationValues products); + /** + *

Configuration for the Product Search feature.

+ * @param productsNew value to be set + */ + + public void setProductsNew(final SearchIndexingConfigurationValues productsNew); + /** *

Configuration for the Order Search feature.

* @param orders value to be set @@ -75,6 +90,7 @@ public static SearchIndexingConfiguration of() { public static SearchIndexingConfiguration of(final SearchIndexingConfiguration template) { SearchIndexingConfigurationImpl instance = new SearchIndexingConfigurationImpl(); instance.setProducts(template.getProducts()); + instance.setProductsNew(template.getProductsNew()); instance.setOrders(template.getOrders()); return instance; } @@ -92,6 +108,8 @@ public static SearchIndexingConfiguration deepCopy(@Nullable final SearchIndexin SearchIndexingConfigurationImpl instance = new SearchIndexingConfigurationImpl(); instance.setProducts( com.commercetools.api.models.project.SearchIndexingConfigurationValues.deepCopy(template.getProducts())); + instance.setProductsNew( + com.commercetools.api.models.project.SearchIndexingConfigurationValues.deepCopy(template.getProductsNew())); instance.setOrders( com.commercetools.api.models.project.SearchIndexingConfigurationValues.deepCopy(template.getOrders())); return instance; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationBuilder.java index b7732831989..3125e400ce1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationBuilder.java @@ -26,6 +26,9 @@ public class SearchIndexingConfigurationBuilder implements BuilderConfiguration for the Product Search feature.

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

Configuration for the Product Search feature.

+ * @param builder function to build the productsNew value + * @return Builder + */ + + public SearchIndexingConfigurationBuilder withProductsNew( + Function builder) { + this.productsNew = builder + .apply(com.commercetools.api.models.project.SearchIndexingConfigurationValuesBuilder.of()); + return this; + } + + /** + *

Configuration for the Product Search feature.

+ * @param productsNew value to be set + * @return Builder + */ + + public SearchIndexingConfigurationBuilder productsNew( + @Nullable final com.commercetools.api.models.project.SearchIndexingConfigurationValues productsNew) { + this.productsNew = productsNew; + return this; + } + /** *

Configuration for the Order Search feature.

* @param builder function to build the orders value @@ -115,6 +157,16 @@ public com.commercetools.api.models.project.SearchIndexingConfigurationValues ge return this.products; } + /** + *

Configuration for the Product Search feature.

+ * @return productsNew + */ + + @Nullable + public com.commercetools.api.models.project.SearchIndexingConfigurationValues getProductsNew() { + return this.productsNew; + } + /** *

Configuration for the Order Search feature.

* @return orders @@ -130,7 +182,7 @@ public com.commercetools.api.models.project.SearchIndexingConfigurationValues ge * @return SearchIndexingConfiguration */ public SearchIndexingConfiguration build() { - return new SearchIndexingConfigurationImpl(products, orders); + return new SearchIndexingConfigurationImpl(products, productsNew, orders); } /** @@ -138,7 +190,7 @@ public SearchIndexingConfiguration build() { * @return SearchIndexingConfiguration */ public SearchIndexingConfiguration buildUnchecked() { - return new SearchIndexingConfigurationImpl(products, orders); + return new SearchIndexingConfigurationImpl(products, productsNew, orders); } /** @@ -157,6 +209,7 @@ public static SearchIndexingConfigurationBuilder of() { public static SearchIndexingConfigurationBuilder of(final SearchIndexingConfiguration template) { SearchIndexingConfigurationBuilder builder = new SearchIndexingConfigurationBuilder(); builder.products = template.getProducts(); + builder.productsNew = template.getProductsNew(); builder.orders = template.getOrders(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationImpl.java index 12223a331ce..0408af9e408 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationImpl.java @@ -24,6 +24,8 @@ public class SearchIndexingConfigurationImpl implements SearchIndexingConfigurat private com.commercetools.api.models.project.SearchIndexingConfigurationValues products; + private com.commercetools.api.models.project.SearchIndexingConfigurationValues productsNew; + private com.commercetools.api.models.project.SearchIndexingConfigurationValues orders; /** @@ -32,8 +34,10 @@ public class SearchIndexingConfigurationImpl implements SearchIndexingConfigurat @JsonCreator SearchIndexingConfigurationImpl( @JsonProperty("products") final com.commercetools.api.models.project.SearchIndexingConfigurationValues products, + @JsonProperty("productsNew") final com.commercetools.api.models.project.SearchIndexingConfigurationValues productsNew, @JsonProperty("orders") final com.commercetools.api.models.project.SearchIndexingConfigurationValues orders) { this.products = products; + this.productsNew = productsNew; this.orders = orders; } @@ -51,6 +55,14 @@ public com.commercetools.api.models.project.SearchIndexingConfigurationValues ge return this.products; } + /** + *

Configuration for the Product Search feature.

+ */ + + public com.commercetools.api.models.project.SearchIndexingConfigurationValues getProductsNew() { + return this.productsNew; + } + /** *

Configuration for the Order Search feature.

*/ @@ -63,6 +75,11 @@ public void setProducts(final com.commercetools.api.models.project.SearchIndexin this.products = products; } + public void setProductsNew( + final com.commercetools.api.models.project.SearchIndexingConfigurationValues productsNew) { + this.productsNew = productsNew; + } + public void setOrders(final com.commercetools.api.models.project.SearchIndexingConfigurationValues orders) { this.orders = orders; } @@ -78,20 +95,23 @@ public boolean equals(Object o) { SearchIndexingConfigurationImpl that = (SearchIndexingConfigurationImpl) o; return new EqualsBuilder().append(products, that.products) + .append(productsNew, that.productsNew) .append(orders, that.orders) .append(products, that.products) + .append(productsNew, that.productsNew) .append(orders, that.orders) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(products).append(orders).toHashCode(); + return new HashCodeBuilder(17, 37).append(products).append(productsNew).append(orders).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("products", products) + .append("productsNew", productsNew) .append("orders", orders) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRate.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRate.java index 53c53d530d6..085ba6091a4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRate.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRate.java @@ -60,7 +60,7 @@ public interface TaxRate { public String getName(); /** - *

Tax rate. If subrates are used, the amount is the sum of all rates in subRates.

+ *

Tax rate. If subrates are used, the amount must be the sum of all subrates.

* @return amount */ @NotNull @@ -92,7 +92,7 @@ public interface TaxRate { public String getState(); /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @return subRates */ @Valid @@ -121,7 +121,7 @@ public interface TaxRate { public void setName(final String name); /** - *

Tax rate. If subrates are used, the amount is the sum of all rates in subRates.

+ *

Tax rate. If subrates are used, the amount must be the sum of all subrates.

* @param amount value to be set */ @@ -149,7 +149,7 @@ public interface TaxRate { public void setState(final String state); /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates values to be set */ @@ -157,7 +157,7 @@ public interface TaxRate { public void setSubRates(final SubRate... subRates); /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateBuilder.java index c7ecfe03530..3fac615be84 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateBuilder.java @@ -81,7 +81,7 @@ public TaxRateBuilder name(final String name) { } /** - *

Tax rate. If subrates are used, the amount is the sum of all rates in subRates.

+ *

Tax rate. If subrates are used, the amount must be the sum of all subrates.

* @param amount value to be set * @return Builder */ @@ -125,7 +125,7 @@ public TaxRateBuilder state(@Nullable final String state) { } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates value to be set * @return Builder */ @@ -136,7 +136,7 @@ public TaxRateBuilder subRates(@Nullable final com.commercetools.api.models.tax_ } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates value to be set * @return Builder */ @@ -148,7 +148,7 @@ public TaxRateBuilder subRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates value to be set * @return Builder */ @@ -162,7 +162,7 @@ public TaxRateBuilder plusSubRates(@Nullable final com.commercetools.api.models. } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -177,7 +177,7 @@ public TaxRateBuilder plusSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -190,7 +190,7 @@ public TaxRateBuilder withSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -201,7 +201,7 @@ public TaxRateBuilder addSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -241,7 +241,7 @@ public String getName() { } /** - *

Tax rate. If subrates are used, the amount is the sum of all rates in subRates.

+ *

Tax rate. If subrates are used, the amount must be the sum of all subrates.

* @return amount */ @@ -278,7 +278,7 @@ public String getState() { } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @return subRates */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java index b106ac41eba..62150d28918 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java @@ -75,7 +75,7 @@ public interface TaxRateDraft extends io.vrap.rmf.base.client.DraftUsed to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @return subRates */ @Valid @@ -126,7 +126,7 @@ public interface TaxRateDraft extends io.vrap.rmf.base.client.DraftUsed to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates values to be set */ @@ -134,7 +134,7 @@ public interface TaxRateDraft extends io.vrap.rmf.base.client.DraftUsed to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java index b6f64f0f9bf..2da0ec54ee6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java @@ -100,7 +100,7 @@ public TaxRateDraftBuilder state(@Nullable final String state) { } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates value to be set * @return Builder */ @@ -111,7 +111,7 @@ public TaxRateDraftBuilder subRates(@Nullable final com.commercetools.api.models } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates value to be set * @return Builder */ @@ -123,7 +123,7 @@ public TaxRateDraftBuilder subRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param subRates value to be set * @return Builder */ @@ -138,7 +138,7 @@ public TaxRateDraftBuilder plusSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -153,7 +153,7 @@ public TaxRateDraftBuilder plusSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -166,7 +166,7 @@ public TaxRateDraftBuilder withSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -177,7 +177,7 @@ public TaxRateDraftBuilder addSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @param builder function to build the subRates value * @return Builder */ @@ -246,7 +246,7 @@ public String getState() { } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

* @return subRates */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java index 29ae8563eae..8c947cc346c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java @@ -101,7 +101,7 @@ public String getState() { } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

*/ public java.util.List getSubRates() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateImpl.java index ba135242b88..41d8d04f13b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateImpl.java @@ -88,7 +88,7 @@ public String getName() { } /** - *

Tax rate. If subrates are used, the amount is the sum of all rates in subRates.

+ *

Tax rate. If subrates are used, the amount must be the sum of all subrates.

*/ public Double getAmount() { @@ -120,7 +120,7 @@ public String getState() { } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates equals the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes).

*/ public java.util.List getSubRates() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceType.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceType.java index 2ca8a1561d7..c2f66c92b3a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceType.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceType.java @@ -21,7 +21,7 @@ *
*

  *     CustomFieldReferenceType customFieldReferenceType = CustomFieldReferenceType.builder()
- *             .referenceTypeId(CustomFieldReferenceValue.APPROVAL_FLOW)
+ *             .referenceTypeId(CustomFieldReferenceValue.ASSOCIATE_ROLE)
  *             .build()
  * 
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceTypeBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceTypeBuilder.java index bcedee47c5e..d07b1e60e86 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceTypeBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceTypeBuilder.java @@ -13,7 +13,7 @@ *
*

  *     CustomFieldReferenceType customFieldReferenceType = CustomFieldReferenceType.builder()
- *             .referenceTypeId(CustomFieldReferenceValue.APPROVAL_FLOW)
+ *             .referenceTypeId(CustomFieldReferenceValue.ASSOCIATE_ROLE)
  *             .build()
  * 
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceValue.java index 0d3e1fe8b8e..156339556de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceValue.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/CustomFieldReferenceValue.java @@ -16,11 +16,6 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface CustomFieldReferenceValue extends JsonEnum { - /** -

ApprovalFlow

- - */ - CustomFieldReferenceValue APPROVAL_FLOW = CustomFieldReferenceValueEnum.APPROVAL_FLOW; /**

AssociateRole

@@ -96,11 +91,6 @@ public interface CustomFieldReferenceValue extends JsonEnum { * possible values of CustomFieldReferenceValue */ enum CustomFieldReferenceValueEnum implements CustomFieldReferenceValue { - /** - * approval-flow - */ - APPROVAL_FLOW("approval-flow"), - /** * associate-role */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/ResourceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/ResourceTypeId.java index 32993e783cc..6e5ce0fee75 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/ResourceTypeId.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/type/ResourceTypeId.java @@ -26,11 +26,6 @@ public interface ResourceTypeId extends JsonEnum { */ ResourceTypeId ASSET = ResourceTypeIdEnum.ASSET; - /** -

ApprovalFlow

- - */ - ResourceTypeId APPROVAL_FLOW = ResourceTypeIdEnum.APPROVAL_FLOW; /**

AssociateRole

@@ -195,11 +190,6 @@ enum ResourceTypeIdEnum implements ResourceTypeId { */ ASSET("asset"), - /** - * approval-flow - */ - APPROVAL_FLOW("approval-flow"), - /** * associate-role */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowQueryBuilderDsl.java index 5fbd98f56f7..950a591e21b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowQueryBuilderDsl.java @@ -165,13 +165,4 @@ public CollectionPredicateBuilder currentTierPendin p -> new CombinationQueryPredicate<>(p, ApprovalFlowQueryBuilderDsl::of)); } - public CombinationQueryPredicate custom( - Function> fn) { - return new CombinationQueryPredicate<>( - ContainerQueryPredicate.of() - .parent(ConstantQueryPredicate.of().constant("custom")) - .inner(fn.apply(com.commercetools.api.predicates.query.type.CustomFieldsQueryBuilderDsl.of())), - ApprovalFlowQueryBuilderDsl::of); - } - } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowSetCustomFieldActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowSetCustomFieldActionQueryBuilderDsl.java deleted file mode 100644 index 02898548d9b..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowSetCustomFieldActionQueryBuilderDsl.java +++ /dev/null @@ -1,32 +0,0 @@ - -package com.commercetools.api.predicates.query.approval_flow; - -import com.commercetools.api.predicates.query.*; - -public class ApprovalFlowSetCustomFieldActionQueryBuilderDsl { - public ApprovalFlowSetCustomFieldActionQueryBuilderDsl() { - } - - public static ApprovalFlowSetCustomFieldActionQueryBuilderDsl of() { - return new ApprovalFlowSetCustomFieldActionQueryBuilderDsl(); - } - - public StringComparisonPredicateBuilder action() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), - p -> new CombinationQueryPredicate<>(p, ApprovalFlowSetCustomFieldActionQueryBuilderDsl::of)); - } - - public StringComparisonPredicateBuilder name() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), - p -> new CombinationQueryPredicate<>(p, ApprovalFlowSetCustomFieldActionQueryBuilderDsl::of)); - } - - public StringComparisonPredicateBuilder value() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("value")), - p -> new CombinationQueryPredicate<>(p, ApprovalFlowSetCustomFieldActionQueryBuilderDsl::of)); - } - -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowSetCustomTypeActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowSetCustomTypeActionQueryBuilderDsl.java deleted file mode 100644 index a2d22e05184..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowSetCustomTypeActionQueryBuilderDsl.java +++ /dev/null @@ -1,41 +0,0 @@ - -package com.commercetools.api.predicates.query.approval_flow; - -import java.util.function.Function; - -import com.commercetools.api.predicates.query.*; - -public class ApprovalFlowSetCustomTypeActionQueryBuilderDsl { - public ApprovalFlowSetCustomTypeActionQueryBuilderDsl() { - } - - public static ApprovalFlowSetCustomTypeActionQueryBuilderDsl of() { - return new ApprovalFlowSetCustomTypeActionQueryBuilderDsl(); - } - - public StringComparisonPredicateBuilder action() { - return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), - p -> new CombinationQueryPredicate<>(p, ApprovalFlowSetCustomTypeActionQueryBuilderDsl::of)); - } - - public CombinationQueryPredicate type( - Function> fn) { - return new CombinationQueryPredicate<>( - ContainerQueryPredicate.of() - .parent(ConstantQueryPredicate.of().constant("type")) - .inner(fn.apply( - com.commercetools.api.predicates.query.type.TypeResourceIdentifierQueryBuilderDsl.of())), - ApprovalFlowSetCustomTypeActionQueryBuilderDsl::of); - } - - public CombinationQueryPredicate fields( - Function> fn) { - return new CombinationQueryPredicate<>( - ContainerQueryPredicate.of() - .parent(ConstantQueryPredicate.of().constant("fields")) - .inner(fn.apply(com.commercetools.api.predicates.query.type.FieldContainerQueryBuilderDsl.of())), - ApprovalFlowSetCustomTypeActionQueryBuilderDsl::of); - } - -} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowUpdateActionQueryBuilderDsl.java index f9cfde90e1e..322a7e0a4e1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/approval_flow/ApprovalFlowUpdateActionQueryBuilderDsl.java @@ -33,18 +33,4 @@ public CombinationQueryPredicate asReje fn.apply(com.commercetools.api.predicates.query.approval_flow.ApprovalFlowRejectActionQueryBuilderDsl.of()), ApprovalFlowUpdateActionQueryBuilderDsl::of); } - - public CombinationQueryPredicate asSetCustomField( - Function> fn) { - return new CombinationQueryPredicate<>(fn.apply( - com.commercetools.api.predicates.query.approval_flow.ApprovalFlowSetCustomFieldActionQueryBuilderDsl.of()), - ApprovalFlowUpdateActionQueryBuilderDsl::of); - } - - public CombinationQueryPredicate asSetCustomType( - Function> fn) { - return new CombinationQueryPredicate<>(fn.apply( - com.commercetools.api.predicates.query.approval_flow.ApprovalFlowSetCustomTypeActionQueryBuilderDsl.of()), - ApprovalFlowUpdateActionQueryBuilderDsl::of); - } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorObjectQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorObjectQueryBuilderDsl.java index 5880859c41a..28ebdf84a6b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorObjectQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorObjectQueryBuilderDsl.java @@ -388,6 +388,13 @@ public CombinationQueryPredicate asNoMatchingProduct ErrorObjectQueryBuilderDsl::of); } + public CombinationQueryPredicate asNotEnabled( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.error.NotEnabledErrorQueryBuilderDsl.of()), + ErrorObjectQueryBuilderDsl::of); + } + public CombinationQueryPredicate asObjectNotFound( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorResponseQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorResponseQueryBuilderDsl.java index 1d966522c01..899c926c5e1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorResponseQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/ErrorResponseQueryBuilderDsl.java @@ -45,4 +45,12 @@ public CombinationQueryPredicate asAuthErrorRespon fn.apply(com.commercetools.api.predicates.query.error.AuthErrorResponseQueryBuilderDsl.of()), ErrorResponseQueryBuilderDsl::of); } + + public CombinationQueryPredicate asProductSearchErrorResponse( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchErrorResponseQueryBuilderDsl.of()), + ErrorResponseQueryBuilderDsl::of); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLErrorObjectQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLErrorObjectQueryBuilderDsl.java index 9b8e7f31079..a1f0bb3f482 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLErrorObjectQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLErrorObjectQueryBuilderDsl.java @@ -394,6 +394,13 @@ public CombinationQueryPredicate asNoMatching GraphQLErrorObjectQueryBuilderDsl::of); } + public CombinationQueryPredicate asNotEnabled( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.error.GraphQLNotEnabledErrorQueryBuilderDsl.of()), + GraphQLErrorObjectQueryBuilderDsl::of); + } + public CombinationQueryPredicate asObjectNotFound( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLNotEnabledErrorQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLNotEnabledErrorQueryBuilderDsl.java new file mode 100644 index 00000000000..5787a5ba45c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/GraphQLNotEnabledErrorQueryBuilderDsl.java @@ -0,0 +1,20 @@ + +package com.commercetools.api.predicates.query.error; + +import com.commercetools.api.predicates.query.*; + +public class GraphQLNotEnabledErrorQueryBuilderDsl { + public GraphQLNotEnabledErrorQueryBuilderDsl() { + } + + public static GraphQLNotEnabledErrorQueryBuilderDsl of() { + return new GraphQLNotEnabledErrorQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder code() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("code")), + p -> new CombinationQueryPredicate<>(p, GraphQLNotEnabledErrorQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/NotEnabledErrorQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/NotEnabledErrorQueryBuilderDsl.java new file mode 100644 index 00000000000..acef64dba62 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/error/NotEnabledErrorQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.error; + +import com.commercetools.api.predicates.query.*; + +public class NotEnabledErrorQueryBuilderDsl { + public NotEnabledErrorQueryBuilderDsl() { + } + + public static NotEnabledErrorQueryBuilderDsl of() { + return new NotEnabledErrorQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder code() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("code")), + p -> new CombinationQueryPredicate<>(p, NotEnabledErrorQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder message() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("message")), + p -> new CombinationQueryPredicate<>(p, NotEnabledErrorQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductPagedSearchResponseQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductPagedSearchResponseQueryBuilderDsl.java new file mode 100644 index 00000000000..9c7ad63f8c2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductPagedSearchResponseQueryBuilderDsl.java @@ -0,0 +1,57 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductPagedSearchResponseQueryBuilderDsl { + public ProductPagedSearchResponseQueryBuilderDsl() { + } + + public static ProductPagedSearchResponseQueryBuilderDsl of() { + return new ProductPagedSearchResponseQueryBuilderDsl(); + } + + public LongComparisonPredicateBuilder total() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("total")), + p -> new CombinationQueryPredicate<>(p, ProductPagedSearchResponseQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder offset() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("offset")), + p -> new CombinationQueryPredicate<>(p, ProductPagedSearchResponseQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder limit() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("limit")), + p -> new CombinationQueryPredicate<>(p, ProductPagedSearchResponseQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate facets( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("facets")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetResultQueryBuilderDsl + .of())), + ProductPagedSearchResponseQueryBuilderDsl::of); + } + + public CombinationQueryPredicate hits( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("hits")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchHitQueryBuilderDsl.of())), + ProductPagedSearchResponseQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder hits() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("hits")), + p -> new CombinationQueryPredicate<>(p, ProductPagedSearchResponseQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchAndExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchAndExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..acdd67d81d5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchAndExpressionQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchAndExpressionQueryBuilderDsl { + public ProductSearchAndExpressionQueryBuilderDsl() { + } + + public static ProductSearchAndExpressionQueryBuilderDsl of() { + return new ProductSearchAndExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate and( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("and")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryQueryBuilderDsl.of())), + ProductSearchAndExpressionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder and() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("and")), + p -> new CombinationQueryPredicate<>(p, ProductSearchAndExpressionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchAnyValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchAnyValueQueryBuilderDsl.java new file mode 100644 index 00000000000..6e528149b57 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchAnyValueQueryBuilderDsl.java @@ -0,0 +1,50 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchAnyValueQueryBuilderDsl { + public ProductSearchAnyValueQueryBuilderDsl() { + } + + public static ProductSearchAnyValueQueryBuilderDsl of() { + return new ProductSearchAnyValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchAnyValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, ProductSearchAnyValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchAnyValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder value() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("value")), + p -> new CombinationQueryPredicate<>(p, ProductSearchAnyValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder language() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("language")), + p -> new CombinationQueryPredicate<>(p, ProductSearchAnyValueQueryBuilderDsl::of)); + } + + public BooleanComparisonPredicateBuilder caseInsensitive() { + return new BooleanComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("caseInsensitive")), + p -> new CombinationQueryPredicate<>(p, ProductSearchAnyValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchCompoundExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchCompoundExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..3e0688333ca --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchCompoundExpressionQueryBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchCompoundExpressionQueryBuilderDsl { + public ProductSearchCompoundExpressionQueryBuilderDsl() { + } + + public static ProductSearchCompoundExpressionQueryBuilderDsl of() { + return new ProductSearchCompoundExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate asProductSearchAndExpression( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchAndExpressionQueryBuilderDsl.of()), + ProductSearchCompoundExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchFilterExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFilterExpressionQueryBuilderDsl.of()), + ProductSearchCompoundExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchNotExpression( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchNotExpressionQueryBuilderDsl.of()), + ProductSearchCompoundExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchOrExpression( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchOrExpressionQueryBuilderDsl.of()), + ProductSearchCompoundExpressionQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateRangeExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateRangeExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..ca18bcaf56b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateRangeExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchDateRangeExpressionQueryBuilderDsl { + public ProductSearchDateRangeExpressionQueryBuilderDsl() { + } + + public static ProductSearchDateRangeExpressionQueryBuilderDsl of() { + return new ProductSearchDateRangeExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate range( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("range")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchDateRangeValueQueryBuilderDsl + .of())), + ProductSearchDateRangeExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateRangeValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateRangeValueQueryBuilderDsl.java new file mode 100644 index 00000000000..479bbbee578 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateRangeValueQueryBuilderDsl.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchDateRangeValueQueryBuilderDsl { + public ProductSearchDateRangeValueQueryBuilderDsl() { + } + + public static ProductSearchDateRangeValueQueryBuilderDsl of() { + return new ProductSearchDateRangeValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateRangeValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateRangeValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateRangeValueQueryBuilderDsl::of)); + } + + public DateComparisonPredicateBuilder gte() { + return new DateComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateRangeValueQueryBuilderDsl::of)); + } + + public DateComparisonPredicateBuilder gt() { + return new DateComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateRangeValueQueryBuilderDsl::of)); + } + + public DateComparisonPredicateBuilder lte() { + return new DateComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateRangeValueQueryBuilderDsl::of)); + } + + public DateComparisonPredicateBuilder lt() { + return new DateComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateRangeValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateTimeRangeExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateTimeRangeExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..1b80f0e388b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateTimeRangeExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchDateTimeRangeExpressionQueryBuilderDsl { + public ProductSearchDateTimeRangeExpressionQueryBuilderDsl() { + } + + public static ProductSearchDateTimeRangeExpressionQueryBuilderDsl of() { + return new ProductSearchDateTimeRangeExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate range( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("range")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchDateTimeRangeValueQueryBuilderDsl + .of())), + ProductSearchDateTimeRangeExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateTimeRangeValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateTimeRangeValueQueryBuilderDsl.java new file mode 100644 index 00000000000..3d9ee5a429a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchDateTimeRangeValueQueryBuilderDsl.java @@ -0,0 +1,56 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchDateTimeRangeValueQueryBuilderDsl { + public ProductSearchDateTimeRangeValueQueryBuilderDsl() { + } + + public static ProductSearchDateTimeRangeValueQueryBuilderDsl of() { + return new ProductSearchDateTimeRangeValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateTimeRangeValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateTimeRangeValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateTimeRangeValueQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder gte() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateTimeRangeValueQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder gt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateTimeRangeValueQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lte() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateTimeRangeValueQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchDateTimeRangeValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchErrorResponseQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchErrorResponseQueryBuilderDsl.java new file mode 100644 index 00000000000..377c8c03aaf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchErrorResponseQueryBuilderDsl.java @@ -0,0 +1,42 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchErrorResponseQueryBuilderDsl { + public ProductSearchErrorResponseQueryBuilderDsl() { + } + + public static ProductSearchErrorResponseQueryBuilderDsl of() { + return new ProductSearchErrorResponseQueryBuilderDsl(); + } + + public LongComparisonPredicateBuilder statusCode() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("statusCode")), + p -> new CombinationQueryPredicate<>(p, ProductSearchErrorResponseQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder message() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("message")), + p -> new CombinationQueryPredicate<>(p, ProductSearchErrorResponseQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate errors( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("errors")) + .inner(fn.apply(com.commercetools.api.predicates.query.error.ErrorObjectQueryBuilderDsl.of())), + ProductSearchErrorResponseQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder errors() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("errors")), + p -> new CombinationQueryPredicate<>(p, ProductSearchErrorResponseQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExactExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExactExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..258d31af470 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExactExpressionQueryBuilderDsl.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchExactExpressionQueryBuilderDsl { + public ProductSearchExactExpressionQueryBuilderDsl() { + } + + public static ProductSearchExactExpressionQueryBuilderDsl of() { + return new ProductSearchExactExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate exact( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("exact")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchAnyValueQueryBuilderDsl.of())), + ProductSearchExactExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExistsExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExistsExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..f3a50b2b113 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExistsExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchExistsExpressionQueryBuilderDsl { + public ProductSearchExistsExpressionQueryBuilderDsl() { + } + + public static ProductSearchExistsExpressionQueryBuilderDsl of() { + return new ProductSearchExistsExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate exists( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("exists")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchExistsValueQueryBuilderDsl + .of())), + ProductSearchExistsExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExistsValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExistsValueQueryBuilderDsl.java new file mode 100644 index 00000000000..3b64d748327 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchExistsValueQueryBuilderDsl.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchExistsValueQueryBuilderDsl { + public ProductSearchExistsValueQueryBuilderDsl() { + } + + public static ProductSearchExistsValueQueryBuilderDsl of() { + return new ProductSearchExistsValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchExistsValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, ProductSearchExistsValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchExistsValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder language() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("language")), + p -> new CombinationQueryPredicate<>(p, ProductSearchExistsValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetBucketResultQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetBucketResultQueryBuilderDsl.java new file mode 100644 index 00000000000..cbf61f82a52 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetBucketResultQueryBuilderDsl.java @@ -0,0 +1,37 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetBucketResultQueryBuilderDsl { + public ProductSearchFacetBucketResultQueryBuilderDsl() { + } + + public static ProductSearchFacetBucketResultQueryBuilderDsl of() { + return new ProductSearchFacetBucketResultQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder name() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetBucketResultQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate buckets( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("buckets")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetResultBucketQueryBuilderDsl + .of())), + ProductSearchFacetBucketResultQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder buckets() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("buckets")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetBucketResultQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetCountExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetCountExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..2826309988f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetCountExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetCountExpressionQueryBuilderDsl { + public ProductSearchFacetCountExpressionQueryBuilderDsl() { + } + + public static ProductSearchFacetCountExpressionQueryBuilderDsl of() { + return new ProductSearchFacetCountExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate count( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("count")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetCountValueQueryBuilderDsl + .of())), + ProductSearchFacetCountExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetCountValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetCountValueQueryBuilderDsl.java new file mode 100644 index 00000000000..1d2a24484e1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetCountValueQueryBuilderDsl.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetCountValueQueryBuilderDsl { + public ProductSearchFacetCountValueQueryBuilderDsl() { + } + + public static ProductSearchFacetCountValueQueryBuilderDsl of() { + return new ProductSearchFacetCountValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder name() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetCountValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder scope() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("scope")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetCountValueQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate filter( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("filter")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryQueryBuilderDsl.of())), + ProductSearchFacetCountValueQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder level() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("level")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetCountValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..9f8d8327da9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl { + public ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl() { + } + + public static ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl of() { + return new ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder by() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("by")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder order() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("order")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..c91c74a7b3e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetDistinctExpressionQueryBuilderDsl { + public ProductSearchFacetDistinctExpressionQueryBuilderDsl() { + } + + public static ProductSearchFacetDistinctExpressionQueryBuilderDsl of() { + return new ProductSearchFacetDistinctExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate distinct( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("distinct")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetDistinctValueQueryBuilderDsl + .of())), + ProductSearchFacetDistinctExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctStartsWithQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctStartsWithQueryBuilderDsl.java new file mode 100644 index 00000000000..69eee876aae --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctStartsWithQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetDistinctStartsWithQueryBuilderDsl { + public ProductSearchFacetDistinctStartsWithQueryBuilderDsl() { + } + + public static ProductSearchFacetDistinctStartsWithQueryBuilderDsl of() { + return new ProductSearchFacetDistinctStartsWithQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder value() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("value")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctStartsWithQueryBuilderDsl::of)); + } + + public BooleanComparisonPredicateBuilder caseInsensitive() { + return new BooleanComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("caseInsensitive")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctStartsWithQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctValueQueryBuilderDsl.java new file mode 100644 index 00000000000..8c430c880d5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetDistinctValueQueryBuilderDsl.java @@ -0,0 +1,99 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetDistinctValueQueryBuilderDsl { + public ProductSearchFacetDistinctValueQueryBuilderDsl() { + } + + public static ProductSearchFacetDistinctValueQueryBuilderDsl of() { + return new ProductSearchFacetDistinctValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder name() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder scope() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("scope")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctValueQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate filter( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("filter")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryQueryBuilderDsl.of())), + ProductSearchFacetDistinctValueQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder count() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("count")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctValueQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder includes() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("includes")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctValueQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate startsWith( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("startsWith")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetDistinctStartsWithQueryBuilderDsl + .of())), + ProductSearchFacetDistinctValueQueryBuilderDsl::of); + } + + public CombinationQueryPredicate sort( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("sort")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetDistinctBucketSortExpressionQueryBuilderDsl + .of())), + ProductSearchFacetDistinctValueQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder size() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("size")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder language() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("language")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder missing() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("missing")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetDistinctValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..16b7939b3a8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetExpressionQueryBuilderDsl.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetExpressionQueryBuilderDsl { + public ProductSearchFacetExpressionQueryBuilderDsl() { + } + + public static ProductSearchFacetExpressionQueryBuilderDsl of() { + return new ProductSearchFacetExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate asProductSearchFacetCountExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetCountExpressionQueryBuilderDsl + .of()), + ProductSearchFacetExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchFacetDistinctExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetDistinctExpressionQueryBuilderDsl + .of()), + ProductSearchFacetExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchFacetRangesExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetRangesExpressionQueryBuilderDsl + .of()), + ProductSearchFacetExpressionQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..5833ccab1eb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetRangesExpressionQueryBuilderDsl { + public ProductSearchFacetRangesExpressionQueryBuilderDsl() { + } + + public static ProductSearchFacetRangesExpressionQueryBuilderDsl of() { + return new ProductSearchFacetRangesExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate ranges( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("ranges")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetRangesValueQueryBuilderDsl + .of())), + ProductSearchFacetRangesExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesFacetRangeQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesFacetRangeQueryBuilderDsl.java new file mode 100644 index 00000000000..928dfdbf17c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesFacetRangeQueryBuilderDsl.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetRangesFacetRangeQueryBuilderDsl { + public ProductSearchFacetRangesFacetRangeQueryBuilderDsl() { + } + + public static ProductSearchFacetRangesFacetRangeQueryBuilderDsl of() { + return new ProductSearchFacetRangesFacetRangeQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder from() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("from")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesFacetRangeQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder to() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("to")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesFacetRangeQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder key() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesFacetRangeQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesValueQueryBuilderDsl.java new file mode 100644 index 00000000000..0901f73a73e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetRangesValueQueryBuilderDsl.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetRangesValueQueryBuilderDsl { + public ProductSearchFacetRangesValueQueryBuilderDsl() { + } + + public static ProductSearchFacetRangesValueQueryBuilderDsl of() { + return new ProductSearchFacetRangesValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder name() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder scope() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("scope")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesValueQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate filter( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("filter")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryQueryBuilderDsl.of())), + ProductSearchFacetRangesValueQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder count() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("count")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesValueQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate ranges( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("ranges")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetRangesFacetRangeQueryBuilderDsl + .of())), + ProductSearchFacetRangesValueQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder ranges() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("ranges")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder language() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("language")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetRangesValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultBucketQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultBucketQueryBuilderDsl.java new file mode 100644 index 00000000000..606e97bc05a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultBucketQueryBuilderDsl.java @@ -0,0 +1,24 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetResultBucketQueryBuilderDsl { + public ProductSearchFacetResultBucketQueryBuilderDsl() { + } + + public static ProductSearchFacetResultBucketQueryBuilderDsl of() { + return new ProductSearchFacetResultBucketQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder key() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetResultBucketQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder count() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("count")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetResultBucketQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultCountQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultCountQueryBuilderDsl.java new file mode 100644 index 00000000000..c2a3b793235 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultCountQueryBuilderDsl.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetResultCountQueryBuilderDsl { + public ProductSearchFacetResultCountQueryBuilderDsl() { + } + + public static ProductSearchFacetResultCountQueryBuilderDsl of() { + return new ProductSearchFacetResultCountQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder name() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetResultCountQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder value() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("value")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetResultCountQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..959f73d076f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultExpressionQueryBuilderDsl.java @@ -0,0 +1,35 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetResultExpressionQueryBuilderDsl { + public ProductSearchFacetResultExpressionQueryBuilderDsl() { + } + + public static ProductSearchFacetResultExpressionQueryBuilderDsl of() { + return new ProductSearchFacetResultExpressionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder name() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetResultExpressionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate asProductSearchFacetBucketResult( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetBucketResultQueryBuilderDsl.of()), + ProductSearchFacetResultExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchFacetResultCount( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetResultCountQueryBuilderDsl.of()), + ProductSearchFacetResultExpressionQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultQueryBuilderDsl.java new file mode 100644 index 00000000000..f5cd9c7ed11 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFacetResultQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFacetResultQueryBuilderDsl { + public ProductSearchFacetResultQueryBuilderDsl() { + } + + public static ProductSearchFacetResultQueryBuilderDsl of() { + return new ProductSearchFacetResultQueryBuilderDsl(); + } + + public CombinationQueryPredicate results( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("results")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetResultExpressionQueryBuilderDsl + .of())), + ProductSearchFacetResultQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder results() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("results")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFacetResultQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFilterExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFilterExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..263a4f83a82 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFilterExpressionQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFilterExpressionQueryBuilderDsl { + public ProductSearchFilterExpressionQueryBuilderDsl() { + } + + public static ProductSearchFilterExpressionQueryBuilderDsl of() { + return new ProductSearchFilterExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate filter( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("filter")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryExpressionQueryBuilderDsl + .of())), + ProductSearchFilterExpressionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder filter() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("filter")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFilterExpressionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFullTextExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFullTextExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..614c201e20c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFullTextExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFullTextExpressionQueryBuilderDsl { + public ProductSearchFullTextExpressionQueryBuilderDsl() { + } + + public static ProductSearchFullTextExpressionQueryBuilderDsl of() { + return new ProductSearchFullTextExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate fullText( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("fullText")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFullTextValueQueryBuilderDsl + .of())), + ProductSearchFullTextExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFullTextValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFullTextValueQueryBuilderDsl.java new file mode 100644 index 00000000000..6491793d63e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchFullTextValueQueryBuilderDsl.java @@ -0,0 +1,50 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchFullTextValueQueryBuilderDsl { + public ProductSearchFullTextValueQueryBuilderDsl() { + } + + public static ProductSearchFullTextValueQueryBuilderDsl of() { + return new ProductSearchFullTextValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFullTextValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFullTextValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFullTextValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder value() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("value")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFullTextValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder language() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("language")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFullTextValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder mustMatch() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("mustMatch")), + p -> new CombinationQueryPredicate<>(p, ProductSearchFullTextValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchHitQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchHitQueryBuilderDsl.java new file mode 100644 index 00000000000..b5f90e1c9ed --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchHitQueryBuilderDsl.java @@ -0,0 +1,45 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchHitQueryBuilderDsl { + public ProductSearchHitQueryBuilderDsl() { + } + + public static ProductSearchHitQueryBuilderDsl of() { + return new ProductSearchHitQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ProductSearchHitQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate productProjection( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("productProjection")) + .inner(fn.apply(com.commercetools.api.predicates.query.product.ProductProjectionQueryBuilderDsl.of())), + ProductSearchHitQueryBuilderDsl::of); + } + + public CombinationQueryPredicate matchingVariants( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("matchingVariants")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchMatchingVariantQueryBuilderDsl + .of())), + ProductSearchHitQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder matchingVariants() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("matchingVariants")), + p -> new CombinationQueryPredicate<>(p, ProductSearchHitQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchLongRangeExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchLongRangeExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..df620a2a907 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchLongRangeExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchLongRangeExpressionQueryBuilderDsl { + public ProductSearchLongRangeExpressionQueryBuilderDsl() { + } + + public static ProductSearchLongRangeExpressionQueryBuilderDsl of() { + return new ProductSearchLongRangeExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate range( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("range")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchLongRangeValueQueryBuilderDsl + .of())), + ProductSearchLongRangeExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchLongRangeValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchLongRangeValueQueryBuilderDsl.java new file mode 100644 index 00000000000..025204cc625 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchLongRangeValueQueryBuilderDsl.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchLongRangeValueQueryBuilderDsl { + public ProductSearchLongRangeValueQueryBuilderDsl() { + } + + public static ProductSearchLongRangeValueQueryBuilderDsl of() { + return new ProductSearchLongRangeValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchLongRangeValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, ProductSearchLongRangeValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchLongRangeValueQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder gte() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchLongRangeValueQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder gt() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchLongRangeValueQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder lte() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchLongRangeValueQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder lt() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchLongRangeValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchMatchingVariantQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchMatchingVariantQueryBuilderDsl.java new file mode 100644 index 00000000000..d5f34a9e974 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchMatchingVariantQueryBuilderDsl.java @@ -0,0 +1,24 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchMatchingVariantQueryBuilderDsl { + public ProductSearchMatchingVariantQueryBuilderDsl() { + } + + public static ProductSearchMatchingVariantQueryBuilderDsl of() { + return new ProductSearchMatchingVariantQueryBuilderDsl(); + } + + public LongComparisonPredicateBuilder id() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ProductSearchMatchingVariantQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder sku() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sku")), + p -> new CombinationQueryPredicate<>(p, ProductSearchMatchingVariantQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNotExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNotExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..7fd8957a903 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNotExpressionQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchNotExpressionQueryBuilderDsl { + public ProductSearchNotExpressionQueryBuilderDsl() { + } + + public static ProductSearchNotExpressionQueryBuilderDsl of() { + return new ProductSearchNotExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate not( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("not")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryQueryBuilderDsl.of())), + ProductSearchNotExpressionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder not() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("not")), + p -> new CombinationQueryPredicate<>(p, ProductSearchNotExpressionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNumberRangeExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNumberRangeExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..3fd1feecfa9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNumberRangeExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchNumberRangeExpressionQueryBuilderDsl { + public ProductSearchNumberRangeExpressionQueryBuilderDsl() { + } + + public static ProductSearchNumberRangeExpressionQueryBuilderDsl of() { + return new ProductSearchNumberRangeExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate range( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("range")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchNumberRangeValueQueryBuilderDsl + .of())), + ProductSearchNumberRangeExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNumberRangeValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNumberRangeValueQueryBuilderDsl.java new file mode 100644 index 00000000000..aa18eae045f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchNumberRangeValueQueryBuilderDsl.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchNumberRangeValueQueryBuilderDsl { + public ProductSearchNumberRangeValueQueryBuilderDsl() { + } + + public static ProductSearchNumberRangeValueQueryBuilderDsl of() { + return new ProductSearchNumberRangeValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchNumberRangeValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, ProductSearchNumberRangeValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchNumberRangeValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder gte() { + return new DoubleComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchNumberRangeValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder gt() { + return new DoubleComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchNumberRangeValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder lte() { + return new DoubleComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchNumberRangeValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder lt() { + return new DoubleComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchNumberRangeValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchOrExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchOrExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..abbad4796d0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchOrExpressionQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchOrExpressionQueryBuilderDsl { + public ProductSearchOrExpressionQueryBuilderDsl() { + } + + public static ProductSearchOrExpressionQueryBuilderDsl of() { + return new ProductSearchOrExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate or( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("or")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryQueryBuilderDsl.of())), + ProductSearchOrExpressionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder or() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("or")), + p -> new CombinationQueryPredicate<>(p, ProductSearchOrExpressionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchPrefixExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchPrefixExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..4451ffa4b11 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchPrefixExpressionQueryBuilderDsl.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchPrefixExpressionQueryBuilderDsl { + public ProductSearchPrefixExpressionQueryBuilderDsl() { + } + + public static ProductSearchPrefixExpressionQueryBuilderDsl of() { + return new ProductSearchPrefixExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate prefix( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("prefix")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchAnyValueQueryBuilderDsl.of())), + ProductSearchPrefixExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java new file mode 100644 index 00000000000..9fb07d4af16 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchProjectionParamsQueryBuilderDsl.java @@ -0,0 +1,62 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchProjectionParamsQueryBuilderDsl { + public ProductSearchProjectionParamsQueryBuilderDsl() { + } + + public static ProductSearchProjectionParamsQueryBuilderDsl of() { + return new ProductSearchProjectionParamsQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder expand() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("expand")), + p -> new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); + } + + public BooleanComparisonPredicateBuilder staged() { + return new BooleanComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("staged")), + p -> new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder priceCurrency() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("priceCurrency")), + p -> new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder priceCountry() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("priceCountry")), + p -> new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder priceCustomerGroup() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("priceCustomerGroup")), + p -> new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder priceChannel() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("priceChannel")), + p -> new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder localeProjection() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("localeProjection")), + p -> new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder storeProjection() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("storeProjection")), + p -> new CombinationQueryPredicate<>(p, ProductSearchProjectionParamsQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..ccb8e899f2c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryExpressionQueryBuilderDsl.java @@ -0,0 +1,88 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchQueryExpressionQueryBuilderDsl { + public ProductSearchQueryExpressionQueryBuilderDsl() { + } + + public static ProductSearchQueryExpressionQueryBuilderDsl of() { + return new ProductSearchQueryExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate asProductSearchDateRangeExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchDateRangeExpressionQueryBuilderDsl.of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchDateTimeRangeExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchDateTimeRangeExpressionQueryBuilderDsl + .of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchExactExpression( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchExactExpressionQueryBuilderDsl.of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchExistsExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchExistsExpressionQueryBuilderDsl.of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchFullTextExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFullTextExpressionQueryBuilderDsl.of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchLongRangeExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchLongRangeExpressionQueryBuilderDsl.of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchNumberRangeExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchNumberRangeExpressionQueryBuilderDsl + .of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchPrefixExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchPrefixExpressionQueryBuilderDsl.of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchTimeRangeExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchTimeRangeExpressionQueryBuilderDsl.of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchWildCardExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchWildCardExpressionQueryBuilderDsl.of()), + ProductSearchQueryExpressionQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryExpressionValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryExpressionValueQueryBuilderDsl.java new file mode 100644 index 00000000000..6658381e382 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryExpressionValueQueryBuilderDsl.java @@ -0,0 +1,94 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchQueryExpressionValueQueryBuilderDsl { + public ProductSearchQueryExpressionValueQueryBuilderDsl() { + } + + public static ProductSearchQueryExpressionValueQueryBuilderDsl of() { + return new ProductSearchQueryExpressionValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchQueryExpressionValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, ProductSearchQueryExpressionValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchQueryExpressionValueQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate asProductSearchAnyValue( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.product_search.ProductSearchAnyValueQueryBuilderDsl.of()), + ProductSearchQueryExpressionValueQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchDateRangeValue( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchDateRangeValueQueryBuilderDsl.of()), + ProductSearchQueryExpressionValueQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchDateTimeRangeValue( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchDateTimeRangeValueQueryBuilderDsl.of()), + ProductSearchQueryExpressionValueQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchExistsValue( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchExistsValueQueryBuilderDsl.of()), + ProductSearchQueryExpressionValueQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchFullTextValue( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFullTextValueQueryBuilderDsl.of()), + ProductSearchQueryExpressionValueQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchLongRangeValue( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchLongRangeValueQueryBuilderDsl.of()), + ProductSearchQueryExpressionValueQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchNumberRangeValue( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchNumberRangeValueQueryBuilderDsl.of()), + ProductSearchQueryExpressionValueQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchTimeRangeValue( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchTimeRangeValueQueryBuilderDsl.of()), + ProductSearchQueryExpressionValueQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryQueryBuilderDsl.java new file mode 100644 index 00000000000..6be6776a964 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchQueryQueryBuilderDsl.java @@ -0,0 +1,30 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchQueryQueryBuilderDsl { + public ProductSearchQueryQueryBuilderDsl() { + } + + public static ProductSearchQueryQueryBuilderDsl of() { + return new ProductSearchQueryQueryBuilderDsl(); + } + + public CombinationQueryPredicate asProductSearchCompoundExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchCompoundExpressionQueryBuilderDsl.of()), + ProductSearchQueryQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asProductSearchQueryExpression( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryExpressionQueryBuilderDsl.of()), + ProductSearchQueryQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchRequestQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchRequestQueryBuilderDsl.java new file mode 100644 index 00000000000..663e76c6fdc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchRequestQueryBuilderDsl.java @@ -0,0 +1,92 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchRequestQueryBuilderDsl { + public ProductSearchRequestQueryBuilderDsl() { + } + + public static ProductSearchRequestQueryBuilderDsl of() { + return new ProductSearchRequestQueryBuilderDsl(); + } + + public CombinationQueryPredicate query( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("query")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryQueryBuilderDsl.of())), + ProductSearchRequestQueryBuilderDsl::of); + } + + public CombinationQueryPredicate postFilter( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("postFilter")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryQueryBuilderDsl.of())), + ProductSearchRequestQueryBuilderDsl::of); + } + + public CombinationQueryPredicate sort( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("sort")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchSortingQueryBuilderDsl.of())), + ProductSearchRequestQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder sort() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sort")), + p -> new CombinationQueryPredicate<>(p, ProductSearchRequestQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder limit() { + return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("limit")), + p -> new CombinationQueryPredicate<>(p, ProductSearchRequestQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder offset() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("offset")), + p -> new CombinationQueryPredicate<>(p, ProductSearchRequestQueryBuilderDsl::of)); + } + + public BooleanComparisonPredicateBuilder markMatchingVariants() { + return new BooleanComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("markMatchingVariants")), + p -> new CombinationQueryPredicate<>(p, ProductSearchRequestQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate projection( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("projection")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchProjectionParamsQueryBuilderDsl + .of())), + ProductSearchRequestQueryBuilderDsl::of); + } + + public CombinationQueryPredicate facets( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("facets")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchFacetExpressionQueryBuilderDsl + .of())), + ProductSearchRequestQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder facets() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("facets")), + p -> new CombinationQueryPredicate<>(p, ProductSearchRequestQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSortingQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSortingQueryBuilderDsl.java new file mode 100644 index 00000000000..6b29390f4b2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSortingQueryBuilderDsl.java @@ -0,0 +1,62 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchSortingQueryBuilderDsl { + public ProductSearchSortingQueryBuilderDsl() { + } + + public static ProductSearchSortingQueryBuilderDsl of() { + return new ProductSearchSortingQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchSortingQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder language() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("language")), + p -> new CombinationQueryPredicate<>(p, ProductSearchSortingQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder order() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("order")), + p -> new CombinationQueryPredicate<>(p, ProductSearchSortingQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder mode() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("mode")), + p -> new CombinationQueryPredicate<>(p, ProductSearchSortingQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchSortingQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate filter( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("filter")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchQueryExpressionQueryBuilderDsl + .of())), + ProductSearchSortingQueryBuilderDsl::of); + } + + public BooleanComparisonPredicateBuilder internal() { + return new BooleanComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("internal")), + p -> new CombinationQueryPredicate<>(p, ProductSearchSortingQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionCompletionExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionCompletionExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..4e42f5d8607 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionCompletionExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchSuggestionCompletionExpressionQueryBuilderDsl { + public ProductSearchSuggestionCompletionExpressionQueryBuilderDsl() { + } + + public static ProductSearchSuggestionCompletionExpressionQueryBuilderDsl of() { + return new ProductSearchSuggestionCompletionExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate completion( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("completion")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl + .of())), + ProductSearchSuggestionCompletionExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl.java new file mode 100644 index 00000000000..bbc12250249 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl.java @@ -0,0 +1,33 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl { + public ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl() { + } + + public static ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl of() { + return new ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder name() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("name")), p -> new CombinationQueryPredicate<>(p, + ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), p -> new CombinationQueryPredicate<>(p, + ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder prefix() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("prefix")), + p -> new CombinationQueryPredicate<>(p, + ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..326a4767c96 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionExpressionQueryBuilderDsl.java @@ -0,0 +1,23 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchSuggestionExpressionQueryBuilderDsl { + public ProductSearchSuggestionExpressionQueryBuilderDsl() { + } + + public static ProductSearchSuggestionExpressionQueryBuilderDsl of() { + return new ProductSearchSuggestionExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate asProductSearchSuggestionCompletionExpression( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchSuggestionCompletionExpressionQueryBuilderDsl + .of()), + ProductSearchSuggestionExpressionQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionExpressionValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionExpressionValueQueryBuilderDsl.java new file mode 100644 index 00000000000..575a5c005b8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchSuggestionExpressionValueQueryBuilderDsl.java @@ -0,0 +1,23 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchSuggestionExpressionValueQueryBuilderDsl { + public ProductSearchSuggestionExpressionValueQueryBuilderDsl() { + } + + public static ProductSearchSuggestionExpressionValueQueryBuilderDsl of() { + return new ProductSearchSuggestionExpressionValueQueryBuilderDsl(); + } + + public CombinationQueryPredicate asProductSearchSuggestionCompletionExpressionValue( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchSuggestionCompletionExpressionValueQueryBuilderDsl + .of()), + ProductSearchSuggestionExpressionValueQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchTimeRangeExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchTimeRangeExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..2692ea87420 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchTimeRangeExpressionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchTimeRangeExpressionQueryBuilderDsl { + public ProductSearchTimeRangeExpressionQueryBuilderDsl() { + } + + public static ProductSearchTimeRangeExpressionQueryBuilderDsl of() { + return new ProductSearchTimeRangeExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate range( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("range")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchTimeRangeValueQueryBuilderDsl + .of())), + ProductSearchTimeRangeExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchTimeRangeValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchTimeRangeValueQueryBuilderDsl.java new file mode 100644 index 00000000000..6b50a8ccadb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchTimeRangeValueQueryBuilderDsl.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.predicates.query.product_search; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchTimeRangeValueQueryBuilderDsl { + public ProductSearchTimeRangeValueQueryBuilderDsl() { + } + + public static ProductSearchTimeRangeValueQueryBuilderDsl of() { + return new ProductSearchTimeRangeValueQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder field() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")), + p -> new CombinationQueryPredicate<>(p, ProductSearchTimeRangeValueQueryBuilderDsl::of)); + } + + public DoubleComparisonPredicateBuilder boost() { + return new DoubleComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")), + p -> new CombinationQueryPredicate<>(p, ProductSearchTimeRangeValueQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder attributeType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("attributeType")), + p -> new CombinationQueryPredicate<>(p, ProductSearchTimeRangeValueQueryBuilderDsl::of)); + } + + public TimeComparisonPredicateBuilder gte() { + return new TimeComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchTimeRangeValueQueryBuilderDsl::of)); + } + + public TimeComparisonPredicateBuilder gt() { + return new TimeComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("gt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchTimeRangeValueQueryBuilderDsl::of)); + } + + public TimeComparisonPredicateBuilder lte() { + return new TimeComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lte")), + p -> new CombinationQueryPredicate<>(p, ProductSearchTimeRangeValueQueryBuilderDsl::of)); + } + + public TimeComparisonPredicateBuilder lt() { + return new TimeComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lt")), + p -> new CombinationQueryPredicate<>(p, ProductSearchTimeRangeValueQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchWildCardExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchWildCardExpressionQueryBuilderDsl.java new file mode 100644 index 00000000000..b22a1c6eec2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/product_search/ProductSearchWildCardExpressionQueryBuilderDsl.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.predicates.query.product_search; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ProductSearchWildCardExpressionQueryBuilderDsl { + public ProductSearchWildCardExpressionQueryBuilderDsl() { + } + + public static ProductSearchWildCardExpressionQueryBuilderDsl of() { + return new ProductSearchWildCardExpressionQueryBuilderDsl(); + } + + public CombinationQueryPredicate wildcard( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("wildcard")) + .inner(fn.apply( + com.commercetools.api.predicates.query.product_search.ProductSearchAnyValueQueryBuilderDsl.of())), + ProductSearchWildCardExpressionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectChangeProductSearchStatusActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectChangeProductSearchStatusActionQueryBuilderDsl.java new file mode 100644 index 00000000000..e6b99ac20cb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectChangeProductSearchStatusActionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.project; + +import com.commercetools.api.predicates.query.*; + +public class ProjectChangeProductSearchStatusActionQueryBuilderDsl { + public ProjectChangeProductSearchStatusActionQueryBuilderDsl() { + } + + public static ProjectChangeProductSearchStatusActionQueryBuilderDsl of() { + return new ProjectChangeProductSearchStatusActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, ProjectChangeProductSearchStatusActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder status() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("status")), + p -> new CombinationQueryPredicate<>(p, ProjectChangeProductSearchStatusActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectUpdateActionQueryBuilderDsl.java index ad428681dfa..e028307ab3d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/ProjectUpdateActionQueryBuilderDsl.java @@ -93,6 +93,13 @@ public CombinationQueryPredicate asChangePro ProjectUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asChangeProductSearchStatus( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.project.ProjectChangeProductSearchStatusActionQueryBuilderDsl.of()), + ProjectUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asChangeShoppingListsConfiguration( Function> fn) { return new CombinationQueryPredicate<>(fn.apply( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/SearchIndexingConfigurationQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/SearchIndexingConfigurationQueryBuilderDsl.java index 0c8b339f5fe..08ad6c898bd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/SearchIndexingConfigurationQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/project/SearchIndexingConfigurationQueryBuilderDsl.java @@ -23,6 +23,16 @@ public CombinationQueryPredicate pro SearchIndexingConfigurationQueryBuilderDsl::of); } + public CombinationQueryPredicate productsNew( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("productsNew")) + .inner(fn.apply( + com.commercetools.api.predicates.query.project.SearchIndexingConfigurationValuesQueryBuilderDsl + .of())), + SearchIndexingConfigurationQueryBuilderDsl::of); + } + public CombinationQueryPredicate orders( Function> fn) { return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsSearchTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsSearchTest.java new file mode 100644 index 00000000000..c43fd17cc49 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductsSearchTest.java @@ -0,0 +1,85 @@ + +package com.commercetools.api.client.resource; + +import java.nio.charset.StandardCharsets; +import java.util.concurrent.CompletableFuture; + +import com.commercetools.api.client.ApiRoot; +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 io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.ApiHttpClient; +import io.vrap.rmf.base.client.ApiHttpRequest; +import io.vrap.rmf.base.client.VrapHttpClient; +import io.vrap.rmf.base.client.error.ApiClientException; +import io.vrap.rmf.base.client.error.ApiServerException; +import io.vrap.rmf.base.client.utils.Generated; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mockito; + +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ByProjectKeyProductsSearchTest { + private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class); + private final String projectKey = "test_projectKey"; + private final static ApiRoot apiRoot = ApiRoot.of(); + private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build(); + + @TestTemplate + @UseDataProvider("requestWithMethodParameters") + public void withMethods(ApiHttpRequest request, String httpMethod, String uri) { + Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase()); + Assertions.assertThat(uri).isEqualTo(request.getUri().toString()); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeServerException(HttpRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(500, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiServerException.class); + } + + @TestTemplate + @UseDataProvider("executeMethodParameters") + public void executeClientException(HttpRequestCommand httpRequest) throws Exception { + Mockito.when(httpClientMock.execute(Mockito.any())) + .thenReturn(CompletableFuture.completedFuture( + new ApiHttpResponse<>(400, null, "".getBytes(StandardCharsets.UTF_8), "Oops!"))); + + Assertions.assertThatThrownBy(() -> client.execute(httpRequest).toCompletableFuture().get()) + .hasCauseInstanceOf(ApiClientException.class); + } + + @DataProvider + public static Object[][] requestWithMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .search() + .post(com.commercetools.api.models.product_search.ProductSearchRequest.of()) + .createHttpRequest(), "post", "test_projectKey/products/search", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").products().search().head().createHttpRequest(), + "head", "test_projectKey/products/search", } }; + } + + @DataProvider + public static Object[][] executeMethodParameters() { + return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .products() + .search() + .post(com.commercetools.api.models.product_search.ProductSearchRequest.of()), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").products().search().head(), } }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionTest.java deleted file mode 100644 index 7b1878f58ca..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomFieldActionTest.java +++ /dev/null @@ -1,44 +0,0 @@ - -package com.commercetools.api.models.approval_flow; - -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 ApprovalFlowSetCustomFieldActionTest { - - @TestTemplate - @UseDataProvider("objectBuilder") - public void buildUnchecked(ApprovalFlowSetCustomFieldActionBuilder builder) { - ApprovalFlowSetCustomFieldAction approvalFlowSetCustomFieldAction = builder.buildUnchecked(); - Assertions.assertThat(approvalFlowSetCustomFieldAction).isInstanceOf(ApprovalFlowSetCustomFieldAction.class); - } - - @DataProvider - public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { ApprovalFlowSetCustomFieldAction.builder().name("name") }, - new Object[] { ApprovalFlowSetCustomFieldAction.builder().value("value") } }; - } - - @Test - public void name() { - ApprovalFlowSetCustomFieldAction value = ApprovalFlowSetCustomFieldAction.of(); - value.setName("name"); - Assertions.assertThat(value.getName()).isEqualTo("name"); - } - - @Test - public void value() { - ApprovalFlowSetCustomFieldAction value = ApprovalFlowSetCustomFieldAction.of(); - value.setValue("value"); - Assertions.assertThat(value.getValue()).isEqualTo("value"); - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionTest.java deleted file mode 100644 index 383095c6f84..00000000000 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowSetCustomTypeActionTest.java +++ /dev/null @@ -1,48 +0,0 @@ - -package com.commercetools.api.models.approval_flow; - -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 ApprovalFlowSetCustomTypeActionTest { - - @TestTemplate - @UseDataProvider("objectBuilder") - public void buildUnchecked(ApprovalFlowSetCustomTypeActionBuilder builder) { - ApprovalFlowSetCustomTypeAction approvalFlowSetCustomTypeAction = builder.buildUnchecked(); - Assertions.assertThat(approvalFlowSetCustomTypeAction).isInstanceOf(ApprovalFlowSetCustomTypeAction.class); - } - - @DataProvider - public static Object[][] objectBuilder() { - return new Object[][] { - new Object[] { ApprovalFlowSetCustomTypeAction.builder() - .type(new com.commercetools.api.models.type.TypeResourceIdentifierImpl()) }, - new Object[] { ApprovalFlowSetCustomTypeAction.builder() - .fields(new com.commercetools.api.models.type.FieldContainerImpl()) } }; - } - - @Test - public void type() { - ApprovalFlowSetCustomTypeAction value = ApprovalFlowSetCustomTypeAction.of(); - value.setType(new com.commercetools.api.models.type.TypeResourceIdentifierImpl()); - Assertions.assertThat(value.getType()) - .isEqualTo(new com.commercetools.api.models.type.TypeResourceIdentifierImpl()); - } - - @Test - public void fields() { - ApprovalFlowSetCustomTypeAction value = ApprovalFlowSetCustomTypeAction.of(); - value.setFields(new com.commercetools.api.models.type.FieldContainerImpl()); - Assertions.assertThat(value.getFields()).isEqualTo(new com.commercetools.api.models.type.FieldContainerImpl()); - } -} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowTest.java index 30e5ec72268..d3e3acbfd03 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/approval_flow/ApprovalFlowTest.java @@ -57,9 +57,7 @@ public static Object[][] objectBuilder() { .singletonList(new com.commercetools.api.models.approval_rule.RuleApproverImpl())) }, new Object[] { ApprovalFlow.builder() .currentTierPendingApprovers(Collections - .singletonList(new com.commercetools.api.models.approval_rule.RuleApproverImpl())) }, - new Object[] { - ApprovalFlow.builder().custom(new com.commercetools.api.models.type.CustomFieldsImpl()) } }; + .singletonList(new com.commercetools.api.models.approval_rule.RuleApproverImpl())) } }; } @Test @@ -184,11 +182,4 @@ public void currentTierPendingApprovers() { .isEqualTo( Collections.singletonList(new com.commercetools.api.models.approval_rule.RuleApproverImpl())); } - - @Test - public void custom() { - ApprovalFlow value = ApprovalFlow.of(); - value.setCustom(new com.commercetools.api.models.type.CustomFieldsImpl()); - Assertions.assertThat(value.getCustom()).isEqualTo(new com.commercetools.api.models.type.CustomFieldsImpl()); - } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorTest.java new file mode 100644 index 00000000000..8dc870a09c1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/GraphQLNotEnabledErrorTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.api.models.error; + +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 GraphQLNotEnabledErrorTest { + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/NotEnabledErrorTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/NotEnabledErrorTest.java new file mode 100644 index 00000000000..0e3487f28d7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/error/NotEnabledErrorTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.api.models.error; + +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 NotEnabledErrorTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(NotEnabledErrorBuilder builder) { + NotEnabledError notEnabledError = builder.buildUnchecked(); + Assertions.assertThat(notEnabledError).isInstanceOf(NotEnabledError.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { NotEnabledError.builder().message("message") } }; + } + + @Test + public void message() { + NotEnabledError value = NotEnabledError.of(); + value.setMessage("message"); + Assertions.assertThat(value.getMessage()).isEqualTo("message"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseTest.java new file mode 100644 index 00000000000..710508323bb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductPagedSearchResponseTest.java @@ -0,0 +1,77 @@ + +package com.commercetools.api.models.product_search; + +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 ProductPagedSearchResponseTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductPagedSearchResponseBuilder builder) { + ProductPagedSearchResponse productPagedSearchResponse = builder.buildUnchecked(); + Assertions.assertThat(productPagedSearchResponse).isInstanceOf(ProductPagedSearchResponse.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductPagedSearchResponse.builder().total(1L) }, + new Object[] { ProductPagedSearchResponse.builder().offset(3) }, + new Object[] { ProductPagedSearchResponse.builder().limit(7) }, + new Object[] { ProductPagedSearchResponse.builder() + .facets(new com.commercetools.api.models.product_search.ProductSearchFacetResultImpl()) }, + new Object[] { ProductPagedSearchResponse.builder() + .hits(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchHitImpl())) } }; + } + + @Test + public void total() { + ProductPagedSearchResponse value = ProductPagedSearchResponse.of(); + value.setTotal(1L); + Assertions.assertThat(value.getTotal()).isEqualTo(1L); + } + + @Test + public void offset() { + ProductPagedSearchResponse value = ProductPagedSearchResponse.of(); + value.setOffset(3); + Assertions.assertThat(value.getOffset()).isEqualTo(3); + } + + @Test + public void limit() { + ProductPagedSearchResponse value = ProductPagedSearchResponse.of(); + value.setLimit(7); + Assertions.assertThat(value.getLimit()).isEqualTo(7); + } + + @Test + public void facets() { + ProductPagedSearchResponse value = ProductPagedSearchResponse.of(); + value.setFacets(new com.commercetools.api.models.product_search.ProductSearchFacetResultImpl()); + Assertions.assertThat(value.getFacets()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchFacetResultImpl()); + } + + @Test + public void hits() { + ProductPagedSearchResponse value = ProductPagedSearchResponse.of(); + value.setHits( + Collections.singletonList(new com.commercetools.api.models.product_search.ProductSearchHitImpl())); + Assertions.assertThat(value.getHits()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.product_search.ProductSearchHitImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionTest.java new file mode 100644 index 00000000000..0202b8970b5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchAndExpressionTest.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchAndExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchAndExpressionBuilder builder) { + ProductSearchAndExpression productSearchAndExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchAndExpression).isInstanceOf(ProductSearchAndExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchAndExpression.builder() + .and(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryImpl())) } }; + } + + @Test + public void and() { + ProductSearchAndExpression value = ProductSearchAndExpression.of(); + value.setAnd( + Collections.singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryImpl())); + Assertions.assertThat(value.getAnd()) + .isEqualTo(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueTest.java new file mode 100644 index 00000000000..e5c1cb4863f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchAnyValueTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchAnyValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchAnyValueBuilder builder) { + ProductSearchAnyValue productSearchAnyValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchAnyValue).isInstanceOf(ProductSearchAnyValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchAnyValue.builder().value("value") }, + new Object[] { ProductSearchAnyValue.builder().language("language") }, + new Object[] { ProductSearchAnyValue.builder().caseInsensitive(true) } }; + } + + @Test + public void value() { + ProductSearchAnyValue value = ProductSearchAnyValue.of(); + value.setValue("value"); + Assertions.assertThat(value.getValue()).isEqualTo("value"); + } + + @Test + public void language() { + ProductSearchAnyValue value = ProductSearchAnyValue.of(); + value.setLanguage("language"); + Assertions.assertThat(value.getLanguage()).isEqualTo("language"); + } + + @Test + public void caseInsensitive() { + ProductSearchAnyValue value = ProductSearchAnyValue.of(); + value.setCaseInsensitive(true); + Assertions.assertThat(value.getCaseInsensitive()).isEqualTo(true); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpressionTest.java new file mode 100644 index 00000000000..8f755e52702 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchCompoundExpressionTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchCompoundExpressionTest { + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionTest.java new file mode 100644 index 00000000000..26bde02e99f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeExpressionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchDateRangeExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchDateRangeExpressionBuilder builder) { + ProductSearchDateRangeExpression productSearchDateRangeExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchDateRangeExpression).isInstanceOf(ProductSearchDateRangeExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchDateRangeExpression.builder() + .range(new com.commercetools.api.models.product_search.ProductSearchDateRangeValueImpl()) } }; + } + + @Test + public void range() { + ProductSearchDateRangeExpression value = ProductSearchDateRangeExpression.of(); + value.setRange(new com.commercetools.api.models.product_search.ProductSearchDateRangeValueImpl()); + Assertions.assertThat(value.getRange()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchDateRangeValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueTest.java new file mode 100644 index 00000000000..5213b33b80f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateRangeValueTest.java @@ -0,0 +1,63 @@ + +package com.commercetools.api.models.product_search; + +import java.time.LocalDate; + +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 ProductSearchDateRangeValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchDateRangeValueBuilder builder) { + ProductSearchDateRangeValue productSearchDateRangeValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchDateRangeValue).isInstanceOf(ProductSearchDateRangeValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ProductSearchDateRangeValue.builder().gte(LocalDate.parse("2023-06-01")) }, + new Object[] { ProductSearchDateRangeValue.builder().gt(LocalDate.parse("2023-06-01")) }, + new Object[] { ProductSearchDateRangeValue.builder().lte(LocalDate.parse("2023-06-01")) }, + new Object[] { ProductSearchDateRangeValue.builder().lt(LocalDate.parse("2023-06-01")) } }; + } + + @Test + public void gte() { + ProductSearchDateRangeValue value = ProductSearchDateRangeValue.of(); + value.setGte(LocalDate.parse("2023-06-01")); + Assertions.assertThat(value.getGte()).isEqualTo(LocalDate.parse("2023-06-01")); + } + + @Test + public void gt() { + ProductSearchDateRangeValue value = ProductSearchDateRangeValue.of(); + value.setGt(LocalDate.parse("2023-06-01")); + Assertions.assertThat(value.getGt()).isEqualTo(LocalDate.parse("2023-06-01")); + } + + @Test + public void lte() { + ProductSearchDateRangeValue value = ProductSearchDateRangeValue.of(); + value.setLte(LocalDate.parse("2023-06-01")); + Assertions.assertThat(value.getLte()).isEqualTo(LocalDate.parse("2023-06-01")); + } + + @Test + public void lt() { + ProductSearchDateRangeValue value = ProductSearchDateRangeValue.of(); + value.setLt(LocalDate.parse("2023-06-01")); + Assertions.assertThat(value.getLt()).isEqualTo(LocalDate.parse("2023-06-01")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionTest.java new file mode 100644 index 00000000000..444328d34ad --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeExpressionTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchDateTimeRangeExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchDateTimeRangeExpressionBuilder builder) { + ProductSearchDateTimeRangeExpression productSearchDateTimeRangeExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchDateTimeRangeExpression) + .isInstanceOf(ProductSearchDateTimeRangeExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchDateTimeRangeExpression.builder() + .range(new com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValueImpl()) } }; + } + + @Test + public void range() { + ProductSearchDateTimeRangeExpression value = ProductSearchDateTimeRangeExpression.of(); + value.setRange(new com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValueImpl()); + Assertions.assertThat(value.getRange()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchDateTimeRangeValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueTest.java new file mode 100644 index 00000000000..4f66ba60359 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchDateTimeRangeValueTest.java @@ -0,0 +1,66 @@ + +package com.commercetools.api.models.product_search; + +import java.time.ZonedDateTime; + +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 ProductSearchDateTimeRangeValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchDateTimeRangeValueBuilder builder) { + ProductSearchDateTimeRangeValue productSearchDateTimeRangeValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchDateTimeRangeValue).isInstanceOf(ProductSearchDateTimeRangeValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { + ProductSearchDateTimeRangeValue.builder().gte(ZonedDateTime.parse("2023-06-01T12:00Z")) }, + new Object[] { ProductSearchDateTimeRangeValue.builder().gt(ZonedDateTime.parse("2023-06-01T12:00Z")) }, + new Object[] { + ProductSearchDateTimeRangeValue.builder().lte(ZonedDateTime.parse("2023-06-01T12:00Z")) }, + new Object[] { + ProductSearchDateTimeRangeValue.builder().lt(ZonedDateTime.parse("2023-06-01T12:00Z")) } }; + } + + @Test + public void gte() { + ProductSearchDateTimeRangeValue value = ProductSearchDateTimeRangeValue.of(); + value.setGte(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getGte()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } + + @Test + public void gt() { + ProductSearchDateTimeRangeValue value = ProductSearchDateTimeRangeValue.of(); + value.setGt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getGt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } + + @Test + public void lte() { + ProductSearchDateTimeRangeValue value = ProductSearchDateTimeRangeValue.of(); + value.setLte(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getLte()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } + + @Test + public void lt() { + ProductSearchDateTimeRangeValue value = ProductSearchDateTimeRangeValue.of(); + value.setLt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getLt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseTest.java new file mode 100644 index 00000000000..d1164790c7f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchErrorResponseTest.java @@ -0,0 +1,57 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchErrorResponseTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchErrorResponseBuilder builder) { + ProductSearchErrorResponse productSearchErrorResponse = builder.buildUnchecked(); + Assertions.assertThat(productSearchErrorResponse).isInstanceOf(ProductSearchErrorResponse.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchErrorResponse.builder().statusCode(8) }, + new Object[] { ProductSearchErrorResponse.builder().message("message") }, + new Object[] { ProductSearchErrorResponse.builder() + .errors( + Collections.singletonList(new com.commercetools.api.models.error.ErrorObjectImpl())) } }; + } + + @Test + public void statusCode() { + ProductSearchErrorResponse value = ProductSearchErrorResponse.of(); + value.setStatusCode(8); + Assertions.assertThat(value.getStatusCode()).isEqualTo(8); + } + + @Test + public void message() { + ProductSearchErrorResponse value = ProductSearchErrorResponse.of(); + value.setMessage("message"); + Assertions.assertThat(value.getMessage()).isEqualTo("message"); + } + + @Test + public void errors() { + ProductSearchErrorResponse value = ProductSearchErrorResponse.of(); + value.setErrors(Collections.singletonList(new com.commercetools.api.models.error.ErrorObjectImpl())); + Assertions.assertThat(value.getErrors()) + .isEqualTo(Collections.singletonList(new com.commercetools.api.models.error.ErrorObjectImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionTest.java new file mode 100644 index 00000000000..252947e4fba --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExactExpressionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchExactExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchExactExpressionBuilder builder) { + ProductSearchExactExpression productSearchExactExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchExactExpression).isInstanceOf(ProductSearchExactExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchExactExpression.builder() + .exact(new com.commercetools.api.models.product_search.ProductSearchAnyValueImpl()) } }; + } + + @Test + public void exact() { + ProductSearchExactExpression value = ProductSearchExactExpression.of(); + value.setExact(new com.commercetools.api.models.product_search.ProductSearchAnyValueImpl()); + Assertions.assertThat(value.getExact()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchAnyValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionTest.java new file mode 100644 index 00000000000..c5b891e8b49 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsExpressionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchExistsExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchExistsExpressionBuilder builder) { + ProductSearchExistsExpression productSearchExistsExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchExistsExpression).isInstanceOf(ProductSearchExistsExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchExistsExpression.builder() + .exists(new com.commercetools.api.models.product_search.ProductSearchExistsValueImpl()) } }; + } + + @Test + public void exists() { + ProductSearchExistsExpression value = ProductSearchExistsExpression.of(); + value.setExists(new com.commercetools.api.models.product_search.ProductSearchExistsValueImpl()); + Assertions.assertThat(value.getExists()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchExistsValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueTest.java new file mode 100644 index 00000000000..262fec6ee84 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchExistsValueTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchExistsValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchExistsValueBuilder builder) { + ProductSearchExistsValue productSearchExistsValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchExistsValue).isInstanceOf(ProductSearchExistsValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchExistsValue.builder().language("language") } }; + } + + @Test + public void language() { + ProductSearchExistsValue value = ProductSearchExistsValue.of(); + value.setLanguage("language"); + Assertions.assertThat(value.getLanguage()).isEqualTo("language"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultTest.java new file mode 100644 index 00000000000..0d26969e0de --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetBucketResultTest.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetBucketResultTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetBucketResultBuilder builder) { + ProductSearchFacetBucketResult productSearchFacetBucketResult = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetBucketResult).isInstanceOf(ProductSearchFacetBucketResult.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetBucketResult.builder() + .buckets(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetResultBucketImpl())) } }; + } + + @Test + public void buckets() { + ProductSearchFacetBucketResult value = ProductSearchFacetBucketResult.of(); + value.setBuckets(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchFacetResultBucketImpl())); + Assertions.assertThat(value.getBuckets()) + .isEqualTo(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetResultBucketImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionTest.java new file mode 100644 index 00000000000..764a1daec5e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountExpressionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetCountExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetCountExpressionBuilder builder) { + ProductSearchFacetCountExpression productSearchFacetCountExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetCountExpression).isInstanceOf(ProductSearchFacetCountExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetCountExpression.builder() + .count(new com.commercetools.api.models.product_search.ProductSearchFacetCountValueImpl()) } }; + } + + @Test + public void count() { + ProductSearchFacetCountExpression value = ProductSearchFacetCountExpression.of(); + value.setCount(new com.commercetools.api.models.product_search.ProductSearchFacetCountValueImpl()); + Assertions.assertThat(value.getCount()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchFacetCountValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueTest.java new file mode 100644 index 00000000000..a6e2eadec5f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetCountValueTest.java @@ -0,0 +1,70 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetCountValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetCountValueBuilder builder) { + ProductSearchFacetCountValue productSearchFacetCountValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetCountValue).isInstanceOf(ProductSearchFacetCountValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetCountValue.builder().name("name") }, + new Object[] { + ProductSearchFacetCountValue.builder() + .scope(com.commercetools.api.models.product_search.ProductSearchFacetEnumScope + .findEnum("all")) }, + new Object[] { ProductSearchFacetCountValue.builder() + .filter(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()) }, + new Object[] { ProductSearchFacetCountValue.builder() + .level(com.commercetools.api.models.product_search.ProductSearchFacetEnumCount + .findEnum("products")) } }; + } + + @Test + public void name() { + ProductSearchFacetCountValue value = ProductSearchFacetCountValue.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } + + @Test + public void scope() { + ProductSearchFacetCountValue value = ProductSearchFacetCountValue.of(); + value.setScope(com.commercetools.api.models.product_search.ProductSearchFacetEnumScope.findEnum("all")); + Assertions.assertThat(value.getScope()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchFacetEnumScope.findEnum("all")); + } + + @Test + public void filter() { + ProductSearchFacetCountValue value = ProductSearchFacetCountValue.of(); + value.setFilter(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + Assertions.assertThat(value.getFilter()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + } + + @Test + public void level() { + ProductSearchFacetCountValue value = ProductSearchFacetCountValue.of(); + value.setLevel(com.commercetools.api.models.product_search.ProductSearchFacetEnumCount.findEnum("products")); + Assertions.assertThat(value.getLevel()) + .isEqualTo( + com.commercetools.api.models.product_search.ProductSearchFacetEnumCount.findEnum("products")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionTest.java new file mode 100644 index 00000000000..1598c61853f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctBucketSortExpressionTest.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetDistinctBucketSortExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetDistinctBucketSortExpressionBuilder builder) { + ProductSearchFacetDistinctBucketSortExpression productSearchFacetDistinctBucketSortExpression = builder + .buildUnchecked(); + Assertions.assertThat(productSearchFacetDistinctBucketSortExpression) + .isInstanceOf(ProductSearchFacetDistinctBucketSortExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ProductSearchFacetDistinctBucketSortExpression.builder() + .by(com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy + .findEnum("count")) }, + new Object[] { ProductSearchFacetDistinctBucketSortExpression.builder() + .order(com.commercetools.api.models.product_search.ProductSearchSortOrder.findEnum("asc")) } }; + } + + @Test + public void by() { + ProductSearchFacetDistinctBucketSortExpression value = ProductSearchFacetDistinctBucketSortExpression.of(); + value.setBy( + com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy.findEnum("count")); + Assertions.assertThat(value.getBy()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortBy + .findEnum("count")); + } + + @Test + public void order() { + ProductSearchFacetDistinctBucketSortExpression value = ProductSearchFacetDistinctBucketSortExpression.of(); + value.setOrder(com.commercetools.api.models.product_search.ProductSearchSortOrder.findEnum("asc")); + Assertions.assertThat(value.getOrder()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchSortOrder.findEnum("asc")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionTest.java new file mode 100644 index 00000000000..09227d1b8a1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctExpressionTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetDistinctExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetDistinctExpressionBuilder builder) { + ProductSearchFacetDistinctExpression productSearchFacetDistinctExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetDistinctExpression) + .isInstanceOf(ProductSearchFacetDistinctExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetDistinctExpression.builder() + .distinct(new com.commercetools.api.models.product_search.ProductSearchFacetDistinctValueImpl()) } }; + } + + @Test + public void distinct() { + ProductSearchFacetDistinctExpression value = ProductSearchFacetDistinctExpression.of(); + value.setDistinct(new com.commercetools.api.models.product_search.ProductSearchFacetDistinctValueImpl()); + Assertions.assertThat(value.getDistinct()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchFacetDistinctValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithTest.java new file mode 100644 index 00000000000..a455290c33e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctStartsWithTest.java @@ -0,0 +1,45 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetDistinctStartsWithTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetDistinctStartsWithBuilder builder) { + ProductSearchFacetDistinctStartsWith productSearchFacetDistinctStartsWith = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetDistinctStartsWith) + .isInstanceOf(ProductSearchFacetDistinctStartsWith.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetDistinctStartsWith.builder().value("value") }, + new Object[] { ProductSearchFacetDistinctStartsWith.builder().caseInsensitive(true) } }; + } + + @Test + public void value() { + ProductSearchFacetDistinctStartsWith value = ProductSearchFacetDistinctStartsWith.of(); + value.setValue("value"); + Assertions.assertThat(value.getValue()).isEqualTo("value"); + } + + @Test + public void caseInsensitive() { + ProductSearchFacetDistinctStartsWith value = ProductSearchFacetDistinctStartsWith.of(); + value.setCaseInsensitive(true); + Assertions.assertThat(value.getCaseInsensitive()).isEqualTo(true); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueTest.java new file mode 100644 index 00000000000..4b3b70257a3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetDistinctValueTest.java @@ -0,0 +1,149 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetDistinctValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetDistinctValueBuilder builder) { + ProductSearchFacetDistinctValue productSearchFacetDistinctValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetDistinctValue).isInstanceOf(ProductSearchFacetDistinctValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetDistinctValue.builder().name("name") }, + new Object[] { + ProductSearchFacetDistinctValue.builder() + .scope(com.commercetools.api.models.product_search.ProductSearchFacetEnumScope + .findEnum("all")) }, + new Object[] { ProductSearchFacetDistinctValue.builder() + .filter(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()) }, + new Object[] { ProductSearchFacetDistinctValue.builder() + .count(com.commercetools.api.models.product_search.ProductSearchFacetEnumCount + .findEnum("products")) }, + new Object[] { ProductSearchFacetDistinctValue.builder().field("field") }, + new Object[] { + ProductSearchFacetDistinctValue.builder().includes(Collections.singletonList("includes")) }, + new Object[] { ProductSearchFacetDistinctValue.builder() + .startsWith( + new com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWithImpl()) }, + new Object[] { ProductSearchFacetDistinctValue.builder() + .sort( + new com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpressionImpl()) }, + new Object[] { ProductSearchFacetDistinctValue.builder().size(9) }, + new Object[] { ProductSearchFacetDistinctValue.builder().language("language") }, + new Object[] { ProductSearchFacetDistinctValue.builder() + .attributeType(com.commercetools.api.models.product_search.ProductSearchAttributeType + .findEnum("boolean")) }, + new Object[] { ProductSearchFacetDistinctValue.builder().missing("missing") } }; + } + + @Test + public void name() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } + + @Test + public void scope() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setScope(com.commercetools.api.models.product_search.ProductSearchFacetEnumScope.findEnum("all")); + Assertions.assertThat(value.getScope()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchFacetEnumScope.findEnum("all")); + } + + @Test + public void filter() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setFilter(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + Assertions.assertThat(value.getFilter()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + } + + @Test + public void count() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setCount(com.commercetools.api.models.product_search.ProductSearchFacetEnumCount.findEnum("products")); + Assertions.assertThat(value.getCount()) + .isEqualTo( + com.commercetools.api.models.product_search.ProductSearchFacetEnumCount.findEnum("products")); + } + + @Test + public void field() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setField("field"); + Assertions.assertThat(value.getField()).isEqualTo("field"); + } + + @Test + public void includes() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setIncludes(Collections.singletonList("includes")); + Assertions.assertThat(value.getIncludes()).isEqualTo(Collections.singletonList("includes")); + } + + @Test + public void startsWith() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setStartsWith(new com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWithImpl()); + Assertions.assertThat(value.getStartsWith()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchFacetDistinctStartsWithImpl()); + } + + @Test + public void sort() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setSort( + new com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpressionImpl()); + Assertions.assertThat(value.getSort()) + .isEqualTo( + new com.commercetools.api.models.product_search.ProductSearchFacetDistinctBucketSortExpressionImpl()); + } + + @Test + public void size() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setSize(9); + Assertions.assertThat(value.getSize()).isEqualTo(9); + } + + @Test + public void language() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setLanguage("language"); + Assertions.assertThat(value.getLanguage()).isEqualTo("language"); + } + + @Test + public void attributeType() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setAttributeType( + com.commercetools.api.models.product_search.ProductSearchAttributeType.findEnum("boolean")); + Assertions.assertThat(value.getAttributeType()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchAttributeType.findEnum("boolean")); + } + + @Test + public void missing() { + ProductSearchFacetDistinctValue value = ProductSearchFacetDistinctValue.of(); + value.setMissing("missing"); + Assertions.assertThat(value.getMissing()).isEqualTo("missing"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpressionTest.java new file mode 100644 index 00000000000..27b37cafce4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetExpressionTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetExpressionTest { + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionTest.java new file mode 100644 index 00000000000..d1f5f605bda --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesExpressionTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetRangesExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetRangesExpressionBuilder builder) { + ProductSearchFacetRangesExpression productSearchFacetRangesExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetRangesExpression) + .isInstanceOf(ProductSearchFacetRangesExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetRangesExpression.builder() + .ranges(new com.commercetools.api.models.product_search.ProductSearchFacetRangesValueImpl()) } }; + } + + @Test + public void ranges() { + ProductSearchFacetRangesExpression value = ProductSearchFacetRangesExpression.of(); + value.setRanges(new com.commercetools.api.models.product_search.ProductSearchFacetRangesValueImpl()); + Assertions.assertThat(value.getRanges()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchFacetRangesValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeTest.java new file mode 100644 index 00000000000..27bb4c2f424 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesFacetRangeTest.java @@ -0,0 +1,53 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetRangesFacetRangeTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetRangesFacetRangeBuilder builder) { + ProductSearchFacetRangesFacetRange productSearchFacetRangesFacetRange = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetRangesFacetRange) + .isInstanceOf(ProductSearchFacetRangesFacetRange.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetRangesFacetRange.builder().from("from") }, + new Object[] { ProductSearchFacetRangesFacetRange.builder().to("to") }, + new Object[] { ProductSearchFacetRangesFacetRange.builder().key("key") } }; + } + + @Test + public void from() { + ProductSearchFacetRangesFacetRange value = ProductSearchFacetRangesFacetRange.of(); + value.setFrom("from"); + Assertions.assertThat(value.getFrom()).isEqualTo("from"); + } + + @Test + public void to() { + ProductSearchFacetRangesFacetRange value = ProductSearchFacetRangesFacetRange.of(); + value.setTo("to"); + Assertions.assertThat(value.getTo()).isEqualTo("to"); + } + + @Test + public void key() { + ProductSearchFacetRangesFacetRange value = ProductSearchFacetRangesFacetRange.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueTest.java new file mode 100644 index 00000000000..365b5f2ccad --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetRangesValueTest.java @@ -0,0 +1,113 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetRangesValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetRangesValueBuilder builder) { + ProductSearchFacetRangesValue productSearchFacetRangesValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetRangesValue).isInstanceOf(ProductSearchFacetRangesValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetRangesValue.builder().name("name") }, + new Object[] { + ProductSearchFacetRangesValue.builder() + .scope(com.commercetools.api.models.product_search.ProductSearchFacetEnumScope + .findEnum("all")) }, + new Object[] { ProductSearchFacetRangesValue.builder() + .filter(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()) }, + new Object[] { ProductSearchFacetRangesValue.builder() + .count(com.commercetools.api.models.product_search.ProductSearchFacetEnumCount + .findEnum("products")) }, + new Object[] { ProductSearchFacetRangesValue.builder().field("field") }, + new Object[] { ProductSearchFacetRangesValue.builder() + .ranges(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRangeImpl())) }, + new Object[] { ProductSearchFacetRangesValue.builder().language("language") }, + new Object[] { ProductSearchFacetRangesValue.builder() + .attributeType(com.commercetools.api.models.product_search.ProductSearchAttributeType + .findEnum("boolean")) } }; + } + + @Test + public void name() { + ProductSearchFacetRangesValue value = ProductSearchFacetRangesValue.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } + + @Test + public void scope() { + ProductSearchFacetRangesValue value = ProductSearchFacetRangesValue.of(); + value.setScope(com.commercetools.api.models.product_search.ProductSearchFacetEnumScope.findEnum("all")); + Assertions.assertThat(value.getScope()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchFacetEnumScope.findEnum("all")); + } + + @Test + public void filter() { + ProductSearchFacetRangesValue value = ProductSearchFacetRangesValue.of(); + value.setFilter(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + Assertions.assertThat(value.getFilter()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + } + + @Test + public void count() { + ProductSearchFacetRangesValue value = ProductSearchFacetRangesValue.of(); + value.setCount(com.commercetools.api.models.product_search.ProductSearchFacetEnumCount.findEnum("products")); + Assertions.assertThat(value.getCount()) + .isEqualTo( + com.commercetools.api.models.product_search.ProductSearchFacetEnumCount.findEnum("products")); + } + + @Test + public void field() { + ProductSearchFacetRangesValue value = ProductSearchFacetRangesValue.of(); + value.setField("field"); + Assertions.assertThat(value.getField()).isEqualTo("field"); + } + + @Test + public void ranges() { + ProductSearchFacetRangesValue value = ProductSearchFacetRangesValue.of(); + value.setRanges(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRangeImpl())); + Assertions.assertThat(value.getRanges()) + .isEqualTo(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetRangesFacetRangeImpl())); + } + + @Test + public void language() { + ProductSearchFacetRangesValue value = ProductSearchFacetRangesValue.of(); + value.setLanguage("language"); + Assertions.assertThat(value.getLanguage()).isEqualTo("language"); + } + + @Test + public void attributeType() { + ProductSearchFacetRangesValue value = ProductSearchFacetRangesValue.of(); + value.setAttributeType( + com.commercetools.api.models.product_search.ProductSearchAttributeType.findEnum("boolean")); + Assertions.assertThat(value.getAttributeType()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchAttributeType.findEnum("boolean")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketTest.java new file mode 100644 index 00000000000..76630b07225 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultBucketTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetResultBucketTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetResultBucketBuilder builder) { + ProductSearchFacetResultBucket productSearchFacetResultBucket = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetResultBucket).isInstanceOf(ProductSearchFacetResultBucket.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetResultBucket.builder().key("key") }, + new Object[] { ProductSearchFacetResultBucket.builder().count(2) } }; + } + + @Test + public void key() { + ProductSearchFacetResultBucket value = ProductSearchFacetResultBucket.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } + + @Test + public void count() { + ProductSearchFacetResultBucket value = ProductSearchFacetResultBucket.of(); + value.setCount(2); + Assertions.assertThat(value.getCount()).isEqualTo(2); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountTest.java new file mode 100644 index 00000000000..8153d897cf5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultCountTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetResultCountTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetResultCountBuilder builder) { + ProductSearchFacetResultCount productSearchFacetResultCount = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetResultCount).isInstanceOf(ProductSearchFacetResultCount.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetResultCount.builder().value(6L) } }; + } + + @Test + public void value() { + ProductSearchFacetResultCount value = ProductSearchFacetResultCount.of(); + value.setValue(6L); + Assertions.assertThat(value.getValue()).isEqualTo(6L); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionTest.java new file mode 100644 index 00000000000..1308c427aac --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultExpressionTest.java @@ -0,0 +1,37 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetResultExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetResultExpressionBuilder builder) { + ProductSearchFacetResultExpression productSearchFacetResultExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetResultExpression) + .isInstanceOf(ProductSearchFacetResultExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetResultExpression.builder().name("name") } }; + } + + @Test + public void name() { + ProductSearchFacetResultExpression value = ProductSearchFacetResultExpression.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultTest.java new file mode 100644 index 00000000000..2499dafbced --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFacetResultTest.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFacetResultTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFacetResultBuilder builder) { + ProductSearchFacetResult productSearchFacetResult = builder.buildUnchecked(); + Assertions.assertThat(productSearchFacetResult).isInstanceOf(ProductSearchFacetResult.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFacetResult.builder() + .results(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetResultExpressionImpl())) } }; + } + + @Test + public void results() { + ProductSearchFacetResult value = ProductSearchFacetResult.of(); + value.setResults(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetResultExpressionImpl())); + Assertions.assertThat(value.getResults()) + .isEqualTo(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetResultExpressionImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionTest.java new file mode 100644 index 00000000000..7ee63b4e43a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFilterExpressionTest.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFilterExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFilterExpressionBuilder builder) { + ProductSearchFilterExpression productSearchFilterExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchFilterExpression).isInstanceOf(ProductSearchFilterExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFilterExpression.builder() + .filter(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchQueryExpressionImpl())) } }; + } + + @Test + public void filter() { + ProductSearchFilterExpression value = ProductSearchFilterExpression.of(); + value.setFilter(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryExpressionImpl())); + Assertions.assertThat(value.getFilter()) + .isEqualTo(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchQueryExpressionImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionTest.java new file mode 100644 index 00000000000..2cd3f767e1f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextExpressionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFullTextExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFullTextExpressionBuilder builder) { + ProductSearchFullTextExpression productSearchFullTextExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchFullTextExpression).isInstanceOf(ProductSearchFullTextExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFullTextExpression.builder() + .fullText(new com.commercetools.api.models.product_search.ProductSearchFullTextValueImpl()) } }; + } + + @Test + public void fullText() { + ProductSearchFullTextExpression value = ProductSearchFullTextExpression.of(); + value.setFullText(new com.commercetools.api.models.product_search.ProductSearchFullTextValueImpl()); + Assertions.assertThat(value.getFullText()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchFullTextValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueTest.java new file mode 100644 index 00000000000..412724f15de --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchFullTextValueTest.java @@ -0,0 +1,55 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchFullTextValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchFullTextValueBuilder builder) { + ProductSearchFullTextValue productSearchFullTextValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchFullTextValue).isInstanceOf(ProductSearchFullTextValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchFullTextValue.builder().value("value") }, + new Object[] { ProductSearchFullTextValue.builder().language("language") }, + new Object[] { ProductSearchFullTextValue.builder() + .mustMatch( + com.commercetools.api.models.product_search.ProductSearchMatchType.findEnum("any")) } }; + } + + @Test + public void value() { + ProductSearchFullTextValue value = ProductSearchFullTextValue.of(); + value.setValue("value"); + Assertions.assertThat(value.getValue()).isEqualTo("value"); + } + + @Test + public void language() { + ProductSearchFullTextValue value = ProductSearchFullTextValue.of(); + value.setLanguage("language"); + Assertions.assertThat(value.getLanguage()).isEqualTo("language"); + } + + @Test + public void mustMatch() { + ProductSearchFullTextValue value = ProductSearchFullTextValue.of(); + value.setMustMatch(com.commercetools.api.models.product_search.ProductSearchMatchType.findEnum("any")); + Assertions.assertThat(value.getMustMatch()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchMatchType.findEnum("any")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchHitTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchHitTest.java new file mode 100644 index 00000000000..9bb7198fa60 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchHitTest.java @@ -0,0 +1,61 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchHitTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchHitBuilder builder) { + ProductSearchHit productSearchHit = builder.buildUnchecked(); + Assertions.assertThat(productSearchHit).isInstanceOf(ProductSearchHit.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchHit.builder().id("id") }, + new Object[] { ProductSearchHit.builder() + .productProjection(new com.commercetools.api.models.product.ProductProjectionImpl()) }, + new Object[] { ProductSearchHit.builder() + .matchingVariants(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchMatchingVariantImpl())) } }; + } + + @Test + public void id() { + ProductSearchHit value = ProductSearchHit.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void productProjection() { + ProductSearchHit value = ProductSearchHit.of(); + value.setProductProjection(new com.commercetools.api.models.product.ProductProjectionImpl()); + Assertions.assertThat(value.getProductProjection()) + .isEqualTo(new com.commercetools.api.models.product.ProductProjectionImpl()); + } + + @Test + public void matchingVariants() { + ProductSearchHit value = ProductSearchHit.of(); + value.setMatchingVariants(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchMatchingVariantImpl())); + Assertions.assertThat(value.getMatchingVariants()) + .isEqualTo(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchMatchingVariantImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionTest.java new file mode 100644 index 00000000000..d337716d0fc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeExpressionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchLongRangeExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchLongRangeExpressionBuilder builder) { + ProductSearchLongRangeExpression productSearchLongRangeExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchLongRangeExpression).isInstanceOf(ProductSearchLongRangeExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchLongRangeExpression.builder() + .range(new com.commercetools.api.models.product_search.ProductSearchLongRangeValueImpl()) } }; + } + + @Test + public void range() { + ProductSearchLongRangeExpression value = ProductSearchLongRangeExpression.of(); + value.setRange(new com.commercetools.api.models.product_search.ProductSearchLongRangeValueImpl()); + Assertions.assertThat(value.getRange()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchLongRangeValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueTest.java new file mode 100644 index 00000000000..53874298aec --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchLongRangeValueTest.java @@ -0,0 +1,60 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchLongRangeValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchLongRangeValueBuilder builder) { + ProductSearchLongRangeValue productSearchLongRangeValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchLongRangeValue).isInstanceOf(ProductSearchLongRangeValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchLongRangeValue.builder().gte(8L) }, + new Object[] { ProductSearchLongRangeValue.builder().gt(6L) }, + new Object[] { ProductSearchLongRangeValue.builder().lte(1L) }, + new Object[] { ProductSearchLongRangeValue.builder().lt(2L) } }; + } + + @Test + public void gte() { + ProductSearchLongRangeValue value = ProductSearchLongRangeValue.of(); + value.setGte(8L); + Assertions.assertThat(value.getGte()).isEqualTo(8L); + } + + @Test + public void gt() { + ProductSearchLongRangeValue value = ProductSearchLongRangeValue.of(); + value.setGt(6L); + Assertions.assertThat(value.getGt()).isEqualTo(6L); + } + + @Test + public void lte() { + ProductSearchLongRangeValue value = ProductSearchLongRangeValue.of(); + value.setLte(1L); + Assertions.assertThat(value.getLte()).isEqualTo(1L); + } + + @Test + public void lt() { + ProductSearchLongRangeValue value = ProductSearchLongRangeValue.of(); + value.setLt(2L); + Assertions.assertThat(value.getLt()).isEqualTo(2L); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantTest.java new file mode 100644 index 00000000000..9356f7895f2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchMatchingVariantTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchMatchingVariantTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchMatchingVariantBuilder builder) { + ProductSearchMatchingVariant productSearchMatchingVariant = builder.buildUnchecked(); + Assertions.assertThat(productSearchMatchingVariant).isInstanceOf(ProductSearchMatchingVariant.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchMatchingVariant.builder().id(2) }, + new Object[] { ProductSearchMatchingVariant.builder().sku("sku") } }; + } + + @Test + public void id() { + ProductSearchMatchingVariant value = ProductSearchMatchingVariant.of(); + value.setId(2); + Assertions.assertThat(value.getId()).isEqualTo(2); + } + + @Test + public void sku() { + ProductSearchMatchingVariant value = ProductSearchMatchingVariant.of(); + value.setSku("sku"); + Assertions.assertThat(value.getSku()).isEqualTo("sku"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionTest.java new file mode 100644 index 00000000000..2c34e645ebe --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNotExpressionTest.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchNotExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchNotExpressionBuilder builder) { + ProductSearchNotExpression productSearchNotExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchNotExpression).isInstanceOf(ProductSearchNotExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchNotExpression.builder() + .not(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryImpl())) } }; + } + + @Test + public void not() { + ProductSearchNotExpression value = ProductSearchNotExpression.of(); + value.setNot( + Collections.singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryImpl())); + Assertions.assertThat(value.getNot()) + .isEqualTo(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionTest.java new file mode 100644 index 00000000000..8627e060ad3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeExpressionTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchNumberRangeExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchNumberRangeExpressionBuilder builder) { + ProductSearchNumberRangeExpression productSearchNumberRangeExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchNumberRangeExpression) + .isInstanceOf(ProductSearchNumberRangeExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchNumberRangeExpression.builder() + .range(new com.commercetools.api.models.product_search.ProductSearchNumberRangeValueImpl()) } }; + } + + @Test + public void range() { + ProductSearchNumberRangeExpression value = ProductSearchNumberRangeExpression.of(); + value.setRange(new com.commercetools.api.models.product_search.ProductSearchNumberRangeValueImpl()); + Assertions.assertThat(value.getRange()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchNumberRangeValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueTest.java new file mode 100644 index 00000000000..8f312cdda20 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchNumberRangeValueTest.java @@ -0,0 +1,60 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchNumberRangeValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchNumberRangeValueBuilder builder) { + ProductSearchNumberRangeValue productSearchNumberRangeValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchNumberRangeValue).isInstanceOf(ProductSearchNumberRangeValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchNumberRangeValue.builder().gte(0.8498576) }, + new Object[] { ProductSearchNumberRangeValue.builder().gt(0.15980393) }, + new Object[] { ProductSearchNumberRangeValue.builder().lte(0.26076245) }, + new Object[] { ProductSearchNumberRangeValue.builder().lt(0.5197181) } }; + } + + @Test + public void gte() { + ProductSearchNumberRangeValue value = ProductSearchNumberRangeValue.of(); + value.setGte(0.8498576); + Assertions.assertThat(value.getGte()).isEqualTo(0.8498576); + } + + @Test + public void gt() { + ProductSearchNumberRangeValue value = ProductSearchNumberRangeValue.of(); + value.setGt(0.15980393); + Assertions.assertThat(value.getGt()).isEqualTo(0.15980393); + } + + @Test + public void lte() { + ProductSearchNumberRangeValue value = ProductSearchNumberRangeValue.of(); + value.setLte(0.26076245); + Assertions.assertThat(value.getLte()).isEqualTo(0.26076245); + } + + @Test + public void lt() { + ProductSearchNumberRangeValue value = ProductSearchNumberRangeValue.of(); + value.setLt(0.5197181); + Assertions.assertThat(value.getLt()).isEqualTo(0.5197181); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionTest.java new file mode 100644 index 00000000000..0b936aca9e5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchOrExpressionTest.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchOrExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchOrExpressionBuilder builder) { + ProductSearchOrExpression productSearchOrExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchOrExpression).isInstanceOf(ProductSearchOrExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchOrExpression.builder() + .or(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryImpl())) } }; + } + + @Test + public void or() { + ProductSearchOrExpression value = ProductSearchOrExpression.of(); + value.setOr( + Collections.singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryImpl())); + Assertions.assertThat(value.getOr()) + .isEqualTo(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchQueryImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionTest.java new file mode 100644 index 00000000000..cf3bfd8de35 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchPrefixExpressionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchPrefixExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchPrefixExpressionBuilder builder) { + ProductSearchPrefixExpression productSearchPrefixExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchPrefixExpression).isInstanceOf(ProductSearchPrefixExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchPrefixExpression.builder() + .prefix(new com.commercetools.api.models.product_search.ProductSearchAnyValueImpl()) } }; + } + + @Test + public void prefix() { + ProductSearchPrefixExpression value = ProductSearchPrefixExpression.of(); + value.setPrefix(new com.commercetools.api.models.product_search.ProductSearchAnyValueImpl()); + Assertions.assertThat(value.getPrefix()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchAnyValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsTest.java new file mode 100644 index 00000000000..cf3e94abdc2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsTest.java @@ -0,0 +1,95 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchProjectionParamsTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchProjectionParamsBuilder builder) { + ProductSearchProjectionParams productSearchProjectionParams = builder.buildUnchecked(); + Assertions.assertThat(productSearchProjectionParams).isInstanceOf(ProductSearchProjectionParams.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchProjectionParams.builder().expand("expand") }, + new Object[] { ProductSearchProjectionParams.builder().staged(true) }, + new Object[] { ProductSearchProjectionParams.builder().priceCurrency("priceCurrency") }, + new Object[] { ProductSearchProjectionParams.builder().priceCountry("priceCountry") }, + new Object[] { ProductSearchProjectionParams.builder().priceCustomerGroup("priceCustomerGroup") }, + new Object[] { ProductSearchProjectionParams.builder().priceChannel("priceChannel") }, + new Object[] { ProductSearchProjectionParams.builder() + .localeProjection(Collections.singletonList("localeProjection")) }, + new Object[] { ProductSearchProjectionParams.builder().storeProjection("storeProjection") } }; + } + + @Test + public void expand() { + ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); + value.setExpand("expand"); + Assertions.assertThat(value.getExpand()).isEqualTo("expand"); + } + + @Test + public void staged() { + ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); + value.setStaged(true); + Assertions.assertThat(value.getStaged()).isEqualTo(true); + } + + @Test + public void priceCurrency() { + ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); + value.setPriceCurrency("priceCurrency"); + Assertions.assertThat(value.getPriceCurrency()).isEqualTo("priceCurrency"); + } + + @Test + public void priceCountry() { + ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); + value.setPriceCountry("priceCountry"); + Assertions.assertThat(value.getPriceCountry()).isEqualTo("priceCountry"); + } + + @Test + public void priceCustomerGroup() { + ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); + value.setPriceCustomerGroup("priceCustomerGroup"); + Assertions.assertThat(value.getPriceCustomerGroup()).isEqualTo("priceCustomerGroup"); + } + + @Test + public void priceChannel() { + ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); + value.setPriceChannel("priceChannel"); + Assertions.assertThat(value.getPriceChannel()).isEqualTo("priceChannel"); + } + + @Test + public void localeProjection() { + ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); + value.setLocaleProjection(Collections.singletonList("localeProjection")); + Assertions.assertThat(value.getLocaleProjection()).isEqualTo(Collections.singletonList("localeProjection")); + } + + @Test + public void storeProjection() { + ProductSearchProjectionParams value = ProductSearchProjectionParams.of(); + value.setStoreProjection("storeProjection"); + Assertions.assertThat(value.getStoreProjection()).isEqualTo("storeProjection"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionTest.java new file mode 100644 index 00000000000..eb0a37f5afb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchQueryExpressionTest { + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueTest.java new file mode 100644 index 00000000000..c1662534251 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryExpressionValueTest.java @@ -0,0 +1,56 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchQueryExpressionValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchQueryExpressionValueBuilder builder) { + ProductSearchQueryExpressionValue productSearchQueryExpressionValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchQueryExpressionValue).isInstanceOf(ProductSearchQueryExpressionValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchQueryExpressionValue.builder().field("field") }, + new Object[] { ProductSearchQueryExpressionValue.builder().boost(0.8968434466791833) }, + new Object[] { ProductSearchQueryExpressionValue.builder() + .attributeType(com.commercetools.api.models.product_search.ProductSearchAttributeType + .findEnum("boolean")) } }; + } + + @Test + public void field() { + ProductSearchQueryExpressionValue value = ProductSearchQueryExpressionValue.of(); + value.setField("field"); + Assertions.assertThat(value.getField()).isEqualTo("field"); + } + + @Test + public void boost() { + ProductSearchQueryExpressionValue value = ProductSearchQueryExpressionValue.of(); + value.setBoost(0.8968434466791833); + Assertions.assertThat(value.getBoost()).isEqualTo(0.8968434466791833); + } + + @Test + public void attributeType() { + ProductSearchQueryExpressionValue value = ProductSearchQueryExpressionValue.of(); + value.setAttributeType( + com.commercetools.api.models.product_search.ProductSearchAttributeType.findEnum("boolean")); + Assertions.assertThat(value.getAttributeType()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchAttributeType.findEnum("boolean")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryTest.java new file mode 100644 index 00000000000..5fb010daad0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchQueryTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchQueryTest { + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestTest.java new file mode 100644 index 00000000000..f04128c98c4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchRequestTest.java @@ -0,0 +1,112 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchRequestTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchRequestBuilder builder) { + ProductSearchRequest productSearchRequest = builder.buildUnchecked(); + Assertions.assertThat(productSearchRequest).isInstanceOf(ProductSearchRequest.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ProductSearchRequest.builder() + .query(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()) }, + new Object[] { ProductSearchRequest.builder() + .postFilter(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()) }, + new Object[] { ProductSearchRequest.builder() + .sort(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchSortingImpl())) }, + new Object[] { ProductSearchRequest.builder().limit(7) }, + new Object[] { ProductSearchRequest.builder().offset(3) }, + new Object[] { ProductSearchRequest.builder().markMatchingVariants(true) }, + new Object[] { ProductSearchRequest.builder() + .projection( + new com.commercetools.api.models.product_search.ProductSearchProjectionParamsImpl()) }, + new Object[] { ProductSearchRequest.builder() + .facets(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetExpressionImpl())) } }; + } + + @Test + public void query() { + ProductSearchRequest value = ProductSearchRequest.of(); + value.setQuery(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + Assertions.assertThat(value.getQuery()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + } + + @Test + public void postFilter() { + ProductSearchRequest value = ProductSearchRequest.of(); + value.setPostFilter(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + Assertions.assertThat(value.getPostFilter()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchQueryImpl()); + } + + @Test + public void sort() { + ProductSearchRequest value = ProductSearchRequest.of(); + value.setSort( + Collections.singletonList(new com.commercetools.api.models.product_search.ProductSearchSortingImpl())); + Assertions.assertThat(value.getSort()) + .isEqualTo(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchSortingImpl())); + } + + @Test + public void limit() { + ProductSearchRequest value = ProductSearchRequest.of(); + value.setLimit(7); + Assertions.assertThat(value.getLimit()).isEqualTo(7); + } + + @Test + public void offset() { + ProductSearchRequest value = ProductSearchRequest.of(); + value.setOffset(3); + Assertions.assertThat(value.getOffset()).isEqualTo(3); + } + + @Test + public void markMatchingVariants() { + ProductSearchRequest value = ProductSearchRequest.of(); + value.setMarkMatchingVariants(true); + Assertions.assertThat(value.getMarkMatchingVariants()).isEqualTo(true); + } + + @Test + public void projection() { + ProductSearchRequest value = ProductSearchRequest.of(); + value.setProjection(new com.commercetools.api.models.product_search.ProductSearchProjectionParamsImpl()); + Assertions.assertThat(value.getProjection()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchProjectionParamsImpl()); + } + + @Test + public void facets() { + ProductSearchRequest value = ProductSearchRequest.of(); + value.setFacets(Collections + .singletonList(new com.commercetools.api.models.product_search.ProductSearchFacetExpressionImpl())); + Assertions.assertThat(value.getFacets()) + .isEqualTo(Collections.singletonList( + new com.commercetools.api.models.product_search.ProductSearchFacetExpressionImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingTest.java new file mode 100644 index 00000000000..4d9448e4e73 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSortingTest.java @@ -0,0 +1,94 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchSortingTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchSortingBuilder builder) { + ProductSearchSorting productSearchSorting = builder.buildUnchecked(); + Assertions.assertThat(productSearchSorting).isInstanceOf(ProductSearchSorting.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchSorting.builder().field("field") }, + new Object[] { ProductSearchSorting.builder().language("language") }, + new Object[] { ProductSearchSorting.builder() + .order(com.commercetools.api.models.product_search.ProductSearchSortOrder.findEnum("asc")) }, + new Object[] { ProductSearchSorting.builder() + .mode(com.commercetools.api.models.product_search.ProductSearchSortMode.findEnum("min")) }, + new Object[] { ProductSearchSorting.builder() + .attributeType(com.commercetools.api.models.product_search.ProductSearchAttributeType + .findEnum("boolean")) }, + new Object[] { ProductSearchSorting.builder() + .filter(new com.commercetools.api.models.product_search.ProductSearchQueryExpressionImpl()) }, + new Object[] { ProductSearchSorting.builder().internal(true) } }; + } + + @Test + public void field() { + ProductSearchSorting value = ProductSearchSorting.of(); + value.setField("field"); + Assertions.assertThat(value.getField()).isEqualTo("field"); + } + + @Test + public void language() { + ProductSearchSorting value = ProductSearchSorting.of(); + value.setLanguage("language"); + Assertions.assertThat(value.getLanguage()).isEqualTo("language"); + } + + @Test + public void order() { + ProductSearchSorting value = ProductSearchSorting.of(); + value.setOrder(com.commercetools.api.models.product_search.ProductSearchSortOrder.findEnum("asc")); + Assertions.assertThat(value.getOrder()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchSortOrder.findEnum("asc")); + } + + @Test + public void mode() { + ProductSearchSorting value = ProductSearchSorting.of(); + value.setMode(com.commercetools.api.models.product_search.ProductSearchSortMode.findEnum("min")); + Assertions.assertThat(value.getMode()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchSortMode.findEnum("min")); + } + + @Test + public void attributeType() { + ProductSearchSorting value = ProductSearchSorting.of(); + value.setAttributeType( + com.commercetools.api.models.product_search.ProductSearchAttributeType.findEnum("boolean")); + Assertions.assertThat(value.getAttributeType()) + .isEqualTo(com.commercetools.api.models.product_search.ProductSearchAttributeType.findEnum("boolean")); + } + + @Test + public void filter() { + ProductSearchSorting value = ProductSearchSorting.of(); + value.setFilter(new com.commercetools.api.models.product_search.ProductSearchQueryExpressionImpl()); + Assertions.assertThat(value.getFilter()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchQueryExpressionImpl()); + } + + @Test + public void internal() { + ProductSearchSorting value = ProductSearchSorting.of(); + value.setInternal(true); + Assertions.assertThat(value.getInternal()).isEqualTo(true); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionTest.java new file mode 100644 index 00000000000..f3e6257ebcd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionTest.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchSuggestionCompletionExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchSuggestionCompletionExpressionBuilder builder) { + ProductSearchSuggestionCompletionExpression productSearchSuggestionCompletionExpression = builder + .buildUnchecked(); + Assertions.assertThat(productSearchSuggestionCompletionExpression) + .isInstanceOf(ProductSearchSuggestionCompletionExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchSuggestionCompletionExpression.builder() + .completion( + new com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValueImpl()) } }; + } + + @Test + public void completion() { + ProductSearchSuggestionCompletionExpression value = ProductSearchSuggestionCompletionExpression.of(); + value.setCompletion( + new com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValueImpl()); + Assertions.assertThat(value.getCompletion()) + .isEqualTo( + new com.commercetools.api.models.product_search.ProductSearchSuggestionCompletionExpressionValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueTest.java new file mode 100644 index 00000000000..9170b76fcc4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionCompletionExpressionValueTest.java @@ -0,0 +1,55 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchSuggestionCompletionExpressionValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchSuggestionCompletionExpressionValueBuilder builder) { + ProductSearchSuggestionCompletionExpressionValue productSearchSuggestionCompletionExpressionValue = builder + .buildUnchecked(); + Assertions.assertThat(productSearchSuggestionCompletionExpressionValue) + .isInstanceOf(ProductSearchSuggestionCompletionExpressionValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ProductSearchSuggestionCompletionExpressionValue.builder().name("name") }, + new Object[] { ProductSearchSuggestionCompletionExpressionValue.builder().field("field") }, + new Object[] { ProductSearchSuggestionCompletionExpressionValue.builder().prefix("prefix") } }; + } + + @Test + public void name() { + ProductSearchSuggestionCompletionExpressionValue value = ProductSearchSuggestionCompletionExpressionValue.of(); + value.setName("name"); + Assertions.assertThat(value.getName()).isEqualTo("name"); + } + + @Test + public void field() { + ProductSearchSuggestionCompletionExpressionValue value = ProductSearchSuggestionCompletionExpressionValue.of(); + value.setField("field"); + Assertions.assertThat(value.getField()).isEqualTo("field"); + } + + @Test + public void prefix() { + ProductSearchSuggestionCompletionExpressionValue value = ProductSearchSuggestionCompletionExpressionValue.of(); + value.setPrefix("prefix"); + Assertions.assertThat(value.getPrefix()).isEqualTo("prefix"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionTest.java new file mode 100644 index 00000000000..265394295b2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchSuggestionExpressionTest { + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValueTest.java new file mode 100644 index 00000000000..052db7af0fe --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchSuggestionExpressionValueTest.java @@ -0,0 +1,13 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchSuggestionExpressionValueTest { + +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionTest.java new file mode 100644 index 00000000000..b80f269b9df --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeExpressionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchTimeRangeExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchTimeRangeExpressionBuilder builder) { + ProductSearchTimeRangeExpression productSearchTimeRangeExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchTimeRangeExpression).isInstanceOf(ProductSearchTimeRangeExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchTimeRangeExpression.builder() + .range(new com.commercetools.api.models.product_search.ProductSearchTimeRangeValueImpl()) } }; + } + + @Test + public void range() { + ProductSearchTimeRangeExpression value = ProductSearchTimeRangeExpression.of(); + value.setRange(new com.commercetools.api.models.product_search.ProductSearchTimeRangeValueImpl()); + Assertions.assertThat(value.getRange()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchTimeRangeValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueTest.java new file mode 100644 index 00000000000..62ba0f18e96 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchTimeRangeValueTest.java @@ -0,0 +1,62 @@ + +package com.commercetools.api.models.product_search; + +import java.time.LocalTime; + +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 ProductSearchTimeRangeValueTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchTimeRangeValueBuilder builder) { + ProductSearchTimeRangeValue productSearchTimeRangeValue = builder.buildUnchecked(); + Assertions.assertThat(productSearchTimeRangeValue).isInstanceOf(ProductSearchTimeRangeValue.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchTimeRangeValue.builder().gte(LocalTime.parse("12:00")) }, + new Object[] { ProductSearchTimeRangeValue.builder().gt(LocalTime.parse("12:00")) }, + new Object[] { ProductSearchTimeRangeValue.builder().lte(LocalTime.parse("12:00")) }, + new Object[] { ProductSearchTimeRangeValue.builder().lt(LocalTime.parse("12:00")) } }; + } + + @Test + public void gte() { + ProductSearchTimeRangeValue value = ProductSearchTimeRangeValue.of(); + value.setGte(LocalTime.parse("12:00")); + Assertions.assertThat(value.getGte()).isEqualTo(LocalTime.parse("12:00")); + } + + @Test + public void gt() { + ProductSearchTimeRangeValue value = ProductSearchTimeRangeValue.of(); + value.setGt(LocalTime.parse("12:00")); + Assertions.assertThat(value.getGt()).isEqualTo(LocalTime.parse("12:00")); + } + + @Test + public void lte() { + ProductSearchTimeRangeValue value = ProductSearchTimeRangeValue.of(); + value.setLte(LocalTime.parse("12:00")); + Assertions.assertThat(value.getLte()).isEqualTo(LocalTime.parse("12:00")); + } + + @Test + public void lt() { + ProductSearchTimeRangeValue value = ProductSearchTimeRangeValue.of(); + value.setLt(LocalTime.parse("12:00")); + Assertions.assertThat(value.getLt()).isEqualTo(LocalTime.parse("12:00")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionTest.java new file mode 100644 index 00000000000..138ba3adf44 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_search/ProductSearchWildCardExpressionTest.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.models.product_search; + +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 ProductSearchWildCardExpressionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProductSearchWildCardExpressionBuilder builder) { + ProductSearchWildCardExpression productSearchWildCardExpression = builder.buildUnchecked(); + Assertions.assertThat(productSearchWildCardExpression).isInstanceOf(ProductSearchWildCardExpression.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProductSearchWildCardExpression.builder() + .wildcard(new com.commercetools.api.models.product_search.ProductSearchAnyValueImpl()) } }; + } + + @Test + public void wildcard() { + ProductSearchWildCardExpression value = ProductSearchWildCardExpression.of(); + value.setWildcard(new com.commercetools.api.models.product_search.ProductSearchAnyValueImpl()); + Assertions.assertThat(value.getWildcard()) + .isEqualTo(new com.commercetools.api.models.product_search.ProductSearchAnyValueImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeTest.java index d82824fb2fe..859e5662cc9 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeTest.java @@ -26,16 +26,14 @@ public void buildUnchecked(AttributeReferenceTypeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { AttributeReferenceType.builder() .referenceTypeId( - com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("associate-role")) } }; + com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("cart")) } }; } @Test public void referenceTypeId() { AttributeReferenceType value = AttributeReferenceType.of(); - value.setReferenceTypeId( - com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("associate-role")); + value.setReferenceTypeId(com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("cart")); Assertions.assertThat(value.getReferenceTypeId()) - .isEqualTo( - com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("associate-role")); + .isEqualTo(com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("cart")); } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionTest.java new file mode 100644 index 00000000000..2b1dbb9a3b8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/ProjectChangeProductSearchStatusActionTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.project; + +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 ProjectChangeProductSearchStatusActionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ProjectChangeProductSearchStatusActionBuilder builder) { + ProjectChangeProductSearchStatusAction projectChangeProductSearchStatusAction = builder.buildUnchecked(); + Assertions.assertThat(projectChangeProductSearchStatusAction) + .isInstanceOf(ProjectChangeProductSearchStatusAction.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ProjectChangeProductSearchStatusAction.builder() + .status(com.commercetools.api.models.project.ProductSearchStatus.findEnum("Activated")) } }; + } + + @Test + public void status() { + ProjectChangeProductSearchStatusAction value = ProjectChangeProductSearchStatusAction.of(); + value.setStatus(com.commercetools.api.models.project.ProductSearchStatus.findEnum("Activated")); + Assertions.assertThat(value.getStatus()) + .isEqualTo(com.commercetools.api.models.project.ProductSearchStatus.findEnum("Activated")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationTest.java index 0f01b48a220..0a22cb63dc1 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/project/SearchIndexingConfigurationTest.java @@ -27,6 +27,9 @@ public static Object[][] objectBuilder() { return new Object[][] { new Object[] { SearchIndexingConfiguration.builder() .products(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()) }, + new Object[] { SearchIndexingConfiguration.builder() + .productsNew( + new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()) }, new Object[] { SearchIndexingConfiguration.builder() .orders(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()) } }; } @@ -39,6 +42,14 @@ public void products() { .isEqualTo(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()); } + @Test + public void productsNew() { + SearchIndexingConfiguration value = SearchIndexingConfiguration.of(); + value.setProductsNew(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()); + Assertions.assertThat(value.getProductsNew()) + .isEqualTo(new com.commercetools.api.models.project.SearchIndexingConfigurationValuesImpl()); + } + @Test public void orders() { SearchIndexingConfiguration value = SearchIndexingConfiguration.of(); diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/type/CustomFieldReferenceTypeTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/type/CustomFieldReferenceTypeTest.java index 9da5f60ce53..39e2f32116c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/type/CustomFieldReferenceTypeTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/type/CustomFieldReferenceTypeTest.java @@ -26,14 +26,15 @@ public void buildUnchecked(CustomFieldReferenceTypeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { CustomFieldReferenceType.builder() .referenceTypeId( - com.commercetools.api.models.type.CustomFieldReferenceValue.findEnum("approval-flow")) } }; + com.commercetools.api.models.type.CustomFieldReferenceValue.findEnum("associate-role")) } }; } @Test public void referenceTypeId() { CustomFieldReferenceType value = CustomFieldReferenceType.of(); - value.setReferenceTypeId(com.commercetools.api.models.type.CustomFieldReferenceValue.findEnum("approval-flow")); + value.setReferenceTypeId( + com.commercetools.api.models.type.CustomFieldReferenceValue.findEnum("associate-role")); Assertions.assertThat(value.getReferenceTypeId()) - .isEqualTo(com.commercetools.api.models.type.CustomFieldReferenceValue.findEnum("approval-flow")); + .isEqualTo(com.commercetools.api.models.type.CustomFieldReferenceValue.findEnum("associate-role")); } } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChange.java index 494cb0d646e..c7fccd5a99c 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChange.java @@ -24,6 +24,7 @@ *

  *     AddAddressChange addAddressChange = AddAddressChange.builder()
  *             .change("{change}")
+ *             .previousValue(previousValueBuilder -> previousValueBuilder)
  *             .nextValue(nextValueBuilder -> nextValueBuilder)
  *             .build()
  * 
@@ -54,6 +55,15 @@ public interface AddAddressChange extends Change { @JsonProperty("type") public String getType(); + /** + *

Value before the change.

+ * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public Address getPreviousValue(); + /** *

Value after the change.

* @return nextValue @@ -70,6 +80,13 @@ public interface AddAddressChange extends Change { public void setChange(final String change); + /** + *

Value before the change.

+ * @param previousValue value to be set + */ + + public void setPreviousValue(final Address previousValue); + /** *

Value after the change.

* @param nextValue value to be set @@ -93,6 +110,7 @@ public static AddAddressChange of() { public static AddAddressChange of(final AddAddressChange template) { AddAddressChangeImpl instance = new AddAddressChangeImpl(); instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); instance.setNextValue(template.getNextValue()); return instance; } @@ -109,6 +127,8 @@ public static AddAddressChange deepCopy(@Nullable final AddAddressChange templat } AddAddressChangeImpl instance = new AddAddressChangeImpl(); instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.Address.deepCopy(template.getPreviousValue())); instance.setNextValue(com.commercetools.history.models.common.Address.deepCopy(template.getNextValue())); return instance; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeBuilder.java index 97499908864..b6273807d61 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeBuilder.java @@ -15,6 +15,7 @@ *

  *     AddAddressChange addAddressChange = AddAddressChange.builder()
  *             .change("{change}")
+ *             .previousValue(previousValueBuilder -> previousValueBuilder)
  *             .nextValue(nextValueBuilder -> nextValueBuilder)
  *             .build()
  * 
@@ -25,6 +26,8 @@ public class AddAddressChangeBuilder implements Builder { private String change; + private com.commercetools.history.models.common.Address previousValue; + private com.commercetools.history.models.common.Address nextValue; /** @@ -38,6 +41,41 @@ public AddAddressChangeBuilder change(final String change) { return this; } + /** + *

Value before the change.

+ * @param builder function to build the previousValue value + * @return Builder + */ + + public AddAddressChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.AddressBuilder.of()).build(); + return this; + } + + /** + *

Value before the change.

+ * @param builder function to build the previousValue value + * @return Builder + */ + + public AddAddressChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.AddressBuilder.of()); + return this; + } + + /** + *

Value before the change.

+ * @param previousValue value to be set + * @return Builder + */ + + public AddAddressChangeBuilder previousValue(final com.commercetools.history.models.common.Address previousValue) { + this.previousValue = previousValue; + return this; + } + /** *

Value after the change.

* @param builder function to build the nextValue value @@ -82,6 +120,15 @@ public String getChange() { return this.change; } + /** + *

Value before the change.

+ * @return previousValue + */ + + public com.commercetools.history.models.common.Address getPreviousValue() { + return this.previousValue; + } + /** *

Value after the change.

* @return nextValue @@ -97,8 +144,9 @@ public com.commercetools.history.models.common.Address getNextValue() { */ public AddAddressChange build() { Objects.requireNonNull(change, AddAddressChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, AddAddressChange.class + ": previousValue is missing"); Objects.requireNonNull(nextValue, AddAddressChange.class + ": nextValue is missing"); - return new AddAddressChangeImpl(change, nextValue); + return new AddAddressChangeImpl(change, previousValue, nextValue); } /** @@ -106,7 +154,7 @@ public AddAddressChange build() { * @return AddAddressChange */ public AddAddressChange buildUnchecked() { - return new AddAddressChangeImpl(change, nextValue); + return new AddAddressChangeImpl(change, previousValue, nextValue); } /** @@ -125,6 +173,7 @@ public static AddAddressChangeBuilder of() { public static AddAddressChangeBuilder of(final AddAddressChange template) { AddAddressChangeBuilder builder = new AddAddressChangeBuilder(); builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); builder.nextValue = template.getNextValue(); return builder; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeImpl.java index ef3a24cb9e1..afd3d2f9e4a 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeImpl.java @@ -26,6 +26,8 @@ public class AddAddressChangeImpl implements AddAddressChange, ModelBase { private String change; + private com.commercetools.history.models.common.Address previousValue; + private com.commercetools.history.models.common.Address nextValue; /** @@ -33,8 +35,10 @@ public class AddAddressChangeImpl implements AddAddressChange, ModelBase { */ @JsonCreator AddAddressChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.Address previousValue, @JsonProperty("nextValue") final com.commercetools.history.models.common.Address nextValue) { this.change = change; + this.previousValue = previousValue; this.nextValue = nextValue; this.type = ADD_ADDRESS_CHANGE; } @@ -62,6 +66,14 @@ public String getChange() { return this.change; } + /** + *

Value before the change.

+ */ + + public com.commercetools.history.models.common.Address getPreviousValue() { + return this.previousValue; + } + /** *

Value after the change.

*/ @@ -74,6 +86,10 @@ public void setChange(final String change) { this.change = change; } + public void setPreviousValue(final com.commercetools.history.models.common.Address previousValue) { + this.previousValue = previousValue; + } + public void setNextValue(final com.commercetools.history.models.common.Address nextValue) { this.nextValue = nextValue; } @@ -90,22 +106,29 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(change, that.change) + .append(previousValue, that.previousValue) .append(nextValue, that.nextValue) .append(type, that.type) .append(change, that.change) + .append(previousValue, that.previousValue) .append(nextValue, that.nextValue) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(change).append(nextValue).toHashCode(); + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("change", change) + .append("previousValue", previousValue) .append("nextValue", nextValue) .build(); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChange.java index f67e637573a..e292e0f7366 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChange.java @@ -8,7 +8,7 @@ import javax.annotation.Nullable; import javax.validation.constraints.NotNull; -import com.commercetools.history.models.common.ChannelRoleEnum; +import com.commercetools.history.models.common.ChannelRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -60,7 +60,7 @@ public interface AddChannelRolesChange extends Change { */ @NotNull @JsonProperty("previousValue") - public List getPreviousValue(); + public List getPreviousValue(); /** *

Value after the change.

@@ -68,7 +68,7 @@ public interface AddChannelRolesChange extends Change { */ @NotNull @JsonProperty("nextValue") - public List getNextValue(); + public List getNextValue(); /** * set change @@ -83,14 +83,14 @@ public interface AddChannelRolesChange extends Change { */ @JsonIgnore - public void setPreviousValue(final ChannelRoleEnum... previousValue); + public void setPreviousValue(final ChannelRole... previousValue); /** *

Value before the change.

* @param previousValue values to be set */ - public void setPreviousValue(final List previousValue); + public void setPreviousValue(final List previousValue); /** *

Value after the change.

@@ -98,14 +98,14 @@ public interface AddChannelRolesChange extends Change { */ @JsonIgnore - public void setNextValue(final ChannelRoleEnum... nextValue); + public void setNextValue(final ChannelRole... nextValue); /** *

Value after the change.

* @param nextValue values to be set */ - public void setNextValue(final List nextValue); + public void setNextValue(final List nextValue); /** * factory method diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeBuilder.java index 53fa811268b..26c60d857a7 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeBuilder.java @@ -25,9 +25,9 @@ public class AddChannelRolesChangeBuilder implements Builder previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * set the value to the change @@ -47,7 +47,7 @@ public AddChannelRolesChangeBuilder change(final String change) { */ public AddChannelRolesChangeBuilder previousValue( - final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) { + final com.commercetools.history.models.common.ChannelRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); return this; } @@ -59,7 +59,7 @@ public AddChannelRolesChangeBuilder previousValue( */ public AddChannelRolesChangeBuilder previousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; return this; } @@ -71,7 +71,7 @@ public AddChannelRolesChangeBuilder previousValue( */ public AddChannelRolesChangeBuilder plusPreviousValue( - final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) { + final com.commercetools.history.models.common.ChannelRole... previousValue) { if (this.previousValue == null) { this.previousValue = new ArrayList<>(); } @@ -86,7 +86,7 @@ public AddChannelRolesChangeBuilder plusPreviousValue( */ public AddChannelRolesChangeBuilder nextValue( - final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) { + final com.commercetools.history.models.common.ChannelRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); return this; } @@ -98,7 +98,7 @@ public AddChannelRolesChangeBuilder nextValue( */ public AddChannelRolesChangeBuilder nextValue( - final java.util.List nextValue) { + final java.util.List nextValue) { this.nextValue = nextValue; return this; } @@ -110,7 +110,7 @@ public AddChannelRolesChangeBuilder nextValue( */ public AddChannelRolesChangeBuilder plusNextValue( - final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) { + final com.commercetools.history.models.common.ChannelRole... nextValue) { if (this.nextValue == null) { this.nextValue = new ArrayList<>(); } @@ -132,7 +132,7 @@ public String getChange() { * @return previousValue */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -141,7 +141,7 @@ public java.util.List g * @return nextValue */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeImpl.java index eddd678de1a..002aa0cbd7d 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeImpl.java @@ -26,17 +26,17 @@ public class AddChannelRolesChangeImpl implements AddChannelRolesChange, ModelBa private String change; - private java.util.List previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * create instance with all properties */ @JsonCreator AddChannelRolesChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("previousValue") final java.util.List previousValue, - @JsonProperty("nextValue") final java.util.List nextValue) { + @JsonProperty("previousValue") final java.util.List previousValue, + @JsonProperty("nextValue") final java.util.List nextValue) { this.change = change; this.previousValue = previousValue; this.nextValue = nextValue; @@ -70,7 +70,7 @@ public String getChange() { *

Value before the change.

*/ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -78,7 +78,7 @@ public java.util.List g *

Value after the change.

*/ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } @@ -86,20 +86,20 @@ public void setChange(final String change) { this.change = change; } - public void setPreviousValue(final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) { + public void setPreviousValue(final com.commercetools.history.models.common.ChannelRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); } public void setPreviousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; } - public void setNextValue(final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) { + public void setNextValue(final com.commercetools.history.models.common.ChannelRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); } - public void setNextValue(final java.util.List nextValue) { + public void setNextValue(final java.util.List nextValue) { this.nextValue = nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChange.java index ed85f472d43..1d3a4b24ff5 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChange.java @@ -9,7 +9,7 @@ import javax.validation.Valid; import javax.validation.constraints.NotNull; -import com.commercetools.history.models.common.AttributeLocalizedEnumValue; +import com.commercetools.history.models.change_value.LocalizedEnumValue; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -67,7 +67,7 @@ public interface AddLocalizedEnumValueChange extends Change { @NotNull @Valid @JsonProperty("nextValue") - public AttributeLocalizedEnumValue getNextValue(); + public LocalizedEnumValue getNextValue(); /** *

Name of the updated FieldDefinition; only present on changes to Types.

@@ -97,7 +97,7 @@ public interface AddLocalizedEnumValueChange extends Change { * @param nextValue value to be set */ - public void setNextValue(final AttributeLocalizedEnumValue nextValue); + public void setNextValue(final LocalizedEnumValue nextValue); /** *

Name of the updated FieldDefinition; only present on changes to Types.

@@ -148,7 +148,7 @@ public static AddLocalizedEnumValueChange deepCopy(@Nullable final AddLocalizedE AddLocalizedEnumValueChangeImpl instance = new AddLocalizedEnumValueChangeImpl(); instance.setChange(template.getChange()); instance.setNextValue( - com.commercetools.history.models.common.AttributeLocalizedEnumValue.deepCopy(template.getNextValue())); + com.commercetools.history.models.change_value.LocalizedEnumValue.deepCopy(template.getNextValue())); instance.setFieldName(template.getFieldName()); instance.setAttributeName(template.getAttributeName()); return instance; diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeBuilder.java index fa32ee5d186..f09217eafaa 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeBuilder.java @@ -27,7 +27,7 @@ public class AddLocalizedEnumValueChangeBuilder implements Builder builder) { - this.nextValue = builder.apply(com.commercetools.history.models.common.AttributeLocalizedEnumValueBuilder.of()) + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.change_value.LocalizedEnumValueBuilder.of()) .build(); return this; } @@ -64,8 +64,8 @@ public AddLocalizedEnumValueChangeBuilder nextValue( */ public AddLocalizedEnumValueChangeBuilder withNextValue( - Function builder) { - this.nextValue = builder.apply(com.commercetools.history.models.common.AttributeLocalizedEnumValueBuilder.of()); + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.change_value.LocalizedEnumValueBuilder.of()); return this; } @@ -76,7 +76,7 @@ public AddLocalizedEnumValueChangeBuilder withNextValue( */ public AddLocalizedEnumValueChangeBuilder nextValue( - final com.commercetools.history.models.common.AttributeLocalizedEnumValue nextValue) { + final com.commercetools.history.models.change_value.LocalizedEnumValue nextValue) { this.nextValue = nextValue; return this; } @@ -117,7 +117,7 @@ public String getChange() { * @return nextValue */ - public com.commercetools.history.models.common.AttributeLocalizedEnumValue getNextValue() { + public com.commercetools.history.models.change_value.LocalizedEnumValue getNextValue() { return this.nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeImpl.java index c52b6c830dd..2758594b16b 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeImpl.java @@ -30,7 +30,7 @@ public class AddLocalizedEnumValueChangeImpl implements AddLocalizedEnumValueCha private String change; - private com.commercetools.history.models.common.AttributeLocalizedEnumValue nextValue; + private com.commercetools.history.models.change_value.LocalizedEnumValue nextValue; private String fieldName; @@ -41,7 +41,7 @@ public class AddLocalizedEnumValueChangeImpl implements AddLocalizedEnumValueCha */ @JsonCreator AddLocalizedEnumValueChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("nextValue") final com.commercetools.history.models.common.AttributeLocalizedEnumValue nextValue, + @JsonProperty("nextValue") final com.commercetools.history.models.change_value.LocalizedEnumValue nextValue, @JsonProperty("fieldName") final String fieldName, @JsonProperty("attributeName") final String attributeName) { this.change = change; @@ -78,7 +78,7 @@ public String getChange() { *

Value after the change.

*/ - public com.commercetools.history.models.common.AttributeLocalizedEnumValue getNextValue() { + public com.commercetools.history.models.change_value.LocalizedEnumValue getNextValue() { return this.nextValue; } @@ -102,7 +102,7 @@ public void setChange(final String change) { this.change = change; } - public void setNextValue(final com.commercetools.history.models.common.AttributeLocalizedEnumValue nextValue) { + public void setNextValue(final com.commercetools.history.models.change_value.LocalizedEnumValue nextValue) { this.nextValue = nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChange.java index 45fb1e269e4..5f2068f7f15 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChange.java @@ -24,6 +24,7 @@ *

  *     AddLocationChange addLocationChange = AddLocationChange.builder()
  *             .change("{change}")
+ *             .previousValue(previousValueBuilder -> previousValueBuilder)
  *             .nextValue(nextValueBuilder -> nextValueBuilder)
  *             .build()
  * 
@@ -54,6 +55,15 @@ public interface AddLocationChange extends Change { @JsonProperty("change") public String getChange(); + /** + *

Value before the change.

+ * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public Location getPreviousValue(); + /** *

Value after the change.

* @return nextValue @@ -70,6 +80,13 @@ public interface AddLocationChange extends Change { public void setChange(final String change); + /** + *

Value before the change.

+ * @param previousValue value to be set + */ + + public void setPreviousValue(final Location previousValue); + /** *

Value after the change.

* @param nextValue value to be set @@ -93,6 +110,7 @@ public static AddLocationChange of() { public static AddLocationChange of(final AddLocationChange template) { AddLocationChangeImpl instance = new AddLocationChangeImpl(); instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); instance.setNextValue(template.getNextValue()); return instance; } @@ -109,6 +127,8 @@ public static AddLocationChange deepCopy(@Nullable final AddLocationChange templ } AddLocationChangeImpl instance = new AddLocationChangeImpl(); instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.Location.deepCopy(template.getPreviousValue())); instance.setNextValue(com.commercetools.history.models.common.Location.deepCopy(template.getNextValue())); return instance; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeBuilder.java index b54f177ab09..e4cf396cc8b 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeBuilder.java @@ -15,6 +15,7 @@ *

  *     AddLocationChange addLocationChange = AddLocationChange.builder()
  *             .change("{change}")
+ *             .previousValue(previousValueBuilder -> previousValueBuilder)
  *             .nextValue(nextValueBuilder -> nextValueBuilder)
  *             .build()
  * 
@@ -25,6 +26,8 @@ public class AddLocationChangeBuilder implements Builder { private String change; + private com.commercetools.history.models.common.Location previousValue; + private com.commercetools.history.models.common.Location nextValue; /** @@ -38,6 +41,42 @@ public AddLocationChangeBuilder change(final String change) { return this; } + /** + *

Value before the change.

+ * @param builder function to build the previousValue value + * @return Builder + */ + + public AddLocationChangeBuilder previousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.LocationBuilder.of()).build(); + return this; + } + + /** + *

Value before the change.

+ * @param builder function to build the previousValue value + * @return Builder + */ + + public AddLocationChangeBuilder withPreviousValue( + Function builder) { + this.previousValue = builder.apply(com.commercetools.history.models.common.LocationBuilder.of()); + return this; + } + + /** + *

Value before the change.

+ * @param previousValue value to be set + * @return Builder + */ + + public AddLocationChangeBuilder previousValue( + final com.commercetools.history.models.common.Location previousValue) { + this.previousValue = previousValue; + return this; + } + /** *

Value after the change.

* @param builder function to build the nextValue value @@ -82,6 +121,15 @@ public String getChange() { return this.change; } + /** + *

Value before the change.

+ * @return previousValue + */ + + public com.commercetools.history.models.common.Location getPreviousValue() { + return this.previousValue; + } + /** *

Value after the change.

* @return nextValue @@ -97,8 +145,9 @@ public com.commercetools.history.models.common.Location getNextValue() { */ public AddLocationChange build() { Objects.requireNonNull(change, AddLocationChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, AddLocationChange.class + ": previousValue is missing"); Objects.requireNonNull(nextValue, AddLocationChange.class + ": nextValue is missing"); - return new AddLocationChangeImpl(change, nextValue); + return new AddLocationChangeImpl(change, previousValue, nextValue); } /** @@ -106,7 +155,7 @@ public AddLocationChange build() { * @return AddLocationChange */ public AddLocationChange buildUnchecked() { - return new AddLocationChangeImpl(change, nextValue); + return new AddLocationChangeImpl(change, previousValue, nextValue); } /** @@ -125,6 +174,7 @@ public static AddLocationChangeBuilder of() { public static AddLocationChangeBuilder of(final AddLocationChange template) { AddLocationChangeBuilder builder = new AddLocationChangeBuilder(); builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); builder.nextValue = template.getNextValue(); return builder; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeImpl.java index 4b3a12ae471..7a79c3f1b1b 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeImpl.java @@ -26,6 +26,8 @@ public class AddLocationChangeImpl implements AddLocationChange, ModelBase { private String change; + private com.commercetools.history.models.common.Location previousValue; + private com.commercetools.history.models.common.Location nextValue; /** @@ -33,8 +35,10 @@ public class AddLocationChangeImpl implements AddLocationChange, ModelBase { */ @JsonCreator AddLocationChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.Location previousValue, @JsonProperty("nextValue") final com.commercetools.history.models.common.Location nextValue) { this.change = change; + this.previousValue = previousValue; this.nextValue = nextValue; this.type = ADD_LOCATION_CHANGE; } @@ -62,6 +66,14 @@ public String getChange() { return this.change; } + /** + *

Value before the change.

+ */ + + public com.commercetools.history.models.common.Location getPreviousValue() { + return this.previousValue; + } + /** *

Value after the change.

*/ @@ -74,6 +86,10 @@ public void setChange(final String change) { this.change = change; } + public void setPreviousValue(final com.commercetools.history.models.common.Location previousValue) { + this.previousValue = previousValue; + } + public void setNextValue(final com.commercetools.history.models.common.Location nextValue) { this.nextValue = nextValue; } @@ -90,22 +106,29 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(change, that.change) + .append(previousValue, that.previousValue) .append(nextValue, that.nextValue) .append(type, that.type) .append(change, that.change) + .append(previousValue, that.previousValue) .append(nextValue, that.nextValue) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(change).append(nextValue).toHashCode(); + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("change", change) + .append("previousValue", previousValue) .append("nextValue", nextValue) .build(); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChange.java index 4d9f231039a..f92f0f1c210 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChange.java @@ -9,7 +9,7 @@ import javax.validation.Valid; import javax.validation.constraints.NotNull; -import com.commercetools.history.models.common.AttributePlainEnumValue; +import com.commercetools.history.models.change_value.EnumValue; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -62,7 +62,7 @@ public interface AddPlainEnumValueChange extends Change { @NotNull @Valid @JsonProperty("nextValue") - public AttributePlainEnumValue getNextValue(); + public EnumValue getNextValue(); /** *

Name of the updated AttributeDefinition.

@@ -84,7 +84,7 @@ public interface AddPlainEnumValueChange extends Change { * @param nextValue value to be set */ - public void setNextValue(final AttributePlainEnumValue nextValue); + public void setNextValue(final EnumValue nextValue); /** *

Name of the updated AttributeDefinition.

@@ -127,7 +127,7 @@ public static AddPlainEnumValueChange deepCopy(@Nullable final AddPlainEnumValue AddPlainEnumValueChangeImpl instance = new AddPlainEnumValueChangeImpl(); instance.setChange(template.getChange()); instance.setNextValue( - com.commercetools.history.models.common.AttributePlainEnumValue.deepCopy(template.getNextValue())); + com.commercetools.history.models.change_value.EnumValue.deepCopy(template.getNextValue())); instance.setAttributeName(template.getAttributeName()); return instance; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeBuilder.java index 9db77ba52a4..8722be97fb5 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeBuilder.java @@ -26,7 +26,7 @@ public class AddPlainEnumValueChangeBuilder implements Builder builder) { - this.nextValue = builder.apply(com.commercetools.history.models.common.AttributePlainEnumValueBuilder.of()) - .build(); + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.change_value.EnumValueBuilder.of()).build(); return this; } @@ -61,8 +60,8 @@ public AddPlainEnumValueChangeBuilder nextValue( */ public AddPlainEnumValueChangeBuilder withNextValue( - Function builder) { - this.nextValue = builder.apply(com.commercetools.history.models.common.AttributePlainEnumValueBuilder.of()); + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.change_value.EnumValueBuilder.of()); return this; } @@ -73,7 +72,7 @@ public AddPlainEnumValueChangeBuilder withNextValue( */ public AddPlainEnumValueChangeBuilder nextValue( - final com.commercetools.history.models.common.AttributePlainEnumValue nextValue) { + final com.commercetools.history.models.change_value.EnumValue nextValue) { this.nextValue = nextValue; return this; } @@ -103,7 +102,7 @@ public String getChange() { * @return nextValue */ - public com.commercetools.history.models.common.AttributePlainEnumValue getNextValue() { + public com.commercetools.history.models.change_value.EnumValue getNextValue() { return this.nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeImpl.java index 939b2aadc73..0fab6bf2e19 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeImpl.java @@ -26,7 +26,7 @@ public class AddPlainEnumValueChangeImpl implements AddPlainEnumValueChange, Mod private String change; - private com.commercetools.history.models.common.AttributePlainEnumValue nextValue; + private com.commercetools.history.models.change_value.EnumValue nextValue; private String attributeName; @@ -35,7 +35,7 @@ public class AddPlainEnumValueChangeImpl implements AddPlainEnumValueChange, Mod */ @JsonCreator AddPlainEnumValueChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("nextValue") final com.commercetools.history.models.common.AttributePlainEnumValue nextValue, + @JsonProperty("nextValue") final com.commercetools.history.models.change_value.EnumValue nextValue, @JsonProperty("attributeName") final String attributeName) { this.change = change; this.nextValue = nextValue; @@ -70,7 +70,7 @@ public String getChange() { *

Value after the change.

*/ - public com.commercetools.history.models.common.AttributePlainEnumValue getNextValue() { + public com.commercetools.history.models.change_value.EnumValue getNextValue() { return this.nextValue; } @@ -86,7 +86,7 @@ public void setChange(final String change) { this.change = change; } - public void setNextValue(final com.commercetools.history.models.common.AttributePlainEnumValue nextValue) { + public void setNextValue(final com.commercetools.history.models.change_value.EnumValue nextValue) { this.nextValue = nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChange.java index fa39a7effa5..881c5df356d 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChange.java @@ -8,7 +8,7 @@ import javax.annotation.Nullable; import javax.validation.constraints.NotNull; -import com.commercetools.history.models.common.StateRoleEnum; +import com.commercetools.history.models.common.StateRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -60,7 +60,7 @@ public interface AddStateRolesChange extends Change { */ @NotNull @JsonProperty("previousValue") - public List getPreviousValue(); + public List getPreviousValue(); /** *

Value after the change.

@@ -68,7 +68,7 @@ public interface AddStateRolesChange extends Change { */ @NotNull @JsonProperty("nextValue") - public List getNextValue(); + public List getNextValue(); /** * set change @@ -83,14 +83,14 @@ public interface AddStateRolesChange extends Change { */ @JsonIgnore - public void setPreviousValue(final StateRoleEnum... previousValue); + public void setPreviousValue(final StateRole... previousValue); /** *

Value before the change.

* @param previousValue values to be set */ - public void setPreviousValue(final List previousValue); + public void setPreviousValue(final List previousValue); /** *

Value after the change.

@@ -98,14 +98,14 @@ public interface AddStateRolesChange extends Change { */ @JsonIgnore - public void setNextValue(final StateRoleEnum... nextValue); + public void setNextValue(final StateRole... nextValue); /** *

Value after the change.

* @param nextValue values to be set */ - public void setNextValue(final List nextValue); + public void setNextValue(final List nextValue); /** * factory method diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeBuilder.java index 218825451fc..f9bd24d6800 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeBuilder.java @@ -25,9 +25,9 @@ public class AddStateRolesChangeBuilder implements Builder private String change; - private java.util.List previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * set the value to the change @@ -47,7 +47,7 @@ public AddStateRolesChangeBuilder change(final String change) { */ public AddStateRolesChangeBuilder previousValue( - final com.commercetools.history.models.common.StateRoleEnum... previousValue) { + final com.commercetools.history.models.common.StateRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); return this; } @@ -59,7 +59,7 @@ public AddStateRolesChangeBuilder previousValue( */ public AddStateRolesChangeBuilder previousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; return this; } @@ -71,7 +71,7 @@ public AddStateRolesChangeBuilder previousValue( */ public AddStateRolesChangeBuilder plusPreviousValue( - final com.commercetools.history.models.common.StateRoleEnum... previousValue) { + final com.commercetools.history.models.common.StateRole... previousValue) { if (this.previousValue == null) { this.previousValue = new ArrayList<>(); } @@ -85,8 +85,7 @@ public AddStateRolesChangeBuilder plusPreviousValue( * @return Builder */ - public AddStateRolesChangeBuilder nextValue( - final com.commercetools.history.models.common.StateRoleEnum... nextValue) { + public AddStateRolesChangeBuilder nextValue(final com.commercetools.history.models.common.StateRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); return this; } @@ -98,7 +97,7 @@ public AddStateRolesChangeBuilder nextValue( */ public AddStateRolesChangeBuilder nextValue( - final java.util.List nextValue) { + final java.util.List nextValue) { this.nextValue = nextValue; return this; } @@ -110,7 +109,7 @@ public AddStateRolesChangeBuilder nextValue( */ public AddStateRolesChangeBuilder plusNextValue( - final com.commercetools.history.models.common.StateRoleEnum... nextValue) { + final com.commercetools.history.models.common.StateRole... nextValue) { if (this.nextValue == null) { this.nextValue = new ArrayList<>(); } @@ -132,7 +131,7 @@ public String getChange() { * @return previousValue */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -141,7 +140,7 @@ public java.util.List get * @return nextValue */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeImpl.java index fa5196d5613..180a6eb8436 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeImpl.java @@ -26,17 +26,17 @@ public class AddStateRolesChangeImpl implements AddStateRolesChange, ModelBase { private String change; - private java.util.List previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * create instance with all properties */ @JsonCreator AddStateRolesChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("previousValue") final java.util.List previousValue, - @JsonProperty("nextValue") final java.util.List nextValue) { + @JsonProperty("previousValue") final java.util.List previousValue, + @JsonProperty("nextValue") final java.util.List nextValue) { this.change = change; this.previousValue = previousValue; this.nextValue = nextValue; @@ -70,7 +70,7 @@ public String getChange() { *

Value before the change.

*/ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -78,7 +78,7 @@ public java.util.List get *

Value after the change.

*/ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } @@ -86,20 +86,20 @@ public void setChange(final String change) { this.change = change; } - public void setPreviousValue(final com.commercetools.history.models.common.StateRoleEnum... previousValue) { + public void setPreviousValue(final com.commercetools.history.models.common.StateRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); } public void setPreviousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; } - public void setNextValue(final com.commercetools.history.models.common.StateRoleEnum... nextValue) { + public void setNextValue(final com.commercetools.history.models.common.StateRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); } - public void setNextValue(final java.util.List nextValue) { + public void setNextValue(final java.util.List nextValue) { this.nextValue = nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java index cd62449c6de..632b9912bef 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java @@ -23,6 +23,7 @@ *

  *     Change change = Change.addAddressChangeBuilder()
  *             change("{change}")
+ *             previousValue(previousValueBuilder -> previousValueBuilder)
  *             nextValue(nextValueBuilder -> nextValueBuilder)
  *             .build()
  * 
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChange.java index a56fcd164cc..db643a89b80 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChange.java @@ -14,7 +14,11 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Change triggered by the Change Description update action.

+ *

Change triggered by the following update actions:

+ *
    + *
  • Change Description on Channels.
  • + *
  • Change Description on Product Types.
  • + *
* *
* Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChangeImpl.java index 106a91a0d21..39363d5c2cf 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChangeImpl.java @@ -17,7 +17,11 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

Change triggered by the Change Description update action.

+ *

Change triggered by the following update actions:

+ *
    + *
  • Change Description on Channels.
  • + *
  • Change Description on Product Types.
  • + *
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ChangeDescriptionChangeImpl implements ChangeDescriptionChange, ModelBase { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChange.java index 0e8b4f78d6a..dd5c829de54 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChange.java @@ -16,7 +16,11 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Change triggered by the Change Description update action.

+ *

Change triggered by the following update actions:

+ *
    + *
  • Change Description on Product Types.
  • + *
  • Change Description on Channels.
  • + *
* *
* Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChangeImpl.java index 36b04f552a5..d2b0e8e0408 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChangeImpl.java @@ -17,7 +17,11 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

Change triggered by the Change Description update action.

+ *

Change triggered by the following update actions:

+ *
    + *
  • Change Description on Product Types.
  • + *
  • Change Description on Channels.
  • + *
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ChangeLocalizedDescriptionChangeImpl implements ChangeLocalizedDescriptionChange, ModelBase { diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChange.java index 9c29e88ed83..aced0b6d76b 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChange.java @@ -21,10 +21,14 @@ *
  • Change Name on Cart Discounts.
  • *
  • Change Name on Categories.
  • *
  • Change Name on Channels.
  • + *
  • Change Name on Customer Groups.
  • *
  • Change Name on Products.
  • *
  • Change Name on Product Discounts.
  • *
  • Change Name on Product Selections.
  • + *
  • Change Name on Product Types.
  • *
  • Change Name on Shopping Lists.
  • + *
  • Change Name on Tax Categories.
  • + *
  • Change Name on Types.
  • *
  • Change Name on Zones.
  • * * diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChangeImpl.java index 8713edf244b..ccb5b2d5efb 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChangeImpl.java @@ -22,10 +22,14 @@ *
  • Change Name on Cart Discounts.
  • *
  • Change Name on Categories.
  • *
  • Change Name on Channels.
  • + *
  • Change Name on Customer Groups.
  • *
  • Change Name on Products.
  • *
  • Change Name on Product Discounts.
  • *
  • Change Name on Product Selections.
  • + *
  • Change Name on Product Types.
  • *
  • Change Name on Shopping Lists.
  • + *
  • Change Name on Tax Categories.
  • + *
  • Change Name on Types.
  • *
  • Change Name on Zones.
  • * */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChange.java index ee78c9991eb..da84ea1aac6 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChange.java @@ -16,9 +16,17 @@ /** *

    Change triggered by the following update actions:

    *
      + *
    • Change Name on Cart Discounts.
    • + *
    • Change Name on Categories.
    • + *
    • Change Name on Channels.
    • *
    • Change Name on Customer Groups.
    • + *
    • Change Name on Products.
    • + *
    • Change Name on Product Discounts.
    • + *
    • Change Name on Product Selections.
    • *
    • Change Name on Product Types.
    • + *
    • Change Name on Shopping Lists.
    • *
    • Change Name on Tax Categories.
    • + *
    • Change Name on Types.
    • *
    • Change Name on Zones.
    • *
    * diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChangeImpl.java index 8912e912335..ce09de89243 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChangeImpl.java @@ -19,9 +19,17 @@ /** *

    Change triggered by the following update actions:

    *
      + *
    • Change Name on Cart Discounts.
    • + *
    • Change Name on Categories.
    • + *
    • Change Name on Channels.
    • *
    • Change Name on Customer Groups.
    • + *
    • Change Name on Products.
    • + *
    • Change Name on Product Discounts.
    • + *
    • Change Name on Product Selections.
    • *
    • Change Name on Product Types.
    • + *
    • Change Name on Shopping Lists.
    • *
    • Change Name on Tax Categories.
    • + *
    • Change Name on Types.
    • *
    • Change Name on Zones.
    • *
    */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChange.java index be7159e17d5..dd58a4f834a 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChange.java @@ -8,7 +8,7 @@ import javax.annotation.Nullable; import javax.validation.constraints.NotNull; -import com.commercetools.history.models.common.StateTypeEnum; +import com.commercetools.history.models.common.StateType; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -23,8 +23,8 @@ *
    
      *     ChangeStateTypeChange changeStateTypeChange = ChangeStateTypeChange.builder()
      *             .change("{change}")
    - *             .previousValue(StateTypeEnum.ORDER_STATE)
    - *             .nextValue(StateTypeEnum.ORDER_STATE)
    + *             .previousValue(StateType.ORDER_STATE)
    + *             .nextValue(StateType.ORDER_STATE)
      *             .build()
      * 
    * @@ -60,7 +60,7 @@ public interface ChangeStateTypeChange extends Change { */ @NotNull @JsonProperty("previousValue") - public StateTypeEnum getPreviousValue(); + public StateType getPreviousValue(); /** *

    Value after the change.

    @@ -68,7 +68,7 @@ public interface ChangeStateTypeChange extends Change { */ @NotNull @JsonProperty("nextValue") - public StateTypeEnum getNextValue(); + public StateType getNextValue(); /** * set change @@ -82,14 +82,14 @@ public interface ChangeStateTypeChange extends Change { * @param previousValue value to be set */ - public void setPreviousValue(final StateTypeEnum previousValue); + public void setPreviousValue(final StateType previousValue); /** *

    Value after the change.

    * @param nextValue value to be set */ - public void setNextValue(final StateTypeEnum nextValue); + public void setNextValue(final StateType nextValue); /** * factory method diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeBuilder.java index 252fd2ed878..423499157d2 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeBuilder.java @@ -14,8 +14,8 @@ *
    
      *     ChangeStateTypeChange changeStateTypeChange = ChangeStateTypeChange.builder()
      *             .change("{change}")
    - *             .previousValue(StateTypeEnum.ORDER_STATE)
    - *             .nextValue(StateTypeEnum.ORDER_STATE)
    + *             .previousValue(StateType.ORDER_STATE)
    + *             .nextValue(StateType.ORDER_STATE)
      *             .build()
      * 
    * @@ -25,9 +25,9 @@ public class ChangeStateTypeChangeBuilder implements BuilderValue before the change.

    */ - public com.commercetools.history.models.common.StateTypeEnum getPreviousValue() { + public com.commercetools.history.models.common.StateType getPreviousValue() { return this.previousValue; } @@ -78,7 +78,7 @@ public com.commercetools.history.models.common.StateTypeEnum getPreviousValue() *

    Value after the change.

    */ - public com.commercetools.history.models.common.StateTypeEnum getNextValue() { + public com.commercetools.history.models.common.StateType getNextValue() { return this.nextValue; } @@ -86,11 +86,11 @@ public void setChange(final String change) { this.change = change; } - public void setPreviousValue(final com.commercetools.history.models.common.StateTypeEnum previousValue) { + public void setPreviousValue(final com.commercetools.history.models.common.StateType previousValue) { this.previousValue = previousValue; } - public void setNextValue(final com.commercetools.history.models.common.StateTypeEnum nextValue) { + public void setNextValue(final com.commercetools.history.models.common.StateType nextValue) { this.nextValue = nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChange.java index 6b6160d4ddd..53005f40964 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChange.java @@ -8,7 +8,7 @@ import javax.annotation.Nullable; import javax.validation.constraints.NotNull; -import com.commercetools.history.models.common.ChannelRoleEnum; +import com.commercetools.history.models.common.ChannelRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -60,7 +60,7 @@ public interface RemoveChannelRolesChange extends Change { */ @NotNull @JsonProperty("previousValue") - public List getPreviousValue(); + public List getPreviousValue(); /** *

    Value after the change.

    @@ -68,7 +68,7 @@ public interface RemoveChannelRolesChange extends Change { */ @NotNull @JsonProperty("nextValue") - public List getNextValue(); + public List getNextValue(); /** * set change @@ -83,14 +83,14 @@ public interface RemoveChannelRolesChange extends Change { */ @JsonIgnore - public void setPreviousValue(final ChannelRoleEnum... previousValue); + public void setPreviousValue(final ChannelRole... previousValue); /** *

    Value before the change.

    * @param previousValue values to be set */ - public void setPreviousValue(final List previousValue); + public void setPreviousValue(final List previousValue); /** *

    Value after the change.

    @@ -98,14 +98,14 @@ public interface RemoveChannelRolesChange extends Change { */ @JsonIgnore - public void setNextValue(final ChannelRoleEnum... nextValue); + public void setNextValue(final ChannelRole... nextValue); /** *

    Value after the change.

    * @param nextValue values to be set */ - public void setNextValue(final List nextValue); + public void setNextValue(final List nextValue); /** * factory method diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeBuilder.java index ba8207b7a5c..10b13759b62 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeBuilder.java @@ -25,9 +25,9 @@ public class RemoveChannelRolesChangeBuilder implements Builder previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * set the value to the change @@ -47,7 +47,7 @@ public RemoveChannelRolesChangeBuilder change(final String change) { */ public RemoveChannelRolesChangeBuilder previousValue( - final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) { + final com.commercetools.history.models.common.ChannelRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); return this; } @@ -59,7 +59,7 @@ public RemoveChannelRolesChangeBuilder previousValue( */ public RemoveChannelRolesChangeBuilder previousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; return this; } @@ -71,7 +71,7 @@ public RemoveChannelRolesChangeBuilder previousValue( */ public RemoveChannelRolesChangeBuilder plusPreviousValue( - final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) { + final com.commercetools.history.models.common.ChannelRole... previousValue) { if (this.previousValue == null) { this.previousValue = new ArrayList<>(); } @@ -86,7 +86,7 @@ public RemoveChannelRolesChangeBuilder plusPreviousValue( */ public RemoveChannelRolesChangeBuilder nextValue( - final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) { + final com.commercetools.history.models.common.ChannelRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); return this; } @@ -98,7 +98,7 @@ public RemoveChannelRolesChangeBuilder nextValue( */ public RemoveChannelRolesChangeBuilder nextValue( - final java.util.List nextValue) { + final java.util.List nextValue) { this.nextValue = nextValue; return this; } @@ -110,7 +110,7 @@ public RemoveChannelRolesChangeBuilder nextValue( */ public RemoveChannelRolesChangeBuilder plusNextValue( - final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) { + final com.commercetools.history.models.common.ChannelRole... nextValue) { if (this.nextValue == null) { this.nextValue = new ArrayList<>(); } @@ -132,7 +132,7 @@ public String getChange() { * @return previousValue */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -141,7 +141,7 @@ public java.util.List g * @return nextValue */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeImpl.java index 4483c1bd0f3..8f9157738ad 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeImpl.java @@ -26,17 +26,17 @@ public class RemoveChannelRolesChangeImpl implements RemoveChannelRolesChange, M private String change; - private java.util.List previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * create instance with all properties */ @JsonCreator RemoveChannelRolesChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("previousValue") final java.util.List previousValue, - @JsonProperty("nextValue") final java.util.List nextValue) { + @JsonProperty("previousValue") final java.util.List previousValue, + @JsonProperty("nextValue") final java.util.List nextValue) { this.change = change; this.previousValue = previousValue; this.nextValue = nextValue; @@ -70,7 +70,7 @@ public String getChange() { *

    Value before the change.

    */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -78,7 +78,7 @@ public java.util.List g *

    Value after the change.

    */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } @@ -86,20 +86,20 @@ public void setChange(final String change) { this.change = change; } - public void setPreviousValue(final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) { + public void setPreviousValue(final com.commercetools.history.models.common.ChannelRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); } public void setPreviousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; } - public void setNextValue(final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) { + public void setNextValue(final com.commercetools.history.models.common.ChannelRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); } - public void setNextValue(final java.util.List nextValue) { + public void setNextValue(final java.util.List nextValue) { this.nextValue = nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChange.java index 691f0334d2f..99e80d363cb 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChange.java @@ -25,6 +25,7 @@ * RemoveLocationChange removeLocationChange = RemoveLocationChange.builder() * .change("{change}") * .previousValue(previousValueBuilder -> previousValueBuilder) + * .nextValue(nextValueBuilder -> nextValueBuilder) * .build() * * @@ -63,6 +64,15 @@ public interface RemoveLocationChange extends Change { @JsonProperty("previousValue") public Location getPreviousValue(); + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public Location getNextValue(); + /** * set change * @param change value to be set @@ -77,6 +87,13 @@ public interface RemoveLocationChange extends Change { public void setPreviousValue(final Location previousValue); + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final Location nextValue); + /** * factory method * @return instance of RemoveLocationChange @@ -94,6 +111,7 @@ public static RemoveLocationChange of(final RemoveLocationChange template) { RemoveLocationChangeImpl instance = new RemoveLocationChangeImpl(); instance.setChange(template.getChange()); instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); return instance; } @@ -111,6 +129,7 @@ public static RemoveLocationChange deepCopy(@Nullable final RemoveLocationChange instance.setChange(template.getChange()); instance.setPreviousValue( com.commercetools.history.models.common.Location.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.Location.deepCopy(template.getNextValue())); return instance; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeBuilder.java index 8063a391b0a..1ffeb9facc0 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeBuilder.java @@ -16,6 +16,7 @@ * RemoveLocationChange removeLocationChange = RemoveLocationChange.builder() * .change("{change}") * .previousValue(previousValueBuilder -> previousValueBuilder) + * .nextValue(nextValueBuilder -> nextValueBuilder) * .build() * * @@ -27,6 +28,8 @@ public class RemoveLocationChangeBuilder implements BuilderValue after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public RemoveLocationChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.LocationBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public RemoveLocationChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.LocationBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public RemoveLocationChangeBuilder nextValue(final com.commercetools.history.models.common.Location nextValue) { + this.nextValue = nextValue; + return this; + } + /** * value of change} * @return change @@ -92,6 +130,15 @@ public com.commercetools.history.models.common.Location getPreviousValue() { return this.previousValue; } + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.Location getNextValue() { + return this.nextValue; + } + /** * builds RemoveLocationChange with checking for non-null required values * @return RemoveLocationChange @@ -99,7 +146,8 @@ public com.commercetools.history.models.common.Location getPreviousValue() { public RemoveLocationChange build() { Objects.requireNonNull(change, RemoveLocationChange.class + ": change is missing"); Objects.requireNonNull(previousValue, RemoveLocationChange.class + ": previousValue is missing"); - return new RemoveLocationChangeImpl(change, previousValue); + Objects.requireNonNull(nextValue, RemoveLocationChange.class + ": nextValue is missing"); + return new RemoveLocationChangeImpl(change, previousValue, nextValue); } /** @@ -107,7 +155,7 @@ public RemoveLocationChange build() { * @return RemoveLocationChange */ public RemoveLocationChange buildUnchecked() { - return new RemoveLocationChangeImpl(change, previousValue); + return new RemoveLocationChangeImpl(change, previousValue, nextValue); } /** @@ -127,6 +175,7 @@ public static RemoveLocationChangeBuilder of(final RemoveLocationChange template RemoveLocationChangeBuilder builder = new RemoveLocationChangeBuilder(); builder.change = template.getChange(); builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); return builder; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeImpl.java index 4befde48988..11126cb352d 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeImpl.java @@ -28,14 +28,18 @@ public class RemoveLocationChangeImpl implements RemoveLocationChange, ModelBase private com.commercetools.history.models.common.Location previousValue; + private com.commercetools.history.models.common.Location nextValue; + /** * create instance with all properties */ @JsonCreator RemoveLocationChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("previousValue") final com.commercetools.history.models.common.Location previousValue) { + @JsonProperty("previousValue") final com.commercetools.history.models.common.Location previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.Location nextValue) { this.change = change; this.previousValue = previousValue; + this.nextValue = nextValue; this.type = REMOVE_LOCATION_CHANGE; } @@ -70,6 +74,14 @@ public com.commercetools.history.models.common.Location getPreviousValue() { return this.previousValue; } + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.Location getNextValue() { + return this.nextValue; + } + public void setChange(final String change) { this.change = change; } @@ -78,6 +90,10 @@ public void setPreviousValue(final com.commercetools.history.models.common.Locat this.previousValue = previousValue; } + public void setNextValue(final com.commercetools.history.models.common.Location nextValue) { + this.nextValue = nextValue; + } + @Override public boolean equals(Object o) { if (this == o) @@ -91,15 +107,21 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(change, that.change) .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) .append(type, that.type) .append(change, that.change) .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(change).append(previousValue).toHashCode(); + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); } @Override @@ -107,6 +129,7 @@ public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("change", change) .append("previousValue", previousValue) + .append("nextValue", nextValue) .build(); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChange.java index ea19a4642ed..3f8b9e9fbc0 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChange.java @@ -8,7 +8,7 @@ import javax.annotation.Nullable; import javax.validation.constraints.NotNull; -import com.commercetools.history.models.common.StateRoleEnum; +import com.commercetools.history.models.common.StateRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -60,7 +60,7 @@ public interface RemoveStateRolesChange extends Change { */ @NotNull @JsonProperty("previousValue") - public List getPreviousValue(); + public List getPreviousValue(); /** *

    Value after the change.

    @@ -68,7 +68,7 @@ public interface RemoveStateRolesChange extends Change { */ @NotNull @JsonProperty("nextValue") - public List getNextValue(); + public List getNextValue(); /** * set change @@ -83,14 +83,14 @@ public interface RemoveStateRolesChange extends Change { */ @JsonIgnore - public void setPreviousValue(final StateRoleEnum... previousValue); + public void setPreviousValue(final StateRole... previousValue); /** *

    Value before the change.

    * @param previousValue values to be set */ - public void setPreviousValue(final List previousValue); + public void setPreviousValue(final List previousValue); /** *

    Value after the change.

    @@ -98,14 +98,14 @@ public interface RemoveStateRolesChange extends Change { */ @JsonIgnore - public void setNextValue(final StateRoleEnum... nextValue); + public void setNextValue(final StateRole... nextValue); /** *

    Value after the change.

    * @param nextValue values to be set */ - public void setNextValue(final List nextValue); + public void setNextValue(final List nextValue); /** * factory method diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeBuilder.java index ad3616d2f33..5a6d4ecccc6 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeBuilder.java @@ -25,9 +25,9 @@ public class RemoveStateRolesChangeBuilder implements Builder previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * set the value to the change @@ -47,7 +47,7 @@ public RemoveStateRolesChangeBuilder change(final String change) { */ public RemoveStateRolesChangeBuilder previousValue( - final com.commercetools.history.models.common.StateRoleEnum... previousValue) { + final com.commercetools.history.models.common.StateRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); return this; } @@ -59,7 +59,7 @@ public RemoveStateRolesChangeBuilder previousValue( */ public RemoveStateRolesChangeBuilder previousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; return this; } @@ -71,7 +71,7 @@ public RemoveStateRolesChangeBuilder previousValue( */ public RemoveStateRolesChangeBuilder plusPreviousValue( - final com.commercetools.history.models.common.StateRoleEnum... previousValue) { + final com.commercetools.history.models.common.StateRole... previousValue) { if (this.previousValue == null) { this.previousValue = new ArrayList<>(); } @@ -86,7 +86,7 @@ public RemoveStateRolesChangeBuilder plusPreviousValue( */ public RemoveStateRolesChangeBuilder nextValue( - final com.commercetools.history.models.common.StateRoleEnum... nextValue) { + final com.commercetools.history.models.common.StateRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); return this; } @@ -98,7 +98,7 @@ public RemoveStateRolesChangeBuilder nextValue( */ public RemoveStateRolesChangeBuilder nextValue( - final java.util.List nextValue) { + final java.util.List nextValue) { this.nextValue = nextValue; return this; } @@ -110,7 +110,7 @@ public RemoveStateRolesChangeBuilder nextValue( */ public RemoveStateRolesChangeBuilder plusNextValue( - final com.commercetools.history.models.common.StateRoleEnum... nextValue) { + final com.commercetools.history.models.common.StateRole... nextValue) { if (this.nextValue == null) { this.nextValue = new ArrayList<>(); } @@ -132,7 +132,7 @@ public String getChange() { * @return previousValue */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -141,7 +141,7 @@ public java.util.List get * @return nextValue */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeImpl.java index 9e7a5b2e070..d74e61fa8ad 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeImpl.java @@ -26,17 +26,17 @@ public class RemoveStateRolesChangeImpl implements RemoveStateRolesChange, Model private String change; - private java.util.List previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * create instance with all properties */ @JsonCreator RemoveStateRolesChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("previousValue") final java.util.List previousValue, - @JsonProperty("nextValue") final java.util.List nextValue) { + @JsonProperty("previousValue") final java.util.List previousValue, + @JsonProperty("nextValue") final java.util.List nextValue) { this.change = change; this.previousValue = previousValue; this.nextValue = nextValue; @@ -70,7 +70,7 @@ public String getChange() { *

    Value before the change.

    */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -78,7 +78,7 @@ public java.util.List get *

    Value after the change.

    */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } @@ -86,20 +86,20 @@ public void setChange(final String change) { this.change = change; } - public void setPreviousValue(final com.commercetools.history.models.common.StateRoleEnum... previousValue) { + public void setPreviousValue(final com.commercetools.history.models.common.StateRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); } public void setPreviousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; } - public void setNextValue(final com.commercetools.history.models.common.StateRoleEnum... nextValue) { + public void setNextValue(final com.commercetools.history.models.common.StateRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); } - public void setNextValue(final java.util.List nextValue) { + public void setNextValue(final java.util.List nextValue) { this.nextValue = nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChange.java index 19f2b5cd221..fe0bee4150a 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChange.java @@ -25,6 +25,7 @@ * RemoveTaxRateChange removeTaxRateChange = RemoveTaxRateChange.builder() * .change("{change}") * .previousValue(previousValueBuilder -> previousValueBuilder) + * .nextValue(nextValueBuilder -> nextValueBuilder) * .build() * * @@ -63,6 +64,15 @@ public interface RemoveTaxRateChange extends Change { @JsonProperty("previousValue") public TaxRate getPreviousValue(); + /** + *

    Value after the change.

    + * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public TaxRate getNextValue(); + /** * set change * @param change value to be set @@ -77,6 +87,13 @@ public interface RemoveTaxRateChange extends Change { public void setPreviousValue(final TaxRate previousValue); + /** + *

    Value after the change.

    + * @param nextValue value to be set + */ + + public void setNextValue(final TaxRate nextValue); + /** * factory method * @return instance of RemoveTaxRateChange @@ -94,6 +111,7 @@ public static RemoveTaxRateChange of(final RemoveTaxRateChange template) { RemoveTaxRateChangeImpl instance = new RemoveTaxRateChangeImpl(); instance.setChange(template.getChange()); instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); return instance; } @@ -111,6 +129,7 @@ public static RemoveTaxRateChange deepCopy(@Nullable final RemoveTaxRateChange t instance.setChange(template.getChange()); instance.setPreviousValue( com.commercetools.history.models.common.TaxRate.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.TaxRate.deepCopy(template.getNextValue())); return instance; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeBuilder.java index 12d09eb4781..c34ef62c995 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeBuilder.java @@ -16,6 +16,7 @@ * RemoveTaxRateChange removeTaxRateChange = RemoveTaxRateChange.builder() * .change("{change}") * .previousValue(previousValueBuilder -> previousValueBuilder) + * .nextValue(nextValueBuilder -> nextValueBuilder) * .build() * * @@ -27,6 +28,8 @@ public class RemoveTaxRateChangeBuilder implements Builder private com.commercetools.history.models.common.TaxRate previousValue; + private com.commercetools.history.models.common.TaxRate nextValue; + /** * set the value to the change * @param change value to be set @@ -74,6 +77,41 @@ public RemoveTaxRateChangeBuilder previousValue( return this; } + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public RemoveTaxRateChangeBuilder nextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.TaxRateBuilder.of()).build(); + return this; + } + + /** + *

    Value after the change.

    + * @param builder function to build the nextValue value + * @return Builder + */ + + public RemoveTaxRateChangeBuilder withNextValue( + Function builder) { + this.nextValue = builder.apply(com.commercetools.history.models.common.TaxRateBuilder.of()); + return this; + } + + /** + *

    Value after the change.

    + * @param nextValue value to be set + * @return Builder + */ + + public RemoveTaxRateChangeBuilder nextValue(final com.commercetools.history.models.common.TaxRate nextValue) { + this.nextValue = nextValue; + return this; + } + /** * value of change} * @return change @@ -92,6 +130,15 @@ public com.commercetools.history.models.common.TaxRate getPreviousValue() { return this.previousValue; } + /** + *

    Value after the change.

    + * @return nextValue + */ + + public com.commercetools.history.models.common.TaxRate getNextValue() { + return this.nextValue; + } + /** * builds RemoveTaxRateChange with checking for non-null required values * @return RemoveTaxRateChange @@ -99,7 +146,8 @@ public com.commercetools.history.models.common.TaxRate getPreviousValue() { public RemoveTaxRateChange build() { Objects.requireNonNull(change, RemoveTaxRateChange.class + ": change is missing"); Objects.requireNonNull(previousValue, RemoveTaxRateChange.class + ": previousValue is missing"); - return new RemoveTaxRateChangeImpl(change, previousValue); + Objects.requireNonNull(nextValue, RemoveTaxRateChange.class + ": nextValue is missing"); + return new RemoveTaxRateChangeImpl(change, previousValue, nextValue); } /** @@ -107,7 +155,7 @@ public RemoveTaxRateChange build() { * @return RemoveTaxRateChange */ public RemoveTaxRateChange buildUnchecked() { - return new RemoveTaxRateChangeImpl(change, previousValue); + return new RemoveTaxRateChangeImpl(change, previousValue, nextValue); } /** @@ -127,6 +175,7 @@ public static RemoveTaxRateChangeBuilder of(final RemoveTaxRateChange template) RemoveTaxRateChangeBuilder builder = new RemoveTaxRateChangeBuilder(); builder.change = template.getChange(); builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); return builder; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeImpl.java index 3f41264b24b..41873ae49fa 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeImpl.java @@ -28,14 +28,18 @@ public class RemoveTaxRateChangeImpl implements RemoveTaxRateChange, ModelBase { private com.commercetools.history.models.common.TaxRate previousValue; + private com.commercetools.history.models.common.TaxRate nextValue; + /** * create instance with all properties */ @JsonCreator RemoveTaxRateChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("previousValue") final com.commercetools.history.models.common.TaxRate previousValue) { + @JsonProperty("previousValue") final com.commercetools.history.models.common.TaxRate previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.TaxRate nextValue) { this.change = change; this.previousValue = previousValue; + this.nextValue = nextValue; this.type = REMOVE_TAX_RATE_CHANGE; } @@ -70,6 +74,14 @@ public com.commercetools.history.models.common.TaxRate getPreviousValue() { return this.previousValue; } + /** + *

    Value after the change.

    + */ + + public com.commercetools.history.models.common.TaxRate getNextValue() { + return this.nextValue; + } + public void setChange(final String change) { this.change = change; } @@ -78,6 +90,10 @@ public void setPreviousValue(final com.commercetools.history.models.common.TaxRa this.previousValue = previousValue; } + public void setNextValue(final com.commercetools.history.models.common.TaxRate nextValue) { + this.nextValue = nextValue; + } + @Override public boolean equals(Object o) { if (this == o) @@ -91,15 +107,21 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(change, that.change) .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) .append(type, that.type) .append(change, that.change) .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(change).append(previousValue).toHashCode(); + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); } @Override @@ -107,6 +129,7 @@ public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) .append("change", change) .append("previousValue", previousValue) + .append("nextValue", nextValue) .build(); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChange.java index 381ba0a49be..88e65c08c5f 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChange.java @@ -8,7 +8,7 @@ import javax.annotation.Nullable; import javax.validation.constraints.NotNull; -import com.commercetools.history.models.common.ChannelRoleEnum; +import com.commercetools.history.models.common.ChannelRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -60,7 +60,7 @@ public interface SetChannelRolesChange extends Change { */ @NotNull @JsonProperty("previousValue") - public List getPreviousValue(); + public List getPreviousValue(); /** *

    Value after the change.

    @@ -68,7 +68,7 @@ public interface SetChannelRolesChange extends Change { */ @NotNull @JsonProperty("nextValue") - public List getNextValue(); + public List getNextValue(); /** * set change @@ -83,14 +83,14 @@ public interface SetChannelRolesChange extends Change { */ @JsonIgnore - public void setPreviousValue(final ChannelRoleEnum... previousValue); + public void setPreviousValue(final ChannelRole... previousValue); /** *

    Value before the change.

    * @param previousValue values to be set */ - public void setPreviousValue(final List previousValue); + public void setPreviousValue(final List previousValue); /** *

    Value after the change.

    @@ -98,14 +98,14 @@ public interface SetChannelRolesChange extends Change { */ @JsonIgnore - public void setNextValue(final ChannelRoleEnum... nextValue); + public void setNextValue(final ChannelRole... nextValue); /** *

    Value after the change.

    * @param nextValue values to be set */ - public void setNextValue(final List nextValue); + public void setNextValue(final List nextValue); /** * factory method diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeBuilder.java index 9f26f6605a9..65e9bb03b9e 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeBuilder.java @@ -25,9 +25,9 @@ public class SetChannelRolesChangeBuilder implements Builder previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * set the value to the change @@ -47,7 +47,7 @@ public SetChannelRolesChangeBuilder change(final String change) { */ public SetChannelRolesChangeBuilder previousValue( - final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) { + final com.commercetools.history.models.common.ChannelRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); return this; } @@ -59,7 +59,7 @@ public SetChannelRolesChangeBuilder previousValue( */ public SetChannelRolesChangeBuilder previousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; return this; } @@ -71,7 +71,7 @@ public SetChannelRolesChangeBuilder previousValue( */ public SetChannelRolesChangeBuilder plusPreviousValue( - final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) { + final com.commercetools.history.models.common.ChannelRole... previousValue) { if (this.previousValue == null) { this.previousValue = new ArrayList<>(); } @@ -86,7 +86,7 @@ public SetChannelRolesChangeBuilder plusPreviousValue( */ public SetChannelRolesChangeBuilder nextValue( - final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) { + final com.commercetools.history.models.common.ChannelRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); return this; } @@ -98,7 +98,7 @@ public SetChannelRolesChangeBuilder nextValue( */ public SetChannelRolesChangeBuilder nextValue( - final java.util.List nextValue) { + final java.util.List nextValue) { this.nextValue = nextValue; return this; } @@ -110,7 +110,7 @@ public SetChannelRolesChangeBuilder nextValue( */ public SetChannelRolesChangeBuilder plusNextValue( - final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) { + final com.commercetools.history.models.common.ChannelRole... nextValue) { if (this.nextValue == null) { this.nextValue = new ArrayList<>(); } @@ -132,7 +132,7 @@ public String getChange() { * @return previousValue */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -141,7 +141,7 @@ public java.util.List g * @return nextValue */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeImpl.java index 658fc806f8b..b132e8aadd3 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeImpl.java @@ -26,17 +26,17 @@ public class SetChannelRolesChangeImpl implements SetChannelRolesChange, ModelBa private String change; - private java.util.List previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * create instance with all properties */ @JsonCreator SetChannelRolesChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("previousValue") final java.util.List previousValue, - @JsonProperty("nextValue") final java.util.List nextValue) { + @JsonProperty("previousValue") final java.util.List previousValue, + @JsonProperty("nextValue") final java.util.List nextValue) { this.change = change; this.previousValue = previousValue; this.nextValue = nextValue; @@ -70,7 +70,7 @@ public String getChange() { *

    Value before the change.

    */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -78,7 +78,7 @@ public java.util.List g *

    Value after the change.

    */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } @@ -86,20 +86,20 @@ public void setChange(final String change) { this.change = change; } - public void setPreviousValue(final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) { + public void setPreviousValue(final com.commercetools.history.models.common.ChannelRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); } public void setPreviousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; } - public void setNextValue(final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) { + public void setNextValue(final com.commercetools.history.models.common.ChannelRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); } - public void setNextValue(final java.util.List nextValue) { + public void setNextValue(final java.util.List nextValue) { this.nextValue = nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChange.java index 3bff2eb2c95..28d034b4315 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChange.java @@ -16,7 +16,15 @@ /** *

    Change triggered by the following update actions:

    *
      + *
    • Set Description on Cart Discounts.
    • + *
    • Set Description on Categories.
    • + *
    • Set Description on Discount Codes.
    • + *
    • Set Description on Products.
    • + *
    • Set Description on Product Discounts.
    • + *
    • Set Description on Shopping Lists.
    • + *
    • Set Description on States.
    • *
    • Set Description on Tax Categories.
    • + *
    • Set Description on Types.
    • *
    • Set Description on Zones.
    • *
    * diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChangeImpl.java index 4ad78557818..71f9fcbe868 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChangeImpl.java @@ -19,7 +19,15 @@ /** *

    Change triggered by the following update actions:

    *
      + *
    • Set Description on Cart Discounts.
    • + *
    • Set Description on Categories.
    • + *
    • Set Description on Discount Codes.
    • + *
    • Set Description on Products.
    • + *
    • Set Description on Product Discounts.
    • + *
    • Set Description on Shopping Lists.
    • + *
    • Set Description on States.
    • *
    • Set Description on Tax Categories.
    • + *
    • Set Description on Types.
    • *
    • Set Description on Zones.
    • *
    */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChange.java index ecf676be582..e3b20830e38 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChange.java @@ -25,7 +25,9 @@ *
  • Set Description on Product Discounts.
  • *
  • Set Description on Shopping Lists.
  • *
  • Set Description on States.
  • + *
  • Set Description on Tax Categories.
  • *
  • Set Description on Types.
  • + *
  • Set Description on Zones.
  • * * *
    diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChangeImpl.java index 12e490af18f..54af0646913 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChangeImpl.java @@ -26,7 +26,9 @@ *
  • Set Description on Product Discounts.
  • *
  • Set Description on Shopping Lists.
  • *
  • Set Description on States.
  • + *
  • Set Description on Tax Categories.
  • *
  • Set Description on Types.
  • + *
  • Set Description on Zones.
  • * */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChange.java index 526968b2533..a8d11d7bef9 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChange.java @@ -8,7 +8,7 @@ import javax.annotation.Nullable; import javax.validation.constraints.NotNull; -import com.commercetools.history.models.common.StateRoleEnum; +import com.commercetools.history.models.common.StateRole; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -60,7 +60,7 @@ public interface SetStateRolesChange extends Change { */ @NotNull @JsonProperty("previousValue") - public List getPreviousValue(); + public List getPreviousValue(); /** *

    Value after the change.

    @@ -68,7 +68,7 @@ public interface SetStateRolesChange extends Change { */ @NotNull @JsonProperty("nextValue") - public List getNextValue(); + public List getNextValue(); /** * set change @@ -83,14 +83,14 @@ public interface SetStateRolesChange extends Change { */ @JsonIgnore - public void setPreviousValue(final StateRoleEnum... previousValue); + public void setPreviousValue(final StateRole... previousValue); /** *

    Value before the change.

    * @param previousValue values to be set */ - public void setPreviousValue(final List previousValue); + public void setPreviousValue(final List previousValue); /** *

    Value after the change.

    @@ -98,14 +98,14 @@ public interface SetStateRolesChange extends Change { */ @JsonIgnore - public void setNextValue(final StateRoleEnum... nextValue); + public void setNextValue(final StateRole... nextValue); /** *

    Value after the change.

    * @param nextValue values to be set */ - public void setNextValue(final List nextValue); + public void setNextValue(final List nextValue); /** * factory method diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeBuilder.java index 9f31fd2d558..8036d05ed2c 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeBuilder.java @@ -25,9 +25,9 @@ public class SetStateRolesChangeBuilder implements Builder private String change; - private java.util.List previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * set the value to the change @@ -47,7 +47,7 @@ public SetStateRolesChangeBuilder change(final String change) { */ public SetStateRolesChangeBuilder previousValue( - final com.commercetools.history.models.common.StateRoleEnum... previousValue) { + final com.commercetools.history.models.common.StateRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); return this; } @@ -59,7 +59,7 @@ public SetStateRolesChangeBuilder previousValue( */ public SetStateRolesChangeBuilder previousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; return this; } @@ -71,7 +71,7 @@ public SetStateRolesChangeBuilder previousValue( */ public SetStateRolesChangeBuilder plusPreviousValue( - final com.commercetools.history.models.common.StateRoleEnum... previousValue) { + final com.commercetools.history.models.common.StateRole... previousValue) { if (this.previousValue == null) { this.previousValue = new ArrayList<>(); } @@ -85,8 +85,7 @@ public SetStateRolesChangeBuilder plusPreviousValue( * @return Builder */ - public SetStateRolesChangeBuilder nextValue( - final com.commercetools.history.models.common.StateRoleEnum... nextValue) { + public SetStateRolesChangeBuilder nextValue(final com.commercetools.history.models.common.StateRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); return this; } @@ -98,7 +97,7 @@ public SetStateRolesChangeBuilder nextValue( */ public SetStateRolesChangeBuilder nextValue( - final java.util.List nextValue) { + final java.util.List nextValue) { this.nextValue = nextValue; return this; } @@ -110,7 +109,7 @@ public SetStateRolesChangeBuilder nextValue( */ public SetStateRolesChangeBuilder plusNextValue( - final com.commercetools.history.models.common.StateRoleEnum... nextValue) { + final com.commercetools.history.models.common.StateRole... nextValue) { if (this.nextValue == null) { this.nextValue = new ArrayList<>(); } @@ -132,7 +131,7 @@ public String getChange() { * @return previousValue */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -141,7 +140,7 @@ public java.util.List get * @return nextValue */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeImpl.java index 8afd6861318..0ff78fbc99f 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeImpl.java @@ -26,17 +26,17 @@ public class SetStateRolesChangeImpl implements SetStateRolesChange, ModelBase { private String change; - private java.util.List previousValue; + private java.util.List previousValue; - private java.util.List nextValue; + private java.util.List nextValue; /** * create instance with all properties */ @JsonCreator SetStateRolesChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("previousValue") final java.util.List previousValue, - @JsonProperty("nextValue") final java.util.List nextValue) { + @JsonProperty("previousValue") final java.util.List previousValue, + @JsonProperty("nextValue") final java.util.List nextValue) { this.change = change; this.previousValue = previousValue; this.nextValue = nextValue; @@ -70,7 +70,7 @@ public String getChange() { *

    Value before the change.

    */ - public java.util.List getPreviousValue() { + public java.util.List getPreviousValue() { return this.previousValue; } @@ -78,7 +78,7 @@ public java.util.List get *

    Value after the change.

    */ - public java.util.List getNextValue() { + public java.util.List getNextValue() { return this.nextValue; } @@ -86,20 +86,20 @@ public void setChange(final String change) { this.change = change; } - public void setPreviousValue(final com.commercetools.history.models.common.StateRoleEnum... previousValue) { + public void setPreviousValue(final com.commercetools.history.models.common.StateRole... previousValue) { this.previousValue = new ArrayList<>(Arrays.asList(previousValue)); } public void setPreviousValue( - final java.util.List previousValue) { + final java.util.List previousValue) { this.previousValue = previousValue; } - public void setNextValue(final com.commercetools.history.models.common.StateRoleEnum... nextValue) { + public void setNextValue(final com.commercetools.history.models.common.StateRole... nextValue) { this.nextValue = new ArrayList<>(Arrays.asList(nextValue)); } - public void setNextValue(final java.util.List nextValue) { + public void setNextValue(final java.util.List nextValue) { this.nextValue = nextValue; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValue.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValue.java deleted file mode 100644 index f0d5cb5bc5d..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValue.java +++ /dev/null @@ -1,141 +0,0 @@ - -package com.commercetools.history.models.common; - -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.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.annotation.*; - -import io.vrap.rmf.base.client.utils.Generated; - -/** - *

    A localized enum value must be unique within the enum, else a DuplicateEnumValues error is returned.

    - * - *
    - * Example to create an instance using the builder pattern - *
    - *
    
    - *     AttributeLocalizedEnumValue attributeLocalizedEnumValue = AttributeLocalizedEnumValue.builder()
    - *             .key("{key}")
    - *             .label(labelBuilder -> labelBuilder)
    - *             .build()
    - * 
    - *
    - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -@JsonDeserialize(as = AttributeLocalizedEnumValueImpl.class) -public interface AttributeLocalizedEnumValue { - - /** - *

    Key of the value used as a programmatic identifier, for example in facets & filters.

    - * @return key - */ - @NotNull - @JsonProperty("key") - public String getKey(); - - /** - *

    Descriptive, localized label of the value.

    - * @return label - */ - @NotNull - @Valid - @JsonProperty("label") - public LocalizedString getLabel(); - - /** - *

    Key of the value used as a programmatic identifier, for example in facets & filters.

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

    Descriptive, localized label of the value.

    - * @param label value to be set - */ - - public void setLabel(final LocalizedString label); - - /** - * factory method - * @return instance of AttributeLocalizedEnumValue - */ - public static AttributeLocalizedEnumValue of() { - return new AttributeLocalizedEnumValueImpl(); - } - - /** - * factory method to create a shallow copy AttributeLocalizedEnumValue - * @param template instance to be copied - * @return copy instance - */ - public static AttributeLocalizedEnumValue of(final AttributeLocalizedEnumValue template) { - AttributeLocalizedEnumValueImpl instance = new AttributeLocalizedEnumValueImpl(); - instance.setKey(template.getKey()); - instance.setLabel(template.getLabel()); - return instance; - } - - /** - * factory method to create a deep copy of AttributeLocalizedEnumValue - * @param template instance to be copied - * @return copy instance - */ - @Nullable - public static AttributeLocalizedEnumValue deepCopy(@Nullable final AttributeLocalizedEnumValue template) { - if (template == null) { - return null; - } - AttributeLocalizedEnumValueImpl instance = new AttributeLocalizedEnumValueImpl(); - instance.setKey(template.getKey()); - instance.setLabel(com.commercetools.history.models.common.LocalizedString.deepCopy(template.getLabel())); - return instance; - } - - /** - * builder factory method for AttributeLocalizedEnumValue - * @return builder - */ - public static AttributeLocalizedEnumValueBuilder builder() { - return AttributeLocalizedEnumValueBuilder.of(); - } - - /** - * create builder for AttributeLocalizedEnumValue instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static AttributeLocalizedEnumValueBuilder builder(final AttributeLocalizedEnumValue template) { - return AttributeLocalizedEnumValueBuilder.of(template); - } - - /** - * accessor map function - * @param mapped type - * @param helper function to map the object - * @return mapped value - */ - default T withAttributeLocalizedEnumValue(Function helper) { - return helper.apply(this); - } - - /** - * gives a TypeReference for usage with Jackson DataBind - * @return TypeReference - */ - public static com.fasterxml.jackson.core.type.TypeReference typeReference() { - return new com.fasterxml.jackson.core.type.TypeReference() { - @Override - public String toString() { - return "TypeReference"; - } - }; - } -} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueBuilder.java deleted file mode 100644 index a9ace53f812..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueBuilder.java +++ /dev/null @@ -1,133 +0,0 @@ - -package com.commercetools.history.models.common; - -import java.util.*; -import java.util.function.Function; - -import io.vrap.rmf.base.client.Builder; -import io.vrap.rmf.base.client.utils.Generated; - -/** - * AttributeLocalizedEnumValueBuilder - *
    - * Example to create an instance using the builder pattern - *
    - *
    
    - *     AttributeLocalizedEnumValue attributeLocalizedEnumValue = AttributeLocalizedEnumValue.builder()
    - *             .key("{key}")
    - *             .label(labelBuilder -> labelBuilder)
    - *             .build()
    - * 
    - *
    - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class AttributeLocalizedEnumValueBuilder implements Builder { - - private String key; - - private com.commercetools.history.models.common.LocalizedString label; - - /** - *

    Key of the value used as a programmatic identifier, for example in facets & filters.

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

    Descriptive, localized label of the value.

    - * @param builder function to build the label value - * @return Builder - */ - - public AttributeLocalizedEnumValueBuilder label( - Function builder) { - this.label = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()).build(); - return this; - } - - /** - *

    Descriptive, localized label of the value.

    - * @param builder function to build the label value - * @return Builder - */ - - public AttributeLocalizedEnumValueBuilder withLabel( - Function builder) { - this.label = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()); - return this; - } - - /** - *

    Descriptive, localized label of the value.

    - * @param label value to be set - * @return Builder - */ - - public AttributeLocalizedEnumValueBuilder label( - final com.commercetools.history.models.common.LocalizedString label) { - this.label = label; - return this; - } - - /** - *

    Key of the value used as a programmatic identifier, for example in facets & filters.

    - * @return key - */ - - public String getKey() { - return this.key; - } - - /** - *

    Descriptive, localized label of the value.

    - * @return label - */ - - public com.commercetools.history.models.common.LocalizedString getLabel() { - return this.label; - } - - /** - * builds AttributeLocalizedEnumValue with checking for non-null required values - * @return AttributeLocalizedEnumValue - */ - public AttributeLocalizedEnumValue build() { - Objects.requireNonNull(key, AttributeLocalizedEnumValue.class + ": key is missing"); - Objects.requireNonNull(label, AttributeLocalizedEnumValue.class + ": label is missing"); - return new AttributeLocalizedEnumValueImpl(key, label); - } - - /** - * builds AttributeLocalizedEnumValue without checking for non-null required values - * @return AttributeLocalizedEnumValue - */ - public AttributeLocalizedEnumValue buildUnchecked() { - return new AttributeLocalizedEnumValueImpl(key, label); - } - - /** - * factory method for an instance of AttributeLocalizedEnumValueBuilder - * @return builder - */ - public static AttributeLocalizedEnumValueBuilder of() { - return new AttributeLocalizedEnumValueBuilder(); - } - - /** - * create builder for AttributeLocalizedEnumValue instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static AttributeLocalizedEnumValueBuilder of(final AttributeLocalizedEnumValue template) { - AttributeLocalizedEnumValueBuilder builder = new AttributeLocalizedEnumValueBuilder(); - builder.key = template.getKey(); - builder.label = template.getLabel(); - return builder; - } - -} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueImpl.java deleted file mode 100644 index a1ac9489014..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueImpl.java +++ /dev/null @@ -1,98 +0,0 @@ - -package com.commercetools.history.models.common; - -import java.time.*; -import java.util.*; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.databind.annotation.*; - -import io.vrap.rmf.base.client.ModelBase; -import io.vrap.rmf.base.client.utils.Generated; - -import org.apache.commons.lang3.builder.EqualsBuilder; -import org.apache.commons.lang3.builder.HashCodeBuilder; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; - -/** - *

    A localized enum value must be unique within the enum, else a DuplicateEnumValues error is returned.

    - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class AttributeLocalizedEnumValueImpl implements AttributeLocalizedEnumValue, ModelBase { - - private String key; - - private com.commercetools.history.models.common.LocalizedString label; - - /** - * create instance with all properties - */ - @JsonCreator - AttributeLocalizedEnumValueImpl(@JsonProperty("key") final String key, - @JsonProperty("label") final com.commercetools.history.models.common.LocalizedString label) { - this.key = key; - this.label = label; - } - - /** - * create empty instance - */ - public AttributeLocalizedEnumValueImpl() { - } - - /** - *

    Key of the value used as a programmatic identifier, for example in facets & filters.

    - */ - - public String getKey() { - return this.key; - } - - /** - *

    Descriptive, localized label of the value.

    - */ - - public com.commercetools.history.models.common.LocalizedString getLabel() { - return this.label; - } - - public void setKey(final String key) { - this.key = key; - } - - public void setLabel(final com.commercetools.history.models.common.LocalizedString label) { - this.label = label; - } - - @Override - public boolean equals(Object o) { - if (this == o) - return true; - - if (o == null || getClass() != o.getClass()) - return false; - - AttributeLocalizedEnumValueImpl that = (AttributeLocalizedEnumValueImpl) o; - - return new EqualsBuilder().append(key, that.key) - .append(label, that.label) - .append(key, that.key) - .append(label, that.label) - .isEquals(); - } - - @Override - public int hashCode() { - return new HashCodeBuilder(17, 37).append(key).append(label).toHashCode(); - } - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("key", key) - .append("label", label) - .build(); - } - -} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValue.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValue.java deleted file mode 100644 index 8142cb9bb6f..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValue.java +++ /dev/null @@ -1,139 +0,0 @@ - -package com.commercetools.history.models.common; - -import java.time.*; -import java.util.*; -import java.util.function.Function; - -import javax.annotation.Nullable; -import javax.validation.constraints.NotNull; - -import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.annotation.*; - -import io.vrap.rmf.base.client.utils.Generated; - -/** - *

    A plain enum value must be unique within the enum, else a DuplicateEnumValues error is returned.

    - * - *
    - * Example to create an instance using the builder pattern - *
    - *
    
    - *     AttributePlainEnumValue attributePlainEnumValue = AttributePlainEnumValue.builder()
    - *             .key("{key}")
    - *             .label("{label}")
    - *             .build()
    - * 
    - *
    - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -@JsonDeserialize(as = AttributePlainEnumValueImpl.class) -public interface AttributePlainEnumValue { - - /** - *

    Key of the value used as a programmatic identifier, for example in facets & filters.

    - * @return key - */ - @NotNull - @JsonProperty("key") - public String getKey(); - - /** - *

    Descriptive label of the value.

    - * @return label - */ - @NotNull - @JsonProperty("label") - public String getLabel(); - - /** - *

    Key of the value used as a programmatic identifier, for example in facets & filters.

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

    Descriptive label of the value.

    - * @param label value to be set - */ - - public void setLabel(final String label); - - /** - * factory method - * @return instance of AttributePlainEnumValue - */ - public static AttributePlainEnumValue of() { - return new AttributePlainEnumValueImpl(); - } - - /** - * factory method to create a shallow copy AttributePlainEnumValue - * @param template instance to be copied - * @return copy instance - */ - public static AttributePlainEnumValue of(final AttributePlainEnumValue template) { - AttributePlainEnumValueImpl instance = new AttributePlainEnumValueImpl(); - instance.setKey(template.getKey()); - instance.setLabel(template.getLabel()); - return instance; - } - - /** - * factory method to create a deep copy of AttributePlainEnumValue - * @param template instance to be copied - * @return copy instance - */ - @Nullable - public static AttributePlainEnumValue deepCopy(@Nullable final AttributePlainEnumValue template) { - if (template == null) { - return null; - } - AttributePlainEnumValueImpl instance = new AttributePlainEnumValueImpl(); - instance.setKey(template.getKey()); - instance.setLabel(template.getLabel()); - return instance; - } - - /** - * builder factory method for AttributePlainEnumValue - * @return builder - */ - public static AttributePlainEnumValueBuilder builder() { - return AttributePlainEnumValueBuilder.of(); - } - - /** - * create builder for AttributePlainEnumValue instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static AttributePlainEnumValueBuilder builder(final AttributePlainEnumValue template) { - return AttributePlainEnumValueBuilder.of(template); - } - - /** - * accessor map function - * @param mapped type - * @param helper function to map the object - * @return mapped value - */ - default T withAttributePlainEnumValue(Function helper) { - return helper.apply(this); - } - - /** - * gives a TypeReference for usage with Jackson DataBind - * @return TypeReference - */ - public static com.fasterxml.jackson.core.type.TypeReference typeReference() { - return new com.fasterxml.jackson.core.type.TypeReference() { - @Override - public String toString() { - return "TypeReference"; - } - }; - } -} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueBuilder.java deleted file mode 100644 index 0430668877b..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ - -package com.commercetools.history.models.common; - -import java.util.*; - -import io.vrap.rmf.base.client.Builder; -import io.vrap.rmf.base.client.utils.Generated; - -/** - * AttributePlainEnumValueBuilder - *
    - * Example to create an instance using the builder pattern - *
    - *
    
    - *     AttributePlainEnumValue attributePlainEnumValue = AttributePlainEnumValue.builder()
    - *             .key("{key}")
    - *             .label("{label}")
    - *             .build()
    - * 
    - *
    - */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class AttributePlainEnumValueBuilder implements Builder { - - private String key; - - private String label; - - /** - *

    Key of the value used as a programmatic identifier, for example in facets & filters.

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

    Descriptive label of the value.

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

    Key of the value used as a programmatic identifier, for example in facets & filters.

    - * @return key - */ - - public String getKey() { - return this.key; - } - - /** - *

    Descriptive label of the value.

    - * @return label - */ - - public String getLabel() { - return this.label; - } - - /** - * builds AttributePlainEnumValue with checking for non-null required values - * @return AttributePlainEnumValue - */ - public AttributePlainEnumValue build() { - Objects.requireNonNull(key, AttributePlainEnumValue.class + ": key is missing"); - Objects.requireNonNull(label, AttributePlainEnumValue.class + ": label is missing"); - return new AttributePlainEnumValueImpl(key, label); - } - - /** - * builds AttributePlainEnumValue without checking for non-null required values - * @return AttributePlainEnumValue - */ - public AttributePlainEnumValue buildUnchecked() { - return new AttributePlainEnumValueImpl(key, label); - } - - /** - * factory method for an instance of AttributePlainEnumValueBuilder - * @return builder - */ - public static AttributePlainEnumValueBuilder of() { - return new AttributePlainEnumValueBuilder(); - } - - /** - * create builder for AttributePlainEnumValue instance - * @param template instance with prefilled values for the builder - * @return builder - */ - public static AttributePlainEnumValueBuilder of(final AttributePlainEnumValue template) { - AttributePlainEnumValueBuilder builder = new AttributePlainEnumValueBuilder(); - builder.key = template.getKey(); - builder.label = template.getLabel(); - return builder; - } - -} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRoleEnum.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRole.java similarity index 71% rename from commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRoleEnum.java rename to commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRole.java index 190ac6a9089..f7bc8cd0987 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRoleEnum.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRole.java @@ -11,25 +11,25 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

    Describes the purpose and type of the Channel. A Channel can have one or more roles.

    + * ChannelRole */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public interface ChannelRoleEnum extends JsonEnum { +public interface ChannelRole extends JsonEnum { - ChannelRoleEnum INVENTORY_SUPPLY = ChannelRoleEnumEnum.INVENTORY_SUPPLY; + ChannelRole INVENTORY_SUPPLY = ChannelRoleEnum.INVENTORY_SUPPLY; - ChannelRoleEnum PRODUCT_DISTRIBUTION = ChannelRoleEnumEnum.PRODUCT_DISTRIBUTION; + ChannelRole PRODUCT_DISTRIBUTION = ChannelRoleEnum.PRODUCT_DISTRIBUTION; - ChannelRoleEnum ORDER_EXPORT = ChannelRoleEnumEnum.ORDER_EXPORT; + ChannelRole ORDER_EXPORT = ChannelRoleEnum.ORDER_EXPORT; - ChannelRoleEnum ORDER_IMPORT = ChannelRoleEnumEnum.ORDER_IMPORT; + ChannelRole ORDER_IMPORT = ChannelRoleEnum.ORDER_IMPORT; - ChannelRoleEnum PRIMARY = ChannelRoleEnumEnum.PRIMARY; + ChannelRole PRIMARY = ChannelRoleEnum.PRIMARY; /** - * possible values of ChannelRoleEnum + * possible values of ChannelRole */ - enum ChannelRoleEnumEnum implements ChannelRoleEnum { + enum ChannelRoleEnum implements ChannelRole { /** * InventorySupply */ @@ -56,7 +56,7 @@ enum ChannelRoleEnumEnum implements ChannelRoleEnum { PRIMARY("Primary"); private final String jsonName; - private ChannelRoleEnumEnum(final String jsonName) { + private ChannelRoleEnum(final String jsonName) { this.jsonName = jsonName; } @@ -89,14 +89,14 @@ public String toString() { String toString(); /** - * factory method for a enum value of ChannelRoleEnum + * factory method for a enum value of ChannelRole * if no enum has been found an anonymous instance will be created * @param value the enum value to be wrapped * @return enum instance */ @JsonCreator - public static ChannelRoleEnum findEnum(String value) { - return findEnumViaJsonName(value).orElse(new ChannelRoleEnum() { + public static ChannelRole findEnum(String value) { + return findEnumViaJsonName(value).orElse(new ChannelRole() { @Override public String getJsonName() { return value; @@ -118,7 +118,7 @@ public String toString() { * @param jsonName the json value to be wrapped * @return optional of enum instance */ - public static Optional findEnumViaJsonName(String jsonName) { + public static Optional findEnumViaJsonName(String jsonName) { return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); } @@ -126,8 +126,8 @@ public static Optional findEnumViaJsonName(String jsonName) { * possible enum values * @return array of possible enum values */ - public static ChannelRoleEnum[] values() { - return ChannelRoleEnumEnum.values(); + public static ChannelRole[] values() { + return ChannelRoleEnum.values(); } } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRoleEnum.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRole.java similarity index 72% rename from commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRoleEnum.java rename to commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRole.java index 899dd09661f..a680218b82b 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRoleEnum.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRole.java @@ -11,19 +11,19 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

    For some resource types, a State can fulfill the following predefined roles:

    + * StateRole */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public interface StateRoleEnum extends JsonEnum { +public interface StateRole extends JsonEnum { - StateRoleEnum REVIEW_INCLUDED_IN_STATISTICS = StateRoleEnumEnum.REVIEW_INCLUDED_IN_STATISTICS; + StateRole REVIEW_INCLUDED_IN_STATISTICS = StateRoleEnum.REVIEW_INCLUDED_IN_STATISTICS; - StateRoleEnum RETURN = StateRoleEnumEnum.RETURN; + StateRole RETURN = StateRoleEnum.RETURN; /** - * possible values of StateRoleEnum + * possible values of StateRole */ - enum StateRoleEnumEnum implements StateRoleEnum { + enum StateRoleEnum implements StateRole { /** * ReviewIncludedInStatistics */ @@ -35,7 +35,7 @@ enum StateRoleEnumEnum implements StateRoleEnum { RETURN("Return"); private final String jsonName; - private StateRoleEnumEnum(final String jsonName) { + private StateRoleEnum(final String jsonName) { this.jsonName = jsonName; } @@ -68,14 +68,14 @@ public String toString() { String toString(); /** - * factory method for a enum value of StateRoleEnum + * factory method for a enum value of StateRole * if no enum has been found an anonymous instance will be created * @param value the enum value to be wrapped * @return enum instance */ @JsonCreator - public static StateRoleEnum findEnum(String value) { - return findEnumViaJsonName(value).orElse(new StateRoleEnum() { + public static StateRole findEnum(String value) { + return findEnumViaJsonName(value).orElse(new StateRole() { @Override public String getJsonName() { return value; @@ -97,7 +97,7 @@ public String toString() { * @param jsonName the json value to be wrapped * @return optional of enum instance */ - public static Optional findEnumViaJsonName(String jsonName) { + public static Optional findEnumViaJsonName(String jsonName) { return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); } @@ -105,8 +105,8 @@ public static Optional findEnumViaJsonName(String jsonName) { * possible enum values * @return array of possible enum values */ - public static StateRoleEnum[] values() { - return StateRoleEnumEnum.values(); + public static StateRole[] values() { + return StateRoleEnum.values(); } } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateTypeEnum.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateType.java similarity index 60% rename from commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateTypeEnum.java rename to commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateType.java index 11a650f71a4..53b7b8a6ab2 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateTypeEnum.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateType.java @@ -11,31 +11,25 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

    Resource or object type the State can be assigned to.

    + * StateType */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public interface StateTypeEnum extends JsonEnum { +public interface StateType extends JsonEnum { - StateTypeEnum ORDER_STATE = StateTypeEnumEnum.ORDER_STATE; + StateType ORDER_STATE = StateTypeEnum.ORDER_STATE; - StateTypeEnum LINE_ITEM_STATE = StateTypeEnumEnum.LINE_ITEM_STATE; + StateType LINE_ITEM_STATE = StateTypeEnum.LINE_ITEM_STATE; - StateTypeEnum PRODUCT_STATE = StateTypeEnumEnum.PRODUCT_STATE; + StateType PRODUCT_STATE = StateTypeEnum.PRODUCT_STATE; - StateTypeEnum REVIEW_STATE = StateTypeEnumEnum.REVIEW_STATE; + StateType REVIEW_STATE = StateTypeEnum.REVIEW_STATE; - StateTypeEnum PAYMENT_STATE = StateTypeEnumEnum.PAYMENT_STATE; - - StateTypeEnum QUOTE_REQUEST_STATE = StateTypeEnumEnum.QUOTE_REQUEST_STATE; - - StateTypeEnum STAGED_QUOTE_STATE = StateTypeEnumEnum.STAGED_QUOTE_STATE; - - StateTypeEnum QUOTE_STATE = StateTypeEnumEnum.QUOTE_STATE; + StateType PAYMENT_STATE = StateTypeEnum.PAYMENT_STATE; /** - * possible values of StateTypeEnum + * possible values of StateType */ - enum StateTypeEnumEnum implements StateTypeEnum { + enum StateTypeEnum implements StateType { /** * OrderState */ @@ -59,25 +53,10 @@ enum StateTypeEnumEnum implements StateTypeEnum { /** * PaymentState */ - PAYMENT_STATE("PaymentState"), - - /** - * QuoteRequestState - */ - QUOTE_REQUEST_STATE("QuoteRequestState"), - - /** - * StagedQuoteState - */ - STAGED_QUOTE_STATE("StagedQuoteState"), - - /** - * QuoteState - */ - QUOTE_STATE("QuoteState"); + PAYMENT_STATE("PaymentState"); private final String jsonName; - private StateTypeEnumEnum(final String jsonName) { + private StateTypeEnum(final String jsonName) { this.jsonName = jsonName; } @@ -110,14 +89,14 @@ public String toString() { String toString(); /** - * factory method for a enum value of StateTypeEnum + * factory method for a enum value of StateType * if no enum has been found an anonymous instance will be created * @param value the enum value to be wrapped * @return enum instance */ @JsonCreator - public static StateTypeEnum findEnum(String value) { - return findEnumViaJsonName(value).orElse(new StateTypeEnum() { + public static StateType findEnum(String value) { + return findEnumViaJsonName(value).orElse(new StateType() { @Override public String getJsonName() { return value; @@ -139,7 +118,7 @@ public String toString() { * @param jsonName the json value to be wrapped * @return optional of enum instance */ - public static Optional findEnumViaJsonName(String jsonName) { + public static Optional findEnumViaJsonName(String jsonName) { return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); } @@ -147,8 +126,8 @@ public static Optional findEnumViaJsonName(String jsonName) { * possible enum values * @return array of possible enum values */ - public static StateTypeEnum[] values() { - return StateTypeEnumEnum.values(); + public static StateType[] values() { + return StateTypeEnum.values(); } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddAddressChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddAddressChangeTest.java index e8aa2cef44d..ed2f3fa75fd 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddAddressChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddAddressChangeTest.java @@ -24,8 +24,11 @@ public void buildUnchecked(AddAddressChangeBuilder builder) { @DataProvider public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { AddAddressChange.builder().change("change") }, new Object[] { - AddAddressChange.builder().nextValue(new com.commercetools.history.models.common.AddressImpl()) } }; + return new Object[][] { new Object[] { AddAddressChange.builder().change("change") }, + new Object[] { AddAddressChange.builder() + .previousValue(new com.commercetools.history.models.common.AddressImpl()) }, + new Object[] { AddAddressChange.builder() + .nextValue(new com.commercetools.history.models.common.AddressImpl()) } }; } @Test @@ -35,6 +38,14 @@ public void change() { Assertions.assertThat(value.getChange()).isEqualTo("change"); } + @Test + public void previousValue() { + AddAddressChange value = AddAddressChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.AddressImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.AddressImpl()); + } + @Test public void nextValue() { AddAddressChange value = AddAddressChange.of(); diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeTest.java index a93dd26ee11..c1eb9ac8b48 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeTest.java @@ -29,10 +29,10 @@ public static Object[][] objectBuilder() { return new Object[][] { new Object[] { AddChannelRolesChange.builder().change("change") }, new Object[] { AddChannelRolesChange.builder() .previousValue(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) }, + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) }, new Object[] { AddChannelRolesChange.builder() .nextValue(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) } }; + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) } }; } @Test @@ -45,20 +45,20 @@ public void change() { @Test public void previousValue() { AddChannelRolesChange value = AddChannelRolesChange.of(); - value.setPreviousValue(Collections - .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + value.setPreviousValue( + Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); Assertions.assertThat(value.getPreviousValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); } @Test public void nextValue() { AddChannelRolesChange value = AddChannelRolesChange.of(); - value.setNextValue(Collections - .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + value.setNextValue( + Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); Assertions.assertThat(value.getNextValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeTest.java index 7231e862ae1..6da99d0d5dc 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeTest.java @@ -26,7 +26,7 @@ public void buildUnchecked(AddLocalizedEnumValueChangeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { AddLocalizedEnumValueChange.builder().change("change") }, new Object[] { AddLocalizedEnumValueChange.builder() - .nextValue(new com.commercetools.history.models.common.AttributeLocalizedEnumValueImpl()) }, + .nextValue(new com.commercetools.history.models.change_value.LocalizedEnumValueImpl()) }, new Object[] { AddLocalizedEnumValueChange.builder().fieldName("fieldName") }, new Object[] { AddLocalizedEnumValueChange.builder().attributeName("attributeName") } }; } @@ -41,9 +41,9 @@ public void change() { @Test public void nextValue() { AddLocalizedEnumValueChange value = AddLocalizedEnumValueChange.of(); - value.setNextValue(new com.commercetools.history.models.common.AttributeLocalizedEnumValueImpl()); + value.setNextValue(new com.commercetools.history.models.change_value.LocalizedEnumValueImpl()); Assertions.assertThat(value.getNextValue()) - .isEqualTo(new com.commercetools.history.models.common.AttributeLocalizedEnumValueImpl()); + .isEqualTo(new com.commercetools.history.models.change_value.LocalizedEnumValueImpl()); } @Test diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocationChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocationChangeTest.java index 82fe2fb991a..328b1a84dea 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocationChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocationChangeTest.java @@ -24,8 +24,11 @@ public void buildUnchecked(AddLocationChangeBuilder builder) { @DataProvider public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { AddLocationChange.builder().change("change") }, new Object[] { - AddLocationChange.builder().nextValue(new com.commercetools.history.models.common.LocationImpl()) } }; + return new Object[][] { new Object[] { AddLocationChange.builder().change("change") }, + new Object[] { AddLocationChange.builder() + .previousValue(new com.commercetools.history.models.common.LocationImpl()) }, + new Object[] { AddLocationChange.builder() + .nextValue(new com.commercetools.history.models.common.LocationImpl()) } }; } @Test @@ -35,6 +38,14 @@ public void change() { Assertions.assertThat(value.getChange()).isEqualTo("change"); } + @Test + public void previousValue() { + AddLocationChange value = AddLocationChange.of(); + value.setPreviousValue(new com.commercetools.history.models.common.LocationImpl()); + Assertions.assertThat(value.getPreviousValue()) + .isEqualTo(new com.commercetools.history.models.common.LocationImpl()); + } + @Test public void nextValue() { AddLocationChange value = AddLocationChange.of(); diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeTest.java index 9ff564f8433..009bc727599 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeTest.java @@ -26,7 +26,7 @@ public void buildUnchecked(AddPlainEnumValueChangeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { AddPlainEnumValueChange.builder().change("change") }, new Object[] { AddPlainEnumValueChange.builder() - .nextValue(new com.commercetools.history.models.common.AttributePlainEnumValueImpl()) }, + .nextValue(new com.commercetools.history.models.change_value.EnumValueImpl()) }, new Object[] { AddPlainEnumValueChange.builder().attributeName("attributeName") } }; } @@ -40,9 +40,9 @@ public void change() { @Test public void nextValue() { AddPlainEnumValueChange value = AddPlainEnumValueChange.of(); - value.setNextValue(new com.commercetools.history.models.common.AttributePlainEnumValueImpl()); + value.setNextValue(new com.commercetools.history.models.change_value.EnumValueImpl()); Assertions.assertThat(value.getNextValue()) - .isEqualTo(new com.commercetools.history.models.common.AttributePlainEnumValueImpl()); + .isEqualTo(new com.commercetools.history.models.change_value.EnumValueImpl()); } @Test diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddStateRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddStateRolesChangeTest.java index b40639b2075..2b422fb62b7 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddStateRolesChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddStateRolesChangeTest.java @@ -28,10 +28,10 @@ public void buildUnchecked(AddStateRolesChangeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { AddStateRolesChange.builder().change("change") }, new Object[] { AddStateRolesChange.builder() - .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum + .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRole .findEnum("ReviewIncludedInStatistics"))) }, new Object[] { AddStateRolesChange.builder() - .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum + .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRole .findEnum("ReviewIncludedInStatistics"))) } }; } @@ -46,19 +46,19 @@ public void change() { public void previousValue() { AddStateRolesChange value = AddStateRolesChange.of(); value.setPreviousValue(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); Assertions.assertThat(value.getPreviousValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); } @Test public void nextValue() { AddStateRolesChange value = AddStateRolesChange.of(); value.setNextValue(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); Assertions.assertThat(value.getNextValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeTest.java index 6614e5f7b13..93e2564beb7 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeTest.java @@ -26,9 +26,9 @@ public void buildUnchecked(ChangeStateTypeChangeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { ChangeStateTypeChange.builder().change("change") }, new Object[] { ChangeStateTypeChange.builder() - .previousValue(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState")) }, + .previousValue(com.commercetools.history.models.common.StateType.findEnum("OrderState")) }, new Object[] { ChangeStateTypeChange.builder() - .nextValue(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState")) } }; + .nextValue(com.commercetools.history.models.common.StateType.findEnum("OrderState")) } }; } @Test @@ -41,16 +41,16 @@ public void change() { @Test public void previousValue() { ChangeStateTypeChange value = ChangeStateTypeChange.of(); - value.setPreviousValue(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState")); + value.setPreviousValue(com.commercetools.history.models.common.StateType.findEnum("OrderState")); Assertions.assertThat(value.getPreviousValue()) - .isEqualTo(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState")); + .isEqualTo(com.commercetools.history.models.common.StateType.findEnum("OrderState")); } @Test public void nextValue() { ChangeStateTypeChange value = ChangeStateTypeChange.of(); - value.setNextValue(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState")); + value.setNextValue(com.commercetools.history.models.common.StateType.findEnum("OrderState")); Assertions.assertThat(value.getNextValue()) - .isEqualTo(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState")); + .isEqualTo(com.commercetools.history.models.common.StateType.findEnum("OrderState")); } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeTest.java index 25090a4e690..46ff16b6281 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeTest.java @@ -29,10 +29,10 @@ public static Object[][] objectBuilder() { return new Object[][] { new Object[] { RemoveChannelRolesChange.builder().change("change") }, new Object[] { RemoveChannelRolesChange.builder() .previousValue(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) }, + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) }, new Object[] { RemoveChannelRolesChange.builder() .nextValue(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) } }; + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) } }; } @Test @@ -45,20 +45,20 @@ public void change() { @Test public void previousValue() { RemoveChannelRolesChange value = RemoveChannelRolesChange.of(); - value.setPreviousValue(Collections - .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + value.setPreviousValue( + Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); Assertions.assertThat(value.getPreviousValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); } @Test public void nextValue() { RemoveChannelRolesChange value = RemoveChannelRolesChange.of(); - value.setNextValue(Collections - .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + value.setNextValue( + Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); Assertions.assertThat(value.getNextValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveLocationChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveLocationChangeTest.java index 187273761fb..57f13bfab6f 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveLocationChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveLocationChangeTest.java @@ -26,7 +26,9 @@ public void buildUnchecked(RemoveLocationChangeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { RemoveLocationChange.builder().change("change") }, new Object[] { RemoveLocationChange.builder() - .previousValue(new com.commercetools.history.models.common.LocationImpl()) } }; + .previousValue(new com.commercetools.history.models.common.LocationImpl()) }, + new Object[] { RemoveLocationChange.builder() + .nextValue(new com.commercetools.history.models.common.LocationImpl()) } }; } @Test @@ -43,4 +45,12 @@ public void previousValue() { Assertions.assertThat(value.getPreviousValue()) .isEqualTo(new com.commercetools.history.models.common.LocationImpl()); } + + @Test + public void nextValue() { + RemoveLocationChange value = RemoveLocationChange.of(); + value.setNextValue(new com.commercetools.history.models.common.LocationImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.LocationImpl()); + } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeTest.java index 1938df12757..6758fcb3055 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeTest.java @@ -28,10 +28,10 @@ public void buildUnchecked(RemoveStateRolesChangeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { RemoveStateRolesChange.builder().change("change") }, new Object[] { RemoveStateRolesChange.builder() - .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum + .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRole .findEnum("ReviewIncludedInStatistics"))) }, new Object[] { RemoveStateRolesChange.builder() - .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum + .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRole .findEnum("ReviewIncludedInStatistics"))) } }; } @@ -46,19 +46,19 @@ public void change() { public void previousValue() { RemoveStateRolesChange value = RemoveStateRolesChange.of(); value.setPreviousValue(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); Assertions.assertThat(value.getPreviousValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); } @Test public void nextValue() { RemoveStateRolesChange value = RemoveStateRolesChange.of(); value.setNextValue(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); Assertions.assertThat(value.getNextValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeTest.java index 62871886b10..e131d733ac8 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeTest.java @@ -26,7 +26,9 @@ public void buildUnchecked(RemoveTaxRateChangeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { RemoveTaxRateChange.builder().change("change") }, new Object[] { RemoveTaxRateChange.builder() - .previousValue(new com.commercetools.history.models.common.TaxRateImpl()) } }; + .previousValue(new com.commercetools.history.models.common.TaxRateImpl()) }, + new Object[] { RemoveTaxRateChange.builder() + .nextValue(new com.commercetools.history.models.common.TaxRateImpl()) } }; } @Test @@ -43,4 +45,12 @@ public void previousValue() { Assertions.assertThat(value.getPreviousValue()) .isEqualTo(new com.commercetools.history.models.common.TaxRateImpl()); } + + @Test + public void nextValue() { + RemoveTaxRateChange value = RemoveTaxRateChange.of(); + value.setNextValue(new com.commercetools.history.models.common.TaxRateImpl()); + Assertions.assertThat(value.getNextValue()) + .isEqualTo(new com.commercetools.history.models.common.TaxRateImpl()); + } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeTest.java index 8dc632cf172..2007c019b6c 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeTest.java @@ -29,10 +29,10 @@ public static Object[][] objectBuilder() { return new Object[][] { new Object[] { SetChannelRolesChange.builder().change("change") }, new Object[] { SetChannelRolesChange.builder() .previousValue(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) }, + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) }, new Object[] { SetChannelRolesChange.builder() .nextValue(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) } }; + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) } }; } @Test @@ -45,20 +45,20 @@ public void change() { @Test public void previousValue() { SetChannelRolesChange value = SetChannelRolesChange.of(); - value.setPreviousValue(Collections - .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + value.setPreviousValue( + Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); Assertions.assertThat(value.getPreviousValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); } @Test public void nextValue() { SetChannelRolesChange value = SetChannelRolesChange.of(); - value.setNextValue(Collections - .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + value.setNextValue( + Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); Assertions.assertThat(value.getNextValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))); + com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))); } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetStateRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetStateRolesChangeTest.java index d70e7cdcb43..9787fa59f6a 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetStateRolesChangeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetStateRolesChangeTest.java @@ -28,10 +28,10 @@ public void buildUnchecked(SetStateRolesChangeBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { SetStateRolesChange.builder().change("change") }, new Object[] { SetStateRolesChange.builder() - .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum + .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRole .findEnum("ReviewIncludedInStatistics"))) }, new Object[] { SetStateRolesChange.builder() - .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum + .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRole .findEnum("ReviewIncludedInStatistics"))) } }; } @@ -46,19 +46,19 @@ public void change() { public void previousValue() { SetStateRolesChange value = SetStateRolesChange.of(); value.setPreviousValue(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); Assertions.assertThat(value.getPreviousValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); } @Test public void nextValue() { SetStateRolesChange value = SetStateRolesChange.of(); value.setNextValue(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); Assertions.assertThat(value.getNextValue()) .isEqualTo(Collections.singletonList( - com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics"))); + com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics"))); } } diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueTest.java deleted file mode 100644 index 5c588b38042..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueTest.java +++ /dev/null @@ -1,46 +0,0 @@ - -package com.commercetools.history.models.common; - -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 AttributeLocalizedEnumValueTest { - - @TestTemplate - @UseDataProvider("objectBuilder") - public void buildUnchecked(AttributeLocalizedEnumValueBuilder builder) { - AttributeLocalizedEnumValue attributeLocalizedEnumValue = builder.buildUnchecked(); - Assertions.assertThat(attributeLocalizedEnumValue).isInstanceOf(AttributeLocalizedEnumValue.class); - } - - @DataProvider - public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { AttributeLocalizedEnumValue.builder().key("key") }, - new Object[] { AttributeLocalizedEnumValue.builder() - .label(new com.commercetools.history.models.common.LocalizedStringImpl()) } }; - } - - @Test - public void key() { - AttributeLocalizedEnumValue value = AttributeLocalizedEnumValue.of(); - value.setKey("key"); - Assertions.assertThat(value.getKey()).isEqualTo("key"); - } - - @Test - public void label() { - AttributeLocalizedEnumValue value = AttributeLocalizedEnumValue.of(); - value.setLabel(new com.commercetools.history.models.common.LocalizedStringImpl()); - Assertions.assertThat(value.getLabel()) - .isEqualTo(new com.commercetools.history.models.common.LocalizedStringImpl()); - } -} diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueTest.java deleted file mode 100644 index 69db8556f9a..00000000000 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueTest.java +++ /dev/null @@ -1,44 +0,0 @@ - -package com.commercetools.history.models.common; - -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 AttributePlainEnumValueTest { - - @TestTemplate - @UseDataProvider("objectBuilder") - public void buildUnchecked(AttributePlainEnumValueBuilder builder) { - AttributePlainEnumValue attributePlainEnumValue = builder.buildUnchecked(); - Assertions.assertThat(attributePlainEnumValue).isInstanceOf(AttributePlainEnumValue.class); - } - - @DataProvider - public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { AttributePlainEnumValue.builder().key("key") }, - new Object[] { AttributePlainEnumValue.builder().label("label") } }; - } - - @Test - public void key() { - AttributePlainEnumValue value = AttributePlainEnumValue.of(); - value.setKey("key"); - Assertions.assertThat(value.getKey()).isEqualTo("key"); - } - - @Test - public void label() { - AttributePlainEnumValue value = AttributePlainEnumValue.of(); - value.setLabel("label"); - Assertions.assertThat(value.getLabel()).isEqualTo("label"); - } -} diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..e15f4fb6e7b --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +24801f9d8db12f7e4b991504f2dbc3af80da0dfe diff --git a/references.txt b/references.txt index 01457936474..e27c4aaa3ba 100644 --- a/references.txt +++ b/references.txt @@ -173,3 +173,4 @@ d216fff1d56706c8f7cb20b8c9d10b917b8f7781 580c5cde461a20eb43322d6bb592ac2de30eb61f abf2e5abe5909b6f2f44aa192852d2a12c5aa519 d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7 +13961e984917ee718365b354b9b0cd2ecc9a67db