Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [7.0.0](v6.13.0...v7.0.0) (2024-10-31) ### feature * Include more currency details in offerings and tabs ([#104](#104)) ([c9eefa5](c9eefa5)) ### BREAKING CHANGES * Change currency type from `string` (isoCode) to `object` (isoCode, baseUnit) ## Details Offerings, tabs and tab purchases now contain more currency details in the form of an object. Before, they contained just the currency iso code string. ```typescript type PublicCurrencyDetails = Pick<Currency, "isoCode" | "baseUnit">; // Example const currency: PublicCurrencyDetails = { isoCode: "USD", baseUnit: 100, }; ``` ## Why We're implementing Google's Monetization Provider API for experiences.js and we need to know the currency's base unit for the response data. ## Changes - **fix: Correct typo in STG token URL** - **Add missing data to mock user** - **Include currency isoCode and baseUnit in offerings** - **Include currency iso code and base unit in tabs** - **Fix inconsitent currency handling in test mock api**
- Loading branch information