X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FOrder%2FGet.php;h=720596c3d716f9d0b6b6bd3303c80961cf2660e4;hb=1d8ee3d65d4378d6e61eb9eb82cd3b33d70c502e;hp=7f3dace4c9763738b93f44bc2c6d890fff636b29;hpb=1bf0c1aee7763286d31559d4719239fea7383f0e;p=civicrm-core.git diff --git a/api/v3/examples/Order/Get.php b/api/v3/examples/Order/Get.php index 7f3dace4c9..720596c3d7 100644 --- a/api/v3/examples/Order/Get.php +++ b/api/v3/examples/Order/Get.php @@ -19,7 +19,8 @@ function order_get_example() { $errorCode = $e->getErrorCode(); $errorData = $e->getExtraParams(); return array( - 'error' => $errorMessage, + 'is_error' => 1, + 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, ); @@ -63,10 +64,11 @@ function order_get_expectedresult() { 'thankyou_date' => '', 'contribution_source' => '', 'amount_level' => '', + 'contribution_recur_id' => '', 'is_test' => 0, 'is_pay_later' => 0, 'contribution_status_id' => '1', - 'check_number' => '', + 'contribution_check_number' => '', 'contribution_campaign_id' => '', 'financial_type_id' => '1', 'financial_type' => 'Donation', @@ -78,7 +80,6 @@ function order_get_expectedresult() { 'fulfilled_date' => '', 'contribution_start_date' => '', 'contribution_end_date' => '', - 'contribution_recur_id' => '', 'financial_account_id' => '1', 'accounting_code' => '4200', 'campaign_id' => '', @@ -89,7 +90,7 @@ function order_get_expectedresult() { 'payment_instrument' => 'Check', 'payment_instrument_id' => '4', 'instrument_id' => '4', - 'contribution_check_number' => '', + 'check_number' => '', 'id' => '1', 'contribution_type_id' => '1', 'line_items' => array( @@ -105,7 +106,8 @@ function order_get_expectedresult() { 'line_total' => '100.00', 'price_field_value_id' => '1', 'financial_type_id' => '1', - 'deductible_amount' => '0.00', + 'non_deductible_amount' => '0.00', + 'contribution_type_id' => '1', ), ), ),