Skip to content

Commit

Permalink
LPD-19827 - Autogenerated code(buildRest)
Browse files Browse the repository at this point in the history
  • Loading branch information
matyaswollner authored and brianchandotcom committed Apr 17, 2024
1 parent 271e948 commit 9bb99cc
Show file tree
Hide file tree
Showing 44 changed files with 5,061 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,47 @@ public void setErrorMessages(
@JsonIgnore
private Supplier<String[]> _errorMessagesSupplier;

@Schema(example = "AB-34098-789-N")
public String getExternalReferenceCode() {
if (_externalReferenceCodeSupplier != null) {
externalReferenceCode = _externalReferenceCodeSupplier.get();

_externalReferenceCodeSupplier = null;
}

return externalReferenceCode;
}

public void setExternalReferenceCode(String externalReferenceCode) {
this.externalReferenceCode = externalReferenceCode;

_externalReferenceCodeSupplier = null;
}

@JsonIgnore
public void setExternalReferenceCode(
UnsafeSupplier<String, Exception> externalReferenceCodeUnsafeSupplier) {

_externalReferenceCodeSupplier = () -> {
try {
return externalReferenceCodeUnsafeSupplier.get();
}
catch (RuntimeException runtimeException) {
throw runtimeException;
}
catch (Exception exception) {
throw new RuntimeException(exception);
}
};
}

@GraphQLField
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
protected String externalReferenceCode;

@JsonIgnore
private Supplier<String> _externalReferenceCodeSupplier;

@Schema
public Long getId() {
if (_idSupplier != null) {
Expand Down Expand Up @@ -1733,6 +1774,22 @@ public String toString() {
sb.append("]");
}

String externalReferenceCode = getExternalReferenceCode();

if (externalReferenceCode != null) {
if (sb.length() > 1) {
sb.append(", ");
}

sb.append("\"externalReferenceCode\": ");

sb.append("\"");

sb.append(_escape(externalReferenceCode));

sb.append("\"");
}

Long id = getId();

if (id != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,47 @@ public void setDescription(
@JsonIgnore
private Supplier<String> _descriptionSupplier;

@Schema(example = "AB-34098-789-N")
public String getExternalReferenceCode() {
if (_externalReferenceCodeSupplier != null) {
externalReferenceCode = _externalReferenceCodeSupplier.get();

_externalReferenceCodeSupplier = null;
}

return externalReferenceCode;
}

public void setExternalReferenceCode(String externalReferenceCode) {
this.externalReferenceCode = externalReferenceCode;

_externalReferenceCodeSupplier = null;
}

@JsonIgnore
public void setExternalReferenceCode(
UnsafeSupplier<String, Exception> externalReferenceCodeUnsafeSupplier) {

_externalReferenceCodeSupplier = () -> {
try {
return externalReferenceCodeUnsafeSupplier.get();
}
catch (RuntimeException runtimeException) {
throw runtimeException;
}
catch (Exception exception) {
throw new RuntimeException(exception);
}
};
}

@GraphQLField
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
protected String externalReferenceCode;

@JsonIgnore
private Supplier<String> _externalReferenceCodeSupplier;

@Schema
public Long getId() {
if (_idSupplier != null) {
Expand Down Expand Up @@ -867,6 +908,22 @@ public String toString() {
sb.append("\"");
}

String externalReferenceCode = getExternalReferenceCode();

if (externalReferenceCode != null) {
if (sb.length() > 1) {
sb.append(", ");
}

sb.append("\"externalReferenceCode\": ");

sb.append("\"");

sb.append(_escape(externalReferenceCode));

sb.append("\"");
}

Long id = getId();

if (id != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,47 @@ public void setContent(
@JsonIgnore
private Supplier<String> _contentSupplier;

@Schema(example = "AB-34098-789-N")
public String getExternalReferenceCode() {
if (_externalReferenceCodeSupplier != null) {
externalReferenceCode = _externalReferenceCodeSupplier.get();

_externalReferenceCodeSupplier = null;
}

return externalReferenceCode;
}

public void setExternalReferenceCode(String externalReferenceCode) {
this.externalReferenceCode = externalReferenceCode;

_externalReferenceCodeSupplier = null;
}

@JsonIgnore
public void setExternalReferenceCode(
UnsafeSupplier<String, Exception> externalReferenceCodeUnsafeSupplier) {

_externalReferenceCodeSupplier = () -> {
try {
return externalReferenceCodeUnsafeSupplier.get();
}
catch (RuntimeException runtimeException) {
throw runtimeException;
}
catch (Exception exception) {
throw new RuntimeException(exception);
}
};
}

@GraphQLField
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
protected String externalReferenceCode;

@JsonIgnore
private Supplier<String> _externalReferenceCodeSupplier;

@Schema
public Long getId() {
if (_idSupplier != null) {
Expand Down Expand Up @@ -310,6 +351,22 @@ public String toString() {
sb.append("\"");
}

String externalReferenceCode = getExternalReferenceCode();

if (externalReferenceCode != null) {
if (sb.length() > 1) {
sb.append(", ");
}

sb.append("\"externalReferenceCode\": ");

sb.append("\"");

sb.append(_escape(externalReferenceCode));

sb.append("\"");
}

Long id = getId();

if (id != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,47 @@ public void setErrorMessages(
@JsonIgnore
private Supplier<String[]> _errorMessagesSupplier;

@Schema(example = "AB-34098-789-N")
public String getExternalReferenceCode() {
if (_externalReferenceCodeSupplier != null) {
externalReferenceCode = _externalReferenceCodeSupplier.get();

_externalReferenceCodeSupplier = null;
}

return externalReferenceCode;
}

public void setExternalReferenceCode(String externalReferenceCode) {
this.externalReferenceCode = externalReferenceCode;

_externalReferenceCodeSupplier = null;
}

@JsonIgnore
public void setExternalReferenceCode(
UnsafeSupplier<String, Exception> externalReferenceCodeUnsafeSupplier) {

_externalReferenceCodeSupplier = () -> {
try {
return externalReferenceCodeUnsafeSupplier.get();
}
catch (RuntimeException runtimeException) {
throw runtimeException;
}
catch (Exception exception) {
throw new RuntimeException(exception);
}
};
}

@GraphQLField
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
protected String externalReferenceCode;

@JsonIgnore
private Supplier<String> _externalReferenceCodeSupplier;

@Schema
public Long getId() {
if (_idSupplier != null) {
Expand Down Expand Up @@ -1084,6 +1125,22 @@ public String toString() {
sb.append("]");
}

String externalReferenceCode = getExternalReferenceCode();

if (externalReferenceCode != null) {
if (sb.length() > 1) {
sb.append(", ");
}

sb.append("\"externalReferenceCode\": ");

sb.append("\"");

sb.append(_escape(externalReferenceCode));

sb.append("\"");
}

Long id = getId();

if (id != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,47 @@ public void setEstimatedShippingDate(
@JsonIgnore
private Supplier<Date> _estimatedShippingDateSupplier;

@Schema(example = "AB-34098-789-N")
public String getExternalReferenceCode() {
if (_externalReferenceCodeSupplier != null) {
externalReferenceCode = _externalReferenceCodeSupplier.get();

_externalReferenceCodeSupplier = null;
}

return externalReferenceCode;
}

public void setExternalReferenceCode(String externalReferenceCode) {
this.externalReferenceCode = externalReferenceCode;

_externalReferenceCodeSupplier = null;
}

@JsonIgnore
public void setExternalReferenceCode(
UnsafeSupplier<String, Exception> externalReferenceCodeUnsafeSupplier) {

_externalReferenceCodeSupplier = () -> {
try {
return externalReferenceCodeUnsafeSupplier.get();
}
catch (RuntimeException runtimeException) {
throw runtimeException;
}
catch (Exception exception) {
throw new RuntimeException(exception);
}
};
}

@GraphQLField
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
protected String externalReferenceCode;

@JsonIgnore
private Supplier<String> _externalReferenceCodeSupplier;

@DecimalMin("0")
@Schema(example = "30130")
public Long getId() {
Expand Down Expand Up @@ -924,6 +965,22 @@ public String toString() {
sb.append("\"");
}

String externalReferenceCode = getExternalReferenceCode();

if (externalReferenceCode != null) {
if (sb.length() > 1) {
sb.append(", ");
}

sb.append("\"externalReferenceCode\": ");

sb.append("\"");

sb.append(_escape(externalReferenceCode));

sb.append("\"");
}

Long id = getId();

if (id != null) {
Expand Down
Loading

0 comments on commit 9bb99cc

Please sign in to comment.