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": { 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 *