fix(api): add missing PAYMENT_VERIFICATION constant and label to Booking model
This commit is contained in:
parent
1aaa15a38e
commit
f85c7e1809
|
|
@ -100,6 +100,7 @@ public static function syncKontrakanStatus($kontrakanId)
|
|||
|
||||
const PAYMENT_UNPAID = 'unpaid';
|
||||
const PAYMENT_PAID = 'paid';
|
||||
const PAYMENT_VERIFICATION = 'verification';
|
||||
const PAYMENT_REFUNDED = 'refunded';
|
||||
|
||||
// ========== RELASI ==========
|
||||
|
|
@ -281,6 +282,7 @@ public function getPaymentStatusLabelAttribute(): string
|
|||
{
|
||||
return match ($this->payment_status) {
|
||||
self::PAYMENT_UNPAID => 'Belum Bayar',
|
||||
self::PAYMENT_VERIFICATION => 'Menunggu Verifikasi',
|
||||
self::PAYMENT_PAID => 'Lunas',
|
||||
self::PAYMENT_REFUNDED => 'Dikembalikan',
|
||||
default => ucfirst($this->payment_status),
|
||||
|
|
|
|||
Loading…
Reference in New Issue