Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106303254
PhortuneCharge.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Mar 24, 15:52
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Mar 26, 15:52 (2 d)
Engine
blob
Format
Raw Data
Handle
25163918
Attached To
rPH Phabricator
PhortuneCharge.php
View Options
<?php
/**
* A charge is a charge (or credit) against an account and represents an actual
* transfer of funds. Each charge is normally associated with a product, but a
* product may have multiple charges. For example, a subscription may have
* monthly charges, or a product may have a failed charge followed by a
* successful charge.
*/
final
class
PhortuneCharge
extends
PhortuneDAO
{
const
STATUS_PENDING
=
'charge:pending'
;
const
STATUS_AUTHORIZED
=
'charge:authorized'
;
const
STATUS_CHARGED
=
'charge:charged'
;
const
STATUS_FAILED
=
'charge:failed'
;
protected
$accountPHID
;
protected
$purchasePHID
;
protected
$paymentMethodPHID
;
protected
$amountInCents
;
protected
$status
;
protected
$metadata
;
public
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_AUX_PHID
=>
true
,
self
::
CONFIG_SERIALIZATION
=>
array
(
'metadata'
=>
self
::
SERIALIZATION_JSON
,
),
)
+
parent
::
getConfiguration
();
}
public
function
generatePHID
()
{
return
PhabricatorPHID
::
generateNewPHID
(
PhabricatorPHIDConstants
::
PHID_TYPE_CHRG
);
}
}
Event Timeline
Log In to Comment