Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/storage/PhortunePaymentMethod.php
Show All 23 Lines | final class PhortunePaymentMethod extends PhortuneDAO | ||||
private $account = self::ATTACHABLE; | private $account = self::ATTACHABLE; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'metadata' => self::SERIALIZATION_JSON, | 'metadata' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'name' => 'text255', | |||||
'status' => 'text64', | |||||
'brand' => 'text64', | |||||
'expires' => 'text16', | |||||
'providerType' => 'text16', | |||||
'providerDomain' => 'text64', | |||||
'lastFourDigits' => 'text16', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_account' => array( | |||||
'columns' => array('accountPHID', 'status'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorPHIDConstants::PHID_TYPE_PAYM); | PhabricatorPHIDConstants::PHID_TYPE_PAYM); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |