Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
929 changes: 5 additions & 924 deletions openapi.json

Large diffs are not rendered by default.

57 changes: 0 additions & 57 deletions src/main/java/com/sumup/sdk/clients/CheckoutsAsyncClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -407,63 +407,6 @@ public CompletableFuture<java.util.List<com.sumup.sdk.models.CheckoutSuccess>> l
requestOptions);
}

/**
* Process a checkout
*
* <p>Processing a checkout will attempt to charge the provided payment instrument for the amount
* of the specified checkout resource initiated in the `Create a checkout` endpoint. Follow this
* request with `Retrieve a checkout` to confirm its status.
*
* <p>Operation ID: ProcessCheckout
*
* @param checkoutId Unique identifier of the checkout resource.
* @param request Details of the payment instrument for processing the checkout.
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
* request timeout.
* @return CompletableFuture resolved with com.sumup.sdk.models.CheckoutSuccess parsed response.
* @throws ApiException if the SumUp API returns an error.
*/
public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> process(
String checkoutId, com.sumup.sdk.models.ProcessCheckout request) throws ApiException {
return process(checkoutId, request, null);
}

/**
* Process a checkout
*
* <p>Processing a checkout will attempt to charge the provided payment instrument for the amount
* of the specified checkout resource initiated in the `Create a checkout` endpoint. Follow this
* request with `Retrieve a checkout` to confirm its status.
*
* <p>Operation ID: ProcessCheckout
*
* @param checkoutId Unique identifier of the checkout resource.
* @param request Details of the payment instrument for processing the checkout.
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
* {@code null} to use client defaults.
* @return CompletableFuture resolved with com.sumup.sdk.models.CheckoutSuccess parsed response.
* @throws ApiException if the SumUp API returns an error.
*/
public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> process(
String checkoutId,
com.sumup.sdk.models.ProcessCheckout request,
RequestOptions requestOptions)
throws ApiException {
Objects.requireNonNull(checkoutId, "checkoutId");
Objects.requireNonNull(request, "request");
String path = "/v0.1/checkouts/{checkout_id}";
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));

return this.apiClient.sendAsync(
HttpMethod.PUT,
path,
null,
null,
request,
new TypeReference<com.sumup.sdk.models.CheckoutSuccess>() {},
requestOptions);
}

/**
* Update a checkout
*
Expand Down
57 changes: 0 additions & 57 deletions src/main/java/com/sumup/sdk/clients/CheckoutsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -395,63 +395,6 @@ public com.sumup.sdk.models.GetPaymentMethodsResponse listAvailablePaymentMethod
requestOptions);
}

/**
* Process a checkout
*
* <p>Processing a checkout will attempt to charge the provided payment instrument for the amount
* of the specified checkout resource initiated in the `Create a checkout` endpoint. Follow this
* request with `Retrieve a checkout` to confirm its status.
*
* <p>Operation ID: ProcessCheckout
*
* @param checkoutId Unique identifier of the checkout resource.
* @param request Details of the payment instrument for processing the checkout.
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
* request timeout.
* @return com.sumup.sdk.models.CheckoutSuccess parsed response.
* @throws ApiException if the SumUp API returns an error.
*/
public com.sumup.sdk.models.CheckoutSuccess process(
String checkoutId, com.sumup.sdk.models.ProcessCheckout request) throws ApiException {
return process(checkoutId, request, null);
}

/**
* Process a checkout
*
* <p>Processing a checkout will attempt to charge the provided payment instrument for the amount
* of the specified checkout resource initiated in the `Create a checkout` endpoint. Follow this
* request with `Retrieve a checkout` to confirm its status.
*
* <p>Operation ID: ProcessCheckout
*
* @param checkoutId Unique identifier of the checkout resource.
* @param request Details of the payment instrument for processing the checkout.
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
* {@code null} to use client defaults.
* @return com.sumup.sdk.models.CheckoutSuccess parsed response.
* @throws ApiException if the SumUp API returns an error.
*/
public com.sumup.sdk.models.CheckoutSuccess process(
String checkoutId,
com.sumup.sdk.models.ProcessCheckout request,
RequestOptions requestOptions)
throws ApiException {
Objects.requireNonNull(checkoutId, "checkoutId");
Objects.requireNonNull(request, "request");
String path = "/v0.1/checkouts/{checkout_id}";
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));

return this.apiClient.send(
HttpMethod.PUT,
path,
null,
null,
request,
new TypeReference<com.sumup.sdk.models.CheckoutSuccess>() {},
requestOptions);
}

/**
* Update a checkout
*
Expand Down
144 changes: 0 additions & 144 deletions src/main/java/com/sumup/sdk/models/Card.java

This file was deleted.

64 changes: 0 additions & 64 deletions src/main/java/com/sumup/sdk/models/CardExpiryMonth.java

This file was deleted.

46 changes: 0 additions & 46 deletions src/main/java/com/sumup/sdk/models/CheckoutAccepted.java

This file was deleted.

Loading
Loading