1- # Copyright (c) 2025 , DjaoDjin inc.
1+ # Copyright (c) 2026 , DjaoDjin inc.
22# All rights reserved.
33#
44# Redistribution and use in source and binary forms, with or without
@@ -430,6 +430,17 @@ class MetricsSerializer(NoModelSerializer):
430430 help_text = _ ("Data series" ))
431431
432432
433+ class PrivacyCookiesSerializer (NoModelSerializer ):
434+ # matches `settings.PRIVACY_COOKIES_ENABLED`
435+
436+ analytics = serializers .BooleanField (required = False ,
437+ help_text = _ ("True when analytics cookies are enabled" ))
438+ social_media = serializers .BooleanField (required = False ,
439+ help_text = _ ("True when social_media cookies are enabled" ))
440+ advertising = serializers .BooleanField (required = False ,
441+ help_text = _ ("True when advertising cookies are enabled" ))
442+
443+
433444class RefundChargeItemSerializer (NoModelSerializer ):
434445 """
435446 One item to refund on a `Charge`.
@@ -535,6 +546,8 @@ class OrganizationDetailSerializer(OrganizationSerializer):
535546 help_text = _ ("Zip/Postal code" ))
536547 country = CountryField (required = False , allow_blank = True ,
537548 help_text = _ ("Country as 2-letter code (ISO 3166-1)" ))
549+ no_implicit_role = serializers .BooleanField (required = False , default = False ,
550+ help_text = _ ("When `True`, the profile does not allow implicit roles" ))
538551 is_bulk_buyer = serializers .BooleanField (required = False , default = False ,
539552 help_text = _ ("Enable GroupBuy" ))
540553 extra = ExtraField (required = False , allow_null = True ,
@@ -548,8 +561,8 @@ class Meta(OrganizationSerializer.Meta):
548561 fields = OrganizationSerializer .Meta .fields + (
549562 'full_name' , 'created_at' , 'email' , 'phone' ,
550563 'street_address' , 'locality' , 'region' , 'postal_code' , 'country' ,
551- 'default_timezone' , 'is_provider ' , 'is_bulk_buyer' , 'extra ' ,
552- 'detail' )
564+ 'default_timezone' , 'no_implicit_role ' , 'is_provider ' ,
565+ 'is_bulk_buyer' , 'extra' , ' detail' )
553566 read_only_fields = ('created_at' , 'detail' )
554567
555568
0 commit comments