/config/sql/ipn.php

https://github.com/steebo/CakePHP-Paypal-IPN-Plugin · PHP · 120 lines · 115 code · 5 blank · 0 comment · 0 complexity · a04c19b6fbf2f6b9ad25705cc47fdfee MD5 · raw file

  1. <?php
  2. class ipnSchema extends CakeSchema {
  3. var $name = 'ipn';
  4. function before($event = array()) {
  5. return true;
  6. }
  7. function after($event = array()) {
  8. }
  9. var $instant_payment_notifications = array(
  10. 'id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'primary'),
  11. 'notify_version' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 64),
  12. 'verify_sign' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  13. 'test_ipn' => array('type' => 'integer', 'null' => true, 'default' => NULL),
  14. 'address_city' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 40),
  15. 'address_country' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 64),
  16. 'address_country_code' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 2),
  17. 'address_name' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 128),
  18. 'address_state' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 40),
  19. 'address_status' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  20. 'address_street' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 200),
  21. 'address_zip' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  22. 'first_name' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 64),
  23. 'last_name' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 64),
  24. 'payer_business_name' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  25. 'payer_email' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  26. 'payer_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 13),
  27. 'payer_status' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  28. 'contact_phone' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  29. 'residence_country' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 2),
  30. 'business' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  31. 'item_name' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  32. 'item_number' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  33. 'quantity' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  34. 'receiver_email' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  35. 'receiver_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 13),
  36. 'custom' => array('type' => 'string', 'null' => true, 'default' => NULL),
  37. 'invoice' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  38. 'memo' => array('type' => 'string', 'null' => true, 'default' => NULL),
  39. 'option_name1' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 64),
  40. 'option_name2' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 64),
  41. 'option_selection1' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 200),
  42. 'option_selection2' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 200),
  43. 'tax' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  44. 'auth_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 19),
  45. 'auth_exp' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
  46. 'auth_amount' => array('type' => 'integer', 'null' => true, 'default' => NULL),
  47. 'auth_status' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  48. 'num_cart_items' => array('type' => 'integer', 'null' => true, 'default' => NULL),
  49. 'parent_txn_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 19),
  50. 'payment_date' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
  51. 'payment_status' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  52. 'payment_type' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 10),
  53. 'pending_reason' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  54. 'reason_code' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  55. 'remaining_settle' => array('type' => 'integer', 'null' => true, 'default' => NULL),
  56. 'shipping_method' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 64),
  57. 'shipping' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  58. 'transaction_entity' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  59. 'txn_id' => array('type' => 'string', 'null' => true, 'length' => 19),
  60. 'txn_type' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
  61. 'exchange_rate' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  62. 'mc_currency' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 3),
  63. 'mc_fee' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  64. 'mc_gross' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  65. 'mc_handling' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  66. 'mc_shipping' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  67. 'payment_fee' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  68. 'payment_gross' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  69. 'settle_amount' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  70. 'settle_currency' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 3),
  71. 'auction_buyer_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 64),
  72. 'auction_closing_date' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
  73. 'auction_multi_item' => array('type' => 'integer', 'null' => true, 'default' => NULL),
  74. 'for_auction' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 10),
  75. 'subscr_date' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
  76. 'subscr_effective' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
  77. 'period1' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 10),
  78. 'period2' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 10),
  79. 'period3' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 10),
  80. 'amount1' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  81. 'amount2' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  82. 'amount3' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  83. 'mc_amount1' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  84. 'mc_amount2' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  85. 'mc_amount3' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  86. 'recurring' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 1),
  87. 'reattempt' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 1),
  88. 'retry_at' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
  89. 'recur_times' => array('type' => 'integer', 'null' => true, 'default' => NULL),
  90. 'username' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 64),
  91. 'password' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 24),
  92. 'subscr_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 19),
  93. 'case_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
  94. 'case_type' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
  95. 'case_creation_date' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
  96. 'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
  97. 'modified' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
  98. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
  99. );
  100. var $paypal_items = array(
  101. 'id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'primary'),
  102. 'instant_payment_notification_id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36),
  103. 'item_name' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  104. 'item_number' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  105. 'quantity' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 127),
  106. 'mc_gross' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  107. 'mc_shipping' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  108. 'mc_handling' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  109. 'tax' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
  110. 'created' => array('type' => 'datetime', 'null' => false, 'default' => NULL),
  111. 'modified' => array('type' => 'datetime', 'null' => false, 'default' => NULL),
  112. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
  113. );
  114. }
  115. ?>