|UnitPaymentAccount newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount newQuery() * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount query() * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount whereAsaasApiKey($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount whereAsaasApiKeyHash($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount whereAsaasWebhookId($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount whereOnboardedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount whereUnitId($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitPaymentAccount whereUpdatedAt($value) * @mixin \Eloquent */ class UnitPaymentAccount extends Model { use HasFactory; public const STATUS_PENDING = 'pending'; public const STATUS_ACTIVE = 'active'; protected $table = 'unit_payment_accounts'; protected $guarded = ['id']; protected $casts = [ // Cifra/decifra automaticamente usando a APP_KEY. 'asaas_api_key' => 'encrypted', 'onboarded_at' => 'datetime', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; public function unit(): BelongsTo { return $this->belongsTo(Unit::class, 'unit_id'); } }