Skip to content

Commit

Permalink
feat(271627): expose bundle configuration via method (#612)
Browse files Browse the repository at this point in the history
* feat(271627): expose bundle configuration via method

---------

Co-authored-by: Kirill Grigorev <kirill.grigorev@omnevo.net>
  • Loading branch information
kgrigorev and Kirill Grigorev authored Sep 26, 2024
1 parent c2557d4 commit fe99e62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

## v3.12.0 [upcoming]
**product**
* Added exported method BundleConfiguration to the GraphQL DTO for the bundle product

**checkout**
* add config `commerce.checkout.orderService.skipCartValidation` to disable cart validation that happens right before placing an order in the OrderService

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ func (sp BundleProduct) Badges() ProductBadges {
}
}

// BundleConfiguration of the product
func (sp BundleProduct) BundleConfiguration() productDomain.BundleConfiguration {
return sp.bundleConfig
}

func mapWithActiveChoices(domainChoices []productDomain.Choice, activeChoices map[productDomain.Identifier]productDomain.ActiveChoice) []Choice {
choices := mapChoices(domainChoices)

Expand Down

0 comments on commit fe99e62

Please sign in to comment.