Skip to content

feat: include username in quota output and response models#67

Merged
jhonatapers merged 1 commit intodevelopfrom
feature/new-quota-payload
Aug 26, 2025
Merged

feat: include username in quota output and response models#67
jhonatapers merged 1 commit intodevelopfrom
feature/new-quota-payload

Conversation

@jhonatapers
Copy link
Copy Markdown
Member

This pull request updates the member quota retrieval feature to include the member's username in both the output and response objects, and refactors how quota information is constructed and returned. The changes improve the clarity and completeness of the data provided by the quota endpoints.

Enhancements to quota data structures:

  • Added the username field to both GetQuotaOutput and MemberQuotaResponse records, ensuring that the member's username is included in quota responses. [1] [2]
  • Updated the present method in MemberPresenter to include the username field when constructing a MemberQuotaResponse.

Refactoring of quota calculation logic:

  • Refactored DefaultGetQuotaUseCase to use the new GetQuotaOutput.from(Member, Long) factory method, simplifying quota calculation and output construction.
  • Updated the GetQuotaOutput factory method to accept a Member object and derive all necessary fields, including the new username field.

@jhonatapers jhonatapers self-assigned this Aug 26, 2025
@jhonatapers jhonatapers added the enhancement New feature or request label Aug 26, 2025
@jhonatapers jhonatapers merged commit 7efad0a into develop Aug 26, 2025
@jhonatapers jhonatapers deleted the feature/new-quota-payload branch August 26, 2025 13:39
@jhonatapers jhonatapers restored the feature/new-quota-payload branch August 26, 2025 15:39
@jhonatapers jhonatapers deleted the feature/new-quota-payload branch August 26, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant