« blib/lib/GDPR/IAB/TCFv2/Constants/Purpose.pm
↑ Summary
blib/lib/GDPR/IAB/TCFv2/Constants/SpecialFeature.pm »
| 1 | package GDPR::IAB::TCFv2::Constants::RestrictionType 0.512; | ||
| 2 | 72 | ▶ | use v5.12; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 72 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 72 | require Exporter; | |
| 6 | 72 | ▶ | use parent qw<Exporter>; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 72 | ▶ | use constant {NotAllowed => 0, RequireConsent => 1, RequireLegitimateInterest => 2,}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 72 | use constant RestrictionTypeDescription => { | |
| 11 | NotAllowed => "Purpose Flatly Not Allowed by Publisher", | ||
| 12 | RequireConsent => "Require Consent", | ||
| 13 | RequireLegitimateInterest => "Require Legitimate Interest", | ||
| 14 | 72 | ▶ | }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 72 | our @EXPORT_OK = qw< | |
| 17 | NotAllowed | ||
| 18 | RequireConsent | ||
| 19 | RequireLegitimateInterest | ||
| 20 | RestrictionTypeDescription | ||
| 21 | >; | ||
| 22 | |||
| 23 | 72 | our %EXPORT_TAGS = (all => \@EXPORT_OK); | |
| 24 | |||
| 25 | 72 | 1; | |
| 26 | |||
| 27 | __END__ | ||
| 28 | |||
| 29 | =head1 NAME | ||
| 30 | |||
| 31 | GDPR::IAB::TCFv2::Constants::RestrictionType - TCF v2.3 publisher restriction types | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | use warnings; | ||
| 36 | |||
| 37 | use GDPR::IAB::TCFv2::Constants::RestrictionType qw<:all>; | ||
| 38 | |||
| 39 | use feature 'say'; | ||
| 40 | |||
| 41 | say "Restriction type id is ", NotAllowed, ", and it means " , RestrictionTypeDescription->{NotAllowed}; | ||
| 42 | # Output: | ||
| 43 | # Restriction type id is 0, and it means Purpose Flatly Not Allowed by Publisher | ||
| 44 | |||
| 45 | =head1 CONSTANTS | ||
| 46 | |||
| 47 | All constants are integers. | ||
| 48 | |||
| 49 | To find the description of a given id you can use the hashref L</RestrictionTypeDescription> | ||
| 50 | |||
| 51 | =head2 NotAllowed | ||
| 52 | |||
| 53 | Restriction type id 0: Purpose Flatly Not Allowed by Publisher (regardless of Vendor declarations). | ||
| 54 | |||
| 55 | =head2 RequireConsent | ||
| 56 | |||
| 57 | Restriction type id 1: Require Consent (if Vendor has declared the Purpose IDs legal basis as Legitimate Interest and flexible) | ||
| 58 | |||
| 59 | =head2 RequireLegitimateInterest | ||
| 60 | |||
| 61 | Restriction type id 2: Require Legitimate Interest (if Vendor has declared the Purpose IDs legal basis as Consent and flexible) | ||
| 62 | |||
| 63 | =head2 RestrictionTypeDescription | ||
| 64 | |||
| 65 | Returns a hashref with a mapping between all restriction types and their description. | ||
| 66 | |||
| 67 | =head1 NOTE | ||
| 68 | |||
| 69 | Vendors must always respect a 0 (Not Allowed) regardless of whether or not they have not declared that Purpose to be "flexible". | ||
| 70 | Values 1 and 2 are in accordance with a vendor's declared flexibility. | ||
| 71 | |||
| 72 | Eg. if a vendor has Purpose 2 declared as Legitimate Interest but also declares that Purpose as flexible and this field is set to 1, | ||
| 73 | they must then check for the "consent" signal in the VendorConsents section to make a determination on whether they have the legal basis | ||
| 74 | or processing user personal data under that Purpose. | ||
| 75 | |||
| 76 | When a vendor's Purpose registration is not flexible they should interpret this value in the following ways: | ||
| 77 | |||
| 78 | If this value is 1 and vendor is registered under Legitimate Interest for that Purpose then the vendor should not process for that Purpose. | ||
| 79 | |||
| 80 | If this value is 1 and vendor is registered under Consent for that Purpose then the vendor can ignore the signal. | ||
| 81 | |||
| 82 | If this value is 2 and vendor is registered under Consent for that Purpose then the vendor should not process for that Purpose. | ||
| 83 | |||
| 84 | If this value is 2 and vendor is registered under Legitimate Interest for that Purpose then the vendor can ignore the signal. | ||
| 85 | |||
| 86 | If this value is 1 or 2 and the vendor is not registered for the Purpose then the vendor should not process for that Purpose. | ||
| 87 | |||
| 88 | Note: Purpose 1 is always required to be registered as a consent purpose and can not be flexible per L<Policies|https://iabeurope.eu/iab-europe-transparency-consent-framework-policies/>. | ||