Skip to content

Commit

Permalink
Merge pull request #338 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
jenschude authored Jul 8, 2022
2 parents d586e22 + 60c7a73 commit 4fb8c12
Show file tree
Hide file tree
Showing 48 changed files with 160 additions and 160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public interface ScoreShippingRateInput extends ShippingRateInput {
*/
@NotNull
@JsonProperty("score")
public Double getScore();
public Long getScore();

public void setScore(final Double score);
public void setScore(final Long score);

public static ScoreShippingRateInput of() {
return new ScoreShippingRateInputImpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ScoreShippingRateInputBuilder implements Builder<ScoreShippingRateInput> {

private Double score;
private Long score;

/**
*
*/

public ScoreShippingRateInputBuilder score(final Double score) {
public ScoreShippingRateInputBuilder score(final Long score) {
this.score = score;
return this;
}

public Double getScore() {
public Long getScore() {
return this.score;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public interface ScoreShippingRateInputDraft extends ShippingRateInputDraft {
*/
@NotNull
@JsonProperty("score")
public Double getScore();
public Long getScore();

public void setScore(final Double score);
public void setScore(final Long score);

public static ScoreShippingRateInputDraft of() {
return new ScoreShippingRateInputDraftImpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ScoreShippingRateInputDraftBuilder implements Builder<ScoreShippingRateInputDraft> {

private Double score;
private Long score;

/**
*
*/

public ScoreShippingRateInputDraftBuilder score(final Double score) {
public ScoreShippingRateInputDraftBuilder score(final Long score) {
this.score = score;
return this;
}

public Double getScore() {
public Long getScore() {
return this.score;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public class ScoreShippingRateInputDraftImpl implements ScoreShippingRateInputDr

private String type;

private Double score;
private Long score;

@JsonCreator
ScoreShippingRateInputDraftImpl(@JsonProperty("score") final Double score) {
ScoreShippingRateInputDraftImpl(@JsonProperty("score") final Long score) {
this.score = score;
this.type = SCORE;
}
Expand All @@ -46,11 +46,11 @@ public String getType() {
*
*/

public Double getScore() {
public Long getScore() {
return this.score;
}

public void setScore(final Double score) {
public void setScore(final Long score) {
this.score = score;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public class ScoreShippingRateInputImpl implements ScoreShippingRateInput, Model

private String type;

private Double score;
private Long score;

@JsonCreator
ScoreShippingRateInputImpl(@JsonProperty("score") final Double score) {
ScoreShippingRateInputImpl(@JsonProperty("score") final Long score) {
this.score = score;
this.type = SCORE;
}
Expand All @@ -46,11 +46,11 @@ public String getType() {
*
*/

public Double getScore() {
public Long getScore() {
return this.score;
}

public void setScore(final Double score) {
public void setScore(final Long score) {
this.score = score;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ public interface Review extends BaseResource, com.commercetools.api.models.Domai
public String getId();

/**
* <p>The current version of the review.</p>
* <p>Current version of the Review.</p>
*/
@NotNull
@JsonProperty("version")
public Long getVersion();

/**
*
* <p>Date and time (UTC) the Review was initially created.</p>
*/
@NotNull
@JsonProperty("createdAt")
public ZonedDateTime getCreatedAt();

/**
*
* <p>Date and time (UTC) the Review was last updated.</p>
*/
@NotNull
@JsonProperty("lastModifiedAt")
Expand Down Expand Up @@ -95,77 +95,77 @@ public interface Review extends BaseResource, com.commercetools.api.models.Domai
public String getKey();

/**
*
* <p>Must be unique among Reviews. For example, if this value is set to Customer <code>id</code>&nbsp;+ Product <code>id</code>, only one Review per Customer and per Product is allowed.</p>
*/

@JsonProperty("uniquenessValue")
public String getUniquenessValue();

/**
*
* <p>Language in which the content of the Review is written.</p>
*/

@JsonProperty("locale")
public String getLocale();

/**
*
* <p>Name of the author.</p>
*/

@JsonProperty("authorName")
public String getAuthorName();

/**
*
* <p>Title of the Review.</p>
*/

@JsonProperty("title")
public String getTitle();

/**
*
* <p>Content of the Review.</p>
*/

@JsonProperty("text")
public String getText();

/**
* <p>Identifies the target of the review. Can be a Product or a Channel</p>
* <p>Identifies the target of the Review. Can be a Product or a Channel, specified as ProductReference or ChannelReference, respectively.</p>
*/

@JsonProperty("target")
public Object getTarget();

/**
* <p>Indicates if this review is taken into account in the ratings statistics of the target. A review is per default used in the statistics, unless the review is in a state that does not have the role <code>ReviewIncludedInStatistics</code>. If the role of a State is modified after the calculation of this field, the calculation is not updated.</p>
* <p>Indicates if this Review is taken into account in the ratings statistics of the target. A Review is per default used in the statistics, unless the Review is in a state that does not have the role <code>ReviewIncludedInStatistics</code>. If the role of a State is modified after the calculation of this field, the calculation is not updated.</p>
*/
@NotNull
@JsonProperty("includedInStatistics")
public Boolean getIncludedInStatistics();

/**
* <p>Number between -100 and 100 included.</p>
* <p>Rating of the Product or Channel.</p>
*/

@JsonProperty("rating")
public Integer getRating();

/**
*
* <p>State of the Review. Used for approval processes, see Review approval process for details.</p>
*/
@Valid
@JsonProperty("state")
public StateReference getState();

/**
* <p>The customer who created the review.</p>
* <p>Customer who created the Review.</p>
*/
@Valid
@JsonProperty("customer")
public CustomerReference getCustomer();

/**
*
* <p>Custom Fields of the Review.</p>
*/
@Valid
@JsonProperty("custom")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public ReviewBuilder id(final String id) {
}

/**
* <p>The current version of the review.</p>
* <p>Current version of the Review.</p>
*/

public ReviewBuilder version(final Long version) {
Expand All @@ -96,7 +96,7 @@ public ReviewBuilder version(final Long version) {
}

/**
*
* <p>Date and time (UTC) the Review was initially created.</p>
*/

public ReviewBuilder createdAt(final java.time.ZonedDateTime createdAt) {
Expand All @@ -105,7 +105,7 @@ public ReviewBuilder createdAt(final java.time.ZonedDateTime createdAt) {
}

/**
*
* <p>Date and time (UTC) the Review was last updated.</p>
*/

public ReviewBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) {
Expand Down Expand Up @@ -162,7 +162,7 @@ public ReviewBuilder key(@Nullable final String key) {
}

/**
*
* <p>Must be unique among Reviews. For example, if this value is set to Customer <code>id</code>&nbsp;+ Product <code>id</code>, only one Review per Customer and per Product is allowed.</p>
*/

public ReviewBuilder uniquenessValue(@Nullable final String uniquenessValue) {
Expand All @@ -171,7 +171,7 @@ public ReviewBuilder uniquenessValue(@Nullable final String uniquenessValue) {
}

/**
*
* <p>Language in which the content of the Review is written.</p>
*/

public ReviewBuilder locale(@Nullable final String locale) {
Expand All @@ -180,7 +180,7 @@ public ReviewBuilder locale(@Nullable final String locale) {
}

/**
*
* <p>Name of the author.</p>
*/

public ReviewBuilder authorName(@Nullable final String authorName) {
Expand All @@ -189,7 +189,7 @@ public ReviewBuilder authorName(@Nullable final String authorName) {
}

/**
*
* <p>Title of the Review.</p>
*/

public ReviewBuilder title(@Nullable final String title) {
Expand All @@ -198,7 +198,7 @@ public ReviewBuilder title(@Nullable final String title) {
}

/**
*
* <p>Content of the Review.</p>
*/

public ReviewBuilder text(@Nullable final String text) {
Expand All @@ -207,7 +207,7 @@ public ReviewBuilder text(@Nullable final String text) {
}

/**
* <p>Identifies the target of the review. Can be a Product or a Channel</p>
* <p>Identifies the target of the Review. Can be a Product or a Channel, specified as ProductReference or ChannelReference, respectively.</p>
*/

public ReviewBuilder target(@Nullable final java.lang.Object target) {
Expand All @@ -216,7 +216,7 @@ public ReviewBuilder target(@Nullable final java.lang.Object target) {
}

/**
* <p>Indicates if this review is taken into account in the ratings statistics of the target. A review is per default used in the statistics, unless the review is in a state that does not have the role <code>ReviewIncludedInStatistics</code>. If the role of a State is modified after the calculation of this field, the calculation is not updated.</p>
* <p>Indicates if this Review is taken into account in the ratings statistics of the target. A Review is per default used in the statistics, unless the Review is in a state that does not have the role <code>ReviewIncludedInStatistics</code>. If the role of a State is modified after the calculation of this field, the calculation is not updated.</p>
*/

public ReviewBuilder includedInStatistics(final Boolean includedInStatistics) {
Expand All @@ -225,7 +225,7 @@ public ReviewBuilder includedInStatistics(final Boolean includedInStatistics) {
}

/**
* <p>Number between -100 and 100 included.</p>
* <p>Rating of the Product or Channel.</p>
*/

public ReviewBuilder rating(@Nullable final Integer rating) {
Expand All @@ -234,7 +234,7 @@ public ReviewBuilder rating(@Nullable final Integer rating) {
}

/**
*
* <p>State of the Review. Used for approval processes, see Review approval process for details.</p>
*/

public ReviewBuilder state(
Expand All @@ -244,7 +244,7 @@ public ReviewBuilder state(
}

/**
*
* <p>State of the Review. Used for approval processes, see Review approval process for details.</p>
*/

public ReviewBuilder state(@Nullable final com.commercetools.api.models.state.StateReference state) {
Expand All @@ -253,7 +253,7 @@ public ReviewBuilder state(@Nullable final com.commercetools.api.models.state.St
}

/**
* <p>The customer who created the review.</p>
* <p>Customer who created the Review.</p>
*/

public ReviewBuilder customer(
Expand All @@ -263,7 +263,7 @@ public ReviewBuilder customer(
}

/**
* <p>The customer who created the review.</p>
* <p>Customer who created the Review.</p>
*/

public ReviewBuilder customer(@Nullable final com.commercetools.api.models.customer.CustomerReference customer) {
Expand All @@ -272,7 +272,7 @@ public ReviewBuilder customer(@Nullable final com.commercetools.api.models.custo
}

/**
*
* <p>Custom Fields of the Review.</p>
*/

public ReviewBuilder custom(
Expand All @@ -282,7 +282,7 @@ public ReviewBuilder custom(
}

/**
*
* <p>Custom Fields of the Review.</p>
*/

public ReviewBuilder custom(@Nullable final com.commercetools.api.models.type.CustomFields custom) {
Expand Down
Loading

0 comments on commit 4fb8c12

Please sign in to comment.