|
12 | 12 |
|
13 | 13 | import com.commercetools.api.models.business_unit.BusinessUnitType;
|
14 | 14 | import com.commercetools.api.models.common.BaseAddress;
|
15 |
| -import com.commercetools.api.models.type.CustomFields; |
| 15 | +import com.commercetools.api.models.type.CustomFieldsDraft; |
16 | 16 | import com.fasterxml.jackson.annotation.*;
|
17 | 17 | import com.fasterxml.jackson.databind.annotation.*;
|
18 | 18 |
|
|
38 | 38 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "unitType", defaultImpl = MyBusinessUnitDraftImpl.class, visible = true)
|
39 | 39 | @JsonDeserialize(as = MyBusinessUnitDraftImpl.class)
|
40 | 40 | @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
|
41 |
| -public interface MyBusinessUnitDraft |
42 |
| - extends com.commercetools.api.models.Customizable<MyBusinessUnitDraft>, com.commercetools.api.models.WithKey { |
| 41 | +public interface MyBusinessUnitDraft extends com.commercetools.api.models.CustomizableDraft<MyBusinessUnitDraft>, |
| 42 | + com.commercetools.api.models.WithKey { |
43 | 43 |
|
44 | 44 | /**
|
45 | 45 | * <p>User-defined unique identifier for the BusinessUnit.</p>
|
@@ -79,7 +79,7 @@ public interface MyBusinessUnitDraft
|
79 | 79 | */
|
80 | 80 | @Valid
|
81 | 81 | @JsonProperty("custom")
|
82 |
| - public CustomFields getCustom(); |
| 82 | + public CustomFieldsDraft getCustom(); |
83 | 83 |
|
84 | 84 | /**
|
85 | 85 | * <p>Addresses used by the Business Unit.</p>
|
@@ -147,7 +147,7 @@ public interface MyBusinessUnitDraft
|
147 | 147 | * @param custom value to be set
|
148 | 148 | */
|
149 | 149 |
|
150 |
| - public void setCustom(final CustomFields custom); |
| 150 | + public void setCustom(final CustomFieldsDraft custom); |
151 | 151 |
|
152 | 152 | /**
|
153 | 153 | * <p>Addresses used by the Business Unit.</p>
|
@@ -230,7 +230,7 @@ public static MyBusinessUnitDraft deepCopy(@Nullable final MyBusinessUnitDraft t
|
230 | 230 | instance.setKey(template.getKey());
|
231 | 231 | instance.setName(template.getName());
|
232 | 232 | instance.setContactEmail(template.getContactEmail());
|
233 |
| - instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom())); |
| 233 | + instance.setCustom(com.commercetools.api.models.type.CustomFieldsDraft.deepCopy(template.getCustom())); |
234 | 234 | instance.setAddresses(Optional.ofNullable(template.getAddresses())
|
235 | 235 | .map(t -> t.stream()
|
236 | 236 | .map(com.commercetools.api.models.common.BaseAddress::deepCopy)
|
|
0 commit comments