Skip to content

Commit 3f4ecdf

Browse files
committed
build(codegen): updating SDK
1 parent eb9667c commit 3f4ecdf

File tree

36 files changed

+229
-240
lines changed

36 files changed

+229
-240
lines changed

changes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
<summary>Changed Property(s)</summary>
55

66
- :warning: changed property `value` of type `DirectDiscountDraft` from type `CartDiscountValue` to `CartDiscountValueDraft`
7+
- :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessage` from type `Money` to `CentPrecisionMoney`
8+
- :warning: changed property `value` of type `StandalonePriceValueChangedMessage` from type `Money` to `TypedMoney`
9+
- :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessage` from type `Money` to `TypedMoney`
10+
- :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessagePayload` from type `Money` to `CentPrecisionMoney`
11+
- :warning: changed property `value` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney`
12+
- :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney`
13+
- :warning: changed property `price` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney`
14+
- :warning: changed property `freeAbove` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney`
715
</details>
816

917

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import io.vrap.rmf.base.client.utils.Generated;
1515

1616
/**
17-
* <p>Object that stores cent amounts in a specific currency.</p>
17+
* <p>Object that stores money in cent amounts of a specific currency.</p>
1818
*
1919
* <hr>
2020
* Example to create an instance using the builder pattern

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.apache.commons.lang3.builder.ToStringStyle;
1818

1919
/**
20-
* <p>Object that stores cent amounts in a specific currency.</p>
20+
* <p>Object that stores money in cent amounts of a specific currency.</p>
2121
*/
2222
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2323
public class CentPrecisionMoneyImpl implements CentPrecisionMoney, ModelBase {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import io.vrap.rmf.base.client.utils.Generated;
1515

1616
/**
17-
* <p>Money object that stores an amount of a fraction of the smallest indivisible unit of the specified currency.</p>
17+
* <p>Object that stores money as a fraction of the smallest indivisible unit of a specific currency.</p>
1818
*
1919
* <hr>
2020
* Example to create an instance using the builder pattern

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import io.vrap.rmf.base.client.utils.Generated;
1515

1616
/**
17-
* <p>Money draft object to store an amount of a fraction of the smallest indivisible unit of the specified currency.</p>
17+
* <p>Draft object to store money as a fraction of the smallest indivisible unit for a specific currency.</p>
1818
*
1919
* <hr>
2020
* Example to create an instance using the builder pattern

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.apache.commons.lang3.builder.ToStringStyle;
1818

1919
/**
20-
* <p>Money draft object to store an amount of a fraction of the smallest indivisible unit of the specified currency.</p>
20+
* <p>Draft object to store money as a fraction of the smallest indivisible unit for a specific currency.</p>
2121
*/
2222
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2323
public class HighPrecisionMoneyDraftImpl implements HighPrecisionMoneyDraft, ModelBase {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.apache.commons.lang3.builder.ToStringStyle;
1818

1919
/**
20-
* <p>Money object that stores an amount of a fraction of the smallest indivisible unit of the specified currency.</p>
20+
* <p>Object that stores money as a fraction of the smallest indivisible unit of a specific currency.</p>
2121
*/
2222
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2323
public class HighPrecisionMoneyImpl implements HighPrecisionMoney, ModelBase {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderLineItemDiscountSetMessage.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import com.commercetools.api.models.cart.DiscountedLineItemPriceForQuantity;
1414
import com.commercetools.api.models.cart.MethodTaxedPrice;
1515
import com.commercetools.api.models.cart.TaxedItemPrice;
16-
import com.commercetools.api.models.common.Money;
16+
import com.commercetools.api.models.common.CentPrecisionMoney;
1717
import com.fasterxml.jackson.annotation.*;
1818
import com.fasterxml.jackson.databind.annotation.*;
1919

@@ -83,7 +83,7 @@ public interface OrderLineItemDiscountSetMessage extends OrderMessage {
8383
@NotNull
8484
@Valid
8585
@JsonProperty("totalPrice")
86-
public Money getTotalPrice();
86+
public CentPrecisionMoney getTotalPrice();
8787

8888
/**
8989
* <p>TaxedItemPrice of the Line Item after the Discount recalculation.</p>
@@ -137,7 +137,7 @@ public void setDiscountedPricePerQuantity(
137137
* @param totalPrice value to be set
138138
*/
139139

140-
public void setTotalPrice(final Money totalPrice);
140+
public void setTotalPrice(final CentPrecisionMoney totalPrice);
141141

142142
/**
143143
* <p>TaxedItemPrice of the Line Item after the Discount recalculation.</p>
@@ -225,7 +225,8 @@ public static OrderLineItemDiscountSetMessage deepCopy(@Nullable final OrderLine
225225
.map(com.commercetools.api.models.cart.DiscountedLineItemPriceForQuantity::deepCopy)
226226
.collect(Collectors.toList()))
227227
.orElse(null));
228-
instance.setTotalPrice(com.commercetools.api.models.common.Money.deepCopy(template.getTotalPrice()));
228+
instance.setTotalPrice(
229+
com.commercetools.api.models.common.CentPrecisionMoney.deepCopy(template.getTotalPrice()));
229230
instance.setTaxedPrice(com.commercetools.api.models.cart.TaxedItemPrice.deepCopy(template.getTaxedPrice()));
230231
instance.setTaxedPricePortions(Optional.ofNullable(template.getTaxedPricePortions())
231232
.map(t -> t.stream()

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderLineItemDiscountSetMessageBuilder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class OrderLineItemDiscountSetMessageBuilder implements Builder<OrderLine
6464

6565
private java.util.List<com.commercetools.api.models.cart.DiscountedLineItemPriceForQuantity> discountedPricePerQuantity;
6666

67-
private com.commercetools.api.models.common.Money totalPrice;
67+
private com.commercetools.api.models.common.CentPrecisionMoney totalPrice;
6868

6969
@Nullable
7070
private com.commercetools.api.models.cart.TaxedItemPrice taxedPrice;
@@ -394,8 +394,8 @@ public OrderLineItemDiscountSetMessageBuilder setDiscountedPricePerQuantity(
394394
*/
395395

396396
public OrderLineItemDiscountSetMessageBuilder totalPrice(
397-
Function<com.commercetools.api.models.common.MoneyBuilder, com.commercetools.api.models.common.MoneyBuilder> builder) {
398-
this.totalPrice = builder.apply(com.commercetools.api.models.common.MoneyBuilder.of()).build();
397+
Function<com.commercetools.api.models.common.CentPrecisionMoneyBuilder, com.commercetools.api.models.common.CentPrecisionMoneyBuilder> builder) {
398+
this.totalPrice = builder.apply(com.commercetools.api.models.common.CentPrecisionMoneyBuilder.of()).build();
399399
return this;
400400
}
401401

@@ -406,8 +406,8 @@ public OrderLineItemDiscountSetMessageBuilder totalPrice(
406406
*/
407407

408408
public OrderLineItemDiscountSetMessageBuilder withTotalPrice(
409-
Function<com.commercetools.api.models.common.MoneyBuilder, com.commercetools.api.models.common.Money> builder) {
410-
this.totalPrice = builder.apply(com.commercetools.api.models.common.MoneyBuilder.of());
409+
Function<com.commercetools.api.models.common.CentPrecisionMoneyBuilder, com.commercetools.api.models.common.CentPrecisionMoney> builder) {
410+
this.totalPrice = builder.apply(com.commercetools.api.models.common.CentPrecisionMoneyBuilder.of());
411411
return this;
412412
}
413413

@@ -418,7 +418,7 @@ public OrderLineItemDiscountSetMessageBuilder withTotalPrice(
418418
*/
419419

420420
public OrderLineItemDiscountSetMessageBuilder totalPrice(
421-
final com.commercetools.api.models.common.Money totalPrice) {
421+
final com.commercetools.api.models.common.CentPrecisionMoney totalPrice) {
422422
this.totalPrice = totalPrice;
423423
return this;
424424
}
@@ -676,7 +676,7 @@ public java.util.List<com.commercetools.api.models.cart.DiscountedLineItemPriceF
676676
* @return totalPrice
677677
*/
678678

679-
public com.commercetools.api.models.common.Money getTotalPrice() {
679+
public com.commercetools.api.models.common.CentPrecisionMoney getTotalPrice() {
680680
return this.totalPrice;
681681
}
682682

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderLineItemDiscountSetMessageImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class OrderLineItemDiscountSetMessageImpl implements OrderLineItemDiscoun
5050

5151
private java.util.List<com.commercetools.api.models.cart.DiscountedLineItemPriceForQuantity> discountedPricePerQuantity;
5252

53-
private com.commercetools.api.models.common.Money totalPrice;
53+
private com.commercetools.api.models.common.CentPrecisionMoney totalPrice;
5454

5555
private com.commercetools.api.models.cart.TaxedItemPrice taxedPrice;
5656

@@ -72,7 +72,7 @@ public class OrderLineItemDiscountSetMessageImpl implements OrderLineItemDiscoun
7272
@JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers,
7373
@JsonProperty("lineItemId") final String lineItemId, @JsonProperty("lineItemKey") final String lineItemKey,
7474
@JsonProperty("discountedPricePerQuantity") final java.util.List<com.commercetools.api.models.cart.DiscountedLineItemPriceForQuantity> discountedPricePerQuantity,
75-
@JsonProperty("totalPrice") final com.commercetools.api.models.common.Money totalPrice,
75+
@JsonProperty("totalPrice") final com.commercetools.api.models.common.CentPrecisionMoney totalPrice,
7676
@JsonProperty("taxedPrice") final com.commercetools.api.models.cart.TaxedItemPrice taxedPrice,
7777
@JsonProperty("taxedPricePortions") final java.util.List<com.commercetools.api.models.cart.MethodTaxedPrice> taxedPricePortions) {
7878
this.id = id;
@@ -217,7 +217,7 @@ public java.util.List<com.commercetools.api.models.cart.DiscountedLineItemPriceF
217217
* <p>Total Price of the Line Item after the Discount recalculation.</p>
218218
*/
219219

220-
public com.commercetools.api.models.common.Money getTotalPrice() {
220+
public com.commercetools.api.models.common.CentPrecisionMoney getTotalPrice() {
221221
return this.totalPrice;
222222
}
223223

@@ -296,7 +296,7 @@ public void setDiscountedPricePerQuantity(
296296
this.discountedPricePerQuantity = discountedPricePerQuantity;
297297
}
298298

299-
public void setTotalPrice(final com.commercetools.api.models.common.Money totalPrice) {
299+
public void setTotalPrice(final com.commercetools.api.models.common.CentPrecisionMoney totalPrice) {
300300
this.totalPrice = totalPrice;
301301
}
302302

0 commit comments

Comments
 (0)