update email template
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class ClientData
|
||||
{
|
||||
public function __construct(
|
||||
public readonly string $uuid,
|
||||
public readonly ?string $fullname,
|
||||
public readonly ?string $company,
|
||||
public readonly ?string $address,
|
||||
public readonly ?string $state,
|
||||
public readonly ?string $city,
|
||||
public readonly ?int $saler,
|
||||
public readonly ?string $country,
|
||||
public readonly ?string $phone,
|
||||
public readonly ?string $email,
|
||||
public readonly ?string $password,
|
||||
public readonly ?string $note,
|
||||
public readonly int $credit,
|
||||
public readonly int $status,
|
||||
public readonly int $emailMarketing,
|
||||
public readonly ?string $createdAt,
|
||||
public readonly ?string $updatedAt,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class CustomerDomainData
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $legacyId,
|
||||
public readonly ?int $customerId,
|
||||
public readonly int $orderId,
|
||||
public readonly string $name,
|
||||
public readonly int $firstPayment,
|
||||
public readonly int $nextPayment,
|
||||
public readonly ?int $nextDueDate,
|
||||
public readonly ?int $nextInvoiceDate,
|
||||
public readonly ?int $registrarId,
|
||||
public readonly int $status,
|
||||
public readonly ?string $note,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class InvoiceData
|
||||
{
|
||||
/** @param InvoiceItemData[] $items */
|
||||
public function __construct(
|
||||
public readonly int $legacyId,
|
||||
public readonly string $invoiceNumber,
|
||||
public readonly ?int $customerId,
|
||||
public readonly ?int $orderId,
|
||||
public readonly ?string $date,
|
||||
public readonly int $subTotal,
|
||||
public readonly int $discountAmount,
|
||||
public readonly int $tax,
|
||||
public readonly int $total,
|
||||
public readonly int $status,
|
||||
public readonly ?string $paymentMethod,
|
||||
public readonly ?string $dueDate,
|
||||
public readonly ?string $paidAt,
|
||||
public readonly ?string $note,
|
||||
public readonly ?string $createdAt,
|
||||
public readonly array $items,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class InvoiceItemData
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $legacyId,
|
||||
public readonly string $type,
|
||||
public readonly ?string $description,
|
||||
public readonly int $unitPrice,
|
||||
public readonly int $totalPrice,
|
||||
public readonly ?int $productId = null,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class OrderData
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $legacyId,
|
||||
public readonly string $orderNum,
|
||||
public readonly ?int $customerId,
|
||||
public readonly ?string $date,
|
||||
public readonly int $total,
|
||||
public readonly int $status,
|
||||
public readonly ?string $paymentMethod,
|
||||
public readonly ?string $note,
|
||||
public readonly ?string $clientIp,
|
||||
public readonly ?string $createdAt,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class OrderItemData
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $legacyId,
|
||||
public readonly ?int $orderId,
|
||||
public readonly ?int $productId,
|
||||
public readonly ?int $productPricingId,
|
||||
public readonly ?string $serverName,
|
||||
public readonly ?string $domainName,
|
||||
public readonly string $billingCycle,
|
||||
public readonly int $months,
|
||||
public readonly int $quantity,
|
||||
public readonly int $price,
|
||||
public readonly ?string $createdAt,
|
||||
public readonly ?string $updatedAt,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class ProductAddonData
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $legacyId,
|
||||
public readonly string $code,
|
||||
public readonly string $name,
|
||||
public readonly string $type,
|
||||
public readonly int $price,
|
||||
public readonly bool $status,
|
||||
public readonly int $sortOrder,
|
||||
public readonly ?string $createdAt,
|
||||
public readonly ?string $updatedAt,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class ProductCategoryData
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $legacyId,
|
||||
public readonly string $name,
|
||||
public readonly string $slug,
|
||||
public readonly ?string $type,
|
||||
public readonly bool $isActive,
|
||||
public readonly int $sortOrder,
|
||||
public readonly ?string $createdAt,
|
||||
public readonly ?string $updatedAt,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class ProductData
|
||||
{
|
||||
/** @param array<int, array{billing_cycle: string, price: float}> $pricings */
|
||||
public function __construct(
|
||||
public readonly int $legacyId,
|
||||
public readonly ?int $categoryId,
|
||||
public readonly string $name,
|
||||
public readonly string $slug,
|
||||
public readonly ?string $shortDescription,
|
||||
public readonly ?string $description,
|
||||
public readonly ?int $stock,
|
||||
public readonly bool $isUnlimited,
|
||||
public readonly float $setupFee,
|
||||
public readonly bool $isActive,
|
||||
public readonly int $sortOrder,
|
||||
public readonly ?string $createdAt,
|
||||
public readonly ?string $updatedAt,
|
||||
public readonly array $pricings,
|
||||
) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\Whmcs\DTOs;
|
||||
|
||||
class ServiceData
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $legacyId,
|
||||
public readonly ?int $customerId,
|
||||
public readonly ?int $productId,
|
||||
public readonly int $legacyProductId,
|
||||
public readonly ?int $orderItemId,
|
||||
public readonly ?string $serverName,
|
||||
public readonly string $status,
|
||||
public readonly bool $autoRenew,
|
||||
public readonly ?string $startedAt,
|
||||
public readonly ?string $expiresAt,
|
||||
public readonly ?string $cancelledAt,
|
||||
public readonly ?string $note,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user