Skip to content

Commit

Permalink
refactor: remove InvoiceReplaceInvoiceSettings API methods and relate…
Browse files Browse the repository at this point in the history
…d classes

This commit removes the `invoiceReplaceInvoiceSettings` method and its associated request and response classes from the ContractClient and ContractClientImpl. This cleanup ensures the API client is aligned with current requirements and eliminates unused functionality.
  • Loading branch information
mittwald-machine committed Oct 25, 2024
1 parent b23f31b commit c28ba39
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 1,503 deletions.
11 changes: 0 additions & 11 deletions src/Generated/V2/Clients/Contract/ContractClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceGetFileAccessToken\InvoiceGetFileAccessTokenRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceListCustomerInvoices\InvoiceListCustomerInvoicesOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceListCustomerInvoices\InvoiceListCustomerInvoicesRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceReplaceInvoiceSettings\InvoiceReplaceInvoiceSettingsOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceReplaceInvoiceSettings\InvoiceReplaceInvoiceSettingsRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceUpdateInvoiceSettings\InvoiceUpdateInvoiceSettingsOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceUpdateInvoiceSettings\InvoiceUpdateInvoiceSettingsRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\ListContracts\ListContractsOKResponse;
Expand Down Expand Up @@ -266,15 +264,6 @@ public function invoiceGetFileAccessToken(InvoiceGetFileAccessTokenRequest $requ
* @param InvoiceListCustomerInvoicesRequest $request An object representing the request for this operation
*/
public function invoiceListCustomerInvoices(InvoiceListCustomerInvoicesRequest $request): InvoiceListCustomerInvoicesOKResponse;
/**
* Update InvoiceSettings of a Customer.
*
* @see https://developer.mittwald.de/reference/v2/#tag/Contract/operation/invoice-replace-invoice-settings
* @throws GuzzleException
* @throws UnexpectedResponseException
* @param InvoiceReplaceInvoiceSettingsRequest $request An object representing the request for this operation
*/
public function invoiceReplaceInvoiceSettings(InvoiceReplaceInvoiceSettingsRequest $request): InvoiceReplaceInvoiceSettingsOKResponse;
/**
* Update InvoiceSettings of a Customer.
*
Expand Down
29 changes: 0 additions & 29 deletions src/Generated/V2/Clients/Contract/ContractClientImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceListCustomerInvoices\InvoiceListCustomerInvoicesOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceListCustomerInvoices\InvoiceListCustomerInvoicesRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceListCustomerInvoices\InvoiceListCustomerInvoicesTooManyRequestsResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceReplaceInvoiceSettings\InvoiceReplaceInvoiceSettingsBadRequestResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceReplaceInvoiceSettings\InvoiceReplaceInvoiceSettingsDefaultResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceReplaceInvoiceSettings\InvoiceReplaceInvoiceSettingsNotFoundResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceReplaceInvoiceSettings\InvoiceReplaceInvoiceSettingsOKResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceReplaceInvoiceSettings\InvoiceReplaceInvoiceSettingsRequest;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceReplaceInvoiceSettings\InvoiceReplaceInvoiceSettingsTooManyRequestsResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceUpdateInvoiceSettings\InvoiceUpdateInvoiceSettingsBadRequestResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceUpdateInvoiceSettings\InvoiceUpdateInvoiceSettingsDefaultResponse;
use Mittwald\ApiClient\Generated\V2\Clients\Contract\InvoiceUpdateInvoiceSettings\InvoiceUpdateInvoiceSettingsNotFoundResponse;
Expand Down Expand Up @@ -649,29 +643,6 @@ public function invoiceListCustomerInvoices(InvoiceListCustomerInvoicesRequest $
});
}

/**
* Update InvoiceSettings of a Customer.
*
* @see https://developer.mittwald.de/reference/v2/#tag/Contract/operation/invoice-replace-invoice-settings
* @throws GuzzleException
* @throws UnexpectedResponseException
* @param InvoiceReplaceInvoiceSettingsRequest $request An object representing the request for this operation
*/
public function invoiceReplaceInvoiceSettings(InvoiceReplaceInvoiceSettingsRequest $request): InvoiceReplaceInvoiceSettingsOKResponse
{
$httpRequest = new Request(InvoiceReplaceInvoiceSettingsRequest::method, $request->buildUrl());
$httpResponse = $this->client->send($httpRequest, $request->buildRequestOptions());
if ($httpResponse->getStatusCode() === 200) {
return InvoiceReplaceInvoiceSettingsOKResponse::fromResponse($httpResponse);
}
throw new UnexpectedResponseException(match ($httpResponse->getStatusCode()) {
400 => InvoiceReplaceInvoiceSettingsBadRequestResponse::fromResponse($httpResponse),
404 => InvoiceReplaceInvoiceSettingsNotFoundResponse::fromResponse($httpResponse),
429 => InvoiceReplaceInvoiceSettingsTooManyRequestsResponse::fromResponse($httpResponse),
default => InvoiceReplaceInvoiceSettingsDefaultResponse::fromResponse($httpResponse),
});
}

/**
* Update InvoiceSettings of a Customer.
*
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit c28ba39

Please sign in to comment.