diff --git a/openapi.json b/openapi.json index 6b693ad..a8c91c5 100755 --- a/openapi.json +++ b/openapi.json @@ -9936,6 +9936,12 @@ "metadata": { "$ref": "#/components/schemas/Metadata" }, + "service_account_id": { + "description": "Identifier of the system-managed service account associated with this reader.\nPresent only for readers that are already paired.\nThis field is currently in beta and may change.", + "type": "string", + "format": "uuid", + "x-beta": true + }, "created_at": { "description": "The timestamp of when the reader was created.", "type": "string", diff --git a/src/main/java/com/sumup/sdk/models/Reader.java b/src/main/java/com/sumup/sdk/models/Reader.java index a6f90d6..8c11639 100644 --- a/src/main/java/com/sumup/sdk/models/Reader.java +++ b/src/main/java/com/sumup/sdk/models/Reader.java @@ -29,6 +29,12 @@ public record Reader( /** Custom human-readable, user-defined name for easier identification of the reader. */ com.sumup.sdk.models.ReaderName name, + /** + * Identifier of the system-managed service account associated with this reader. Present only + * for readers that are already paired. This field is currently in beta and may change. + */ + java.util.UUID serviceAccountId, + /** * The status of the reader object gives information about the current state of the reader. * Possible values: - `unknown` - The reader status is unknown. - `processing` - The reader is @@ -56,6 +62,7 @@ public static final class Builder { private com.sumup.sdk.models.ReaderId id; private com.sumup.sdk.models.Metadata metadata; private com.sumup.sdk.models.ReaderName name; + private java.util.UUID serviceAccountId; private com.sumup.sdk.models.ReaderStatus status; private java.time.OffsetDateTime updatedAt; @@ -121,6 +128,19 @@ public Builder name(com.sumup.sdk.models.ReaderName name) { return this; } + /** + * Sets the value for {@code serviceAccountId}. + * + * @param serviceAccountId Identifier of the system-managed service account associated with this + * reader. Present only for readers that are already paired. This field is currently in beta + * and may change. + * @return This builder instance. + */ + public Builder serviceAccountId(java.util.UUID serviceAccountId) { + this.serviceAccountId = serviceAccountId; + return this; + } + /** * Sets the value for {@code status}. * @@ -160,6 +180,7 @@ public Reader build() { Objects.requireNonNull(id, "id"), metadata, Objects.requireNonNull(name, "name"), + serviceAccountId, Objects.requireNonNull(status, "status"), Objects.requireNonNull(updatedAt, "updatedAt")); }