feat(payments): expose primary transfer candidate

This commit is contained in:
2026-08-27 15:38:24 -03:00
parent 6fb60c9a73
commit 5601285369
4 changed files with 121 additions and 1 deletions

View File

@@ -145,6 +145,12 @@ class Purchase extends Model
return $this->hasMany(TelepagosPayment::class, 'compra_id');
}
/** @return HasMany<TelepagosPaymentCandidate, $this> */
public function telepagosPaymentCandidates(): HasMany
{
return $this->hasMany(TelepagosPaymentCandidate::class, 'compra_id');
}
public function getTotalAmount(): float
{
if ($this->total !== null) {