Skip to content

Commit 19d8e57

Browse files
Merge pull request #691 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents ec3e02b + 138d1f2 commit 19d8e57

File tree

39 files changed

+600
-30
lines changed

39 files changed

+600
-30
lines changed

changes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
- added property `variants` to type `ProductTailoringData`
101101
- added property `variants` to type `ProductTailoringDraft`
102102
- added property `variants` to type `ProductTailoringInStoreDraft`
103+
- added property `active` to type `ShippingMethod`
104+
- added property `active` to type `ShippingMethodDraft`
103105
- added property `store` to type `StagedQuote`
104106
</details>
105107

@@ -156,6 +158,7 @@
156158
- added type `ProductTailoringSetImageLabelAction`
157159
- added type `CustomerSearchStatus`
158160
- added type `ProjectChangeCustomerSearchStatusAction`
161+
- added type `ShippingMethodChangeActiveAction`
159162
</details>
160163

161164

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2652,6 +2652,10 @@ input ChangeQuoteState {
26522652
quoteState: QuoteState!
26532653
}
26542654

2655+
input ChangeShippingMethodActive {
2656+
active: Boolean!
2657+
}
2658+
26552659
input ChangeShippingMethodIsDefault {
26562660
isDefault: Boolean!
26572661
}
@@ -13044,6 +13048,7 @@ input ShippingInfoImportDraft {
1304413048
type ShippingMethod implements Versioned & ReferenceExpandable {
1304513049
name: String!
1304613050
zoneRates: [ZoneRate!]!
13051+
active: Boolean!
1304713052
isDefault: Boolean!
1304813053
predicate: String
1304913054
key: String
@@ -13081,6 +13086,7 @@ input ShippingMethodDraft {
1308113086
localizedDescription: [LocalizedStringItemInputType!]
1308213087
taxCategory: ResourceIdentifierInput!
1308313088
zoneRates: [ZoneRateDraft!] = []
13089+
active: Boolean
1308413090
isDefault: Boolean!
1308513091
predicate: String
1308613092
key: String
@@ -13115,6 +13121,7 @@ enum ShippingMethodState {
1311513121
input ShippingMethodUpdateAction {
1311613122
addShippingRate: AddShippingMethodShippingRate
1311713123
addZone: AddShippingMethodZone
13124+
changeActive: ChangeShippingMethodActive
1311813125
changeIsDefault: ChangeShippingMethodIsDefault
1311913126
changeName: ChangeShippingMethodName
1312013127
changeTaxCategory: ChangeShippingMethodTaxCategory

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Creating a Cart fails with an InvalidOperation error if the ShippingMethod referenced in the CartDraft has a <code>predicate</code> that does not match the Cart.</p>
23+
* <p>If the referenced ShippingMethod in the CartDraft has a predicate that does not match, or if the Shipping Method is not active, an InvalidOperation error is returned.</p>
2424
* <p>Specific Error Codes:</p>
2525
* <ul>
2626
* <li>DiscountCodeNonApplicable</li>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.apache.commons.lang3.builder.HashCodeBuilder;
2222

2323
/**
24-
* <p>Creating a Cart fails with an InvalidOperation error if the ShippingMethod referenced in the CartDraft has a <code>predicate</code> that does not match the Cart.</p>
24+
* <p>If the referenced ShippingMethod in the CartDraft has a predicate that does not match, or if the Shipping Method is not active, an InvalidOperation error is returned.</p>
2525
* <p>Specific Error Codes:</p>
2626
* <ul>
2727
* <li>DiscountCodeNonApplicable</li>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Creates a Cart in the Store specified by <code>storeKey</code>. When using this endpoint the Cart's <code>store</code> field is always set to the Store specified in the path parameter. If the referenced ShippingMethod in the CartDraft has a predicate that does not match, an InvalidOperation error is returned.</p>
23+
* <p>Creates a Cart in the Store specified by <code>storeKey</code>. When using this endpoint the Cart's <code>store</code> field is always set to the Store specified in the path parameter. If the referenced ShippingMethod in the CartDraft has a predicate that does not match, or if the Shipping Method is not active, an InvalidOperation error is returned.</p>
2424
* <p>Specific Error Codes:</p>
2525
* <ul>
2626
* <li>DiscountCodeNonApplicable</li>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.apache.commons.lang3.builder.HashCodeBuilder;
2222

2323
/**
24-
* <p>Creates a Cart in the Store specified by <code>storeKey</code>. When using this endpoint the Cart's <code>store</code> field is always set to the Store specified in the path parameter. If the referenced ShippingMethod in the CartDraft has a predicate that does not match, an InvalidOperation error is returned.</p>
24+
* <p>Creates a Cart in the Store specified by <code>storeKey</code>. When using this endpoint the Cart's <code>store</code> field is always set to the Store specified in the path parameter. If the referenced ShippingMethod in the CartDraft has a predicate that does not match, or if the Shipping Method is not active, an InvalidOperation error is returned.</p>
2525
* <p>Specific Error Codes:</p>
2626
* <ul>
2727
* <li>DiscountCodeNonApplicable</li>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersPost.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* <li>DiscountCodeNonApplicable</li>
3030
* <li>ShippingMethodDoesNotMatchCart</li>
3131
* <li>InvalidItemShippingDetails</li>
32+
* <li>InvalidOperation</li>
3233
* <li>MatchingPriceNotFound</li>
3334
* <li>MissingTaxRateForCountry</li>
3435
* <li>CountryNotConfiguredInStore</li>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersPostString.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* <li>DiscountCodeNonApplicable</li>
3131
* <li>ShippingMethodDoesNotMatchCart</li>
3232
* <li>InvalidItemShippingDetails</li>
33+
* <li>InvalidOperation</li>
3334
* <li>MatchingPriceNotFound</li>
3435
* <li>MissingTaxRateForCountry</li>
3536
* <li>CountryNotConfiguredInStore</li>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Retrieves all the ShippingMethods that can ship to the shipping address of the given Cart in a given Store. Each ShippingMethod contains exactly one ShippingRate with the flag <code>isMatching</code> set to <code>true</code>. This ShippingRate is used when the ShippingMethod is added to the Cart.</p>
23+
* <p>Retrieves all the active ShippingMethods that can ship to the shipping address of the given Cart in a given Store. Each ShippingMethod contains exactly one ShippingRate with the flag <code>isMatching</code> set to <code>true</code>. This ShippingRate is used when the ShippingMethod is added to the Cart.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Checks if a ShippingMethod that can ship to the shipping address of the given Cart exists in the given Store. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
23+
* <p>Checks if an active ShippingMethod that can ship to the shipping address of the given Cart exists in the given Store. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPost.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* <li>DiscountCodeNonApplicable</li>
3131
* <li>ShippingMethodDoesNotMatchCart</li>
3232
* <li>InvalidItemShippingDetails</li>
33+
* <li>InvalidOperation</li>
3334
* <li>MatchingPriceNotFound</li>
3435
* <li>MissingTaxRateForCountry</li>
3536
* </ul>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersPostString.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* <li>DiscountCodeNonApplicable</li>
3232
* <li>ShippingMethodDoesNotMatchCart</li>
3333
* <li>InvalidItemShippingDetails</li>
34+
* <li>InvalidOperation</li>
3435
* <li>MatchingPriceNotFound</li>
3536
* <li>MissingTaxRateForCountry</li>
3637
* </ul>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Retrieves all the ShippingMethods that can ship to the shipping address of the given Cart. Each ShippingMethod contains exactly one ShippingRate with the flag <code>isMatching</code> set to <code>true</code>. This ShippingRate is used when the ShippingMethod is added to the Cart.</p>
23+
* <p>Retrieves all the active ShippingMethods that can ship to the shipping address of the given Cart. Each ShippingMethod contains exactly one ShippingRate with the flag <code>isMatching</code> set to <code>true</code>. This ShippingRate is used when the ShippingMethod is added to the Cart.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartHead.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Checks if a ShippingMethod exists for the given Cart. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
23+
* <p>Checks if an active ShippingMethod exists for the given Cart. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Retrieves all the ShippingMethods that can ship to the given Location with a <code>predicate</code> that matches the given Cart. Each ShippingMethod contains exactly one ShippingRate with the flag <code>isMatching</code> set to <code>true</code>. This ShippingRate is used when the ShippingMethod is added to the Cart.</p>
23+
* <p>Retrieves all the active ShippingMethods that can ship to the given Location with a <code>predicate</code> that matches the given Cart. Each ShippingMethod contains exactly one ShippingRate with the flag <code>isMatching</code> set to <code>true</code>. This ShippingRate is used when the ShippingMethod is added to the Cart.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationHead.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Checks if a ShippingMethod that can ship to the given Location exists for the given Cart. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
23+
* <p>Checks if an active ShippingMethod that can ship to the given Location exists for the given Cart. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Retrieves all the ShippingMethods that can ship to the given Location. ShippingMethods that have a <code>predicate</code> defined are automatically disqualified. If the <code>currency</code> parameter is given, then the ShippingMethods must also have a rate defined in the specified currency. Each ShippingMethod contains at least one ShippingRate with the flag <code>isMatching</code> set to <code>true</code>. If the <code>currency</code> parameter is given, exactly one ShippingRate will contain it.</p>
23+
* <p>Retrieves all the active ShippingMethods that can ship to the given Location. ShippingMethods that have a <code>predicate</code> defined are automatically disqualified. If the <code>currency</code> parameter is given, then the ShippingMethods must also have a rate defined in the specified currency. Each ShippingMethod contains at least one ShippingRate with the flag <code>isMatching</code> set to <code>true</code>. If the <code>currency</code> parameter is given, exactly one ShippingRate will contain it.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationHead.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Checks if a ShippingMethod that can ship to the given Location exists. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
23+
* <p>Checks if an active ShippingMethod that can ship to the given Location exists. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Retrieves all the ShippingMethods that can ship to the given Location for an OrderEdit.</p>
23+
* <p>Retrieves all the active ShippingMethods that can ship to the given Location for an OrderEdit.</p>
2424
* <p>If the OrderEdit preview cannot be generated, an EditPreviewFailed error is returned.</p>
2525
*
2626
* <hr>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditHead.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Checks if a ShippingMethod that can ship to the given Location exists for the given OrderEdit. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
23+
* <p>Checks if an active ShippingMethod that can ship to the given Location exists for the given OrderEdit. Returns a <code>200 OK</code> status if the ShippingMethod exists or a <code>404 Not Found</code> otherwise.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethod.java

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* .name("{name}")
3939
* .taxCategory(taxCategoryBuilder -> taxCategoryBuilder)
4040
* .plusZoneRates(zoneRatesBuilder -> zoneRatesBuilder)
41+
* .active(true)
4142
* .isDefault(true)
4243
* .build()
4344
* </code></pre>
@@ -158,7 +159,16 @@ public interface ShippingMethod
158159
public List<ZoneRate> getZoneRates();
159160

160161
/**
161-
* <p>If <code>true</code> this ShippingMethod is the Project's default ShippingMethod.</p>
162+
* <p>Indicates if the ShippingMethod is active.</p>
163+
* <p>If <code>true</code>, the ShippingMethod can be used during the creation or update of a Cart or Order.</p>
164+
* @return active
165+
*/
166+
@NotNull
167+
@JsonProperty("active")
168+
public Boolean getActive();
169+
170+
/**
171+
* <p>If <code>true</code>, this ShippingMethod is the Project's default ShippingMethod.</p>
162172
* @return isDefault
163173
*/
164174
@NotNull
@@ -281,7 +291,15 @@ public interface ShippingMethod
281291
public void setZoneRates(final List<ZoneRate> zoneRates);
282292

283293
/**
284-
* <p>If <code>true</code> this ShippingMethod is the Project's default ShippingMethod.</p>
294+
* <p>Indicates if the ShippingMethod is active.</p>
295+
* <p>If <code>true</code>, the ShippingMethod can be used during the creation or update of a Cart or Order.</p>
296+
* @param active value to be set
297+
*/
298+
299+
public void setActive(final Boolean active);
300+
301+
/**
302+
* <p>If <code>true</code>, this ShippingMethod is the Project's default ShippingMethod.</p>
285303
* @param isDefault value to be set
286304
*/
287305

@@ -329,6 +347,7 @@ public static ShippingMethod of(final ShippingMethod template) {
329347
instance.setLocalizedDescription(template.getLocalizedDescription());
330348
instance.setTaxCategory(template.getTaxCategory());
331349
instance.setZoneRates(template.getZoneRates());
350+
instance.setActive(template.getActive());
332351
instance.setIsDefault(template.getIsDefault());
333352
instance.setPredicate(template.getPredicate());
334353
instance.setCustom(template.getCustom());
@@ -367,6 +386,7 @@ public static ShippingMethod deepCopy(@Nullable final ShippingMethod template) {
367386
.map(com.commercetools.api.models.shipping_method.ZoneRate::deepCopy)
368387
.collect(Collectors.toList()))
369388
.orElse(null));
389+
instance.setActive(template.getActive());
370390
instance.setIsDefault(template.getIsDefault());
371391
instance.setPredicate(template.getPredicate());
372392
instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom()));

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/shipping_method/ShippingMethodBuilder.java

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* .name("{name}")
2424
* .taxCategory(taxCategoryBuilder -> taxCategoryBuilder)
2525
* .plusZoneRates(zoneRatesBuilder -> zoneRatesBuilder)
26+
* .active(true)
2627
* .isDefault(true)
2728
* .build()
2829
* </code></pre>
@@ -64,6 +65,8 @@ public class ShippingMethodBuilder implements Builder<ShippingMethod> {
6465

6566
private java.util.List<com.commercetools.api.models.shipping_method.ZoneRate> zoneRates;
6667

68+
private Boolean active;
69+
6770
private Boolean isDefault;
6871

6972
@Nullable
@@ -419,7 +422,19 @@ public ShippingMethodBuilder setZoneRates(
419422
}
420423

421424
/**
422-
* <p>If <code>true</code> this ShippingMethod is the Project's default ShippingMethod.</p>
425+
* <p>Indicates if the ShippingMethod is active.</p>
426+
* <p>If <code>true</code>, the ShippingMethod can be used during the creation or update of a Cart or Order.</p>
427+
* @param active value to be set
428+
* @return Builder
429+
*/
430+
431+
public ShippingMethodBuilder active(final Boolean active) {
432+
this.active = active;
433+
return this;
434+
}
435+
436+
/**
437+
* <p>If <code>true</code>, this ShippingMethod is the Project's default ShippingMethod.</p>
423438
* @param isDefault value to be set
424439
* @return Builder
425440
*/
@@ -599,7 +614,17 @@ public java.util.List<com.commercetools.api.models.shipping_method.ZoneRate> get
599614
}
600615

601616
/**
602-
* <p>If <code>true</code> this ShippingMethod is the Project's default ShippingMethod.</p>
617+
* <p>Indicates if the ShippingMethod is active.</p>
618+
* <p>If <code>true</code>, the ShippingMethod can be used during the creation or update of a Cart or Order.</p>
619+
* @return active
620+
*/
621+
622+
public Boolean getActive() {
623+
return this.active;
624+
}
625+
626+
/**
627+
* <p>If <code>true</code>, this ShippingMethod is the Project's default ShippingMethod.</p>
603628
* @return isDefault
604629
*/
605630

@@ -639,9 +664,11 @@ public ShippingMethod build() {
639664
Objects.requireNonNull(name, ShippingMethod.class + ": name is missing");
640665
Objects.requireNonNull(taxCategory, ShippingMethod.class + ": taxCategory is missing");
641666
Objects.requireNonNull(zoneRates, ShippingMethod.class + ": zoneRates is missing");
667+
Objects.requireNonNull(active, ShippingMethod.class + ": active is missing");
642668
Objects.requireNonNull(isDefault, ShippingMethod.class + ": isDefault is missing");
643669
return new ShippingMethodImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, name,
644-
localizedName, description, localizedDescription, taxCategory, zoneRates, isDefault, predicate, custom);
670+
localizedName, description, localizedDescription, taxCategory, zoneRates, active, isDefault, predicate,
671+
custom);
645672
}
646673

647674
/**
@@ -650,7 +677,8 @@ public ShippingMethod build() {
650677
*/
651678
public ShippingMethod buildUnchecked() {
652679
return new ShippingMethodImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, key, name,
653-
localizedName, description, localizedDescription, taxCategory, zoneRates, isDefault, predicate, custom);
680+
localizedName, description, localizedDescription, taxCategory, zoneRates, active, isDefault, predicate,
681+
custom);
654682
}
655683

656684
/**
@@ -681,6 +709,7 @@ public static ShippingMethodBuilder of(final ShippingMethod template) {
681709
builder.localizedDescription = template.getLocalizedDescription();
682710
builder.taxCategory = template.getTaxCategory();
683711
builder.zoneRates = template.getZoneRates();
712+
builder.active = template.getActive();
684713
builder.isDefault = template.getIsDefault();
685714
builder.predicate = template.getPredicate();
686715
builder.custom = template.getCustom();

0 commit comments

Comments
 (0)