From a6b4f1a8b29cb09fc91c000b6c24e8547b0f8f47 Mon Sep 17 00:00:00 2001 From: appscisumup Date: Wed, 25 Feb 2026 17:27:51 +0000 Subject: [PATCH 1/2] chore: synced local 'openapi.json' with remote 'specs/openapi.json' --- openapi.json | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/openapi.json b/openapi.json index b934226..766036d 100755 --- a/openapi.json +++ b/openapi.json @@ -3309,52 +3309,6 @@ "members_update" ], "x-scopes": [] - }, - "delete": { - "operationId": "DeactivateSubAccount", - "summary": "Disable an operator.", - "description": "Disable the specified operator for the merchant account.", - "parameters": [ - { - "name": "operator_id", - "in": "path", - "description": "The unique identifier for the operator.", - "required": true, - "schema": { - "type": "integer", - "format": "int32" - } - } - ], - "responses": { - "200": { - "description": "Operator successfully disabled.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Operator" - } - } - } - } - }, - "deprecated": true, - "security": [ - { - "apiKey": [] - }, - { - "oauth2": [] - } - ], - "tags": [ - "Subaccounts" - ], - "x-deprecation-notice": "Subaccounts API is deprecated, to remove a user that's a member of your merchant account please use [Delete member](https://developer.sumup.com/api/members/delete) instead.", - "x-permissions": [ - "members_delete" - ], - "x-scopes": [] } }, "/v0.1/memberships": { From 63c1dd84e163571f3f2248ae5b1398d18ef77790 Mon Sep 17 00:00:00 2001 From: "sumup-bot[bot]" <241716704+sumup-bot[bot]@users.noreply.github.com> Date: Wed, 25 Feb 2026 17:30:04 +0000 Subject: [PATCH 2/2] chore: generate code --- .../sdk/clients/SubaccountsAsyncClient.java | 47 ------------------- .../sumup/sdk/clients/SubaccountsClient.java | 47 ------------------- 2 files changed, 94 deletions(-) diff --git a/src/main/java/com/sumup/sdk/clients/SubaccountsAsyncClient.java b/src/main/java/com/sumup/sdk/clients/SubaccountsAsyncClient.java index 0a78370..d3522f6 100644 --- a/src/main/java/com/sumup/sdk/clients/SubaccountsAsyncClient.java +++ b/src/main/java/com/sumup/sdk/clients/SubaccountsAsyncClient.java @@ -118,53 +118,6 @@ public CompletableFuture createSubAccount( requestOptions); } - /** - * Disable an operator. - * - *

Disable the specified operator for the merchant account. - * - *

Operation ID: DeactivateSubAccount - * - * @param operatorId The unique identifier for the operator. - *

Call the overload that accepts RequestOptions to customize headers, authorization, or - * request timeout. - * @return CompletableFuture resolved with com.sumup.sdk.models.Operator parsed response. - * @throws ApiException if the SumUp API returns an error. - */ - public CompletableFuture deactivateSubAccount(Integer operatorId) - throws ApiException { - return deactivateSubAccount(operatorId, null); - } - - /** - * Disable an operator. - * - *

Disable the specified operator for the merchant account. - * - *

Operation ID: DeactivateSubAccount - * - * @param operatorId The unique identifier for the operator. - * @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass - * {@code null} to use client defaults. - * @return CompletableFuture resolved with com.sumup.sdk.models.Operator parsed response. - * @throws ApiException if the SumUp API returns an error. - */ - public CompletableFuture deactivateSubAccount( - Integer operatorId, RequestOptions requestOptions) throws ApiException { - Objects.requireNonNull(operatorId, "operatorId"); - String path = "/v0.1/me/accounts/{operator_id}"; - path = path.replace("{operator_id}", ApiClient.urlEncode(String.valueOf(operatorId))); - - return this.apiClient.sendAsync( - HttpMethod.DELETE, - path, - null, - null, - null, - new TypeReference() {}, - requestOptions); - } - /** * List operators * diff --git a/src/main/java/com/sumup/sdk/clients/SubaccountsClient.java b/src/main/java/com/sumup/sdk/clients/SubaccountsClient.java index 60189d7..30e96dd 100644 --- a/src/main/java/com/sumup/sdk/clients/SubaccountsClient.java +++ b/src/main/java/com/sumup/sdk/clients/SubaccountsClient.java @@ -116,53 +116,6 @@ public com.sumup.sdk.models.Operator createSubAccount( requestOptions); } - /** - * Disable an operator. - * - *

Disable the specified operator for the merchant account. - * - *

Operation ID: DeactivateSubAccount - * - * @param operatorId The unique identifier for the operator. - *

Call the overload that accepts RequestOptions to customize headers, authorization, or - * request timeout. - * @return com.sumup.sdk.models.Operator parsed response. - * @throws ApiException if the SumUp API returns an error. - */ - public com.sumup.sdk.models.Operator deactivateSubAccount(Integer operatorId) - throws ApiException { - return deactivateSubAccount(operatorId, null); - } - - /** - * Disable an operator. - * - *

Disable the specified operator for the merchant account. - * - *

Operation ID: DeactivateSubAccount - * - * @param operatorId The unique identifier for the operator. - * @param requestOptions Request-specific overrides (headers, authorization, or timeout). Pass - * {@code null} to use client defaults. - * @return com.sumup.sdk.models.Operator parsed response. - * @throws ApiException if the SumUp API returns an error. - */ - public com.sumup.sdk.models.Operator deactivateSubAccount( - Integer operatorId, RequestOptions requestOptions) throws ApiException { - Objects.requireNonNull(operatorId, "operatorId"); - String path = "/v0.1/me/accounts/{operator_id}"; - path = path.replace("{operator_id}", ApiClient.urlEncode(String.valueOf(operatorId))); - - return this.apiClient.send( - HttpMethod.DELETE, - path, - null, - null, - null, - new TypeReference() {}, - requestOptions); - } - /** * List operators *