Skip to content
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

fix!: Align subscription price with Price entity #39

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

mikeymike
Copy link
Contributor

  • Subscription Item uses main Price Entity
  • Subscription notification supports new Price fields

BREAKING CHANGE: The class type for a subscription item price property has changed to the main Price entity. Any reliance on the old type will need to be refactored accordingly.

- Subscription Item uses main Price Entity
- Subscription notification supports new Price fields

BREAKING CHANGE: The class type for a subscription item price property
has changed to the main Price entity. Any reliance on the old type will
need to be refactored accordingly.
@mikeymike mikeymike requested a review from a team February 16, 2024 15:47
@@ -36,7 +36,7 @@ protected function __construct(
public CatalogType|null $type,
public TimePeriod|null $billingCycle,
public TimePeriod|null $trialPeriod,
public TaxMode|null $taxMode,
public TaxMode $taxMode,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this was nullable. Doesn't look like it should have been.

@@ -36,7 +36,7 @@ protected function __construct(
public CatalogType|null $type,
public TimePeriod|null $billingCycle,
public TimePeriod|null $trialPeriod,
public TaxMode|null $taxMode,
public TaxMode $taxMode,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here also, doesn't look like it should ever have been nullable

Copy link
Contributor

@vifer vifer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mikeymike mikeymike merged commit edc73c9 into main Feb 16, 2024
3 checks passed
@mikeymike mikeymike deleted the fix/align-subscription-price-entity branch February 16, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants