commit
82cff43c29
2 changed files with 9 additions and 0 deletions
|
@ -90,6 +90,7 @@ The action accepts the following parameters:
|
|||
| <nobr>`user_street`</nobr> | String | The street address of the contact | | |
|
||||
| <nobr>`user_postal_code`</nobr> | String | The postal code of the contact | | |
|
||||
| <nobr>`user_city`</nobr> | String | The city of the contact | | |
|
||||
| <nobr>`user_country`</nobr> | String | The country of the contact | [ISO 3166-1 Alpha-2 country codes](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) | |
|
||||
| <nobr>`user_telephone`</nobr> | String | The telephone number of the contact | | |
|
||||
| <nobr>`user_company`</nobr> | String | The company of the contact | | |
|
||||
| <nobr>`user_extrafield`</nobr> | String | Additional information of the contact | | |
|
||||
|
|
|
@ -203,6 +203,13 @@ function _civicrm_api3_twingle_donation_Submit_spec(&$params) {
|
|||
'api.required' => 0,
|
||||
'description' => E::ts('The city of the contact.'),
|
||||
);
|
||||
$params['user_country'] = array(
|
||||
'name' => 'user_country',
|
||||
'title' => E::ts('Country'),
|
||||
'type' => CRM_Utils_Type::T_STRING,
|
||||
'api.required' => 0,
|
||||
'description' => E::ts('The country of the contact.'),
|
||||
);
|
||||
$params['user_telephone'] = array(
|
||||
'name' => 'user_telephone',
|
||||
'title' => E::ts('Telephone'),
|
||||
|
@ -287,6 +294,7 @@ function civicrm_api3_twingle_donation_Submit($params) {
|
|||
'user_street' => 'street_address',
|
||||
'user_postal_code' => 'postal_code',
|
||||
'user_city' => 'city',
|
||||
'user_country' => 'country',
|
||||
) as $address_param => $address_component) {
|
||||
if (!empty($params[$address_param])) {
|
||||
$params[$address_component] = $params[$address_param];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue