Skip to content

Commit

Permalink
Merge pull request #610 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
kodiakhq[bot] authored Apr 18, 2024
2 parents 0874ac6 + de92f9b commit c85d70c
Show file tree
Hide file tree
Showing 128 changed files with 3,579 additions and 444 deletions.
172 changes: 42 additions & 130 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,158 +1,70 @@
**Api changes**

<details>
<summary>Added Enum(s)</summary>
<summary>Added Property(s)</summary>

- added enum `product-tailoring` to type `ReferenceTypeId`
- added enum `ManuallySuspended` to type `SubscriptionHealthStatus`
- added property `attributedTo` to type `CreatedBy`
- added property `attributedTo` to type `LastModifiedBy`
- added property `postFilter` to type `ProductSearchRequest`
</details>


<details>
<summary>Added Property(s)</summary>
<summary>Required Property(s)</summary>

- added property `taxPortions` to type `TaxedItemPrice`
- added property `productsSearch` to type `SearchIndexingConfiguration`
- added property `mode` to type `ProjectChangeProductSearchIndexingEnabledAction`
- :warning: changed property `stores` of type `BusinessUnit` to be required
- :warning: changed property `stores` of type `Company` to be required
- :warning: changed property `stores` of type `Division` to be required
- :warning: changed property `stores` of type `BusinessUnitSetStoresAction` to be required
- :warning: changed property `stores` of type `CartDiscountSetStoresAction` to be required
- :warning: changed property `stores` of type `Customer` to be required
- :warning: changed property `stores` of type `CustomerSetStoresAction` to be required
</details>


<details>
<summary>Added Method(s)</summary>
<summary>Added Type(s)</summary>

- added method `apiRoot.withProjectKey().productTailoring().get()`
- added method `apiRoot.withProjectKey().productTailoring().post()`
- added method `apiRoot.withProjectKey().products().search().post()`
- added method `apiRoot.withProjectKey().products().search().head()`
- added method `apiRoot.withProjectKey().productTailoring().withKey().get()`
- added method `apiRoot.withProjectKey().productTailoring().withKey().post()`
- added method `apiRoot.withProjectKey().productTailoring().withKey().delete()`
- added method `apiRoot.withProjectKey().productTailoring().withId().get()`
- added method `apiRoot.withProjectKey().productTailoring().withId().post()`
- added method `apiRoot.withProjectKey().productTailoring().withId().delete()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productTailoring().get()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productTailoring().post()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductId().productTailoring().get()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductId().productTailoring().post()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductId().productTailoring().delete()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductKey().productTailoring().get()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductKey().productTailoring().post()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductKey().productTailoring().delete()`
- added type `Attribution`
- added type `AttributionSource`
</details>


<details>
<summary>Removed Method(s)</summary>

- :warning: removed method `apiRoot.withProjectKey().products().search().head()`
</details>

**Import changes**

<details>
<summary>Added Resource(s)</summary>

- added resource `/{projectKey}/product-tailoring`
- added resource `/{projectKey}/products/search`
- added resource `/{projectKey}/product-tailoring/key={key}`
- added resource `/{projectKey}/product-tailoring/{ID}`
- added resource `/{projectKey}/in-store/key={storeKey}/product-tailoring`
- added resource `/{projectKey}/in-store/key={storeKey}/products`
- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}`
- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}`
- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring`
- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring`
- added resource `/{projectKey}/discount-codes`
- added resource `/{projectKey}/discount-codes/import-containers`
- added resource `/{projectKey}/discount-codes/import-containers/{importContainerKey}`
</details>


<details>
<summary>Added Method(s)</summary>

- added method `apiRoot.withProjectKeyValue().discountCodes().importContainers().withImportContainerKeyValue().post()`
</details>


<details>
<summary>Added Type(s)</summary>

- added type `LockedFieldError`
- added type `GraphQLLockedFieldError`
- added type `ProductTailoringCreatedMessage`
- added type `ProductTailoringDeletedMessage`
- added type `ProductTailoringDescriptionSetMessage`
- added type `ProductTailoringNameSetMessage`
- added type `ProductTailoringPublishedMessage`
- added type `ProductTailoringSlugSetMessage`
- added type `ProductTailoringUnpublishedMessage`
- added type `ProductTailoringCreatedMessagePayload`
- added type `ProductTailoringDeletedMessagePayload`
- added type `ProductTailoringDescriptionSetMessagePayload`
- added type `ProductTailoringNameSetMessagePayload`
- added type `ProductTailoringPublishedMessagePayload`
- added type `ProductTailoringSlugSetMessagePayload`
- added type `ProductTailoringUnpublishedMessagePayload`
- added type `ProductPagedSearchResponse`
- added type `ProductSearchErrorResponse`
- added type `ProductSearchMatchingVariantEntry`
- added type `ProductSearchMatchingVariants`
- added type `ProductSearchProjectionParams`
- added type `ProductSearchRequest`
- added type `ProductSearchResult`
- added type `ProductSearchFacetCountExpression`
- added type `ProductSearchFacetCountLevelEnum`
- added type `ProductSearchFacetCountValue`
- added type `ProductSearchFacetDistinctBucketSortBy`
- added type `ProductSearchFacetDistinctBucketSortExpression`
- added type `ProductSearchFacetDistinctExpression`
- added type `ProductSearchFacetDistinctValue`
- added type `ProductSearchFacetExpression`
- added type `ProductSearchFacetRangesExpression`
- added type `ProductSearchFacetRangesFacetRange`
- added type `ProductSearchFacetRangesValue`
- added type `ProductSearchFacetResult`
- added type `ProductSearchFacetResultBucket`
- added type `ProductSearchFacetResultBucketEntry`
- added type `ProductSearchFacetResultCount`
- added type `ProductSearchFacetScope`
- added type `ProductSearchFacetScopeEnum`
- added type `ProductTailoring`
- added type `ProductTailoringData`
- added type `ProductTailoringDraft`
- added type `ProductTailoringInStoreDraft`
- added type `ProductTailoringPagedQueryResponse`
- added type `ProductTailoringReference`
- added type `ProductTailoringResourceIdentifier`
- added type `ProductTailoringUpdate`
- added type `ProductTailoringUpdateAction`
- added type `ProductTailoringPublishAction`
- added type `ProductTailoringSetDescriptionAction`
- added type `ProductTailoringSetMetaAttributesAction`
- added type `ProductTailoringSetMetaDescriptionAction`
- added type `ProductTailoringSetMetaKeywordsAction`
- added type `ProductTailoringSetMetaTitleAction`
- added type `ProductTailoringSetNameAction`
- added type `ProductTailoringSetSlugAction`
- added type `ProductTailoringUnpublishAction`
- added type `ProductSearchIndexingMode`
- added type `ProductSearchStatus`
- added type `SearchAndExpression`
- added type `SearchAnyValue`
- added type `SearchCompoundExpression`
- added type `SearchDateRangeExpression`
- added type `SearchDateRangeValue`
- added type `SearchDateTimeRangeExpression`
- added type `SearchDateTimeRangeValue`
- added type `SearchExactExpression`
- added type `SearchExistsExpression`
- added type `SearchExistsValue`
- added type `SearchFieldType`
- added type `SearchFilterExpression`
- added type `SearchFullTextExpression`
- added type `SearchFullTextPrefixExpression`
- added type `SearchFullTextPrefixValue`
- added type `SearchFullTextValue`
- added type `SearchLongRangeExpression`
- added type `SearchLongRangeValue`
- added type `SearchMatchType`
- added type `SearchMatchingVariant`
- added type `SearchNotExpression`
- added type `SearchNumberRangeExpression`
- added type `SearchNumberRangeValue`
- added type `SearchOrExpression`
- added type `SearchPrefixExpression`
- added type `SearchQuery`
- added type `SearchQueryExpression`
- added type `SearchQueryExpressionValue`
- added type `SearchSortMode`
- added type `SearchSortOrder`
- added type `SearchSorting`
- added type `SearchTimeRangeExpression`
- added type `SearchTimeRangeValue`
- added type `SearchWildCardExpression`
- added type `DiscountCodeImportRequest`
- added type `DiscountCodeImport`
</details>


<details>
<summary>Added Enum(s)</summary>

- added enum `discount-code` to type `ImportResourceType`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,17 @@ input AttributeTypeDraft {
ltext: SimpleAttributeTypeDraft
}

type Attribution {
clientId: String
source: AttributionSource!
userRef: Reference
}

enum AttributionSource {
Export
Import
}

"AuthenticationMode values."
enum AuthenticationMode {
ExternalAuth
Expand Down Expand Up @@ -4672,6 +4683,7 @@ type Initiator {
isPlatformClient: Boolean
externalUserId: String
anonymousId: String
attributedTo: Attribution
clientId: String
customerRef: Reference
userRef: Reference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Gets the current or staged representation of a Product by its ID in the specified Store. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price and inventory.</p>
* <p>Gets the current or staged representation of a Product by its ID in the specified Store. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price, and inventory.</p>
* <p>If ProductSelection is used, it affects the availability of the Product in the specified Store.</p>
* <p>When used with an API Client that has the <code>view_published_products:{projectKey}</code> scope, this endpoint only returns published (current) Product Projections.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,4 @@ public ByProjectKeyProductsSearchPost post(
return post(op.apply(com.commercetools.api.models.product_search.ProductSearchRequestBuilder.of()).build());
}

public ByProjectKeyProductsSearchHead head() {
return new ByProjectKeyProductsSearchHead(apiHttpClient, projectKey);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public interface ApiClient extends com.commercetools.api.models.Identifiable<Api
public ZonedDateTime getDeleteAt();

/**
* <p>Date and time (UTC) the APIClient was initially created at.</p>
* <p>Date and time (UTC) the APIClient was initially created.</p>
* @return createdAt
*/

Expand Down Expand Up @@ -149,7 +149,7 @@ public interface ApiClient extends com.commercetools.api.models.Identifiable<Api
public void setDeleteAt(final ZonedDateTime deleteAt);

/**
* <p>Date and time (UTC) the APIClient was initially created at.</p>
* <p>Date and time (UTC) the APIClient was initially created.</p>
* @param createdAt value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public ApiClientBuilder deleteAt(@Nullable final java.time.ZonedDateTime deleteA
}

/**
* <p>Date and time (UTC) the APIClient was initially created at.</p>
* <p>Date and time (UTC) the APIClient was initially created.</p>
* @param createdAt value to be set
* @return Builder
*/
Expand Down Expand Up @@ -206,7 +206,7 @@ public java.time.ZonedDateTime getDeleteAt() {
}

/**
* <p>Date and time (UTC) the APIClient was initially created at.</p>
* <p>Date and time (UTC) the APIClient was initially created.</p>
* @return createdAt
*/

Expand Down
Loading

0 comments on commit c85d70c

Please sign in to comment.