Skip to content

Commit

Permalink
TASK: Updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Sep 9, 2022
1 parent 632be1c commit 93548e8
Show file tree
Hide file tree
Showing 21 changed files with 1,290 additions and 6 deletions.
Expand Up @@ -142,6 +142,7 @@
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StagedQuoteStateChangedMessageImpl.class, name = StagedQuoteStateChangedMessage.STAGED_QUOTE_STATE_CHANGED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StagedQuoteStateTransitionMessageImpl.class, name = StagedQuoteStateTransitionMessage.STAGED_QUOTE_STATE_TRANSITION),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StagedQuoteValidToSetMessageImpl.class, name = StagedQuoteValidToSetMessage.STAGED_QUOTE_VALID_TO_SET),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StandalonePriceActiveChangedMessageImpl.class, name = StandalonePriceActiveChangedMessage.STANDALONE_PRICE_ACTIVE_CHANGED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StandalonePriceCreatedMessageImpl.class, name = StandalonePriceCreatedMessage.STANDALONE_PRICE_CREATED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StandalonePriceDeletedMessageImpl.class, name = StandalonePriceDeletedMessage.STANDALONE_PRICE_DELETED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StandalonePriceDiscountSetMessageImpl.class, name = StandalonePriceDiscountSetMessage.STANDALONE_PRICE_DISCOUNT_SET),
Expand Down Expand Up @@ -669,6 +670,10 @@ public static com.commercetools.api.models.message.StagedQuoteValidToSetMessageB
return com.commercetools.api.models.message.StagedQuoteValidToSetMessageBuilder.of();
}

public static com.commercetools.api.models.message.StandalonePriceActiveChangedMessageBuilder standalonePriceActiveChangedBuilder() {
return com.commercetools.api.models.message.StandalonePriceActiveChangedMessageBuilder.of();
}

public static com.commercetools.api.models.message.StandalonePriceCreatedMessageBuilder standalonePriceCreatedBuilder() {
return com.commercetools.api.models.message.StandalonePriceCreatedMessageBuilder.of();
}
Expand Down
Expand Up @@ -423,6 +423,10 @@ public com.commercetools.api.models.message.StagedQuoteValidToSetMessageBuilder
return com.commercetools.api.models.message.StagedQuoteValidToSetMessageBuilder.of();
}

public com.commercetools.api.models.message.StandalonePriceActiveChangedMessageBuilder standalonePriceActiveChangedBuilder() {
return com.commercetools.api.models.message.StandalonePriceActiveChangedMessageBuilder.of();
}

public com.commercetools.api.models.message.StandalonePriceCreatedMessageBuilder standalonePriceCreatedBuilder() {
return com.commercetools.api.models.message.StandalonePriceCreatedMessageBuilder.of();
}
Expand Down
Expand Up @@ -130,6 +130,7 @@
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StagedQuoteStateChangedMessagePayloadImpl.class, name = StagedQuoteStateChangedMessagePayload.STAGED_QUOTE_STATE_CHANGED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StagedQuoteStateTransitionMessagePayloadImpl.class, name = StagedQuoteStateTransitionMessagePayload.STAGED_QUOTE_STATE_TRANSITION),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StagedQuoteValidToSetMessagePayloadImpl.class, name = StagedQuoteValidToSetMessagePayload.STAGED_QUOTE_VALID_TO_SET),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StandalonePriceActiveChangedMessagePayloadImpl.class, name = StandalonePriceActiveChangedMessagePayload.STANDALONE_PRICE_ACTIVE_CHANGED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StandalonePriceCreatedMessagePayloadImpl.class, name = StandalonePriceCreatedMessagePayload.STANDALONE_PRICE_CREATED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StandalonePriceDeletedMessagePayloadImpl.class, name = StandalonePriceDeletedMessagePayload.STANDALONE_PRICE_DELETED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.StandalonePriceDiscountSetMessagePayloadImpl.class, name = StandalonePriceDiscountSetMessagePayload.STANDALONE_PRICE_DISCOUNT_SET),
Expand Down Expand Up @@ -570,6 +571,10 @@ public static com.commercetools.api.models.message.StagedQuoteValidToSetMessageP
return com.commercetools.api.models.message.StagedQuoteValidToSetMessagePayloadBuilder.of();
}

public static com.commercetools.api.models.message.StandalonePriceActiveChangedMessagePayloadBuilder standalonePriceActiveChangedBuilder() {
return com.commercetools.api.models.message.StandalonePriceActiveChangedMessagePayloadBuilder.of();
}

public static com.commercetools.api.models.message.StandalonePriceCreatedMessagePayloadBuilder standalonePriceCreatedBuilder() {
return com.commercetools.api.models.message.StandalonePriceCreatedMessagePayloadBuilder.of();
}
Expand Down
Expand Up @@ -427,6 +427,10 @@ public com.commercetools.api.models.message.StagedQuoteValidToSetMessagePayloadB
return com.commercetools.api.models.message.StagedQuoteValidToSetMessagePayloadBuilder.of();
}

public com.commercetools.api.models.message.StandalonePriceActiveChangedMessagePayloadBuilder standalonePriceActiveChangedBuilder() {
return com.commercetools.api.models.message.StandalonePriceActiveChangedMessagePayloadBuilder.of();
}

public com.commercetools.api.models.message.StandalonePriceCreatedMessagePayloadBuilder standalonePriceCreatedBuilder() {
return com.commercetools.api.models.message.StandalonePriceCreatedMessagePayloadBuilder.of();
}
Expand Down
@@ -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>";
}
};
}
}

0 comments on commit 93548e8

Please sign in to comment.