FS_Payment

The NextGEN Gallery FS Payment class.

Defined (1)

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

/freemius/includes/entities/class-fs-payment.php  
  1. class FS_Payment extends FS_Entity { 
  2.  
  3. #region Properties 
  4.  
  5. /** 
  6. * @var number 
  7. */ 
  8. public $plugin_id; 
  9. /** 
  10. * @var number 
  11. */ 
  12. public $user_id; 
  13. /** 
  14. * @var number 
  15. */ 
  16. public $install_id; 
  17. /** 
  18. * @var number 
  19. */ 
  20. public $subscription_id; 
  21. /** 
  22. * @var number 
  23. */ 
  24. public $plan_id; 
  25. /** 
  26. * @var number 
  27. */ 
  28. public $license_id; 
  29. /** 
  30. * @var float 
  31. */ 
  32. public $gross; 
  33. /** 
  34. * @var number 
  35. */ 
  36. public $bound_payment_id; 
  37. /** 
  38. * @var string 
  39. */ 
  40. public $external_id; 
  41. /** 
  42. * @var string 
  43. */ 
  44. public $gateway; 
  45. /** 
  46. * @var string ISO 3166-1 alpha-2 - two-letter country code. 
  47. * @link http://www.wikiwand.com/en/ISO_3166-1_alpha-2 
  48. */ 
  49. public $country_code; 
  50. /** 
  51. * @var string 
  52. */ 
  53. public $vat_id; 
  54. /** 
  55. * @var float Actual Tax / VAT in $$$ 
  56. */ 
  57. public $vat; 
  58.  
  59. #endregion Properties 
  60.  
  61. /** 
  62. * @param object|bool $payment 
  63. */ 
  64. function __construct( $payment = false ) { 
  65. parent::__construct( $payment ); 
  66.  
  67. static function get_type() { 
  68. return 'payment'; 
  69.  
  70. /** 
  71. * @author Vova Feldman (@svovaf) 
  72. * @since 1.0.0 
  73. * @return bool 
  74. */ 
  75. function is_refund() { 
  76. return ( parent::is_valid_id( $this->bound_payment_id ) && 0 > $this->gross );