nxtgauge-backend-rust/apps/payments/src
Ashwin Kumar Sivakumar c394d9fc07
All checks were successful
build-and-release / build (employees) (push) Successful in 1m46s
build-and-release / build (customers) (push) Successful in 2m0s
build-and-release / build (cron) (push) Successful in 2m13s
build-and-release / build (companies) (push) Successful in 2m20s
build-and-release / build (catering-services) (push) Successful in 2m36s
build-and-release / build (developers) (push) Successful in 2m52s
build-and-release / build (gateway) (push) Successful in 53s
build-and-release / build (jobs) (push) Successful in 44s
build-and-release / build (fitness-trainers) (push) Successful in 1m39s
build-and-release / build (job-seekers) (push) Successful in 2m14s
build-and-release / build (payments) (push) Successful in 1m52s
build-and-release / build (graphic-designers) (push) Successful in 2m37s
build-and-release / build (makeup-artists) (push) Successful in 3m3s
build-and-release / build (photographers) (push) Successful in 2m48s
build-and-release / build (social-media-managers) (push) Successful in 2m40s
backend-integration-tests / ai-credits (push) Successful in 45s
build-and-release / build (tutors) (push) Successful in 2m44s
build-and-release / build (ugc-content-creators) (push) Successful in 2m44s
build-and-release / build (video-editors) (push) Successful in 2m45s
build-and-release / build (users) (push) Successful in 4m49s
feat(ai-credits): real coupon validation endpoint; restore invoice FK integrity
- Add POST /api/ai-credits/coupons/validate: a dry-run of the same
  validate_coupon() check create_order applies, so the checkout UI can
  show a real discount/error before Pay instead of only finding out at
  order-creation time. Never inserts anything.
- Add migration 20260814050000: restores integrity on invoices.payment_id
  after 20260814030000 dropped the hard FK to support polymorphic
  invoice_type (TRACECOIN_PURCHASE -> payments, AI_CREDIT_PURCHASE ->
  ai_credit_orders). A BEFORE INSERT/UPDATE trigger now validates
  payment_id against the right table per invoice_type instead of leaving
  it fully unchecked. Verified against a live Postgres in a scratch
  schema (valid/invalid payment_id, valid/bogus invoice_type).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-14 15:26:47 +05:30
..
admin.rs feat: human-readable reference numbers + fix verification document visibility 2026-07-19 16:34:00 +05:30
ai_credits.rs feat(ai-credits): real coupon validation endpoint; restore invoice FK integrity 2026-08-14 15:26:47 +05:30
main.rs feat(invoices): generate GST invoices for AI credit purchases 2026-08-14 03:17:17 +05:30
packages.rs feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
payu.rs feat: Complete Ask Ash AI Credits implementation on high-performance branch (Tasks 1-10) 2026-07-06 01:49:16 +05:30