Skip to content

Commit

Permalink
deprecate OrderResourceIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Aug 7, 2023
1 parent eeb1a65 commit be8696d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
1 change: 1 addition & 0 deletions api-java-mixin.raml
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,7 @@ types:
(java-extends): 'com.commercetools.api.models.WithKey'
ResourceIdentifier:
(java-extends): 'com.commercetools.api.models.WithKey'
(java-builder-implements): 'ResourceIdentifierBuilderMixin'
TypeReference:
(java-extends): 'com.commercetools.api.models.Identifiable<Type>'
(java-mixin): |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* ResourceIdentifierBuilder
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ResourceIdentifierBuilder {
public class ResourceIdentifierBuilder implements ResourceIdentifierBuilderMixin {

public com.commercetools.api.models.associate_role.AssociateRoleResourceIdentifierBuilder associateRoleBuilder() {
return com.commercetools.api.models.associate_role.AssociateRoleResourceIdentifierBuilder.of();
Expand Down Expand Up @@ -59,10 +59,6 @@ public com.commercetools.api.models.order_edit.OrderEditResourceIdentifierBuilde
return com.commercetools.api.models.order_edit.OrderEditResourceIdentifierBuilder.of();
}

public com.commercetools.api.models.order.OrderResourceIdentifierBuilder orderBuilder() {
return com.commercetools.api.models.order.OrderResourceIdentifierBuilder.of();
}

public com.commercetools.api.models.payment.PaymentResourceIdentifierBuilder paymentBuilder() {
return com.commercetools.api.models.payment.PaymentResourceIdentifierBuilder.of();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

package com.commercetools.api.models.common;

public interface ResourceIdentifierBuilderMixin {
@Deprecated
default com.commercetools.api.models.order.OrderResourceIdentifierBuilder orderBuilder() {
return com.commercetools.api.models.order.OrderResourceIdentifierBuilder.of();
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

package com.commercetools.api.models.order;

import java.util.function.Function;

import javax.annotation.Nullable;

import com.commercetools.api.models.common.ResourceIdentifier;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.vrap.rmf.base.client.utils.Generated;

import javax.annotation.Nullable;
import java.util.function.Function;
import io.vrap.rmf.base.client.utils.Generated;

/**
* OrderResourceIdentifier
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

package com.commercetools.api.models.order;

import javax.annotation.Nullable;

import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;

import javax.annotation.Nullable;

/**
* OrderResourceIdentifierBuilder
* <hr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import com.commercetools.api.models.common.ReferenceTypeId;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.vrap.rmf.base.client.ModelBase;
import io.vrap.rmf.base.client.utils.Generated;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

Expand Down

0 comments on commit be8696d

Please sign in to comment.