From 91ae8fecdffc41c65f56c7bc1b85cbe616162b7d Mon Sep 17 00:00:00 2001 From: "gocardless-ci-robot[bot]" <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:15:44 +0000 Subject: [PATCH] Changes generated by 90a55dcae5c22e13458ad6f00763abd8c57236af This commit was automatically created from gocardless/gocardless-pro-java-template@90a55dcae5c22e13458ad6f00763abd8c57236af by the `push-files` action. Workflow run: https://github.com/gocardless/gocardless-pro-java-template/actions/runs/21522428508 --- .../gocardless/services/PaymentService.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/main/java/com/gocardless/services/PaymentService.java b/src/main/java/com/gocardless/services/PaymentService.java index cb6d3fa8..b331188b 100644 --- a/src/main/java/com/gocardless/services/PaymentService.java +++ b/src/main/java/com/gocardless/services/PaymentService.java @@ -112,6 +112,7 @@ public static final class PaymentCreateRequest extends IdempotentPostRequest metadata; + private PsuInteractionType psuInteractionType; private String reference; private Boolean retryIfPossible; @@ -210,6 +211,22 @@ public PaymentCreateRequest withMetadata(String key, String value) { return this; } + /** + * Indicates how a Variable Recurring Payment (VRP) is initiated, by or on behalf of the + * payer. + * + */ + public PaymentCreateRequest withPsuInteractionType(PsuInteractionType psuInteractionType) { + this.psuInteractionType = psuInteractionType; + return this; + } + /** * An optional reference that will appear on your customer's bank statement. The character * limit for this reference is dependent on the scheme.
@@ -313,6 +330,18 @@ public String toString() { } } + public enum PsuInteractionType { + @SerializedName("in_session") + IN_SESSION, @SerializedName("off_session") + OFF_SESSION, @SerializedName("unknown") + UNKNOWN; + + @Override + public String toString() { + return name().toLowerCase(); + } + } + public static class Links { private String mandate;