Skip to content

fix(shipping-guide): map express to 4850, not 0335#65

Merged
crakter merged 1 commit into
masterfrom
claude/express-nordic-price-codes-T9Qzd
Jun 3, 2026
Merged

fix(shipping-guide): map express to 4850, not 0335#65
crakter merged 1 commit into
masterfrom
claude/express-nordic-price-codes-T9Qzd

Conversation

@crakter
Copy link
Copy Markdown
Owner

@crakter crakter commented Jun 3, 2026

Correction

Follow-up to #64. That PR shipped the wrong numeric code for express: Product::shippingGuideCode() mapped EXPRESS_NORDIC_09000335. On master this means express price lookups now send 0335 — a different product ("Express Nordic 09:00" courier, decommissioned 2026-09-01) that isn't available on the account, so express still returns no price.

The correct Shipping Guide code is 4850 = Business Parcel Express ("Pakke til bedrift ekspress") — confirmed against Bring's revised-services list (5000 / 5100 / 5300 / 5600 / 5800 / 4850), and matching both the in-app calculator's own code and legacyNumericCode().

Change

  • shippingGuideCode(): EXPRESS_NORDIC_0900'4850' (was '0335').
  • Updated PriceRequestTest to assert ['4850'].
  • Corrected docblock + CHANGELOG (removed the inaccurate 0335 decommission note; clarified the enum name vs. the actual product).

Express codes now round-trip cleanly: 4850 → EXPRESS_NORDIC_0900 → 4850.

Verification

  • PHPUnit: 4/4 in PriceRequestTest, full suite green
  • PHPStan: clean (exit 0)

Note

The ?? $p->value fallback for products without a confirmed numeric code still emits the literal v2 string name. It never triggers for the calculator's products (4850/5800/5000, all mapped), but is a latent issue for unmapped products if Bring has deprecated the string names wholesale — left as-is pending confirmation of which string names still price.

https://claude.ai/code/session_01TLPjgivGN5mopPrs4vcfBp


Generated by Claude Code

Correcting a wrong code from the previous commit. The EXPRESS_NORDIC_0900
case is this catalog's everyday express parcel = Business Parcel Express
("Pakke til bedrift ekspress"), whose Shipping Guide service code is 4850
— confirmed against Bring's revised-services list (5000/5100/5300/5600/
5800/4850) and matching the in-app calculator's own code.

0335 is a different, soon-decommissioned product ("Express Nordic 09:00"
courier); sending it returned no price for accounts without that service.
shippingGuideCode() now matches legacyNumericCode() for express (4850).
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the EXPRESS_NORDIC_0900 product mapping in Product::shippingGuideCode() to map to '4850' (Business Parcel Express) instead of '0335' (Express Nordic 09:00), which is being decommissioned. The changelog, documentation, and corresponding unit tests have been updated to reflect this change. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@crakter crakter merged commit 81904c7 into master Jun 3, 2026
18 checks passed
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.

2 participants