Remove interval property from Credential Offer (#40412)

Closes #39294

Signed-off-by: forkimenjeckayang <forkimenjeckayang@gmail.com>
This commit is contained in:
forkimenjeckayang 2025-07-07 12:55:39 +01:00 committed by GitHub
parent 178b893492
commit 2aca97bd19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,9 +37,6 @@ public class PreAuthorizedCode {
@JsonProperty("tx_code")
private TxCode txCode;
@JsonProperty("interval")
private long interval;
@JsonProperty("authorization_server")
private String authorizationServer;
@ -61,15 +58,6 @@ public class PreAuthorizedCode {
return this;
}
public long getInterval() {
return interval;
}
public PreAuthorizedCode setInterval(long interval) {
this.interval = interval;
return this;
}
public String getAuthorizationServer() {
return authorizationServer;
}
@ -83,11 +71,11 @@ public class PreAuthorizedCode {
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof PreAuthorizedCode that)) return false;
return getInterval() == that.getInterval() && Objects.equals(getPreAuthorizedCode(), that.getPreAuthorizedCode()) && Objects.equals(getTxCode(), that.getTxCode()) && Objects.equals(getAuthorizationServer(), that.getAuthorizationServer());
return Objects.equals(getPreAuthorizedCode(), that.getPreAuthorizedCode()) && Objects.equals(getTxCode(), that.getTxCode()) && Objects.equals(getAuthorizationServer(), that.getAuthorizationServer());
}
@Override
public int hashCode() {
return Objects.hash(getPreAuthorizedCode(), getTxCode(), getInterval(), getAuthorizationServer());
return Objects.hash(getPreAuthorizedCode(), getTxCode(), getAuthorizationServer());
}
}