diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e7e44408..40885482f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/product/interfaces/graphql/product/dto/productdto_bundleproduct.go b/product/interfaces/graphql/product/dto/productdto_bundleproduct.go index 0ada99dad..d50346e99 100644 --- a/product/interfaces/graphql/product/dto/productdto_bundleproduct.go +++ b/product/interfaces/graphql/product/dto/productdto_bundleproduct.go @@ -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)