From c689c1354d9c1338de5895b144e852a053825949 Mon Sep 17 00:00:00 2001 From: eileenmcnaughton Date: Sat, 18 Oct 2014 10:52:22 +0000 Subject: [PATCH] api example updates --- .../Contribution/ContributionCreateWithHonoreeContact.php | 2 ++ api/v3/examples/Contribution/ContributionCreateWithNote.php | 2 ++ .../Contribution/ContributionCreateWithSoftCredit.php | 2 ++ .../ContributionCreateWithSoftCreditDefaults.php | 2 ++ api/v3/examples/Contribution/Create.php | 6 +++--- api/v3/examples/Contribution/CreateWithNestedLineItems.php | 4 ++++ 6 files changed, 15 insertions(+), 3 deletions(-) diff --git a/api/v3/examples/Contribution/ContributionCreateWithHonoreeContact.php b/api/v3/examples/Contribution/ContributionCreateWithHonoreeContact.php index 6484675954..1b5edf550e 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithHonoreeContact.php +++ b/api/v3/examples/Contribution/ContributionCreateWithHonoreeContact.php @@ -69,6 +69,8 @@ function contribution_create_expectedresult(){ 'address_id' => '', 'check_number' => '', 'campaign_id' => '', + 'creditnote_id' => '', + 'tax_amount' => '', 'contribution_type_id' => '1', ), ), diff --git a/api/v3/examples/Contribution/ContributionCreateWithNote.php b/api/v3/examples/Contribution/ContributionCreateWithNote.php index e85bdc5500..6cd86fea80 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithNote.php +++ b/api/v3/examples/Contribution/ContributionCreateWithNote.php @@ -72,6 +72,8 @@ function contribution_create_expectedresult(){ 'address_id' => '', 'check_number' => '', 'campaign_id' => '', + 'creditnote_id' => '', + 'tax_amount' => '', 'contribution_type_id' => '1', ), ), diff --git a/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.php b/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.php index 2dcad4cec1..5b4e1cfe1e 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.php +++ b/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.php @@ -75,6 +75,8 @@ function contribution_create_expectedresult(){ 'address_id' => '', 'check_number' => '', 'campaign_id' => '', + 'creditnote_id' => '', + 'tax_amount' => '', 'contribution_type_id' => '1', ), ), diff --git a/api/v3/examples/Contribution/ContributionCreateWithSoftCreditDefaults.php b/api/v3/examples/Contribution/ContributionCreateWithSoftCreditDefaults.php index ffe3b52001..15b486beaa 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithSoftCreditDefaults.php +++ b/api/v3/examples/Contribution/ContributionCreateWithSoftCreditDefaults.php @@ -69,6 +69,8 @@ function contribution_create_expectedresult(){ 'address_id' => '', 'check_number' => '', 'campaign_id' => '', + 'creditnote_id' => '', + 'tax_amount' => '', 'contribution_type_id' => '1', ), ), diff --git a/api/v3/examples/Contribution/Create.php b/api/v3/examples/Contribution/Create.php index a2c2a7296b..b95cd2a3d7 100644 --- a/api/v3/examples/Contribution/Create.php +++ b/api/v3/examples/Contribution/Create.php @@ -50,8 +50,8 @@ function contribution_create_expectedresult(){ 'receive_date' => '20120511000000', 'non_deductible_amount' => '', 'total_amount' => '100', - 'fee_amount' => '', - 'net_amount' => '', + 'fee_amount' => 0, + 'net_amount' => '100', 'trxn_id' => '12345', 'invoice_id' => '67890', 'currency' => 'USD', @@ -68,9 +68,9 @@ function contribution_create_expectedresult(){ 'address_id' => '', 'check_number' => '', 'campaign_id' => '', - 'contribution_type_id' => '1', 'creditnote_id' => '', 'tax_amount' => '', + 'contribution_type_id' => '1', ), ), ); diff --git a/api/v3/examples/Contribution/CreateWithNestedLineItems.php b/api/v3/examples/Contribution/CreateWithNestedLineItems.php index af043ea3ab..cb73ee2c99 100644 --- a/api/v3/examples/Contribution/CreateWithNestedLineItems.php +++ b/api/v3/examples/Contribution/CreateWithNestedLineItems.php @@ -86,6 +86,8 @@ function contribution_create_expectedresult(){ 'address_id' => '', 'check_number' => '', 'campaign_id' => '', + 'creditnote_id' => '', + 'tax_amount' => 0, 'contribution_type_id' => '1', 'api.line_item.create' => array( '0' => array( @@ -108,6 +110,7 @@ function contribution_create_expectedresult(){ 'price_field_value_id' => '', 'financial_type_id' => '', 'deductible_amount' => '', + 'tax_amount' => '', ), ), ), @@ -131,6 +134,7 @@ function contribution_create_expectedresult(){ 'price_field_value_id' => '', 'financial_type_id' => '', 'deductible_amount' => '', + 'tax_amount' => '', ), ), ), -- 2.25.1