88 lines
3.1 KiB
PHP
88 lines
3.1 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Barobill\BarobillPricingPolicy;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class BarobillPricingPolicySeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$policies = [
|
|
[
|
|
'service_type' => 'card',
|
|
'name' => '법인카드 등록',
|
|
'description' => '법인카드 등록 기본 5장 제공, 추가 시 장당 과금',
|
|
'free_quota' => 5,
|
|
'free_quota_unit' => '장',
|
|
'additional_unit' => 1,
|
|
'additional_unit_label' => '장',
|
|
'additional_price' => 5000,
|
|
'is_active' => true,
|
|
'sort_order' => 1,
|
|
],
|
|
[
|
|
'service_type' => 'tax_invoice',
|
|
'name' => '계산서 발행',
|
|
'description' => '전자세금계산서 발행 기본 100건 제공, 추가 50건 단위 과금',
|
|
'free_quota' => 100,
|
|
'free_quota_unit' => '건',
|
|
'additional_unit' => 50,
|
|
'additional_unit_label' => '건',
|
|
'additional_price' => 5000,
|
|
'is_active' => true,
|
|
'sort_order' => 2,
|
|
],
|
|
[
|
|
'service_type' => 'bank_account',
|
|
'name' => '계좌조회 수집',
|
|
'description' => '주거래 통장 계좌 기본 1개 제공, 추가 계좌당 과금',
|
|
'free_quota' => 1,
|
|
'free_quota_unit' => '개',
|
|
'additional_unit' => 1,
|
|
'additional_unit_label' => '계좌',
|
|
'additional_price' => 10000,
|
|
'is_active' => true,
|
|
'sort_order' => 3,
|
|
],
|
|
[
|
|
'service_type' => 'hometax_purchase',
|
|
'name' => '홈택스 매입',
|
|
'description' => '월정액 33,000원(VAT포함) - 코드브릿지엑스 지원으로 무료 제공',
|
|
'free_quota' => 0,
|
|
'free_quota_unit' => '월정액',
|
|
'additional_unit' => 0,
|
|
'additional_unit_label' => '-',
|
|
'additional_price' => 0,
|
|
'is_active' => true,
|
|
'sort_order' => 4,
|
|
],
|
|
[
|
|
'service_type' => 'hometax_sales',
|
|
'name' => '홈택스 매출',
|
|
'description' => '월정액 33,000원(VAT포함) - 코드브릿지엑스 지원으로 무료 제공',
|
|
'free_quota' => 0,
|
|
'free_quota_unit' => '월정액',
|
|
'additional_unit' => 0,
|
|
'additional_unit_label' => '-',
|
|
'additional_price' => 0,
|
|
'is_active' => true,
|
|
'sort_order' => 5,
|
|
],
|
|
];
|
|
|
|
foreach ($policies as $policy) {
|
|
BarobillPricingPolicy::updateOrCreate(
|
|
['service_type' => $policy['service_type']],
|
|
$policy
|
|
);
|
|
}
|
|
|
|
$this->command->info('바로빌 과금 정책 시딩 완료!');
|
|
}
|
|
}
|