-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v5' into google_pay_single_result
- Loading branch information
Showing
1,087 changed files
with
2,963 additions
and
2,294 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
18 changes: 0 additions & 18 deletions
18
...ess/src/main/java/com/braintreepayments/api/AmericanExpressGetRewardsBalanceCallback.java
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...press/src/main/java/com/braintreepayments/api/AmericanExpressGetRewardsBalanceCallback.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,12 @@ | ||
package com.braintreepayments.api | ||
|
||
/** | ||
* Callback for receiving result of | ||
* [AmericanExpressClient.getRewardsBalance]. | ||
*/ | ||
fun interface AmericanExpressGetRewardsBalanceCallback { | ||
/** | ||
* @param americanExpressResult the [AmericanExpressResult] | ||
*/ | ||
fun onAmericanExpressResult(americanExpressResult: AmericanExpressResult) | ||
} |
17 changes: 17 additions & 0 deletions
17
AmericanExpress/src/main/java/com/braintreepayments/api/AmericanExpressResult.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,17 @@ | ||
package com.braintreepayments.api | ||
|
||
/** | ||
* Result of fetching American Express rewards balance | ||
*/ | ||
sealed class AmericanExpressResult { | ||
|
||
/** | ||
* The [rewardsBalance] was successfully fetched | ||
*/ | ||
class Success(val rewardsBalance: AmericanExpressRewardsBalance) : AmericanExpressResult() | ||
|
||
/** | ||
* There was an [error] fetching rewards balance | ||
*/ | ||
class Failure(val error: Exception) : AmericanExpressResult() | ||
} |
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
8 changes: 4 additions & 4 deletions
8
Card/src/main/java/com/braintreepayments/api/CardAnalytics.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package com.braintreepayments.api | ||
|
||
internal enum class CardAnalytics(@JvmField val event: String) { | ||
internal object CardAnalytics { | ||
|
||
CARD_TOKENIZE_STARTED("card:tokenize:started"), | ||
CARD_TOKENIZE_FAILED("card:tokenize:failed"), | ||
CARD_TOKENIZE_SUCCEEDED("card:tokenize:succeeded") | ||
const val CARD_TOKENIZE_STARTED = "card:tokenize:started" | ||
const val CARD_TOKENIZE_FAILED = "card:tokenize:failed" | ||
const val CARD_TOKENIZE_SUCCEEDED = "card:tokenize:succeeded" | ||
} |
Oops, something went wrong.