Skip to content

Commit ed975e3

Browse files
chore: generate code
1 parent 53eab4d commit ed975e3

File tree

4 files changed

+65
-41
lines changed

4 files changed

+65
-41
lines changed

src/main/java/com/sumup/sdk/clients/TransactionsAsyncClient.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,18 @@ public ListTransactionsV21QueryParams changesSince(java.time.OffsetDateTime valu
676676
return this;
677677
}
678678

679+
/**
680+
* Sets the entry_modes[] query parameter.
681+
*
682+
* @param value Filters the returned results by the specified list of entry modes.
683+
* @return This ListTransactionsV21QueryParams instance.
684+
*/
685+
public ListTransactionsV21QueryParams entryModes(
686+
java.util.List<com.sumup.sdk.models.EntryModeFilter> value) {
687+
this.values.put("entry_modes[]", Objects.requireNonNull(value, "entryModes"));
688+
return this;
689+
}
690+
679691
/**
680692
* Sets the limit query parameter.
681693
*

src/main/java/com/sumup/sdk/clients/TransactionsClient.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,18 @@ public ListTransactionsV21QueryParams changesSince(java.time.OffsetDateTime valu
664664
return this;
665665
}
666666

667+
/**
668+
* Sets the entry_modes[] query parameter.
669+
*
670+
* @param value Filters the returned results by the specified list of entry modes.
671+
* @return This ListTransactionsV21QueryParams instance.
672+
*/
673+
public ListTransactionsV21QueryParams entryModes(
674+
java.util.List<com.sumup.sdk.models.EntryModeFilter> value) {
675+
this.values.put("entry_modes[]", Objects.requireNonNull(value, "entryModes"));
676+
return this;
677+
}
678+
667679
/**
668680
* Sets the limit query parameter.
669681
*

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

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Code generated by sumup-java/codegen. DO NOT EDIT.
2+
package com.sumup.sdk.models;
3+
4+
/** Entry mode value accepted by the `entry_modes[]` filter. */
5+
public record EntryModeFilter(String value) {
6+
/**
7+
* Creates a builder for EntryModeFilter.
8+
*
9+
* @return Builder that constructs immutable EntryModeFilter instances.
10+
*/
11+
public static Builder builder() {
12+
return new Builder();
13+
}
14+
15+
/** Builder for EntryModeFilter instances. */
16+
public static final class Builder {
17+
private String value;
18+
19+
private Builder() {}
20+
21+
/**
22+
* Sets the value for {@code value}.
23+
*
24+
* @param value Value for the value field.
25+
* @return This builder instance.
26+
*/
27+
public Builder value(String value) {
28+
this.value = value;
29+
return this;
30+
}
31+
32+
/**
33+
* Builds an immutable EntryModeFilter instance.
34+
*
35+
* @return Immutable EntryModeFilter.
36+
*/
37+
public EntryModeFilter build() {
38+
return new EntryModeFilter(value);
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)