1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/database/factories/PaymentFactory.php

19 lines
474 B
PHP
Raw Normal View History

2019-05-03 09:57:55 +02:00
<?php
use App\DataMapper\ClientSettings;
use App\DataMapper\CompanySettings;
use App\Models\Payment;
2019-05-03 09:57:55 +02:00
use Faker\Generator as Faker;
$factory->define(App\Models\Payment::class, function (Faker $faker) {
return [
2019-05-03 10:28:48 +02:00
'is_deleted' => false,
2019-05-03 09:57:55 +02:00
'amount' => $faker->numberBetween(1,10),
'payment_date' => $faker->date(),
'transaction_reference' => $faker->text(10),
'payment_type_id' => Payment::TYPE_CREDIT_CARD,
'status_id' => Payment::STATUS_COMPLETED
2019-05-03 09:57:55 +02:00
];
});