Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Mar 25, 2024
1 parent 0251e8a commit 66f13e1
Show file tree
Hide file tree
Showing 99 changed files with 1,126 additions and 119 deletions.
86 changes: 44 additions & 42 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,16 @@
**Api changes**

<details>
<summary>Added Type(s)</summary>
<summary>Added Enum(s)</summary>

- added type `ProductTailoringCreatedMessage`
- added type `ProductTailoringDeletedMessage`
- added type `ProductTailoringDescriptionSetMessage`
- added type `ProductTailoringNameSetMessage`
- added type `ProductTailoringPublishedMessage`
- added type `ProductTailoringSlugSetMessage`
- added type `ProductTailoringUnpublishedMessage`
- added type `ProductTailoringCreatedMessagePayload`
- added type `ProductTailoringDeletedMessagePayload`
- added type `ProductTailoringDescriptionSetMessagePayload`
- added type `ProductTailoringNameSetMessagePayload`
- added type `ProductTailoringPublishedMessagePayload`
- added type `ProductTailoringSlugSetMessagePayload`
- added type `ProductTailoringUnpublishedMessagePayload`
- added type `ProductTailoring`
- added type `ProductTailoringData`
- added type `ProductTailoringDraft`
- added type `ProductTailoringInStoreDraft`
- added type `ProductTailoringPagedQueryResponse`
- added type `ProductTailoringReference`
- added type `ProductTailoringResourceIdentifier`
- added type `ProductTailoringUpdate`
- added type `ProductTailoringUpdateAction`
- added type `ProductTailoringPublishAction`
- added type `ProductTailoringSetDescriptionAction`
- added type `ProductTailoringSetMetaAttributesAction`
- added type `ProductTailoringSetMetaDescriptionAction`
- added type `ProductTailoringSetMetaKeywordsAction`
- added type `ProductTailoringSetMetaTitleAction`
- added type `ProductTailoringSetNameAction`
- added type `ProductTailoringSetSlugAction`
- added type `ProductTailoringUnpublishAction`
- added enum `product-tailoring` to type `ReferenceTypeId`
</details>


<details>
<summary>Added Property(s)</summary>

- added property `taxPortions` to type `TaxedItemPrice`
</details>


Expand All @@ -60,13 +36,6 @@
</details>


<details>
<summary>Added Enum(s)</summary>

- added enum `product-tailoring` to type `ReferenceTypeId`
</details>


<details>
<summary>Added Resource(s)</summary>

Expand All @@ -83,8 +52,41 @@


<details>
<summary>Added Property(s)</summary>
<summary>Added Type(s)</summary>

- added property `taxPortions` to type `TaxedItemPrice`
- added type `LockedFieldError`
- added type `GraphQLLockedFieldError`
- added type `ProductTailoringCreatedMessage`
- added type `ProductTailoringDeletedMessage`
- added type `ProductTailoringDescriptionSetMessage`
- added type `ProductTailoringNameSetMessage`
- added type `ProductTailoringPublishedMessage`
- added type `ProductTailoringSlugSetMessage`
- added type `ProductTailoringUnpublishedMessage`
- added type `ProductTailoringCreatedMessagePayload`
- added type `ProductTailoringDeletedMessagePayload`
- added type `ProductTailoringDescriptionSetMessagePayload`
- added type `ProductTailoringNameSetMessagePayload`
- added type `ProductTailoringPublishedMessagePayload`
- added type `ProductTailoringSlugSetMessagePayload`
- added type `ProductTailoringUnpublishedMessagePayload`
- added type `ProductTailoring`
- added type `ProductTailoringData`
- added type `ProductTailoringDraft`
- added type `ProductTailoringInStoreDraft`
- added type `ProductTailoringPagedQueryResponse`
- added type `ProductTailoringReference`
- added type `ProductTailoringResourceIdentifier`
- added type `ProductTailoringUpdate`
- added type `ProductTailoringUpdateAction`
- added type `ProductTailoringPublishAction`
- added type `ProductTailoringSetDescriptionAction`
- added type `ProductTailoringSetMetaAttributesAction`
- added type `ProductTailoringSetMetaDescriptionAction`
- added type `ProductTailoringSetMetaKeywordsAction`
- added type `ProductTailoringSetMetaTitleAction`
- added type `ProductTailoringSetNameAction`
- added type `ProductTailoringSetSlugAction`
- added type `ProductTailoringUnpublishAction`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Simultaneously updating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Simultaneously updating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Simultaneously updating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Simultaneously updating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>If the <code>anonymousCart</code> field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the <code>anonymousId</code> field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same <code>anonymousId</code>. Creating a Customer produces the CustomerCreated Message.</p>
* <p>If the <code>anonymousCart</code> field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the <code>anonymousId</code> field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same <code>anonymousId</code>.</p>
* <p>Creating a Customer produces the CustomerCreated Message. Simultaneously creating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>If the <code>anonymousCart</code> field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the <code>anonymousId</code> field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same <code>anonymousId</code>. Creating a Customer produces the CustomerCreated Message.</p>
* <p>If the <code>anonymousCart</code> field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the <code>anonymousId</code> field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same <code>anonymousId</code>.</p>
* <p>Creating a Customer produces the CustomerCreated Message. Simultaneously creating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

/**
* <p>If the Customer exists in the Project but the <code>stores</code> field references a different Store, this method returns a ResourceNotFound error.</p>
* <p>Simultaneously updating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

/**
* <p>If the Customer exists in the Project but the <code>stores</code> field references a different Store, this method returns a ResourceNotFound error.</p>
* <p>Simultaneously updating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

/**
* <p>If the Customer exists in the Project but the <code>stores</code> field references a different Store, this method returns a ResourceNotFound error.</p>
* <p>Simultaneously updating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

/**
* <p>If the Customer exists in the Project but the <code>stores</code> field references a different Store, this method returns a ResourceNotFound error.</p>
* <p>Simultaneously updating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

/**
* <p>When using this endpoint, if omitted, the Customer <code>stores</code> field is set to the Store specified in the path parameter.</p>
* <p>If the <code>anonymousCart</code> field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the <code>anonymousId</code> field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same <code>anonymousId</code>. If a Cart with a <code>store</code> field specified, the <code>store</code> field must reference the same Store specified in the <code>{storeKey}</code> path parameter. Creating a Customer produces the CustomerCreated Message.</p>
* <p>If the <code>anonymousCart</code> field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the <code>anonymousId</code> field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same <code>anonymousId</code>. If a Cart with a <code>store</code> field specified, the <code>store</code> field must reference the same Store specified in the <code>{storeKey}</code> path parameter.</p>
* <p>Creating a Customer produces the CustomerCreated Message. Simultaneously creating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

/**
* <p>When using this endpoint, if omitted, the Customer <code>stores</code> field is set to the Store specified in the path parameter.</p>
* <p>If the <code>anonymousCart</code> field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the <code>anonymousId</code> field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same <code>anonymousId</code>. If a Cart with a <code>store</code> field specified, the <code>store</code> field must reference the same Store specified in the <code>{storeKey}</code> path parameter. Creating a Customer produces the CustomerCreated Message.</p>
* <p>If the <code>anonymousCart</code> field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the <code>anonymousId</code> field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same <code>anonymousId</code>. If a Cart with a <code>store</code> field specified, the <code>store</code> field must reference the same Store specified in the <code>{storeKey}</code> path parameter.</p>
* <p>Creating a Customer produces the CustomerCreated Message. Simultaneously creating two Customers with the same email address can return a LockedField error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ApprovalFlowApproveActionImpl implements ApprovalFlowApproveAction,
* create instance with all properties
*/
@JsonCreator
ApprovalFlowApproveActionImpl() {
public ApprovalFlowApproveActionImpl() {
this.action = APPROVE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CartFreezeCartActionImpl implements CartFreezeCartAction, ModelBase
* create instance with all properties
*/
@JsonCreator
CartFreezeCartActionImpl() {
public CartFreezeCartActionImpl() {
this.action = FREEZE_CART;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CartUnfreezeCartActionImpl implements CartUnfreezeCartAction, Model
* create instance with all properties
*/
@JsonCreator
CartUnfreezeCartActionImpl() {
public CartUnfreezeCartActionImpl() {
this.action = UNFREEZE_CART;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CartDiscountShippingCostTargetImpl implements CartDiscountShippingC
* create instance with all properties
*/
@JsonCreator
CartDiscountShippingCostTargetImpl() {
public CartDiscountShippingCostTargetImpl() {
this.type = SHIPPING;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CartDiscountTotalPriceTargetImpl implements CartDiscountTotalPriceT
* create instance with all properties
*/
@JsonCreator
CartDiscountTotalPriceTargetImpl() {
public CartDiscountTotalPriceTargetImpl() {
this.type = TOTAL_PRICE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
@JsonSubTypes.Type(value = com.commercetools.api.models.error.InvalidSubjectErrorImpl.class, name = InvalidSubjectError.INVALID_SUBJECT),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.InvalidTokenErrorImpl.class, name = InvalidTokenError.INVALID_TOKEN),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.LanguageUsedInStoresErrorImpl.class, name = LanguageUsedInStoresError.LANGUAGE_USED_IN_STORES),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.LockedFieldErrorImpl.class, name = LockedFieldError.LOCKED_FIELD),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.MatchingPriceNotFoundErrorImpl.class, name = MatchingPriceNotFoundError.MATCHING_PRICE_NOT_FOUND),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.MaxCartDiscountsReachedErrorImpl.class, name = MaxCartDiscountsReachedError.MAX_CART_DISCOUNTS_REACHED),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.MaxResourceLimitExceededErrorImpl.class, name = MaxResourceLimitExceededError.MAX_RESOURCE_LIMIT_EXCEEDED),
Expand Down Expand Up @@ -330,6 +331,10 @@ public static ErrorObject deepCopy(@Nullable final ErrorObject template) {
return com.commercetools.api.models.error.LanguageUsedInStoresError
.deepCopy((com.commercetools.api.models.error.LanguageUsedInStoresError) template);
}
if (template instanceof com.commercetools.api.models.error.LockedFieldError) {
return com.commercetools.api.models.error.LockedFieldError
.deepCopy((com.commercetools.api.models.error.LockedFieldError) template);
}
if (template instanceof com.commercetools.api.models.error.MatchingPriceNotFoundError) {
return com.commercetools.api.models.error.MatchingPriceNotFoundError
.deepCopy((com.commercetools.api.models.error.MatchingPriceNotFoundError) template);
Expand Down Expand Up @@ -808,6 +813,14 @@ public static com.commercetools.api.models.error.LanguageUsedInStoresErrorBuilde
return com.commercetools.api.models.error.LanguageUsedInStoresErrorBuilder.of();
}

/**
* builder for lockedField subtype
* @return builder
*/
public static com.commercetools.api.models.error.LockedFieldErrorBuilder lockedFieldBuilder() {
return com.commercetools.api.models.error.LockedFieldErrorBuilder.of();
}

/**
* builder for matchingPriceNotFound subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ public com.commercetools.api.models.error.LanguageUsedInStoresErrorBuilder langu
return com.commercetools.api.models.error.LanguageUsedInStoresErrorBuilder.of();
}

public com.commercetools.api.models.error.LockedFieldErrorBuilder lockedFieldBuilder() {
return com.commercetools.api.models.error.LockedFieldErrorBuilder.of();
}

public com.commercetools.api.models.error.MatchingPriceNotFoundErrorBuilder matchingPriceNotFoundBuilder() {
return com.commercetools.api.models.error.MatchingPriceNotFoundErrorBuilder.of();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLInvalidSubjectErrorImpl.class, name = GraphQLInvalidSubjectError.INVALID_SUBJECT),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLInvalidTokenErrorImpl.class, name = GraphQLInvalidTokenError.INVALID_TOKEN),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLLanguageUsedInStoresErrorImpl.class, name = GraphQLLanguageUsedInStoresError.LANGUAGE_USED_IN_STORES),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLLockedFieldErrorImpl.class, name = GraphQLLockedFieldError.LOCKED_FIELD),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLMatchingPriceNotFoundErrorImpl.class, name = GraphQLMatchingPriceNotFoundError.MATCHING_PRICE_NOT_FOUND),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLMaxCartDiscountsReachedErrorImpl.class, name = GraphQLMaxCartDiscountsReachedError.MAX_CART_DISCOUNTS_REACHED),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLMaxResourceLimitExceededErrorImpl.class, name = GraphQLMaxResourceLimitExceededError.MAX_RESOURCE_LIMIT_EXCEEDED),
Expand Down Expand Up @@ -313,6 +314,10 @@ public static GraphQLErrorObject deepCopy(@Nullable final GraphQLErrorObject tem
return com.commercetools.api.models.error.GraphQLLanguageUsedInStoresError
.deepCopy((com.commercetools.api.models.error.GraphQLLanguageUsedInStoresError) template);
}
if (template instanceof com.commercetools.api.models.error.GraphQLLockedFieldError) {
return com.commercetools.api.models.error.GraphQLLockedFieldError
.deepCopy((com.commercetools.api.models.error.GraphQLLockedFieldError) template);
}
if (template instanceof com.commercetools.api.models.error.GraphQLMatchingPriceNotFoundError) {
return com.commercetools.api.models.error.GraphQLMatchingPriceNotFoundError
.deepCopy((com.commercetools.api.models.error.GraphQLMatchingPriceNotFoundError) template);
Expand Down Expand Up @@ -790,6 +795,14 @@ public static com.commercetools.api.models.error.GraphQLLanguageUsedInStoresErro
return com.commercetools.api.models.error.GraphQLLanguageUsedInStoresErrorBuilder.of();
}

/**
* builder for lockedField subtype
* @return builder
*/
public static com.commercetools.api.models.error.GraphQLLockedFieldErrorBuilder lockedFieldBuilder() {
return com.commercetools.api.models.error.GraphQLLockedFieldErrorBuilder.of();
}

/**
* builder for matchingPriceNotFound subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ public com.commercetools.api.models.error.GraphQLLanguageUsedInStoresErrorBuilde
return com.commercetools.api.models.error.GraphQLLanguageUsedInStoresErrorBuilder.of();
}

public com.commercetools.api.models.error.GraphQLLockedFieldErrorBuilder lockedFieldBuilder() {
return com.commercetools.api.models.error.GraphQLLockedFieldErrorBuilder.of();
}

public com.commercetools.api.models.error.GraphQLMatchingPriceNotFoundErrorBuilder matchingPriceNotFoundBuilder() {
return com.commercetools.api.models.error.GraphQLMatchingPriceNotFoundErrorBuilder.of();
}
Expand Down
Loading

0 comments on commit 66f13e1

Please sign in to comment.