Skip to content

Commit 06f594d

Browse files
committed
chore: remove unused queryParams and headerParams
1 parent 002136a commit 06f594d

26 files changed

+0
-178
lines changed

codegen/internal/generator/templates/client.tmpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ public final class {{ .ClassName }} {
169169
queryParams.putAll({{ .QueryStruct.VarName }}.toMap());
170170
}
171171
{{- end }}
172-
{{- else }}
173-
Map<String, Object> queryParams = null;
174172
{{- end }}
175173

176174
{{- if or .RequiredHeaderParams .HeaderStruct }}
@@ -183,8 +181,6 @@ public final class {{ .ClassName }} {
183181
headerParams.putAll({{ .HeaderStruct.VarName }}.toMap());
184182
}
185183
{{- end }}
186-
{{- else }}
187-
Map<String, String> headerParams = null;
188184
{{- end }}
189185

190186
{{ if not .ReturnsVoid }}return {{ end }}this.apiClient.send(

codegen/internal/generator/templates/client_async.tmpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ public final class {{ .ClassName }} {
171171
queryParams.putAll({{ .QueryStruct.VarName }}.toMap());
172172
}
173173
{{- end }}
174-
{{- else }}
175-
Map<String, Object> queryParams = null;
176174
{{- end }}
177175

178176
{{- if or .RequiredHeaderParams .HeaderStruct }}
@@ -185,8 +183,6 @@ public final class {{ .ClassName }} {
185183
headerParams.putAll({{ .HeaderStruct.VarName }}.toMap());
186184
}
187185
{{- end }}
188-
{{- else }}
189-
Map<String, String> headerParams = null;
190186
{{- end }}
191187

192188
return this.apiClient.sendAsync(

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ public CompletableFuture<com.sumup.sdk.models.Checkout> createCheckout(
6666
throws ApiException {
6767
Objects.requireNonNull(request, "request");
6868
String path = "/v0.1/checkouts";
69-
Map<String, Object> queryParams = null;
70-
Map<String, String> headerParams = null;
7169

7270
return this.apiClient.sendAsync(
7371
HttpMethod.POST,
@@ -117,8 +115,6 @@ public CompletableFuture<com.sumup.sdk.models.Checkout> deactivateCheckout(
117115
Objects.requireNonNull(id, "id");
118116
String path = "/v0.1/checkouts/{id}";
119117
path = path.replace("{id}", ApiClient.urlEncode(String.valueOf(id)));
120-
Map<String, Object> queryParams = null;
121-
Map<String, String> headerParams = null;
122118

123119
return this.apiClient.sendAsync(
124120
HttpMethod.DELETE,
@@ -168,8 +164,6 @@ public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> getCheckout(
168164
Objects.requireNonNull(id, "id");
169165
String path = "/v0.1/checkouts/{id}";
170166
path = path.replace("{id}", ApiClient.urlEncode(String.valueOf(id)));
171-
Map<String, Object> queryParams = null;
172-
Map<String, String> headerParams = null;
173167

174168
return this.apiClient.sendAsync(
175169
HttpMethod.GET,
@@ -247,7 +241,6 @@ public CompletableFuture<com.sumup.sdk.models.GetPaymentMethodsResponse> getPaym
247241
if (getPaymentMethods != null) {
248242
queryParams.putAll(getPaymentMethods.toMap());
249243
}
250-
Map<String, String> headerParams = null;
251244

252245
return this.apiClient.sendAsync(
253246
HttpMethod.GET,
@@ -318,7 +311,6 @@ public CompletableFuture<java.util.List<com.sumup.sdk.models.CheckoutSuccess>> l
318311
if (listCheckouts != null) {
319312
queryParams.putAll(listCheckouts.toMap());
320313
}
321-
Map<String, String> headerParams = null;
322314

323315
return this.apiClient.sendAsync(
324316
HttpMethod.GET,
@@ -374,8 +366,6 @@ public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess> processCheckout(
374366
Objects.requireNonNull(request, "request");
375367
String path = "/v0.1/checkouts/{id}";
376368
path = path.replace("{id}", ApiClient.urlEncode(String.valueOf(id)));
377-
Map<String, Object> queryParams = null;
378-
Map<String, String> headerParams = null;
379369

380370
return this.apiClient.sendAsync(
381371
HttpMethod.PUT,

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ public com.sumup.sdk.models.Checkout createCheckout(
6565
throws ApiException {
6666
Objects.requireNonNull(request, "request");
6767
String path = "/v0.1/checkouts";
68-
Map<String, Object> queryParams = null;
69-
Map<String, String> headerParams = null;
7068

7169
return this.apiClient.send(
7270
HttpMethod.POST,
@@ -115,8 +113,6 @@ public com.sumup.sdk.models.Checkout deactivateCheckout(String id, RequestOption
115113
Objects.requireNonNull(id, "id");
116114
String path = "/v0.1/checkouts/{id}";
117115
path = path.replace("{id}", ApiClient.urlEncode(String.valueOf(id)));
118-
Map<String, Object> queryParams = null;
119-
Map<String, String> headerParams = null;
120116

121117
return this.apiClient.send(
122118
HttpMethod.DELETE,
@@ -165,8 +161,6 @@ public com.sumup.sdk.models.CheckoutSuccess getCheckout(String id, RequestOption
165161
Objects.requireNonNull(id, "id");
166162
String path = "/v0.1/checkouts/{id}";
167163
path = path.replace("{id}", ApiClient.urlEncode(String.valueOf(id)));
168-
Map<String, Object> queryParams = null;
169-
Map<String, String> headerParams = null;
170164

171165
return this.apiClient.send(
172166
HttpMethod.GET,
@@ -241,7 +235,6 @@ public com.sumup.sdk.models.GetPaymentMethodsResponse getPaymentMethods(
241235
if (getPaymentMethods != null) {
242236
queryParams.putAll(getPaymentMethods.toMap());
243237
}
244-
Map<String, String> headerParams = null;
245238

246239
return this.apiClient.send(
247240
HttpMethod.GET,
@@ -308,7 +301,6 @@ public java.util.List<com.sumup.sdk.models.CheckoutSuccess> listCheckouts(
308301
if (listCheckouts != null) {
309302
queryParams.putAll(listCheckouts.toMap());
310303
}
311-
Map<String, String> headerParams = null;
312304

313305
return this.apiClient.send(
314306
HttpMethod.GET,
@@ -364,8 +356,6 @@ public com.sumup.sdk.models.CheckoutSuccess processCheckout(
364356
Objects.requireNonNull(request, "request");
365357
String path = "/v0.1/checkouts/{id}";
366358
path = path.replace("{id}", ApiClient.urlEncode(String.valueOf(id)));
367-
Map<String, Object> queryParams = null;
368-
Map<String, String> headerParams = null;
369359

370360
return this.apiClient.send(
371361
HttpMethod.PUT,

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.sumup.sdk.core.ApiException;
77
import com.sumup.sdk.core.HttpMethod;
88
import com.sumup.sdk.core.RequestOptions;
9-
import java.util.Map;
109
import java.util.Objects;
1110
import java.util.concurrent.CompletableFuture;
1211

@@ -60,8 +59,6 @@ public CompletableFuture<com.sumup.sdk.models.Customer> createCustomer(
6059
com.sumup.sdk.models.Customer request, RequestOptions requestOptions) throws ApiException {
6160
Objects.requireNonNull(request, "request");
6261
String path = "/v0.1/customers";
63-
Map<String, Object> queryParams = null;
64-
Map<String, String> headerParams = null;
6562

6663
return this.apiClient.sendAsync(
6764
HttpMethod.POST,
@@ -113,8 +110,6 @@ public CompletableFuture<Void> deactivatePaymentInstrument(
113110
String path = "/v0.1/customers/{customer_id}/payment-instruments/{token}";
114111
path = path.replace("{customer_id}", ApiClient.urlEncode(String.valueOf(customerId)));
115112
path = path.replace("{token}", ApiClient.urlEncode(String.valueOf(token)));
116-
Map<String, Object> queryParams = null;
117-
Map<String, String> headerParams = null;
118113

119114
return this.apiClient.sendAsync(
120115
HttpMethod.DELETE, path, null, null, null, null, requestOptions);
@@ -158,8 +153,6 @@ public CompletableFuture<com.sumup.sdk.models.Customer> getCustomer(
158153
Objects.requireNonNull(customerId, "customerId");
159154
String path = "/v0.1/customers/{customer_id}";
160155
path = path.replace("{customer_id}", ApiClient.urlEncode(String.valueOf(customerId)));
161-
Map<String, Object> queryParams = null;
162-
Map<String, String> headerParams = null;
163156

164157
return this.apiClient.sendAsync(
165158
HttpMethod.GET,
@@ -209,8 +202,6 @@ public CompletableFuture<com.sumup.sdk.models.Customer> getCustomer(
209202
Objects.requireNonNull(customerId, "customerId");
210203
String path = "/v0.1/customers/{customer_id}/payment-instruments";
211204
path = path.replace("{customer_id}", ApiClient.urlEncode(String.valueOf(customerId)));
212-
Map<String, Object> queryParams = null;
213-
Map<String, String> headerParams = null;
214205

215206
return this.apiClient.sendAsync(
216207
HttpMethod.GET,
@@ -268,8 +259,6 @@ public CompletableFuture<com.sumup.sdk.models.Customer> updateCustomer(
268259
Objects.requireNonNull(request, "request");
269260
String path = "/v0.1/customers/{customer_id}";
270261
path = path.replace("{customer_id}", ApiClient.urlEncode(String.valueOf(customerId)));
271-
Map<String, Object> queryParams = null;
272-
Map<String, String> headerParams = null;
273262

274263
return this.apiClient.sendAsync(
275264
HttpMethod.PUT,

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.sumup.sdk.core.ApiException;
77
import com.sumup.sdk.core.HttpMethod;
88
import com.sumup.sdk.core.RequestOptions;
9-
import java.util.Map;
109
import java.util.Objects;
1110

1211
/** Client for the "Customers" API group. */
@@ -59,8 +58,6 @@ public com.sumup.sdk.models.Customer createCustomer(
5958
com.sumup.sdk.models.Customer request, RequestOptions requestOptions) throws ApiException {
6059
Objects.requireNonNull(request, "request");
6160
String path = "/v0.1/customers";
62-
Map<String, Object> queryParams = null;
63-
Map<String, String> headerParams = null;
6461

6562
return this.apiClient.send(
6663
HttpMethod.POST,
@@ -109,8 +106,6 @@ public void deactivatePaymentInstrument(
109106
String path = "/v0.1/customers/{customer_id}/payment-instruments/{token}";
110107
path = path.replace("{customer_id}", ApiClient.urlEncode(String.valueOf(customerId)));
111108
path = path.replace("{token}", ApiClient.urlEncode(String.valueOf(token)));
112-
Map<String, Object> queryParams = null;
113-
Map<String, String> headerParams = null;
114109

115110
this.apiClient.send(HttpMethod.DELETE, path, null, null, null, null, requestOptions);
116111
}
@@ -152,8 +147,6 @@ public com.sumup.sdk.models.Customer getCustomer(String customerId, RequestOptio
152147
Objects.requireNonNull(customerId, "customerId");
153148
String path = "/v0.1/customers/{customer_id}";
154149
path = path.replace("{customer_id}", ApiClient.urlEncode(String.valueOf(customerId)));
155-
Map<String, Object> queryParams = null;
156-
Map<String, String> headerParams = null;
157150

158151
return this.apiClient.send(
159152
HttpMethod.GET,
@@ -201,8 +194,6 @@ public java.util.List<com.sumup.sdk.models.PaymentInstrumentResponse> listPaymen
201194
Objects.requireNonNull(customerId, "customerId");
202195
String path = "/v0.1/customers/{customer_id}/payment-instruments";
203196
path = path.replace("{customer_id}", ApiClient.urlEncode(String.valueOf(customerId)));
204-
Map<String, Object> queryParams = null;
205-
Map<String, String> headerParams = null;
206197

207198
return this.apiClient.send(
208199
HttpMethod.GET,
@@ -260,8 +251,6 @@ public com.sumup.sdk.models.Customer updateCustomer(
260251
Objects.requireNonNull(request, "request");
261252
String path = "/v0.1/customers/{customer_id}";
262253
path = path.replace("{customer_id}", ApiClient.urlEncode(String.valueOf(customerId)));
263-
Map<String, Object> queryParams = null;
264-
Map<String, String> headerParams = null;
265254

266255
return this.apiClient.send(
267256
HttpMethod.PUT,

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ public CompletableFuture<com.sumup.sdk.models.Member> createMerchantMember(
6767
Objects.requireNonNull(request, "request");
6868
String path = "/v0.1/merchants/{merchant_code}/members";
6969
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
70-
Map<String, Object> queryParams = null;
71-
Map<String, String> headerParams = null;
7270

7371
return this.apiClient.sendAsync(
7472
HttpMethod.POST,
@@ -120,8 +118,6 @@ public CompletableFuture<Void> deleteMerchantMember(
120118
String path = "/v0.1/merchants/{merchant_code}/members/{member_id}";
121119
path = path.replace("{member_id}", ApiClient.urlEncode(String.valueOf(memberId)));
122120
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
123-
Map<String, Object> queryParams = null;
124-
Map<String, String> headerParams = null;
125121

126122
return this.apiClient.sendAsync(
127123
HttpMethod.DELETE, path, null, null, null, null, requestOptions);
@@ -167,8 +163,6 @@ public CompletableFuture<com.sumup.sdk.models.Member> getMerchantMember(
167163
String path = "/v0.1/merchants/{merchant_code}/members/{member_id}";
168164
path = path.replace("{member_id}", ApiClient.urlEncode(String.valueOf(memberId)));
169165
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
170-
Map<String, Object> queryParams = null;
171-
Map<String, String> headerParams = null;
172166

173167
return this.apiClient.sendAsync(
174168
HttpMethod.GET,
@@ -246,7 +240,6 @@ public CompletableFuture<com.sumup.sdk.models.ListMerchantMembersResponse> listM
246240
if (listMerchantMembers != null) {
247241
queryParams.putAll(listMerchantMembers.toMap());
248242
}
249-
Map<String, String> headerParams = null;
250243

251244
return this.apiClient.sendAsync(
252245
HttpMethod.GET,
@@ -308,8 +301,6 @@ public CompletableFuture<com.sumup.sdk.models.Member> updateMerchantMember(
308301
String path = "/v0.1/merchants/{merchant_code}/members/{member_id}";
309302
path = path.replace("{member_id}", ApiClient.urlEncode(String.valueOf(memberId)));
310303
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
311-
Map<String, Object> queryParams = null;
312-
Map<String, String> headerParams = null;
313304

314305
return this.apiClient.sendAsync(
315306
HttpMethod.PUT,

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ public com.sumup.sdk.models.Member createMerchantMember(
6666
Objects.requireNonNull(request, "request");
6767
String path = "/v0.1/merchants/{merchant_code}/members";
6868
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
69-
Map<String, Object> queryParams = null;
70-
Map<String, String> headerParams = null;
7169

7270
return this.apiClient.send(
7371
HttpMethod.POST,
@@ -116,8 +114,6 @@ public void deleteMerchantMember(
116114
String path = "/v0.1/merchants/{merchant_code}/members/{member_id}";
117115
path = path.replace("{member_id}", ApiClient.urlEncode(String.valueOf(memberId)));
118116
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
119-
Map<String, Object> queryParams = null;
120-
Map<String, String> headerParams = null;
121117

122118
this.apiClient.send(HttpMethod.DELETE, path, null, null, null, null, requestOptions);
123119
}
@@ -162,8 +158,6 @@ public com.sumup.sdk.models.Member getMerchantMember(
162158
String path = "/v0.1/merchants/{merchant_code}/members/{member_id}";
163159
path = path.replace("{member_id}", ApiClient.urlEncode(String.valueOf(memberId)));
164160
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
165-
Map<String, Object> queryParams = null;
166-
Map<String, String> headerParams = null;
167161

168162
return this.apiClient.send(
169163
HttpMethod.GET,
@@ -238,7 +232,6 @@ public com.sumup.sdk.models.ListMerchantMembersResponse listMerchantMembers(
238232
if (listMerchantMembers != null) {
239233
queryParams.putAll(listMerchantMembers.toMap());
240234
}
241-
Map<String, String> headerParams = null;
242235

243236
return this.apiClient.send(
244237
HttpMethod.GET,
@@ -300,8 +293,6 @@ public com.sumup.sdk.models.Member updateMerchantMember(
300293
String path = "/v0.1/merchants/{merchant_code}/members/{member_id}";
301294
path = path.replace("{member_id}", ApiClient.urlEncode(String.valueOf(memberId)));
302295
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
303-
Map<String, Object> queryParams = null;
304-
Map<String, String> headerParams = null;
305296

306297
return this.apiClient.send(
307298
HttpMethod.PUT,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public CompletableFuture<com.sumup.sdk.models.ListMembershipsResponse> listMembe
8484
if (listMemberships != null) {
8585
queryParams.putAll(listMemberships.toMap());
8686
}
87-
Map<String, String> headerParams = null;
8887

8988
return this.apiClient.sendAsync(
9089
HttpMethod.GET,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public com.sumup.sdk.models.ListMembershipsResponse listMemberships(
7979
if (listMemberships != null) {
8080
queryParams.putAll(listMemberships.toMap());
8181
}
82-
Map<String, String> headerParams = null;
8382

8483
return this.apiClient.send(
8584
HttpMethod.GET,

0 commit comments

Comments
 (0)