Commit 7948f69
authored
feat: added additional project configuration options, added defaults (#333)
This pull request introduces several enhancements and updates to the
project endpoints to better align with commercetools defaults, adds new
configuration options, and updates dependencies. The main focus is on
expanding the configurability and default values for project resources,
especially around carts, shopping lists, and business units.
**Project endpoint enhancements and configuration updates:**
* Added support for configuring `priceRoundingMode` and
`taxRoundingMode` in the `carts` object, including new update actions
and default values.
[[1]](diffhunk://#diff-8a1447b63ad4d4114de7dbab424c233fd7853b4411a3b893f9aa7193179a1e54R69-R82)
[[2]](diffhunk://#diff-8a1447b63ad4d4114de7dbab424c233fd7853b4411a3b893f9aa7193179a1e54R105-R120)
[[3]](diffhunk://#diff-5ba5f0356b6cd3a69be2ac6ebd1dd9abf7156c1c9c0b896644a68545b8e850c4R18-R19)
[[4]](diffhunk://#diff-93a01d1904095ea8c898bef510a995ab54b7eb417d69d5b32aee964d20f3296fR83-R87)
* Introduced `shoppingListsConfiguration` with default values and update
actions, ensuring shopping lists have a default
`deleteDaysAfterLastModification` value.
[[1]](diffhunk://#diff-8a1447b63ad4d4114de7dbab424c233fd7853b4411a3b893f9aa7193179a1e54R69-R82)
[[2]](diffhunk://#diff-5ba5f0356b6cd3a69be2ac6ebd1dd9abf7156c1c9c0b896644a68545b8e850c4R44-R51)
[[3]](diffhunk://#diff-93a01d1904095ea8c898bef510a995ab54b7eb417d69d5b32aee964d20f3296fR83-R87)
* Added support for configuring `businessUnits` search indexing status,
including new update actions and default values.
[[1]](diffhunk://#diff-8a1447b63ad4d4114de7dbab424c233fd7853b4411a3b893f9aa7193179a1e54R141-R153)
[[2]](diffhunk://#diff-5ba5f0356b6cd3a69be2ac6ebd1dd9abf7156c1c9c0b896644a68545b8e850c4R44-R51)
[[3]](diffhunk://#diff-93a01d1904095ea8c898bef510a995ab54b7eb417d69d5b32aee964d20f3296fR105-R107)
**Repository and resource improvements:**
* Set the default `isActive` property to `true` when creating new
discount groups in `DiscountGroupRepository`.
**Dependency updates:**
* Upgraded `@commercetools/platform-sdk` from version 8.14.0 to 8.16.0
to ensure compatibility with new features and endpoints.
**Changelog:**
* Added a changeset documenting the additional features and updated
project starting defaults for commercetools alignment.1 parent 27c3980 commit 7948f69
File tree
8 files changed
+371
-216
lines changed- .changeset
- src
- repositories
- discount-group
- services
- storage
8 files changed
+371
-216
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
65 | 83 | | |
66 | 84 | | |
67 | 85 | | |
| |||
84 | 102 | | |
85 | 103 | | |
86 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
87 | 121 | | |
88 | 122 | | |
89 | 123 | | |
| |||
104 | 138 | | |
105 | 139 | | |
106 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
107 | 154 | | |
108 | 155 | | |
109 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
| |||
0 commit comments