PaymentData
extends AbstractPostData
in package
Table of Contents
- STATUS_PREFIX = 'mphb-p-'
- $entity : Payment
- $_entity_init_state : mixed
- __construct() : mixed
- __get() : mixed
- __set() : mixed
- findById() : static|null
- getData() : array<string|int, mixed>
- getFields() : array<string|int, mixed>
- getProperties() : mixed
- getRepository() : AbstractPostRepository
- getRequiredFieldKeys() : array<string|int, mixed>
- getRequiredFields() : array<string|int, mixed>
- getSchema() : mixed
- getWritableFieldKeys() : array<string|int, mixed>
- getWritableFields() : array<string|int, mixed>
- save() : bool
- getBillingInfo() : mixed
- getDateCreated() : mixed
- getDateCreatedUtc() : mixed
- getDateExpiration() : mixed
- getDateExpirationUtc() : mixed
- getDateModified() : mixed
- getDateModifiedUtc() : mixed
- getGatewayMode() : string
- getStatus() : mixed
- isDataChanged() : bool
- setBillingInfo() : mixed
- setStatus() : mixed
- changeBookingStatusToConfirmedByPayment() : mixed
- getAvailableGatewayIds() : mixed
- getAvailablePaymentStatuses() : array<string|int, mixed>
- getBillingInfoField() : mixed
- getDateExpirationValue() : mixed
- getDefaultPaymentStatus() : mixed
- isBookingPaid() : bool
- isNeedChangeBookingStatusByPayment() : bool
- saveBillingInfo() : mixed
- setDataToEntity() : mixed
- validate() : bool
Constants
STATUS_PREFIX
public
mixed
STATUS_PREFIX
= 'mphb-p-'
Properties
$entity
public
Payment
$entity
$_entity_init_state
protected
mixed
$_entity_init_state
Methods
__construct()
public
__construct(mixed $entity) : mixed
Parameters
- $entity : mixed
Return values
mixed —__get()
public
__get( $property) : mixed
Parameters
Tags
Return values
mixed —__set()
public
__set( $property, $value) : mixed
Parameters
Tags
Return values
mixed —findById()
public
static findById(int $id) : static|null
Parameters
- $id : int
Return values
static|null —getData()
public
getData() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getFields()
public
static getFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
public
static getProperties() : mixed
Return values
mixed —getRepository()
public
static getRepository() : AbstractPostRepository
Return values
AbstractPostRepository —getRequiredFieldKeys()
public
static getRequiredFieldKeys() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRequiredFields()
public
static getRequiredFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —getSchema()
public
static getSchema(mixed $title) : mixed
Parameters
- $title : mixed
Return values
mixed —getWritableFieldKeys()
public
static getWritableFieldKeys() : array<string|int, mixed>
Return values
array<string|int, mixed> —getWritableFields()
public
static getWritableFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —save()
public
save() : bool
Tags
Return values
bool —getBillingInfo()
protected
getBillingInfo() : mixed
Return values
mixed —getDateCreated()
protected
getDateCreated() : mixed
Return values
mixed —getDateCreatedUtc()
protected
getDateCreatedUtc() : mixed
Return values
mixed —getDateExpiration()
protected
getDateExpiration() : mixed
Return values
mixed —getDateExpirationUtc()
protected
getDateExpirationUtc() : mixed
Return values
mixed —getDateModified()
protected
getDateModified() : mixed
Return values
mixed —getDateModifiedUtc()
protected
getDateModifiedUtc() : mixed
Return values
mixed —getGatewayMode()
protected
getGatewayMode() : string
Return values
string —getStatus()
protected
getStatus() : mixed
Return values
mixed —isDataChanged()
protected
isDataChanged() : bool
Return values
bool —setBillingInfo()
protected
setBillingInfo(array<string|int, mixed> $billingInfoRaw) : mixed
Parameters
- $billingInfoRaw : array<string|int, mixed>
Return values
mixed —setStatus()
protected
setStatus(mixed $status) : mixed
Parameters
- $status : mixed
Return values
mixed —changeBookingStatusToConfirmedByPayment()
private
changeBookingStatusToConfirmedByPayment() : mixed
Return values
mixed —getAvailableGatewayIds()
private
static getAvailableGatewayIds() : mixed
Return values
mixed —getAvailablePaymentStatuses()
private
static getAvailablePaymentStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed> —[$dbStatus => $apiStatus]
getBillingInfoField()
private
getBillingInfoField(mixed $field) : mixed
Parameters
- $field : mixed
Return values
mixed —getDateExpirationValue()
private
getDateExpirationValue() : mixed
Return values
mixed —getDefaultPaymentStatus()
private
static getDefaultPaymentStatus() : mixed
Return values
mixed —isBookingPaid()
private
isBookingPaid() : bool
Return values
bool —isNeedChangeBookingStatusByPayment()
private
isNeedChangeBookingStatusByPayment() : bool
Return values
bool —saveBillingInfo()
private
saveBillingInfo() : mixed
Return values
mixed —setDataToEntity()
private
setDataToEntity() : mixed
Return values
mixed —validate()
private
validate() : bool