-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FraudProtection] User Location Data Consent (#248)
* Bump Magnes version to 5.5.0. * Add docstrings to PayPalDataCollectorRequest and associated methods. * Update CHANGELOG. * Implement PayPalDataCollector hasUserLocationConsent flag forwarding. * Update CHANGELOG. * Update FraudProtection/src/main/java/com/paypal/android/fraudprotection/PayPalDataCollectorRequest.kt Co-authored-by: Sarah Koop <[email protected]> * Fix lint errors. --------- Co-authored-by: Sarah Koop <[email protected]>
- Loading branch information
1 parent
cf95ac7
commit edcb069
Showing
10 changed files
with
112 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...Protection/src/main/java/com/paypal/android/fraudprotection/PayPalDataCollectorRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.paypal.android.fraudprotection | ||
|
||
/** | ||
* Request object containing parameters to configure fraud protection data collection. | ||
* | ||
* @property [hasUserLocationConsent] informs the SDK if your application has obtained | ||
* consent from the user to collect location data in compliance with | ||
* <a href="https://support.google.com/googleplay/android-developer/answer/10144311#personal-sensitive"> | ||
* Google Play Developer Program policies</a> | ||
* This flag enables PayPal to collect necessary information required for Fraud Detection and Risk Management. | ||
* @property [clientMetadataId] forward this data to your server when completing a transaction | ||
* @property [additionalData] additional metadata to link with data collection | ||
*/ | ||
data class PayPalDataCollectorRequest @JvmOverloads constructor( | ||
val hasUserLocationConsent: Boolean, | ||
val clientMetadataId: String? = null, | ||
val additionalData: Map<String, String>? = null, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters