Commit Graph

  • 5db71edc2c feat(billing): Implement DeleteTopupView with expiration and authorization checks i701 2025-07-04 16:32:34 +05:00
  • 6568504f5b migration(billing): Add expires_at field and is_expired property to Topup model for expiration management 🔧 i701 2025-07-04 16:32:21 +05:00
  • d4b26074e6 feat(billing): Add is_expired field to TopupAdmin and TopupSerializer for better topup management i701 2025-07-04 16:31:47 +05:00
  • 638c32cb80 Merge pull request #4 from i701/feat/topups Abdulla Aidhaan 2025-07-04 10:12:15 +05:00
  • 61e008d4fb feat(billing): Implement TopupDetailAPIView for retrieving single topup details i701 2025-07-04 10:11:09 +05:00
  • 25bad98900 Merge pull request #3 from i701/feat/topups Abdulla Aidhaan 2025-07-03 21:07:14 +05:00
  • cec2045e5f refactor(billing): Enhance TopupSerializer to include detailed user information and update ListCreateTopupView queryset filtering 🔨 i701 2025-07-03 21:04:59 +05:00
  • e4a01597aa refactor(billing): Refactor TopupFilter to enhance user search functionality and update fields 🔨 i701 2025-07-03 21:04:42 +05:00
  • 4a944c176b feat(billing): Add management command to seed topup models with dummy data i701 2025-07-03 21:04:14 +05:00
  • f67a3762ad test(billing): Add comprehensive tests for Topup model and payment verification 🧪 i701 2025-07-03 21:03:55 +05:00
  • 2122e8dfee feat(billing): Enhance Topup admin interface and add default ordering for Topup model i701 2025-07-03 21:03:15 +05:00
  • 978a4a27d0 feat(billing): Add topup permissions assignment for new users i701 2025-07-03 21:02:37 +05:00
  • 367ccf0f88 feat(justfile): Add migrate and make-migrations commands for database management i701 2025-07-03 17:13:41 +05:00
  • c07d3c93d2 feat(billing): WIP Add Topup model, filters, serializers, and views for topup management i701 2025-07-03 17:13:25 +05:00
  • bae0882879 refactor(DeviceListCreateAPIView): Update all_devices parameter handling for improved boolean parsing 🔨 i701 2025-06-30 23:21:08 +05:00
  • 708d7c2bec refactor(filters): Enhance user filtering in DeviceFilter to search across multiple user fields 🔨 i701 2025-06-30 22:40:13 +05:00
  • dc8fe44004 Merge pull request #2 from i701/feat/payments-filter Abdulla Aidhaan 2025-06-30 22:30:45 +05:00
  • 3d541831c7 refactor(portal-api): Device serializers to include user information and ensure consistent Meta class formatting 🔨 feat/payments-filter i701 2025-06-30 22:29:27 +05:00
  • c4f8989734 Merge pull request #1 from i701/feat/payments-filter Abdulla Aidhaan 2025-06-29 20:01:54 +05:00
  • 428d9ae0e1 Refactor PaymentFilter to use RangeFilter for amount and number_of_months; add vendor filter to DeviceFilter i701 2025-06-29 19:28:41 +05:00
  • b149c86899 Add seed_payments management command to populate payment models with dummy data i701 2025-06-29 19:17:40 +05:00
  • cb15aed94b WIP (Payments) Add PaymentFilter for filtering payment records 🚧 i701 2025-06-28 23:23:04 +05:00
  • eb43b3108d Refactor Omada client initialization: move instantiation to add_new_devices_to_omada task i701 2025-06-28 14:49:39 +05:00
  • 828da25046 Update PostgreSQL database settings to include default values for development i701 2025-06-28 14:39:21 +05:00
  • 7d641e95d7 Enhance DeviceListCreateAPIView to allow admin users to access all devices based on query parameter i701 2025-06-28 10:25:46 +05:00
  • 2de9e2117d Add Justfile for task automation with development commands i701 2025-06-28 10:25:40 +05:00
  • e3b39478eb Refactor task management: replace Celery with Procrastinate for background tasks and update related configurations i701 2025-06-28 10:25:33 +05:00
  • 28315c59cf Update Redis configuration in settings.py to use environment variable for host i701 2025-06-26 20:16:55 +05:00
  • 39da124214 Refactor device blocking logic in DeviceBlockAPIView to utilize Omada BlockDeviceResponse for blocking in omada first i701 2025-06-23 23:41:59 +05:00
  • 570cf80019 Refactor Omada class methods for clarity; update device blocking logic in DeviceBlockAPIView and improve user verification error handling i701 2025-06-23 23:14:40 +05:00
  • 9688635f44 Refactor Omada integration: encapsulate API calls in Omada class, update device management tasks, and enhance device creation tests i701 2025-06-22 22:55:28 +05:00
  • 3957ca0ea4 Add user verification endpoint and logic; implement check against Person API i701 2025-06-10 16:42:13 +05:00
  • 26d7fb6dd1 Add atoll and island fields to user serializer; implement island and atoll serializers with depth handling i701 2025-06-09 21:42:10 +05:00
  • 69ab87f502 Add is_admin field to User model and update related serializers and views i701 2025-06-09 13:28:57 +05:00
  • 7e2f6699b1 Refactor imports in admin.py and update MAC address handling in views.py to improve code clarity and error handling i701 2025-06-08 15:23:18 +05:00
  • 1b58ebd4db Add user existence check before sending verification token in update_alias_verification i701 2025-06-08 14:39:52 +05:00
  • 38d80709db Enhance UserAdmin save logic to auto-generate email from mobile or user ID; improve token creation logging and user existence check i701 2025-06-08 14:32:30 +05:00
  • 4db9d7fabd Refactor device management: add vendor field, enhance admin display, and improve MAC address handling i701 2025-06-01 19:27:04 +05:00
  • e1c862184e Log user verification failure message in verify_user_with_person_api_task i701 2025-05-31 19:30:28 +05:00
  • a05852f3f6 Fix user verification logging to handle None values for atoll and island attributes i701 2025-05-31 19:25:18 +05:00
  • 907b713082 Remove unused imports and clean up OTP message formatting in CreateTemporaryUserView i701 2025-05-31 14:01:56 +05:00
  • cdd032ac54 Add SMS and Telegram notification functions to handle user verification messages i701 2025-05-31 13:40:29 +05:00
  • a9e1973f4a Add mib_reference assignment in VerifyPaymentView upon successful payment verification i701 2025-05-31 13:02:10 +05:00
  • 15f885a4cb Refactor payment permissions assignment to include all permissions except delete_payment i701 2025-05-31 12:41:14 +05:00
  • 85ff1fb67f Add mib_reference field to Payment model and set default ordering by created_at i701 2025-05-31 12:01:35 +05:00
  • f8d6e78f90 Add HTTP status codes to responses in VerifyPaymentView for payment verification i701 2025-05-30 22:56:13 +05:00
  • 09591bf825 Update VerifyPaymentView to mark payment as paid and set payment method upon successful transfer i701 2025-05-30 22:36:59 +05:00
  • 5b4d0e6488 Refactor send_otp function to remove unused otp parameter and improve clarity i701 2025-05-30 22:15:14 +05:00
  • e0dfc28590 Add environment variable checks for OMADA_SITE_ID, OMADA_GROUP_ID, and OMADA_PROXY_URL inside function calls i701 2025-05-30 14:23:41 +05:00
  • 5600a5e8e6 Refactor environment variable loading for OMADA_SITE_ID and OMADA_GROUP_ID to include default values i701 2025-05-30 14:17:39 +05:00
  • 12074c7752 add default values to .env variables for build step i701 2025-05-30 14:14:39 +05:00
  • cc3d2ab3b7 Remove environment variable check for SMS_API_URL and SMS_API_KEY during initialization i701 2025-05-30 14:07:47 +05:00
  • 20db39ee55 Fix import statement for regex module in MAC address validation i701 2025-04-25 15:35:57 +05:00
  • 81f907b7bf Add type hint to __str__ method in TemporaryUser model i701 2025-04-25 15:32:19 +05:00
  • 83db42cc60 Refactor and enhance device management and authentication features i701 2025-04-25 14:37:27 +05:00
  • 0f19f0c15c Add Celery periodic task for deactivating expired devices and update requirements i701 2025-04-24 13:05:20 +05:00
  • 99982d13d5 Enhance environment variable handling, add Celery configuration, and implement device expiration notification tasks i701 2025-04-24 10:42:22 +05:00
  • ee8145f07f Add environment variable checks for OMADA_PROXY_URL and enhance payment verification logic i701 2025-04-23 10:43:39 +05:00
  • 929c6168a4 Refactor payment verification to use PAYMENT_BASE_URL from environment variables and improve error handling for missing configuration i701 2025-04-23 10:03:04 +05:00
  • 2431793886 Fix SMS API configuration to provide default values for missing environment variables i701 2025-04-19 16:31:33 +05:00
  • c006525aaa Update OTP generation interval, enhance SMS sending functionality, and add age validation for temporary user registration i701 2025-04-19 16:18:45 +05:00
  • f77779a84f Remove throttling for CreateTemporaryUserView and VerifyOTPView i701 2025-04-18 14:51:25 +05:00
  • 887ffbb4d0 Add filter_temporary_user view to retrieve TemporaryUser by id_card or mobile i701 2025-04-18 13:39:57 +05:00
  • ac5675e923 Refactor VerifyOTPView to check for existing TemporaryUser and return appropriate error messages i701 2025-04-18 11:36:48 +05:00
  • 900a87466f Add mobile number check in VerifyOTPView to prevent duplicate registrations i701 2025-04-17 23:59:42 +05:00
  • 7777545bec Refactor user verification to use PEOPLE_API_URL and added error handling for missing environment variable i701 2025-04-17 19:23:13 +05:00
  • 88a2b8ead2 Enhance CreateTemporaryUserView to check for existing users in both TemporaryUser and User models i701 2025-04-17 14:11:46 +05:00
  • 1401c3ac37 Fixed person api checking with database user for verification i701 2025-04-16 13:17:11 +05:00
  • ba0fa5a831 auto deploy - migrate Shihaam Abdul Rahman 2025-04-16 11:33:48 +05:00
  • fd8207c34d add pyotp to requirements i701 2025-04-16 11:09:06 +05:00
  • bfb34f4097 Update tzdata version to 2025.2 in requirements.txt i701 2025-04-16 11:05:47 +05:00
  • dd21b848b9 Add TemporaryUser model and related functionality for user registration and OTP verification i701 2025-04-16 11:01:43 +05:00
  • e0a80d4a00 registration and verify abuse WIP i701 2025-04-15 14:01:47 +05:00
  • 9f3f586181 update healthcheck response message i701 2025-04-12 10:05:13 +05:00
  • 4c722752a4 update README.md i701 2025-04-12 09:59:11 +05:00
  • 0aa71c8e10 add mirror to gitea Shihaam Abdul Rahman 2025-04-12 06:45:07 +05:00
  • ea26a93fb9 cleaner output Shihaam Abdul Rahman 2025-04-12 04:38:17 +05:00
  • caba7107f8 cleaner output Shihaam Abdul Rahman 2025-04-12 04:34:42 +05:00
  • b02a7eb47d down kohffa up kuraanee.. also this is api Shihaam Abdul Rahman 2025-04-12 03:54:50 +05:00
  • 8670023233 f all that just deploy Shihaam Abdul Rahman 2025-04-12 03:33:30 +05:00
  • c589798cf3 checking if key prints Shihaam Abdul Rahman 2025-04-12 03:22:16 +05:00
  • 19f5b905bb checking if key prints Shihaam Abdul Rahman 2025-04-12 03:20:27 +05:00
  • 63ce054bad add auto deploy Shihaam Abdul Rahman 2025-04-12 03:07:46 +05:00
  • 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. i701 2025-04-11 17:06:28 +05:00
  • b6303a2c23 Refactor create_superuser method in CustomUserManager to include email parameter in user creation. i701 2025-04-11 12:13:28 +05:00
  • 10b3800171 Refactor VerifyPaymentView to improve wallet payment handling and response messages. Remove redundant insufficient funds check and enhance failure message clarity. i701 2025-04-11 00:41:44 +05:00
  • 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. i701 2025-04-10 21:50:21 +05:00
  • 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. i701 2025-04-08 21:38:43 +05:00
  • c3abdd8e34 Add has_a_pending_payment field to Device model and update related views for payment handling i701 2025-04-07 22:24:52 +05:00
  • c127c5d093 Add registered field to CreateDeviceSerializer and enhance BlockDeviceSerializer with reason_for_blocking and blocked_by fields i701 2025-04-06 22:40:07 +05:00
  • b415d8f35b Add BlockDeviceSerializer and DeviceBlockAPIView for blocking devices i701 2025-04-06 21:38:41 +05:00
  • a8adddfda4 Add authorization check in UpdateUserWalletView to restrict updates to the user's own wallet i701 2025-04-05 22:50:14 +05:00
  • 2368ff408a Add number_of_months field to UpdatePaymentSerializer and implement validation in UpdatePaymentAPIView i701 2025-04-05 22:38:08 +05:00
  • b87dcfaf26 Add UpdateUserWalletView and CustomUserByWalletBalanceSerializer for wallet balance updates i701 2025-04-05 20:53:06 +05:00
  • d67794df62 Add wallet_balance and mobile fields to CustomUserSerializer i701 2025-04-05 19:08:07 +05:00
  • 93e50b696c Add PaymentDetailAPIView for retrieving payment details and update URL routing i701 2025-04-05 18:58:12 +05:00
  • 02f680d579 Refactor payment views: rename CreatePaymentView to ListCreatePaymentView, add payment retrieval endpoint, and enhance queryset filtering for user-specific payments. i701 2025-04-05 17:23:18 +05:00
  • 80e388a2a0 Refactor CreatePaymentView to improve device retrieval logic by using filter instead of get_object_or_404, enhancing error handling for non-existent devices. i701 2025-04-05 16:14:28 +05:00
  • d386c7e37c Add device existence check in CreatePaymentView to handle invalid device IDs i701 2025-04-05 16:10:24 +05:00
  • 43f9b7ef7c Enhance User model: add email field with unique constraint, update id_card field to allow null values, and include verified field. Update UserAdmin to display verified field. Improve device listing to filter by logged-in user. i701 2025-03-28 22:25:30 +05:00