BalanceTransaction.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace Stripe;
  3. /**
  4. * Class BalanceTransaction
  5. *
  6. * @property string $id
  7. * @property string $object
  8. * @property int $amount
  9. * @property int $available_on
  10. * @property int $created
  11. * @property string $currency
  12. * @property string $description
  13. * @property int $fee
  14. * @property mixed $fee_details
  15. * @property int $net
  16. * @property string $source
  17. * @property mixed $sourced_transfers
  18. * @property string $status
  19. * @property string $type
  20. *
  21. * @package Stripe
  22. */
  23. class BalanceTransaction extends ApiResource
  24. {
  25. /**
  26. * @return string The class URL for this resource. It needs to be special
  27. * cased because it doesn't fit into the standard resource pattern.
  28. */
  29. public static function classUrl()
  30. {
  31. return "/v1/balance/history";
  32. }
  33. /**
  34. * @param string $id The ID of the balance transaction to retrieve.
  35. * @param array|string|null $opts
  36. *
  37. * @return BalanceTransaction
  38. */
  39. public static function retrieve($id, $opts = null)
  40. {
  41. return self::_retrieve($id, $opts);
  42. }
  43. /**
  44. * @param array|null $params
  45. * @param array|string|null $opts
  46. *
  47. * @return Collection of BalanceTransactions
  48. */
  49. public static function all($params = null, $opts = null)
  50. {
  51. return self::_all($params, $opts);
  52. }
  53. }