1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
3 <base>CRM/Contribute
</base>
4 <class>ContributionRecur
</class>
5 <name>civicrm_contribution_recur
</name>
8 <title>Recurring Contribution
</title>
11 <uniqueName>contribution_recur_id
</uniqueName>
12 <title>Recurring Contribution ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
15 <comment>Contribution Recur ID
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>contact_id
</name>
24 <title>Contact
</title>
25 <type>int unsigned
</type>
26 <required>true
</required>
27 <comment>Foreign key to civicrm_contact.id.
</comment>
30 <type>EntityRef
</type>
34 <name>contact_id
</name>
35 <table>civicrm_contact
</table>
38 <onDelete>CASCADE
</onDelete>
44 <required>true
</required>
45 <comment>Amount to be collected (including any sales tax) by payment processor each recurrence.
</comment>
53 <title>Currency
</title>
56 <default>NULL
</default>
57 <comment>3 character string, value from config setting or input via user.
</comment>
60 <table>civicrm_currency
</table>
61 <keyColumn>name
</keyColumn>
62 <labelColumn>full_name
</labelColumn>
63 <nameColumn>name
</nameColumn>
64 <abbrColumn>symbol
</abbrColumn>
71 <name>frequency_unit
</name>
72 <title>Frequency Unit
</title>
75 <default>'month'
</default>
76 <comment>Time units for recurrence of payment.
</comment>
78 <optionGroupName>recur_frequency_units
</optionGroupName>
79 <keyColumn>name
</keyColumn>
87 <name>frequency_interval
</name>
88 <title>Interval (number of units)
</title>
89 <type>int unsigned
</type>
90 <required>true
</required>
91 <comment>Number of time units for recurrence of payment.
</comment>
98 <name>installments
</name>
99 <title>Number of Installments
</title>
100 <type>int unsigned
</type>
101 <comment>Total number of payments to be made. Set this to
0 if this is an open-ended commitment i.e. no set end date.
</comment>
108 <name>start_date
</name>
109 <title>Start Date
</title>
110 <type>datetime
</type>
111 <required>true
</required>
112 <comment>The date the first scheduled recurring contribution occurs.
</comment>
115 <type>Select Date
</type>
116 <formatType>activityDateTime
</formatType>
118 <uniqueName>contribution_recur_start_date
</uniqueName>
119 <uniqueTitle>Recurring Contribution Start Date
</uniqueTitle>
122 <name>create_date
</name>
123 <title>Created Date
</title>
124 <type>datetime
</type>
125 <required>true
</required>
126 <comment>When this recurring contribution record was created.
</comment>
129 <type>Select Date
</type>
130 <formatType>activityDateTime
</formatType>
132 <uniqueName>contribution_recur_create_date
</uniqueName>
133 <uniqueTitle>Recurring Contribution Create Date
</uniqueTitle>
136 <name>modified_date
</name>
137 <title>Modified Date
</title>
138 <type>datetime
</type>
139 <comment>Last updated date for this record. mostly the last time a payment was received
</comment>
142 <type>Select Date
</type>
143 <formatType>activityDateTime
</formatType>
145 <uniqueName>contribution_recur_modified_date
</uniqueName>
146 <uniqueTitle>Recurring Contribution Modified Date
</uniqueTitle>
149 <name>cancel_date
</name>
150 <title>Cancel Date
</title>
151 <type>datetime
</type>
152 <comment>Date this recurring contribution was cancelled by contributor- if we can get access to it
</comment>
155 <type>Select Date
</type>
156 <formatType>activityDate
</formatType>
158 <uniqueName>contribution_recur_cancel_date
</uniqueName>
159 <uniqueTitle>Recurring Contribution Cancel Date
</uniqueTitle>
162 <name>cancel_reason
</name>
164 <title>Cancellation Reason
</title>
165 <uniqueName>contribution_recur_cancel_reason
</uniqueName>
166 <uniqueTitle>Recurring Contribution Cancel Reason
</uniqueTitle>
167 <comment>Free text field for a reason for cancelling
</comment>
175 <name>end_date
</name>
176 <title>Recurring Contribution End Date
</title>
177 <type>datetime
</type>
178 <comment>Date this recurring contribution finished successfully
</comment>
181 <type>Select Date
</type>
182 <formatType>activityDate
</formatType>
184 <uniqueName>contribution_recur_end_date
</uniqueName>
185 <uniqueTitle>Recurring Contribution End Date
</uniqueTitle>
188 <name>processor_id
</name>
189 <uniqueName>contribution_recur_processor_id
</uniqueName>
190 <title>Processor ID
</title>
193 <comment>Possibly needed to store a unique identifier for this recurring payment order - if this is available from the processor??
</comment>
200 <name>payment_token_id
</name>
201 <title>Payment Token ID
</title>
202 <type>int unsigned
</type>
203 <comment>Optionally used to store a link to a payment token used for this recurring contribution.
</comment>
207 <name>payment_token_id
</name>
208 <table>civicrm_payment_token
</table>
211 <onDelete>SET NULL
</onDelete>
215 <uniqueName>contribution_recur_trxn_id
</uniqueName>
216 <title>Transaction ID
</title>
219 <comment>unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method
</comment>
226 <name>invoice_id
</name>
227 <title>Invoice ID
</title>
230 <comment>unique invoice id, system generated or passed in
</comment>
237 <name>UI_contrib_trxn_id
</name>
238 <fieldName>trxn_id
</fieldName>
239 <unique>true
</unique>
243 <name>UI_contrib_invoice_id
</name>
244 <fieldName>invoice_id
</fieldName>
245 <unique>true
</unique>
249 <name>contribution_status_id
</name>
250 <uniqueName>contribution_recur_contribution_status_id
</uniqueName>
251 <title>Status
</title>
252 <type>int unsigned
</type>
254 <import>true
</import>
257 <optionGroupName>contribution_recur_status
</optionGroupName>
264 <name>index_contribution_status
</name>
265 <fieldName>contribution_status_id
</fieldName>
273 <import>true
</import>
275 <type>CheckBox
</type>
279 <name>cycle_day
</name>
280 <title>Cycle Day
</title>
281 <type>int unsigned
</type>
283 <required>true
</required>
284 <comment>Day in the period when the payment should be charged e.g.
1st of month,
15th etc.
</comment>
291 <name>next_sched_contribution_date
</name>
292 <title>Next Scheduled Contribution Date
</title>
293 <type>datetime
</type>
294 <comment>Next scheduled date
</comment>
297 <type>Select Date
</type>
298 <formatType>activityDate
</formatType>
300 <uniqueName>contribution_recur_next_sched_contribution_date
</uniqueName>
301 <uniqueTitle>Next Scheduled Recurring Contribution
</uniqueTitle>
304 <name>failure_count
</name>
305 <title>Number of Failures
</title>
306 <type>int unsigned
</type>
308 <comment>Number of failed charge attempts since last success. Business rule could be set to deactivate on more than x failures.
</comment>
315 <name>failure_retry_date
</name>
316 <type>datetime
</type>
317 <title>Retry Failed Attempt Date
</title>
318 <comment>Date to retry failed attempt
</comment>
321 <type>Select Date
</type>
322 <formatType>activityDate
</formatType>
324 <uniqueName>contribution_recur_failure_retry_date
</uniqueName>
325 <uniqueTitle>Failed Recurring Contribution Retry Date
</uniqueTitle>
328 <name>auto_renew
</name>
329 <title>Auto Renew
</title>
331 <required>true
</required>
333 <comment>Some systems allow contributor to set a number of installments - but then auto-renew the subscription or commitment if they do not cancel.
</comment>
336 <type>CheckBox
</type>
340 <name>payment_processor_id
</name>
341 <title>Payment Processor
</title>
342 <uniqueName>contribution_recur_payment_processor_id
</uniqueName>
343 <type>int unsigned
</type>
344 <comment>Foreign key to civicrm_payment_processor.id
</comment>
347 <table>civicrm_payment_processor
</table>
348 <keyColumn>id
</keyColumn>
349 <labelColumn>name
</labelColumn>
356 <name>payment_processor_id
</name>
357 <table>civicrm_payment_processor
</table>
360 <onDelete>SET NULL
</onDelete>
363 <name>financial_type_id
</name>
364 <title>Financial Type
</title>
365 <export>false
</export>
366 <type>int unsigned
</type>
367 <comment>FK to Financial Type
</comment>
370 <table>civicrm_financial_type
</table>
371 <keyColumn>id
</keyColumn>
372 <labelColumn>name
</labelColumn>
379 <name>financial_type_id
</name>
380 <table>civicrm_financial_type
</table>
383 <onDelete>SET NULL
</onDelete>
386 <name>payment_instrument_id
</name>
387 <title>Payment Method
</title>
388 <type>int unsigned
</type>
389 <comment>FK to Payment Instrument
</comment>
391 <optionGroupName>payment_instrument
</optionGroupName>
399 <name>UI_contribution_recur_payment_instrument_id
</name>
400 <fieldName>payment_instrument_id
</fieldName>
404 <name>campaign_id
</name>
405 <uniqueName>contribution_campaign_id
</uniqueName>
406 <type>int unsigned
</type>
407 <title>Campaign
</title>
408 <import>true
</import>
409 <comment>The campaign for which this contribution has been triggered.
</comment>
411 <table>civicrm_campaign
</table>
412 <keyColumn>id
</keyColumn>
413 <labelColumn>title
</labelColumn>
421 <name>campaign_id
</name>
422 <table>civicrm_campaign
</table>
424 <onDelete>SET NULL
</onDelete>
427 <name>is_email_receipt
</name>
428 <title>Send email Receipt?
</title>
430 <comment>if true, receipt is automatically emailed to contact on each successful payment
</comment>
434 <type>CheckBox
</type>