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
4 changes: 0 additions & 4 deletions codegen/internal/generator/templates/client.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ public final class {{ .ClassName }} {
queryParams.putAll({{ .QueryStruct.VarName }}.toMap());
}
{{- end }}
{{- else }}
Map<String, Object> queryParams = null;
{{- end }}

{{- if or .RequiredHeaderParams .HeaderStruct }}
Expand All @@ -183,8 +181,6 @@ public final class {{ .ClassName }} {
headerParams.putAll({{ .HeaderStruct.VarName }}.toMap());
}
{{- end }}
{{- else }}
Map<String, String> headerParams = null;
{{- end }}

{{ if not .ReturnsVoid }}return {{ end }}this.apiClient.send(
Expand Down
4 changes: 0 additions & 4 deletions codegen/internal/generator/templates/client_async.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ public final class {{ .ClassName }} {
queryParams.putAll({{ .QueryStruct.VarName }}.toMap());
}
{{- end }}
{{- else }}
Map<String, Object> queryParams = null;
{{- end }}

{{- if or .RequiredHeaderParams .HeaderStruct }}
Expand All @@ -185,8 +183,6 @@ public final class {{ .ClassName }} {
headerParams.putAll({{ .HeaderStruct.VarName }}.toMap());
}
{{- end }}
{{- else }}
Map<String, String> headerParams = null;
{{- end }}

return this.apiClient.sendAsync(
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/com/sumup/sdk/clients/CheckoutsAsyncClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public CompletableFuture<com.sumup.sdk.models.Checkout> createCheckout(
throws ApiException {
Objects.requireNonNull(request, "request");
String path = "/v0.1/checkouts";
Map<String, Object> queryParams = null;
Map<String, String> headerParams = null;

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

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

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

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

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

return this.apiClient.sendAsync(
HttpMethod.PUT,
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/com/sumup/sdk/clients/CheckoutsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ public com.sumup.sdk.models.Checkout createCheckout(
throws ApiException {
Objects.requireNonNull(request, "request");
String path = "/v0.1/checkouts";
Map<String, Object> queryParams = null;
Map<String, String> headerParams = null;

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

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

return this.apiClient.send(
HttpMethod.GET,
Expand Down Expand Up @@ -241,7 +235,6 @@ public com.sumup.sdk.models.GetPaymentMethodsResponse getPaymentMethods(
if (getPaymentMethods != null) {
queryParams.putAll(getPaymentMethods.toMap());
}
Map<String, String> headerParams = null;

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

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

return this.apiClient.send(
HttpMethod.PUT,
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/com/sumup/sdk/clients/CustomersAsyncClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.sumup.sdk.core.ApiException;
import com.sumup.sdk.core.HttpMethod;
import com.sumup.sdk.core.RequestOptions;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.CompletableFuture;

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

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

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

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

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

return this.apiClient.sendAsync(
HttpMethod.PUT,
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/com/sumup/sdk/clients/CustomersClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.sumup.sdk.core.ApiException;
import com.sumup.sdk.core.HttpMethod;
import com.sumup.sdk.core.RequestOptions;
import java.util.Map;
import java.util.Objects;

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

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

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

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

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

return this.apiClient.send(
HttpMethod.PUT,
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/com/sumup/sdk/clients/MembersAsyncClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ public CompletableFuture<com.sumup.sdk.models.Member> createMerchantMember(
Objects.requireNonNull(request, "request");
String path = "/v0.1/merchants/{merchant_code}/members";
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
Map<String, Object> queryParams = null;
Map<String, String> headerParams = null;

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

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

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

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

return this.apiClient.sendAsync(
HttpMethod.PUT,
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/com/sumup/sdk/clients/MembersClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public com.sumup.sdk.models.Member createMerchantMember(
Objects.requireNonNull(request, "request");
String path = "/v0.1/merchants/{merchant_code}/members";
path = path.replace("{merchant_code}", ApiClient.urlEncode(String.valueOf(merchantCode)));
Map<String, Object> queryParams = null;
Map<String, String> headerParams = null;

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

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

return this.apiClient.send(
HttpMethod.GET,
Expand Down Expand Up @@ -238,7 +232,6 @@ public com.sumup.sdk.models.ListMerchantMembersResponse listMerchantMembers(
if (listMerchantMembers != null) {
queryParams.putAll(listMerchantMembers.toMap());
}
Map<String, String> headerParams = null;

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

return this.apiClient.send(
HttpMethod.PUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public CompletableFuture<com.sumup.sdk.models.ListMembershipsResponse> listMembe
if (listMemberships != null) {
queryParams.putAll(listMemberships.toMap());
}
Map<String, String> headerParams = null;

return this.apiClient.sendAsync(
HttpMethod.GET,
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/sumup/sdk/clients/MembershipsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public com.sumup.sdk.models.ListMembershipsResponse listMemberships(
if (listMemberships != null) {
queryParams.putAll(listMemberships.toMap());
}
Map<String, String> headerParams = null;

return this.apiClient.send(
HttpMethod.GET,
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/com/sumup/sdk/clients/MerchantAsyncClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public CompletableFuture<com.sumup.sdk.models.MerchantAccount> getAccount(
if (getAccount != null) {
queryParams.putAll(getAccount.toMap());
}
Map<String, String> headerParams = null;

return this.apiClient.sendAsync(
HttpMethod.GET,
Expand Down Expand Up @@ -126,8 +125,6 @@ public CompletableFuture<com.sumup.sdk.models.DoingBusinessAsLegacy> getDoingBus
public CompletableFuture<com.sumup.sdk.models.DoingBusinessAsLegacy> getDoingBusinessAs(
RequestOptions requestOptions) throws ApiException {
String path = "/v0.1/me/merchant-profile/doing-business-as";
Map<String, Object> queryParams = null;
Map<String, String> headerParams = null;

return this.apiClient.sendAsync(
HttpMethod.GET,
Expand Down Expand Up @@ -174,8 +171,6 @@ public CompletableFuture<com.sumup.sdk.models.MerchantProfileLegacy> getMerchant
public CompletableFuture<com.sumup.sdk.models.MerchantProfileLegacy> getMerchantProfile(
RequestOptions requestOptions) throws ApiException {
String path = "/v0.1/me/merchant-profile";
Map<String, Object> queryParams = null;
Map<String, String> headerParams = null;

return this.apiClient.sendAsync(
HttpMethod.GET,
Expand Down Expand Up @@ -222,8 +217,6 @@ public CompletableFuture<com.sumup.sdk.models.PersonalProfileLegacy> getPersonal
public CompletableFuture<com.sumup.sdk.models.PersonalProfileLegacy> getPersonalProfile(
RequestOptions requestOptions) throws ApiException {
String path = "/v0.1/me/personal-profile";
Map<String, Object> queryParams = null;
Map<String, String> headerParams = null;

return this.apiClient.sendAsync(
HttpMethod.GET,
Expand Down
Loading
Loading