Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Auto Mation
committed
Sep 9, 2022
1 parent
632be1c
commit 93548e8
Showing
21 changed files
with
1,290 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
...a-generated/com/commercetools/api/models/message/StandalonePriceActiveChangedMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
|
||
package com.commercetools.api.models.message; | ||
|
||
import java.time.*; | ||
import java.util.*; | ||
import java.util.function.Function; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
|
||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
/** | ||
* <p>Generated after a successful Change Active update action.</p> | ||
* | ||
* <hr> | ||
* Example to create an instance using the builder pattern | ||
* <div class=code-example> | ||
* <pre><code class='java'> | ||
* StandalonePriceActiveChangedMessage standalonePriceActiveChangedMessage = StandalonePriceActiveChangedMessage.builder() | ||
* .id("{id}") | ||
* .version(0.3) | ||
* .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z")) | ||
* .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z")) | ||
* .sequenceNumber(0.3) | ||
* .resource(resourceBuilder -> resourceBuilder) | ||
* .resourceVersion(0.3) | ||
* .active(true) | ||
* .oldActive(true) | ||
* .build() | ||
* </code></pre> | ||
* </div> | ||
*/ | ||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
@JsonDeserialize(as = StandalonePriceActiveChangedMessageImpl.class) | ||
public interface StandalonePriceActiveChangedMessage extends Message { | ||
|
||
String STANDALONE_PRICE_ACTIVE_CHANGED = "StandalonePriceActiveChanged"; | ||
|
||
/** | ||
* <p>Value of the <code>active</code> field of the StandalonePrice after the Change Active update action.</p> | ||
*/ | ||
@NotNull | ||
@JsonProperty("active") | ||
public Boolean getActive(); | ||
|
||
/** | ||
* <p>Value of the <code>active</code> field of the StandalonePrice before the Change Active update action.</p> | ||
*/ | ||
@NotNull | ||
@JsonProperty("oldActive") | ||
public Boolean getOldActive(); | ||
|
||
public void setActive(final Boolean active); | ||
|
||
public void setOldActive(final Boolean oldActive); | ||
|
||
public static StandalonePriceActiveChangedMessage of() { | ||
return new StandalonePriceActiveChangedMessageImpl(); | ||
} | ||
|
||
public static StandalonePriceActiveChangedMessage of(final StandalonePriceActiveChangedMessage template) { | ||
StandalonePriceActiveChangedMessageImpl instance = new StandalonePriceActiveChangedMessageImpl(); | ||
instance.setId(template.getId()); | ||
instance.setVersion(template.getVersion()); | ||
instance.setCreatedAt(template.getCreatedAt()); | ||
instance.setLastModifiedAt(template.getLastModifiedAt()); | ||
instance.setLastModifiedBy(template.getLastModifiedBy()); | ||
instance.setCreatedBy(template.getCreatedBy()); | ||
instance.setSequenceNumber(template.getSequenceNumber()); | ||
instance.setResource(template.getResource()); | ||
instance.setResourceVersion(template.getResourceVersion()); | ||
instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers()); | ||
instance.setActive(template.getActive()); | ||
instance.setOldActive(template.getOldActive()); | ||
return instance; | ||
} | ||
|
||
public static StandalonePriceActiveChangedMessageBuilder builder() { | ||
return StandalonePriceActiveChangedMessageBuilder.of(); | ||
} | ||
|
||
public static StandalonePriceActiveChangedMessageBuilder builder( | ||
final StandalonePriceActiveChangedMessage template) { | ||
return StandalonePriceActiveChangedMessageBuilder.of(template); | ||
} | ||
|
||
default <T> T withStandalonePriceActiveChangedMessage(Function<StandalonePriceActiveChangedMessage, T> helper) { | ||
return helper.apply(this); | ||
} | ||
|
||
public static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceActiveChangedMessage> typeReference() { | ||
return new com.fasterxml.jackson.core.type.TypeReference<StandalonePriceActiveChangedMessage>() { | ||
@Override | ||
public String toString() { | ||
return "TypeReference<StandalonePriceActiveChangedMessage>"; | ||
} | ||
}; | ||
} | ||
} |
Oops, something went wrong.