Fix case for API action names
This commit is contained in:
parent
89f4fe17ac
commit
36c299d22a
5 changed files with 17 additions and 17 deletions
|
@ -66,11 +66,11 @@ the action does. In the meantime, refer to
|
||||||
### End recurring donation
|
### End recurring donation
|
||||||
|
|
||||||
- Entity: `TwingleDonation`
|
- Entity: `TwingleDonation`
|
||||||
- Action: `EndRecurring`
|
- Action: `Endrecurring`
|
||||||
|
|
||||||
*This section is to be completed: Add parameters documentation and describe what
|
*This section is to be completed: Add parameters documentation and describe what
|
||||||
the action does. In the meantime, refer to
|
the action does. In the meantime, refer to
|
||||||
[the code](https://github.com/systopia/de.systopia.twingle/blob/master/api/v3/TwingleDonation/EndRecurring.php)*
|
[the code](https://github.com/systopia/de.systopia.twingle/blob/master/api/v3/TwingleDonation/Endrecurring.php)*
|
||||||
|
|
||||||
### Cancel donation
|
### Cancel donation
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
use CRM_Twingle_ExtensionUtil as E;
|
use CRM_Twingle_ExtensionUtil as E;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TwingleDonation.EndRecurring API specification (optional)
|
* TwingleDonation.Endrecurring API specification (optional)
|
||||||
* This is used for documentation and validation.
|
* This is used for documentation and validation.
|
||||||
*
|
*
|
||||||
* @param array $params description of fields supported by this API call
|
* @param array $params description of fields supported by this API call
|
||||||
|
@ -25,7 +25,7 @@ use CRM_Twingle_ExtensionUtil as E;
|
||||||
*
|
*
|
||||||
* @see http://wiki.civicrm.org/confluence/display/CRMDOC/API+Architecture+Standards
|
* @see http://wiki.civicrm.org/confluence/display/CRMDOC/API+Architecture+Standards
|
||||||
*/
|
*/
|
||||||
function _civicrm_api3_twingle_donation_EndRecurring_spec(&$params) {
|
function _civicrm_api3_twingle_donation_endrecurring_spec(&$params) {
|
||||||
$params['project_id'] = array(
|
$params['project_id'] = array(
|
||||||
'name' => 'project_id',
|
'name' => 'project_id',
|
||||||
'title' => 'Project ID',
|
'title' => 'Project ID',
|
||||||
|
@ -50,17 +50,17 @@ function _civicrm_api3_twingle_donation_EndRecurring_spec(&$params) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TwingleDonation.EndRecurring API
|
* TwingleDonation.Endrecurring API
|
||||||
*
|
*
|
||||||
* @param array $params
|
* @param array $params
|
||||||
* @return array API result descriptor
|
* @return array API result descriptor
|
||||||
* @see civicrm_api3_create_success
|
* @see civicrm_api3_create_success
|
||||||
* @see civicrm_api3_create_error
|
* @see civicrm_api3_create_error
|
||||||
*/
|
*/
|
||||||
function civicrm_api3_twingle_donation_EndRecurring($params) {
|
function civicrm_api3_twingle_donation_endrecurring($params) {
|
||||||
// Log call if debugging is enabled within civicrm.settings.php.
|
// Log call if debugging is enabled within civicrm.settings.php.
|
||||||
if (defined('TWINGLE_API_LOGGING') && TWINGLE_API_LOGGING) {
|
if (defined('TWINGLE_API_LOGGING') && TWINGLE_API_LOGGING) {
|
||||||
CRM_Core_Error::debug_log_message('TwingleDonation.EndRecurring: ' . json_encode($params, JSON_PRETTY_PRINT));
|
CRM_Core_Error::debug_log_message('TwingleDonation.Endrecurring: ' . json_encode($params, JSON_PRETTY_PRINT));
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -90,7 +90,7 @@ function civicrm_api3_twingle_donation_EndRecurring($params) {
|
||||||
if (!CRM_Sepa_BAO_SEPAMandate::terminateMandate(
|
if (!CRM_Sepa_BAO_SEPAMandate::terminateMandate(
|
||||||
$mandate_id,
|
$mandate_id,
|
||||||
$end_date,
|
$end_date,
|
||||||
E::ts('Mandate closed by TwingleDonation.EndRecurring API call')
|
E::ts('Mandate closed by TwingleDonation.Endrecurring API call')
|
||||||
)) {
|
)) {
|
||||||
throw new CiviCRM_API3_Exception(
|
throw new CiviCRM_API3_Exception(
|
||||||
E::ts('Could not terminate SEPA mandate'),
|
E::ts('Could not terminate SEPA mandate'),
|
Binary file not shown.
|
@ -183,17 +183,17 @@ msgstr "Unbekanntes Land %1."
|
||||||
msgid "Invalid date for parameter \"cancelled_at\"."
|
msgid "Invalid date for parameter \"cancelled_at\"."
|
||||||
msgstr "Ungültiges Datum für Parameter \"cancelled_at\"."
|
msgstr "Ungültiges Datum für Parameter \"cancelled_at\"."
|
||||||
|
|
||||||
#: api/v3/TwingleDonation/Cancel.php api/v3/TwingleDonation/EndRecurring.php
|
#: api/v3/TwingleDonation/Cancel.php api/v3/TwingleDonation/Endrecurring.php
|
||||||
msgid "Could not terminate SEPA mandate"
|
msgid "Could not terminate SEPA mandate"
|
||||||
msgstr "Konnte SEPA-Mandat nicht beenden"
|
msgstr "Konnte SEPA-Mandat nicht beenden"
|
||||||
|
|
||||||
#: api/v3/TwingleDonation/EndRecurring.php
|
#: api/v3/TwingleDonation/Endrecurring.php
|
||||||
msgid "Invalid date for parameter \"ended_at\"."
|
msgid "Invalid date for parameter \"ended_at\"."
|
||||||
msgstr "Ungültiges Datum für Parameter \"ended_at\"."
|
msgstr "Ungültiges Datum für Parameter \"ended_at\"."
|
||||||
|
|
||||||
#: api/v3/TwingleDonation/EndRecurring.php
|
#: api/v3/TwingleDonation/Endrecurring.php
|
||||||
msgid "Mandate closed by TwingleDonation.EndRecurring API call"
|
msgid "Mandate closed by TwingleDonation.Endrecurring API call"
|
||||||
msgstr "Mandat geschlossen durch TwingleDonation.EndRecurring API-Aufruf"
|
msgstr "Mandat geschlossen durch TwingleDonation.Endrecurring API-Aufruf"
|
||||||
|
|
||||||
#: api/v3/TwingleDonation/Submit.php
|
#: api/v3/TwingleDonation/Submit.php
|
||||||
msgid "Contribution with the given transaction ID already exists."
|
msgid "Contribution with the given transaction ID already exists."
|
||||||
|
|
|
@ -158,16 +158,16 @@ msgstr ""
|
||||||
msgid "Invalid date for parameter \"cancelled_at\"."
|
msgid "Invalid date for parameter \"cancelled_at\"."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ./api/v3/TwingleDonation/Cancel.php ./api/v3/TwingleDonation/EndRecurring.php
|
#: ./api/v3/TwingleDonation/Cancel.php ./api/v3/TwingleDonation/Endrecurring.php
|
||||||
msgid "Could not terminate SEPA mandate"
|
msgid "Could not terminate SEPA mandate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ./api/v3/TwingleDonation/EndRecurring.php
|
#: ./api/v3/TwingleDonation/Endrecurring.php
|
||||||
msgid "Invalid date for parameter \"ended_at\"."
|
msgid "Invalid date for parameter \"ended_at\"."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ./api/v3/TwingleDonation/EndRecurring.php
|
#: ./api/v3/TwingleDonation/Endrecurring.php
|
||||||
msgid "Mandate closed by TwingleDonation.EndRecurring API call"
|
msgid "Mandate closed by TwingleDonation.Endrecurring API call"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ./api/v3/TwingleDonation/Submit.php
|
#: ./api/v3/TwingleDonation/Submit.php
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue