Skip to content

feat: add missing disputes filter params and dispute status enum value#174

Merged
armando-rodriguez-cko merged 2 commits into
masterfrom
fix/127-disputes-filter-gaps
May 27, 2026
Merged

feat: add missing disputes filter params and dispute status enum value#174
armando-rodriguez-cko merged 2 commits into
masterfrom
fix/127-disputes-filter-gaps

Conversation

@armando-rodriguez-cko
Copy link
Copy Markdown
Contributor

What

While investigating issue #127, a swagger compliance audit of DisputesQueryFilter and DisputeStatus revealed missing fields and an incomplete enum.

Changes

  • lib/checkout_sdk/disputes/disputes_query_filter.rb — add processing_channel_ids and segment_ids (present in GET /disputes swagger spec but missing from the class); improve YARD docs on all fields with descriptions, constraints and comma-separated format notes
  • lib/checkout_sdk/disputes/dispute_status.rb — add missing ARB_EVIDENCE_SUBMITTED = 'arb_evidence_submitted' enum value present in swagger Dispute.status

Root cause

Swagger compliance gap: two query parameters (processing_channel_ids, segment_ids) and one enum value (arb_evidence_submitted) were never added when the endpoint was implemented.

Regarding the original report in #127: the SDK was generating the correct query string (statuses=evidence_under_review). The 0-result behavior with combined filters is API-side data behavior, not an SDK bug.

Testing

  • All existing tests pass (319 examples, 0 failures, 136 pending integration tests)
  • No orphaned files

Closes #127

Add processing_channel_ids and segment_ids to DisputesQueryFilter to
match GET /disputes swagger spec. Add missing arb_evidence_submitted
value to DisputeStatus enum. Improve YARD docs on all filter fields
with descriptions, constraints and comma-separated format notes.
@sonarqubecloud
Copy link
Copy Markdown

@armando-rodriguez-cko armando-rodriguez-cko merged commit eeb38f5 into master May 27, 2026
5 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the fix/127-disputes-filter-gaps branch May 27, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Unable to use the statuses filter on CheckoutSdk::Disputes::DisputesQueryFilter

2 participants