-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Analytics Event Params object (#1031)
* Add Analytics Event Payload data class * Update sendAnalyticsEvent: change multiple parameter with payload object * Update LocalPayment UTs * Update PayPalClient UTs * Update VenmoClient UTs * Update VisaCheckoutClient UTs * Update AnalytisEventPayload to AnalytisEventParams * Fix lint * Add RestrictTo and remove public access level * Remove Builder pattern * Update BraintreeClient sendAnalyticsEvent method * Fix UTs * Add note Co-authored-by: sshropshire <[email protected]> --------- Co-authored-by: sshropshire <[email protected]>
- Loading branch information
1 parent
1f14788
commit ed61372
Showing
11 changed files
with
640 additions
and
138 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
BraintreeCore/src/main/java/com/braintreepayments/api/AnalyticsEventParams.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,13 @@ | ||
package com.braintreepayments.api | ||
|
||
import androidx.annotation.RestrictTo | ||
|
||
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) | ||
data class AnalyticsEventParams constructor( | ||
var payPalContextId: String?, | ||
var linkType: String?, | ||
var isVaultRequest: Boolean, | ||
) { | ||
// TODO: this is a convenience constructor for Java; remove after Kotlin migration is complete | ||
constructor() : this(null, null, false) | ||
} |
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
Oops, something went wrong.