| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace App\Models;
- use App\Enums\AccountTypeEnum;
- use App\Enums\BankAccountTypeEnum;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * @property int $id
- * @property int $provider_id
- * @property AccountTypeEnum $account_type
- * @property string|null $pix_key
- * @property BankAccountTypeEnum|null $bank_account_type
- * @property string|null $agency
- * @property string|null $account
- * @property string|null $digit
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @property \Illuminate\Support\Carbon|null $deleted_at
- * @property-read \App\Models\Provider $provider
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod onlyTrashed()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod query()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereAccount($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereAccountType($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereAgency($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereBankAccountType($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereDeletedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereDigit($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod wherePixKey($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereProviderId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod whereUpdatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod withTrashed(bool $withTrashed = true)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|ProviderPaymentMethod withoutTrashed()
- * @mixin \Eloquent
- */
- class ProviderPaymentMethod extends Model
- {
- use HasFactory, SoftDeletes;
- protected $fillable = [
- 'provider_id',
- 'account_type',
- 'pix_key',
- 'bank_account_type',
- 'agency',
- 'account',
- 'digit',
- ];
- protected $casts = [
- 'account_type' => AccountTypeEnum::class,
- 'bank_account_type' => BankAccountTypeEnum::class,
- ];
- public function provider(): BelongsTo
- {
- return $this->belongsTo(Provider::class);
- }
- }
|