Skip to content

Commit 903d93b

Browse files
authored
Merge branch 'main' into DEVX-460_use_double_for_metrics
2 parents 35ceead + de78e1b commit 903d93b

30 files changed

+96
-638
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
name: Benchmark
55

66
# Declare default permissions as read only.
7-
permissions: read-all
7+
permissions: { }
88

99
jobs:
1010
benchmark:

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
name: CI
1010

1111
# Declare default permissions as read only.
12-
permissions: read-all
12+
permissions: {}
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}
@@ -71,7 +71,9 @@ jobs:
7171

7272
- name: "Run if style changes have been detected"
7373
if: steps.commit_style_fix.outputs.changes_detected == 'true'
74-
run: echo "${{steps.commit_style_fix.outputs.commit_hash}}" >> .git-blame-ignore-revs
74+
run: echo "$HASH" >> .git-blame-ignore-revs
75+
env:
76+
HASH: ${{steps.commit_style_fix.outputs.commit_hash}}
7577

7678
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
7779
id: commit_rev_ignore

.github/workflows/docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ jobs:
5959
- name: Setup Graphviz
6060
uses: ts-graphviz/setup-graphviz@b1de5da23ed0a6d14e0aeee8ed52fdd87af2363c # v2.0.2
6161

62-
- run: ./gradlew -Pversion=${{ github.event.inputs.version }} alljavadoc
62+
- run: ./gradlew -Pversion=$VERSION alljavadoc
6363
working-directory: sdk
64+
env:
65+
VERSION: ${{ github.event.inputs.version }}
6466

6567
- run: rsync -r sdk/build/docs/javadoc/ doc/javadoc
6668

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ jobs:
3636
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
3737
PASSPHRASE: ${{ secrets.PASSPHRASE }}
3838

39-
- run: ./gradlew -Pversion=${{ github.ref_name }} clean test javadoc publishToSonatype closeAndReleaseSonatypeStagingRepository
39+
- run: ./gradlew -Pversion=$REF_NAME clean test javadoc publishToSonatype closeAndReleaseSonatypeStagingRepository
4040
env:
41+
REF_NAME: ${{ github.ref_name }}
4142
CTP_OSS_USER: ${{ secrets.OSS_USER }}
4243
CTP_OSS_SECRET: ${{ secrets.OSS_SECRET }}
4344
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -76,7 +77,9 @@ jobs:
7677

7778
- uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2
7879

79-
- run: ./gradlew -Pversion=${{ github.ref_name }} writeVersionToExamples writeVersionToReadme setVersion nextMinorVersion snapshotVersion
80+
- run: ./gradlew -Pversion=$REF_NAME writeVersionToExamples writeVersionToReadme setVersion nextMinorVersion snapshotVersion
81+
env:
82+
REF_NAME: ${{ github.ref_name }}
8083

8184
- name: "Switch SDK to after release branch"
8285
run: |
@@ -150,8 +153,11 @@ jobs:
150153
- name: Setup Graphviz
151154
uses: ts-graphviz/setup-graphviz@b1de5da23ed0a6d14e0aeee8ed52fdd87af2363c # v2.0.2
152155

153-
- run: ./gradlew -Pversion=${{ github.ref_name }} alljavadoc
156+
- run: ./gradlew -Pversion=$REF_NAME alljavadoc
154157
working-directory: sdk
158+
env:
159+
REF_NAME: ${{ github.ref_name }}
160+
155161

156162
- run: rsync -r sdk/build/docs/javadoc/ doc/javadoc
157163

changes.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
**Api changes**
1+
**Import changes**
22

33
<details>
4-
<summary>Changed Property(s)</summary>
4+
<summary>Removed Type(s)</summary>
55

6-
- :warning: changed property `totalPrice` of type `StagedOrder` from type `TypedMoney` to `CentPrecisionMoney`
7-
- :warning: changed property `totalPrice` of type `Order` from type `TypedMoney` to `CentPrecisionMoney`
6+
- :warning: removed type `ReferencedResourceNotFound`
87
</details>
98

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraft.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public interface DiscountedPriceDraft extends io.vrap.rmf.base.client.Draft<Disc
3636

3737
/**
3838
* <p>Sets the money value for the discounted price.</p>
39+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
3940
* @return value
4041
*/
4142
@NotNull
@@ -54,6 +55,7 @@ public interface DiscountedPriceDraft extends io.vrap.rmf.base.client.Draft<Disc
5455

5556
/**
5657
* <p>Sets the money value for the discounted price.</p>
58+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
5759
* @param value value to be set
5860
*/
5961

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class DiscountedPriceDraftBuilder implements Builder<DiscountedPriceDraft
2929

3030
/**
3131
* <p>Sets the money value for the discounted price.</p>
32+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
3233
* @param builder function to build the value value
3334
* @return Builder
3435
*/
@@ -41,6 +42,7 @@ public DiscountedPriceDraftBuilder value(
4142

4243
/**
4344
* <p>Sets the money value for the discounted price.</p>
45+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
4446
* @param builder function to build the value value
4547
* @return Builder
4648
*/
@@ -53,6 +55,7 @@ public DiscountedPriceDraftBuilder withValue(
5355

5456
/**
5557
* <p>Sets the money value for the discounted price.</p>
58+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
5659
* @param value value to be set
5760
* @return Builder
5861
*/
@@ -103,6 +106,7 @@ public DiscountedPriceDraftBuilder discount(
103106

104107
/**
105108
* <p>Sets the money value for the discounted price.</p>
109+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
106110
* @return value
107111
*/
108112

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/DiscountedPriceDraftImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public DiscountedPriceDraftImpl() {
4444

4545
/**
4646
* <p>Sets the money value for the discounted price.</p>
47+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
4748
*/
4849

4950
public com.commercetools.api.models.common.Money getValue() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraft.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public interface PriceDraft extends com.commercetools.api.models.CustomizableDra
4848

4949
/**
5050
* <p>Money value of this Price.</p>
51+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
5152
* @return value
5253
*/
5354
@NotNull
@@ -135,6 +136,7 @@ public interface PriceDraft extends com.commercetools.api.models.CustomizableDra
135136

136137
/**
137138
* <p>Money value of this Price.</p>
139+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
138140
* @param value value to be set
139141
*/
140142

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceDraftBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public PriceDraftBuilder key(@Nullable final String key) {
6666

6767
/**
6868
* <p>Money value of this Price.</p>
69+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
6970
* @param builder function to build the value value
7071
* @return Builder
7172
*/
@@ -78,6 +79,7 @@ public PriceDraftBuilder value(
7879

7980
/**
8081
* <p>Money value of this Price.</p>
82+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
8183
* @param builder function to build the value value
8284
* @return Builder
8385
*/
@@ -90,6 +92,7 @@ public PriceDraftBuilder withValue(
9092

9193
/**
9294
* <p>Money value of this Price.</p>
95+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
9396
* @param value value to be set
9497
* @return Builder
9598
*/
@@ -403,6 +406,7 @@ public String getKey() {
403406

404407
/**
405408
* <p>Money value of this Price.</p>
409+
* <p>To set the money value in high precision, use HighPrecisionMoneyDraft.</p>
406410
* @return value
407411
*/
408412

0 commit comments

Comments
 (0)