-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Auto Mation
committed
Oct 18, 2023
1 parent
fc80bf3
commit d6de3fc
Showing
500 changed files
with
28,293 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,171 @@ | ||
**Api changes** | ||
|
||
<details> | ||
<summary>Added Enum(s)</summary> | ||
<summary>Added Method(s)</summary> | ||
|
||
- added enum `customer-email-token` to type `ReferenceTypeId` | ||
- added enum `customer-password-token` to type `ReferenceTypeId` | ||
- added enum `customer-email-token` to type `MessageSubscriptionResourceTypeId` | ||
- added enum `customer-group` to type `MessageSubscriptionResourceTypeId` | ||
- added enum `customer-password-token` to type `MessageSubscriptionResourceTypeId` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Added Type(s)</summary> | ||
|
||
- added type `CustomerEmailTokenReference` | ||
- added type `CustomerPasswordTokenReference` | ||
- added method `apiRoot.withProjectKey().head()` | ||
- added method `apiRoot.withProjectKey().associateRoles().head()` | ||
- added method `apiRoot.withProjectKey().businessUnits().head()` | ||
- added method `apiRoot.withProjectKey().categories().head()` | ||
- added method `apiRoot.withProjectKey().carts().head()` | ||
- added method `apiRoot.withProjectKey().cartDiscounts().head()` | ||
- added method `apiRoot.withProjectKey().channels().head()` | ||
- added method `apiRoot.withProjectKey().customers().head()` | ||
- added method `apiRoot.withProjectKey().customerGroups().head()` | ||
- added method `apiRoot.withProjectKey().customObjects().head()` | ||
- added method `apiRoot.withProjectKey().discountCodes().head()` | ||
- added method `apiRoot.withProjectKey().inventory().head()` | ||
- added method `apiRoot.withProjectKey().messages().head()` | ||
- added method `apiRoot.withProjectKey().orders().head()` | ||
- added method `apiRoot.withProjectKey().payments().head()` | ||
- added method `apiRoot.withProjectKey().productDiscounts().head()` | ||
- added method `apiRoot.withProjectKey().productProjections().head()` | ||
- added method `apiRoot.withProjectKey().productSelections().head()` | ||
- added method `apiRoot.withProjectKey().quotes().head()` | ||
- added method `apiRoot.withProjectKey().quoteRequests().head()` | ||
- added method `apiRoot.withProjectKey().stagedQuotes().head()` | ||
- added method `apiRoot.withProjectKey().reviews().head()` | ||
- added method `apiRoot.withProjectKey().shippingMethods().head()` | ||
- added method `apiRoot.withProjectKey().shoppingLists().head()` | ||
- added method `apiRoot.withProjectKey().states().head()` | ||
- added method `apiRoot.withProjectKey().subscriptions().head()` | ||
- added method `apiRoot.withProjectKey().taxCategories().head()` | ||
- added method `apiRoot.withProjectKey().types().head()` | ||
- added method `apiRoot.withProjectKey().zones().head()` | ||
- added method `apiRoot.withProjectKey().extensions().head()` | ||
- added method `apiRoot.withProjectKey().apiClients().head()` | ||
- added method `apiRoot.withProjectKey().stores().head()` | ||
- added method `apiRoot.withProjectKey().standalonePrices().head()` | ||
- added method `apiRoot.withProjectKey().attributeGroups().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withKey().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withId().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withOrderNumber().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withId().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withKey().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withId().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withKey().head()` | ||
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withId().head()` | ||
- added method `apiRoot.withProjectKey().associateRoles().withKey().head()` | ||
- added method `apiRoot.withProjectKey().associateRoles().withId().head()` | ||
- added method `apiRoot.withProjectKey().businessUnits().withKey().head()` | ||
- added method `apiRoot.withProjectKey().businessUnits().withId().head()` | ||
- added method `apiRoot.withProjectKey().categories().withKey().head()` | ||
- added method `apiRoot.withProjectKey().categories().withId().head()` | ||
- added method `apiRoot.withProjectKey().carts().withCustomerId().head()` | ||
- added method `apiRoot.withProjectKey().carts().withKey().head()` | ||
- added method `apiRoot.withProjectKey().carts().withId().head()` | ||
- added method `apiRoot.withProjectKey().cartDiscounts().withKey().head()` | ||
- added method `apiRoot.withProjectKey().cartDiscounts().withId().head()` | ||
- added method `apiRoot.withProjectKey().channels().withId().head()` | ||
- added method `apiRoot.withProjectKey().customers().withKey().head()` | ||
- added method `apiRoot.withProjectKey().customers().withId().head()` | ||
- added method `apiRoot.withProjectKey().customerGroups().withKey().head()` | ||
- added method `apiRoot.withProjectKey().customerGroups().withId().head()` | ||
- added method `apiRoot.withProjectKey().discountCodes().withId().head()` | ||
- added method `apiRoot.withProjectKey().inventory().withId().head()` | ||
- added method `apiRoot.withProjectKey().inventory().withKey().head()` | ||
- added method `apiRoot.withProjectKey().messages().withId().head()` | ||
- added method `apiRoot.withProjectKey().orders().withOrderNumber().head()` | ||
- added method `apiRoot.withProjectKey().orders().edits().head()` | ||
- added method `apiRoot.withProjectKey().orders().withId().head()` | ||
- added method `apiRoot.withProjectKey().orders().edits().withKey().head()` | ||
- added method `apiRoot.withProjectKey().orders().edits().withId().head()` | ||
- added method `apiRoot.withProjectKey().payments().withKey().head()` | ||
- added method `apiRoot.withProjectKey().payments().withId().head()` | ||
- added method `apiRoot.withProjectKey().productDiscounts().withKey().head()` | ||
- added method `apiRoot.withProjectKey().productDiscounts().withId().head()` | ||
- added method `apiRoot.withProjectKey().productProjections().withKey().head()` | ||
- added method `apiRoot.withProjectKey().productProjections().withId().head()` | ||
- added method `apiRoot.withProjectKey().productSelections().withKey().head()` | ||
- added method `apiRoot.withProjectKey().productSelections().withId().head()` | ||
- added method `apiRoot.withProjectKey().quotes().withKey().head()` | ||
- added method `apiRoot.withProjectKey().quotes().withId().head()` | ||
- added method `apiRoot.withProjectKey().quoteRequests().withKey().head()` | ||
- added method `apiRoot.withProjectKey().quoteRequests().withId().head()` | ||
- added method `apiRoot.withProjectKey().stagedQuotes().withKey().head()` | ||
- added method `apiRoot.withProjectKey().stagedQuotes().withId().head()` | ||
- added method `apiRoot.withProjectKey().reviews().withKey().head()` | ||
- added method `apiRoot.withProjectKey().reviews().withId().head()` | ||
- added method `apiRoot.withProjectKey().shippingMethods().withKey().head()` | ||
- added method `apiRoot.withProjectKey().shippingMethods().matchingCart().head()` | ||
- added method `apiRoot.withProjectKey().shippingMethods().matchingCartLocation().head()` | ||
- added method `apiRoot.withProjectKey().shippingMethods().matchingOrderedit().head()` | ||
- added method `apiRoot.withProjectKey().shippingMethods().matchingLocation().head()` | ||
- added method `apiRoot.withProjectKey().shippingMethods().withId().head()` | ||
- added method `apiRoot.withProjectKey().shoppingLists().withKey().head()` | ||
- added method `apiRoot.withProjectKey().shoppingLists().withId().head()` | ||
- added method `apiRoot.withProjectKey().states().withKey().head()` | ||
- added method `apiRoot.withProjectKey().states().withId().head()` | ||
- added method `apiRoot.withProjectKey().subscriptions().withKey().head()` | ||
- added method `apiRoot.withProjectKey().subscriptions().withId().head()` | ||
- added method `apiRoot.withProjectKey().taxCategories().withKey().head()` | ||
- added method `apiRoot.withProjectKey().taxCategories().withId().head()` | ||
- added method `apiRoot.withProjectKey().types().withKey().head()` | ||
- added method `apiRoot.withProjectKey().types().withId().head()` | ||
- added method `apiRoot.withProjectKey().zones().withKey().head()` | ||
- added method `apiRoot.withProjectKey().zones().withId().head()` | ||
- added method `apiRoot.withProjectKey().me().activeCart().head()` | ||
- added method `apiRoot.withProjectKey().me().businessUnits().head()` | ||
- added method `apiRoot.withProjectKey().me().carts().head()` | ||
- added method `apiRoot.withProjectKey().me().orders().head()` | ||
- added method `apiRoot.withProjectKey().me().payments().head()` | ||
- added method `apiRoot.withProjectKey().me().quoteRequests().head()` | ||
- added method `apiRoot.withProjectKey().me().quotes().head()` | ||
- added method `apiRoot.withProjectKey().me().shoppingLists().head()` | ||
- added method `apiRoot.withProjectKey().me().businessUnits().withId().head()` | ||
- added method `apiRoot.withProjectKey().me().businessUnits().withKey().head()` | ||
- added method `apiRoot.withProjectKey().me().carts().withKey().head()` | ||
- added method `apiRoot.withProjectKey().me().carts().withId().head()` | ||
- added method `apiRoot.withProjectKey().me().orders().withId().head()` | ||
- added method `apiRoot.withProjectKey().me().payments().withId().head()` | ||
- added method `apiRoot.withProjectKey().me().quoteRequests().withId().head()` | ||
- added method `apiRoot.withProjectKey().me().quoteRequests().withKey().head()` | ||
- added method `apiRoot.withProjectKey().me().quotes().withId().head()` | ||
- added method `apiRoot.withProjectKey().me().quotes().withKey().head()` | ||
- added method `apiRoot.withProjectKey().me().shoppingLists().withId().head()` | ||
- added method `apiRoot.withProjectKey().me().shoppingLists().withKey().head()` | ||
- added method `apiRoot.withProjectKey().extensions().withKey().head()` | ||
- added method `apiRoot.withProjectKey().extensions().withId().head()` | ||
- added method `apiRoot.withProjectKey().apiClients().withId().head()` | ||
- added method `apiRoot.withProjectKey().stores().withKey().head()` | ||
- added method `apiRoot.withProjectKey().stores().withId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withCustomerId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withKey().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().withOrderNumber().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().withId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().carts().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().orders().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().activeCart().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().carts().withId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().orders().withId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().withKey().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().withId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().withKey().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().withId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shippingMethods().matchingCart().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().withKey().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().withId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withKey().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withId().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withKey().head()` | ||
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withId().head()` | ||
- added method `apiRoot.withProjectKey().standalonePrices().withKey().head()` | ||
- added method `apiRoot.withProjectKey().standalonePrices().withId().head()` | ||
- added method `apiRoot.withProjectKey().attributeGroups().withKey().head()` | ||
- added method `apiRoot.withProjectKey().attributeGroups().withId().head()` | ||
</details> | ||
|
120 changes: 120 additions & 0 deletions
120
.../src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDHead.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
|
||
package com.commercetools.api.client; | ||
|
||
import java.net.URI; | ||
import java.time.Duration; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
import com.fasterxml.jackson.core.type.TypeReference; | ||
|
||
import io.vrap.rmf.base.client.*; | ||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
|
||
/** | ||
* <p>Checks if an API Client exists for a given <code>id</code>. Returns a <code>200 OK</code> status if the API Client exists or a <code>404 Not Found</code> otherwise.</p> | ||
* | ||
* <hr> | ||
* <div class=code-example> | ||
* <pre><code class='java'>{@code | ||
* CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> result = apiRoot | ||
* .withProjectKey("{projectKey}") | ||
* .apiClients() | ||
* .withId("{ID}") | ||
* .head() | ||
* .execute() | ||
* }</code></pre> | ||
* </div> | ||
*/ | ||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
public class ByProjectKeyApiClientsByIDHead | ||
extends TypeApiMethod<ByProjectKeyApiClientsByIDHead, com.fasterxml.jackson.databind.JsonNode> | ||
implements com.commercetools.api.client.ErrorableTrait<ByProjectKeyApiClientsByIDHead>, | ||
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyApiClientsByIDHead> { | ||
|
||
@Override | ||
public TypeReference<com.fasterxml.jackson.databind.JsonNode> resultType() { | ||
return new TypeReference<com.fasterxml.jackson.databind.JsonNode>() { | ||
}; | ||
} | ||
|
||
private String projectKey; | ||
private String ID; | ||
|
||
public ByProjectKeyApiClientsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { | ||
super(apiHttpClient); | ||
this.projectKey = projectKey; | ||
this.ID = ID; | ||
} | ||
|
||
public ByProjectKeyApiClientsByIDHead(ByProjectKeyApiClientsByIDHead t) { | ||
super(t); | ||
this.projectKey = t.projectKey; | ||
this.ID = t.ID; | ||
} | ||
|
||
@Override | ||
protected ApiHttpRequest buildHttpRequest() { | ||
List<String> params = new ArrayList<>(getQueryParamUriStrings()); | ||
String httpRequestPath = String.format("%s/api-clients/%s", this.projectKey, this.ID); | ||
if (!params.isEmpty()) { | ||
httpRequestPath += "?" + String.join("&", params); | ||
} | ||
return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); | ||
} | ||
|
||
@Override | ||
public ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode> executeBlocking(final ApiHttpClient client, | ||
final Duration timeout) { | ||
return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); | ||
} | ||
|
||
@Override | ||
public CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> execute( | ||
final ApiHttpClient client) { | ||
return execute(client, com.fasterxml.jackson.databind.JsonNode.class); | ||
} | ||
|
||
public String getProjectKey() { | ||
return this.projectKey; | ||
} | ||
|
||
public String getID() { | ||
return this.ID; | ||
} | ||
|
||
public void setProjectKey(final String projectKey) { | ||
this.projectKey = projectKey; | ||
} | ||
|
||
public void setID(final String ID) { | ||
this.ID = ID; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) | ||
return true; | ||
|
||
if (o == null || getClass() != o.getClass()) | ||
return false; | ||
|
||
ByProjectKeyApiClientsByIDHead that = (ByProjectKeyApiClientsByIDHead) o; | ||
|
||
return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); | ||
} | ||
|
||
@Override | ||
protected ByProjectKeyApiClientsByIDHead copy() { | ||
return new ByProjectKeyApiClientsByIDHead(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.