Skip to content

Commit

Permalink
Changes generated by 72694f31f3c3b26443159a02f2c6e830e8ae4730
Browse files Browse the repository at this point in the history
  • Loading branch information
gocardless-ci-robot[bot] committed Oct 15, 2024
1 parent 771110d commit c553274
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ private BillingRequestFlow() {
private String sessionToken;
private Boolean showRedirectButtons;
private Boolean showSuccessRedirectButton;
private Boolean skipSuccessScreen;

/**
* URL for a GC-controlled flow which will allow the payer to fulfil the billing request
Expand Down Expand Up @@ -182,6 +183,14 @@ public Boolean getShowSuccessRedirectButton() {
return showSuccessRedirectButton;
}

/**
* If true, the payer will not be redirected to the success screen after completing the flow. A
* redirect_uri needs to be provided for this parameter to be taken into account.
*/
public Boolean getSkipSuccessScreen() {
return skipSuccessScreen;
}

public static class Links {
private Links() {
// blank to prevent instantiation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static final class BillingRequestFlowCreateRequest
private String redirectUri;
private Boolean showRedirectButtons;
private Boolean showSuccessRedirectButton;
private Boolean skipSuccessScreen;

/**
* (Experimental feature) Fulfil the Billing Request on completion of the flow (true by
Expand Down Expand Up @@ -373,6 +374,15 @@ public BillingRequestFlowCreateRequest withShowSuccessRedirectButton(
return this;
}

/**
* If true, the payer will not be redirected to the success screen after completing the
* flow. A redirect_uri needs to be provided for this parameter to be taken into account.
*/
public BillingRequestFlowCreateRequest withSkipSuccessScreen(Boolean skipSuccessScreen) {
this.skipSuccessScreen = skipSuccessScreen;
return this;
}

private BillingRequestFlowCreateRequest(HttpClient httpClient) {
super(httpClient);
}
Expand Down

0 comments on commit c553274

Please sign in to comment.