Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/com/sumup/sdk/models/Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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}.
*
Expand Down Expand Up @@ -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"));
}
Expand Down
Loading