Skip to content

Commit 4427234

Browse files
chore: generate code
1 parent 4c5dd07 commit 4427234

6 files changed

Lines changed: 127 additions & 103 deletions

File tree

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

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,17 @@ public CompletableFuture<com.sumup.sdk.models.Checkout> create(
108108
*
109109
* <p>Operation ID: CreateApplePaySession
110110
*
111-
* @param id Unique ID of the checkout resource.
111+
* @param checkoutId Unique ID of the checkout resource.
112112
* @param request The data needed to create an apple pay session for a checkout.
113113
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
114114
* request timeout.
115115
* @return CompletableFuture resolved with {@code java.util.Map<String, Object>} parsed response.
116116
* @throws ApiException if the SumUp API returns an error.
117117
*/
118118
public CompletableFuture<java.util.Map<String, Object>> createApplePaySession(
119-
String id, com.sumup.sdk.models.CreateApplePaySessionRequest request) throws ApiException {
120-
return createApplePaySession(id, request, null);
119+
String checkoutId, com.sumup.sdk.models.CreateApplePaySessionRequest request)
120+
throws ApiException {
121+
return createApplePaySession(checkoutId, request, null);
121122
}
122123

123124
/**
@@ -131,21 +132,21 @@ public CompletableFuture<java.util.Map<String, Object>> createApplePaySession(
131132
*
132133
* <p>Operation ID: CreateApplePaySession
133134
*
134-
* @param id Unique ID of the checkout resource.
135+
* @param checkoutId Unique ID of the checkout resource.
135136
* @param request The data needed to create an apple pay session for a checkout.
136137
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
137138
* {@code null} to use client defaults.
138139
* @return CompletableFuture resolved with {@code java.util.Map<String, Object>} parsed response.
139140
* @throws ApiException if the SumUp API returns an error.
140141
*/
141142
public CompletableFuture<java.util.Map<String, Object>> createApplePaySession(
142-
String id,
143+
String checkoutId,
143144
com.sumup.sdk.models.CreateApplePaySessionRequest request,
144145
RequestOptions requestOptions)
145146
throws ApiException {
146-
Objects.requireNonNull(id, "id");
147-
String path = "/v0.2/checkouts/{id}/apple-pay-session";
148-
path = path.replace("{id}", ApiClient.urlEncode(ApiClient.parameterValue(id)));
147+
Objects.requireNonNull(checkoutId, "checkoutId");
148+
String path = "/v0.2/checkouts/{checkout_id}/apple-pay-session";
149+
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));
149150

150151
return this.apiClient.sendAsync(
151152
HttpMethod.PUT,
@@ -165,15 +166,15 @@ public CompletableFuture<java.util.Map<String, Object>> createApplePaySession(
165166
*
166167
* <p>Operation ID: DeactivateCheckout
167168
*
168-
* @param id Unique ID of the checkout resource.
169+
* @param checkoutId Unique ID of the checkout resource.
169170
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
170171
* request timeout.
171172
* @return CompletableFuture resolved with com.sumup.sdk.models.Checkout parsed response.
172173
* @throws ApiException if the SumUp API returns an error.
173174
*/
174-
public CompletableFuture<com.sumup.sdk.models.Checkout> deactivate(String id)
175+
public CompletableFuture<com.sumup.sdk.models.Checkout> deactivate(String checkoutId)
175176
throws ApiException {
176-
return deactivate(id, null);
177+
return deactivate(checkoutId, null);
177178
}
178179

179180
/**
@@ -184,17 +185,17 @@ public CompletableFuture<com.sumup.sdk.models.Checkout> deactivate(String id)
184185
*
185186
* <p>Operation ID: DeactivateCheckout
186187
*
187-
* @param id Unique ID of the checkout resource.
188+
* @param checkoutId Unique ID of the checkout resource.
188189
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
189190
* {@code null} to use client defaults.
190191
* @return CompletableFuture resolved with com.sumup.sdk.models.Checkout parsed response.
191192
* @throws ApiException if the SumUp API returns an error.
192193
*/
193194
public CompletableFuture<com.sumup.sdk.models.Checkout> deactivate(
194-
String id, RequestOptions requestOptions) throws ApiException {
195-
Objects.requireNonNull(id, "id");
196-
String path = "/v0.1/checkouts/{id}";
197-
path = path.replace("{id}", ApiClient.urlEncode(ApiClient.parameterValue(id)));
195+
String checkoutId, RequestOptions requestOptions) throws ApiException {
196+
Objects.requireNonNull(checkoutId, "checkoutId");
197+
String path = "/v0.1/checkouts/{checkout_id}";
198+
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));
198199

199200
return this.apiClient.sendAsync(
200201
HttpMethod.DELETE,
@@ -214,15 +215,15 @@ public CompletableFuture<com.sumup.sdk.models.Checkout> deactivate(
214215
*
215216
* <p>Operation ID: GetCheckout
216217
*
217-
* @param id Unique ID of the checkout resource.
218+
* @param checkoutId Unique ID of the checkout resource.
218219
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
219220
* request timeout.
220221
* @return CompletableFuture resolved with com.sumup.sdk.models.CheckoutSuccess parsed response.
221222
* @throws ApiException if the SumUp API returns an error.
222223
*/
223-
public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> get(String id)
224+
public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> get(String checkoutId)
224225
throws ApiException {
225-
return get(id, null);
226+
return get(checkoutId, null);
226227
}
227228

228229
/**
@@ -233,17 +234,17 @@ public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> get(String id)
233234
*
234235
* <p>Operation ID: GetCheckout
235236
*
236-
* @param id Unique ID of the checkout resource.
237+
* @param checkoutId Unique ID of the checkout resource.
237238
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
238239
* {@code null} to use client defaults.
239240
* @return CompletableFuture resolved with com.sumup.sdk.models.CheckoutSuccess parsed response.
240241
* @throws ApiException if the SumUp API returns an error.
241242
*/
242243
public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> get(
243-
String id, RequestOptions requestOptions) throws ApiException {
244-
Objects.requireNonNull(id, "id");
245-
String path = "/v0.1/checkouts/{id}";
246-
path = path.replace("{id}", ApiClient.urlEncode(ApiClient.parameterValue(id)));
244+
String checkoutId, RequestOptions requestOptions) throws ApiException {
245+
Objects.requireNonNull(checkoutId, "checkoutId");
246+
String path = "/v0.1/checkouts/{checkout_id}";
247+
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));
247248

248249
return this.apiClient.sendAsync(
249250
HttpMethod.GET,
@@ -415,16 +416,16 @@ public CompletableFuture<java.util.List<com.sumup.sdk.models.CheckoutSuccess>> l
415416
*
416417
* <p>Operation ID: ProcessCheckout
417418
*
418-
* @param id Unique ID of the checkout resource.
419+
* @param checkoutId Unique ID of the checkout resource.
419420
* @param request Details of the payment instrument for processing the checkout.
420421
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
421422
* request timeout.
422423
* @return CompletableFuture resolved with com.sumup.sdk.models.CheckoutSuccess parsed response.
423424
* @throws ApiException if the SumUp API returns an error.
424425
*/
425426
public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> process(
426-
String id, com.sumup.sdk.models.ProcessCheckout request) throws ApiException {
427-
return process(id, request, null);
427+
String checkoutId, com.sumup.sdk.models.ProcessCheckout request) throws ApiException {
428+
return process(checkoutId, request, null);
428429
}
429430

430431
/**
@@ -436,20 +437,22 @@ public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> process(
436437
*
437438
* <p>Operation ID: ProcessCheckout
438439
*
439-
* @param id Unique ID of the checkout resource.
440+
* @param checkoutId Unique ID of the checkout resource.
440441
* @param request Details of the payment instrument for processing the checkout.
441442
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
442443
* {@code null} to use client defaults.
443444
* @return CompletableFuture resolved with com.sumup.sdk.models.CheckoutSuccess parsed response.
444445
* @throws ApiException if the SumUp API returns an error.
445446
*/
446447
public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> process(
447-
String id, com.sumup.sdk.models.ProcessCheckout request, RequestOptions requestOptions)
448+
String checkoutId,
449+
com.sumup.sdk.models.ProcessCheckout request,
450+
RequestOptions requestOptions)
448451
throws ApiException {
449-
Objects.requireNonNull(id, "id");
452+
Objects.requireNonNull(checkoutId, "checkoutId");
450453
Objects.requireNonNull(request, "request");
451-
String path = "/v0.1/checkouts/{id}";
452-
path = path.replace("{id}", ApiClient.urlEncode(ApiClient.parameterValue(id)));
454+
String path = "/v0.1/checkouts/{checkout_id}";
455+
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));
453456

454457
return this.apiClient.sendAsync(
455458
HttpMethod.PUT,

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

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,17 @@ public com.sumup.sdk.models.Checkout create(
107107
*
108108
* <p>Operation ID: CreateApplePaySession
109109
*
110-
* @param id Unique ID of the checkout resource.
110+
* @param checkoutId Unique ID of the checkout resource.
111111
* @param request The data needed to create an apple pay session for a checkout.
112112
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
113113
* request timeout.
114114
* @return {@code java.util.Map<String, Object>} parsed response.
115115
* @throws ApiException if the SumUp API returns an error.
116116
*/
117117
public java.util.Map<String, Object> createApplePaySession(
118-
String id, com.sumup.sdk.models.CreateApplePaySessionRequest request) throws ApiException {
119-
return createApplePaySession(id, request, null);
118+
String checkoutId, com.sumup.sdk.models.CreateApplePaySessionRequest request)
119+
throws ApiException {
120+
return createApplePaySession(checkoutId, request, null);
120121
}
121122

122123
/**
@@ -130,21 +131,21 @@ public java.util.Map<String, Object> createApplePaySession(
130131
*
131132
* <p>Operation ID: CreateApplePaySession
132133
*
133-
* @param id Unique ID of the checkout resource.
134+
* @param checkoutId Unique ID of the checkout resource.
134135
* @param request The data needed to create an apple pay session for a checkout.
135136
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
136137
* {@code null} to use client defaults.
137138
* @return {@code java.util.Map<String, Object>} parsed response.
138139
* @throws ApiException if the SumUp API returns an error.
139140
*/
140141
public java.util.Map<String, Object> createApplePaySession(
141-
String id,
142+
String checkoutId,
142143
com.sumup.sdk.models.CreateApplePaySessionRequest request,
143144
RequestOptions requestOptions)
144145
throws ApiException {
145-
Objects.requireNonNull(id, "id");
146-
String path = "/v0.2/checkouts/{id}/apple-pay-session";
147-
path = path.replace("{id}", ApiClient.urlEncode(ApiClient.parameterValue(id)));
146+
Objects.requireNonNull(checkoutId, "checkoutId");
147+
String path = "/v0.2/checkouts/{checkout_id}/apple-pay-session";
148+
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));
148149

149150
return this.apiClient.send(
150151
HttpMethod.PUT,
@@ -164,14 +165,14 @@ public java.util.Map<String, Object> createApplePaySession(
164165
*
165166
* <p>Operation ID: DeactivateCheckout
166167
*
167-
* @param id Unique ID of the checkout resource.
168+
* @param checkoutId Unique ID of the checkout resource.
168169
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
169170
* request timeout.
170171
* @return com.sumup.sdk.models.Checkout parsed response.
171172
* @throws ApiException if the SumUp API returns an error.
172173
*/
173-
public com.sumup.sdk.models.Checkout deactivate(String id) throws ApiException {
174-
return deactivate(id, null);
174+
public com.sumup.sdk.models.Checkout deactivate(String checkoutId) throws ApiException {
175+
return deactivate(checkoutId, null);
175176
}
176177

177178
/**
@@ -182,17 +183,17 @@ public com.sumup.sdk.models.Checkout deactivate(String id) throws ApiException {
182183
*
183184
* <p>Operation ID: DeactivateCheckout
184185
*
185-
* @param id Unique ID of the checkout resource.
186+
* @param checkoutId Unique ID of the checkout resource.
186187
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
187188
* {@code null} to use client defaults.
188189
* @return com.sumup.sdk.models.Checkout parsed response.
189190
* @throws ApiException if the SumUp API returns an error.
190191
*/
191-
public com.sumup.sdk.models.Checkout deactivate(String id, RequestOptions requestOptions)
192+
public com.sumup.sdk.models.Checkout deactivate(String checkoutId, RequestOptions requestOptions)
192193
throws ApiException {
193-
Objects.requireNonNull(id, "id");
194-
String path = "/v0.1/checkouts/{id}";
195-
path = path.replace("{id}", ApiClient.urlEncode(ApiClient.parameterValue(id)));
194+
Objects.requireNonNull(checkoutId, "checkoutId");
195+
String path = "/v0.1/checkouts/{checkout_id}";
196+
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));
196197

197198
return this.apiClient.send(
198199
HttpMethod.DELETE,
@@ -212,14 +213,14 @@ public com.sumup.sdk.models.Checkout deactivate(String id, RequestOptions reques
212213
*
213214
* <p>Operation ID: GetCheckout
214215
*
215-
* @param id Unique ID of the checkout resource.
216+
* @param checkoutId Unique ID of the checkout resource.
216217
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
217218
* request timeout.
218219
* @return com.sumup.sdk.models.CheckoutSuccess parsed response.
219220
* @throws ApiException if the SumUp API returns an error.
220221
*/
221-
public com.sumup.sdk.models.CheckoutSuccess get(String id) throws ApiException {
222-
return get(id, null);
222+
public com.sumup.sdk.models.CheckoutSuccess get(String checkoutId) throws ApiException {
223+
return get(checkoutId, null);
223224
}
224225

225226
/**
@@ -230,17 +231,17 @@ public com.sumup.sdk.models.CheckoutSuccess get(String id) throws ApiException {
230231
*
231232
* <p>Operation ID: GetCheckout
232233
*
233-
* @param id Unique ID of the checkout resource.
234+
* @param checkoutId Unique ID of the checkout resource.
234235
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
235236
* {@code null} to use client defaults.
236237
* @return com.sumup.sdk.models.CheckoutSuccess parsed response.
237238
* @throws ApiException if the SumUp API returns an error.
238239
*/
239-
public com.sumup.sdk.models.CheckoutSuccess get(String id, RequestOptions requestOptions)
240+
public com.sumup.sdk.models.CheckoutSuccess get(String checkoutId, RequestOptions requestOptions)
240241
throws ApiException {
241-
Objects.requireNonNull(id, "id");
242-
String path = "/v0.1/checkouts/{id}";
243-
path = path.replace("{id}", ApiClient.urlEncode(ApiClient.parameterValue(id)));
242+
Objects.requireNonNull(checkoutId, "checkoutId");
243+
String path = "/v0.1/checkouts/{checkout_id}";
244+
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));
244245

245246
return this.apiClient.send(
246247
HttpMethod.GET,
@@ -403,16 +404,16 @@ public com.sumup.sdk.models.GetPaymentMethodsResponse listAvailablePaymentMethod
403404
*
404405
* <p>Operation ID: ProcessCheckout
405406
*
406-
* @param id Unique ID of the checkout resource.
407+
* @param checkoutId Unique ID of the checkout resource.
407408
* @param request Details of the payment instrument for processing the checkout.
408409
* <p>Call the overload that accepts RequestOptions to customize headers, authorization, or
409410
* request timeout.
410411
* @return com.sumup.sdk.models.CheckoutSuccess parsed response.
411412
* @throws ApiException if the SumUp API returns an error.
412413
*/
413414
public com.sumup.sdk.models.CheckoutSuccess process(
414-
String id, com.sumup.sdk.models.ProcessCheckout request) throws ApiException {
415-
return process(id, request, null);
415+
String checkoutId, com.sumup.sdk.models.ProcessCheckout request) throws ApiException {
416+
return process(checkoutId, request, null);
416417
}
417418

418419
/**
@@ -424,20 +425,22 @@ public com.sumup.sdk.models.CheckoutSuccess process(
424425
*
425426
* <p>Operation ID: ProcessCheckout
426427
*
427-
* @param id Unique ID of the checkout resource.
428+
* @param checkoutId Unique ID of the checkout resource.
428429
* @param request Details of the payment instrument for processing the checkout.
429430
* @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass
430431
* {@code null} to use client defaults.
431432
* @return com.sumup.sdk.models.CheckoutSuccess parsed response.
432433
* @throws ApiException if the SumUp API returns an error.
433434
*/
434435
public com.sumup.sdk.models.CheckoutSuccess process(
435-
String id, com.sumup.sdk.models.ProcessCheckout request, RequestOptions requestOptions)
436+
String checkoutId,
437+
com.sumup.sdk.models.ProcessCheckout request,
438+
RequestOptions requestOptions)
436439
throws ApiException {
437-
Objects.requireNonNull(id, "id");
440+
Objects.requireNonNull(checkoutId, "checkoutId");
438441
Objects.requireNonNull(request, "request");
439-
String path = "/v0.1/checkouts/{id}";
440-
path = path.replace("{id}", ApiClient.urlEncode(ApiClient.parameterValue(id)));
442+
String path = "/v0.1/checkouts/{checkout_id}";
443+
path = path.replace("{checkout_id}", ApiClient.urlEncode(ApiClient.parameterValue(checkoutId)));
441444

442445
return this.apiClient.send(
443446
HttpMethod.PUT,

0 commit comments

Comments
 (0)