Skip to content

add payment group template#149

Merged
bodynar merged 7 commits into
developfrom
feature/update_payment_group
Mar 26, 2026
Merged

add payment group template#149
bodynar merged 7 commits into
developfrom
feature/update_payment_group

Conversation

@bodynar

@bodynar bodynar commented Mar 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds “payment group template” support to the Payments service, including persistence (EF Core models + migration) and CQRS-based CRUD/query APIs.

Changes:

  • Introduces PaymentGroupTemplate / PaymentGroupTemplateItem entities and registers them in DataBaseContext, plus a migration to create the tables.
  • Adds commands + handlers to add/update/delete payment group templates.
  • Adds queries + handlers (and API controller endpoints) to fetch a single template or list templates with their payment types.

Reviewed changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
Queries/PaymentGroupTemplates/GetPaymentGroupTemplates/GetPaymentGroupTemplatesResponse.cs DTO for listing templates with item count + items
Queries/PaymentGroupTemplates/GetPaymentGroupTemplates/GetPaymentGroupTemplatesQueryHandler.cs Query handler to list templates and their payment types
Queries/PaymentGroupTemplates/GetPaymentGroupTemplates/GetPaymentGroupTemplatesQuery.cs Query contract for listing templates
Queries/PaymentGroupTemplates/GetPaymentGroupTemplate/GetPaymentGroupTemplateResponse.cs DTOs for a single template + its payment types
Queries/PaymentGroupTemplates/GetPaymentGroupTemplate/GetPaymentGroupTemplateQueryHandler.cs Query handler to fetch a single template by id
Queries/PaymentGroupTemplates/GetPaymentGroupTemplate/GetPaymentGroupTemplateQuery.cs Query contract for fetching a template by id
Models/PaymentGroupTemplate/UpdatePaymentGroupTemplateRequest.cs API request model for updating a template
Models/PaymentGroupTemplate/AddPaymentGroupTemplateRequest.cs API request model for adding a template
Migrations/DataBaseContextModelSnapshot.cs Updates EF model snapshot for new entities
Migrations/20260324200708_AddPaymentGroupTemplate.cs Migration creating template + template item tables
Migrations/20260324200708_AddPaymentGroupTemplate.Designer.cs Generated migration model metadata
DataBase/Models/PaymentGroupTemplateItem.cs EF model for template item rows
DataBase/Models/PaymentGroupTemplate.cs EF model for template root rows + navigation
DataBase/DataBaseContext.cs Adds DbSets for the new entities
Controllers/PaymentGroupTemplateApiController.cs HTTP endpoints for template CRUD + queries
Commands/PaymentGroupTemplate/UpdatePaymentGroupTemplate/UpdatePaymentGroupTemplateCommandHandler.cs Update logic including validation and item replacement
Commands/PaymentGroupTemplate/UpdatePaymentGroupTemplate/UpdatePaymentGroupTemplateCommand.cs Update command contract
Commands/PaymentGroupTemplate/DeletePaymentGroupTemplate/DeletePaymentGroupTemplateCommandHandler.cs Delete logic for a template
Commands/PaymentGroupTemplate/DeletePaymentGroupTemplate/DeletePaymentGroupTemplateCommand.cs Delete command contract
Commands/PaymentGroupTemplate/AddPaymentGroupTemplate/AddPaymentGroupTemplateCommandHandler.cs Add logic including name uniqueness + payment type validation
Commands/PaymentGroupTemplate/AddPaymentGroupTemplate/AddPaymentGroupTemplateCommand.cs Add command contract
Files not reviewed (1)
  • Migrations/20260324200708_AddPaymentGroupTemplate.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

bodynar and others added 6 commits March 26, 2026 23:02
…ntGroupTemplateCommandHandler.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ePaymentGroupTemplateCommandHandler.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ntGroupTemplateCommandHandler.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ePaymentGroupTemplateCommandHandler.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ePaymentGroupTemplateCommandHandler.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ePaymentGroupTemplateCommandHandler.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bodynar bodynar merged commit bc9add3 into develop Mar 26, 2026
1 check passed
@bodynar bodynar deleted the feature/update_payment_group branch March 26, 2026 20:16
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