reservation_api_tickets.class.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * API class for Tickets
  4. *
  5. * @access protected
  6. * @class DolibarrApiAccess {@requires user,external}
  7. */
  8. class ApiTickets extends DolibarrApi
  9. {
  10. /**
  11. * TicketPurchase
  12. *
  13. * @param int $product_id Product Id
  14. *
  15. *
  16. * @return array|mixed Data without useless information
  17. *
  18. * @url POST TicketPurchase
  19. */
  20. public function TicketPurchase($product_id)
  21. {
  22. $array = [];
  23. return $array;
  24. }
  25. /**
  26. * Invoice/Receipt resending
  27. *
  28. * @param int $facture_id Faacture Id
  29. *
  30. *
  31. * @return array|mixed Data without useless information
  32. *
  33. * @url POST TicketPurchase
  34. */
  35. public function FactureResending($facture_id)
  36. {
  37. $array = [];
  38. return $array;
  39. }
  40. /**
  41. * Ticket validation
  42. *
  43. * @param int $code Facture ref and timestamp
  44. *
  45. *
  46. * @return array|mixed Data without useless information
  47. *
  48. * @url POST ValidateTicket
  49. */
  50. public function ValidateTicket($code)
  51. {
  52. $array = [];
  53. return 'OK';
  54. }
  55. }