From 858ca3b22acd61f1860f45fde943a1eaa7ba3e9e Mon Sep 17 00:00:00 2001 From: "gocardless-ci-robot[bot]" <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 14:44:36 +0000 Subject: [PATCH 1/2] Changes generated by 39a08aecf0e1ec6b9f279acf81ec3a1f1bce026e This commit was automatically created from gocardless/client-library-templates@39a08aecf0e1ec6b9f279acf81ec3a1f1bce026e by the `push-files` action. Workflow run: https://github.com/gocardless/client-library-templates/actions/runs/22908072181 --- .../PaymentAccountTransactionService.java | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/src/main/java/com/gocardless/services/PaymentAccountTransactionService.java b/src/main/java/com/gocardless/services/PaymentAccountTransactionService.java index a4f233f4..5283f25a 100644 --- a/src/main/java/com/gocardless/services/PaymentAccountTransactionService.java +++ b/src/main/java/com/gocardless/services/PaymentAccountTransactionService.java @@ -27,6 +27,13 @@ public PaymentAccountTransactionService(HttpClient httpClient) { this.httpClient = httpClient; } + /** + * Retrieves the details of an existing payment account transaction. + */ + public PaymentAccountTransactionGetRequest get(String identity) { + return new PaymentAccountTransactionGetRequest(httpClient, identity); + } + /** * List transactions for a given payment account. */ @@ -42,6 +49,50 @@ public PaymentAccountTransactionListRequest> ListRequest.iteratingExecutor(), identity); } + /** + * Request class for {@link PaymentAccountTransactionService#get }. + * + * Retrieves the details of an existing payment account transaction. + */ + public static final class PaymentAccountTransactionGetRequest + extends GetRequest { + @PathParam + private final String identity; + + private PaymentAccountTransactionGetRequest(HttpClient httpClient, String identity) { + super(httpClient); + this.identity = identity; + } + + public PaymentAccountTransactionGetRequest withHeader(String headerName, + String headerValue) { + this.addHeader(headerName, headerValue); + return this; + } + + @Override + protected Map getPathParams() { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("identity", identity); + return params.build(); + } + + @Override + protected String getPathTemplate() { + return "payment_account_transactions/:identity"; + } + + @Override + protected String getEnvelope() { + return "payment_account_transactions"; + } + + @Override + protected Class getResponseClass() { + return PaymentAccountTransaction.class; + } + } + /** * Request class for {@link PaymentAccountTransactionService#list }. * From f41b0e181abc5ff17d3af1a8d861402a5eebad68 Mon Sep 17 00:00:00 2001 From: "gocardless-ci-robot[bot]" <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> Date: Fri, 20 Mar 2026 13:49:04 +0000 Subject: [PATCH 2/2] Changes generated by 87dfcd1121536d53cd9efcf98c0f501ac7130bc2 This commit was automatically created from gocardless/client-library-templates@87dfcd1121536d53cd9efcf98c0f501ac7130bc2 by the `push-files` action. Workflow run: https://github.com/gocardless/client-library-templates/actions/runs/23345651190 --- .../com/gocardless/http/ListResponse.java | 10 ++++++- .../java/com/gocardless/resources/Event.java | 13 +++++++++- .../gocardless/resources/OutboundPayment.java | 8 ++++++ .../com/gocardless/services/EventService.java | 26 ++++++++++++++++--- .../services/OutboundPaymentService.java | 21 +++++++++++++++ 5 files changed, 72 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/gocardless/http/ListResponse.java b/src/main/java/com/gocardless/http/ListResponse.java index bd2ed2c9..47b37b23 100644 --- a/src/main/java/com/gocardless/http/ListResponse.java +++ b/src/main/java/com/gocardless/http/ListResponse.java @@ -128,6 +128,12 @@ public List getPayerAuthorisations() { return payerAuthorisations; } + private final List paymentAccountTransactions; + + public List getPaymentAccountTransactions() { + return paymentAccountTransactions; + } + private final List payments; public List getPayments() { @@ -161,7 +167,8 @@ public List getSubscriptions() { Linked(List billingRequests, List creditors, List customers, List instalmentSchedules, List mandates, List outboundPayments, - List payerAuthorisations, List payments, + List payerAuthorisations, + List paymentAccountTransactions, List payments, List payouts, List refunds, List schemeIdentifiers, List subscriptions) { this.billingRequests = billingRequests; @@ -171,6 +178,7 @@ public List getSubscriptions() { this.mandates = mandates; this.outboundPayments = outboundPayments; this.payerAuthorisations = payerAuthorisations; + this.paymentAccountTransactions = paymentAccountTransactions; this.payments = payments; this.payouts = payouts; this.refunds = refunds; diff --git a/src/main/java/com/gocardless/resources/Event.java b/src/main/java/com/gocardless/resources/Event.java index f55ff232..1f1328d1 100644 --- a/src/main/java/com/gocardless/resources/Event.java +++ b/src/main/java/com/gocardless/resources/Event.java @@ -104,6 +104,7 @@ public Map getResourceMetadata() { *
  • `scheme_identifiers`
  • *
  • `subscriptions`
  • *
  • `outbound_payments`
  • + *
  • `payment_account_transactions`
  • * */ public ResourceType getResourceType() { @@ -128,7 +129,8 @@ public enum ResourceType { ORGANISATIONS, @SerializedName("outbound_payments") OUTBOUND_PAYMENTS, @SerializedName("payer_authorisations") PAYER_AUTHORISATIONS, @SerializedName("payments") - PAYMENTS, @SerializedName("payouts") + PAYMENTS, @SerializedName("payment_account_transactions") + PAYMENT_ACCOUNT_TRANSACTIONS, @SerializedName("payouts") PAYOUTS, @SerializedName("refunds") REFUNDS, @SerializedName("scheme_identifiers") SCHEME_IDENTIFIERS, @SerializedName("subscriptions") @@ -356,6 +358,7 @@ private Links() { private String parentEvent; private String payerAuthorisation; private String payment; + private String paymentAccountTransaction; private String paymentRequestPayment; private String payout; private String previousCustomerBankAccount; @@ -495,6 +498,14 @@ public String getPayment() { return payment; } + /** + * If `resource_type` is `payment_account_transaction`, this is the ID of a transaction + * which has been recorded on the payment account. + */ + public String getPaymentAccountTransaction() { + return paymentAccountTransaction; + } + /** * If `resource_type` is `billing_requests`, this is the ID of the * [payment](#core-endpoints-payments) which has been created for Instant Bank Payment. diff --git a/src/main/java/com/gocardless/resources/OutboundPayment.java b/src/main/java/com/gocardless/resources/OutboundPayment.java index e4f14491..c704dd71 100644 --- a/src/main/java/com/gocardless/resources/OutboundPayment.java +++ b/src/main/java/com/gocardless/resources/OutboundPayment.java @@ -190,6 +190,7 @@ private Links() { private String creditor; private String customer; + private String outboundPaymentImport; private String recipientBankAccount; /** @@ -206,6 +207,13 @@ public String getCustomer() { return customer; } + /** + * ID of the outbound payment import that created this outbound payment. + */ + public String getOutboundPaymentImport() { + return outboundPaymentImport; + } + /** * ID of the customer bank account which receives the outbound payment. */ diff --git a/src/main/java/com/gocardless/services/EventService.java b/src/main/java/com/gocardless/services/EventService.java index 0f628472..77330865 100644 --- a/src/main/java/com/gocardless/services/EventService.java +++ b/src/main/java/com/gocardless/services/EventService.java @@ -64,6 +64,7 @@ public static final class EventListRequest extends ListRequest { private String parentEvent; private String payerAuthorisation; private String payment; + private String paymentAccountTransaction; private String payout; private String refund; private ResourceType resourceType; @@ -184,6 +185,7 @@ public EventListRequest withExport(String export) { *
  • `scheme_identifier`
  • *
  • `subscription`
  • *
  • `outbound_payment`
  • + *
  • `payment_account_transaction`
  • * */ public EventListRequest withInclude(Include include) { @@ -252,6 +254,15 @@ public EventListRequest withPayment(String payment) { return this; } + /** + * ID of a payment account transaction. If specified, this endpoint will return all events + * for the given transaction. + */ + public EventListRequest withPaymentAccountTransaction(String paymentAccountTransaction) { + this.paymentAccountTransaction = paymentAccountTransaction; + return this; + } + /** * ID of a [payout](#core-endpoints-payouts). If specified, this endpoint will return all * events for the given payout. @@ -273,8 +284,9 @@ public EventListRequest withRefund(String refund) { /** * Type of resource that you'd like to get all events for. Cannot be used together with the * `billing_request`, `creditor`, `export`,`instalment_schedule`, `mandate`, - * `payer_authorisation`, `payment`, `payout`, `refund`, `scheme_identifier`, `subscription` - * or `outbound_payment` parameters. The type can be one of: + * `payer_authorisation`, `payment`, `payout`, `refund`, `scheme_identifier`, + * `subscription`, `outbound_payment` or `payment_account_transaction` parameters. The type + * can be one of: *
      *
    • `billing_requests`
    • *
    • `creditors`
    • @@ -288,6 +300,7 @@ public EventListRequest withRefund(String refund) { *
    • `scheme_identifiers`
    • *
    • `subscriptions`
    • *
    • `outbound_payments`
    • + *
    • `payment_account_transactions`
    • *
    */ public EventListRequest withResourceType(ResourceType resourceType) { @@ -362,6 +375,9 @@ protected Map getQueryParams() { if (payment != null) { params.put("payment", payment); } + if (paymentAccountTransaction != null) { + params.put("payment_account_transaction", paymentAccountTransaction); + } if (payout != null) { params.put("payout", payout); } @@ -404,7 +420,8 @@ public enum Include { MANDATE, @SerializedName("outbound_payment") OUTBOUND_PAYMENT, @SerializedName("payer_authorisation") PAYER_AUTHORISATION, @SerializedName("payment") - PAYMENT, @SerializedName("payout") + PAYMENT, @SerializedName("payment_account_transaction") + PAYMENT_ACCOUNT_TRANSACTION, @SerializedName("payout") PAYOUT, @SerializedName("refund") REFUND, @SerializedName("scheme_identifier") SCHEME_IDENTIFIER, @SerializedName("subscription") @@ -428,7 +445,8 @@ public enum ResourceType { ORGANISATIONS, @SerializedName("outbound_payments") OUTBOUND_PAYMENTS, @SerializedName("payer_authorisations") PAYER_AUTHORISATIONS, @SerializedName("payments") - PAYMENTS, @SerializedName("payouts") + PAYMENTS, @SerializedName("payment_account_transactions") + PAYMENT_ACCOUNT_TRANSACTIONS, @SerializedName("payouts") PAYOUTS, @SerializedName("refunds") REFUNDS, @SerializedName("scheme_identifiers") SCHEME_IDENTIFIERS, @SerializedName("subscriptions") diff --git a/src/main/java/com/gocardless/services/OutboundPaymentService.java b/src/main/java/com/gocardless/services/OutboundPaymentService.java index f62957cb..f38fc345 100644 --- a/src/main/java/com/gocardless/services/OutboundPaymentService.java +++ b/src/main/java/com/gocardless/services/OutboundPaymentService.java @@ -157,6 +157,18 @@ public OutboundPaymentCreateRequest withLinksCreditor(String creditor) { return this; } + /** + * ID of the outbound payment import that created this outbound payment. + */ + public OutboundPaymentCreateRequest withLinksOutboundPaymentImport( + String outboundPaymentImport) { + if (links == null) { + links = new Links(); + } + links.withOutboundPaymentImport(outboundPaymentImport); + return this; + } + /** * ID of the customer bank account which receives the outbound payment. */ @@ -266,6 +278,7 @@ public String toString() { public static class Links { private String creditor; + private String outboundPaymentImport; private String recipientBankAccount; /** @@ -276,6 +289,14 @@ public Links withCreditor(String creditor) { return this; } + /** + * ID of the outbound payment import that created this outbound payment. + */ + public Links withOutboundPaymentImport(String outboundPaymentImport) { + this.outboundPaymentImport = outboundPaymentImport; + return this; + } + /** * ID of the customer bank account which receives the outbound payment. */