Skip to content

Commit

Permalink
fix: mark targetDay parameter as deprecated and ignored in InvoiceUpd…
Browse files Browse the repository at this point in the history
…ateInvoiceSettingsRequest and related classes

- Added deprecation notice to `targetDay` parameter in `InvoiceUpdateInvoiceSettingsRequest` and `InvoiceUpdateInvoiceSettingsRequestBody` classes.
- Removed related comments for deprecated parameters across various Request and Response classes in the codebase.
mittwald-machine committed Jan 24, 2025
1 parent 8ff2f57 commit 34a9795
Showing 98 changed files with 152 additions and 678 deletions.
Original file line number Diff line number Diff line change
@@ -50,6 +50,8 @@ class InvoiceUpdateInvoiceSettingsRequest
'type' => 'boolean',
],
'targetDay' => [
'deprecated' => true,
'description' => 'parameter is deprecated and will be ignored',
'example' => 15,
'maximum' => 28,
'minimum' => 0,
Original file line number Diff line number Diff line change
@@ -45,6 +45,8 @@ class InvoiceUpdateInvoiceSettingsRequestBody
'type' => 'boolean',
],
'targetDay' => [
'deprecated' => true,
'description' => 'parameter is deprecated and will be ignored',
'example' => 15,
'maximum' => 28,
'minimum' => 0,
@@ -73,11 +75,13 @@ class InvoiceUpdateInvoiceSettingsRequestBody

private ?bool $recipientSameAsOwner = null;

private ?int $targetDay = null;

/**
* @param PaymentSettingsDebit|PaymentSettingsInvoice $paymentSettings
* parameter is deprecated and will be ignored
*
* @deprecated
*/
private ?int $targetDay = null;

public function __construct(int $invoicePeriod, PaymentSettingsDebit|PaymentSettingsInvoice $paymentSettings)
{
$this->invoicePeriod = $invoicePeriod;
@@ -117,6 +121,9 @@ public function getRecipientSameAsOwner(): ?bool
return $this->recipientSameAsOwner ?? null;
}

/**
* @deprecated
*/
public function getTargetDay(): ?int
{
return $this->targetDay ?? null;
@@ -161,9 +168,6 @@ public function withInvoicePeriod(int $invoicePeriod): self
return $clone;
}

/**
* @param PaymentSettingsDebit|PaymentSettingsInvoice $paymentSettings
*/
public function withPaymentSettings(PaymentSettingsDebit|PaymentSettingsInvoice $paymentSettings): self
{
$clone = clone $this;
@@ -232,6 +236,9 @@ public function withoutRecipientSameAsOwner(): self
return $clone;
}

/**
* @deprecated
*/
public function withTargetDay(int $targetDay): self
{
$validator = new Validator();
Original file line number Diff line number Diff line change
@@ -69,9 +69,6 @@ public function getOrderType(): ?OrderCreateOrderRequestBodyOrderType
return $this->orderType ?? null;
}

/**
* @param ProjectHostingOrder|ServerOrder|DomainOrder|ExternalCertificateOrder $orderData
*/
public function withOrderData(DomainOrder|ExternalCertificateOrder|ProjectHostingOrder|ServerOrder $orderData): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -58,9 +58,6 @@ public function getTariffChangeType(): ?OrderCreateTariffChangeRequestBodyTariff
return $this->tariffChangeType ?? null;
}

/**
* @param ProjectHostingTariffChange|ServerTariffChange $tariffChangeData
*/
public function withTariffChangeData(ProjectHostingTariffChange|ServerTariffChange $tariffChangeData): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -68,9 +68,6 @@ public function getOrderType(): ?OrderPreviewOrderRequestBodyOrderType
return $this->orderType ?? null;
}

/**
* @param ProjectHostingOrderPreview|ServerOrderPreview|DomainOrderPreview|ExternalCertificateOrderPreview $orderData
*/
public function withOrderData(DomainOrderPreview|ExternalCertificateOrderPreview|ProjectHostingOrderPreview|ServerOrderPreview $orderData): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -40,11 +40,6 @@ class OrderPreviewTariffChangeOKResponseBody

private int|float $totalPrice;

/**
* @param int|float $machineTypePrice
* @param int|float $storagePrice
* @param int|float $totalPrice
*/
public function __construct(int|float $machineTypePrice, int|float $storagePrice, int|float $totalPrice)
{
$this->machineTypePrice = $machineTypePrice;
@@ -67,9 +62,6 @@ public function getTotalPrice(): int|float
return $this->totalPrice;
}

/**
* @param int|float $machineTypePrice
*/
public function withMachineTypePrice(int|float $machineTypePrice): self
{
$validator = new Validator();
@@ -84,9 +76,6 @@ public function withMachineTypePrice(int|float $machineTypePrice): self
return $clone;
}

/**
* @param int|float $storagePrice
*/
public function withStoragePrice(int|float $storagePrice): self
{
$validator = new Validator();
@@ -101,9 +90,6 @@ public function withStoragePrice(int|float $storagePrice): self
return $clone;
}

/**
* @param int|float $totalPrice
*/
public function withTotalPrice(int|float $totalPrice): self
{
$validator = new Validator();
Original file line number Diff line number Diff line change
@@ -58,9 +58,6 @@ public function getTariffChangeType(): ?OrderPreviewTariffChangeRequestBodyTarif
return $this->tariffChangeType ?? null;
}

/**
* @param ProjectHostingTariffChange|ServerTariffChange $tariffChangeData
*/
public function withTariffChangeData(ProjectHostingTariffChange|ServerTariffChange $tariffChangeData): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -169,9 +169,6 @@ public function withoutNotificationRoles(): self
return $clone;
}

/**
* @param RelatedAggregateReferenceAlternative1|RelatedAggregateReferenceAlternative2|RelatedAggregateReferenceAlternative3|RelatedAggregateReferenceAlternative4|RelatedAggregateReferenceAlternative5|RelatedAggregateReferenceAlternative6 $relatedTo
*/
public function withRelatedTo(RelatedAggregateReferenceAlternative1|RelatedAggregateReferenceAlternative2|RelatedAggregateReferenceAlternative3|RelatedAggregateReferenceAlternative4|RelatedAggregateReferenceAlternative5|RelatedAggregateReferenceAlternative6 $relatedTo): self
{
$clone = clone $this;
@@ -188,9 +185,6 @@ public function withoutRelatedTo(): self
return $clone;
}

/**
* @param ShareableAggregateReferenceAlternative1|ShareableAggregateReferenceAlternative2|ShareableAggregateReferenceAlternative3|ShareableAggregateReferenceAlternative4 $sharedWith
*/
public function withSharedWith(ShareableAggregateReferenceAlternative1|ShareableAggregateReferenceAlternative2|ShareableAggregateReferenceAlternative3|ShareableAggregateReferenceAlternative4 $sharedWith): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -83,9 +83,6 @@ public function withoutCategoryId(): self
return $clone;
}

/**
* @param RelatedAggregateReferenceAlternative1|RelatedAggregateReferenceAlternative2|RelatedAggregateReferenceAlternative3|RelatedAggregateReferenceAlternative4|RelatedAggregateReferenceAlternative5|RelatedAggregateReferenceAlternative6 $relatedTo
*/
public function withRelatedTo(RelatedAggregateReferenceAlternative1|RelatedAggregateReferenceAlternative2|RelatedAggregateReferenceAlternative3|RelatedAggregateReferenceAlternative4|RelatedAggregateReferenceAlternative5|RelatedAggregateReferenceAlternative6 $relatedTo): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -143,9 +143,6 @@ public function withoutDescription(): self
return $clone;
}

/**
* @param CronjobUrl|CronjobCommand $destination
*/
public function withDestination(CronjobCommand|CronjobUrl $destination): self
{
$clone = clone $this;
@@ -206,9 +203,6 @@ public function withoutInterval(): self
return $clone;
}

/**
* @param int|float $timeout
*/
public function withTimeout(int|float $timeout): self
{
$validator = new Validator();
Original file line number Diff line number Diff line change
@@ -47,9 +47,6 @@ class GetWalletOKResponseBody

private string $walletId;

/**
* @param int|float $points
*/
public function __construct(string $customerId, int|float $points, string $walletId)
{
$this->customerId = $customerId;
@@ -91,9 +88,6 @@ public function withCustomerId(string $customerId): self
return $clone;
}

/**
* @param int|float $points
*/
public function withPoints(int|float $points): self
{
$validator = new Validator();
Original file line number Diff line number Diff line change
@@ -48,9 +48,6 @@ class DeprecatedIngressTlsRequest

];

/**
* @param TlsAcme|TlsCertificate $body
*/
public function __construct(string $ingressId, TlsAcme|TlsCertificate $body)
{
$this->ingressId = $ingressId;
@@ -81,9 +78,6 @@ public function withIngressId(string $ingressId): self
return $clone;
}

/**
* @param TlsAcme|TlsCertificate $body
*/
public function withBody(TlsAcme|TlsCertificate $body): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -48,9 +48,6 @@ class DnsRecordASetCustomDeprecatedRequest

];

/**
* @param RecordUnset|CombinedACustom $body
*/
public function __construct(string $zoneId, CombinedACustom|RecordUnset $body)
{
$this->zoneId = $zoneId;
@@ -81,9 +78,6 @@ public function withZoneId(string $zoneId): self
return $clone;
}

/**
* @param RecordUnset|CombinedACustom $body
*/
public function withBody(CombinedACustom|RecordUnset $body): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -48,9 +48,6 @@ class DnsRecordCnameSetDeprecatedRequest

];

/**
* @param RecordUnset|RecordCNAMEComponent $body
*/
public function __construct(string $zoneId, RecordCNAMEComponent|RecordUnset $body)
{
$this->zoneId = $zoneId;
@@ -81,9 +78,6 @@ public function withZoneId(string $zoneId): self
return $clone;
}

/**
* @param RecordUnset|RecordCNAMEComponent $body
*/
public function withBody(RecordCNAMEComponent|RecordUnset $body): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -48,9 +48,6 @@ class DnsRecordMxSetCustomDeprecatedRequest

];

/**
* @param RecordUnset|RecordMXCustom $body
*/
public function __construct(string $zoneId, RecordMXCustom|RecordUnset $body)
{
$this->zoneId = $zoneId;
@@ -81,9 +78,6 @@ public function withZoneId(string $zoneId): self
return $clone;
}

/**
* @param RecordUnset|RecordMXCustom $body
*/
public function withBody(RecordMXCustom|RecordUnset $body): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -48,9 +48,6 @@ class DnsRecordSrvSetDeprecatedRequest

];

/**
* @param RecordUnset|RecordSRVComponent $body
*/
public function __construct(string $zoneId, RecordSRVComponent|RecordUnset $body)
{
$this->zoneId = $zoneId;
@@ -81,9 +78,6 @@ public function withZoneId(string $zoneId): self
return $clone;
}

/**
* @param RecordUnset|RecordSRVComponent $body
*/
public function withBody(RecordSRVComponent|RecordUnset $body): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -48,9 +48,6 @@ class DnsRecordTxtSetDeprecatedRequest

];

/**
* @param RecordUnset|RecordTXTComponent $body
*/
public function __construct(string $zoneId, RecordTXTComponent|RecordUnset $body)
{
$this->zoneId = $zoneId;
@@ -81,9 +78,6 @@ public function withZoneId(string $zoneId): self
return $clone;
}

/**
* @param RecordUnset|RecordTXTComponent $body
*/
public function withBody(RecordTXTComponent|RecordUnset $body): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -77,9 +77,6 @@ class DnsUpdateRecordSetRequest

];

/**
* @param RecordUnset|CombinedACustom|RecordMXCustom|RecordTXTComponent|RecordSRVComponent|RecordCNAMEComponent $body
*/
public function __construct(string $dnsZoneId, DnsUpdateRecordSetRequestRecordSet $recordSet, CombinedACustom|RecordCNAMEComponent|RecordMXCustom|RecordSRVComponent|RecordTXTComponent|RecordUnset $body)
{
$this->dnsZoneId = $dnsZoneId;
@@ -124,9 +121,6 @@ public function withRecordSet(DnsUpdateRecordSetRequestRecordSet $recordSet): se
return $clone;
}

/**
* @param RecordUnset|CombinedACustom|RecordMXCustom|RecordTXTComponent|RecordSRVComponent|RecordCNAMEComponent $body
*/
public function withBody(CombinedACustom|RecordCNAMEComponent|RecordMXCustom|RecordSRVComponent|RecordTXTComponent|RecordUnset $body): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -76,9 +76,6 @@ class IngressUpdateIngressTlsRequest

];

/**
* @param IngressUpdateIngressTlsRequestBodyAlternative1|IngressUpdateIngressTlsRequestBodyAlternative2 $body
*/
public function __construct(string $ingressId, IngressUpdateIngressTlsRequestBodyAlternative1|IngressUpdateIngressTlsRequestBodyAlternative2 $body)
{
$this->ingressId = $ingressId;
@@ -109,9 +106,6 @@ public function withIngressId(string $ingressId): self
return $clone;
}

/**
* @param IngressUpdateIngressTlsRequestBodyAlternative1|IngressUpdateIngressTlsRequestBodyAlternative2 $body
*/
public function withBody(IngressUpdateIngressTlsRequestBodyAlternative1|IngressUpdateIngressTlsRequestBodyAlternative2 $body): self
{
$clone = clone $this;
Original file line number Diff line number Diff line change
@@ -41,9 +41,6 @@ class SslCreateCertificateRequestRequest

];

/**
* @param CertificateRequestCreateRequest|CertificateRequestCreateWithCSRRequest $body
*/
public function __construct(CertificateRequestCreateRequest|CertificateRequestCreateWithCSRRequest $body)
{
$this->body = $body;
@@ -54,9 +51,6 @@ public function getBody(): CertificateRequestCreateRequest|CertificateRequestCre
return $this->body;
}

/**
* @param CertificateRequestCreateRequest|CertificateRequestCreateWithCSRRequest $body
*/
public function withBody(CertificateRequestCreateRequest|CertificateRequestCreateWithCSRRequest $body): self
{
$clone = clone $this;
Loading

0 comments on commit 34a9795

Please sign in to comment.