diff --git a/openapi.json b/openapi.json index 8eee23e..8abd481 100755 --- a/openapi.json +++ b/openapi.json @@ -6797,6 +6797,16 @@ "type": { "description": "Specifies the media type of the related resource.", "type": "string" + }, + "min_amount": { + "description": "Minimum allowed amount for the refund.", + "type": "number", + "format": "float" + }, + "max_amount": { + "description": "Maximum allowed amount for the refund.", + "type": "number", + "format": "float" } }, "title": "Link" @@ -7606,6 +7616,7 @@ "apple pay", "google pay", "paypal", + "twint", "na" ], "title": "Entry Mode" @@ -10382,6 +10393,7 @@ "APPLE_PAY", "GOOGLE_PAY", "PAYPAL", + "TWINT", "NONE", "CHIP", "MANUAL_ENTRY", diff --git a/src/main/java/com/sumup/sdk/models/EntryMode.java b/src/main/java/com/sumup/sdk/models/EntryMode.java index f24f2d6..492a3ca 100644 --- a/src/main/java/com/sumup/sdk/models/EntryMode.java +++ b/src/main/java/com/sumup/sdk/models/EntryMode.java @@ -31,6 +31,7 @@ public enum EntryMode { APPLE_PAY("apple pay"), GOOGLE_PAY("google pay"), PAYPAL("paypal"), + TWINT("twint"), NA("na"); private final String value; diff --git a/src/main/java/com/sumup/sdk/models/EntryModeFilter.java b/src/main/java/com/sumup/sdk/models/EntryModeFilter.java index 6f4b53c..d6b4c75 100644 --- a/src/main/java/com/sumup/sdk/models/EntryModeFilter.java +++ b/src/main/java/com/sumup/sdk/models/EntryModeFilter.java @@ -21,6 +21,7 @@ public enum EntryModeFilter { APPLE_PAY("APPLE_PAY"), GOOGLE_PAY("GOOGLE_PAY"), PAYPAL("PAYPAL"), + TWINT("TWINT"), NONE("NONE"), CHIP("CHIP"), MANUAL_ENTRY("MANUAL_ENTRY"), diff --git a/src/main/java/com/sumup/sdk/models/Link.java b/src/main/java/com/sumup/sdk/models/Link.java index ac5a229..82570b8 100644 --- a/src/main/java/com/sumup/sdk/models/Link.java +++ b/src/main/java/com/sumup/sdk/models/Link.java @@ -6,6 +6,12 @@ public record Link( /** URL for accessing the related resource. */ String href, + /** Maximum allowed amount for the refund. */ + Float maxAmount, + + /** Minimum allowed amount for the refund. */ + Float minAmount, + /** Specifies the relation to the current resource. */ String rel, @@ -23,6 +29,8 @@ public static Builder builder() { /** Builder for Link instances. */ public static final class Builder { private String href; + private Float maxAmount; + private Float minAmount; private String rel; private String type; @@ -39,6 +47,28 @@ public Builder href(String href) { return this; } + /** + * Sets the value for {@code maxAmount}. + * + * @param maxAmount Maximum allowed amount for the refund. + * @return This builder instance. + */ + public Builder maxAmount(Float maxAmount) { + this.maxAmount = maxAmount; + return this; + } + + /** + * Sets the value for {@code minAmount}. + * + * @param minAmount Minimum allowed amount for the refund. + * @return This builder instance. + */ + public Builder minAmount(Float minAmount) { + this.minAmount = minAmount; + return this; + } + /** * Sets the value for {@code rel}. * @@ -67,7 +97,7 @@ public Builder type(String type) { * @return Immutable Link. */ public Link build() { - return new Link(href, rel, type); + return new Link(href, maxAmount, minAmount, rel, type); } } }