Skip to content

Conversation

@alexmarqs
Copy link
Member

  • Introduced extractCouponsFromItem function to extract coupon entities from price items and their components.
  • Updated extractPricingEntitiesBySlug to include coupon relations in the returned result.
  • Added new test cases to validate coupon extraction in extractPricingEntitiesBySlug.
  • Updated exports in index.ts and added new sample data in price.samples.ts for testing.

- Introduced `extractCouponsFromItem` function to extract coupon entities from price items and their components.
- Updated `extractPricingEntitiesBySlug` to include coupon relations in the returned result.
- Added new test cases to validate coupon extraction in `extractPricingEntitiesBySlug`.
- Updated exports in `index.ts` and added new sample data in `price.samples.ts` for testing.
- Added `extractCouponsFromItem` to extract coupon details from price items.
- Updated `extractPricingEntitiesBySlug` to include redeemed promo codes for coupons that require them.
- Introduced new test cases to validate the updated coupon extraction logic.
- Updated exports in `index.ts` and added new coupon sample data in `coupon.fixtures.ts` for testing.
- Included `extractCouponsFromItem` in the exports of `index.ts`.
- Updated test file to reflect the addition of `extractCouponsFromItem` in the expected named exports.
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.

3 participants