Skip to content

Commit c0baf34

Browse files
chore: generate code
1 parent 9f175a2 commit c0baf34

2 files changed

Lines changed: 38 additions & 4 deletions

File tree

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

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
// Code generated by sumup-java/codegen. DO NOT EDIT.
22
package com.sumup.sdk.models;
33

4+
import java.util.Objects;
5+
46
public record CreateReaderCheckoutErrorErrors(
57
/** Error message */
6-
String detail) {
8+
String detail,
9+
10+
/** Error code */
11+
String type) {
712
/**
813
* Creates a builder for CreateReaderCheckoutErrorErrors.
914
*
@@ -16,6 +21,7 @@ public static Builder builder() {
1621
/** Builder for CreateReaderCheckoutErrorErrors instances. */
1722
public static final class Builder {
1823
private String detail;
24+
private String type;
1925

2026
private Builder() {}
2127

@@ -30,13 +36,24 @@ public Builder detail(String detail) {
3036
return this;
3137
}
3238

39+
/**
40+
* Sets the value for {@code type}.
41+
*
42+
* @param type Error code
43+
* @return This builder instance.
44+
*/
45+
public Builder type(String type) {
46+
this.type = type;
47+
return this;
48+
}
49+
3350
/**
3451
* Builds an immutable CreateReaderCheckoutErrorErrors instance.
3552
*
3653
* @return Immutable CreateReaderCheckoutErrorErrors.
3754
*/
3855
public CreateReaderCheckoutErrorErrors build() {
39-
return new CreateReaderCheckoutErrorErrors(detail);
56+
return new CreateReaderCheckoutErrorErrors(detail, Objects.requireNonNull(type, "type"));
4057
}
4158
}
4259
}

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

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
// Code generated by sumup-java/codegen. DO NOT EDIT.
22
package com.sumup.sdk.models;
33

4+
import java.util.Objects;
5+
46
public record CreateReaderTerminateErrorErrors(
57
/** Error message */
6-
String detail) {
8+
String detail,
9+
10+
/** Error code */
11+
String type) {
712
/**
813
* Creates a builder for CreateReaderTerminateErrorErrors.
914
*
@@ -16,6 +21,7 @@ public static Builder builder() {
1621
/** Builder for CreateReaderTerminateErrorErrors instances. */
1722
public static final class Builder {
1823
private String detail;
24+
private String type;
1925

2026
private Builder() {}
2127

@@ -30,13 +36,24 @@ public Builder detail(String detail) {
3036
return this;
3137
}
3238

39+
/**
40+
* Sets the value for {@code type}.
41+
*
42+
* @param type Error code
43+
* @return This builder instance.
44+
*/
45+
public Builder type(String type) {
46+
this.type = type;
47+
return this;
48+
}
49+
3350
/**
3451
* Builds an immutable CreateReaderTerminateErrorErrors instance.
3552
*
3653
* @return Immutable CreateReaderTerminateErrorErrors.
3754
*/
3855
public CreateReaderTerminateErrorErrors build() {
39-
return new CreateReaderTerminateErrorErrors(detail);
56+
return new CreateReaderTerminateErrorErrors(detail, Objects.requireNonNull(type, "type"));
4057
}
4158
}
4259
}

0 commit comments

Comments
 (0)