<?php

namespace Database\Factories\PensionCase;

use App\Models\PensionCase\PensionCase;
use Illuminate\Database\Eloquent\Factories\Factory;

class PensionCaseInterimFactory extends Factory {
    public function definition(): array {
        return [
            'pension_case_id' => PensionCase::factory(),
            'interim_number' => $this->faker->numberBetween(1, 10),
            'interim_date' => $this->faker->date(),
            'interim_amount' => $this->faker->randomFloat(2, 1000, 50000),
            'interim_capped_amount' => $this->faker->randomFloat(2, 500, 25000),
            'net_to_client' => $this->faker->randomFloat(2, 500, 20000),
            'vat_amount' => $this->faker->randomFloat(2, 100, 2000),
            'cpf_fee_gross' => $this->faker->randomFloat(2, 500, 10000),
            'cpf_fee_gross_capped' => $this->faker->randomFloat(2, 200, 8000),
            'cpf_fee_net' => $this->faker->randomFloat(2, 400, 9000),
            'cpf_fee_net_capped' => $this->faker->randomFloat(2, 150, 7000),
        ];
    }
}
