File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ const FRAUD_RULES_REGISTRY: Record<
2323 referralSourceBanned : checkReferralSourceBanned ,
2424 paidTrafficDetected : checkPaidTrafficDetected ,
2525 partnerCrossProgramBan : defineFraudRuleStub ( "partnerCrossProgramBan" ) ,
26- partnerDuplicatePayoutMethod : defineFraudRuleStub (
27- "partnerDuplicatePayoutMethod" ,
28- ) ,
2926 partnerDuplicateAccount : defineFraudRuleStub ( "partnerDuplicateAccount" ) ,
3027} ;
3128
Original file line number Diff line number Diff line change @@ -94,10 +94,6 @@ function getIdentityFieldsForFraudEvent({
9494 duplicatePartnerId : eventMetadata ?. duplicatePartnerId ,
9595 } ;
9696
97- // Note: This will be removed in the next PR
98- case "partnerDuplicatePayoutMethod" :
99- throw new Error ( "Fraud rule is no longer supported." ) ;
100-
10197 case "partnerCrossProgramBan" :
10298 if ( ! sourceProgramId ) {
10399 throw new Error ( `sourceProgramId is required for ${ type } fraud rule.` ) ;
@@ -106,6 +102,9 @@ function getIdentityFieldsForFraudEvent({
106102 return {
107103 sourceProgramId,
108104 } ;
105+
106+ default :
107+ return { } ;
109108 }
110109}
111110
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ enum FraudRuleType {
99 referralSourceBanned
1010 paidTrafficDetected
1111 partnerCrossProgramBan // Cross-program ban from other programs
12- partnerDuplicatePayoutMethod // Duplicate payout method with other partners
1312 partnerDuplicateAccount // Duplicate identity with other partners
1413}
1514
You can’t perform that action at this time.
0 commit comments