update email template
This commit is contained in:
@@ -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,
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user