-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Introduce refund window to control if a refund is offered for a purchase #4784
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly OK, although there are some unnecessary @_spi(Internal)
that should be removed. I don't think I should approve this one as I lack most of the context, but I've left some comments to improve this PR
RevenueCatUI/CustomerCenter/ViewModels/ManageSubscriptions/ManageSubscriptionsViewModel.swift
Outdated
Show resolved
Hide resolved
RevenueCatUI/CustomerCenter/ViewModels/ManageSubscriptions/ManageSubscriptionsViewModel.swift
Outdated
Show resolved
Hide resolved
RevenueCatUI/CustomerCenter/ViewModels/ManageSubscriptions/ManageSubscriptionsViewModel.swift
Outdated
Show resolved
Hide resolved
Tests/RevenueCatUITests/CustomerCenter/ManageSubscriptionsViewModelTests.swift
Outdated
Show resolved
Hide resolved
Tests/TestingApps/PaywallsTester/PaywallsTester/Config/ConfigItem.swift
Outdated
Show resolved
Hide resolved
Tests/UnitTests/SubscriberAttributes/PurchasesSubscriberAttributesTests.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes! Looks good to me, but as I said before, I leave approval to someone with actual context about the logic behind these changes
RevenueCatUI/CustomerCenter/ViewModels/ManageSubscriptions/ManageSubscriptionsViewModel.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a comment about the naming but looking good!
RevenueCatUI/CustomerCenter/ViewModels/CustomerCenterViewModel.swift.orig
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than that question, it looks good to me
Motivation
We're giving more power to users by adding one setting in the dashboard. A default window can be added to show / hide the refund action in the Customer Center
Description
RefundWindowDuration
latestPurchaseDate
added toPurchaseInformation
clock
to mock current time and test itFollow-up of #4776