Skip to content

Commit

Permalink
Merge pull request #518 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude authored Nov 13, 2023
2 parents 614389d + 362fda1 commit 5dcb880
Show file tree
Hide file tree
Showing 2,648 changed files with 29,932 additions and 300 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* ApiClientDraft
Expand Down Expand Up @@ -144,4 +146,14 @@ public int hashCode() {
.toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", name)
.append("scope", scope)
.append("deleteDaysAfterCreation", deleteDaysAfterCreation)
.append("accessTokenValiditySeconds", accessTokenValiditySeconds)
.append("refreshTokenValiditySeconds", refreshTokenValiditySeconds)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* ApiClient
Expand Down Expand Up @@ -219,4 +221,18 @@ public int hashCode() {
.toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id)
.append("name", name)
.append("scope", scope)
.append("secret", secret)
.append("lastUsedAt", lastUsedAt)
.append("deleteAt", deleteAt)
.append("createdAt", createdAt)
.append("accessTokenValiditySeconds", accessTokenValiditySeconds)
.append("refreshTokenValiditySeconds", refreshTokenValiditySeconds)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>PagedQueryResult with <code>results</code> containing an array of APIClient.</p>
Expand Down Expand Up @@ -147,4 +149,14 @@ public int hashCode() {
.toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("limit", limit)
.append("offset", offset)
.append("count", count)
.append("total", total)
.append("results", results)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* ApprovalFlowApproval
Expand Down Expand Up @@ -87,4 +89,11 @@ public int hashCode() {
return new HashCodeBuilder(17, 37).append(approver).append(approvedAt).toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("approver", approver)
.append("approvedAt", approvedAt)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>This update action allows an Associate to approve an Approval Flow. The process takes into account all Associate Roles held by the Associate, aligning with the matched Approval Rules and their respective approver hierarchies.</p>
Expand Down Expand Up @@ -56,4 +58,9 @@ public int hashCode() {
return new HashCodeBuilder(17, 37).append(action).toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action).build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* ApprovalFlow
Expand Down Expand Up @@ -361,4 +363,24 @@ public int hashCode() {
.toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id)
.append("version", version)
.append("createdAt", createdAt)
.append("lastModifiedAt", lastModifiedAt)
.append("createdBy", createdBy)
.append("lastModifiedBy", lastModifiedBy)
.append("order", order)
.append("businessUnit", businessUnit)
.append("rules", rules)
.append("status", status)
.append("rejection", rejection)
.append("approvals", approvals)
.append("eligibleApprovers", eligibleApprovers)
.append("pendingApprovers", pendingApprovers)
.append("currentTierPendingApprovers", currentTierPendingApprovers)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>PagedQueryResult with results containing an array of ApprovalFlow.</p>
Expand Down Expand Up @@ -148,4 +150,14 @@ public int hashCode() {
.toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("limit", limit)
.append("offset", offset)
.append("count", count)
.append("total", total)
.append("results", results)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>This update action allows an Associate to reject an Approval Flow, setting its status to <code>Rejected</code>. The process takes into account all Associate Roles held by the Associate, aligning with the matched Approval Rules and their respective approver hierarchies. Even a single rejection in the process will result in the rejection of the entire Approval Flow.</p>
Expand Down Expand Up @@ -83,4 +85,11 @@ public int hashCode() {
return new HashCodeBuilder(17, 37).append(action).append(reason).toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action)
.append("reason", reason)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* ApprovalFlowRejection
Expand Down Expand Up @@ -105,4 +107,12 @@ public int hashCode() {
return new HashCodeBuilder(17, 37).append(rejecter).append(rejectedAt).append(reason).toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("rejecter", rejecter)
.append("rejectedAt", rejectedAt)
.append("reason", reason)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* ApprovalFlowUpdateAction
Expand Down Expand Up @@ -62,4 +64,9 @@ public int hashCode() {
return new HashCodeBuilder(17, 37).append(action).toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action).build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* ApprovalFlowUpdate
Expand Down Expand Up @@ -91,4 +93,11 @@ public int hashCode() {
return new HashCodeBuilder(17, 37).append(version).append(actions).toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("version", version)
.append("actions", actions)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* ApprovalRuleDraft
Expand Down Expand Up @@ -187,4 +189,16 @@ public int hashCode() {
.toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("key", key)
.append("name", name)
.append("description", description)
.append("status", status)
.append("predicate", predicate)
.append("approvers", approvers)
.append("requesters", requesters)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* ApprovalRule
Expand Down Expand Up @@ -320,4 +322,23 @@ public int hashCode() {
.toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id)
.append("version", version)
.append("createdAt", createdAt)
.append("lastModifiedAt", lastModifiedAt)
.append("createdBy", createdBy)
.append("lastModifiedBy", lastModifiedBy)
.append("key", key)
.append("name", name)
.append("description", description)
.append("status", status)
.append("predicate", predicate)
.append("approvers", approvers)
.append("requesters", requesters)
.append("businessUnit", businessUnit)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>PagedQueryResult with results containing an array of ApprovalRule.</p>
Expand Down Expand Up @@ -148,4 +150,14 @@ public int hashCode() {
.toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("limit", limit)
.append("offset", offset)
.append("count", count)
.append("total", total)
.append("results", results)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>Setting the approvers for an Approval Rule generates an ApprovalRuleApproversSet Message.</p>
Expand Down Expand Up @@ -83,4 +85,11 @@ public int hashCode() {
return new HashCodeBuilder(17, 37).append(action).append(approvers).toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action)
.append("approvers", approvers)
.build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>Setting the description for an Approval Rule generates an ApprovalRuleDescriptionSet Message.</p>
Expand Down Expand Up @@ -82,4 +84,11 @@ public int hashCode() {
return new HashCodeBuilder(17, 37).append(action).append(description).toHashCode();
}

@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action)
.append("description", description)
.build();
}

}
Loading

0 comments on commit 5dcb880

Please sign in to comment.