Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getCustomerId () | |
setCustomerId ($customerId) | |
getPaymentMethodCode () | |
setPaymentMethodCode ($code) | |
getType () | |
setType ($type) | |
getCreatedAt () | |
setCreatedAt ($timestamp) | |
getExpiresAt () | |
setExpiresAt ($timestamp) | |
getGatewayToken () | |
setGatewayToken ($token) | |
getTokenDetails () | |
setTokenDetails ($details) | |
getIsActive () | |
setIsActive ($isActive) | |
getPublicHash () | |
setPublicHash ($hash) | |
getIsVisible () | |
setIsVisible ($isVisible) | |
![]() | |
__construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) | |
__sleep () | |
__wakeup () | |
setIdFieldName ($name) | |
getIdFieldName () | |
getId () | |
setId ($value) | |
isDeleted ($isDeleted=null) | |
hasDataChanges () | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
setDataChanges ($value) | |
getOrigData ($key=null) | |
setOrigData ($key=null, $data=null) | |
dataHasChangedFor ($field) | |
getResourceName () | |
getResourceCollection () | |
getCollection () | |
load ($modelId, $field=null) | |
beforeLoad ($identifier, $field=null) | |
afterLoad () | |
isSaveAllowed () | |
setHasDataChanges ($flag) | |
save () | |
afterCommitCallback () | |
isObjectNew ($flag=null) | |
beforeSave () | |
validateBeforeSave () | |
getCacheTags () | |
cleanModelCache () | |
afterSave () | |
delete () | |
beforeDelete () | |
afterDelete () | |
afterDeleteCommit () | |
getResource () | |
getEntityId () | |
setEntityId ($entityId) | |
clearInstance () | |
getStoredData () | |
getEventPrefix () | |
![]() | |
__construct (array $data=[]) | |
addData (array $arr) | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
getData ($key='', $index=null) | |
getDataByPath ($path) | |
getDataByKey ($key) | |
setDataUsingMethod ($key, $args=[]) | |
getDataUsingMethod ($key, $args=null) | |
hasData ($key='') | |
toArray (array $keys=[]) | |
convertToArray (array $keys=[]) | |
toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
toJson (array $keys=[]) | |
convertToJson (array $keys=[]) | |
toString ($format='') | |
__call ($method, $args) | |
isEmpty () | |
serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
debug ($data=null, &$objects=[]) | |
offsetSet ($offset, $value) | |
offsetExists ($offset) | |
offsetUnset ($offset) | |
offsetGet ($offset) | |
![]() | |
getEntityId () | |
setEntityId ($entityId) | |
Protected Member Functions | |
_construct () | |
![]() | |
_construct () | |
_init ($resourceModel) | |
_setResourceModel ($resourceName, $collectionName=null) | |
_getResource () | |
_getEventData () | |
_beforeLoad ($modelId, $field=null) | |
_afterLoad () | |
_hasModelChanged () | |
_getValidatorBeforeSave () | |
_createValidatorBeforeSave () | |
_getValidationRulesBeforeSave () | |
_clearReferences () | |
_clearData () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Protected Attributes | |
$_eventPrefix = 'vault_payment_token' | |
![]() | |
$_eventPrefix = 'core_abstract' | |
$_eventObject = 'object' | |
$_idFieldName = 'id' | |
$_hasDataChanges = false | |
$_origData | |
$_isDeleted = false | |
$_resource | |
$_resourceCollection | |
$_resourceName | |
$_collectionName | |
$_cacheTag = false | |
$_dataSaveAllowed = true | |
$_isObjectNew = null | |
$_validatorBeforeSave = null | |
$_eventManager | |
$_cacheManager | |
$_registry | |
$_logger | |
$_appState | |
$_actionValidator | |
$storedData = [] | |
![]() | |
$_data = [] | |
Additional Inherited Members | |
![]() | |
const | ENTITY_ID = 'entity_id' |
const | CUSTOMER_ID = 'customer_id' |
const | PUBLIC_HASH = 'public_hash' |
const | PAYMENT_METHOD_CODE = 'payment_method_code' |
const | TYPE = 'type' |
const | CREATED_AT = 'created_at' |
const | EXPIRES_AT = 'expires_at' |
const | GATEWAY_TOKEN = 'gateway_token' |
const | DETAILS = 'details' |
const | IS_ACTIVE = 'is_active' |
const | IS_VISIBLE = 'is_visible' |
![]() | |
static | $_underscoreCache = [] |
Vault Payment Token extension attribute model
Definition at line 16 of file PaymentToken.php.
|
protected |
Definition at line 26 of file PaymentToken.php.
getCreatedAt | ( | ) |
Get token creation timestamp
Implements PaymentTokenInterface.
Definition at line 85 of file PaymentToken.php.
getCustomerId | ( | ) |
Gets the customer ID.
Implements PaymentTokenInterface.
Definition at line 34 of file PaymentToken.php.
getExpiresAt | ( | ) |
Get token expiration timestamp
Implements PaymentTokenInterface.
Definition at line 102 of file PaymentToken.php.
getGatewayToken | ( | ) |
Get gateway token ID
Implements PaymentTokenInterface.
Definition at line 119 of file PaymentToken.php.
getIsActive | ( | ) |
Gets is vault payment record active.
Implements PaymentTokenInterface.
Definition at line 156 of file PaymentToken.php.
getIsVisible | ( | ) |
Gets is vault payment record visible.
Implements PaymentTokenInterface.
Definition at line 201 of file PaymentToken.php.
getPaymentMethodCode | ( | ) |
Get payment method code
Implements PaymentTokenInterface.
Definition at line 51 of file PaymentToken.php.
getPublicHash | ( | ) |
Get frontend hash
Implements PaymentTokenInterface.
Definition at line 178 of file PaymentToken.php.
getTokenDetails | ( | ) |
Get token details
Implements PaymentTokenInterface.
Definition at line 136 of file PaymentToken.php.
getType | ( | ) |
Get type
Implements PaymentTokenInterface.
Definition at line 68 of file PaymentToken.php.
setCreatedAt | ( | $timestamp | ) |
Set token creation timestamp
string | $timestamp |
Implements PaymentTokenInterface.
Definition at line 93 of file PaymentToken.php.
setCustomerId | ( | $customerId | ) |
Sets customer ID.
int | $customerId |
Implements PaymentTokenInterface.
Definition at line 42 of file PaymentToken.php.
setExpiresAt | ( | $timestamp | ) |
Set token expiration timestamp
string | $timestamp |
Implements PaymentTokenInterface.
Definition at line 110 of file PaymentToken.php.
setGatewayToken | ( | $token | ) |
Set gateway token ID
string | $token |
Implements PaymentTokenInterface.
Definition at line 127 of file PaymentToken.php.
setIsActive | ( | $isActive | ) |
Sets is vault payment record active.
bool | $isActive |
Implements PaymentTokenInterface.
Definition at line 167 of file PaymentToken.php.
setIsVisible | ( | $isVisible | ) |
Sets is vault payment record visible.
bool | $isVisible |
Implements PaymentTokenInterface.
Definition at line 212 of file PaymentToken.php.
setPaymentMethodCode | ( | $code | ) |
Set payment method code
string | $code |
Implements PaymentTokenInterface.
Definition at line 59 of file PaymentToken.php.
setPublicHash | ( | $hash | ) |
Set frontend hash
string | $hash |
Implements PaymentTokenInterface.
Definition at line 189 of file PaymentToken.php.
setTokenDetails | ( | $details | ) |
Set token details
string | $details |
Implements PaymentTokenInterface.
Definition at line 144 of file PaymentToken.php.
setType | ( | $type | ) |
Set type
string | $type |
Implements PaymentTokenInterface.
Definition at line 76 of file PaymentToken.php.
|
protected |
Definition at line 21 of file PaymentToken.php.