RECEIVABLEPAYMENTCREDITCARD

Gives the credit card details for a given payment.

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 payment.
CREDITCARDPARTIALNUMBER nvarchar(4) Default = '' Used to store the last few digits of a credit card number for credit card payments.
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.
TRANSACTIONID uniqueidentifier yes The BBPS transaction ID.
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier RECEIVABLEPAYMENT.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_RECEIVABLEPAYMENTCREDITCARD_DATEADDED DATEADDED yes
IX_RECEIVABLEPAYMENTCREDITCARD_DATECHANGED DATECHANGED
PK_RECEIVABLEPAYMENTCREDITCARD ID yes yes

Triggers

Trigger Name Description
TR_RECEIVABLEPAYMENTCREDITCARD_RECEIVABLEPAYMENTTYPECORRECT
TR_RECEIVABLEPAYMENTCREDITCARD_AUDIT_UPDATE
TR_RECEIVABLEPAYMENTCREDITCARD_AUDIT_DELETE