Skip to content

Commit 2bf1913

Browse files
authored
Merge pull request #189 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 0a19ffb + f6b404a commit 2bf1913

27 files changed

+164
-115
lines changed

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/categories/CategoryImport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public interface CategoryImport extends ImportResource {
5252
/**
5353
* <p>Maps to <code>Category.parent</code>.
5454
* The Reference to the parent <a href="/../api/projects/categories#category">Category</a> with which the Category is associated.
55-
* If referenced Category does not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>Unresolved</code> until the necessary Category is created.</p>
55+
* If referenced Category does not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>unresolved</code> until the necessary Category is created.</p>
5656
*/
5757
@Valid
5858
@JsonProperty("parent")

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/categories/CategoryImportImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public com.commercetools.importapi.models.common.LocalizedString getDescription(
101101
/**
102102
* <p>Maps to <code>Category.parent</code>.
103103
* The Reference to the parent <a href="/../api/projects/categories#category">Category</a> with which the Category is associated.
104-
* If referenced Category does not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>Unresolved</code> until the necessary Category is created.</p>
104+
* If referenced Category does not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>unresolved</code> until the necessary Category is created.</p>
105105
*/
106106
public com.commercetools.importapi.models.common.CategoryKeyReference getParent() {
107107
return this.parent;

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

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,23 @@
1010
import io.vrap.rmf.base.client.utils.Generated;
1111

1212
/**
13-
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>Unresolved</code>.</p>
13+
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>processing</code>.</p>
1414
*/
1515
@Generated(value = "io.vrap.rmf.codegen.rendring.CoreCodeGenerator", comments = "https://github.com/vrapio/rmf-codegen")
1616
public interface ProcessingState {
1717

1818
/**
19-
<p>The validation of the resource failed.</p>
19+
<p>This is an initial state of import resource and is currently in progress.</p>
20+
21+
*/
22+
ProcessingState PROCESSING = ProcessingStateEnum.PROCESSING;
23+
/**
24+
<p>The validation of the import resource failed.</p>
2025
2126
*/
2227
ProcessingState VALIDATION_FAILED = ProcessingStateEnum.VALIDATION_FAILED;
2328
/**
24-
<p>There may be unresolved references and they need to be resolved further.</p>
29+
<p>Import operation contains key references to other resources that are not present in platform yet.</p>
2530
2631
*/
2732
ProcessingState UNRESOLVED = ProcessingStateEnum.UNRESOLVED;
@@ -42,15 +47,17 @@ public interface ProcessingState {
4247
ProcessingState REJECTED = ProcessingStateEnum.REJECTED;
4348

4449
enum ProcessingStateEnum implements ProcessingState {
45-
VALIDATION_FAILED("ValidationFailed"),
50+
PROCESSING("processing"),
51+
52+
VALIDATION_FAILED("validationFailed"),
4653

47-
UNRESOLVED("Unresolved"),
54+
UNRESOLVED("unresolved"),
4855

49-
WAIT_FOR_MASTER_VARIANT("WaitForMasterVariant"),
56+
WAIT_FOR_MASTER_VARIANT("waitForMasterVariant"),
5057

51-
IMPORTED("Imported"),
58+
IMPORTED("imported"),
5259

53-
REJECTED("Rejected");
60+
REJECTED("rejected");
5461
private final String jsonName;
5562

5663
private ProcessingStateEnum(final String jsonName) {

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/customers/CustomerImport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public interface CustomerImport extends ImportResource {
4747
public String getPassword();
4848

4949
/**
50-
* <p>The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>Unresolved</code> until the necessary Stores are created.</p>
50+
* <p>The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>unresolved</code> until the necessary Stores are created.</p>
5151
*/
5252
@Valid
5353
@JsonProperty("stores")
@@ -125,7 +125,7 @@ public interface CustomerImport extends ImportResource {
125125

126126
/**
127127
* <p>The Reference to the <a href="/../api/projects/customerGroups#customergroup">CustomerGroup</a> with which the Customer is associated.
128-
* If referenced CustomerGroup does not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>Unresolved</code> until the necessary CustomerGroup is created.</p>
128+
* If referenced CustomerGroup does not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>unresolved</code> until the necessary CustomerGroup is created.</p>
129129
*/
130130
@Valid
131131
@JsonProperty("customerGroup")

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/customers/CustomerImportImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public String getPassword() {
138138
}
139139

140140
/**
141-
* <p>The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>Unresolved</code> until the necessary Stores are created.</p>
141+
* <p>The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>unresolved</code> until the necessary Stores are created.</p>
142142
*/
143143
public java.util.List<com.commercetools.importapi.models.common.StoreKeyReference> getStores() {
144144
return this.stores;
@@ -216,7 +216,7 @@ public Boolean getIsEmailVerified() {
216216

217217
/**
218218
* <p>The Reference to the <a href="/../api/projects/customerGroups#customergroup">CustomerGroup</a> with which the Customer is associated.
219-
* If referenced CustomerGroup does not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>Unresolved</code> until the necessary CustomerGroup is created.</p>
219+
* If referenced CustomerGroup does not exist, the <code>state</code> of the <a href="/import-operation#importoperation">ImportOperation</a> will be set to <code>unresolved</code> until the necessary CustomerGroup is created.</p>
220220
*/
221221
public com.commercetools.importapi.models.common.CustomerGroupKeyReference getCustomerGroup() {
222222
return this.customerGroup;

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/InvalidStateTransitionError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ public interface InvalidStateTransitionError extends ErrorObject {
2020
String INVALID_TRANSITION = "InvalidTransition";
2121

2222
/**
23-
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>Unresolved</code>.</p>
23+
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>processing</code>.</p>
2424
*/
2525
@NotNull
2626
@JsonProperty("currentState")
2727
public ProcessingState getCurrentState();
2828

2929
/**
30-
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>Unresolved</code>.</p>
30+
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>processing</code>.</p>
3131
*/
3232
@NotNull
3333
@JsonProperty("newState")

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/errors/InvalidStateTransitionErrorImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ public String getMessage() {
4747
}
4848

4949
/**
50-
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>Unresolved</code>.</p>
50+
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>processing</code>.</p>
5151
*/
5252
public com.commercetools.importapi.models.common.ProcessingState getCurrentState() {
5353
return this.currentState;
5454
}
5555

5656
/**
57-
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>Unresolved</code>.</p>
57+
* <p>Represents the status of a resource under an import process. Every resource has the initial state <code>processing</code>.</p>
5858
*/
5959
public com.commercetools.importapi.models.common.ProcessingState getNewState() {
6060
return this.newState;

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importoperations/ImportOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public interface ImportOperation {
5353
public String getId();
5454

5555
/**
56-
* <p>The import status of the resource. Set to <code>Rejected</code> or <code>ValidationFailed</code> if the import of the resource was not successful.</p>
56+
* <p>The import status of the resource. Set to <code>rejected</code> or <code>validationFailed</code> if the import of the resource was not successful.</p>
5757
*/
5858
@NotNull
5959
@JsonProperty("state")

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importoperations/ImportOperationImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public String getId() {
9797
}
9898

9999
/**
100-
* <p>The import status of the resource. Set to <code>Rejected</code> or <code>ValidationFailed</code> if the import of the resource was not successful.</p>
100+
* <p>The import status of the resource. Set to <code>rejected</code> or <code>validationFailed</code> if the import of the resource was not successful.</p>
101101
*/
102102
public com.commercetools.importapi.models.common.ProcessingState getState() {
103103
return this.state;

commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importoperations/ImportOperationState.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
public interface ImportOperationState {
1717

1818
/**
19-
<p>This is an initial state of import resource and is currently unresolved.</p>
19+
<p>This is an initial state of import resource and is currently processing.</p>
2020
2121
*/
22-
ImportOperationState UNRESOLVED = ImportOperationStateEnum.UNRESOLVED;
22+
ImportOperationState PROCESSING = ImportOperationStateEnum.PROCESSING;
2323
/**
2424
<p>The validation of the import resource failed.</p>
2525
2626
*/
2727
ImportOperationState VALIDATION_FAILED = ImportOperationStateEnum.VALIDATION_FAILED;
2828

2929
enum ImportOperationStateEnum implements ImportOperationState {
30-
UNRESOLVED("Unresolved"),
30+
PROCESSING("processing"),
3131

32-
VALIDATION_FAILED("ValidationFailed");
32+
VALIDATION_FAILED("validationFailed");
3333
private final String jsonName;
3434

3535
private ImportOperationStateEnum(final String jsonName) {

0 commit comments

Comments
 (0)