Skip to content

feat: add excluded_payment_methods to checkout schemas#112

Merged
fcarrero merged 1 commit into
release/v2.3.0from
add-exclude-payment-methods
Apr 6, 2026
Merged

feat: add excluded_payment_methods to checkout schemas#112
fcarrero merged 1 commit into
release/v2.3.0from
add-exclude-payment-methods

Conversation

@fcarrero

@fcarrero fcarrero commented Apr 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove allowed_payment_methods from required fields in checkout request schemas
  • Add excluded_payment_methods array field (mutually exclusive with allowed_payment_methods) to checkout request, response, and order response schemas
  • Supported values: cash, card, bank_transfer, bnpl, pay_by_bank
  • excluded_payment_methods only returns in the response when provided in the request
  • Update OpenAPI version to 3.1.2
  • Add required fields and format: uri to order_response schema

Test plan

  • Verify make merge generates valid _build/api.yaml
  • Validate spec passes openapi-generator-cli validate
  • Confirm no auto-generated schema names in CI check
  • Test checkout creation with only excluded_payment_methods (no allowed_payment_methods)
  • Test that sending both fields returns appropriate error

🤖 Generated with Claude Code

…ptional in checkout

- Remove allowed_payment_methods from required fields in checkout request and checkout sub-resource
- Add excluded_payment_methods array field (mutually exclusive with allowed_payment_methods) to request and response schemas
- Update order_response checkout object accordingly
- Add required fields and format: uri to order_response schema

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@fcarrero fcarrero merged commit edd5f81 into release/v2.3.0 Apr 6, 2026
7 checks passed
@fcarrero fcarrero deleted the add-exclude-payment-methods branch April 6, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants