Documentation

Payment extends Model
in package
uses HasFactory

Class Payment

Represents a payment for a Pelanggan bill.

Table of Contents

Properties

$akun_id  : int
$appends  : mixed
$keterangan  : string
$payment_id  : string
$payment_method  : string
$pdf_url  : string|null
$status  : string
$total_amount_formatted  : string
$transaction_amount  : float
$transaction_expired  : string
$transaction_expired_formatted  : string
$transaction_time  : string
$va_number  : string
$fillable  : mixed
$table  : mixed
The attributes that are mass assignable.

Methods

bills()  : BelongsToMany
Get the bills associated with the payment.
getTotalAmountFormattedAttribute()  : string
Get the formatted transaction amount.
getTransactionExpiredFormattedAttribute()  : string
Get the formatted transaction expiration time.

Properties

$akun_id

public int $akun_id

The account ID associated with the payment.

$appends

public mixed $appends = ['total_amount_formatted', 'transaction_expired_formatted']

$keterangan

public string $keterangan

The description of the payment.

$payment_id

public string $payment_id

The payment identifier.

$payment_method

public string $payment_method

The payment method used.

$pdf_url

public string|null $pdf_url

The URL to the payment PDF.

$status

public string $status

The status of the payment.

$total_amount_formatted

public string $total_amount_formatted

The formatted transaction amount.

$transaction_amount

public float $transaction_amount

The amount of the transaction.

$transaction_expired

public string $transaction_expired

The expiration time of the transaction.

$transaction_expired_formatted

public string $transaction_expired_formatted

The formatted transaction expiration time.

$transaction_time

public string $transaction_time

The time of the transaction.

$va_number

public string $va_number

The virtual account number.

$fillable

protected mixed $fillable = ['keterangan', 'status', 'payment_method', 'payment_id', 'va_number', 'akun_id', 'pdf_url', 'transaction_time', 'transaction_expired', 'transaction_amount']

$table

The attributes that are mass assignable.

protected mixed $table = 'payment'

Methods

bills()

Get the bills associated with the payment.

public bills() : BelongsToMany
Return values
BelongsToMany

getTotalAmountFormattedAttribute()

Get the formatted transaction amount.

public getTotalAmountFormattedAttribute() : string
Return values
string

getTransactionExpiredFormattedAttribute()

Get the formatted transaction expiration time.

public getTransactionExpiredFormattedAttribute() : string
Return values
string

        
On this page

Search results