payments.api.v1.viewsets package¶
Submodules¶
payments.api.v1.viewsets.payments module¶
-
class
payments.api.v1.viewsets.payments.
PaymentViewset
(**kwargs)[source]¶ Bases:
rest_framework.mixins.ListModelMixin
,rest_framework.mixins.RetrieveModelMixin
,rest_framework.viewsets.GenericViewSet
The viewset to list retrieve and create payments.
-
get_queryset
()[source]¶ Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
-
get_serializer_class
()[source]¶ Return the class to use for the serializer. Defaults to using self.serializer_class.
You may want to override this if you need to provide different serializations depending on the incoming request.
(Eg. admins get full serialization, others get basic serialization)
-
permission_classes
= [<class 'rest_framework.permissions.IsAuthenticated'>]¶
-
queryset
¶
-