Skip to content
Open
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
1,210 changes: 1,072 additions & 138 deletions openapi.json
100755 → 100644

Large diffs are not rendered by default.

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

/**
* Process a checkout
*
* <p>:::caution[PCI DSS compliance required] When you submit raw card details directly to the
* Checkout API, your systems store, process, or transmit cardholder data and are therefore
* subject to applicable [PCI DSS
* requirements](https://www.pcisecuritystandards.org/document_library/). You should only use this
* integration if your environment is appropriately PCI DSS compliant. ::: 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.CheckoutSuccess2 parsed response.
* @throws ApiException if the SumUp API returns an error.
*/
public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess2> process(
String checkoutId, com.sumup.sdk.models.ProcessCheckout request) throws ApiException {
return process(checkoutId, request, null);
}

/**
* Process a checkout
*
* <p>:::caution[PCI DSS compliance required] When you submit raw card details directly to the
* Checkout API, your systems store, process, or transmit cardholder data and are therefore
* subject to applicable [PCI DSS
* requirements](https://www.pcisecuritystandards.org/document_library/). You should only use this
* integration if your environment is appropriately PCI DSS compliant. ::: 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.CheckoutSuccess2 parsed response.
* @throws ApiException if the SumUp API returns an error.
*/
public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess2> 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.CheckoutSuccess2>() {},
requestOptions);
}

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

/**
* Process a checkout
*
* <p>:::caution[PCI DSS compliance required] When you submit raw card details directly to the
* Checkout API, your systems store, process, or transmit cardholder data and are therefore
* subject to applicable [PCI DSS
* requirements](https://www.pcisecuritystandards.org/document_library/). You should only use this
* integration if your environment is appropriately PCI DSS compliant. ::: 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.CheckoutSuccess2 parsed response.
* @throws ApiException if the SumUp API returns an error.
*/
public com.sumup.sdk.models.CheckoutSuccess2 process(
String checkoutId, com.sumup.sdk.models.ProcessCheckout request) throws ApiException {
return process(checkoutId, request, null);
}

/**
* Process a checkout
*
* <p>:::caution[PCI DSS compliance required] When you submit raw card details directly to the
* Checkout API, your systems store, process, or transmit cardholder data and are therefore
* subject to applicable [PCI DSS
* requirements](https://www.pcisecuritystandards.org/document_library/). You should only use this
* integration if your environment is appropriately PCI DSS compliant. ::: 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.CheckoutSuccess2 parsed response.
* @throws ApiException if the SumUp API returns an error.
*/
public com.sumup.sdk.models.CheckoutSuccess2 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.CheckoutSuccess2>() {},
requestOptions);
}

/**
* Update a checkout
*
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/com/sumup/sdk/clients/MembersAsyncClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,19 @@ public ListMerchantMembersQueryParams userId(java.util.UUID value) {
return this;
}

/**
* Sets the user.type query parameter.
*
* @param value Filter the returned members by user type. Repeat this parameter to include
* multiple user types.
* @return This ListMerchantMembersQueryParams instance.
*/
public ListMerchantMembersQueryParams userType(
java.util.List<com.sumup.sdk.models.UserType> value) {
this.values.put("user.type", Objects.requireNonNull(value, "userType"));
return this;
}

/**
* Converts query parameters to a map understood by ApiClient.
*
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/com/sumup/sdk/clients/MembersClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,19 @@ public ListMerchantMembersQueryParams userId(java.util.UUID value) {
return this;
}

/**
* Sets the user.type query parameter.
*
* @param value Filter the returned members by user type. Repeat this parameter to include
* multiple user types.
* @return This ListMerchantMembersQueryParams instance.
*/
public ListMerchantMembersQueryParams userType(
java.util.List<com.sumup.sdk.models.UserType> value) {
this.values.put("user.type", Objects.requireNonNull(value, "userType"));
return this;
}

/**
* Converts query parameters to a map understood by ApiClient.
*
Expand Down
Loading
Loading