Iins.php 587 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Culqi;
  3. /**
  4. * Class Iins
  5. *
  6. * @package Culqi
  7. */
  8. class Iins extends Resource {
  9. const URL_IINS = "/iins/";
  10. /**
  11. * @param array|null $options
  12. *
  13. * @return all Iins.
  14. */
  15. public function all($options = NULL) {
  16. return $this->request("GET", self::URL_IINS, $api_key = $this->culqi->api_key, $options);
  17. }
  18. /**
  19. * @param string|null $id
  20. *
  21. * @return get a Iin.
  22. */
  23. public function get($id = NULL) {
  24. return $this->request("GET", self::URL_IINS . $id . "/", $api_key = $this->culqi->api_key);
  25. }
  26. }