Skip to content

feat: send width height length during export - #516

Merged
joerivanveen merged 2 commits into
mainfrom
feat/send-width-height-length-during-export
Aug 6, 2026
Merged

feat: send width height length during export#516
joerivanveen merged 2 commits into
mainfrom
feat/send-width-height-length-during-export

Conversation

@joerivanveen

Copy link
Copy Markdown
Contributor

INT-1775

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.32%. Comparing base (0b62a56) to head (5a43ddb).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #516      +/-   ##
============================================
+ Coverage     94.30%   94.32%   +0.01%     
- Complexity     2400     2409       +9     
============================================
  Files           352      352              
  Lines          7696     7716      +20     
============================================
+ Hits           7258     7278      +20     
  Misses          438      438              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@joerivanveen
joerivanveen marked this pull request as ready for review August 4, 2026 13:11
@joerivanveen
joerivanveen requested a review from a team as a code owner August 4, 2026 13:11
Copilot AI lite review requested due to automatic review settings August 4, 2026 13:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the shipment export payload to include package dimensions (width/height/length) alongside weight, ensuring the MyParcel API receives the full set of physical properties when available.

Changes:

  • Include length, width, and height in physical_properties when encoding shipments for export.
  • Persist dimensions in PdkPhysicalProperties::toStorableArray() so they can be stored and later re-used for exports.
  • Add/extend unit tests to verify dimension storage behavior (including “empty string should not become 0”).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tests/Unit/App/Order/Model/PdkPhysicalPropertiesTest.php Adds coverage for dimension persistence, omission rules, and clearing behavior.
src/Shipment/Request/PostShipmentsRequest.php Encodes and exports dimensions in physical_properties for shipment requests.
src/App/Order/Model/PdkPhysicalProperties.php Stores dimensions and adds setters to prevent empty-string casts to 0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Shipment/Request/PostShipmentsRequest.php
Comment thread src/Shipment/Request/PostShipmentsRequest.php
@github-project-automation github-project-automation Bot moved this from Todo to Needs work in PDK Aug 4, 2026
@myparcel-bot myparcel-bot Bot added the changes requested (Auto) label Aug 4, 2026
@myparcel-bot myparcel-bot Bot removed the changes requested (Auto) label Aug 4, 2026
Comment thread src/Shipment/Request/PostShipmentsRequest.php
@myparcel-bot myparcel-bot Bot added the changes requested (Auto) label Aug 5, 2026
@myparcel-bot myparcel-bot Bot added approved (Auto) and removed changes requested (Auto) labels Aug 5, 2026
@myparcel-bot
myparcel-bot Bot force-pushed the feat/send-width-height-length-during-export branch from a56bbf2 to b928094 Compare August 5, 2026 09:02
@myparcel-bot
myparcel-bot Bot force-pushed the feat/send-width-height-length-during-export branch from b928094 to 5a43ddb Compare August 6, 2026 08:16
@joerivanveen
joerivanveen added this pull request to the merge queue Aug 6, 2026
Merged via the queue into main with commit 3431147 Aug 6, 2026
13 checks passed
@joerivanveen
joerivanveen deleted the feat/send-width-height-length-during-export branch August 6, 2026 08:59
@github-project-automation github-project-automation Bot moved this from Needs work to Done in PDK Aug 6, 2026
myparcel-bot Bot added a commit that referenced this pull request Aug 6, 2026
## [4.6.0](v4.5.1...v4.6.0) (2026-08-06)

### ✨ New Features

* send width height length during export ([#516](#516)) ([3431147](3431147))
@myparcel-bot

myparcel-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 4.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@myparcel-bot myparcel-bot Bot added the released label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

5 participants