fix(payments): align PaymentSetups with the spec - #202
Merged
armando-rodriguez-cko merged 1 commit intoSep 10, 2026
Merged
Conversation
…nt_details, terminal; confirm path param)
Adds documentation model classes for billing_descriptor, presentment_details
and terminal on PaymentSetup, matching swagger.json. Renames the confirm
endpoint's path parameter from payment_method_option_id to
payment_method_name, matching POST /payments/setups/{id}/confirm/{payment_method_name}.
🟢 Risk Classification: LOWApproval route: AI Auto-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 |
|
There was a problem hiding this comment.
✅ Auto-approved — this PR meets all Low-risk criteria.
All checks passed, no unresolved comments, and the change classification is:
no_low_class_matchedprod_source_modified2.2.6_logical_extension:The change renames a broken path parameter to match the actual API spec, adds three doc-only YARD classes with no new persisted data or external integrations, and updates tests accordingly — all within existing code paths and abstractions without crossing any trust boundary.
wall-e 2026.06.19-02 · policy 376219bc71e6…
david-ruiz-cko
approved these changes
Sep 10, 2026
armando-rodriguez-cko
deleted the
fix/INT-1669-payment-setups-alignment
branch
September 10, 2026 10:03
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
Two PaymentSetups alignment fixes: (1) the confirm endpoint's path parameter was named
payment_method_option_id, a name that does not exist in the API and so could never work against the server — renamed topayment_method_name, matchingPOST /payments/setups/{id}/confirm/{payment_method_name}; (2) documented thebilling_descriptor,presentment_detailsandterminalsub-schemas, which this client (hash-based, no typed request/response classes) previously modeled with no doc-only YARD classes at all, unlike the existingaccount_funding_transactionsub-schema.Changes
lib/checkout_sdk/payments/setups/payment_setup_billing_descriptor.rb(new) — YARD doc class:name,city,referencelib/checkout_sdk/payments/setups/payment_setup_presentment_details.rb(new) — YARD doc class:amount,currencylib/checkout_sdk/payments/setups/payment_setup_terminal.rb(new) — YARD doc class:id,local_date_timelib/checkout_sdk/payments/payments.rb— require the three new fileslib/checkout_sdk/payments/setups/payment_setups_client.rb—confirm_payment_setupparam renamedpayment_method_option_id→payment_method_name(signature, path build, docs)spec/checkout_sdk/payments/setups/payment_setups_client_spec.rb— updated confirm test, added round-trip coverage for the three new fieldsspec/checkout_sdk/payments/setups/payment_setups_helper.rb— sandbox request builder includesbilling_descriptor/presentment_detailsspec/checkout_sdk/payments/setups/payment_setups_integration_spec.rb— renamed param throughout, added assertions on the new response fieldsThe confirm response already returns the raw API payload as-is (no typed/slimmer shape to misalign), so no fix was needed there.
API Reference
POST /payments/setupsPUT /payments/setups/{id}GET /payments/setups/{id}POST /payments/setups/{id}/confirm/{payment_method_name}Breaking changes
None — the old confirm parameter name never worked against the real API, so no working caller can regress; the rest is additive documentation.
README
No README changes needed.