A Qcodo based CMS/ecommerce framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.6 KiB

13 years ago
  1. <?php
  2. require(__DATAGEN_CLASSES__ . '/AuthorizeNetTransactionGen.class.php');
  3. /**
  4. * The AuthorizeNetTransaction class defined here contains any
  5. * customized code for the AuthorizeNetTransaction class in the
  6. * Object Relational Model. It represents the "authorize_net_transaction" table
  7. * in the database, and extends from the code generated abstract AuthorizeNetTransactionGen
  8. * class, which contains all the basic CRUD-type functionality as well as
  9. * basic methods to handle relationships and index-based loading.
  10. *
  11. * @package Quasi
  12. * @subpackage DataObjects
  13. *
  14. */
  15. class AuthorizeNetTransaction extends AuthorizeNetTransactionGen
  16. {
  17. /// Indexes for the response array (pipe delimited string ..)
  18. const ResponseCodeIdx = 0;
  19. const ResponseSubcodeIdx = 1;
  20. const ResponseReasonCodeIdx = 2;
  21. const ResponseReasonTextIdx = 3;
  22. const AuthorizationCodeIdx = 4;
  23. const AVSResponseIdx = 5;
  24. const TransactionIdIdx = 6;
  25. const InvoiceNumberIdx = 7;
  26. const DescriptionIdx = 8;
  27. const AmountIdx = 9;
  28. const MethodIdx = 10;
  29. const TransactionTypeIdx = 11;
  30. const CustomerIdIdx = 12;
  31. const FirstNameIdx = 13;
  32. const LastNameIdx = 14;
  33. const CompanyIdx = 15;
  34. const AddressIdx = 16;
  35. const CityIdx = 17;
  36. const StateIdx = 18;
  37. const ZipCodeIdx = 19;
  38. const CountryIdx = 20;
  39. const PhoneIdx = 21;
  40. const FaxIdx = 22;
  41. const EmailAddressIdx = 23;
  42. const ShipToFirstNameIdx = 24;
  43. const ShipToLastNameIdx = 25;
  44. const ShipToCompanyIdx = 26;
  45. const ShipToAddressIdx = 27;
  46. const ShipToCityIdx = 28;
  47. const ShipToStateIdx = 29;
  48. const ShipToZipCodeIdx = 30;
  49. const ShipToCountryIdx = 31;
  50. const TaxIdx = 32;
  51. const DutyIdx = 33;
  52. const FreightIdx = 34;
  53. const TaxExemptIdx = 35;
  54. const PurchaseOrderNumberIdx = 36;
  55. const MD5HashIdx = 37;
  56. const CCVResponseIdx = 38;
  57. const CAVResponseIdx = 39;
  58. /**
  59. * Default "to string" handler
  60. * Allows pages to _p()/echo()/print() this object, and to define the default
  61. * way this object would be outputted.
  62. *
  63. * Can also be called directly via $objAuthorizeNetTransaction->__toString().
  64. *
  65. * @return string a nicely formatted string representation of this object
  66. */
  67. public function __toString()
  68. {
  69. return sprintf('AuthorizeNetTransaction Object %s', $this->intId);
  70. }
  71. }
  72. ?>