Skip to content

Commit

Permalink
Deprecates formattedPriceInMonths().
Browse files Browse the repository at this point in the history
  • Loading branch information
JayShortway committed Jul 25, 2024
1 parent 46b8d7a commit 5947b8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ data class PricingPhase(
*
* @param locale Locale to use for formatting the price. Default is the system default locale.
*/
@Deprecated(
message = "pricePerMonth() provides more price info",
replaceWith = ReplaceWith("pricePerMonth(locale).formatted"),
)
@JvmOverloads
fun formattedPriceInMonths(locale: Locale = Locale.getDefault()): String {
return pricePerMonth(locale).formatted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class ParameterizedPricingPhaseTest(
)
}

@Suppress("DEPRECATION")
@Test
fun `should correctly calculate periodic prices for billing period`() {
// Arrange
Expand Down

0 comments on commit 5947b8b

Please sign in to comment.