Source for file gOrderStateChangeNotification.php

Documentation is available at gOrderStateChangeNotification.php

  1. <?php
  2. /**
  3. * ========================================================
  4. * phpGCheckout, Open Source PHP G Checkout Library
  5. * http://www.phpgcheckout.com
  6. * ========================================================
  7. *
  8. * Copyright (c) 2006 Expert Database Solutions, LLC
  9. *
  10. * Permission is hereby granted, free of charge, to any person obtaining a
  11. * copy of this software and associated documentation files (the "Software"),
  12. * to deal in the Software without restriction, including without limitation the
  13. * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  14. * copies of the Software, and to permit persons to whom the Software is
  15. * furnished to do so, subject to the following conditions:
  16. *
  17. * The above copyright notice and this permission notice shall be included in all
  18. * copies or substantial portions of the Software.
  19. *
  20. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  21. * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  22. * PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
  24. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
  25. * OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  26. *
  27. */
  28. class gOrderStateChangeNotification {
  29. var $timestamp;
  30. var $google_order_number;
  31. var $new_fulfillment_order_state;
  32. var $new_financial_order_state;
  33. var $previous_fulfillment_order_state;
  34. var $previous_financial_order_state;
  35. /**
  36. * Build Message
  37. *
  38. * @param unknown_type $arr_message
  39. */
  40. function buildMessage($arr_message) {
  41. $this->timestamp = $arr_message['timestamp'];
  42. $this->google_order_number = $arr_message['google-order-number'];
  43. $this->new_financial_order_state = $arr_message['new-financial-order-state'];
  44. $this->new_fulfillment_order_state = $arr_message['new-fulfillment-order-state'];
  45. $this->previous_financial_order_state = $arr_message['previous-financial-order-state'];
  46. $this->previous_fulfillment_order_state = $arr_message['previous-fulfillment-order-state'];
  47. }
  48. }
  49. ?>

Documentation generated on Mon, 04 Dec 2006 11:09:37 -0500 by phpDocumentor 1.3.0RC3