Skip to content

Commit

Permalink
Changes generated by b6a5364c943cbe7fd2978bab0b5de68d72541111
Browse files Browse the repository at this point in the history
  • Loading branch information
gocardless-ci-robot[bot] committed Aug 2, 2024
1 parent 5e9a74e commit cfa0aad
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/gocardless/resources/BillingRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ private PaymentRequest() {
private FundsSettlement fundsSettlement;
private Links links;
private Map<String, Object> metadata;
private String reference;
private String scheme;

/**
Expand Down Expand Up @@ -818,6 +819,15 @@ public Map<String, Object> getMetadata() {
return metadata;
}

/**
* A custom payment reference defined by the merchant. It is only available for payments
* using the Direct Funds settlement model on the Faster Payments scheme.
*
*/
public String getReference() {
return reference;
}

/**
* (Optional) A scheme used for Open Banking payments. Currently `faster_payments` is
* supported in the UK (GBP) and `sepa_credit_transfer` and `sepa_instant_credit_transfer`
Expand Down
24 changes: 24 additions & 0 deletions src/main/java/com/gocardless/services/BillingRequestService.java
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,19 @@ public BillingRequestCreateRequest withPaymentRequestMetadata(
return this;
}

/**
* A custom payment reference defined by the merchant. It is only available for payments
* using the Direct Funds settlement model on the Faster Payments scheme.
*
*/
public BillingRequestCreateRequest withPaymentRequestReference(String reference) {
if (paymentRequest == null) {
paymentRequest = new PaymentRequest();
}
paymentRequest.withReference(reference);
return this;
}

/**
* (Optional) A scheme used for Open Banking payments. Currently `faster_payments` is
* supported in the UK (GBP) and `sepa_credit_transfer` and `sepa_instant_credit_transfer`
Expand Down Expand Up @@ -895,6 +908,7 @@ public static class PaymentRequest {
private String description;
private FundsSettlement fundsSettlement;
private Map<String, String> metadata;
private String reference;
private String scheme;

/**
Expand Down Expand Up @@ -957,6 +971,16 @@ public PaymentRequest withMetadata(Map<String, String> metadata) {
return this;
}

/**
* A custom payment reference defined by the merchant. It is only available for payments
* using the Direct Funds settlement model on the Faster Payments scheme.
*
*/
public PaymentRequest withReference(String reference) {
this.reference = reference;
return this;
}

/**
* (Optional) A scheme used for Open Banking payments. Currently `faster_payments` is
* supported in the UK (GBP) and `sepa_credit_transfer` and
Expand Down

0 comments on commit cfa0aad

Please sign in to comment.