RECEIVABLEPAYMENTCREDITCARD (4.0SP20)

Gives the credit card details for a given payment.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

CREDITTYPECODEID

uniqueidentifier

true

The type of credit card used when making a credit card payment.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

CARDHOLDERNAME

nvarchar(255)

false

''

The name on the credit card that was used when making this payment.

CREDITCARDPARTIALNUMBER

nvarchar(4)

false

''

Used to store the last few digits of a credit card number for credit card payments.

EXPIRESON

UDT_FUZZYDATE

false

'00000000'

The expiration date of the credit card for a credit card payment.

AUTHORIZATIONCODE

nvarchar(20)

false

''

The authorization code for a credit card payment, if applicable.

TRANSACTIONID

uniqueidentifier

true

The BBPS transaction ID.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_RECEIVABLEPAYMENTCREDITCARD_DATEADDED

DATEADDED

False

False

True

IX_RECEIVABLEPAYMENTCREDITCARD_DATECHANGED

DATECHANGED

False

False

False

PK_RECEIVABLEPAYMENTCREDITCARD

ID

True

True

False

Triggers
Trigger Name Description

TR_RECEIVABLEPAYMENTCREDITCARD_RECEIVABLEPAYMENTTYPECORRECT

TR_RECEIVABLEPAYMENTCREDITCARD_AUDIT_UPDATE

TR_RECEIVABLEPAYMENTCREDITCARD_AUDIT_DELETE