Skip to content

Commit 26c8505

Browse files
authored
Add support for "auto-renewable-subscription" in iOS product type normalization (#3022)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Added support for the hyphenated iOS product type input "auto-renewable-subscription," ensuring it’s recognized alongside existing variants. * Prevents misclassification and related errors when configuring iOS subscriptions, improving reliability for different input formats. * Enhances compatibility without affecting existing setups or workflows. * Backwards compatible; no action required from users. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent d9ddc51 commit 26c8505

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/type-bridge.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function normalizeProductTypeIOS(value?: Nullable<string>): ProductTypeIOS {
7070
return 'non-consumable';
7171
case 'autorenewablesubscription':
7272
case 'auto_renewable_subscription':
73+
case 'auto-renewable-subscription':
7374
case 'autorenewable':
7475
return 'auto-renewable-subscription';
7576
case 'nonrenewingsubscription':

0 commit comments

Comments
 (0)