Skip to content

Commit 27e46ed

Browse files
committed
build(codegen): updating SDK
1 parent dc6061d commit 27e46ed

File tree

103 files changed

+1668
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1668
-95
lines changed

changes.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,30 @@
6969
- added property `approvalRuleMode` to type `CompanyDraft`
7070
- added property `approvalRuleMode` to type `Division`
7171
- added property `approvalRuleMode` to type `DivisionDraft`
72+
- added property `addressId` to type `BusinessUnitAddressCustomFieldAddedMessage`
73+
- added property `addressId` to type `BusinessUnitAddressCustomFieldChangedMessage`
74+
- added property `addressId` to type `BusinessUnitAddressCustomFieldRemovedMessage`
75+
- added property `addressId` to type `BusinessUnitAddressCustomTypeRemovedMessage`
76+
- added property `addressId` to type `BusinessUnitAddressCustomTypeSetMessage`
77+
- added property `addressId` to type `CustomerAddressCustomFieldAddedMessage`
78+
- added property `addressId` to type `CustomerAddressCustomFieldChangedMessage`
79+
- added property `addressId` to type `CustomerAddressCustomFieldRemovedMessage`
80+
- added property `addressId` to type `CustomerAddressCustomTypeRemovedMessage`
81+
- added property `addressId` to type `CustomerAddressCustomTypeSetMessage`
7282
- added property `metaTitle` to type `ProductTailoringCreatedMessage`
7383
- added property `metaDescription` to type `ProductTailoringCreatedMessage`
7484
- added property `metaKeywords` to type `ProductTailoringCreatedMessage`
7585
- added property `variants` to type `ProductTailoringCreatedMessage`
86+
- added property `addressId` to type `BusinessUnitAddressCustomFieldAddedMessagePayload`
87+
- added property `addressId` to type `BusinessUnitAddressCustomFieldChangedMessagePayload`
88+
- added property `addressId` to type `BusinessUnitAddressCustomFieldRemovedMessagePayload`
89+
- added property `addressId` to type `BusinessUnitAddressCustomTypeRemovedMessagePayload`
90+
- added property `addressId` to type `BusinessUnitAddressCustomTypeSetMessagePayload`
91+
- added property `addressId` to type `CustomerAddressCustomFieldAddedMessagePayload`
92+
- added property `addressId` to type `CustomerAddressCustomFieldChangedMessagePayload`
93+
- added property `addressId` to type `CustomerAddressCustomFieldRemovedMessagePayload`
94+
- added property `addressId` to type `CustomerAddressCustomTypeRemovedMessagePayload`
95+
- added property `addressId` to type `CustomerAddressCustomTypeSetMessagePayload`
7696
- added property `metaTitle` to type `ProductTailoringCreatedMessagePayload`
7797
- added property `metaDescription` to type `ProductTailoringCreatedMessagePayload`
7898
- added property `metaKeywords` to type `ProductTailoringCreatedMessagePayload`

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,29 +1380,34 @@ type BusinessUnitAddressChanged implements MessagePayload {
13801380
type BusinessUnitAddressCustomFieldAdded implements MessagePayload {
13811381
name: String!
13821382
value: Json!
1383+
addressId: String
13831384
type: String!
13841385
}
13851386

13861387
type BusinessUnitAddressCustomFieldChanged implements MessagePayload {
13871388
name: String!
13881389
value: Json!
13891390
oldValue: Json
1391+
addressId: String
13901392
type: String!
13911393
}
13921394

13931395
type BusinessUnitAddressCustomFieldRemoved implements MessagePayload {
13941396
name: String!
1397+
addressId: String
13951398
type: String!
13961399
}
13971400

13981401
type BusinessUnitAddressCustomTypeRemoved implements MessagePayload {
13991402
oldTypeId: String
1403+
addressId: String
14001404
type: String!
14011405
}
14021406

14031407
type BusinessUnitAddressCustomTypeSet implements MessagePayload {
14041408
customFields: CustomFieldsType!
14051409
oldTypeId: String
1410+
addressId: String
14061411
type: String!
14071412
}
14081413

@@ -3417,29 +3422,34 @@ type CustomerAddressChanged implements MessagePayload {
34173422
type CustomerAddressCustomFieldAdded implements MessagePayload {
34183423
name: String!
34193424
value: Json!
3425+
addressId: String
34203426
type: String!
34213427
}
34223428

34233429
type CustomerAddressCustomFieldChanged implements MessagePayload {
34243430
name: String!
34253431
value: Json!
34263432
previousValue: Json
3433+
addressId: String
34273434
type: String!
34283435
}
34293436

34303437
type CustomerAddressCustomFieldRemoved implements MessagePayload {
34313438
name: String!
3439+
addressId: String
34323440
type: String!
34333441
}
34343442

34353443
type CustomerAddressCustomTypeRemoved implements MessagePayload {
34363444
previousTypeId: String
3445+
addressId: String
34373446
type: String!
34383447
}
34393448

34403449
type CustomerAddressCustomTypeSet implements MessagePayload {
34413450
customFields: CustomFieldsType!
34423451
previousTypeId: String
3452+
addressId: String
34433453
type: String!
34443454
}
34453455

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ public interface BusinessUnitAddressCustomFieldAddedMessage extends Message {
5959
@JsonProperty("value")
6060
public Object getValue();
6161

62+
/**
63+
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
64+
* @return addressId
65+
*/
66+
67+
@JsonProperty("addressId")
68+
public String getAddressId();
69+
6270
/**
6371
* <p>Name of the Custom Field that was added.</p>
6472
* @param name value to be set
@@ -73,6 +81,13 @@ public interface BusinessUnitAddressCustomFieldAddedMessage extends Message {
7381

7482
public void setValue(final Object value);
7583

84+
/**
85+
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
86+
* @param addressId value to be set
87+
*/
88+
89+
public void setAddressId(final String addressId);
90+
7691
/**
7792
* factory method
7893
* @return instance of BusinessUnitAddressCustomFieldAddedMessage
@@ -101,6 +116,7 @@ public static BusinessUnitAddressCustomFieldAddedMessage of(
101116
instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers());
102117
instance.setName(template.getName());
103118
instance.setValue(template.getValue());
119+
instance.setAddressId(template.getAddressId());
104120
return instance;
105121
}
106122

@@ -130,6 +146,7 @@ public static BusinessUnitAddressCustomFieldAddedMessage deepCopy(
130146
.deepCopy(template.getResourceUserProvidedIdentifiers()));
131147
instance.setName(template.getName());
132148
instance.setValue(template.getValue());
149+
instance.setAddressId(template.getAddressId());
133150
return instance;
134151
}
135152

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

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public class BusinessUnitAddressCustomFieldAddedMessageBuilder
5959

6060
private java.lang.Object value;
6161

62+
@Nullable
63+
private String addressId;
64+
6265
/**
6366
* <p>Unique identifier of the Message. Can be used to track which Messages have been processed.</p>
6467
* @param id value to be set
@@ -283,6 +286,17 @@ public BusinessUnitAddressCustomFieldAddedMessageBuilder value(final java.lang.O
283286
return this;
284287
}
285288

289+
/**
290+
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
291+
* @param addressId value to be set
292+
* @return Builder
293+
*/
294+
295+
public BusinessUnitAddressCustomFieldAddedMessageBuilder addressId(@Nullable final String addressId) {
296+
this.addressId = addressId;
297+
return this;
298+
}
299+
286300
/**
287301
* <p>Unique identifier of the Message. Can be used to track which Messages have been processed.</p>
288302
* @return id
@@ -394,6 +408,16 @@ public java.lang.Object getValue() {
394408
return this.value;
395409
}
396410

411+
/**
412+
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
413+
* @return addressId
414+
*/
415+
416+
@Nullable
417+
public String getAddressId() {
418+
return this.addressId;
419+
}
420+
397421
/**
398422
* builds BusinessUnitAddressCustomFieldAddedMessage with checking for non-null required values
399423
* @return BusinessUnitAddressCustomFieldAddedMessage
@@ -413,7 +437,7 @@ public BusinessUnitAddressCustomFieldAddedMessage build() {
413437
Objects.requireNonNull(value, BusinessUnitAddressCustomFieldAddedMessage.class + ": value is missing");
414438
return new BusinessUnitAddressCustomFieldAddedMessageImpl(id, version, createdAt, lastModifiedAt,
415439
lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, name,
416-
value);
440+
value, addressId);
417441
}
418442

419443
/**
@@ -423,7 +447,7 @@ public BusinessUnitAddressCustomFieldAddedMessage build() {
423447
public BusinessUnitAddressCustomFieldAddedMessage buildUnchecked() {
424448
return new BusinessUnitAddressCustomFieldAddedMessageImpl(id, version, createdAt, lastModifiedAt,
425449
lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, name,
426-
value);
450+
value, addressId);
427451
}
428452

429453
/**
@@ -454,6 +478,7 @@ public static BusinessUnitAddressCustomFieldAddedMessageBuilder of(
454478
builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers();
455479
builder.name = template.getName();
456480
builder.value = template.getValue();
481+
builder.addressId = template.getAddressId();
457482
return builder;
458483
}
459484

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public class BusinessUnitAddressCustomFieldAddedMessageImpl
4949

5050
private java.lang.Object value;
5151

52+
private String addressId;
53+
5254
/**
5355
* create instance with all properties
5456
*/
@@ -63,7 +65,8 @@ public class BusinessUnitAddressCustomFieldAddedMessageImpl
6365
@JsonProperty("resource") final com.commercetools.api.models.common.Reference resource,
6466
@JsonProperty("resourceVersion") final Long resourceVersion,
6567
@JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers,
66-
@JsonProperty("name") final String name, @JsonProperty("value") final java.lang.Object value) {
68+
@JsonProperty("name") final String name, @JsonProperty("value") final java.lang.Object value,
69+
@JsonProperty("addressId") final String addressId) {
6770
this.id = id;
6871
this.version = version;
6972
this.createdAt = createdAt;
@@ -76,6 +79,7 @@ public class BusinessUnitAddressCustomFieldAddedMessageImpl
7679
this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers;
7780
this.name = name;
7881
this.value = value;
82+
this.addressId = addressId;
7983
this.type = BUSINESS_UNIT_ADDRESS_CUSTOM_FIELD_ADDED;
8084
}
8185

@@ -190,6 +194,14 @@ public java.lang.Object getValue() {
190194
return this.value;
191195
}
192196

197+
/**
198+
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
199+
*/
200+
201+
public String getAddressId() {
202+
return this.addressId;
203+
}
204+
193205
public void setId(final String id) {
194206
this.id = id;
195207
}
@@ -239,6 +251,10 @@ public void setValue(final java.lang.Object value) {
239251
this.value = value;
240252
}
241253

254+
public void setAddressId(final String addressId) {
255+
this.addressId = addressId;
256+
}
257+
242258
@Override
243259
public boolean equals(Object o) {
244260
if (this == o)
@@ -262,6 +278,7 @@ public boolean equals(Object o) {
262278
.append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers)
263279
.append(name, that.name)
264280
.append(value, that.value)
281+
.append(addressId, that.addressId)
265282
.append(id, that.id)
266283
.append(version, that.version)
267284
.append(createdAt, that.createdAt)
@@ -275,6 +292,7 @@ public boolean equals(Object o) {
275292
.append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers)
276293
.append(name, that.name)
277294
.append(value, that.value)
295+
.append(addressId, that.addressId)
278296
.isEquals();
279297
}
280298

@@ -293,6 +311,7 @@ public int hashCode() {
293311
.append(resourceUserProvidedIdentifiers)
294312
.append(name)
295313
.append(value)
314+
.append(addressId)
296315
.toHashCode();
297316
}
298317

@@ -311,6 +330,7 @@ public String toString() {
311330
.append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers)
312331
.append("name", name)
313332
.append("value", value)
333+
.append("addressId", addressId)
314334
.build();
315335
}
316336

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ public interface BusinessUnitAddressCustomFieldAddedMessagePayload extends Messa
5252
@JsonProperty("value")
5353
public Object getValue();
5454

55+
/**
56+
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
57+
* @return addressId
58+
*/
59+
60+
@JsonProperty("addressId")
61+
public String getAddressId();
62+
5563
/**
5664
* <p>Name of the Custom Field that was added.</p>
5765
* @param name value to be set
@@ -66,6 +74,13 @@ public interface BusinessUnitAddressCustomFieldAddedMessagePayload extends Messa
6674

6775
public void setValue(final Object value);
6876

77+
/**
78+
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
79+
* @param addressId value to be set
80+
*/
81+
82+
public void setAddressId(final String addressId);
83+
6984
/**
7085
* factory method
7186
* @return instance of BusinessUnitAddressCustomFieldAddedMessagePayload
@@ -84,6 +99,7 @@ public static BusinessUnitAddressCustomFieldAddedMessagePayload of(
8499
BusinessUnitAddressCustomFieldAddedMessagePayloadImpl instance = new BusinessUnitAddressCustomFieldAddedMessagePayloadImpl();
85100
instance.setName(template.getName());
86101
instance.setValue(template.getValue());
102+
instance.setAddressId(template.getAddressId());
87103
return instance;
88104
}
89105

@@ -101,6 +117,7 @@ public static BusinessUnitAddressCustomFieldAddedMessagePayload deepCopy(
101117
BusinessUnitAddressCustomFieldAddedMessagePayloadImpl instance = new BusinessUnitAddressCustomFieldAddedMessagePayloadImpl();
102118
instance.setName(template.getName());
103119
instance.setValue(template.getValue());
120+
instance.setAddressId(template.getAddressId());
104121
return instance;
105122
}
106123

0 commit comments

Comments
 (0)