Feature/INT-1702 - Airline and accommodation sub-tree model alignment - #464
Conversation
🟡 Risk Classification: MINORApproval route: AI Review + Human Approval Classification reasons
Operational gates
Files analysed: 8 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
🔵 Advisory review: Sound, but needs your judgementThis PR needs a human approval. The code itself reads as correct; whether it should land depends on context I don't have. This PR is a documentation-and-test-only change that records discovered API quirks (passenger object vs. array per endpoint, field name corrections, stop_over_code rejection on payment-contexts) and fixes the test data to match. The functional code is unchanged; the question is whether the documented workarounds accurately reflect the live API and should become the canonical SDK guidance. For you to decide
This is not an approval. wall-e cannot auto-approve this PR — it is an opinion to help whoever does. Advisory review · us.anthropic.claude-sonnet-4-6 · wall-e 2026.06.19-02 |
🟡 Risk Classification: MINORApproval route: AI Review + Human Approval Classification reasons
Operational gates
Files analysed: 9 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
|



This pull request updates the documentation and test cases for airline and accommodation data objects across multiple payment API endpoints, clarifying the differences in their accepted shapes, especially regarding the
passengerfield and address formats. The changes also improve test data to match the updated API field names and expected structures.API Documentation and Behavior Clarifications:
Added detailed documentation for
airline_dataandaccommodation_datafields in all payment-related endpoints (Payments,HostedPayments,PaymentLinks,PaymentSessions,PaymentContexts), specifying the required and optional fields, and clarifying which endpoints accept a single passenger object vs. an array. This includes a summary table of endpoint behaviors and advice for defensive coding when reading responses. [1] [2] [3] [4] [5] [6] [7] [8] [9]For
PaymentContexts, explicitly documented that thestop_over_codefield inflight_leg_detailsshould not be sent, as it is rejected by the API, and clarified the difference in theAccommodationDataschema compared to other endpoints.Test Case Updates:
payment-setups-unit.jsto use the correct field names (address_line1instead ofaddress_line_1), to use ISO country codes, and to match the updated array/object structures for airline and accommodation data. [1] [2] [3] [4] [5] [6]Schema and Field Description Improvements:
flight_leg_detailsinPaymentSetupsto clarify field names, expected formats, and historical inconsistencies in SDKs.These changes ensure developers are aware of endpoint-specific requirements and quirks, reducing integration errors and making the codebase more maintainable.