1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Financial
</base>
5 <class>PaymentToken
</class>
6 <name>civicrm_payment_token
</name>
7 <comment>Payment Token
</comment>
11 <uniqueName>payment_token_id
</uniqueName>
12 <title>Payment Token ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
15 <comment>Payment Token ID
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>contact_id
</name>
24 <title>Contact ID
</title>
25 <type>int unsigned
</type>
26 <required>true
</required>
27 <comment>FK to Contact ID for the owner of the token
</comment>
31 <name>contact_id
</name>
32 <table>civicrm_contact
</table>
35 <onDelete>CASCADE
</onDelete>
38 <name>payment_processor_id
</name>
39 <title>Payment Processor ID
</title>
40 <type>int unsigned
</type>
41 <required>true
</required>
46 <name>payment_processor_id
</name>
47 <table>civicrm_payment_processor
</table>
50 <onDelete>RESTRICT
</onDelete>
57 <required>true
</required>
58 <comment>Externally provided token string
</comment>
62 <name>created_date
</name>
63 <title>Created Date
</title>
64 <type>timestamp
</type>
65 <comment>Date created
</comment>
66 <default>CURRENT_TIMESTAMP
</default>
70 <name>created_id
</name>
71 <title>Created ID
</title>
72 <type>int unsigned
</type>
73 <comment>Contact ID of token creator
</comment>
77 <name>created_id
</name>
78 <table>civicrm_contact
</table>
81 <onDelete>SET NULL
</onDelete>
84 <name>expiry_date
</name>
85 <title>Expiry Date
</title>
87 <comment>Date this token expires
</comment>
95 <comment>Email at the time of token creation. Useful for fraud forensics
</comment>
99 <name>billing_first_name
</name>
100 <title>Billing First Name
</title>
103 <comment>Billing first name at the time of token creation. Useful for fraud forensics
</comment>
107 <name>billing_middle_name
</name>
108 <title>Billing Middle Name
</title>
111 <comment>Billing middle name at the time of token creation. Useful for fraud forensics
</comment>
115 <name>billing_last_name
</name>
116 <title>Billing Last Name
</title>
119 <comment>Billing last name at the time of token creation. Useful for fraud forensics
</comment>
123 <name>masked_account_number
</name>
124 <title>Masked Account Number
</title>
127 <comment>Holds the part of the card number or account details that may be retained or displayed
</comment>
131 <name>ip_address
</name>
132 <title>IP Address
</title>
135 <comment>IP used when creating the token. Useful for fraud forensics
</comment>