Skip to content

Add Soft Delete for Payment Orders #458

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

DevMukhtarr
Copy link

@DevMukhtarr DevMukhtarr commented Apr 15, 2025

Description

This PR introduces soft delete functionality to the PaymentOrder and LockPaymentOrder schemas using a reusable SoftDeleteMixin.

The Implementation includes

  • Created a SoftDeleteMixin in schema/mixins.go following Ent's soft delete pattern.
  • Added SoftDeleteMixin to both PaymentOrder and LockPaymentOrder schemas.
  • Update PaymentOrder edge in SenderProfile to use entsql.Cascade
  • Added SkipSoftDelete context utility function
  • Created database migration for new deleted_at field
  • Added soft delete functionality to LockPaymentOrder and PaymentOrder schemas

References

closes #401

Testing

Tests were not included per ticket instruction.

Checklist

  • I have added documentation and tests for new/changed functionality in this PR
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

By submitting a PR, I agree to Paycrest's Contributor Code of Conduct and Contribution Guide.

@sundayonah sundayonah closed this May 13, 2025
@sundayonah sundayonah reopened this May 13, 2025
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.

Add Soft Delete for Payment Orders
2 participants