Skip to content

Releases: commercetools/commercetools-sdk-java-v2

19.5.0

22 Sep 14:20
572e90b
Compare
Choose a tag to compare

What's Changed

Api changes

Required Property(s)
  • changed property variantSelection of type ProductSelectionProductAddedMessage to be optional
  • changed property variantExclusion of type ProductSelectionProductExcludedMessage to be optional
  • changed property oldVariantExclusion of type ProductSelectionVariantExclusionChangedMessage to be optional
  • changed property newVariantExclusion of type ProductSelectionVariantExclusionChangedMessage to be optional
  • changed property oldVariantSelection of type ProductSelectionVariantSelectionChangedMessage to be optional
  • changed property newVariantSelection of type ProductSelectionVariantSelectionChangedMessage to be optional
  • changed property variantSelection of type ProductSelectionProductAddedMessagePayload to be optional
  • changed property variantExclusion of type ProductSelectionProductExcludedMessagePayload to be optional
  • changed property oldVariantExclusion of type ProductSelectionVariantExclusionChangedMessagePayload to be optional
  • changed property newVariantExclusion of type ProductSelectionVariantExclusionChangedMessagePayload to be optional
  • changed property oldVariantSelection of type ProductSelectionVariantSelectionChangedMessagePayload to be optional
  • changed property newVariantSelection of type ProductSelectionVariantSelectionChangedMessagePayload to be optional
Added Property(s)
  • added property interfaceId to type MyTransactionDraft
  • added property interfaceId to type Transaction
  • added property interfaceId to type TransactionDraft
Added Type(s)
  • added type PaymentTransactionInterfaceIdSetMessage
  • added type PaymentTransactionInterfaceIdSetMessagePayload
  • added type PaymentSetTransactionInterfaceIdAction
  • Update changelog by @ct-sdks[bot] in #980
  • Update generated SDKs by @ct-sdks[bot] in #981
  • Update generated SDKs by @ct-sdks[bot] in #982
  • Update generated SDKs by @ct-sdks[bot] in #984
  • Checkout sdk by @ShipilA in #983
  • Bump io.projectreactor.netty:reactor-netty-http from 1.2.7 to 1.2.8 by @dependabot[bot] in #948
  • Update generated SDKs by @ct-sdks[bot] in #986
  • Update generated SDKs by @ct-sdks[bot] in #987
  • Update generated SDKs by @ct-sdks[bot] in #988
  • Update generated SDKs by @ct-sdks[bot] in #989
  • Update generated SDKs by @ct-sdks[bot] in #990
  • SUPPORT-35419: making custom field not required by @ShipilA in #991

Full Changelog: 19.4.0...19.5.0

19.4.0

01 Sep 12:45
4b28f9b
Compare
Choose a tag to compare

Api changes

Added Property(s)
  • added property isActive to type DiscountGroup
  • added property isActive to type DiscountGroupDraft
Added Type(s)
  • added type DiscountGroupSetIsActiveAction
  • added type MaxDiscountGroupsReachedError
  • added type GraphQLMaxDiscountGroupsReachedError
  • added type DiscountGroupIsActiveSetMessage
  • added type DiscountGroupIsActiveSetMessagePayload

What's Changed

  • Update changelog by @ct-sdks[bot] in #974
  • Update generated SDKs by @ct-sdks[bot] in #976
  • Update generated SDKs by @ct-sdks[bot] in #977
  • Update generated SDKs by @ct-sdks[bot] in #978
  • Update generated SDKs by @ct-sdks[bot] in #979

Full Changelog: 19.3.0...19.4.0

19.3.0

22 Aug 09:54
63362cb
Compare
Choose a tag to compare

What's Changed

  • Update changelog by @ct-sdks[bot] in #972
  • Update generated SDKs by @ct-sdks[bot] in #968
  • updating dependency by @ShipilA in #973 Thanks to @drazenhrgar for the report

Api changes

Added Type(s)
  • added type CustomerDefaultBillingAddressSetMessage
  • added type CustomerDefaultShippingAddressSetMessage
  • added type CustomerStoresSetMessage
  • added type CustomerDefaultBillingAddressSetMessagePayload
  • added type CustomerDefaultShippingAddressSetMessagePayload
  • added type CustomerStoresSetMessagePayload
Added Method(s)
  • added method apiRoot.withProjectKey().recurrencePolicies().withKey().delete()
  • added method apiRoot.withProjectKey().recurrencePolicies().withId().delete()

Import changes

Added Type(s)
  • added type AssociateRoleKeyReference
  • added type BusinessUnitKeyReference
  • added type BusinessUnitImportRequest
  • added type AssociateRoleInheritanceMode
  • added type BusinessUnitStatus
  • added type BusinessUnitAssociateMode
  • added type BusinessUnitApprovalRuleMode
  • added type BusinessUnitStoreMode
  • added type BusinessUnitType
  • added type AssociateRoleAssignmentDraft
  • added type AssociateDraft
  • added type BusinessUnitImport
  • added type CompanyBusinessUnitImport
  • added type DivisionBusinessUnitImport
Added Method(s)
  • added method apiRoot.withProjectKeyValue().businessUnits().importContainers().withImportContainerKeyValue().post()
Added Resource(s)
  • added resource /{projectKey}/business-units
  • added resource /{projectKey}/business-units/import-containers
  • added resource /{projectKey}/business-units/import-containers/{importContainerKey}
Added Enum(s)
  • added enum business-unit to type ImportResourceType
  • added enum associate-role to type ReferenceType
  • added enum business-unit to type ReferenceType

Full Changelog: 19.2.0...19.3.0

19.1.0

05 Aug 11:43
ed7c2eb
Compare
Choose a tag to compare

What's Changed

  • Update generated SDKs by @ct-sdks[bot] in #940
  • Update changelog by @ct-sdks[bot] in #941
  • Update generated SDKs by @ct-sdks[bot] in #942
  • Update generated SDKs by @ct-sdks[bot] in #943
  • Update generated SDKs by @ct-sdks[bot] in #944
  • Update generated SDKs by @ct-sdks[bot] in #945
  • Update generated SDKs by @ct-sdks[bot] in #946
  • Update generated SDKs by @ct-sdks[bot] in #947
  • Update generated SDKs by @ct-sdks[bot] in #949
  • Update generated SDKs by @ct-sdks[bot] in #950
  • Update generated SDKs by @ct-sdks[bot] in #951
  • Update generated SDKs by @ct-sdks[bot] in #952
  • Update generated SDKs by @ct-sdks[bot] in #953
  • Update generated SDKs by @ct-sdks[bot] in #954
  • Update generated SDKs by @ct-sdks[bot] in #955
  • Update generated SDKs by @ct-sdks[bot] in #957
  • Update generated SDKs by @ct-sdks[bot] in #961
  • Fix split packages by @jenschude in #958

Api changes

Added Type(s)
  • added type InventoryEntrySetInventoryLimitsAction
  • added type RecurringOrderDeletedMessage
  • added type RecurringOrderExpiresAtSetMessage
  • added type RecurringOrderDeletedMessagePayload
  • added type RecurringOrderExpiresAtSetMessagePayload
  • added type ProductSearchFacetResultStats
  • added type ProductSearchFacetStatsExpression
  • added type ProductSearchFacetStatsValue
  • added type RecurringOrderSetExpiresAtAction
Removed Type(s)
  • ⚠️ removed type RecurringOrderMessagePayload
Added Method(s)
  • added method apiRoot.withProjectKey().recurringOrders().withId().delete()
  • added method apiRoot.withProjectKey().recurringOrders().withKey().delete()
Added Property(s)
  • added property minCartQuantity to type InventoryEntry
  • added property maxCartQuantity to type InventoryEntry
  • added property minCartQuantity to type InventoryEntryDraft
  • added property maxCartQuantity to type InventoryEntryDraft
  • added property expiresAt to type RecurringOrderDraft
Added Enum(s)
  • added enum discount-group to type ChangeSubscriptionResourceTypeId

History changes

Added Type(s)
  • added type TooManyRequestsError
  • added type GraphQLTooManyRequestsError
  • added type GraphQLErrorObject
Changed Property(s)
  • ⚠️ changed property extensions of type GraphQLError from type object to GraphQLErrorObject

Full Changelog: 19.0.0...19.1.0

19.0.0

10 Jul 07:08
919cf89
Compare
Choose a tag to compare

Breaking Changes

The field paymentMethodInfo in type PaymentDraft and MyPaymentDraft has been changed from PaymentMethodInfo to PaymentMethodInfoDraft. For both types a backwards compatible Setter method setPaymentMethodInfo(final PaymentMethodInfo paymentMethodInfo) has been added.

New Features

Adds support for Discount Groups and Recurring Orders

What's Changed

  • Update changelog by @ct-sdks in #928
  • fix(deps): update all dependencies by @renovate in #912
  • Update DGS framework to 8.1.0 by @jenschude in #930
  • chore(deps): update github/codeql-action action to v3 by @renovate in #913
  • chore(deps): update gradle/actions digest to ac638b0 by @renovate in #919
  • chore(deps): update stefanzweifel/git-auto-commit-action action to v6 by @renovate in #920
  • Update generated SDKs by @ct-sdks in #929
  • Update generated SDKs by @ct-sdks in #931
  • Update generated SDKs by @ct-sdks in #932
  • Update generated SDKs by @ct-sdks in #933
  • Add paymentdraft mixin by @jenschude in #936
  • add MyPaymentDraft mixins by @jenschude in #937
  • Update generated SDKs by @ct-sdks in #938
  • Update generated SDKs by @ct-sdks in #939

Api changes

Added Enum(s)
  • added enum RecurringOrder to type CartOrigin
  • added enum ApplicationStoppedByGroupBestDeal to type DiscountCodeState
  • added enum discount-group to type ReferenceTypeId
  • added enum payment-method to type ReferenceTypeId
  • added enum recurrence-policy to type ReferenceTypeId
  • added enum recurring-order to type ReferenceTypeId
  • added enum payment-method to type ExtensionResourceTypeId
  • added enum RecurringOrderState to type StateTypeEnum
  • added enum recurrence-policy to type ChangeSubscriptionResourceTypeId
  • added enum recurring-order to type ChangeSubscriptionResourceTypeId
  • added enum recurring-order to type ResourceTypeId
Added Property(s)
  • added property makeInheritedAssociatesExplicit to type BusinessUnitChangeAssociateModeAction
  • added property discountGroup to type CartDiscount
  • added property discountGroup to type CartDiscountDraft
  • added property priceRoundingMode to type Cart
  • added property priceRoundingMode to type CartDraft
  • added property recurrenceInfo to type CustomLineItem
  • added property recurrenceInfo to type CustomLineItemDraft
  • added property recurrenceInfo to type LineItem
  • added property recurrenceInfo to type LineItemDraft
  • added property recurrenceInfo to type CartAddCustomLineItemAction
  • added property recurrenceInfo to type CartAddLineItemAction
  • added property recurrencePolicy to type Price
  • added property recurrencePolicy to type PriceDraft
  • added property recurrenceInfo to type MyLineItemDraft
  • added property recurrenceInfo to type MyCartAddLineItemAction
  • added property attributes to type ProductTailoringCreatedMessage
  • added property attributes to type ProductTailoringCreatedMessagePayload
  • added property priceRoundingMode to type StagedOrder
  • added property recurringOrder to type StagedOrder
  • added property recurrenceInfo to type StagedOrderAddCustomLineItemAction
  • added property recurrenceInfo to type StagedOrderAddLineItemAction
  • added property priceRoundingMode to type Order
  • added property recurringOrder to type Order
  • added property priceRoundingMode to type OrderImportDraft
  • added property token to type PaymentMethodInfo
  • added property interfaceAccount to type PaymentMethodInfo
  • added property custom to type PaymentMethodInfo
  • added property attributes to type ProductTailoringData
  • added property attributes to type ProductTailoringDraft
  • added property attributes to type ProductTailoringInStoreDraft
  • added property level to type AttributeDefinition
  • added property level to type AttributeDefinitionDraft
  • added property attributes to type ProductData
  • added property attributes to type ProductDraft
  • added property attributes to type ProductProjection
  • added property recurrencePrices to type ProductVariant
  • added property priceRoundingMode to type CartsConfiguration
  • added property taxRoundingMode to type CartsConfiguration
  • added property priceRoundingMode to type QuoteRequest
  • added property priceRoundingMode to type Quote
  • added property recurrencePolicy to type StandalonePrice
  • added property recurrencePolicy to type StandalonePriceDraft
  • added property events to type SubscriptionSetEventsAction
Changed Property(s)
  • ⚠️ changed property paymentMethodInfo of type MyPaymentDraft from type PaymentMethodInfo to PaymentMethodInfoDraft
  • ⚠️ changed property paymentMethodInfo of type PaymentDraft from type PaymentMethodInfo to PaymentMethodInfoDraft
Required Property(s)
  • changed property sortOrder of type CartDiscountDraft to be optional
Removed Property(s)
  • ⚠️ removed property messages from type SubscriptionSetEventsAction
Added Method(s)
  • added method apiRoot.withProjectKey().discountGroups().get()
  • added method apiRoot.withProjectKey().discountGroups().head()
  • added method apiRoot.withProjectKey().discountGroups().post()
  • added method apiRoot.withProjectKey().paymentMethods().get()
  • added method apiRoot.withProjectKey().paymentMethods().head()
  • added method apiRoot.withProjectKey().paymentMethods().post()
  • added method apiRoot.withProjectKey().recurringOrders().get()
  • added method apiRoot.withProjectKey().recurringOrders().head()
  • added method apiRoot.withProjectKey().recurringOrders().post()
  • added method apiRoot.withProjectKey().recurrencePolicies().get()
  • added method apiRoot.withProjectKey().recurrencePolicies().head()
  • added method apiRoot.withProjectKey().recurrencePolicies().post()
  • added method apiRoot.withProjectKey().discountGroups().withKey().get()
  • added method apiRoot.withProjectKey().discountGroups().withKey().head()
  • added method apiRoot.withProjectKey().discountGroups().withKey().post()
  • added method apiRoot.withProjectKey().discountGroups().withKey().delete()
  • added method apiRoot.withProjectKey().discountGroups().withId().get()
  • added method apiRoot.withProjectKey().discountGroups().withId().head()
  • added method apiRoot.withProjectKey().discountGroups().withId().post()
  • added method apiRoot.withProjectKey().discountGroups().withId().delete()
  • added method apiRoot.withProjectKey().paymentMethods().withKey().get()
  • added method apiRoot.withProjectKey().paymentMethods().withKey().head()
  • added method apiRoot.withProjectKey().paymentMethods().withKey().post()
  • added method apiRoot.withProjectKey().paymentMethods().withKey().delete()
  • added method apiRoot.withProjectKey().paymentMethods().withId().get()
  • added method apiRoot.withProjectKey().paymentMethods().withId().head()
  • added method apiRoot.withProjectKey().paymentMethods().withId().post()
  • added method apiRoot.withProjectKey().paymentMethods().withId().delete()
  • added method apiRoot.withProjectKey().recurringOrders().withId().get()
  • added method apiRoot.withProjectKey().recurringOrders().withId().head()
  • added method apiRoot.withProjectKey().recurringOrders().withId().post()
  • added method apiRoot.withProjectKey().recurringOrders().withKey().get()
  • added method apiRoot.withProjectKey().recurringOrders().withKey().head()
  • added method apiRoot.withProjectKey().recurringOrders().withKey().post()
  • added method apiRoot.withProjectKey().recurrencePolicies().withKey().get()
  • added method apiRoot.withProjectKey().recurrencePolicies().withKey().head()
  • added method apiRoot.withProjectKey().recurrencePolicies().withKey().post()
  • added method apiRoot.withProjectKey().recurrencePolicies().withId().get()
  • added method apiRoot.withProjectKey().recurrencePolicies().withId().head()
  • added method apiRoot.withProjectKey().recurrencePolicies().withId().post()
Added Type(s)
  • added type CartDiscountSetDiscountGroupAction
  • added type CartChangePriceRoundingModeAction
  • added type CartSetCustomLineItemRecurrenceInfoAction
  • added type CartSetLineItemRecurrenceInfoAction
  • added type DiscountGroup
  • added type DiscountGroupDraft
  • added type DiscountGroupPagedQueryResponse
  • added type DiscountGroupReference
  • added type DiscountGroupResourceIdentifier
  • added type DiscountGroupUpdate
  • added type DiscountGroupUpdateAction
  • added type DiscountGroupSetDescriptionAction
  • add...
Read more

18.3.0

20 Jun 08:01
8a87245
Compare
Choose a tag to compare

What's Changed

  • Update changelog by @ct-sdks in #910
  • chore(deps): lock file maintenance by @renovate in #904
  • chore(deps): update gradle/actions digest to 8379f6a by @renovate in #906
  • fix(deps): update all dependencies by @renovate in #895
  • chore(deps): update actions/create-github-app-token digest to df432ce by @renovate in #892
  • fix(deps): update dependency lint-staged to v16 by @renovate in #903
  • Update generated SDKs by @ct-sdks in #911
  • Update generated SDKs by @ct-sdks in #915
  • Update generated SDKs by @ct-sdks in #916
  • update Maven Release process by @jenschude in #917
  • Update generated SDKs by @ct-sdks in #918
  • Update generated SDKs by @ct-sdks in #921
  • Update generated SDKs by @ct-sdks in #922
  • update service regions by @jenschude in #923
  • support custom attributes for metrics by @jenschude in #924
  • Update generated SDKs by @ct-sdks in #925
  • Update generated SDKs by @ct-sdks in #926
  • Fix Logger with unwrapped CompletionExceptions by @jenschude in #927

Api changes

Removed Property(s)
  • ⚠️ removed property /[0-9].[0-9]*[1-9]/ from type CategoryOrderHints
  • ⚠️ removed property // from type ProductVariantChannelAvailabilityMap
Changed Property(s)
  • ⚠️ changed property filter of type SearchSorting from type SearchQueryExpression to SearchQuery
Added Property(s)
  • added property /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/ to type CategoryOrderHints
  • added property /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/ to type ProductVariantChannelAvailabilityMap

Full Changelog: 18.2.0...18.3.0

18.2.0

05 Jun 07:37
73d4a15
Compare
Choose a tag to compare

Fixes

Fixed version ranges for OkHttp and Apache clients to prevent the resolution of next major alpha versions using Maven.

What's Changed

  • Update generated SDKs by @ct-sdks in #908
  • Update generated SDKs by @ct-sdks in #909

Api changes

Added Type(s)
  • added type ExpiredCustomerEmailTokenError
  • added type ExpiredCustomerPasswordTokenError
  • added type GraphQLExpiredCustomerEmailTokenError
  • added type GraphQLExpiredCustomerPasswordTokenError
  • added type CheckoutOrderCreationFailedEvent
  • added type CheckoutPaymentAuthorizationCancelledEvent
  • added type CheckoutPaymentAuthorizationFailedEvent
  • added type CheckoutPaymentAuthorizedEvent
  • added type CheckoutPaymentCancelAuthorizationFailedEvent
  • added type CheckoutPaymentChargeFailedEvent
  • added type CheckoutPaymentChargedEvent
  • added type CheckoutPaymentRefundFailedEvent
  • added type CheckoutPaymentRefundedEvent
  • added type CheckoutMessageOrderPayloadBaseData
  • added type CheckoutMessagePaymentsPayloadBaseData
Added Property(s)
  • added property invalidateOlderTokens to type CustomerCreateEmailToken
  • added property invalidateOlderTokens to type CustomerCreatePasswordResetToken
  • added property invalidateOlderTokens to type CustomerToken
  • added property value to type CustomerEmailTokenCreatedMessage
  • added property invalidateOlderTokens to type CustomerEmailTokenCreatedMessage
  • added property value to type CustomerPasswordTokenCreatedMessage
  • added property invalidateOlderTokens to type CustomerPasswordTokenCreatedMessage
  • added property value to type CustomerEmailTokenCreatedMessagePayload
  • added property invalidateOlderTokens to type CustomerEmailTokenCreatedMessagePayload
  • added property value to type CustomerPasswordTokenCreatedMessagePayload
  • added property invalidateOlderTokens to type CustomerPasswordTokenCreatedMessagePayload
Added Enum(s)
  • added enum checkout to type EventSubscriptionResourceTypeId
  • added enum CheckoutOrderCreationFailed to type EventType
  • added enum CheckoutPaymentAuthorizationCancelled to type EventType
  • added enum CheckoutPaymentAuthorizationFailed to type EventType
  • added enum CheckoutPaymentAuthorized to type EventType
  • added enum CheckoutPaymentCancelAuthorizationFailed to type EventType
  • added enum CheckoutPaymentCharged to type EventType
  • added enum CheckoutPaymentChargeFailed to type EventType
  • added enum CheckoutPaymentRefunded to type EventType
  • added enum CheckoutPaymentRefundFailed to type EventType

Import changes

Removed Property(s)
  • ⚠️ removed property /^[a-z]{2}(-[A-Z]{2})?$/ from type SearchKeywords
  • ⚠️ removed property /^[a-z]{2}(-[A-Z]{2})?$/ from type LocalizedString
Added Property(s)
  • added property /^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/ to type SearchKeywords
  • added property /^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/ to type LocalizedString

Full Changelog: 18.1.0...18.2.0

18.1.0

03 Jun 12:42
d20843c
Compare
Choose a tag to compare

New features

Split packages

Additionally to the package commercetools-sdk-java-api we also release packages split by domain. This allows package size optimization for deployment targets with size constrains. See also https://commercetools.github.io/commercetools-sdk-java-v2/javadoc/com/commercetools/docs/meta/SizeOptimization.html

What's Changed

  • Update changelog by @ct-sdks in #891
  • Update generated SDKs by @ct-sdks in #894
  • Update generated SDKs by @ct-sdks in #897
  • Update generated SDKs by @ct-sdks in #898
  • Update generated SDKs by @ct-sdks in #899
  • Package split by @jenschude in #900
  • Update generated SDKs by @ct-sdks in #901
  • Package split example by @jenschude in #902
  • Update generated SDKs by @ct-sdks in #905

Import changes

Removed Property(s)
  • ⚠️ removed property /^[a-z]{2}(-[A-Z]{2})?$/ from type SearchKeywords
  • ⚠️ removed property /^[a-z]{2}(-[A-Z]{2})?$/ from type LocalizedString
Added Property(s)
  • added property /^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/ to type SearchKeywords
  • added property /^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/ to type LocalizedString

Full Changelog: 18.0.0...18.1.0

18.1.0-RC.1

23 May 06:48
52941ff
Compare
Choose a tag to compare
18.1.0-RC.1 Pre-release
Pre-release

New features

Split packages

Additionally to the package commercetools-sdk-java-api we also release packages split by domain. This allows package size optimization for deployment targets with size constrains.

What's Changed

  • Update changelog by @ct-sdks in #891
  • Update generated SDKs by @ct-sdks in #894
  • Update generated SDKs by @ct-sdks in #897
  • Update generated SDKs by @ct-sdks in #898
  • Update generated SDKs by @ct-sdks in #899
  • Package split by @jenschude in #900
  • Update generated SDKs by @ct-sdks in #901
  • Package split example by @jenschude in #902

Import changes

Removed Property(s)
  • ⚠️ removed property /^[a-z]{2}(-[A-Z]{2})?$/ from type SearchKeywords
  • ⚠️ removed property /^[a-z]{2}(-[A-Z]{2})?$/ from type LocalizedString
Added Property(s)
  • added property /^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/ to type SearchKeywords
  • added property /^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/ to type LocalizedString

Full Changelog: 18.0.0...18.1.0-RC.1

18.0.0

02 May 10:22
e3db8cc
Compare
Choose a tag to compare

New Features

Java 11

The SDK is built with Java 11 now. We will also take advantage of different language features in future releases.

New Request Policy Middleware

It's now possible to create request policies based on the requests context. E.g. different timeouts and retries for POST and GET requests:

ProjectApiRoot b = ApiRootBuilder.of()
       ...
        .withRequestPolicies(policies -> policies
                .withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.POST),
                    policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(10)))
                .withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.GET),
                    policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(1)))
                .withAllOtherRequests(policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(60))))
        .build(projectKey);

What's Changed

  • fix Delivery discriminators by @jenschude in #866
  • Update generated SDKs by @ct-sdks in #867
  • Update changelog by @ct-sdks in #865
  • Update generated SDKs by @ct-sdks in #870
  • Update java to 11 by @lojzatran in #844
  • Update generated SDKs by @ct-sdks in #871
  • Update generated SDKs by @ct-sdks in #872
  • Update generated SDKs by @ct-sdks in #873
  • Update generated SDKs by @ct-sdks in #877
  • Update generated SDKs by @ct-sdks in #879
  • DEVX-588 adding query predicate builder documentation by @barbara79 in #874
  • Update generated SDKs by @ct-sdks in #883
  • Update generated SDKs by @ct-sdks in #885
  • Update generated SDKs by @ct-sdks in #886
  • Add request specific policies by @jenschude in #882
  • chore(deps): lock file maintenance by @renovate in #881
  • chore(deps): update actions/setup-java digest to c5195ef by @renovate in #875
  • chore(deps): update actions/create-github-app-token action to v2 by @renovate in #869
  • chore(deps): update github/codeql-action digest to 97a2bfd by @renovate in #868
  • fix(deps): update all dependencies by @renovate in #858
  • revert junit-jupiter by @jenschude in #887
  • Update generated SDKs by @ct-sdks in #888
  • remove dataprovider library by @jenschude in #889
  • update junit by @jenschude in #890

Full Changelog: 17.30.0...18.0.0