Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cards): Return a 200 response indicating that a customer is none #3796

Conversation

vsrivatsa-edinburgh
Copy link
Member

@vsrivatsa-edinburgh vsrivatsa-edinburgh commented Feb 23, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Bug Description
CustomerPaymentMethodsListResponse returns 404 when there is no customer tied to a payment

Proposed Behavior
Return a 200 response indicating that a customer is not associated with the payment

Current Behavior
A 404 response with "Customer does not exist in our records" is being returned, although the customer_id is null

PR to the main branch #3773

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

Fixes #3767

…ssociated with the payment (guest_customer) in CustomerPaymentMethodsListResponse
@vsrivatsa-edinburgh vsrivatsa-edinburgh requested review from a team as code owners February 23, 2024 08:27
@vsrivatsa-edinburgh vsrivatsa-edinburgh force-pushed the fix/CustomerPaymentMethodsListResponse_404_hotfix branch from e503130 to d4df8ba Compare February 23, 2024 09:50
@vsrivatsa-edinburgh vsrivatsa-edinburgh force-pushed the fix/CustomerPaymentMethodsListResponse_404_hotfix branch from d4df8ba to edf2188 Compare February 23, 2024 09:55
@bernard-eugine bernard-eugine merged commit 052d10c into hotfix-2024.02.16.0 Feb 23, 2024
11 of 13 checks passed
@bernard-eugine bernard-eugine deleted the fix/CustomerPaymentMethodsListResponse_404_hotfix branch February 23, 2024 10:31
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.

[BUG] CustomerPaymentMethodsListResponse returns 404 when there is no customer tied to a payment
4 participants