Source for file gNewOrderNotification.php

Documentation is available at gNewOrderNotification.php

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

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