Skip to content

feat: regenerate SDK from sdk-generator master (v1.0.0) + latest API spec#9

Merged
CuberL merged 2 commits into
masterfrom
feat/regenerate-sdk-no-format
Jul 17, 2026
Merged

feat: regenerate SDK from sdk-generator master (v1.0.0) + latest API spec#9
CuberL merged 2 commits into
masterfrom
feat/regenerate-sdk-no-format

Conversation

@CuberL

@CuberL CuberL commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

  • sdk-generator: master @ 3b63448 (v1.0.0)
  • API spec: docs_core.postmenAPI.com @ update-doc-add-automatic (f91fb04)
  • Version bump: 3.0.13.2.0
  • No formatting applied (raw generator output)

Changes

  • New: SpecificShipperAccounts API — FedEx-specific shipper account create & update endpoints
  • New: LocationV3CourierSpecific model
  • New: RegulatoryDataItemV3 model (CPSC compliance)
  • New: PostLabelsRequest.automatic field — apply org automation rules on label creation
  • Removed: ShipperAccountV3Settings, PostShipperAccountsRequestSettings (replaced by FedEx-specific models)
  • Updated: README (rate limit headers docs, version bump)
  • Preserved: bouncycastle at 1.84 (dependabot bump from master)

Notes

  • Do NOT create a git tag — tagging triggers Maven publish CI and releases to Maven Central

…spec (no format)

- sdk-generator: master @ 3b63448 (v1.0.0)
- API spec: docs_core.postmenAPI.com @ update-doc-add-automatic (f91fb04)
- Version bump: 3.0.1 → 3.2.0
- New: SpecificShipperAccounts (FedEx create + update), LocationV3CourierSpecific, RegulatoryDataItemV3, PostLabelsRequest.automatic field
- Removed: ShipperAccountV3Settings, PostShipperAccountsRequestSettings (replaced by FedEx-specific models)
- bouncycastle kept at 1.84 (dependabot bump preserved)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aftership-abas
aftership-abas self-requested a review July 17, 2026 07:05

@aftership-abas aftership-abas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes Requested. The generated API models and documentation need to match the checked-in source contract before this SDK release.

Review model: gpt-5.6-terra

Comment thread README.md Outdated
| auth_type | enum | | Default value: `AuthType.API_KEY` <br > AES authentication: `AuthType.AES` <br > RSA authentication: `AuthType.RSA` |
| api_secret | string | | Required if the authentication type is `AuthType.AES` or `AuthType.RSA` |
| domain | string | | AfterShip API domain. Default value: https://sandbox-api.aftership.com |
| domain | string | | AfterShip API domain. Default value: https://api.aftership.com |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 The source still sets ShippingSdk.DEFAULT_DOMAIN to https://sandbox-api.aftership.com; only this README line changed. A caller that follows the documented default will expect production but the SDK sends requests to sandbox. Keep the documentation and runtime default aligned.

Comment thread README.md
request.setDescription("valid_value");
PostV3CouriersFedexShipperAccountsRequestCredentials credentials = new PostV3CouriersFedexShipperAccountsRequestCredentials();
request.setCredentials(credentials);
request.setAddress();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 This example does not compile: the generated request only exposes setAddress(Map<String, Object>), not a zero-argument setter. Show construction of an address map (or change the generated type) so users can copy this example.

import com.google.gson.annotations.SerializedName;
import com.aftership.shipping.base.Resource;

public class RegulatoryDataItemV3 extends Resource {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 The source schema defines two regulatory_data variants with required CPSC fields, but this generated class has no fields. Gson can therefore only serialize each entry as {}, making the newly exposed regulatory-data request unusable. Update the generator/source mapping to preserve the variant fields.

import com.google.gson.annotations.SerializedName;
import com.aftership.shipping.base.Resource;

public class LocationV3CourierSpecific extends Resource {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 The source schema defines courier_specific.ups.public_access_point_id, but this generated model has no mapped members. Gson will discard that value during deserialization, so callers cannot consume the newly exposed location data. Generate the nested UPS model and field mapping.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CuberL
CuberL merged commit e2194b2 into master Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants