Skip to content

Firstname, lastname#2721

Merged
simonredfern merged 8 commits intoOpenBankProject:developfrom
constantine2nd:develop
Mar 5, 2026
Merged

Firstname, lastname#2721
simonredfern merged 8 commits intoOpenBankProject:developfrom
constantine2nd:develop

Conversation

@constantine2nd
Copy link
Contributor

No description provided.

  Moved to v5.1.0 (JSONFactory5.1.0.scala):
  - Added UserWithNamesJsonV510 case class (same 13 fields: user_id, email, provider_id, provider, username, first_name, last_name, entitlements, views,
   agreements, is_deleted, last_marketing_agreement_signed_date, is_locked)
  - Added createUserWithNamesJSON factory method with AuthUser lookup

  Updated v5.1.0 endpoint (APIMethods510.scala):
  - Adds authUser = AuthUser.find(...) lookup
  - Returns JSONFactory510.createUserWithNamesJSON(...) with first_name/last_name
  - ResourceDoc response example changed from userJsonV400 → userWithNamesJsonV510

  Updated v5.1.0 tests (UserTest.scala):
  - 200-success scenario now extracts UserWithNamesJsonV510 and asserts first_name == "" / last_name == ""
  - New scenario creates an AuthUser with firstName("Alice").lastName("Smith") and asserts both fields

  Cleaned up v6.0.0:
  - Removed getUserByProviderAndUsername ResourceDoc + endpoint from APIMethods600.scala
  - Removed UserWithNamesJsonV600 case class from JSONFactory6.0.0.scala
  - Removed createUserWithNamesJSON factory method from JSONFactory6.0.0.scala
  - Deleted GetUserByProviderAndUsernameTest.scala
  - Renamed userWithNamesJsonV600 → userWithNamesJsonV510 in SwaggerDefinitionsJSON.scala

  Since v6.0.0 inherits all v5.1.0 endpoints, /obp/v6.0.0/users/provider/.../username/... automatically uses the improved v5.1.0 implementation — no
  separate v6.0.0 endpoint needed.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2026

@simonredfern simonredfern merged commit cd43086 into OpenBankProject:develop Mar 5, 2026
2 checks passed
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