Skip to content

Commit a8b5c3c

Browse files
chore: generate code
1 parent 2b02be5 commit a8b5c3c

8 files changed

Lines changed: 11 additions & 265 deletions

src/main/java/com/sumup/sdk/models/BadGateway.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/main/java/com/sumup/sdk/models/BadGatewayErrors.java

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/main/java/com/sumup/sdk/models/GatewayTimeout.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/main/java/com/sumup/sdk/models/GatewayTimeoutErrors.java

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/main/java/com/sumup/sdk/models/InternalServerError.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/main/java/com/sumup/sdk/models/InternalServerErrorErrors.java

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/main/java/com/sumup/sdk/models/UnauthorizedErrors.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ public record UnauthorizedErrors(
77
/** Fuller message giving context to error */
88
String detail,
99

10-
/** Key indicating type of error */
10+
/**
11+
* Key indicating type of error. Present only for typed 401 responses (e.g. invalid token,
12+
* invalid password). Absent for generic unauthorized responses.
13+
*/
1114
com.sumup.sdk.models.UnauthorizedErrorsType type) {
1215
/**
1316
* Creates a builder for UnauthorizedErrors.
@@ -39,7 +42,8 @@ public Builder detail(String detail) {
3942
/**
4043
* Sets the value for {@code type}.
4144
*
42-
* @param type Key indicating type of error
45+
* @param type Key indicating type of error. Present only for typed 401 responses (e.g. invalid
46+
* token, invalid password). Absent for generic unauthorized responses.
4347
* @return This builder instance.
4448
*/
4549
public Builder type(com.sumup.sdk.models.UnauthorizedErrorsType type) {
@@ -53,7 +57,7 @@ public Builder type(com.sumup.sdk.models.UnauthorizedErrorsType type) {
5357
* @return Immutable UnauthorizedErrors.
5458
*/
5559
public UnauthorizedErrors build() {
56-
return new UnauthorizedErrors(detail, Objects.requireNonNull(type, "type"));
60+
return new UnauthorizedErrors(Objects.requireNonNull(detail, "detail"), type);
5761
}
5862
}
5963
}

src/main/java/com/sumup/sdk/models/UnauthorizedErrorsType.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
import com.fasterxml.jackson.annotation.JsonCreator;
55
import com.fasterxml.jackson.annotation.JsonValue;
66

7-
/** Key indicating type of error */
7+
/**
8+
* Key indicating type of error. Present only for typed 401 responses (e.g. invalid token, invalid
9+
* password). Absent for generic unauthorized responses.
10+
*/
811
public enum UnauthorizedErrorsType {
912
INVALID_ACCESS_TOKEN("INVALID_ACCESS_TOKEN"),
1013
INVALID_PASSWORD("INVALID_PASSWORD");

0 commit comments

Comments
 (0)