Commit Graph
80 Commits
Author SHA1 Message Date
i701 f67a3762ad test(billing): Add comprehensive tests for Topup model and payment verification 🧪 2025-07-03 21:03:55 +05:00
i701 2122e8dfee feat(billing): Enhance Topup admin interface and add default ordering for Topup model 2025-07-03 21:03:15 +05:00
i701 c07d3c93d2 feat(billing): WIP Add Topup model, filters, serializers, and views for topup management 2025-07-03 17:13:25 +05:00
i701 428d9ae0e1 Refactor PaymentFilter to use RangeFilter for amount and number_of_months; add vendor filter to DeviceFilter 2025-06-29 19:28:41 +05:00
i701 b149c86899 Add seed_payments management command to populate payment models with dummy data 2025-06-29 19:17:40 +05:00
i701 cb15aed94b WIP (Payments) Add PaymentFilter for filtering payment records 🚧 2025-06-28 23:23:04 +05:00
i701 e3b39478eb Refactor task management: replace Celery with Procrastinate for background tasks and update related configurations 2025-06-28 10:25:33 +05:00
i701 4db9d7fabd Refactor device management: add vendor field, enhance admin display, and improve MAC address handling 2025-06-01 19:27:04 +05:00
i701 a9e1973f4a Add mib_reference assignment in VerifyPaymentView upon successful payment verification 2025-05-31 13:02:10 +05:00
i701 85ff1fb67f Add mib_reference field to Payment model and set default ordering by created_at 2025-05-31 12:01:35 +05:00
i701 f8d6e78f90 Add HTTP status codes to responses in VerifyPaymentView for payment verification 2025-05-30 22:56:13 +05:00
i701 09591bf825 Update VerifyPaymentView to mark payment as paid and set payment method upon successful transfer 2025-05-30 22:36:59 +05:00
i701 5b4d0e6488 Refactor send_otp function to remove unused otp parameter and improve clarity 2025-05-30 22:15:14 +05:00
i701 83db42cc60 Refactor and enhance device management and authentication features
- Updated the `reverse_dhivehi_string` function to correct the range for combining characters.
- Added new device handling in the health check view and integrated the `add_new_devices_to_omada` task.
- Improved date handling in `CreateTemporaryUserView` to ensure proper string conversion.
- Enhanced OTP sending by converting mobile numbers to strings.
- Implemented MAC address validation in the `Device` model using a custom validator.
- Removed unnecessary fields from the `CreateDeviceSerializer`.
- Normalized MAC address format in the `DeviceListCreateAPIView`.
- Updated the `djangopasswordlessknox` package to improve code consistency and readability.
- Added migration to enforce MAC address validation in the database.
2025-04-25 14:37:27 +05:00
i701 0f19f0c15c Add Celery periodic task for deactivating expired devices and update requirements 2025-04-24 13:05:20 +05:00
i701 ee8145f07f Add environment variable checks for OMADA_PROXY_URL and enhance payment verification logic 2025-04-23 10:43:39 +05:00
i701 929c6168a4 Refactor payment verification to use PAYMENT_BASE_URL from environment variables and improve error handling for missing configuration 2025-04-23 10:03:04 +05:00
i701 b8d9f5cf87 Refactor VerifyPaymentView to include checks for payment status and user authorization. Update logging level in settings.py to suppress certain logs during testing. Add comprehensive tests for device management in DeviceAPITestCase. 2025-04-11 17:06:28 +05:00
i701 10b3800171 Refactor VerifyPaymentView to improve wallet payment handling and response messages. Remove redundant insufficient funds check and enhance failure message clarity. 2025-04-11 00:41:44 +05:00
i701 f8253d572d Enhance VerifyPaymentView with user authorization check, streamline payment verification process, and improve response messages. Update settings.py for consistent formatting and clarity in PASSWORDLESS_AUTH configuration. 2025-04-10 21:50:21 +05:00
i701 9595476569 Refactor UpdatePaymentSerializer to include only number_of_months field, add DeletePaymentView for payment deletion, and enhance VerifyPaymentView with payment_id lookup. Introduce pending_payment_id field in DeviceSerializer to track unpaid payments. 2025-04-08 21:38:43 +05:00
i701 c3abdd8e34 Add has_a_pending_payment field to Device model and update related views for payment handling 2025-04-07 22:24:52 +05:00
i701 2368ff408a Add number_of_months field to UpdatePaymentSerializer and implement validation in UpdatePaymentAPIView 2025-04-05 22:38:08 +05:00
i701 b87dcfaf26 Add UpdateUserWalletView and CustomUserByWalletBalanceSerializer for wallet balance updates 2025-04-05 20:53:06 +05:00
i701 93e50b696c Add PaymentDetailAPIView for retrieving payment details and update URL routing 2025-04-05 18:58:12 +05:00
i701 02f680d579 Refactor payment views: rename CreatePaymentView to ListCreatePaymentView, add payment retrieval endpoint, and enhance queryset filtering for user-specific payments. 2025-04-05 17:23:18 +05:00
i701 80e388a2a0 Refactor CreatePaymentView to improve device retrieval logic by using filter instead of get_object_or_404, enhancing error handling for non-existent devices. 2025-04-05 16:14:28 +05:00
i701 d386c7e37c Add device existence check in CreatePaymentView to handle invalid device IDs 2025-04-05 16:10:24 +05:00
i701 f6f77bb0e5 Add wallet balance to User model and implement Atoll/Island management
- Added `wallet_balance` field to the User model.
- Updated UserAdmin to include `wallet_balance` in the admin interface.
- Created serializers and views for Atoll and Island management.
- Implemented endpoints for listing, creating, and updating Atolls and Islands.
- Enhanced payment processing with UUIDs for Payment and Topup models.
- Added migration files for new fields and constraints.
- Improved error handling and validation in various views.
- Updated email templates for better responsiveness and SEO.
2025-01-20 20:59:16 +05:00
i701 4d0eb86478 Initial commit 2025-01-20 14:33:03 +05:00