Skip to content

Commit a16aa47

Browse files
Merge pull request #1047 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents f0b35b1 + b6a4dde commit a16aa47

14 files changed

Lines changed: 111 additions & 16 deletions

File tree

changes.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
- added type `GraphQLValidityLockConflictError`
1010
</details>
1111

12+
**Import changes**
13+
14+
<details>
15+
<summary>Added Enum(s)</summary>
16+
17+
- added enum `partiallyImported` to type `ProcessingState`
18+
</details>
19+
20+
21+
<details>
22+
<summary>Added Property(s)</summary>
23+
24+
- added property `partiallyImported` to type `OperationStates`
25+
</details>
26+
1227
**Checkout changes**
1328

1429
<details>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/CheckoutPaymentAuthorizedEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import jakarta.validation.constraints.NotNull;
1818

1919
/**
20-
* <p>Generated when a payment is successfully authorized in Checkout. This event indicates the payment has been validated and the amount has been reserved but not yet charged.</p>
20+
* <p>Generated when a payment is successfully authorized in Checkout. This event indicates that the payment has been validated and the amount has been reserved but not yet charged.</p>
2121
*
2222
* <hr>
2323
* Example to create an instance using the builder pattern

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/CheckoutPaymentAuthorizedEventImpl.java

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

2020
/**
21-
* <p>Generated when a payment is successfully authorized in Checkout. This event indicates the payment has been validated and the amount has been reserved but not yet charged.</p>
21+
* <p>Generated when a payment is successfully authorized in Checkout. This event indicates that the payment has been validated and the amount has been reserved but not yet charged.</p>
2222
*/
2323
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2424
public class CheckoutPaymentAuthorizedEventImpl implements CheckoutPaymentAuthorizedEvent, ModelBase {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import jakarta.validation.constraints.NotNull;
1616

1717
/**
18-
* <p>The CloudEventsFormat can be used with any <span>Destination</span>, and the payload is delivered in the <code>JSON Event Format</code>. <a href="https://docs.commercetools.com/apis/ctp:api:type:AzureEventGridDestination" rel="nofollow">AzureEventGridDestination</a> offers native support to filter and route CloudEvents.</p>
18+
* <p>The CloudEventsFormat can be used with any <a href="https://docs.commercetools.com/apis/ctp:api:type:Destination" rel="nofollow">Destination</a>, and the payload is delivered in the <code>JSON Event Format</code>. <a href="https://docs.commercetools.com/apis/ctp:api:type:AzureEventGridDestination" rel="nofollow">AzureEventGridDestination</a> offers native support to filter and route CloudEvents.</p>
1919
*
2020
* <hr>
2121
* Example to create an instance using the builder pattern

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsFormatImpl.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>The CloudEventsFormat can be used with any <span>Destination</span>, and the payload is delivered in the <code>JSON Event Format</code>. <a href="https://docs.commercetools.com/apis/ctp:api:type:AzureEventGridDestination" rel="nofollow">AzureEventGridDestination</a> offers native support to filter and route CloudEvents.</p>
20+
* <p>The CloudEventsFormat can be used with any <a href="https://docs.commercetools.com/apis/ctp:api:type:Destination" rel="nofollow">Destination</a>, and the payload is delivered in the <code>JSON Event Format</code>. <a href="https://docs.commercetools.com/apis/ctp:api:type:AzureEventGridDestination" rel="nofollow">AzureEventGridDestination</a> offers native support to filter and route CloudEvents.</p>
2121
*/
2222
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2323
public class CloudEventsFormatImpl implements CloudEventsFormat, ModelBase {

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyDelete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* <p>Deletes an Import Container in the Project.</p>
20-
* <p>Generates the <span>ImportContainerDeleted</span> Event.</p>
20+
* <p>Generates the <a href="https://docs.commercetools.com/apis/ctp:api:type:ImportContainerDeletedEvent" rel="nofollow">ImportContainerDeleted</a> Event.</p>
2121
*
2222
* <hr>
2323
* <div class=code-example>

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPost.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* <p>Creates an Import Container in the Project.</p>
20-
* <p>Generates the <span>ImportContainerCreated</span> Event.</p>
20+
* <p>Generates the <a href="https://docs.commercetools.com/apis/ctp:api:type:ImportContainerCreatedEvent" rel="nofollow">ImportContainerCreated</a> Event.</p>
2121
*
2222
* <hr>
2323
* <div class=code-example>

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPostString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* <p>Creates an Import Container in the Project.</p>
21-
* <p>Generates the <span>ImportContainerCreated</span> Event.</p>
21+
* <p>Generates the <a href="https://docs.commercetools.com/apis/ctp:api:type:ImportContainerCreatedEvent" rel="nofollow">ImportContainerCreated</a> Event.</p>
2222
*
2323
* <hr>
2424
* <div class=code-example>

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/common/ProcessingState.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,26 @@ public interface ProcessingState extends JsonEnum {
2020
<p>The initial state assigned if the request payload (JSON structure and fields) meets Import API specifications. The resource import is in progress.</p> */
2121
ProcessingState PROCESSING = ProcessingStateEnum.PROCESSING;
2222
/**
23-
<p>Either the request payload is missing the data as per Import API specifications, or even though the references were resolved, the data does not meet validation constraints. Generates the <span>ImportValidationFailed</span> Event.</p> */
23+
<p>Either the request payload is missing the data as per Import API specifications, or even though the references were resolved, the data does not meet validation constraints. Generates the <a href="https://docs.commercetools.com/apis/ctp:api:type:ImportValidationFailedEvent" rel="nofollow">ImportValidationFailed</a> Event.</p> */
2424
ProcessingState VALIDATION_FAILED = ProcessingStateEnum.VALIDATION_FAILED;
2525
/**
26-
<p>The import request contains <a href="https://docs.commercetools.com/apis/ctp:api:type:KeyReference" rel="nofollow">KeyReferences</a> to resources that do not exist in your Composable Commerce Project. Generates the <span>ImportUnresolved</span> Event.</p> */
26+
<p>The import request contains <a href="https://docs.commercetools.com/apis/ctp:api:type:KeyReference" rel="nofollow">KeyReferences</a> to resources that do not exist in your Composable Commerce Project. Generates the <a href="https://docs.commercetools.com/apis/ctp:api:type:ImportUnresolvedEvent" rel="nofollow">ImportUnresolved</a> Event.</p> */
2727
ProcessingState UNRESOLVED = ProcessingStateEnum.UNRESOLVED;
2828
/**
29-
<p>Products must have at least one Product Variant, also known as the Master Variant. If you import a Product without a Master Variant, the import request will have this status until another import request includes Master Variant data for the Product. Generates the <span>ImportWaitForMasterVariant</span> Event.</p> */
29+
<p>Products must have at least one Product Variant, also known as the Master Variant. If you import a Product without a Master Variant, the import request will have this status until another import request includes Master Variant data for the Product. Generates the <a href="https://docs.commercetools.com/apis/ctp:api:type:ImportWaitForMasterVariantEvent" rel="nofollow">ImportWaitForMasterVariant</a> Event.</p> */
3030
ProcessingState WAIT_FOR_MASTER_VARIANT = ProcessingStateEnum.WAIT_FOR_MASTER_VARIANT;
3131
/**
3232
<p>The resource was successfully imported.</p> */
3333
ProcessingState IMPORTED = ProcessingStateEnum.IMPORTED;
3434
/**
35-
<p>The resource could not be imported. References were resolved, but the system could not import the data due to an internal server error and the retry limit was reached. Generates the <span>ImportOperationRejected</span> Event.</p> */
35+
<p>The resource could not be imported. References were resolved, but the system could not import the data due to an internal server error and the retry limit was reached. Generates the <a href="https://docs.commercetools.com/apis/ctp:api:type:ImportOperationRejectedEvent" rel="nofollow">ImportOperationRejected</a> Event.</p> */
3636
ProcessingState REJECTED = ProcessingStateEnum.REJECTED;
3737
/**
3838
<p>The import request was canceled and the resource was not imported.</p> */
3939
ProcessingState CANCELED = ProcessingStateEnum.CANCELED;
40+
/**
41+
<p>The resource was partially imported. Some actions succeeded but others failed. The ImportOperation includes error details for the failed parts.</p> */
42+
ProcessingState PARTIALLY_IMPORTED = ProcessingStateEnum.PARTIALLY_IMPORTED;
4043

4144
/**
4245
* possible values of ProcessingState
@@ -75,7 +78,12 @@ enum ProcessingStateEnum implements ProcessingState {
7578
/**
7679
* canceled
7780
*/
78-
CANCELED("canceled");
81+
CANCELED("canceled"),
82+
83+
/**
84+
* partiallyImported
85+
*/
86+
PARTIALLY_IMPORTED("partiallyImported");
7987
private final String jsonName;
8088

8189
private ProcessingStateEnum(final String jsonName) {

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importsummaries/OperationStates.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* .imported(1)
3030
* .rejected(1)
3131
* .canceled(1)
32+
* .partiallyImported(1)
3233
* .build()
3334
* </code></pre>
3435
* </div>
@@ -93,6 +94,14 @@ public interface OperationStates {
9394
@JsonProperty("canceled")
9495
public Long getCanceled();
9596

97+
/**
98+
* <p>The number of ImportOperations in the <code>partiallyImported</code> state.</p>
99+
* @return partiallyImported
100+
*/
101+
@NotNull
102+
@JsonProperty("partiallyImported")
103+
public Long getPartiallyImported();
104+
96105
/**
97106
* <p>The number of ImportOperations in the <code>processing</code> state.</p>
98107
* @param processing value to be set
@@ -142,6 +151,13 @@ public interface OperationStates {
142151

143152
public void setCanceled(final Long canceled);
144153

154+
/**
155+
* <p>The number of ImportOperations in the <code>partiallyImported</code> state.</p>
156+
* @param partiallyImported value to be set
157+
*/
158+
159+
public void setPartiallyImported(final Long partiallyImported);
160+
145161
/**
146162
* factory method
147163
* @return instance of OperationStates
@@ -164,6 +180,7 @@ public static OperationStates of(final OperationStates template) {
164180
instance.setImported(template.getImported());
165181
instance.setRejected(template.getRejected());
166182
instance.setCanceled(template.getCanceled());
183+
instance.setPartiallyImported(template.getPartiallyImported());
167184
return instance;
168185
}
169186

@@ -187,6 +204,7 @@ public static OperationStates deepCopy(@Nullable final OperationStates template)
187204
instance.setImported(template.getImported());
188205
instance.setRejected(template.getRejected());
189206
instance.setCanceled(template.getCanceled());
207+
instance.setPartiallyImported(template.getPartiallyImported());
190208
return instance;
191209
}
192210

0 commit comments

Comments
 (0)