Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated SDKs #690

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,30 @@
- added property `approvalRuleMode` to type `CompanyDraft`
- added property `approvalRuleMode` to type `Division`
- added property `approvalRuleMode` to type `DivisionDraft`
- added property `addressId` to type `BusinessUnitAddressCustomFieldAddedMessage`
- added property `addressId` to type `BusinessUnitAddressCustomFieldChangedMessage`
- added property `addressId` to type `BusinessUnitAddressCustomFieldRemovedMessage`
- added property `addressId` to type `BusinessUnitAddressCustomTypeRemovedMessage`
- added property `addressId` to type `BusinessUnitAddressCustomTypeSetMessage`
- added property `addressId` to type `CustomerAddressCustomFieldAddedMessage`
- added property `addressId` to type `CustomerAddressCustomFieldChangedMessage`
- added property `addressId` to type `CustomerAddressCustomFieldRemovedMessage`
- added property `addressId` to type `CustomerAddressCustomTypeRemovedMessage`
- added property `addressId` to type `CustomerAddressCustomTypeSetMessage`
- added property `metaTitle` to type `ProductTailoringCreatedMessage`
- added property `metaDescription` to type `ProductTailoringCreatedMessage`
- added property `metaKeywords` to type `ProductTailoringCreatedMessage`
- added property `variants` to type `ProductTailoringCreatedMessage`
- added property `addressId` to type `BusinessUnitAddressCustomFieldAddedMessagePayload`
- added property `addressId` to type `BusinessUnitAddressCustomFieldChangedMessagePayload`
- added property `addressId` to type `BusinessUnitAddressCustomFieldRemovedMessagePayload`
- added property `addressId` to type `BusinessUnitAddressCustomTypeRemovedMessagePayload`
- added property `addressId` to type `BusinessUnitAddressCustomTypeSetMessagePayload`
- added property `addressId` to type `CustomerAddressCustomFieldAddedMessagePayload`
- added property `addressId` to type `CustomerAddressCustomFieldChangedMessagePayload`
- added property `addressId` to type `CustomerAddressCustomFieldRemovedMessagePayload`
- added property `addressId` to type `CustomerAddressCustomTypeRemovedMessagePayload`
- added property `addressId` to type `CustomerAddressCustomTypeSetMessagePayload`
- added property `metaTitle` to type `ProductTailoringCreatedMessagePayload`
- added property `metaDescription` to type `ProductTailoringCreatedMessagePayload`
- added property `metaKeywords` to type `ProductTailoringCreatedMessagePayload`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1380,29 +1380,34 @@ type BusinessUnitAddressChanged implements MessagePayload {
type BusinessUnitAddressCustomFieldAdded implements MessagePayload {
name: String!
value: Json!
addressId: String
type: String!
}

type BusinessUnitAddressCustomFieldChanged implements MessagePayload {
name: String!
value: Json!
oldValue: Json
addressId: String
type: String!
}

type BusinessUnitAddressCustomFieldRemoved implements MessagePayload {
name: String!
addressId: String
type: String!
}

type BusinessUnitAddressCustomTypeRemoved implements MessagePayload {
oldTypeId: String
addressId: String
type: String!
}

type BusinessUnitAddressCustomTypeSet implements MessagePayload {
customFields: CustomFieldsType!
oldTypeId: String
addressId: String
type: String!
}

Expand Down Expand Up @@ -3417,29 +3422,34 @@ type CustomerAddressChanged implements MessagePayload {
type CustomerAddressCustomFieldAdded implements MessagePayload {
name: String!
value: Json!
addressId: String
type: String!
}

type CustomerAddressCustomFieldChanged implements MessagePayload {
name: String!
value: Json!
previousValue: Json
addressId: String
type: String!
}

type CustomerAddressCustomFieldRemoved implements MessagePayload {
name: String!
addressId: String
type: String!
}

type CustomerAddressCustomTypeRemoved implements MessagePayload {
previousTypeId: String
addressId: String
type: String!
}

type CustomerAddressCustomTypeSet implements MessagePayload {
customFields: CustomFieldsType!
previousTypeId: String
addressId: String
type: String!
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ public interface BusinessUnitAddressCustomFieldAddedMessage extends Message {
@JsonProperty("value")
public Object getValue();

/**
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
* @return addressId
*/

@JsonProperty("addressId")
public String getAddressId();

/**
* <p>Name of the Custom Field that was added.</p>
* @param name value to be set
Expand All @@ -73,6 +81,13 @@ public interface BusinessUnitAddressCustomFieldAddedMessage extends Message {

public void setValue(final Object value);

/**
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
* @param addressId value to be set
*/

public void setAddressId(final String addressId);

/**
* factory method
* @return instance of BusinessUnitAddressCustomFieldAddedMessage
Expand Down Expand Up @@ -101,6 +116,7 @@ public static BusinessUnitAddressCustomFieldAddedMessage of(
instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers());
instance.setName(template.getName());
instance.setValue(template.getValue());
instance.setAddressId(template.getAddressId());
return instance;
}

Expand Down Expand Up @@ -130,6 +146,7 @@ public static BusinessUnitAddressCustomFieldAddedMessage deepCopy(
.deepCopy(template.getResourceUserProvidedIdentifiers()));
instance.setName(template.getName());
instance.setValue(template.getValue());
instance.setAddressId(template.getAddressId());
return instance;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public class BusinessUnitAddressCustomFieldAddedMessageBuilder

private java.lang.Object value;

@Nullable
private String addressId;

/**
* <p>Unique identifier of the Message. Can be used to track which Messages have been processed.</p>
* @param id value to be set
Expand Down Expand Up @@ -283,6 +286,17 @@ public BusinessUnitAddressCustomFieldAddedMessageBuilder value(final java.lang.O
return this;
}

/**
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
* @param addressId value to be set
* @return Builder
*/

public BusinessUnitAddressCustomFieldAddedMessageBuilder addressId(@Nullable final String addressId) {
this.addressId = addressId;
return this;
}

/**
* <p>Unique identifier of the Message. Can be used to track which Messages have been processed.</p>
* @return id
Expand Down Expand Up @@ -394,6 +408,16 @@ public java.lang.Object getValue() {
return this.value;
}

/**
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
* @return addressId
*/

@Nullable
public String getAddressId() {
return this.addressId;
}

/**
* builds BusinessUnitAddressCustomFieldAddedMessage with checking for non-null required values
* @return BusinessUnitAddressCustomFieldAddedMessage
Expand All @@ -413,7 +437,7 @@ public BusinessUnitAddressCustomFieldAddedMessage build() {
Objects.requireNonNull(value, BusinessUnitAddressCustomFieldAddedMessage.class + ": value is missing");
return new BusinessUnitAddressCustomFieldAddedMessageImpl(id, version, createdAt, lastModifiedAt,
lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, name,
value);
value, addressId);
}

/**
Expand All @@ -423,7 +447,7 @@ public BusinessUnitAddressCustomFieldAddedMessage build() {
public BusinessUnitAddressCustomFieldAddedMessage buildUnchecked() {
return new BusinessUnitAddressCustomFieldAddedMessageImpl(id, version, createdAt, lastModifiedAt,
lastModifiedBy, createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, name,
value);
value, addressId);
}

/**
Expand Down Expand Up @@ -454,6 +478,7 @@ public static BusinessUnitAddressCustomFieldAddedMessageBuilder of(
builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers();
builder.name = template.getName();
builder.value = template.getValue();
builder.addressId = template.getAddressId();
return builder;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public class BusinessUnitAddressCustomFieldAddedMessageImpl

private java.lang.Object value;

private String addressId;

/**
* create instance with all properties
*/
Expand All @@ -63,7 +65,8 @@ public class BusinessUnitAddressCustomFieldAddedMessageImpl
@JsonProperty("resource") final com.commercetools.api.models.common.Reference resource,
@JsonProperty("resourceVersion") final Long resourceVersion,
@JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers,
@JsonProperty("name") final String name, @JsonProperty("value") final java.lang.Object value) {
@JsonProperty("name") final String name, @JsonProperty("value") final java.lang.Object value,
@JsonProperty("addressId") final String addressId) {
this.id = id;
this.version = version;
this.createdAt = createdAt;
Expand All @@ -76,6 +79,7 @@ public class BusinessUnitAddressCustomFieldAddedMessageImpl
this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers;
this.name = name;
this.value = value;
this.addressId = addressId;
this.type = BUSINESS_UNIT_ADDRESS_CUSTOM_FIELD_ADDED;
}

Expand Down Expand Up @@ -190,6 +194,14 @@ public java.lang.Object getValue() {
return this.value;
}

/**
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
*/

public String getAddressId() {
return this.addressId;
}

public void setId(final String id) {
this.id = id;
}
Expand Down Expand Up @@ -239,6 +251,10 @@ public void setValue(final java.lang.Object value) {
this.value = value;
}

public void setAddressId(final String addressId) {
this.addressId = addressId;
}

@Override
public boolean equals(Object o) {
if (this == o)
Expand All @@ -262,6 +278,7 @@ public boolean equals(Object o) {
.append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers)
.append(name, that.name)
.append(value, that.value)
.append(addressId, that.addressId)
.append(id, that.id)
.append(version, that.version)
.append(createdAt, that.createdAt)
Expand All @@ -275,6 +292,7 @@ public boolean equals(Object o) {
.append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers)
.append(name, that.name)
.append(value, that.value)
.append(addressId, that.addressId)
.isEquals();
}

Expand All @@ -293,6 +311,7 @@ public int hashCode() {
.append(resourceUserProvidedIdentifiers)
.append(name)
.append(value)
.append(addressId)
.toHashCode();
}

Expand All @@ -311,6 +330,7 @@ public String toString() {
.append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers)
.append("name", name)
.append("value", value)
.append("addressId", addressId)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ public interface BusinessUnitAddressCustomFieldAddedMessagePayload extends Messa
@JsonProperty("value")
public Object getValue();

/**
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
* @return addressId
*/

@JsonProperty("addressId")
public String getAddressId();

/**
* <p>Name of the Custom Field that was added.</p>
* @param name value to be set
Expand All @@ -66,6 +74,13 @@ public interface BusinessUnitAddressCustomFieldAddedMessagePayload extends Messa

public void setValue(final Object value);

/**
* <p><code>id</code> of the Address to which the Custom Field was added.</p>
* @param addressId value to be set
*/

public void setAddressId(final String addressId);

/**
* factory method
* @return instance of BusinessUnitAddressCustomFieldAddedMessagePayload
Expand All @@ -84,6 +99,7 @@ public static BusinessUnitAddressCustomFieldAddedMessagePayload of(
BusinessUnitAddressCustomFieldAddedMessagePayloadImpl instance = new BusinessUnitAddressCustomFieldAddedMessagePayloadImpl();
instance.setName(template.getName());
instance.setValue(template.getValue());
instance.setAddressId(template.getAddressId());
return instance;
}

Expand All @@ -101,6 +117,7 @@ public static BusinessUnitAddressCustomFieldAddedMessagePayload deepCopy(
BusinessUnitAddressCustomFieldAddedMessagePayloadImpl instance = new BusinessUnitAddressCustomFieldAddedMessagePayloadImpl();
instance.setName(template.getName());
instance.setValue(template.getValue());
instance.setAddressId(template.getAddressId());
return instance;
}

Expand Down
Loading
Loading