Event.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. namespace Stripe;
  3. /**
  4. * Class Event
  5. *
  6. * @property string $id
  7. * @property string $object
  8. * @property string $account
  9. * @property string $api_version
  10. * @property int $created
  11. * @property mixed $data
  12. * @property bool $livemode
  13. * @property int $pending_webhooks
  14. * @property mixed $request
  15. * @property string $type
  16. *
  17. * @package Stripe
  18. */
  19. class Event extends ApiResource
  20. {
  21. const OBJECT_NAME = "event";
  22. /**
  23. * Possible string representations of event types.
  24. * @link https://stripe.com/docs/api#event_types
  25. */
  26. const ACCOUNT_UPDATED = 'account.updated';
  27. const ACCOUNT_APPLICATION_DEAUTHORIZED = 'account.application.deauthorized';
  28. const ACCOUNT_EXTERNAL_ACCOUNT_CREATED = 'account.external_account.created';
  29. const ACCOUNT_EXTERNAL_ACCOUNT_DELETED = 'account.external_account.deleted';
  30. const ACCOUNT_EXTERNAL_ACCOUNT_UPDATED = 'account.external_account.updated';
  31. const APPLICATION_FEE_CREATED = 'application_fee.created';
  32. const APPLICATION_FEE_REFUNDED = 'application_fee.refunded';
  33. const APPLICATION_FEE_REFUND_UPDATED = 'application_fee.refund.updated';
  34. const BALANCE_AVAILABLE = 'balance.available';
  35. const CHARGE_CAPTURED = 'charge.captured';
  36. const CHARGE_EXPIRED = 'charge.expired';
  37. const CHARGE_FAILED = 'charge.failed';
  38. const CHARGE_PENDING = 'charge.pending';
  39. const CHARGE_REFUNDED = 'charge.refunded';
  40. const CHARGE_SUCCEEDED = 'charge.succeeded';
  41. const CHARGE_UPDATED = 'charge.updated';
  42. const CHARGE_DISPUTE_CLOSED = 'charge.dispute.closed';
  43. const CHARGE_DISPUTE_CREATED = 'charge.dispute.created';
  44. const CHARGE_DISPUTE_FUNDS_REINSTATED = 'charge.dispute.funds_reinstated';
  45. const CHARGE_DISPUTE_FUNDS_WITHDRAWN = 'charge.dispute.funds_withdrawn';
  46. const CHARGE_DISPUTE_UPDATED = 'charge.dispute.updated';
  47. const CHARGE_REFUND_UPDATED = 'charge.refund.updated';
  48. const COUPON_CREATED = 'coupon.created';
  49. const COUPON_DELETED = 'coupon.deleted';
  50. const COUPON_UPDATED = 'coupon.updated';
  51. const CUSTOMER_CREATED = 'customer.created';
  52. const CUSTOMER_DELETED = 'customer.deleted';
  53. const CUSTOMER_UPDATED = 'customer.updated';
  54. const CUSTOMER_DISCOUNT_CREATED = 'customer.discount.created';
  55. const CUSTOMER_DISCOUNT_DELETED = 'customer.discount.deleted';
  56. const CUSTOMER_DISCOUNT_UPDATED = 'customer.discount.updated';
  57. const CUSTOMER_SOURCE_CREATED = 'customer.source.created';
  58. const CUSTOMER_SOURCE_DELETED = 'customer.source.deleted';
  59. const CUSTOMER_SOURCE_EXPIRING = 'customer.source.expiring';
  60. const CUSTOMER_SOURCE_UPDATED = 'customer.source.updated';
  61. const CUSTOMER_SUBSCRIPTION_CREATED = 'customer.subscription.created';
  62. const CUSTOMER_SUBSCRIPTION_DELETED = 'customer.subscription.deleted';
  63. const CUSTOMER_SUBSCRIPTION_TRIAL_WILL_END = 'customer.subscription.trial_will_end';
  64. const CUSTOMER_SUBSCRIPTION_UPDATED = 'customer.subscription.updated';
  65. const FILE_CREATED = 'file.created';
  66. const INVOICE_CREATED = 'invoice.created';
  67. const INVOICE_PAYMENT_FAILED = 'invoice.payment_failed';
  68. const INVOICE_PAYMENT_SUCCEEDED = 'invoice.payment_succeeded';
  69. const INVOICE_SENT = 'invoice.sent';
  70. const INVOICE_UPCOMING = 'invoice.upcoming';
  71. const INVOICE_UPDATED = 'invoice.updated';
  72. const INVOICEITEM_CREATED = 'invoiceitem.created';
  73. const INVOICEITEM_DELETED = 'invoiceitem.deleted';
  74. const INVOICEITEM_UPDATED = 'invoiceitem.updated';
  75. const ORDER_CREATED = 'order.created';
  76. const ORDER_PAYMENT_FAILED = 'order.payment_failed';
  77. const ORDER_PAYMENT_SUCCEEDED = 'order.payment_succeeded';
  78. const ORDER_UPDATED = 'order.updated';
  79. const ORDER_RETURN_CREATED = 'order_return.created';
  80. const PAYOUT_CANCELED = 'payout.canceled';
  81. const PAYOUT_CREATED = 'payout.created';
  82. const PAYOUT_FAILED = 'payout.failed';
  83. const PAYOUT_PAID = 'payout.paid';
  84. const PAYOUT_UPDATED = 'payout.updated';
  85. const PING = 'ping';
  86. const PLAN_CREATED = 'plan.created';
  87. const PLAN_DELETED = 'plan.deleted';
  88. const PLAN_UPDATED = 'plan.updated';
  89. const PRODUCT_CREATED = 'product.created';
  90. const PRODUCT_DELETED = 'product.deleted';
  91. const PRODUCT_UPDATED = 'product.updated';
  92. const RECIPIENT_CREATED = 'recipient.created';
  93. const RECIPIENT_DELETED = 'recipient.deleted';
  94. const RECIPIENT_UPDATED = 'recipient.updated';
  95. const REVIEW_CLOSED = 'review.closed';
  96. const REVIEW_OPENED = 'review.opened';
  97. const SIGMA_SCHEDULED_QUERY_RUN_CREATED = 'sigma.scheduled_query_run.created';
  98. const SKU_CREATED = 'sku.created';
  99. const SKU_DELETED = 'sku.deleted';
  100. const SKU_UPDATED = 'sku.updated';
  101. const SOURCE_CANCELED = 'source.canceled';
  102. const SOURCE_CHARGEABLE = 'source.chargeable';
  103. const SOURCE_FAILED = 'source.failed';
  104. const SOURCE_MANDATE_NOTIFICATION = 'source.mandate_notification';
  105. const SOURCE_TRANSACTION_CREATED = 'source.transaction.created';
  106. const TOPUP_CREATED = 'topup.created';
  107. const TOPUP_FAILED = 'topup.failed';
  108. const TOPUP_SUCCEEDED = 'topup.succeeded';
  109. const TRANSFER_CREATED = 'transfer.created';
  110. const TRANSFER_REVERSED = 'transfer.reversed';
  111. const TRANSFER_UPDATED = 'transfer.updated';
  112. use ApiOperations\All;
  113. use ApiOperations\Retrieve;
  114. }