Skip to content
Browse files

New client features - transaction list & detail methods, fetch ideal …

…bank info (EU/NL), card on file support
  • Loading branch information...
1 parent 5e7f8c1 commit 627ae85461f1be912c01f58270b6cb4603c2f64f @joshuafarr joshuafarr committed Mar 5, 2012
View
266 src/FirstGivingAPIClient.php
@@ -1,21 +1,21 @@
<?php
-// Copyright 2010 FirstGiving.com. All Rights Reserved.
+// Copyright 2010-2012 FirstGiving.com. All Rights Reserved.
//
// +---------------------------------------------------------------------------+
-// | FirstGiving.com PHP API Client |
+// | FirstGiving.com PHP API Client |
// +---------------------------------------------------------------------------+
-// | Copyright (c) 2010 FirstGiving.com |
+// | Copyright (c) 2010-2012 FirstGiving.com |
// | All rights reserved. |
// | |
// | Redistribution and use in source and binary forms, with or without |
// | modification, are permitted provided that the following conditions |
// | are met: |
// | |
// | 1. Redistributions of source code must retain the above copyright |
-// | notice, this list of conditions and the following disclaimer. |
+// | notice, this list of conditions and the following disclaimer. |
// | 2. Redistributions in binary form must reproduce the above copyright |
-// | notice, this list of conditions and the following disclaimer in the |
-// | documentation and/or other materials provided with the distribution. |
+// | notice, this list of conditions and the following disclaimer in the |
+// | documentation and/or other materials provided with the distribution. |
// | |
// | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
// | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
@@ -38,6 +38,9 @@
require_once dirname(__FILE__) . '/FirstGivingRecurringCreditCardProfileRequest.php';
require_once dirname(__FILE__) . '/FirstGivingRecurringCreditCardProfileResponse.php';
require_once dirname(__FILE__) . '/FirstGivingECheckPayment.php';
+require_once dirname(__FILE__) . '/FirstGivingIdealPaymentInquiryResponse.php';
+require_once dirname(__FILE__) . '/FirstGivingIdealRedirectResponse.php';
+require_once dirname(__FILE__) . '/FirstGivingIdealRequest.php';
require_once dirname(__FILE__) . '/FirstGivingCreditCardDonationResponse.php';
require_once dirname(__FILE__) . '/FirstGivingPaypalExpressCheckoutRequest.php';
require_once dirname(__FILE__) . '/FirstGivingPaypalExpressCheckoutRedirectResponse.php';
@@ -46,7 +49,8 @@
require_once dirname(__FILE__) . '/Exception/FirstGivingGeneralException.php';
require_once dirname(__FILE__) . '/Exception/FirstGivingCurlException.php';
require_once dirname(__FILE__) . '/Exception/FirstGivingInvalidInputException.php';
-
+require_once dirname(__FILE__) . '/FirstGivingCardOnFileResponse.php';
+require_once dirname(__FILE__) . '/FirstGivingTransactionDetailResponse.php';
class FirstGivingAPIClient {
@@ -73,6 +77,22 @@ public function __construct($applicationId, $securityToken, $apiEndpoint,$logger
$this->_logger = $logger;
}
+ public function getApplicationId() {
+ return $this->_application_id;
+ }
+
+ public function setApplicationId($applicationId) {
+ $this->_application_id = $applicationId;
+ }
+
+ public function getSecurityToken() {
+ return $this->_security_token;
+ }
+
+ public function setSecurityToken($securityToken) {
+ $this->_security_token = $securityToken;
+ }
+
/**
* Gives you the RestRequest object that describes the last REST request.
* @return RestRequest
@@ -101,6 +121,131 @@ public function sayHello() {
}
/**
+ * Get a list of the application's transactions
+ *
+ * @param integer $page page number to return. Must be >= 1 if provided
+ * @param integer $pageSize the number of records per page to return. Maximum is 100 if provided. Default page size is 100.
+ * @param integer $dateFrom optional unix timestamp. only transactions on or after this time will be returned if provided.
+ * @param boolean $count return only the count of transactions. page & pageSize options have no affect when enabled.
+ */
+ public function getTransactionList($page = NULL, $pageSize = NULL, $dateFrom = NULL, $count = FALSE) {
+ $params = array();
+ if ($count !== TRUE) {
+ if ($page !== NULL) {
+ $params['page'] = $page;
+ }
+ if ($pageSize !== NULL) {
+ $params['page_size'] = $pageSize;
+ }
+ }
+ if ($dateFrom !== NULL) {
+ $params['date_from'] = $dateFrom;
+ }
+ if ($count === TRUE) {
+ $params['count'] = 'on';
+ }
+ $restRequestObject = $this->sendApiRequest('/transaction/list', 'GET', $params);
+
+ $xmlObject = simplexml_load_string($restRequestObject->getResponseBody());
+ if ($count === TRUE) {
+ return $xmlObject->firstGivingResponse->row_count;
+ }
+ $transactions = array();
+ foreach ($xmlObject->firstGivingResponse->transactions as $transaction) {
+ $transactions[] = (string) $transaction->transaction_number;
+ }
+ return $transactions;
+ }
+
+ /**
+ * Get the details of a specific transaction
+ *
+ * @param transactionNumber string id of the transaction to lookup
+ */
+ public function getTransactionDetail($transactionId) {
+ $restRequestObject = $this->sendApiRequest(
+ '/transaction/detail',
+ 'GET',
+ array(
+ 'transactionId' => $transactionId
+ )
+ );
+
+ $xmlObject = simplexml_load_string($restRequestObject->getResponseBody());
+ $r = $xmlObject->firstGivingResponse;
+
+ $respObj = new FirstGivingTransactionDetailResponse();
+ $respObj->setAmount((string) $r->amount);
+ $respObj->setBillToAddressLine1((string) $r->billToAddressLine1);
+ $respObj->setBillToAddressLine2((string) $r->billToAddressLine2);
+ $respObj->setBillToAddressLine3((string) $r->billToAddressLine3);
+ $respObj->setBillToCity((string) $r->billToCity);
+ $respObj->setBillToCountry((string) $r->billToCountry);
+ $respObj->setBillToEmail((string) $r->billToEmail);
+ $respObj->setBillToFirstName((string) $r->billToFirstName);
+ $respObj->setBillToLastName((string) $r->billToLastName);
+ $respObj->setBillToMiddleName((string) $r->billToMiddleName);
+ $respObj->setBillToPhone((string) $r->billToPhone);
+ $respObj->setBillToState((string) $r->billToState);
+ $respObj->setBillToTitle((string) $r->billToTitle);
+ $respObj->setBillToZip((string) $r->billToZip);
+ $respObj->setCharityId((string) $r->charityId);
+ $respObj->setCurrencyCode((string) $r->currencyCode);
+ $respObj->setDescription((string) $r->description);
+ $respObj->setDonationMessage((string) $r->donationMessage);
+ $respObj->setEventId((string) $r->eventId);
+ $respObj->setFundraiserId((string) $r->fundraiserId);
+ $respObj->setHonorMemoryName((string) $r->honorMemoryName);
+ $respObj->setOrderId((string) $r->orderId);
+ $respObj->setTransactionId((string) $r->transactionId);
+ $respObj->setStatus((string) $r->status);
+ $respObj->setCommissionFees((string) $r->commissionFees);
+ $respObj->setCcFees((string) $r->ccFees);
+ $respObj->setTotalFees((string) $r->totalFees);
+ $respObj->setNetToOrganization((string) $r->netToOrganization);
+ $respObj->setPaymentId((string) $r->paymentId);
+ $respObj->setPaymentStatus((string) $r->paymentStatus);
+ $respObj->setPostingDate((string) $r->postingDate);
+
+ return $respObj;
+ }
+
+ public function getIdealBankList() {
+ $restRequestObject = $this->sendApiRequest('/ideal/banks', 'GET');
+
+ $xmlObject = simplexml_load_string($restRequestObject->getResponseBody());
+ $banks = array();
+
+ foreach ($xmlObject->firstGivingResponse->banks->bank as $bank) {
+ $banks[(string) $bank->id] = (string) $bank->name;
+ }
+ return $banks;
+ }
+
+ public function getIdealPaymentInquiry($idealPaymentRequestId) {
+ $restResponseObject = $this->sendApiRequest(
+ '/ideal/paymentinquiry',
+ 'GET',
+ array(
+ 'idealPaymentRequestId' => $idealPaymentRequestId
+ )
+ );
+
+ $xmlObject = simplexml_load_string($restResponseObject->getResponseBody());
+ $r = $xmlObject->firstGivingResponse;
+
+ $respObj = new FirstGivingIdealPaymentInquiryResponse();
+ $respObj->idealPaymentRequestId = $idealPaymentRequestId;
+ $respObj->setAmount((string) $r->amount);
+ $respObj->setStatus((string) $r->status);
+ $respObj->setTransactionId( (string) $r->transactionId);
+ $respObj->setConsumerCity( (string) $r->consumerCity);
+ $respObj->setConsumerName( (string) $r->consumerName);
+
+ return $respObj;
+ }
+
+ /**
*
* @param FirstGivingPaypalExpressCheckoutRequest $expressCheckoutRedirectRequest
* $remoteAddr string IP address of the remote user's computer.
@@ -137,6 +282,29 @@ public function getExpressCheckoutRedirect(FirstGivingPaypalExpressCheckoutReque
return $firstGivingPaypalCreditCardDonationResponse;
}
+
+ /**
+ *
+ * @param FirstGivingIdealRequest $idealRequest
+ * @param <type> $remoteAddr
+ * @return <type>
+ */
+ public function getIdealRedirect(FirstGivingIdealRequest $idealRequest, $remoteAddr = null) {
+
+ // If no remote addr was manually passed, set it to the remote addr reported by the web server.
+ if($remoteAddr == null) {
+ $remoteAddr = $_SERVER['REMOTE_ADDR'];
+ }
+
+ // Send the array of values to FirstGiving.
+ $restResponseObject = $this->sendApiRequest('/ideal/paymentrequest', 'GET', $idealRequest->toArray());
+
+ /* @var $firstGivingIdealResponse FirstGivingPaypalCreditCardDonationResponse */
+ $firstGivingIdealResponse = $this->createIdealRedirectResponseObject($restResponseObject);
+
+ return $firstGivingIdealResponse;
+ }
+
/**
* Captures a payment from the buyer identified by $expresscheckoutsessionid.
* @param $expresscheckoutsessionid
@@ -148,7 +316,7 @@ public function captureExpressCheckoutPayment($expresscheckoutsessionid) {
$restApiInputValues = array();
$restApiInputValues['expresscheckoutsession'] = $expresscheckoutsessionid;
- // Send the array of values to FirstGiving.
+ // Send the array of values to FirstGiving.
$restResponseObject = $this->sendApiRequest('/paypal/expresscheckoutpayment', 'POST', $restApiInputValues);
/* @var $firstGivingPaypalExpressCheckoutPaymentResponse FirstGivingPaypalExpressCheckoutPaymentResponse */
@@ -167,8 +335,8 @@ public function createRecurringDonationProfile(FirstGivingDonation $donationObje
$restApiInputValues = $this->assembleRestApiInputValuesForCreditCardDonation($donationObject, $paymentInformationObject, $remoteAddr);
// Add the recurring values.
- $restApiInputValues['ccNumber'] = $paymentInformationObject->getCcNumber();
- $restApiInputvalues['ccType'] = $paymentInformationObject->getCcType();
+ $restApiInputValues['ccNumber'] = $paymentInformationObject->getCcNumber();
+ $restApiInputvalues['ccType'] = $paymentInformationObject->getCcType();
$restApiInputValues['recurringBillingFrequency'] = $frequency;
$restApiInputValues['recurringBillingTerm'] = $term;
@@ -183,6 +351,22 @@ public function createRecurringDonationProfile(FirstGivingDonation $donationObje
}
/**
+ * Create a new card on file.
+ * @return FirstGivingCardOnFileResponse
+ */
+ public function createCardOnFile($restApiInputValues) {
+
+ // Send the array of values to FirstGiving.
+ $restResponseObject = $this->sendApiRequest('/cardonfile', 'POST', $restApiInputValues);
+
+ /* @var $firstGivingCardOnFileResponseObject FirstGivingCardOnFileResponse */
+ $firstGivingCardOnFileResponseObject = $this->createCardOnFileResponseObject($restResponseObject);
+
+ return $firstGivingCardOnFileResponseObject;
+
+ }
+
+ /**
* Verifies if a message was sent from FirstGiving.
*
* Returns bool to indicate if a message you received originated from FirstGiving.
@@ -424,6 +608,38 @@ private function createSayHelloObject(RestRequest $restRequestObject) {
return $helloResponse;
}
+ private function createIdealPaymentEnquiryObject(RestRequest $restRequestObject) {
+
+ $response = new FirstGivingIdealPaymentEnquiryResponse();
+
+ $xmlObject = simplexml_load_string($restRequestObject->getResponseBody());
+
+ $rObj = $xmlObject->firstGivingResponse;
+
+ $response->setAmount($rObj->amount);
+ $response->setStatus($rObj->status);
+ $response->setTransactionId($rObj->transactionId);
+
+ return $response;
+ }
+
+ private function createIdealRedirectResponseObject(RestRequest $restRequestObject) {
+
+ // Create the response object.
+ $response = new FirstGivingIdealRedirectResponse();
+
+ // Convert to an xml object.
+ $xmlObject = simplexml_load_string($restRequestObject->getResponseBody());
+
+ $rObj = $xmlObject->firstGivingResponse;
+ $response->setRedirectUrl((string) $rObj->redirectUrl);
+ $response->setNote((string) $rObj->note);
+ $response->setIdealPaymentRequestId((string) $rObj->idealPaymentRequestId);
+
+ return $response;
+
+ }
+
/**
* Converts a generic REST request response into a proper FirstGiving Paypal donation response object.
* @param RestRequest $restRequestObject
@@ -499,16 +715,41 @@ private function createRecurringCreditCardProfileResponseObject(RestRequest $res
// Create the response object.
$response = new FirstGivingRecurringCreditCardProfileResponse();
- // Convert to an xml object.
+ // Convert to an xml object.
$xmlObject = simplexml_load_string($restRequestObject->getResponseBody());
$response->setRawResponse($restRequestObject->getResponseBody());
$response->setResponseCode($restRequestObject->getHttpResponseCode());
- $response->setRecurringBillingProfileId(current($xmlObject->firstGivingResponse->recurringDonationProfileId));
+ $response->setRecurringBillingProfileId(current($xmlObject->firstGivingResponse->recurringDonationProfileId));
return $response;
}
+
+ /**
+ * Converts a generic REST request response into a proper FirstGiving credit card response object.
+ * @param RestRequest $restRequestObject
+ * @return FirstGivingCardOnFileResponse
+ */
+ private function createCardOnFileResponseObject(RestRequest $restRequestObject) {
+
+ // Create the response object.
+ $response = new FirstGivingCardOnFileResponse();
+
+ // Convert to an xml object.
+ $xmlObject = simplexml_load_string($restRequestObject->getResponseBody());
+
+ $response->setRawResponse($restRequestObject->getResponseBody());
+ $response->setResponseCode($restRequestObject->getHttpResponseCode());
+ $response->setCardOnFileId(current($xmlObject->firstGivingResponse->cardOnFileId));
+
+ return $response;
+ }
+
+
+
+
+
/**
* Scans through xml returned from the verifiy method and returns the bool valid element text value.
* @param RestRequest $restRequestObject
@@ -533,6 +774,7 @@ private function getMessageWasFromFirstGiving(RestRequest $restRequestObject) {
private function assembleRestApiInputValuesForCreditCardDonation(FirstGivingDonation $donationObject, FirstGivingCreditCardPayment $paymentInformationObject, $remoteAddr) {
// Create an array of values to be passed to FirstGiving.
$restApiInputValues = array();
+ $restApiInputValues['cardOnFileId'] = $paymentInformationObject->getCardOnFileId();
$restApiInputValues['ccNumber'] = $paymentInformationObject->getCcNumber();
$restApiInputValues['ccType'] = $paymentInformationObject->getCcType();
$restApiInputValues['ccExpDateMonth'] = $paymentInformationObject->getCcExpDateMonth();
View
48 src/FirstGivingCardOnFileResponse.php
@@ -0,0 +1,48 @@
+<?php
+class FirstGivingCardOnFileResponse {
+
+ private $cardOnFileId;
+ private $rawResponse;
+ private $responseCode;
+
+
+ /**
+ * @return the $rawResponse
+ */
+ public function getRawResponse() {
+ return $this->rawResponse;
+ }
+
+ /**
+ * @return the $responseCode
+ */
+ public function getResponseCode() {
+ return $this->responseCode;
+ }
+
+ /**
+ * @param $rawResponse the $rawResponse to set
+ */
+ public function setRawResponse($rawResponse) {
+ $this->rawResponse = $rawResponse;
+ }
+
+ /**
+ * @param $responseCode the $responseCode to set
+ */
+ public function setResponseCode($responseCode) {
+ $this->responseCode = $responseCode;
+ }
+
+ public function setCardOnFileId($cardOnFileId)
+ {
+ $this->cardOnFileId = $cardOnFileId;
+ }
+
+ public function getCardOnFileId()
+ {
+ return $this->cardOnFileId;
+ }
+
+
+}
View
12 src/FirstGivingCreditCardPayment.php
@@ -37,6 +37,7 @@ class FirstGivingCreditCardPayment extends FirstGivingAbstractPayment {
private $ccExpDateYear;
private $ccCardValidationNum;
private $billingDescriptor;
+ private $cardOnFileId;
/**
* @return the $ccNumber
@@ -121,5 +122,14 @@ public function setBillingDescriptor($billingDescriptor) {
$this->billingDescriptor = $billingDescriptor;
}
-
+ public function setCardOnFileId($cardOnFileId)
+ {
+ $this->cardOnFileId = $cardOnFileId;
+ }
+
+ public function getCardOnFileId()
+ {
+ return $this->cardOnFileId;
+ }
+
}
View
51 src/FirstGivingIdealPaymentInquiryResponse.php
@@ -0,0 +1,51 @@
+<?php
+class FirstGivingIdealPaymentInquiryResponse {
+
+ private $_amount = NULL;
+ private $_status = NULL;
+ private $_transactionId = NULL;
+ private $_consumerName = NULL;
+ private $_consumerCity = NULL;
+
+ public $idealPaymentRequestId = NULL;
+
+ public function setAmount($amount) {
+ $this->_amount = $amount;
+ }
+
+ public function getAmount() {
+ return $this->_amount;
+ }
+
+ public function getStatus() {
+ return $this->_status;
+ }
+
+ public function setStatus($status) {
+ $this->_status = $status;
+ }
+
+ public function setTransactionId($transactionId) {
+ $this->_transactionId = $transactionId;
+ }
+
+ public function getTransactionId() {
+ return $this->_transactionId;
+ }
+
+ public function setConsumerName($consumerName) {
+ $this->_consumerName = $consumerName;
+ }
+
+ public function getConsumerName() {
+ return $this->_consumerName;
+ }
+
+ public function setConsumerCity($consumerCity) {
+ $this->_consumerCity = $consumerCity;
+ }
+
+ public function getConsumerCity() {
+ return $this->_consumerCity;
+ }
+}
View
32 src/FirstGivingIdealRedirectResponse.php
@@ -0,0 +1,32 @@
+<?php
+
+class FirstGivingIdealRedirectResponse {
+
+ private $_redirectUrl = NULL;
+ private $_note = NULL;
+ private $_idealPaymentRequestId = NULL;
+
+ public function getRedirectUrl() {
+ return $this->_redirectUrl;
+ }
+
+ public function getNote() {
+ return $this->_note;
+ }
+
+ public function getIdealPaymentRequestId() {
+ return $this->_idealPaymentRequestId;
+ }
+
+ public function setRedirectUrl($redirectUrl) {
+ $this->_redirectUrl = $redirectUrl;
+ }
+
+ public function setNote($note) {
+ $this->_note = $note;
+ }
+
+ public function setIdealPaymentRequestId($idealPaymentRequestId) {
+ $this->_idealPaymentRequestId = $idealPaymentRequestId;
+ }
+}
View
91 src/FirstGivingIdealRequest.php
@@ -0,0 +1,91 @@
+<?php
+class FirstGivingIdealRequest {
+
+ private $_bankId = NULL;
+ private $_amount = NULL;
+ private $_returnUrl = NULL;
+
+ // Quantiv charity id
+ private $_charityId = NULL;
+
+ private $_callbackUrl = NULL;
+
+ // Donor email address
+ private $_email = NULL;
+
+ // Local fundraiser id
+ private $_fundraiserId = NULL;
+
+ public function getBankId() {
+ return $this->_bankId;
+ }
+
+ public function getAmount() {
+ return $this->_amount;
+ }
+
+ public function getReturnUrl() {
+ return $this->_returnUrl;
+ }
+
+ public function getCharityId() {
+ return $this->_charityId;
+ }
+
+ public function getCallbackUrl() {
+ return $this->_callbackUrl;
+ }
+
+ public function setBankId($bankId) {
+ $this->_bankId = $bankId;
+ }
+
+ public function setAmount($amount) {
+ $this->_amount = $amount;
+ }
+
+ public function setReturnUrl($returnUrl) {
+ $this->_returnUrl = $returnUrl;
+ }
+
+ public function setCharityId($charityId) {
+ $this->_charityId = $charityId;
+ }
+
+ public function setCallbackUrl($callbackUrl) {
+ $this->_callbackUrl = $callbackUrl;
+ }
+
+ public function setEmail($email) {
+ $this->_email = $email;
+ }
+
+ public function getEmail() {
+ return $this->_email;
+ }
+
+ public function setFundraiserId($fundraiserId) {
+ $this->_fundraiserId = $fundraiserId;
+ }
+
+ public function getFundraiserId() {
+ return $this->_fundraiserId;
+ }
+
+ public function toArray() {
+ $arr = array(
+ 'bankId' => $this->_bankId,
+ 'amount' => $this->_amount,
+ 'returnUrl' => $this->_returnUrl,
+ 'charityId' => $this->_charityId,
+ 'fundraiserId' => $this->_fundraiserId,
+ 'email' => $this->_email
+ );
+
+ if ($this->_callbackUrl !== NULL) {
+ $arr['callbackUrl'] = $this->_callbackUrl;
+ }
+
+ return $arr;
+ }
+}
View
314 src/FirstGivingTransactionDetailResponse.php
@@ -0,0 +1,314 @@
+<?php
+// Copyright 2012 FirstGiving.com. All Rights Reserved.
+//
+// +---------------------------------------------------------------------------+
+// | FirstGiving.com PHP API Client |
+// +---------------------------------------------------------------------------+
+// | Copyright (c) 2012 FirstGiving.com |
+// | All rights reserved. |
+// | |
+// | Redistribution and use in source and binary forms, with or without |
+// | modification, are permitted provided that the following conditions |
+// | are met: |
+// | |
+// | 1. Redistributions of source code must retain the above copyright |
+// | notice, this list of conditions and the following disclaimer. |
+// | 2. Redistributions in binary form must reproduce the above copyright |
+// | notice, this list of conditions and the following disclaimer in the |
+// | documentation and/or other materials provided with the distribution. |
+// | |
+// | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
+// | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
+// | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
+// | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
+// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
+// | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
+// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
+// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
+// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
+// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// +---------------------------------------------------------------------------+
+class FirstGivingTransactionDetailResponse {
+ private $_transactionId = NULL;
+ private $_billToTitle = NULL;
+ private $_billToFirstName = NULL;
+ private $_billToMiddleName = NULL;
+ private $_billToLastName = NULL;
+ private $_billToAddressLine1 = NULL;
+ private $_billToAddressLine2 = NULL;
+ private $_billToAddressLine3 = NULL;
+ private $_billToCity = NULL;
+ private $_billToState = NULL;
+ private $_billToZip = NULL;
+ private $_billToCountry = NULL;
+ private $_billToEmail = NULL;
+ private $_billToPhone = NULL;
+ private $_charityId = NULL;
+ private $_eventId = NULL;
+ private $_fundraiserId = NULL;
+ private $_orderId = NULL;
+ private $_description = NULL;
+ private $_donationMessage = NULL;
+ private $_honorMemoryName = NULL;
+ private $_amount = NULL;
+ private $_currencyCode = NULL;
+ private $_recurringBillingFrequency = NULL;
+ private $_recurringBillingTerm = NULL;
+ private $_recurringBillingAmount = NULL;
+ private $_status = 'FG_UNAVAILABLE';
+ private $_commissionFees = 'FG_UNAVAILABLE';
+ private $_ccFees = 'FG_UNAVAILABLE';
+ private $_totalFees = 'FG_UNAVAILABLE';
+ private $_netToOrganization = 'FG_UNAVAILABLE';
+ private $_paymentId = 'FG_UNAVAILABLE';
+ private $_paymentStatus = 'FG_UNAVAILABLE';
+ private $_postingDate = 'FG_UNAVAILABLE';
+
+ public function setTransactionId($transactionId) {
+ $this->_transactionId = $transactionId;
+ }
+
+ public function setBillToTitle($billToTitle) {
+ $this->_billToTitle = $billToTitle;
+ }
+
+ public function setBillToFirstName($billToFirstName) {
+ $this->_billToFirstName = $billToFirstName;
+ }
+
+ public function setBillToMiddleName($billToMiddleName) {
+ $this->_billToMiddleName = $billToMiddleName;
+ }
+
+ public function setBillToLastName($billToLastName) {
+ $this->_billToLastName = $billToLastName;
+ }
+
+ public function setBillToAddressLine1($billToAddressLine1) {
+ $this->_billToAddressLine1 = $billToAddressLine1;
+ }
+
+ public function setBillToAddressLine2($billToAddressLine2) {
+ $this->_billToAddressLine2 = $billToAddressLine2;
+ }
+
+ public function setBillToAddressLine3($billToAddressLine3) {
+ $this->_billToAddressLine3 = $billToAddressLine3;
+ }
+
+ public function setBillToCity($billToCity) {
+ $this->_billToCity = $billToCity;
+ }
+
+ public function setBillToState($billToState) {
+ $this->_billToState = $billToState;
+ }
+
+ public function setBillToZip($billToZip) {
+ $this->_billToZip = $billToZip;
+ }
+
+ public function setBillToCountry($billToCountry) {
+ $this->_billToCountry = $billToCountry;
+ }
+
+ public function setBillToEmail($billToEmail) {
+ $this->_billToEmail = $billToEmail;
+ }
+
+ public function setBillToPhone($billToPhone) {
+ $this->_billToPhone = $billToPhone;
+ }
+
+ public function setCharityId($charityId) {
+ $this->_charityId = $charityId;
+ }
+
+ public function setEventId($eventId) {
+ $this->_eventId = $eventId;
+ }
+
+ public function setFundraiserId($fundraiserId) {
+ $this->_fundraiserId = $fundraiserId;
+ }
+
+ public function setOrderId($orderId) {
+ $this->_orderId = $orderId;
+ }
+
+ public function setDescription($description) {
+ $this->_description = $description;
+ }
+
+ public function setDonationMessage($donationMessage) {
+ $this->_donationMessage = $donationMessage;
+ }
+
+ public function setHonorMemoryName($honorMemoryName) {
+ $this->_honorMemoryName = $honorMemoryName;
+ }
+
+ public function setAmount($amount) {
+ $this->_amount = $amount;
+ }
+
+ public function setCurrencyCode($currencyCode) {
+ $this->_currencyCode = $currencyCode;
+ }
+
+ public function setStatus($status) {
+ $this->_status = $status;
+ }
+
+ public function setCommissionFees($commissionFees) {
+ $this->_commissionFees = $commissionFees;
+ }
+
+ public function setCcFees($ccFees) {
+ $this->_ccFees = $ccFees;
+ }
+
+ public function setTotalFees($totalFees) {
+ $this->_totalFees = $totalFees;
+ }
+
+ public function setNetToOrganization($netToOrganization) {
+ $this->_netToOrganization = $netToOrganization;
+ }
+
+ public function setPaymentId($paymentId) {
+ $this->_paymentId = $paymentId;
+ }
+
+ public function setPaymentStatus($paymentStatus) {
+ $this->_paymentStatus = $paymentStatus;
+ }
+
+ public function setPostingDate($postingDate) {
+ $this->_postingDate = $postingDate;
+ }
+
+ public function getTransactionId() {
+ return $this->_transactionId;
+ }
+
+ public function getBillToTitle() {
+ return $this->_billToTitle;
+ }
+
+ public function getBillToFirstName() {
+ return $this->_billToFirstName;
+ }
+
+ public function getBillToMiddleName() {
+ return $this->_billToMiddleName;
+ }
+
+ public function getBillToLastName() {
+ return $this->_billToLastName;
+ }
+
+ public function getBillToAddressLine1() {
+ return $this->_billToAddressLine1;
+ }
+
+ public function getBillToAddressLine2() {
+ return $this->_billToAddressLine2;
+ }
+
+ public function getBillToAddressLine3() {
+ return $this->_billToAddressLine3;
+ }
+
+ public function getBillToCity() {
+ return $this->_billToCity;
+ }
+
+ public function getBillToState() {
+ return $this->_billToState;
+ }
+
+ public function getBillToZip() {
+ return $this->_billToZip;
+ }
+
+ public function getBillToCountry() {
+ return $this->_billToCountry;
+ }
+
+ public function getBillToEmail() {
+ return $this->_billToEmail;
+ }
+
+ public function getBillToPhone() {
+ return $this->_billToPhone;
+ }
+
+ public function getCharityId() {
+ return $this->_charityId;
+ }
+
+ public function getEventId() {
+ return $this->_eventId;
+ }
+
+ public function getFundraiserId() {
+ return $this->_fundraiserId;
+ }
+
+ public function getOrderId() {
+ return $this->_orderId;
+ }
+
+ public function getDescription() {
+ return $this->_description;
+ }
+
+ public function getDonationMessage() {
+ return $this->_donationMessage;
+ }
+
+ public function getHonorMemoryName() {
+ return $this->_honorMemoryName;
+ }
+
+ public function getAmount() {
+ return $this->_amount;
+ }
+
+ public function getCurrencyCode() {
+ return $this->_currencyCode;
+ }
+
+ public function getStatus() {
+ return $this->_status;
+ }
+
+ public function getCommissionFees() {
+ return $this->_commissionFees;
+ }
+
+ public function getCcFees() {
+ return $this->_ccFees;
+ }
+
+ public function getTotalFees() {
+ return $this->_totalFees;
+ }
+
+ public function getNetToOrganization() {
+ return $this->_netToOrganization;
+ }
+
+ public function getPaymentId() {
+ return $this->_paymentId;
+ }
+
+ public function getPaymentStatus() {
+ return $this->_paymentStatus;
+ }
+
+ public function getPostingDate() {
+ return $this->_postingDate;
+ }
+}

0 comments on commit 627ae85

Please sign in to comment.
Something went wrong with that request. Please try again.