CREDITCARDPAYMENTMETHODDETAIL
Stores credit card detail information for a revenue record when the payment method is credit card.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
CARDHOLDERNAME |
nvarchar(255) |
|
Default = '' |
The name on the credit card that was used when making this gift. |
EXPIRESON |
UDT_FUZZYDATE |
|
Default = '00000000' |
The expiration date of the credit card for a credit card payment. |
AUTHORIZATIONCODE |
nvarchar(20) |
|
Default = '' |
The authorization code for a credit card payment, if applicable. |
DATEADDED |
datetime |
|
Default = getdate() |
Indicates the date this record was added. |
DATECHANGED |
datetime |
|
Default = getdate() |
Indicates the date this record was last changed. |
TS |
timestamp |
|
|
Timestamp. |
TSLONG |
bigint (Computed) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
CREDITCARDPARTIALNUMBER |
nvarchar(4) |
|
Default = '' |
Used to store the last few digits of a credit card number for credit card payments. |
TRANSACTIONID |
uniqueidentifier |
yes |
|
The BBPS transaction ID. |
MERCHANTACCOUNTID |
uniqueidentifier |
yes |
|
The BBPS merchant account ID. |
SETTLEMENTTYPECODE |
tinyint |
|
Default = 0 |
|
SETTLEMENTTYPE |
nvarchar(14) (Computed) |
yes |
CASE [SETTLEMENTTYPECODE] WHEN 0 THEN N'Unsettled' WHEN 1 THEN N'Manually' WHEN 2 THEN N'System settled' END |
|
SETTLEMENTDATE |
datetime |
yes |
|
|
VENDORID |
nvarchar(50) |
|
Default = '' |
|
FEE |
money |
yes |
Default = 0 |
|
NETAMOUNT |
money |
yes |
Default = 0 |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ID |
uniqueidentifier |
|
REVENUEPAYMENTMETHOD.ID
|
Primary Key. |
CREDITTYPECODEID |
uniqueidentifier |
yes |
CREDITTYPECODE.ID
|
The type of credit card used when making a credit card payment. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_CREDITCARDPAYMENTMETHODDETAIL_CREDITCARDPARTIALNUMBER |
CREDITCARDPARTIALNUMBER |
|
|
|
IX_CREDITCARDPAYMENTMETHODDETAIL_DATEADDED |
DATEADDED |
|
|
yes |
IX_CREDITCARDPAYMENTMETHODDETAIL_DATECHANGED |
DATECHANGED |
|
|
|
IX_CREDITCARDPAYMENTMETHODDETAIL_TRANSACTIONID |
TRANSACTIONID |
|
|
|
IX_CREDITCARDPAYMENTMETHODDETAIL_VENDORID |
VENDORID |
|
|
|
PK_CREDITCARDPAYMENTMETHODDETAIL |
ID |
yes |
yes |
|
Triggers
Referenced by