PPPStripeCountrySpec

Class CountrySpec.

Defined (1)

The class is defined in the following location(s).

/includes/api/stripe-php/lib/CountrySpec.php  
  1. class CountrySpec extends ApiResource 
  2. /** 
  3. * This is a special case because the country specs endpoint has an 
  4. * underscore in it. The parent `className` function strips underscores. 
  5. * @return string The name of the class. 
  6. */ 
  7. public static function className() 
  8. return 'country_spec'; 
  9.  
  10. /** 
  11. * @param string $country The ISO country code of the country we retrieve the CountrySpec for. 
  12. * @param array|string|null $opts 
  13. * @return CountrySpec 
  14. */ 
  15. public static function retrieve($country, $opts = null) 
  16. return self::_retrieve($country, $opts); 
  17.  
  18. /** 
  19. * @param array|null $params 
  20. * @param array|string|null $opts 
  21. * @return Collection of CountrySpecs 
  22. */ 
  23. public static function all($params = null, $opts = null) 
  24. return self::_all($params, $opts);