From d6166962931ceae79823dadd55581889c2ca4681 Mon Sep 17 00:00:00 2001 From: Kirill Grigorev Date: Fri, 6 Sep 2024 10:26:42 +0200 Subject: [PATCH 1/2] feat(271627): expose bundle configuration via method --- .../graphql/product/dto/productdto_bundleproduct.go | 5 +++++ 1 file changed, 5 insertions(+) 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) From 9cf6bffd56f5fd23d09b72b4a19d434a3b970989 Mon Sep 17 00:00:00 2001 From: Kirill Grigorev Date: Thu, 26 Sep 2024 11:59:14 +0200 Subject: [PATCH 2/2] chore: added record to the changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) 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