text: from django.contrib.auth import authenticate
  from rest_framework import serializers
  from modules.number.models import MobileNumber
  from modules.api_features.validation import Validation
  
  class MobileNumberDetailSerializer(serializers.ModelSerializer):
      name = serializers.CharField(validators=[Validation.nameV])
      surname = serializers.CharField(validators=[Validation.nameV])
      number = serializers.CharField(validators=[Validation.numberV])
      pin_code = serializers.CharField(validators=[Validation.pinCodeV])
      puk_code = serializers.CharField(validators=[Validation.pukCodeV])
      available_amount = serializers.CharField(validators=[Validation.availableAmountV])
      started_at = serializers.CharField(validators=[Validation.startedAtV])
      max_count = serializers.IntegerField(validators=[Validation.isValidNumber])
      class Meta:
          model = MobileNumber
          fields = '__all__'
  
  class MobileNumberListSerializer(serializers.ModelSerializer):
      name = serializers.CharField(validators=[Validation.nameV])
      surname = serializers.CharField(validators=[Validation.nameV])
      number = serializers.CharField(validators=[Validation.numberV])
      pin_code = serializers.CharField(validators=[Validation.pinCodeV])
      puk_code = serializers.CharField(validators=[Validation.pukCodeV])
      available_amount = serializers.CharField(validators=[Validation.availableAmountV])
      started_at = serializers.CharField(validators=[Validation.startedAtV])
      max_count = serializers.IntegerField(validators=[Validation.isValidNumber])
      class Meta:
          model = MobileNumber
          fields = '__all__'