Skip to content

Commit 5d03843

Browse files
chore: generate code
1 parent 4400a0d commit 5d03843

3 files changed

Lines changed: 112 additions & 4 deletions

File tree

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55

66
/** Reader Checkout */
77
public record CreateReaderCheckoutRequest(
8+
/**
9+
* Optional object containing data for transactions from ERP integrators in Greece that comply
10+
* with the AADE 1155 protocol. When such regulatory/business requirements apply, this object
11+
* must be provided and contains the data needed to validate the transaction with the AADE
12+
* signature provider.
13+
*/
14+
com.sumup.sdk.models.CreateReaderCheckoutRequestAade aade,
15+
816
/**
917
* Affiliate metadata for the transaction. It is a field that allow for integrators to track the
1018
* source of the transaction.
@@ -59,6 +67,7 @@ public static Builder builder() {
5967

6068
/** Builder for CreateReaderCheckoutRequest instances. */
6169
public static final class Builder {
70+
private com.sumup.sdk.models.CreateReaderCheckoutRequestAade aade;
6271
private com.sumup.sdk.models.Affiliate affiliate;
6372
private com.sumup.sdk.models.CreateReaderCheckoutRequestCardType cardType;
6473
private String description;
@@ -70,6 +79,20 @@ public static final class Builder {
7079

7180
private Builder() {}
7281

82+
/**
83+
* Sets the value for {@code aade}.
84+
*
85+
* @param aade Optional object containing data for transactions from ERP integrators in Greece
86+
* that comply with the AADE 1155 protocol. When such regulatory/business requirements
87+
* apply, this object must be provided and contains the data needed to validate the
88+
* transaction with the AADE signature provider.
89+
* @return This builder instance.
90+
*/
91+
public Builder aade(com.sumup.sdk.models.CreateReaderCheckoutRequestAade aade) {
92+
this.aade = aade;
93+
return this;
94+
}
95+
7396
/**
7497
* Sets the value for {@code affiliate}.
7598
*
@@ -177,6 +200,7 @@ public Builder totalAmount(com.sumup.sdk.models.Money totalAmount) {
177200
*/
178201
public CreateReaderCheckoutRequest build() {
179202
return new CreateReaderCheckoutRequest(
203+
aade,
180204
affiliate,
181205
cardType,
182206
description,
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
// Code generated by sumup-java/codegen. DO NOT EDIT.
2+
package com.sumup.sdk.models;
3+
4+
import java.util.Objects;
5+
6+
/**
7+
* Optional object containing data for transactions from ERP integrators in Greece that comply with
8+
* the AADE 1155 protocol. When such regulatory/business requirements apply, this object must be
9+
* provided and contains the data needed to validate the transaction with the AADE signature
10+
* provider.
11+
*/
12+
public record CreateReaderCheckoutRequestAade(
13+
/** The identifier of the AADE signature provider. */
14+
String providerId,
15+
16+
/** The base64 encoded signature of the transaction data. */
17+
String signature,
18+
19+
/** The string containing the signed transaction data. */
20+
String signatureData) {
21+
/**
22+
* Creates a builder for CreateReaderCheckoutRequestAade.
23+
*
24+
* @return Builder that constructs immutable CreateReaderCheckoutRequestAade instances.
25+
*/
26+
public static Builder builder() {
27+
return new Builder();
28+
}
29+
30+
/** Builder for CreateReaderCheckoutRequestAade instances. */
31+
public static final class Builder {
32+
private String providerId;
33+
private String signature;
34+
private String signatureData;
35+
36+
private Builder() {}
37+
38+
/**
39+
* Sets the value for {@code providerId}.
40+
*
41+
* @param providerId The identifier of the AADE signature provider.
42+
* @return This builder instance.
43+
*/
44+
public Builder providerId(String providerId) {
45+
this.providerId = providerId;
46+
return this;
47+
}
48+
49+
/**
50+
* Sets the value for {@code signature}.
51+
*
52+
* @param signature The base64 encoded signature of the transaction data.
53+
* @return This builder instance.
54+
*/
55+
public Builder signature(String signature) {
56+
this.signature = signature;
57+
return this;
58+
}
59+
60+
/**
61+
* Sets the value for {@code signatureData}.
62+
*
63+
* @param signatureData The string containing the signed transaction data.
64+
* @return This builder instance.
65+
*/
66+
public Builder signatureData(String signatureData) {
67+
this.signatureData = signatureData;
68+
return this;
69+
}
70+
71+
/**
72+
* Builds an immutable CreateReaderCheckoutRequestAade instance.
73+
*
74+
* @return Immutable CreateReaderCheckoutRequestAade.
75+
*/
76+
public CreateReaderCheckoutRequestAade build() {
77+
return new CreateReaderCheckoutRequestAade(
78+
Objects.requireNonNull(providerId, "providerId"),
79+
Objects.requireNonNull(signature, "signature"),
80+
Objects.requireNonNull(signatureData, "signatureData"));
81+
}
82+
}
83+
}

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
/** Status of the transaction event. */
88
public enum EventStatus {
9-
PENDING("PENDING"),
10-
SCHEDULED("SCHEDULED"),
119
FAILED("FAILED"),
10+
PAID_OUT("PAID_OUT"),
11+
PENDING("PENDING"),
12+
RECONCILED("RECONCILED"),
1213
REFUNDED("REFUNDED"),
13-
SUCCESSFUL("SUCCESSFUL"),
14-
PAID_OUT("PAID_OUT");
14+
SCHEDULED("SCHEDULED"),
15+
SUCCESSFUL("SUCCESSFUL");
1516

1617
private final String value;
1718

0 commit comments

Comments
 (0)