Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# ChangeLog

## 0.3.0 (11/26/2026)

### Breaking changes

- eBay lists the Post-Order API as legacy, so it is removed. For returns, cancellations and inquiries, use the GraphQL operations.
- The return rule listing group and in-store return operations are no longer in eBay's GraphQL schema, so they are removed.

- The following clients were removed:
- `PostOrderApiClient`
- The following operations were removed from `OrderManagementGraphQLClient`:
- `addListingsToReturnRuleListingGroupAsync`
- `createInStoreReturnAsync`
- `createReturnRuleListingGroupAsync`
- `deleteReturnRuleListingGroupAsync`
- `returnRuleListingGroupAsync`
- The following members were removed from `OrderManagementClient`:
- `postOrderApi`
- The following operations changed signature on `FulfillmentClient`:
| Operation | Previous signature | New signature |
| --- | --- | --- |
| `getOrderAsync` | `getOrderAsync(String orderId, String fieldGroups, String accessToken, RequestOptions requestOptions)` | `getOrderAsync(String orderId, com.ebay.ordermanagement.generated.fulfillment.order.item.GetFieldGroupsQueryParameterType fieldGroups, String accessToken, RequestOptions requestOptions)` |
| `getOrdersAsync` | `getOrdersAsync(String fieldGroups, String filter, String limit, String offset, String orderIds, String accessToken, RequestOptions requestOptions)` | `getOrdersAsync(com.ebay.ordermanagement.generated.fulfillment.order.GetFieldGroupsQueryParameterType fieldGroups, String filter, String limit, String offset, String orderIds, String accessToken, RequestOptions requestOptions)` |

### Added

- The following operations were added to `FulfillmentClient`:
- `createAdditionalShippingFulfillmentAsync`

- Local mock servers: a base URL may use plain `http` when its host is a loopback host (`127.0.0.1`, `::1` or `localhost`) that you also pass in `allowedHosts`, for example `List.of("127.0.0.1")`. Every other host still requires `https`. `OrderManagementConfiguration.LOOPBACK_HOSTS` lists the loopback hosts.

### Changed

- Updated the `fulfillment` OpenAPI document to the latest definitions.
- Updated the GraphQL schema to the latest definitions.
- `OrderManagementConfiguration.isTrustedUrl` and the auth provider and GraphQL clients apply the same rule.
- Hosts are compared lowercased and without IPv6 brackets, so `[::1]` and `::1` match.
- A rejected base URL now says whether the scheme or the host is not trusted.
- Fixed multipart uploads so `uploadEvidenceFileAsync` send the file through Kiota.

## 0.2.3 (10/28/2026)

### Dependencies
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "com.ebay"
version = "0.2.3"
version = "0.3.0"

java {
toolchain { languageVersion.set(JavaLanguageVersion.of(17)) }
Expand Down Expand Up @@ -91,7 +91,7 @@ publishing {
from(components["java"])
groupId = "com.ebay"
artifactId = "order-management-java-sdk"
version = "0.2.3"
version = "0.3.0"
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@

set -euo pipefail

KIOTA_VERSION=$(kiota --version 2>/dev/null | cut -d'+' -f1)
if [ "$KIOTA_VERSION" != "1.35.0" ]; then
echo "Error: kiota 1.35.0 required, found '${KIOTA_VERSION:-not installed}'"
echo "See https://learn.microsoft.com/en-us/openapi/kiota/install for installation options."
exit 1
fi

echo "Generating Order Management Java SDK with Kiota..."
rm -rf src/main/java/com/ebay/ordermanagement/generated

echo "Generating FulfillmentApiClient..."
kiota generate -l java -d specs/openapi/fulfillment.json \
kiota generate -l java -d specs/kiota/fulfillment.json \
-c FulfillmentApiClient -n com.ebay.ordermanagement.generated.fulfillment \
-o src/main/java/com/ebay/ordermanagement/generated/fulfillment --ebc --co

Expand All @@ -29,11 +36,6 @@ kiota generate -l java -d specs/openapi/logistics.json \
-c LogisticsApiClient -n com.ebay.ordermanagement.generated.logistics \
-o src/main/java/com/ebay/ordermanagement/generated/logistics --ebc --co

echo "Generating PostOrderApiApiClient..."
kiota generate -l java -d specs/openapi/post-order-api.json \
-c PostOrderApiApiClient -n com.ebay.ordermanagement.generated.postorderapi \
-o src/main/java/com/ebay/ordermanagement/generated/postorderapi --ebc --co

echo "Adding license headers to generated files..."
./add-license-headers.sh ./src
echo "Code generation complete!"
Loading