Skip to content

Refactor MonthlyEarningsResponse naming for clarity#25

Merged
subsub97 merged 1 commit intomainfrom
refactor-dto-naming
Feb 21, 2026
Merged

Refactor MonthlyEarningsResponse naming for clarity#25
subsub97 merged 1 commit intomainfrom
refactor-dto-naming

Conversation

@subsub97
Copy link
Collaborator

This pull request updates the naming of fields in the MonthlyEarningsResponse data class and its usage in the WorkdayService. The new names more accurately reflect the meaning of the data, improving code clarity and maintainability.

DTO and Service Response Naming Updates:

  • Renamed fields in MonthlyEarningsResponse from totalEarnings to workedEarnings and from defaultSalary to standardSalary for clearer semantics (src/main/kotlin/com/moa/service/dto/MonthlyEarningsResponse.kt).
  • Updated the instantiation of MonthlyEarningsResponse in WorkdayService to use the new field names (workedEarnings and standardSalary) instead of the old ones (totalEarnings and defaultSalary) (src/main/kotlin/com/moa/service/WorkdayService.kt).

@github-actions
Copy link

Test Results

32 tests   32 ✅  0s ⏱️
 3 suites   0 💤
 3 files     0 ❌

Results for commit e243cb1.

@subsub97 subsub97 merged commit 4072b11 into main Feb 21, 2026
2 checks passed
@subsub97 subsub97 deleted the refactor-dto-naming branch February 21, 2026 18:35
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.

1 participant