-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cc-pricing-product-consumption)!: adapt to support priceSystem c…
…urrency Smart components: - The `zoneId` context parameter of `cc-pricing-product-consumption.smart` is now optional (default value: `'par'`). BREAKING CHANGE: the component no longer supports hard coded change rate Prices displayed in pricing components are no longer computed based on hard coded change rate. Prices related to the selected currency come from the API priceSytem endpoint. The component also relies on the new `state` prop for data coming from the API. This means that some types for the component properties have changed: - `currency` is now a `string` (ISO 4217 currency code), - `product` has been removed, - `state` has been added to replace `product`, - `product.state` is now `state.type`. The type of the payload dispatched with the event `cc-pricing-product:add-plan` has changed: - `sections` (`Array<PricingSection>`) are now part of the payload so that prices can be computed by the `cc-pricing-estimation` component everytime the currency changes. Fixes #1167 #1176 #1109
- Loading branch information
1 parent
b12060a
commit 6ace6eb
Showing
12 changed files
with
531 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.