Fix case for API action names

This commit is contained in:
Jens Schuppe 2018-12-03 09:57:56 +01:00
parent 89f4fe17ac
commit 36c299d22a
5 changed files with 17 additions and 17 deletions

View file

@ -66,11 +66,11 @@ the action does. In the meantime, refer to
### End recurring donation
- Entity: `TwingleDonation`
- Action: `EndRecurring`
- Action: `Endrecurring`
*This section is to be completed: Add parameters documentation and describe what
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

View file

@ -16,7 +16,7 @@
use CRM_Twingle_ExtensionUtil as E;
/**
* TwingleDonation.EndRecurring API specification (optional)
* TwingleDonation.Endrecurring API specification (optional)
* This is used for documentation and validation.
*
* @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
*/
function _civicrm_api3_twingle_donation_EndRecurring_spec(&$params) {
function _civicrm_api3_twingle_donation_endrecurring_spec(&$params) {
$params['project_id'] = array(
'name' => '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
* @return array API result descriptor
* @see civicrm_api3_create_success
* @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.
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 {
@ -90,7 +90,7 @@ function civicrm_api3_twingle_donation_EndRecurring($params) {
if (!CRM_Sepa_BAO_SEPAMandate::terminateMandate(
$mandate_id,
$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(
E::ts('Could not terminate SEPA mandate'),

Binary file not shown.

View file

@ -183,17 +183,17 @@ msgstr "Unbekanntes Land %1."
msgid "Invalid date for 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"
msgstr "Konnte SEPA-Mandat nicht beenden"
#: api/v3/TwingleDonation/EndRecurring.php
#: api/v3/TwingleDonation/Endrecurring.php
msgid "Invalid date for parameter \"ended_at\"."
msgstr "Ungültiges Datum für Parameter \"ended_at\"."
#: api/v3/TwingleDonation/EndRecurring.php
msgid "Mandate closed by TwingleDonation.EndRecurring API call"
msgstr "Mandat geschlossen durch TwingleDonation.EndRecurring API-Aufruf"
#: api/v3/TwingleDonation/Endrecurring.php
msgid "Mandate closed by TwingleDonation.Endrecurring API call"
msgstr "Mandat geschlossen durch TwingleDonation.Endrecurring API-Aufruf"
#: api/v3/TwingleDonation/Submit.php
msgid "Contribution with the given transaction ID already exists."

View file

@ -158,16 +158,16 @@ msgstr ""
msgid "Invalid date for parameter \"cancelled_at\"."
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"
msgstr ""
#: ./api/v3/TwingleDonation/EndRecurring.php
#: ./api/v3/TwingleDonation/Endrecurring.php
msgid "Invalid date for parameter \"ended_at\"."
msgstr ""
#: ./api/v3/TwingleDonation/EndRecurring.php
msgid "Mandate closed by TwingleDonation.EndRecurring API call"
#: ./api/v3/TwingleDonation/Endrecurring.php
msgid "Mandate closed by TwingleDonation.Endrecurring API call"
msgstr ""
#: ./api/v3/TwingleDonation/Submit.php