Skip to content

Commit 2b0332d

Browse files
chore: generate code
1 parent 8882aa0 commit 2b0332d

28 files changed

Lines changed: 707 additions & 189 deletions

src/main/java/com/sumup/sdk/clients/CheckoutsAsyncClient.java

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@
1414
/**
1515
* Client for the "Checkouts" API group.
1616
*
17-
* <p>Accept payments from your end users by adding the Checkouts model to your platform. SumUp
18-
* supports standard and single payment 3DS checkout flows. The Checkout model allows creating,
19-
* listing, retrieving, processing and deactivating checkouts. A payment is completed by creating a
20-
* checkout and then processing the checkout.
17+
* <p>Checkouts represent online payment sessions that you create before attempting to charge a
18+
* payer. A checkout captures the payment intent, such as the amount, currency, merchant, and
19+
* optional customer or redirect settings, and then moves through its lifecycle as you process it.
20+
* Use this tag to: - create a checkout before collecting or confirming payment details - process
21+
* the checkout with a card, saved card, wallet, or supported alternative payment method - retrieve
22+
* or list checkouts to inspect their current state and associated payment attempts - deactivate a
23+
* checkout that should no longer be used Typical workflow: - create a checkout with the order
24+
* amount, currency, and merchant information - process the checkout through SumUp client tools such
25+
* as the [Payment Widget and Swift Checkout
26+
* SDK](https://developer.sumup.com/online-payments/checkouts) - retrieve the checkout or use the
27+
* Transactions endpoints to inspect the resulting payment record Checkouts are used to initiate and
28+
* orchestrate online payments. Transactions remain the authoritative record of the resulting
29+
* payment outcome.
2130
*/
2231
public final class CheckoutsAsyncClient {
2332
private final ApiClient apiClient;
@@ -329,6 +338,54 @@ public CompletableFuture<java.util.List<com.sumup.sdk.models.CheckoutSuccess>> l
329338
requestOptions);
330339
}
331340

341+
/**
342+
* Create an apple pay session.
343+
*
344+
* <p>In order to be able to process a payment via apple pay, you need to create a session first.
345+
* The session will enable you to open the wallet screen for apple pay and retrieve the apple pay
346+
* token.
347+
*
348+
* <p>Operation ID: operation
349+
*
350+
* @param id Unique ID of the checkout resource.
351+
* @param request The data needed to create an apple pay session for a checkout.
352+
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
353+
* request timeout.
354+
* @return CompletableFuture completed when the request finishes.
355+
* @throws ApiException if the SumUp API returns an error.
356+
*/
357+
public CompletableFuture<Void> operation(String id, com.sumup.sdk.models.OperationRequest request)
358+
throws ApiException {
359+
return operation(id, request, null);
360+
}
361+
362+
/**
363+
* Create an apple pay session.
364+
*
365+
* <p>In order to be able to process a payment via apple pay, you need to create a session first.
366+
* The session will enable you to open the wallet screen for apple pay and retrieve the apple pay
367+
* token.
368+
*
369+
* <p>Operation ID: operation
370+
*
371+
* @param id Unique ID of the checkout resource.
372+
* @param request The data needed to create an apple pay session for a checkout.
373+
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
374+
* {@code null} to use client defaults.
375+
* @return CompletableFuture completed when the request finishes.
376+
* @throws ApiException if the SumUp API returns an error.
377+
*/
378+
public CompletableFuture<Void> operation(
379+
String id, com.sumup.sdk.models.OperationRequest request, RequestOptions requestOptions)
380+
throws ApiException {
381+
Objects.requireNonNull(id, "id");
382+
String path = "/v0.1/checkouts/{id}/apple-pay-session";
383+
path = path.replace("{id}", ApiClient.urlEncode(String.valueOf(id)));
384+
385+
return this.apiClient.sendAsync(
386+
HttpMethod.PUT, path, null, null, request, null, requestOptions);
387+
}
388+
332389
/**
333390
* Process a checkout
334391
*

src/main/java/com/sumup/sdk/clients/CheckoutsClient.java

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@
1313
/**
1414
* Client for the "Checkouts" API group.
1515
*
16-
* <p>Accept payments from your end users by adding the Checkouts model to your platform. SumUp
17-
* supports standard and single payment 3DS checkout flows. The Checkout model allows creating,
18-
* listing, retrieving, processing and deactivating checkouts. A payment is completed by creating a
19-
* checkout and then processing the checkout.
16+
* <p>Checkouts represent online payment sessions that you create before attempting to charge a
17+
* payer. A checkout captures the payment intent, such as the amount, currency, merchant, and
18+
* optional customer or redirect settings, and then moves through its lifecycle as you process it.
19+
* Use this tag to: - create a checkout before collecting or confirming payment details - process
20+
* the checkout with a card, saved card, wallet, or supported alternative payment method - retrieve
21+
* or list checkouts to inspect their current state and associated payment attempts - deactivate a
22+
* checkout that should no longer be used Typical workflow: - create a checkout with the order
23+
* amount, currency, and merchant information - process the checkout through SumUp client tools such
24+
* as the [Payment Widget and Swift Checkout
25+
* SDK](https://developer.sumup.com/online-payments/checkouts) - retrieve the checkout or use the
26+
* Transactions endpoints to inspect the resulting payment record Checkouts are used to initiate and
27+
* orchestrate online payments. Transactions remain the authoritative record of the resulting
28+
* payment outcome.
2029
*/
2130
public final class CheckoutsClient {
2231
private final ApiClient apiClient;
@@ -319,6 +328,51 @@ public java.util.List<com.sumup.sdk.models.CheckoutSuccess> listCheckouts(
319328
requestOptions);
320329
}
321330

331+
/**
332+
* Create an apple pay session.
333+
*
334+
* <p>In order to be able to process a payment via apple pay, you need to create a session first.
335+
* The session will enable you to open the wallet screen for apple pay and retrieve the apple pay
336+
* token.
337+
*
338+
* <p>Operation ID: operation
339+
*
340+
* @param id Unique ID of the checkout resource.
341+
* @param request The data needed to create an apple pay session for a checkout.
342+
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
343+
* request timeout.
344+
* @throws ApiException if the SumUp API returns an error.
345+
*/
346+
public void operation(String id, com.sumup.sdk.models.OperationRequest request)
347+
throws ApiException {
348+
operation(id, request, null);
349+
}
350+
351+
/**
352+
* Create an apple pay session.
353+
*
354+
* <p>In order to be able to process a payment via apple pay, you need to create a session first.
355+
* The session will enable you to open the wallet screen for apple pay and retrieve the apple pay
356+
* token.
357+
*
358+
* <p>Operation ID: operation
359+
*
360+
* @param id Unique ID of the checkout resource.
361+
* @param request The data needed to create an apple pay session for a checkout.
362+
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
363+
* {@code null} to use client defaults.
364+
* @throws ApiException if the SumUp API returns an error.
365+
*/
366+
public void operation(
367+
String id, com.sumup.sdk.models.OperationRequest request, RequestOptions requestOptions)
368+
throws ApiException {
369+
Objects.requireNonNull(id, "id");
370+
String path = "/v0.1/checkouts/{id}/apple-pay-session";
371+
path = path.replace("{id}", ApiClient.urlEncode(String.valueOf(id)));
372+
373+
this.apiClient.send(HttpMethod.PUT, path, null, null, request, null, requestOptions);
374+
}
375+
322376
/**
323377
* Process a checkout
324378
*

src/main/java/com/sumup/sdk/clients/PayoutsAsyncClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public PayoutsAsyncClient(ApiClient apiClient) {
3333
/**
3434
* List payouts
3535
*
36-
* <p>Lists ordered payouts for the merchant profile.
36+
* <p>Lists ordered payouts for the merchant account.
3737
*
3838
* <p>Operation ID: ListPayouts
3939
*
@@ -52,7 +52,7 @@ public CompletableFuture<com.sumup.sdk.models.FinancialPayouts> listPayouts(
5252
/**
5353
* List payouts
5454
*
55-
* <p>Lists ordered payouts for the merchant profile.
55+
* <p>Lists ordered payouts for the merchant account.
5656
*
5757
* <p>Operation ID: ListPayouts
5858
*
@@ -75,7 +75,7 @@ public CompletableFuture<com.sumup.sdk.models.FinancialPayouts> listPayouts(
7575
/**
7676
* List payouts
7777
*
78-
* <p>Lists ordered payouts for the merchant profile.
78+
* <p>Lists ordered payouts for the merchant account.
7979
*
8080
* <p>Operation ID: ListPayouts
8181
*
@@ -116,7 +116,7 @@ public CompletableFuture<com.sumup.sdk.models.FinancialPayouts> listPayouts(
116116
/**
117117
* List payouts
118118
*
119-
* <p>Lists ordered payouts for the merchant profile.
119+
* <p>Lists ordered payouts for the merchant account.
120120
*
121121
* <p>Operation ID: ListPayoutsV1
122122
*
@@ -137,7 +137,7 @@ public CompletableFuture<com.sumup.sdk.models.FinancialPayouts> listPayoutsV1(
137137
/**
138138
* List payouts
139139
*
140-
* <p>Lists ordered payouts for the merchant profile.
140+
* <p>Lists ordered payouts for the merchant account.
141141
*
142142
* <p>Operation ID: ListPayoutsV1
143143
*
@@ -162,7 +162,7 @@ public CompletableFuture<com.sumup.sdk.models.FinancialPayouts> listPayoutsV1(
162162
/**
163163
* List payouts
164164
*
165-
* <p>Lists ordered payouts for the merchant profile.
165+
* <p>Lists ordered payouts for the merchant account.
166166
*
167167
* <p>Operation ID: ListPayoutsV1
168168
*

src/main/java/com/sumup/sdk/clients/PayoutsClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public PayoutsClient(ApiClient apiClient) {
3232
/**
3333
* List payouts
3434
*
35-
* <p>Lists ordered payouts for the merchant profile.
35+
* <p>Lists ordered payouts for the merchant account.
3636
*
3737
* <p>Operation ID: ListPayouts
3838
*
@@ -51,7 +51,7 @@ public com.sumup.sdk.models.FinancialPayouts listPayouts(
5151
/**
5252
* List payouts
5353
*
54-
* <p>Lists ordered payouts for the merchant profile.
54+
* <p>Lists ordered payouts for the merchant account.
5555
*
5656
* <p>Operation ID: ListPayouts
5757
*
@@ -74,7 +74,7 @@ public com.sumup.sdk.models.FinancialPayouts listPayouts(
7474
/**
7575
* List payouts
7676
*
77-
* <p>Lists ordered payouts for the merchant profile.
77+
* <p>Lists ordered payouts for the merchant account.
7878
*
7979
* <p>Operation ID: ListPayouts
8080
*
@@ -115,7 +115,7 @@ public com.sumup.sdk.models.FinancialPayouts listPayouts(
115115
/**
116116
* List payouts
117117
*
118-
* <p>Lists ordered payouts for the merchant profile.
118+
* <p>Lists ordered payouts for the merchant account.
119119
*
120120
* <p>Operation ID: ListPayoutsV1
121121
*
@@ -136,7 +136,7 @@ public com.sumup.sdk.models.FinancialPayouts listPayoutsV1(
136136
/**
137137
* List payouts
138138
*
139-
* <p>Lists ordered payouts for the merchant profile.
139+
* <p>Lists ordered payouts for the merchant account.
140140
*
141141
* <p>Operation ID: ListPayoutsV1
142142
*
@@ -161,7 +161,7 @@ public com.sumup.sdk.models.FinancialPayouts listPayoutsV1(
161161
/**
162162
* List payouts
163163
*
164-
* <p>Lists ordered payouts for the merchant profile.
164+
* <p>Lists ordered payouts for the merchant account.
165165
*
166166
* <p>Operation ID: ListPayoutsV1
167167
*

src/main/java/com/sumup/sdk/clients/TransactionsAsyncClient.java

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,22 @@
1414
/**
1515
* Client for the "Transactions" API group.
1616
*
17-
* <p>Retrieve details for a specific transaction by it’s `id` or any other required query
18-
* parameter, or list all transactions related to the merchant account.
17+
* <p>Transactions represent completed or attempted payment operations processed for a merchant
18+
* account. A transaction contains the core payment result, such as the amount, currency, payment
19+
* method, creation time, and current high-level status. In addition to the main payment outcome, a
20+
* transaction can contain related events that describe what happened after the original payment
21+
* attempt. These events provide visibility into the financial lifecycle of the transaction, for
22+
* example: - `PAYOUT`: the payment being prepared for payout or included in a payout to the
23+
* merchant - `REFUND`: money returned to the payer - `CHARGE_BACK`: money reversed after the
24+
* original payment - `PAYOUT_DEDUCTION`: an amount deducted from a payout to cover a refund or
25+
* chargeback From an integrator's perspective, transactions are the authoritative record of payment
26+
* outcomes. Use this tag to: - list transactions for reporting, reconciliation, and customer
27+
* support workflows - retrieve a single transaction when you need the latest payment details -
28+
* inspect `simple_status` for the current merchant-facing outcome of the payment - inspect `events`
29+
* or `transaction_events` when you need refund, payout, or chargeback history Typical workflow: -
30+
* create and process payments through the Checkouts endpoints - use the Transactions endpoints to
31+
* read the resulting payment records - use the returned statuses and events to update your own
32+
* order, accounting, or support systems
1933
*/
2034
public final class TransactionsAsyncClient {
2135
private final ApiClient apiClient;
@@ -33,8 +47,8 @@ public TransactionsAsyncClient(ApiClient apiClient) {
3347
* Retrieve a transaction
3448
*
3549
* <p>Retrieves the full details of an identified transaction. The transaction resource is
36-
* identified by a query parameter and *one* of following parameters is required: * `id` *
37-
* `internal_id` * `transaction_code` * `foreign_transaction_id` * `client_transaction_id`
50+
* identified by a query parameter and *one* of following parameters is required: - `id` -
51+
* `internal_id` - `transaction_code` - `foreign_transaction_id` - `client_transaction_id`
3852
*
3953
* <p>Operation ID: GetTransaction
4054
*
@@ -53,8 +67,8 @@ public CompletableFuture<com.sumup.sdk.models.TransactionFull> getTransaction()
5367
* Retrieve a transaction
5468
*
5569
* <p>Retrieves the full details of an identified transaction. The transaction resource is
56-
* identified by a query parameter and *one* of following parameters is required: * `id` *
57-
* `internal_id` * `transaction_code` * `foreign_transaction_id` * `client_transaction_id`
70+
* identified by a query parameter and *one* of following parameters is required: - `id` -
71+
* `internal_id` - `transaction_code` - `foreign_transaction_id` - `client_transaction_id`
5872
*
5973
* <p>Operation ID: GetTransaction
6074
*
@@ -73,8 +87,8 @@ public CompletableFuture<com.sumup.sdk.models.TransactionFull> getTransaction(
7387
* Retrieve a transaction
7488
*
7589
* <p>Retrieves the full details of an identified transaction. The transaction resource is
76-
* identified by a query parameter and *one* of following parameters is required: * `id` *
77-
* `internal_id` * `transaction_code` * `foreign_transaction_id` * `client_transaction_id`
90+
* identified by a query parameter and *one* of following parameters is required: - `id` -
91+
* `internal_id` - `transaction_code` - `foreign_transaction_id` - `client_transaction_id`
7892
*
7993
* <p>Operation ID: GetTransaction
8094
*
@@ -106,8 +120,8 @@ public CompletableFuture<com.sumup.sdk.models.TransactionFull> getTransaction(
106120
* Retrieve a transaction
107121
*
108122
* <p>Retrieves the full details of an identified transaction. The transaction resource is
109-
* identified by a query parameter and *one* of following parameters is required: * `id` *
110-
* `internal_id` * `transaction_code` * `foreign_transaction_id` * `client_transaction_id`
123+
* identified by a query parameter and *one* of following parameters is required: - `id` -
124+
* `internal_id` - `transaction_code` - `foreign_transaction_id` - `client_transaction_id`
111125
*
112126
* <p>Operation ID: GetTransactionV2.1
113127
*
@@ -126,8 +140,8 @@ public CompletableFuture<com.sumup.sdk.models.TransactionFull> getTransactionV21
126140
* Retrieve a transaction
127141
*
128142
* <p>Retrieves the full details of an identified transaction. The transaction resource is
129-
* identified by a query parameter and *one* of following parameters is required: * `id` *
130-
* `internal_id` * `transaction_code` * `foreign_transaction_id` * `client_transaction_id`
143+
* identified by a query parameter and *one* of following parameters is required: - `id` -
144+
* `internal_id` - `transaction_code` - `foreign_transaction_id` - `client_transaction_id`
131145
*
132146
* <p>Operation ID: GetTransactionV2.1
133147
*
@@ -147,8 +161,8 @@ public CompletableFuture<com.sumup.sdk.models.TransactionFull> getTransactionV21
147161
* Retrieve a transaction
148162
*
149163
* <p>Retrieves the full details of an identified transaction. The transaction resource is
150-
* identified by a query parameter and *one* of following parameters is required: * `id` *
151-
* `internal_id` * `transaction_code` * `foreign_transaction_id` * `client_transaction_id`
164+
* identified by a query parameter and *one* of following parameters is required: - `id` -
165+
* `internal_id` - `transaction_code` - `foreign_transaction_id` - `client_transaction_id`
152166
*
153167
* <p>Operation ID: GetTransactionV2.1
154168
*

0 commit comments

Comments
 (0)