PHP Class app\models\Payment

Inheritance: extends Illuminate\Database\Eloquent\Model
显示文件 Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$dates array
$presenter string

Public Methods

Method Description
account ( ) : BelongsTo
account_gateway ( ) : BelongsTo
client ( ) : mixed
contact ( ) : BelongsTo
getBankDataAttribute ( ) : mixed | null | stdClass | string
getBankNameAttribute ( $bank_name ) : null
getCompletedAmount ( ) : mixed
getEntityType ( ) : mixed
getLast4Attribute ( $value ) : null | string
getName ( ) : mixed
getRoute ( ) : string
invitation ( ) : BelongsTo
invoice ( ) : mixed
isCompleted ( ) : boolean
isFailed ( ) : boolean
isFailedOrVoided ( )
isPartiallyRefunded ( ) : boolean
isPending ( ) : boolean
isRefunded ( ) : boolean
isVoided ( ) : boolean
markComplete ( )
markFailed ( string $failureMessage = '' )
markVoided ( ) : boolean
payment_method ( ) : BelongsTo
payment_status ( ) : BelongsTo
payment_type ( ) : BelongsTo
recordRefund ( null $amount = null ) : boolean
scopeExcludeFailed ( $query ) * public function getAmount() { return Utils::formatMoney($this->amount, $this->client->getCurrencyId()); }
user ( ) : mixed

Method Details

account() public method

public account ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

account_gateway() public method

public account_gateway ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

client() public method

public client ( ) : mixed
return mixed

contact() public method

public contact ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

getBankDataAttribute() public method

public getBankDataAttribute ( ) : mixed | null | stdClass | string
return mixed | null | stdClass | string

getBankNameAttribute() public method

public getBankNameAttribute ( $bank_name ) : null
$bank_name
return null

getCompletedAmount() public method

public getCompletedAmount ( ) : mixed
return mixed

getEntityType() public method

public getEntityType ( ) : mixed
return mixed

getLast4Attribute() public method

public getLast4Attribute ( $value ) : null | string
$value
return null | string

getName() public method

public getName ( ) : mixed
return mixed

getRoute() public method

public getRoute ( ) : string
return string

invitation() public method

public invitation ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

invoice() public method

public invoice ( ) : mixed
return mixed

isCompleted() public method

public isCompleted ( ) : boolean
return boolean

isFailed() public method

public isFailed ( ) : boolean
return boolean

isFailedOrVoided() public method

public isFailedOrVoided ( )

isPartiallyRefunded() public method

public isPartiallyRefunded ( ) : boolean
return boolean

isPending() public method

public isPending ( ) : boolean
return boolean

isRefunded() public method

public isRefunded ( ) : boolean
return boolean

isVoided() public method

public isVoided ( ) : boolean
return boolean

markComplete() public method

public markComplete ( )

markFailed() public method

public markFailed ( string $failureMessage = '' )
$failureMessage string

markVoided() public method

public markVoided ( ) : boolean
return boolean

payment_method() public method

public payment_method ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

payment_status() public method

public payment_status ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

payment_type() public method

public payment_type ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

recordRefund() public method

public recordRefund ( null $amount = null ) : boolean
$amount null
return boolean

scopeExcludeFailed() public method

* public function getAmount() { return Utils::formatMoney($this->amount, $this->client->getCurrencyId()); }
public scopeExcludeFailed ( $query )

user() public method

public user ( ) : mixed
return mixed

Property Details

$dates protected_oe property

protected array $dates
return array

$presenter protected_oe property

protected string $presenter
return string