update email template

This commit is contained in:
baodev0
2026-09-09 16:56:22 +07:00
parent d3d9f76ba0
commit 2365ef72e9
210 changed files with 6335 additions and 4688 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Integrations\Whmcs\Writers;
use App\Integrations\Whmcs\DTOs\ProductAddonData;
use Illuminate\Support\Facades\DB;
class ProductAddonWriter
{
public function write(ProductAddonData $data): void
{
DB::table('product_addon')->updateOrInsert(
['legacy_id' => $data->legacyId],
[
'code' => $data->code,
'name' => $data->name,
'type' => $data->type,
'price' => $data->price,
'status' => $data->status,
'sort_order' => $data->sortOrder,
'created_at' => $data->createdAt,
'updated_at' => $data->updatedAt,
]
);
}
}