Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
</details>


<details>
<summary>Required Property(s)</summary>

- :warning: changed property `deleteDaysAfterLastModification` of type `CartsConfiguration` to be required
- :warning: changed property `deleteDaysAfterLastModification` of type `ShoppingListsConfiguration` to be required
</details>


<details>
<summary>Added Property(s)</summary>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,7 @@ type CartValueType implements ShippingRateInputType {
}

type CartsConfiguration {
deleteDaysAfterLastModification: Int
deleteDaysAfterLastModification: Int!
allowAddingUnpublishedProducts: Boolean!
countryTaxRateFallbackEnabled: Boolean!
taxRoundingMode: RoundingMode!
Expand Down Expand Up @@ -15636,7 +15636,7 @@ input ShoppingListUpdateAction {
}

type ShoppingListsConfiguration {
deleteDaysAfterLastModification: Int
deleteDaysAfterLastModification: Int!
}

input ShoppingListsConfigurationInput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import io.vrap.rmf.base.client.utils.Generated;

import jakarta.validation.constraints.NotNull;

/**
* CartsConfiguration
*
Expand All @@ -21,6 +23,7 @@
* <div class=code-example>
* <pre><code class='java'>
* CartsConfiguration cartsConfiguration = CartsConfiguration.builder()
* .deleteDaysAfterLastModification(0.3)
* .build()
* </code></pre>
* </div>
Expand All @@ -38,7 +41,7 @@ public interface CartsConfiguration {
* </ul>
* @return deleteDaysAfterLastModification
*/

@NotNull
@JsonProperty("deleteDaysAfterLastModification")
public Long getDeleteDaysAfterLastModification();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
* <div class=code-example>
* <pre><code class='java'>
* CartsConfiguration cartsConfiguration = CartsConfiguration.builder()
* .deleteDaysAfterLastModification(0.3)
* .build()
* </code></pre>
* </div>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class CartsConfigurationBuilder implements Builder<CartsConfiguration> {

@Nullable
private Long deleteDaysAfterLastModification;

@Nullable
Expand All @@ -45,8 +45,7 @@ public class CartsConfigurationBuilder implements Builder<CartsConfiguration> {
* @return Builder
*/

public CartsConfigurationBuilder deleteDaysAfterLastModification(
@Nullable final Long deleteDaysAfterLastModification) {
public CartsConfigurationBuilder deleteDaysAfterLastModification(final Long deleteDaysAfterLastModification) {
this.deleteDaysAfterLastModification = deleteDaysAfterLastModification;
return this;
}
Expand Down Expand Up @@ -97,7 +96,6 @@ public CartsConfigurationBuilder taxRoundingMode(
* @return deleteDaysAfterLastModification
*/

@Nullable
public Long getDeleteDaysAfterLastModification() {
return this.deleteDaysAfterLastModification;
}
Expand Down Expand Up @@ -137,6 +135,8 @@ public com.commercetools.api.models.cart.RoundingMode getTaxRoundingMode() {
* @return CartsConfiguration
*/
public CartsConfiguration build() {
Objects.requireNonNull(deleteDaysAfterLastModification,
CartsConfiguration.class + ": deleteDaysAfterLastModification is missing");
return new CartsConfigurationImpl(deleteDaysAfterLastModification, countryTaxRateFallbackEnabled,
priceRoundingMode, taxRoundingMode);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import io.vrap.rmf.base.client.utils.Generated;

import jakarta.validation.constraints.NotNull;

/**
* ShoppingListsConfiguration
*
Expand All @@ -20,6 +22,7 @@
* <div class=code-example>
* <pre><code class='java'>
* ShoppingListsConfiguration shoppingListsConfiguration = ShoppingListsConfiguration.builder()
* .deleteDaysAfterLastModification(0.3)
* .build()
* </code></pre>
* </div>
Expand All @@ -32,7 +35,7 @@ public interface ShoppingListsConfiguration {
* <p>Default value for the <code>deleteDaysAfterLastModification</code> parameter of the <a href="https://docs.commercetools.com/apis/ctp:api:type:ShoppingListDraft" rel="nofollow">ShoppingListDraft</a>.</p>
* @return deleteDaysAfterLastModification
*/

@NotNull
@JsonProperty("deleteDaysAfterLastModification")
public Long getDeleteDaysAfterLastModification();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

import java.util.*;

import javax.annotation.Nullable;

import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;

Expand All @@ -15,14 +13,14 @@
* <div class=code-example>
* <pre><code class='java'>
* ShoppingListsConfiguration shoppingListsConfiguration = ShoppingListsConfiguration.builder()
* .deleteDaysAfterLastModification(0.3)
* .build()
* </code></pre>
* </div>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ShoppingListsConfigurationBuilder implements Builder<ShoppingListsConfiguration> {

@Nullable
private Long deleteDaysAfterLastModification;

/**
Expand All @@ -32,7 +30,7 @@ public class ShoppingListsConfigurationBuilder implements Builder<ShoppingListsC
*/

public ShoppingListsConfigurationBuilder deleteDaysAfterLastModification(
@Nullable final Long deleteDaysAfterLastModification) {
final Long deleteDaysAfterLastModification) {
this.deleteDaysAfterLastModification = deleteDaysAfterLastModification;
return this;
}
Expand All @@ -42,7 +40,6 @@ public ShoppingListsConfigurationBuilder deleteDaysAfterLastModification(
* @return deleteDaysAfterLastModification
*/

@Nullable
public Long getDeleteDaysAfterLastModification() {
return this.deleteDaysAfterLastModification;
}
Expand All @@ -52,6 +49,8 @@ public Long getDeleteDaysAfterLastModification() {
* @return ShoppingListsConfiguration
*/
public ShoppingListsConfiguration build() {
Objects.requireNonNull(deleteDaysAfterLastModification,
ShoppingListsConfiguration.class + ": deleteDaysAfterLastModification is missing");
return new ShoppingListsConfigurationImpl(deleteDaysAfterLastModification);
}

Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -529,3 +529,4 @@ aa83bf0cb2747feefa757d96d5896ba52d05392e
bb59c72e09951d391e013c3784ffba3fc5876bc3
a9c69a2e32f13e695d381fb1c492ee6ed7e6f046
8b51ad0f1cb789c4294135568e272854eea7ac53
da68d777f48ba0233a7542a5344d86ef185db481