DRF_Template/backend/payments/serializers.py

6 lines
180 B
Python

from rest_framework import serializers
class CheckoutSerializer(serializers.Serializer):
subscription_id = serializers.IntegerField()
annual = serializers.BooleanField()