projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #9783 from mattwire/back_to_single_lang
[civicrm-core.git]
/
api
/
v3
/
examples
/
Contact
/
CreateParticipantPayment.php
diff --git
a/api/v3/examples/Contact/CreateParticipantPayment.php
b/api/v3/examples/Contact/CreateParticipantPayment.php
index 80021fa595a1d82b85255114007102dfbccc3c1b..7a66c4277b84121cde4e1269030a122a60d13866 100644
(file)
--- a/
api/v3/examples/Contact/CreateParticipantPayment.php
+++ b/
api/v3/examples/Contact/CreateParticipantPayment.php
@@
-13,7
+13,7
@@
function contact_create_example() {
'contact_type' => 'Individual',
'display_name' => 'dlobo',
'api.participant' => array(
'contact_type' => 'Individual',
'display_name' => 'dlobo',
'api.participant' => array(
- 'event_id' => 4
0
,
+ 'event_id' => 4
2
,
'status_id' => 1,
'role_id' => 1,
'format.only_id' => 1,
'status_id' => 1,
'role_id' => 1,
'format.only_id' => 1,
@@
-38,7
+38,8
@@
function contact_create_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
- 'error' => $errorMessage,
+ 'is_error' => 1,
+ 'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
'error_code' => $errorCode,
'error_data' => $errorData,
);
@@
-73,7
+74,7
@@
function contact_create_expectedresult() {
'is_opt_out' => 0,
'legal_identifier' => '',
'external_identifier' => '',
'is_opt_out' => 0,
'legal_identifier' => '',
'external_identifier' => '',
- 'sort_name' => '',
+ 'sort_name' => '
dlobo
',
'display_name' => 'dlobo',
'nick_name' => '',
'legal_name' => '',
'display_name' => 'dlobo',
'nick_name' => '',
'legal_name' => '',