Skip to content

Commit de7b3f2

Browse files
committed
build(codegen): updating SDK
1 parent 5f7710d commit de7b3f2

File tree

48 files changed

+5184
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5184
-59
lines changed

changes.md

Lines changed: 6 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,11 @@
33
<details>
44
<summary>Added Type(s)</summary>
55

6-
- added type `InventoryEntrySetInventoryLimitsAction`
7-
- added type `RecurringOrderDeletedMessage`
8-
- added type `RecurringOrderExpiresAtSetMessage`
9-
- added type `RecurringOrderDeletedMessagePayload`
10-
- added type `RecurringOrderExpiresAtSetMessagePayload`
11-
- added type `ProductSearchFacetResultStats`
12-
- added type `ProductSearchFacetStatsExpression`
13-
- added type `ProductSearchFacetStatsValue`
14-
- added type `RecurringOrderSetExpiresAtAction`
15-
</details>
16-
17-
18-
<details>
19-
<summary>Removed Type(s)</summary>
20-
21-
- :warning: removed type `RecurringOrderMessagePayload`
22-
</details>
23-
24-
25-
<details>
26-
<summary>Added Method(s)</summary>
27-
28-
- added method `apiRoot.withProjectKey().recurringOrders().withId().delete()`
29-
- added method `apiRoot.withProjectKey().recurringOrders().withKey().delete()`
30-
</details>
31-
32-
33-
<details>
34-
<summary>Added Property(s)</summary>
35-
36-
- added property `minCartQuantity` to type `InventoryEntry`
37-
- added property `maxCartQuantity` to type `InventoryEntry`
38-
- added property `minCartQuantity` to type `InventoryEntryDraft`
39-
- added property `maxCartQuantity` to type `InventoryEntryDraft`
40-
- added property `expiresAt` to type `RecurringOrderDraft`
41-
</details>
42-
43-
44-
<details>
45-
<summary>Added Enum(s)</summary>
46-
47-
- added enum `discount-group` to type `ChangeSubscriptionResourceTypeId`
48-
</details>
49-
50-
**History changes**
51-
52-
<details>
53-
<summary>Added Type(s)</summary>
54-
55-
- added type `TooManyRequestsError`
56-
- added type `GraphQLTooManyRequestsError`
57-
- added type `GraphQLErrorObject`
58-
</details>
59-
60-
61-
<details>
62-
<summary>Changed Property(s)</summary>
63-
64-
- :warning: changed property `extensions` of type `GraphQLError` from type `object` to `GraphQLErrorObject`
6+
- added type `CustomerDefaultBillingAddressSetMessage`
7+
- added type `CustomerDefaultShippingAddressSetMessage`
8+
- added type `CustomerStoresSetMessage`
9+
- added type `CustomerDefaultBillingAddressSetMessagePayload`
10+
- added type `CustomerDefaultShippingAddressSetMessagePayload`
11+
- added type `CustomerStoresSetMessagePayload`
6512
</details>
6613

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3749,6 +3749,16 @@ type CustomerDateOfBirthSet implements MessagePayload {
37493749
type: String!
37503750
}
37513751

3752+
type CustomerDefaultBillingAddressSet implements MessagePayload {
3753+
address: Address
3754+
type: String!
3755+
}
3756+
3757+
type CustomerDefaultShippingAddressSet implements MessagePayload {
3758+
address: Address
3759+
type: String!
3760+
}
3761+
37523762
type CustomerDeleted implements MessagePayload {
37533763
type: String!
37543764
}
@@ -4067,6 +4077,14 @@ input CustomerSignUpDraft {
40674077
authenticationMode: AuthenticationMode
40684078
}
40694079

4080+
type CustomerStoresSet implements MessagePayload {
4081+
stores: [Store!]!
4082+
oldStores: [Store!]!
4083+
storesRef: [KeyReference!]!
4084+
oldStoresRef: [KeyReference!]!
4085+
type: String!
4086+
}
4087+
40704088
type CustomerTitleSet implements MessagePayload {
40714089
title: String
40724090
type: String!

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
/**
1616
* <p>Sets the default billing address from <code>addresses</code>. The action adds the <code>id</code> of the specified Address to the <code>billingAddressIds</code> if not contained already. Either <code>addressId</code> or <code>addressKey</code> is required.</p>
17+
* <p>This action generates the CustomerDefaultBillingAddressSet Message.</p>
1718
*
1819
* <hr>
1920
* Example to create an instance using the builder pattern

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultBillingAddressActionImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/**
2020
* <p>Sets the default billing address from <code>addresses</code>. The action adds the <code>id</code> of the specified Address to the <code>billingAddressIds</code> if not contained already. Either <code>addressId</code> or <code>addressKey</code> is required.</p>
21+
* <p>This action generates the CustomerDefaultBillingAddressSet Message.</p>
2122
*/
2223
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2324
public class CustomerSetDefaultBillingAddressActionImpl implements CustomerSetDefaultBillingAddressAction, ModelBase {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
/**
1616
* <p>Sets the default shipping address from <code>addresses</code>. The action adds the <code>id</code> of the specified address to the <code>shippingAddressIds</code> if not contained already. Either <code>addressId</code> or <code>addressKey</code> is required.</p>
17+
* <p>This action generates the CustomerDefaultShippingAddressSet Message.</p>
1718
*
1819
* <hr>
1920
* Example to create an instance using the builder pattern

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetDefaultShippingAddressActionImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/**
2020
* <p>Sets the default shipping address from <code>addresses</code>. The action adds the <code>id</code> of the specified address to the <code>shippingAddressIds</code> if not contained already. Either <code>addressId</code> or <code>addressKey</code> is required.</p>
21+
* <p>This action generates the CustomerDefaultShippingAddressSet Message.</p>
2122
*/
2223
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2324
public class CustomerSetDefaultShippingAddressActionImpl implements CustomerSetDefaultShippingAddressAction, ModelBase {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/**
2121
* <p>Sets the Stores the Customer account is associated with. If no Stores are specified, the Customer becomes a global Customer.</p>
22+
* <p>This action generates the CustomerStoresSet Message.</p>
2223
*
2324
* <hr>
2425
* Example to create an instance using the builder pattern

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerSetStoresActionImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/**
2020
* <p>Sets the Stores the Customer account is associated with. If no Stores are specified, the Customer becomes a global Customer.</p>
21+
* <p>This action generates the CustomerStoresSet Message.</p>
2122
*/
2223
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2324
public class CustomerSetStoresActionImpl implements CustomerSetStoresAction, ModelBase {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
2+
package com.commercetools.api.models.message;
3+
4+
import java.time.*;
5+
import java.util.*;
6+
import java.util.function.Function;
7+
8+
import javax.annotation.Nullable;
9+
10+
import com.commercetools.api.models.common.Address;
11+
import com.fasterxml.jackson.annotation.*;
12+
import com.fasterxml.jackson.databind.annotation.*;
13+
14+
import io.vrap.rmf.base.client.utils.Generated;
15+
16+
import jakarta.validation.Valid;
17+
18+
/**
19+
* <p>Generated after a successful Set Default Billing Address update action.</p>
20+
*
21+
* <hr>
22+
* Example to create an instance using the builder pattern
23+
* <div class=code-example>
24+
* <pre><code class='java'>
25+
* CustomerDefaultBillingAddressSetMessage customerDefaultBillingAddressSetMessage = CustomerDefaultBillingAddressSetMessage.builder()
26+
* .id("{id}")
27+
* .version(0.3)
28+
* .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
29+
* .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
30+
* .sequenceNumber(0.3)
31+
* .resource(resourceBuilder -> resourceBuilder)
32+
* .resourceVersion(0.3)
33+
* .build()
34+
* </code></pre>
35+
* </div>
36+
*/
37+
@io.vrap.rmf.base.client.utils.json.SubType("CustomerDefaultBillingAddressSet")
38+
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
39+
@JsonDeserialize(as = CustomerDefaultBillingAddressSetMessageImpl.class)
40+
public interface CustomerDefaultBillingAddressSetMessage extends Message {
41+
42+
/**
43+
* discriminator value for CustomerDefaultBillingAddressSetMessage
44+
*/
45+
String CUSTOMER_DEFAULT_BILLING_ADDRESS_SET = "CustomerDefaultBillingAddressSet";
46+
47+
/**
48+
* <p>The address that was set as the default billing address.</p>
49+
* @return address
50+
*/
51+
@Valid
52+
@JsonProperty("address")
53+
public Address getAddress();
54+
55+
/**
56+
* <p>The address that was set as the default billing address.</p>
57+
* @param address value to be set
58+
*/
59+
60+
public void setAddress(final Address address);
61+
62+
/**
63+
* factory method
64+
* @return instance of CustomerDefaultBillingAddressSetMessage
65+
*/
66+
public static CustomerDefaultBillingAddressSetMessage of() {
67+
return new CustomerDefaultBillingAddressSetMessageImpl();
68+
}
69+
70+
/**
71+
* factory method to create a shallow copy CustomerDefaultBillingAddressSetMessage
72+
* @param template instance to be copied
73+
* @return copy instance
74+
*/
75+
public static CustomerDefaultBillingAddressSetMessage of(final CustomerDefaultBillingAddressSetMessage template) {
76+
CustomerDefaultBillingAddressSetMessageImpl instance = new CustomerDefaultBillingAddressSetMessageImpl();
77+
instance.setId(template.getId());
78+
instance.setVersion(template.getVersion());
79+
instance.setCreatedAt(template.getCreatedAt());
80+
instance.setLastModifiedAt(template.getLastModifiedAt());
81+
instance.setLastModifiedBy(template.getLastModifiedBy());
82+
instance.setCreatedBy(template.getCreatedBy());
83+
instance.setSequenceNumber(template.getSequenceNumber());
84+
instance.setResource(template.getResource());
85+
instance.setResourceVersion(template.getResourceVersion());
86+
instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers());
87+
instance.setAddress(template.getAddress());
88+
return instance;
89+
}
90+
91+
public CustomerDefaultBillingAddressSetMessage copyDeep();
92+
93+
/**
94+
* factory method to create a deep copy of CustomerDefaultBillingAddressSetMessage
95+
* @param template instance to be copied
96+
* @return copy instance
97+
*/
98+
@Nullable
99+
public static CustomerDefaultBillingAddressSetMessage deepCopy(
100+
@Nullable final CustomerDefaultBillingAddressSetMessage template) {
101+
if (template == null) {
102+
return null;
103+
}
104+
CustomerDefaultBillingAddressSetMessageImpl instance = new CustomerDefaultBillingAddressSetMessageImpl();
105+
instance.setId(template.getId());
106+
instance.setVersion(template.getVersion());
107+
instance.setCreatedAt(template.getCreatedAt());
108+
instance.setLastModifiedAt(template.getLastModifiedAt());
109+
instance.setLastModifiedBy(
110+
com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy()));
111+
instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy()));
112+
instance.setSequenceNumber(template.getSequenceNumber());
113+
instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource()));
114+
instance.setResourceVersion(template.getResourceVersion());
115+
instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers
116+
.deepCopy(template.getResourceUserProvidedIdentifiers()));
117+
instance.setAddress(com.commercetools.api.models.common.Address.deepCopy(template.getAddress()));
118+
return instance;
119+
}
120+
121+
/**
122+
* builder factory method for CustomerDefaultBillingAddressSetMessage
123+
* @return builder
124+
*/
125+
public static CustomerDefaultBillingAddressSetMessageBuilder builder() {
126+
return CustomerDefaultBillingAddressSetMessageBuilder.of();
127+
}
128+
129+
/**
130+
* create builder for CustomerDefaultBillingAddressSetMessage instance
131+
* @param template instance with prefilled values for the builder
132+
* @return builder
133+
*/
134+
public static CustomerDefaultBillingAddressSetMessageBuilder builder(
135+
final CustomerDefaultBillingAddressSetMessage template) {
136+
return CustomerDefaultBillingAddressSetMessageBuilder.of(template);
137+
}
138+
139+
/**
140+
* accessor map function
141+
* @param <T> mapped type
142+
* @param helper function to map the object
143+
* @return mapped value
144+
*/
145+
default <T> T withCustomerDefaultBillingAddressSetMessage(
146+
Function<CustomerDefaultBillingAddressSetMessage, T> helper) {
147+
return helper.apply(this);
148+
}
149+
150+
/**
151+
* gives a TypeReference for usage with Jackson DataBind
152+
* @return TypeReference
153+
*/
154+
public static com.fasterxml.jackson.core.type.TypeReference<CustomerDefaultBillingAddressSetMessage> typeReference() {
155+
return new com.fasterxml.jackson.core.type.TypeReference<CustomerDefaultBillingAddressSetMessage>() {
156+
@Override
157+
public String toString() {
158+
return "TypeReference<CustomerDefaultBillingAddressSetMessage>";
159+
}
160+
};
161+
}
162+
}

0 commit comments

Comments
 (0)