Skip to content

fix(skill): tell agents a fare total comes before any payment fee (PET-503) - #117

Merged
ahsan-amin-wego merged 3 commits into
mainfrom
fix/PET-503-payment-fee-assumption
Dec 4, 2026
Merged

ahsan-amin-wego merged 3 commits into
mainfrom
fix/PET-503-payment-fee-assumption

Conversation

@ahsan-amin-wego

@ahsan-amin-wego ahsan-amin-wego commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Explain when a flight fare total is quoted before any payment fee. If price.paymentBasis is no_method_selected, quote the returned total and say that checkout may add a fee depending on how the traveler pays. If paymentBasis is absent, quote the total as returned without the new caveat.

Do not use includesFees to infer payment fees: it is deprecated and stays true for compatibility. Do not add, estimate, or subtract a fee, and do not infer a payment method's name from its numeric ID.

Compatibility

This changes only the shipped skill, not the CLI, fare totals, or the API contract. The skill works with existing API responses and applies the new guidance once paymentBasis is present.

Generated with Devin.


🟢 Devin Review found nothing to fix · View findings

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Original prompt from Ahsan.amin

Implement PET-503: https://wego.atlassian.net/browse/PET-503

Read the ticket in Jira. It is the source of truth, including the "Done when" checks.
Follow wego/wego-ai's AGENTS.md (apps/api, and the agent skill under apps/cli if the SKILL.md item lives there; if the published skill lives in wego/cli, open a second PR there).

  • Re-checked 2026-11-29 on wego-ai main: includesFees is still a hardcoded true (apps/api/src/flights/normalize.ts:234, schema.ts:434) and nothing reads paymentFee data.
  • Keep paymentMethodIds out of the upstream search body (Book-on-Wego inventory guard).
  • Branch: fix/PET-503-payment-fee-assumption off the latest main. Name PET-503 in every PR.
  • Run the API on main and on your branch locally, and post a main vs PR table in the PR: the fare price fields for a few routes, Book-on-Wego fares per search, and the MENA sizing. Keep analytics away from production.
  • Open the PR as ready for review, not as a draft. Put the evidence for each "Done when" item in the PR description.
  • Do not merge or promote, and do not edit Jira or post in Slack.
  • If the ticket is unclear, or the work needs anything outside its boundaries, stop and ask.

When done or blocked, reply with the PR URL and one line per "Done when" item.

@devin-ai-integration devin-ai-integration Bot added the devin Authored by Devin label Nov 29, 2026
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
Walkthrough

The flight quote and trip inspection guidance now explains that fare totals exclude payment fees. It directs readers not to estimate or add fees and, when per-method fees are listed, to name the method with the lowest fee.

Changes: Flight fare payment-fee guidance

Layer / File(s) Summary
Payment-fee disclosure guidance
skills/wego/SKILL.md, skills/wego/references/cli.md
Quote guidance says fares with paymentBasis set to no_method_selected exclude checkout payment fees. Trip inspection guidance states that totals exclude fees and provides the related price fields. Both sections say not to estimate or add fees; trip inspection guidance also says to name the lowest-fee method when per-method fees are listed.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

  • wego/cli#112: Reorganizes the skill guidance and moves CLI-specific content into references/cli.md, where this PR adds payment-fee guidance.
  • wego/cli#111: Splits the skill into separate CLI and MCP references; this PR updates the root skill and CLI reference.

Suggested labels: devin

Merge Risk: Low · previous review fc22d

This adds guidance that fares are priced before any payment fee. Until the matching API change is live, agents could describe current totals inaccurately. Condition the disclosure on the returned paymentBasis field, or merge after the API promotion.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title uses the Conventional Commits form with type fix, scope skill, and an imperative lowercase subject. It names the change accurately: agents are told that a fare total is priced before any pay…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title uses the Conventional Commits form with type fix, scope skill, and an imperative lowercase subject. It names the change accurately: agents are told that a fare total is priced before any payment fee. The PET-503 key is included. Its scope matches the 'skill' scope in the repo's list, and the changed files are under skills/wego. The title is specific and matches the main change.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

coderabbitai[bot]

This comment was marked as resolved.

devin-ai-integration Bot and others added 3 commits December 4, 2026 20:23
…T-503)

Co-Authored-By: ahsan.amin@wego.com <ahsan.amin@wego.com>
…asis (PET-503)

Co-Authored-By: ahsan.amin@wego.com <ahsan.amin@wego.com>
…PET-503)

Co-Authored-By: ahsan.amin@wego.com <ahsan.amin@wego.com>
@ahsan-amin-wego
ahsan-amin-wego force-pushed the fix/PET-503-payment-fee-assumption branch from e89c529 to 7bb6f3f Compare December 4, 2026 15:33
@ahsan-amin-wego
ahsan-amin-wego merged commit 7bb6f3f into main Dec 4, 2026
3 checks passed
@ahsan-amin-wego
ahsan-amin-wego deleted the fix/PET-503-payment-fee-assumption branch December 4, 2026 15:43

This branch was successfully deployed

2 active deployments
edge — 7bb6f3f0 Deployed Dec 4, 2026 by ahsan-amin-wego via Publish edge and advance cli/edge #76
release-please — 7bb6f3f0 Deployed Dec 4, 2026 by ahsan-amin-wego via Maintain the release PR #100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devin Authored by Devin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant