diff --git a/README.md b/README.md index b4450f1..47d6cb6 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ The action accepts the following parameters: |----------------------------------------|---------|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------| | `project_id` | String | The Twingle project ID | | Yes | | `trx_id` | String | The unique transaction ID of the donation | A unique transaction ID for the donation. | Yes | -| `confirmed_at` | String | The date when the donation was issued | A string representing a date in the format `YYYYMMDD` | Yes | +| `confirmed_at` | String | The date when the donation was issued | A string representing a date in the format `YmdHis` | Yes | | `purpose` | String | The purpose of the donation | | | | `amount` | Integer | The donation amount in minor currency unit | | Yes | | `currency` | String | The ISO-4217 currency code of the donation | A valid ISO-4217 currency code | Yes | @@ -82,7 +82,7 @@ The action accepts the following parameters: | `debit_account_holder` | String | The account holder for SEPA Direct Debit payments | | | | `is_anonymous` | Boolean | Whether the donation is submitted anonymously | | | | `user_gender` | String | The gender of the contact | | | -| `user_birthdate` | String | The date of birth of the contact | A string representing a date in the format `YYYYMMDD` | | +| `user_birthdate` | String | The date of birth of the contact | A string representing a date in the format `Ymd` | | | `user_title` | String | The formal title of the contact | | | | `user_email` | String | The e-mail address of the contact | A valid e-mail address | | | `user_firstname` | String | The first name of the contact | | | @@ -109,7 +109,7 @@ The action accepts the following parameters: |---------------------------|---------|------------------------------------------------|-------------------------------------------------------|----------| | `project_id` | String | The Twingle project ID | | Yes | | `trx_id` | String | The unique transaction ID of the donation | A unique transaction ID for the donation. | Yes | -| `ended_at` | Integer | The date when the recurring donation was ended | A string representing a date in the format `YYYYMMDD` | Yes | +| `ended_at` | Integer | The date when the recurring donation was ended | A string representing a date in the format `YmdHis` | Yes | You may also refer to [the code](https://github.com/systopia/de.systopia.twingle/blob/master/api/v3/TwingleDonation/Endrecurring.php) @@ -126,8 +126,8 @@ The action accepts the following parameters: |------------------------------|--------|----------------------------------------------------|-------------------------------------------------------|----------| | `project_id` | String | The Twingle project ID | | Yes | | `trx_id` | String | The unique transaction ID of the donation | A unique transaction ID for the donation. | Yes | -| `cancelled_at` | String | The date when the recurring donation was cancelled | A string representing a date in the format `YYYYMMDD` | Yes | -| `cancel_reason` | String | he reason for the donation being cancelled | | Yes | +| `cancelled_at` | String | The date when the recurring donation was cancelled | A string representing a date in the format `YmdHis` | Yes | +| `cancel_reason` | String | The reason for the donation being cancelled | | Yes | You may also refer to [the code](https://github.com/systopia/de.systopia.twingle/blob/master/api/v3/TwingleDonation/Cancel.php) diff --git a/api/v3/TwingleDonation/Cancel.php b/api/v3/TwingleDonation/Cancel.php index d46cdf0..cd0d60e 100644 --- a/api/v3/TwingleDonation/Cancel.php +++ b/api/v3/TwingleDonation/Cancel.php @@ -45,7 +45,7 @@ function _civicrm_api3_twingle_donation_Cancel_spec(&$params) { 'title' => 'Cancelled at', 'type' => CRM_Utils_Type::T_INT, 'api.required' => 1, - 'description' => 'The date when the donation was cancelled, format: YYYYMMDD.', + 'description' => 'The date when the donation was cancelled, format: YmdHis.', ); $params['cancel_reason'] = array( 'name' => 'cancel_reason', diff --git a/api/v3/TwingleDonation/Endrecurring.php b/api/v3/TwingleDonation/Endrecurring.php index 148d02c..438b3e1 100644 --- a/api/v3/TwingleDonation/Endrecurring.php +++ b/api/v3/TwingleDonation/Endrecurring.php @@ -45,7 +45,7 @@ function _civicrm_api3_twingle_donation_endrecurring_spec(&$params) { 'title' => 'Ended at', 'type' => CRM_Utils_Type::T_INT, 'api.required' => 1, - 'description' => 'The date when the recurring donation was ended, format: YYYYMMDD.', + 'description' => 'The date when the recurring donation was ended, format: YmdHis.', ); } diff --git a/api/v3/TwingleDonation/Submit.php b/api/v3/TwingleDonation/Submit.php index 82c565e..0c812ad 100644 --- a/api/v3/TwingleDonation/Submit.php +++ b/api/v3/TwingleDonation/Submit.php @@ -46,7 +46,7 @@ function _civicrm_api3_twingle_donation_Submit_spec(&$params) { 'title' => 'Confirmed at', 'type' => CRM_Utils_Type::T_STRING, 'api.required' => 1, - 'description' => 'The date when the donation was issued, format: YYYYMMDD.', + 'description' => 'The date when the donation was issued, format: YmdHis.', ); $params['purpose'] = array( 'name' => 'purpose', @@ -152,7 +152,7 @@ function _civicrm_api3_twingle_donation_Submit_spec(&$params) { 'title' => 'Date of birth', 'type' => CRM_Utils_Type::T_STRING, 'api.required' => 0, - 'description' => 'The date of birth of the contact, format: YYYYMMDD.', + 'description' => 'The date of birth of the contact, format: Ymd.', ); $params['user_title'] = array( 'name' => 'user_title',