Release 0.1.13: Yalidine deliveryFeeOnRecipient

Merged
DE
1d ago
+158-10

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.