-
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 12, 2023
1 parent
7ccc2dc
commit 6432569
Showing
284 changed files
with
1,516 additions
and
712 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,29 +1,20 @@ | ||
**Api changes** | ||
|
||
<details> | ||
<summary>Changed MethodResponseBody(s)</summary> | ||
<summary>Added Enum(s)</summary> | ||
|
||
- :warning: changed response body for `200: application/json` of method `get /{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules` from type `<<resourceQueryType>>` to `ApprovalRulePagedQueryResponse` | ||
- :warning: changed response body for `200: application/json` of method `get /{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows` from type `<<resourceQueryType>>` to `ApprovalFlowPagedQueryResponse` | ||
- 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 `ApprovalFlowPagedQueryResponse` | ||
- added type `ApprovalRulePagedQueryResponse` | ||
- added type `CustomerEmailTokenCreatedMessage` | ||
- added type `CustomerPasswordTokenCreatedMessage` | ||
- added type `CustomerEmailTokenCreatedMessagePayload` | ||
- added type `CustomerPasswordTokenCreatedMessagePayload` | ||
</details> | ||
|
||
**Import changes** | ||
|
||
<details> | ||
<summary>Added Property(s)</summary> | ||
|
||
- added property `product` to type `ProductVariantPatch` | ||
- added type `CustomerEmailTokenReference` | ||
- added type `CustomerPasswordTokenReference` | ||
</details> | ||
|
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
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
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
127 changes: 127 additions & 0 deletions
127
...ain/java-generated/com/commercetools/api/models/customer/CustomerEmailTokenReference.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,127 @@ | ||
|
||
package com.commercetools.api.models.customer; | ||
|
||
import java.time.*; | ||
import java.util.*; | ||
import java.util.function.Function; | ||
|
||
import javax.annotation.Nullable; | ||
import javax.validation.constraints.NotNull; | ||
|
||
import com.commercetools.api.models.common.Reference; | ||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
|
||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
/** | ||
* <p>Reference to a CustomerToken for email verification.</p> | ||
* | ||
* <hr> | ||
* Example to create an instance using the builder pattern | ||
* <div class=code-example> | ||
* <pre><code class='java'> | ||
* CustomerEmailTokenReference customerEmailTokenReference = CustomerEmailTokenReference.builder() | ||
* .id("{id}") | ||
* .build() | ||
* </code></pre> | ||
* </div> | ||
*/ | ||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
@JsonDeserialize(as = CustomerEmailTokenReferenceImpl.class) | ||
public interface CustomerEmailTokenReference extends Reference { | ||
|
||
/** | ||
* discriminator value for CustomerEmailTokenReference | ||
*/ | ||
String CUSTOMER_EMAIL_TOKEN = "customer-email-token"; | ||
|
||
/** | ||
* <p>Unique identifier of the referenced CustomerToken.</p> | ||
* @return id | ||
*/ | ||
@NotNull | ||
@JsonProperty("id") | ||
public String getId(); | ||
|
||
/** | ||
* <p>Unique identifier of the referenced CustomerToken.</p> | ||
* @param id value to be set | ||
*/ | ||
|
||
public void setId(final String id); | ||
|
||
/** | ||
* factory method | ||
* @return instance of CustomerEmailTokenReference | ||
*/ | ||
public static CustomerEmailTokenReference of() { | ||
return new CustomerEmailTokenReferenceImpl(); | ||
} | ||
|
||
/** | ||
* factory method to create a shallow copy CustomerEmailTokenReference | ||
* @param template instance to be copied | ||
* @return copy instance | ||
*/ | ||
public static CustomerEmailTokenReference of(final CustomerEmailTokenReference template) { | ||
CustomerEmailTokenReferenceImpl instance = new CustomerEmailTokenReferenceImpl(); | ||
instance.setId(template.getId()); | ||
return instance; | ||
} | ||
|
||
/** | ||
* factory method to create a deep copy of CustomerEmailTokenReference | ||
* @param template instance to be copied | ||
* @return copy instance | ||
*/ | ||
@Nullable | ||
public static CustomerEmailTokenReference deepCopy(@Nullable final CustomerEmailTokenReference template) { | ||
if (template == null) { | ||
return null; | ||
} | ||
CustomerEmailTokenReferenceImpl instance = new CustomerEmailTokenReferenceImpl(); | ||
instance.setId(template.getId()); | ||
return instance; | ||
} | ||
|
||
/** | ||
* builder factory method for CustomerEmailTokenReference | ||
* @return builder | ||
*/ | ||
public static CustomerEmailTokenReferenceBuilder builder() { | ||
return CustomerEmailTokenReferenceBuilder.of(); | ||
} | ||
|
||
/** | ||
* create builder for CustomerEmailTokenReference instance | ||
* @param template instance with prefilled values for the builder | ||
* @return builder | ||
*/ | ||
public static CustomerEmailTokenReferenceBuilder builder(final CustomerEmailTokenReference template) { | ||
return CustomerEmailTokenReferenceBuilder.of(template); | ||
} | ||
|
||
/** | ||
* accessor map function | ||
* @param <T> mapped type | ||
* @param helper function to map the object | ||
* @return mapped value | ||
*/ | ||
default <T> T withCustomerEmailTokenReference(Function<CustomerEmailTokenReference, T> helper) { | ||
return helper.apply(this); | ||
} | ||
|
||
/** | ||
* gives a TypeReference for usage with Jackson DataBind | ||
* @return TypeReference | ||
*/ | ||
public static com.fasterxml.jackson.core.type.TypeReference<CustomerEmailTokenReference> typeReference() { | ||
return new com.fasterxml.jackson.core.type.TypeReference<CustomerEmailTokenReference>() { | ||
@Override | ||
public String toString() { | ||
return "TypeReference<CustomerEmailTokenReference>"; | ||
} | ||
}; | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
...a-generated/com/commercetools/api/models/customer/CustomerEmailTokenReferenceBuilder.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,82 @@ | ||
|
||
package com.commercetools.api.models.customer; | ||
|
||
import java.util.*; | ||
|
||
import io.vrap.rmf.base.client.Builder; | ||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
/** | ||
* CustomerEmailTokenReferenceBuilder | ||
* <hr> | ||
* Example to create an instance using the builder pattern | ||
* <div class=code-example> | ||
* <pre><code class='java'> | ||
* CustomerEmailTokenReference customerEmailTokenReference = CustomerEmailTokenReference.builder() | ||
* .id("{id}") | ||
* .build() | ||
* </code></pre> | ||
* </div> | ||
*/ | ||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
public class CustomerEmailTokenReferenceBuilder implements Builder<CustomerEmailTokenReference> { | ||
|
||
private String id; | ||
|
||
/** | ||
* <p>Unique identifier of the referenced CustomerToken.</p> | ||
* @param id value to be set | ||
* @return Builder | ||
*/ | ||
|
||
public CustomerEmailTokenReferenceBuilder id(final String id) { | ||
this.id = id; | ||
return this; | ||
} | ||
|
||
/** | ||
* <p>Unique identifier of the referenced CustomerToken.</p> | ||
* @return id | ||
*/ | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
/** | ||
* builds CustomerEmailTokenReference with checking for non-null required values | ||
* @return CustomerEmailTokenReference | ||
*/ | ||
public CustomerEmailTokenReference build() { | ||
Objects.requireNonNull(id, CustomerEmailTokenReference.class + ": id is missing"); | ||
return new CustomerEmailTokenReferenceImpl(id); | ||
} | ||
|
||
/** | ||
* builds CustomerEmailTokenReference without checking for non-null required values | ||
* @return CustomerEmailTokenReference | ||
*/ | ||
public CustomerEmailTokenReference buildUnchecked() { | ||
return new CustomerEmailTokenReferenceImpl(id); | ||
} | ||
|
||
/** | ||
* factory method for an instance of CustomerEmailTokenReferenceBuilder | ||
* @return builder | ||
*/ | ||
public static CustomerEmailTokenReferenceBuilder of() { | ||
return new CustomerEmailTokenReferenceBuilder(); | ||
} | ||
|
||
/** | ||
* create builder for CustomerEmailTokenReference instance | ||
* @param template instance with prefilled values for the builder | ||
* @return builder | ||
*/ | ||
public static CustomerEmailTokenReferenceBuilder of(final CustomerEmailTokenReference template) { | ||
CustomerEmailTokenReferenceBuilder builder = new CustomerEmailTokenReferenceBuilder(); | ||
builder.id = template.getId(); | ||
return builder; | ||
} | ||
|
||
} |
Oops, something went wrong.