Skip to content
Open
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
46 changes: 0 additions & 46 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
47 changes: 0 additions & 47 deletions src/main/java/com/sumup/sdk/clients/SubaccountsAsyncClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,53 +118,6 @@ public CompletableFuture<com.sumup.sdk.models.Operator> createSubAccount(
requestOptions);
}

/**
* Disable an operator.
*
* <p>Disable the specified operator for the merchant account.
*
* <p>Operation ID: DeactivateSubAccount
*
* @param operatorId The unique identifier for the operator.
* <p>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<com.sumup.sdk.models.Operator> deactivateSubAccount(Integer operatorId)
throws ApiException {
return deactivateSubAccount(operatorId, null);
}

/**
* Disable an operator.
*
* <p>Disable the specified operator for the merchant account.
*
* <p>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<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.sendAsync(
HttpMethod.DELETE,
path,
null,
null,
null,
new TypeReference<com.sumup.sdk.models.Operator>() {},
requestOptions);
}

/**
* List operators
*
Expand Down
47 changes: 0 additions & 47 deletions src/main/java/com/sumup/sdk/clients/SubaccountsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,53 +116,6 @@ public com.sumup.sdk.models.Operator createSubAccount(
requestOptions);
}

/**
* Disable an operator.
*
* <p>Disable the specified operator for the merchant account.
*
* <p>Operation ID: DeactivateSubAccount
*
* @param operatorId The unique identifier for the operator.
* <p>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.
*
* <p>Disable the specified operator for the merchant account.
*
* <p>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<com.sumup.sdk.models.Operator>() {},
requestOptions);
}

/**
* List operators
*
Expand Down
Loading