Skip to content

Release 0.1.13: Yalidine deliveryFeeOnRecipient - #16

Merged
developing-off merged 2 commits into
mainfrom
release-0.1.13
Nov 22, 2026
Merged

developing-off merged 2 commits into
mainfrom
release-0.1.13

Conversation

@developing-off

@developing-off developing-off commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • New optional ParcelInput.deliveryFeeOnRecipient (TypeScript + PHP).
  • Yalidine / GuepEx: true → freeshipping: false, the recipient pays the delivery fee on top of price (goods only). Omitted / false → freeshipping: true as before (backward compatible).
  • Fixes merchants whose parcels were rejected (VALIDATION_ERROR) because the fee was always charged to their balance.
  • TS validates the field is a boolean. Docs: CONTRACT, PROVIDERS, PHP guide, CHANGELOG. Version bumped to 0.1.13.

Test plan

  • PHPUnit: 559 tests pass (new test for freeshipping: false)
  • Vitest: 302 tests pass (default / false / true cases), tsc --noEmit clean

🤖 Generated with Claude Code


Summary by cubic

Adds an optional deliveryFeeOnRecipient field to ParcelInput (TypeScript and PHP) so Yalidine and GuepEx merchants can charge the delivery fee to the recipient instead of paying it from their own balance.

  • true sends freeshipping: false, so the recipient pays the delivery fee on top of price (goods only); omitted or false keeps the previous freeshipping: true behavior.
  • Fixes merchants whose parcels were rejected with VALIDATION_ERROR because the fee was always charged to their balance.
  • TypeScript requires a boolean; PHP also accepts the strings "true"/"false"/"1"/"0" and rejects anything else with VALIDATION_ERROR. Other carriers ignore the field. Version bumped to 0.1.13.

Written for commit 20b8b71. Summary will update on new commits.

View guided diff Turn on auto-fix

ParcelInput.deliveryFeeOnRecipient (TS + PHP): true sends freeshipping: false
to Yalidine / GuepEx, so the recipient pays the delivery fee on top of price
instead of it being charged to the merchant balance. Omitted keeps
freeshipping: true.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Deploying dz-delivery with  Cloudflare Pages  Cloudflare Pages

Latest commit: 20b8b71
Status: ✅  Deploy successful!
Preview URL: https://4b79fc52.dz-delivery.pages.dev
Branch Preview URL: https://release-0-1-13.dz-delivery.pages.dev

View logs

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 13 files

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread packages/php/src/Models/ParcelInput.php Resolved
Comment thread docs/CONTRACT.md Resolved
Comment thread packages/ts/src/utils.ts Resolved
Comment thread packages/ts/src/utils.ts Resolved
Comment thread docs/guide-php.md Resolved
Comment thread docs/CONTRACT.md Resolved
- PHP: parse deliveryFeeOnRecipient strictly ("false" no longer becomes true),
  reject non-boolean values with VALIDATION_ERROR.
- TS: treat null as omitted, like PHP; test the non-boolean rejection.
- Tests for explicit false / "false" / "0" / null.
- CONTRACT and PHP guide: price row mentions the exception, default spelled out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@developing-off
developing-off merged commit 0d02bfd into main Nov 22, 2026
9 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.

1 participant