Skip to content

Commit 71421d6

Browse files
committed
build(codegen): updating SDK
1 parent 0837cd5 commit 71421d6

File tree

7 files changed

+42
-39
lines changed

7 files changed

+42
-39
lines changed

changes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
- :warning: removed property `payment` from type `OrderPaymentAddedMessage`
3636
- :warning: removed property `payment` from type `OrderPaymentAddedMessagePayload`
3737
- :warning: removed property `skipConfiguration` from type `RecurringOrderSetOrderSkipConfigurationAction`
38+
- :warning: removed property `tierMinimumQuantity` from type `StandalonePriceRemovePriceTierAction`
3839
</details>
3940

4041

@@ -47,6 +48,7 @@
4748
- added property `paymentRef` to type `OrderPaymentAddedMessagePayload`
4849
- added property `discounts` to type `Project`
4950
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
51+
- added property `minimumQuantity` to type `StandalonePriceRemovePriceTierAction`
5052
</details>
5153

5254

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceRemovePriceTierAction.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* <div class=code-example>
2323
* <pre><code class='java'>
2424
* StandalonePriceRemovePriceTierAction standalonePriceRemovePriceTierAction = StandalonePriceRemovePriceTierAction.builder()
25-
* .tierMinimumQuantity(0.3)
25+
* .minimumQuantity(0.3)
2626
* .build()
2727
* </code></pre>
2828
* </div>
@@ -39,18 +39,18 @@ public interface StandalonePriceRemovePriceTierAction extends StandalonePriceUpd
3939

4040
/**
4141
* <p>The <code>minimumQuantity</code> of the <a href="https://docs.commercetools.com/apis/ctp:api:type:PriceTier" rel="nofollow">PriceTier</a> to be removed from the <code>tiers</code> field of the <a href="https://docs.commercetools.com/apis/ctp:api:type:StandalonePrice" rel="nofollow">StandalonePrice</a>.</p>
42-
* @return tierMinimumQuantity
42+
* @return minimumQuantity
4343
*/
4444
@NotNull
45-
@JsonProperty("tierMinimumQuantity")
46-
public Long getTierMinimumQuantity();
45+
@JsonProperty("minimumQuantity")
46+
public Long getMinimumQuantity();
4747

4848
/**
4949
* <p>The <code>minimumQuantity</code> of the <a href="https://docs.commercetools.com/apis/ctp:api:type:PriceTier" rel="nofollow">PriceTier</a> to be removed from the <code>tiers</code> field of the <a href="https://docs.commercetools.com/apis/ctp:api:type:StandalonePrice" rel="nofollow">StandalonePrice</a>.</p>
50-
* @param tierMinimumQuantity value to be set
50+
* @param minimumQuantity value to be set
5151
*/
5252

53-
public void setTierMinimumQuantity(final Long tierMinimumQuantity);
53+
public void setMinimumQuantity(final Long minimumQuantity);
5454

5555
/**
5656
* factory method
@@ -67,7 +67,7 @@ public static StandalonePriceRemovePriceTierAction of() {
6767
*/
6868
public static StandalonePriceRemovePriceTierAction of(final StandalonePriceRemovePriceTierAction template) {
6969
StandalonePriceRemovePriceTierActionImpl instance = new StandalonePriceRemovePriceTierActionImpl();
70-
instance.setTierMinimumQuantity(template.getTierMinimumQuantity());
70+
instance.setMinimumQuantity(template.getMinimumQuantity());
7171
return instance;
7272
}
7373

@@ -85,7 +85,7 @@ public static StandalonePriceRemovePriceTierAction deepCopy(
8585
return null;
8686
}
8787
StandalonePriceRemovePriceTierActionImpl instance = new StandalonePriceRemovePriceTierActionImpl();
88-
instance.setTierMinimumQuantity(template.getTierMinimumQuantity());
88+
instance.setMinimumQuantity(template.getMinimumQuantity());
8989
return instance;
9090
}
9191

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceRemovePriceTierActionBuilder.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,52 +13,52 @@
1313
* <div class=code-example>
1414
* <pre><code class='java'>
1515
* StandalonePriceRemovePriceTierAction standalonePriceRemovePriceTierAction = StandalonePriceRemovePriceTierAction.builder()
16-
* .tierMinimumQuantity(0.3)
16+
* .minimumQuantity(0.3)
1717
* .build()
1818
* </code></pre>
1919
* </div>
2020
*/
2121
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2222
public class StandalonePriceRemovePriceTierActionBuilder implements Builder<StandalonePriceRemovePriceTierAction> {
2323

24-
private Long tierMinimumQuantity;
24+
private Long minimumQuantity;
2525

2626
/**
2727
* <p>The <code>minimumQuantity</code> of the <a href="https://docs.commercetools.com/apis/ctp:api:type:PriceTier" rel="nofollow">PriceTier</a> to be removed from the <code>tiers</code> field of the <a href="https://docs.commercetools.com/apis/ctp:api:type:StandalonePrice" rel="nofollow">StandalonePrice</a>.</p>
28-
* @param tierMinimumQuantity value to be set
28+
* @param minimumQuantity value to be set
2929
* @return Builder
3030
*/
3131

32-
public StandalonePriceRemovePriceTierActionBuilder tierMinimumQuantity(final Long tierMinimumQuantity) {
33-
this.tierMinimumQuantity = tierMinimumQuantity;
32+
public StandalonePriceRemovePriceTierActionBuilder minimumQuantity(final Long minimumQuantity) {
33+
this.minimumQuantity = minimumQuantity;
3434
return this;
3535
}
3636

3737
/**
3838
* <p>The <code>minimumQuantity</code> of the <a href="https://docs.commercetools.com/apis/ctp:api:type:PriceTier" rel="nofollow">PriceTier</a> to be removed from the <code>tiers</code> field of the <a href="https://docs.commercetools.com/apis/ctp:api:type:StandalonePrice" rel="nofollow">StandalonePrice</a>.</p>
39-
* @return tierMinimumQuantity
39+
* @return minimumQuantity
4040
*/
4141

42-
public Long getTierMinimumQuantity() {
43-
return this.tierMinimumQuantity;
42+
public Long getMinimumQuantity() {
43+
return this.minimumQuantity;
4444
}
4545

4646
/**
4747
* builds StandalonePriceRemovePriceTierAction with checking for non-null required values
4848
* @return StandalonePriceRemovePriceTierAction
4949
*/
5050
public StandalonePriceRemovePriceTierAction build() {
51-
Objects.requireNonNull(tierMinimumQuantity,
52-
StandalonePriceRemovePriceTierAction.class + ": tierMinimumQuantity is missing");
53-
return new StandalonePriceRemovePriceTierActionImpl(tierMinimumQuantity);
51+
Objects.requireNonNull(minimumQuantity,
52+
StandalonePriceRemovePriceTierAction.class + ": minimumQuantity is missing");
53+
return new StandalonePriceRemovePriceTierActionImpl(minimumQuantity);
5454
}
5555

5656
/**
5757
* builds StandalonePriceRemovePriceTierAction without checking for non-null required values
5858
* @return StandalonePriceRemovePriceTierAction
5959
*/
6060
public StandalonePriceRemovePriceTierAction buildUnchecked() {
61-
return new StandalonePriceRemovePriceTierActionImpl(tierMinimumQuantity);
61+
return new StandalonePriceRemovePriceTierActionImpl(minimumQuantity);
6262
}
6363

6464
/**
@@ -76,7 +76,7 @@ public static StandalonePriceRemovePriceTierActionBuilder of() {
7676
*/
7777
public static StandalonePriceRemovePriceTierActionBuilder of(final StandalonePriceRemovePriceTierAction template) {
7878
StandalonePriceRemovePriceTierActionBuilder builder = new StandalonePriceRemovePriceTierActionBuilder();
79-
builder.tierMinimumQuantity = template.getTierMinimumQuantity();
79+
builder.minimumQuantity = template.getMinimumQuantity();
8080
return builder;
8181
}
8282

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceRemovePriceTierActionImpl.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public class StandalonePriceRemovePriceTierActionImpl implements StandalonePrice
2424

2525
private String action;
2626

27-
private Long tierMinimumQuantity;
27+
private Long minimumQuantity;
2828

2929
/**
3030
* create instance with all properties
3131
*/
3232
@JsonCreator
33-
StandalonePriceRemovePriceTierActionImpl(@JsonProperty("tierMinimumQuantity") final Long tierMinimumQuantity) {
34-
this.tierMinimumQuantity = tierMinimumQuantity;
33+
StandalonePriceRemovePriceTierActionImpl(@JsonProperty("minimumQuantity") final Long minimumQuantity) {
34+
this.minimumQuantity = minimumQuantity;
3535
this.action = REMOVE_PRICE_TIER;
3636
}
3737

@@ -54,12 +54,12 @@ public String getAction() {
5454
* <p>The <code>minimumQuantity</code> of the <a href="https://docs.commercetools.com/apis/ctp:api:type:PriceTier" rel="nofollow">PriceTier</a> to be removed from the <code>tiers</code> field of the <a href="https://docs.commercetools.com/apis/ctp:api:type:StandalonePrice" rel="nofollow">StandalonePrice</a>.</p>
5555
*/
5656

57-
public Long getTierMinimumQuantity() {
58-
return this.tierMinimumQuantity;
57+
public Long getMinimumQuantity() {
58+
return this.minimumQuantity;
5959
}
6060

61-
public void setTierMinimumQuantity(final Long tierMinimumQuantity) {
62-
this.tierMinimumQuantity = tierMinimumQuantity;
61+
public void setMinimumQuantity(final Long minimumQuantity) {
62+
this.minimumQuantity = minimumQuantity;
6363
}
6464

6565
@Override
@@ -73,21 +73,21 @@ public boolean equals(Object o) {
7373
StandalonePriceRemovePriceTierActionImpl that = (StandalonePriceRemovePriceTierActionImpl) o;
7474

7575
return new EqualsBuilder().append(action, that.action)
76-
.append(tierMinimumQuantity, that.tierMinimumQuantity)
76+
.append(minimumQuantity, that.minimumQuantity)
7777
.append(action, that.action)
78-
.append(tierMinimumQuantity, that.tierMinimumQuantity)
78+
.append(minimumQuantity, that.minimumQuantity)
7979
.isEquals();
8080
}
8181

8282
@Override
8383
public int hashCode() {
84-
return new HashCodeBuilder(17, 37).append(action).append(tierMinimumQuantity).toHashCode();
84+
return new HashCodeBuilder(17, 37).append(action).append(minimumQuantity).toHashCode();
8585
}
8686

8787
@Override
8888
public String toString() {
8989
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action)
90-
.append("tierMinimumQuantity", tierMinimumQuantity)
90+
.append("minimumQuantity", minimumQuantity)
9191
.build();
9292
}
9393

commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/standalone_price/StandalonePriceRemovePriceTierActionQueryBuilderDsl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public StringComparisonPredicateBuilder<StandalonePriceRemovePriceTierActionQuer
1717
p -> new CombinationQueryPredicate<>(p, StandalonePriceRemovePriceTierActionQueryBuilderDsl::of));
1818
}
1919

20-
public LongComparisonPredicateBuilder<StandalonePriceRemovePriceTierActionQueryBuilderDsl> tierMinimumQuantity() {
20+
public LongComparisonPredicateBuilder<StandalonePriceRemovePriceTierActionQueryBuilderDsl> minimumQuantity() {
2121
return new LongComparisonPredicateBuilder<>(
22-
BinaryQueryPredicate.of().left(new ConstantQueryPredicate("tierMinimumQuantity")),
22+
BinaryQueryPredicate.of().left(new ConstantQueryPredicate("minimumQuantity")),
2323
p -> new CombinationQueryPredicate<>(p, StandalonePriceRemovePriceTierActionQueryBuilderDsl::of));
2424
}
2525

commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/standalone_price/StandalonePriceRemovePriceTierActionTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ public void buildUnchecked(String name, StandalonePriceRemovePriceTierActionBuil
1717
}
1818

1919
public static Object[][] objectBuilder() {
20-
return new Object[][] { new Object[] { "tierMinimumQuantity",
21-
StandalonePriceRemovePriceTierAction.builder().tierMinimumQuantity(3L) } };
20+
return new Object[][] { new Object[] { "minimumQuantity",
21+
StandalonePriceRemovePriceTierAction.builder().minimumQuantity(1L) } };
2222
}
2323

2424
@Test
25-
public void tierMinimumQuantity() {
25+
public void minimumQuantity() {
2626
StandalonePriceRemovePriceTierAction value = StandalonePriceRemovePriceTierAction.of();
27-
value.setTierMinimumQuantity(3L);
28-
Assertions.assertThat(value.getTierMinimumQuantity()).isEqualTo(3L);
27+
value.setMinimumQuantity(1L);
28+
Assertions.assertThat(value.getMinimumQuantity()).isEqualTo(1L);
2929
}
3030
}

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,3 +496,4 @@ bfb534af33764ac81a3784290b35530d926fccf1
496496
37f4edec0935ea3be543d48720fb67438c2ab341
497497
47d240c55478dd0c0e1aa47288c432f785240168
498498
68fb22e84fc95421ac888349924233d728ef2838
499+
78d1ed9c74ad1fd8f47f014bc4fe96ce2720d509

0 commit comments

Comments
 (0)