Skip to content

Commit c786756

Browse files
authored
[PM-33999] chore: Standardize casing of Premium account status references (#6707)
1 parent 078b4e6 commit c786756

55 files changed

Lines changed: 106 additions & 106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/src/fdroid/kotlin/com/x8bit/bitwarden/data/billing/manager/PlayBillingManagerImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import kotlinx.coroutines.flow.StateFlow
88

99
/**
1010
* F-Droid implementation of [PlayBillingManager]. Always returns `true` since
11-
* F-Droid users are eligible for the premium upgrade flow.
11+
* F-Droid users are eligible for the Premium upgrade flow.
1212
*/
1313
@OmitFromCoverage
1414
@Suppress("UnusedParameter")

app/src/main/kotlin/com/x8bit/bitwarden/data/auth/datasource/disk/model/AccountJson.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ data class AccountJson(
4242
* @property name The user's name (if applicable).
4343
* @property stamp The account's security stamp (if applicable).
4444
* @property organizationId The ID of the associated organization (if applicable).
45-
* @property hasPremium True if the user has a premium account.
45+
* @property hasPremium True if the user has a Premium account.
4646
* @property avatarColorHex Hex color value for a user's avatar in the "#AARRGGBB" format.
4747
* @property forcePasswordResetReason Describes the reason for a forced password reset.
4848
* @property kdfType The KDF type.

app/src/main/kotlin/com/x8bit/bitwarden/data/auth/repository/model/UserState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ data class UserState(
4242
* @property name The user's name (if applicable).
4343
* @property avatarColorHex Hex color value for a user's avatar in the "#AARRGGBB" format.
4444
* @property environment The [Environment] associated with the user's account.
45-
* @property isPremium `true` if the account has a premium membership.
45+
* @property isPremium `true` if the account has a Premium membership.
4646
* @property isLoggedIn `true` if the account is logged in, or `false` if it requires additional
4747
* authentication to view their vault.
4848
* @property isVaultUnlocked Whether the user's vault is currently unlocked.

app/src/main/kotlin/com/x8bit/bitwarden/data/billing/manager/PremiumStateManager.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ package com.x8bit.bitwarden.data.billing.manager
33
import kotlinx.coroutines.flow.StateFlow
44

55
/**
6-
* Manages the consolidated eligibility state for the premium upgrade banner.
6+
* Manages the consolidated eligibility state for the Premium upgrade banner.
77
*
8-
* Combines multiple upstream signals (premium status, billing support, feature flag,
8+
* Combines multiple upstream signals (Premium status, billing support, feature flag,
99
* banner dismissal, account age, and vault item count) into a single observable flow.
1010
*/
1111
interface PremiumStateManager {
1212

1313
/**
14-
* Emits `true` when the current user is eligible to see the premium upgrade banner,
14+
* Emits `true` when the current user is eligible to see the Premium upgrade banner,
1515
* or `false` otherwise.
1616
*/
1717
val isPremiumUpgradeBannerEligibleFlow: StateFlow<Boolean>
1818

1919
/**
20-
* Marks the premium upgrade banner as dismissed for the current user.
20+
* Marks the Premium upgrade banner as dismissed for the current user.
2121
*/
2222
fun dismissPremiumUpgradeBanner()
2323
}

app/src/main/kotlin/com/x8bit/bitwarden/data/billing/repository/BillingRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface BillingRepository {
2020
suspend fun getCheckoutSessionUrl(): CheckoutSessionResult
2121

2222
/**
23-
* Retrieves the Stripe customer portal URL for managing the premium subscription.
23+
* Retrieves the Stripe customer portal URL for managing the Premium subscription.
2424
*/
2525
suspend fun getPortalUrl(): CustomerPortalResult
2626
}

app/src/main/kotlin/com/x8bit/bitwarden/data/platform/datasource/disk/SettingsDiskSource.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ interface SettingsDiskSource : FlightRecorderDiskSource {
124124
fun getIntroducingArchiveActionCardDismissedFlow(userId: String): Flow<Boolean?>
125125

126126
/**
127-
* Retrieves the stored value of whether the premium upgrade banner has been dismissed.
127+
* Retrieves the stored value of whether the Premium upgrade banner has been dismissed.
128128
*/
129129
fun getPremiumUpgradeBannerDismissed(userId: String): Boolean?
130130

131131
/**
132-
* Stores whether the premium upgrade banner has been dismissed.
132+
* Stores whether the Premium upgrade banner has been dismissed.
133133
*/
134134
fun storePremiumUpgradeBannerDismissed(
135135
userId: String,

app/src/main/kotlin/com/x8bit/bitwarden/data/platform/datasource/disk/SettingsDiskSourceImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class SettingsDiskSourceImpl(
251251
// - should show add login coach mark
252252
// - should show generator coach mark
253253
// - should show introducing archive action card dismissed
254-
// - premium upgrade banner dismissed
254+
// - Premium upgrade banner dismissed
255255
}
256256

257257
override fun getIntroducingArchiveActionCardDismissed(userId: String): Boolean? =

app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/PushManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface PushManager {
3131
val passwordlessRequestFlow: Flow<PasswordlessRequestData>
3232

3333
/**
34-
* Flow that represents premium status change notifications.
34+
* Flow that represents Premium status change notifications.
3535
*/
3636
val premiumStatusChangedFlow: Flow<PremiumStatusChangedData>
3737

app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/model/NotificationPayload.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ sealed class NotificationPayload {
9999
) : NotificationPayload()
100100

101101
/**
102-
* A notification payload for premium status changes.
102+
* A notification payload for Premium status changes.
103103
*/
104104
@Serializable
105105
data class PremiumStatusChangedNotification(

app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/model/PremiumStatusChangedData.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package com.x8bit.bitwarden.data.platform.manager.model
22

33
/**
4-
* Data class representing a premium status changed push notification.
4+
* Data class representing a Premium status changed push notification.
55
*
66
* @property userId The user ID associated with the status change.
7-
* @property isPremium Whether premium is now enabled.
7+
* @property isPremium Whether Premium is now enabled.
88
*/
99
data class PremiumStatusChangedData(
1010
val userId: String,

0 commit comments

Comments
 (0)