diff --git a/paymentsheet/src/main/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowButton.kt b/paymentsheet/src/main/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowButton.kt index f83374f1222..adaf6696900 100644 --- a/paymentsheet/src/main/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowButton.kt +++ b/paymentsheet/src/main/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowButton.kt @@ -54,7 +54,7 @@ internal fun PaymentMethodRowButton( isEnabled: Boolean, isSelected: Boolean, isClickable: Boolean = isEnabled, - shouldShowDefaultBadge: Boolean = false, + shouldShowDefaultBadge: Boolean, iconContent: @Composable RowScope.() -> Unit, title: String, subtitle: String?, @@ -279,7 +279,7 @@ private fun RowButtonCheckmarkOuterContent( @Composable private fun RowButtonInnerContent( isEnabled: Boolean, - shouldShowDefaultBadge: Boolean = false, + shouldShowDefaultBadge: Boolean, iconContent: @Composable RowScope.() -> Unit, title: String, subtitle: String?, diff --git a/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowButtonScreenshotTest.kt b/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowButtonScreenshotTest.kt index 2f31d402c43..405b643e85a 100644 --- a/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowButtonScreenshotTest.kt +++ b/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowButtonScreenshotTest.kt @@ -43,6 +43,7 @@ internal class PaymentMethodRowButtonScreenshotTest { subtitle = null, promoText = null, onClick = {}, + shouldShowDefaultBadge = false, ) } } @@ -63,6 +64,7 @@ internal class PaymentMethodRowButtonScreenshotTest { subtitle = null, promoText = null, onClick = {}, + shouldShowDefaultBadge = false, ) } } @@ -83,6 +85,7 @@ internal class PaymentMethodRowButtonScreenshotTest { subtitle = null, promoText = null, onClick = {}, + shouldShowDefaultBadge = false, ) } } @@ -103,6 +106,7 @@ internal class PaymentMethodRowButtonScreenshotTest { subtitle = "Please click me, I'm fancy", promoText = null, onClick = {}, + shouldShowDefaultBadge = false, ) } } @@ -124,6 +128,7 @@ internal class PaymentMethodRowButtonScreenshotTest { "forever.", promoText = null, onClick = {}, + shouldShowDefaultBadge = false, ) } } @@ -146,7 +151,8 @@ internal class PaymentMethodRowButtonScreenshotTest { onClick = {}, trailingContent = { Text(text = "View more") - } + }, + shouldShowDefaultBadge = false, ) } } @@ -167,6 +173,7 @@ internal class PaymentMethodRowButtonScreenshotTest { subtitle = null, promoText = "$5", onClick = {}, + shouldShowDefaultBadge = false, ) } } @@ -187,6 +194,7 @@ internal class PaymentMethodRowButtonScreenshotTest { subtitle = null, promoText = "$5", onClick = {}, + shouldShowDefaultBadge = false, ) } } @@ -214,7 +222,8 @@ internal class PaymentMethodRowButtonScreenshotTest { style = style, trailingContent = { Text(text = "View more") - } + }, + shouldShowDefaultBadge = false, ) } } diff --git a/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowCheckmarkButtonScreenshotTest.kt b/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowCheckmarkButtonScreenshotTest.kt index 0346a394c4b..d3cddff8c16 100644 --- a/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowCheckmarkButtonScreenshotTest.kt +++ b/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowCheckmarkButtonScreenshotTest.kt @@ -44,7 +44,8 @@ internal class PaymentMethodRowCheckmarkButtonScreenshotTest { subtitle = null, promoText = null, onClick = {}, - style = FlatWithCheckmark.defaultLight + style = FlatWithCheckmark.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -66,6 +67,7 @@ internal class PaymentMethodRowCheckmarkButtonScreenshotTest { promoText = null, onClick = {}, style = FlatWithCheckmark.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -87,6 +89,7 @@ internal class PaymentMethodRowCheckmarkButtonScreenshotTest { promoText = null, onClick = {}, style = FlatWithCheckmark.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -108,6 +111,7 @@ internal class PaymentMethodRowCheckmarkButtonScreenshotTest { promoText = null, onClick = {}, style = FlatWithCheckmark.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -130,6 +134,7 @@ internal class PaymentMethodRowCheckmarkButtonScreenshotTest { promoText = null, onClick = {}, style = FlatWithCheckmark.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -153,7 +158,8 @@ internal class PaymentMethodRowCheckmarkButtonScreenshotTest { style = FlatWithCheckmark.defaultLight, trailingContent = { Text(text = "View more") - } + }, + shouldShowDefaultBadge = false, ) } } @@ -187,7 +193,8 @@ internal class PaymentMethodRowCheckmarkButtonScreenshotTest { style = style, trailingContent = { Text(text = "View more") - } + }, + shouldShowDefaultBadge = false, ) } } diff --git a/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowRadioButtonScreenshotTest.kt b/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowRadioButtonScreenshotTest.kt index 5e8c644e7b8..4aae0149dbe 100644 --- a/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowRadioButtonScreenshotTest.kt +++ b/paymentsheet/src/test/java/com/stripe/android/paymentsheet/verticalmode/PaymentMethodRowRadioButtonScreenshotTest.kt @@ -44,7 +44,8 @@ internal class PaymentMethodRowRadioButtonScreenshotTest { subtitle = null, promoText = null, onClick = {}, - style = FlatWithRadio.defaultLight + style = FlatWithRadio.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -66,6 +67,7 @@ internal class PaymentMethodRowRadioButtonScreenshotTest { promoText = null, onClick = {}, style = FlatWithRadio.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -87,6 +89,7 @@ internal class PaymentMethodRowRadioButtonScreenshotTest { promoText = null, onClick = {}, style = FlatWithRadio.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -108,6 +111,7 @@ internal class PaymentMethodRowRadioButtonScreenshotTest { promoText = null, onClick = {}, style = FlatWithRadio.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -130,6 +134,7 @@ internal class PaymentMethodRowRadioButtonScreenshotTest { promoText = null, onClick = {}, style = FlatWithRadio.defaultLight, + shouldShowDefaultBadge = false, ) } } @@ -153,7 +158,8 @@ internal class PaymentMethodRowRadioButtonScreenshotTest { style = FlatWithRadio.defaultLight, trailingContent = { Text(text = "View more") - } + }, + shouldShowDefaultBadge = false, ) } } @@ -187,7 +193,8 @@ internal class PaymentMethodRowRadioButtonScreenshotTest { style = style, trailingContent = { Text(text = "View more") - } + }, + shouldShowDefaultBadge = false, ) } }