Repository navigation
Release 0.1.13: Yalidine deliveryFeeOnRecipient - #16
Merged
Merged
Conversation
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]>
Deploying dz-delivery with
|
| 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 |
There was a problem hiding this comment.
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
- 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ParcelInput.deliveryFeeOnRecipient(TypeScript + PHP).true→freeshipping: false, the recipient pays the delivery fee on top ofprice(goods only). Omitted /false→freeshipping: trueas before (backward compatible).VALIDATION_ERROR) because the fee was always charged to their balance.Test plan
freeshipping: false)tsc --noEmitclean🤖 Generated with Claude Code
Summary by cubic
Adds an optional
deliveryFeeOnRecipientfield toParcelInput(TypeScript and PHP) so Yalidine and GuepEx merchants can charge the delivery fee to the recipient instead of paying it from their own balance.truesendsfreeshipping: false, so the recipient pays the delivery fee on top ofprice(goods only); omitted orfalsekeeps the previousfreeshipping: truebehavior.VALIDATION_ERRORbecause the fee was always charged to their balance."true"/"false"/"1"/"0"and rejects anything else withVALIDATION_ERROR. Other carriers ignore the field. Version bumped to 0.1.13.Written for commit 20b8b71. Summary will update on new commits.