ApiOperations
6 years ago
Checkout
6 years ago
Error
6 years ago
HttpClient
6 years ago
Issuing
6 years ago
Radar
6 years ago
Reporting
6 years ago
Sigma
6 years ago
Terminal
6 years ago
Util
6 years ago
Account.php
6 years ago
AccountLink.php
6 years ago
AlipayAccount.php
6 years ago
ApiRequestor.php
6 years ago
ApiResource.php
6 years ago
ApiResponse.php
6 years ago
ApplePayDomain.php
6 years ago
ApplicationFee.php
6 years ago
ApplicationFeeRefund.php
6 years ago
Balance.php
6 years ago
BalanceTransaction.php
6 years ago
BankAccount.php
6 years ago
BitcoinReceiver.php
6 years ago
BitcoinTransaction.php
6 years ago
Capability.php
6 years ago
Card.php
6 years ago
Charge.php
6 years ago
Collection.php
6 years ago
CountrySpec.php
6 years ago
Coupon.php
6 years ago
CreditNote.php
6 years ago
Customer.php
6 years ago
CustomerBalanceTransaction.php
6 years ago
Discount.php
6 years ago
Dispute.php
6 years ago
EphemeralKey.php
6 years ago
Event.php
6 years ago
ExchangeRate.php
6 years ago
File.php
6 years ago
FileLink.php
6 years ago
FileUpload.php
6 years ago
Invoice.php
6 years ago
InvoiceItem.php
6 years ago
InvoiceLineItem.php
6 years ago
IssuerFraudRecord.php
6 years ago
LoginLink.php
6 years ago
OAuth.php
6 years ago
Order.php
6 years ago
OrderItem.php
6 years ago
OrderReturn.php
6 years ago
PaymentIntent.php
6 years ago
PaymentMethod.php
6 years ago
Payout.php
6 years ago
Person.php
6 years ago
Plan.php
6 years ago
Product.php
6 years ago
Recipient.php
6 years ago
RecipientTransfer.php
6 years ago
Refund.php
6 years ago
RequestTelemetry.php
6 years ago
Review.php
6 years ago
SKU.php
6 years ago
SetupIntent.php
6 years ago
SingletonApiResource.php
6 years ago
Source.php
6 years ago
SourceTransaction.php
6 years ago
Stripe.php
6 years ago
StripeObject.php
6 years ago
Subscription.php
6 years ago
SubscriptionItem.php
6 years ago
SubscriptionSchedule.php
6 years ago
TaxId.php
6 years ago
TaxRate.php
6 years ago
ThreeDSecure.php
6 years ago
Token.php
6 years ago
Topup.php
6 years ago
Transfer.php
6 years ago
TransferReversal.php
6 years ago
UsageRecord.php
6 years ago
UsageRecordSummary.php
6 years ago
Webhook.php
6 years ago
WebhookEndpoint.php
6 years ago
WebhookSignature.php
6 years ago
Event.php
168 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Stripe; |
| 4 | |
| 5 | /** |
| 6 | * Class Event |
| 7 | * |
| 8 | * @property string $id |
| 9 | * @property string $object |
| 10 | * @property string $account |
| 11 | * @property string $api_version |
| 12 | * @property int $created |
| 13 | * @property mixed $data |
| 14 | * @property bool $livemode |
| 15 | * @property int $pending_webhooks |
| 16 | * @property mixed $request |
| 17 | * @property string $type |
| 18 | * |
| 19 | * @package Stripe |
| 20 | */ |
| 21 | class Event extends ApiResource |
| 22 | { |
| 23 | const OBJECT_NAME = "event"; |
| 24 | |
| 25 | /** |
| 26 | * Possible string representations of event types. |
| 27 | * @link https://stripe.com/docs/api#event_types |
| 28 | */ |
| 29 | const ACCOUNT_UPDATED = 'account.updated'; |
| 30 | const ACCOUNT_APPLICATION_AUTHORIZED = 'account.application.authorized'; |
| 31 | const ACCOUNT_APPLICATION_DEAUTHORIZED = 'account.application.deauthorized'; |
| 32 | const ACCOUNT_EXTERNAL_ACCOUNT_CREATED = 'account.external_account.created'; |
| 33 | const ACCOUNT_EXTERNAL_ACCOUNT_DELETED = 'account.external_account.deleted'; |
| 34 | const ACCOUNT_EXTERNAL_ACCOUNT_UPDATED = 'account.external_account.updated'; |
| 35 | const APPLICATION_FEE_CREATED = 'application_fee.created'; |
| 36 | const APPLICATION_FEE_REFUNDED = 'application_fee.refunded'; |
| 37 | const APPLICATION_FEE_REFUND_UPDATED = 'application_fee.refund.updated'; |
| 38 | const BALANCE_AVAILABLE = 'balance.available'; |
| 39 | const CHARGE_CAPTURED = 'charge.captured'; |
| 40 | const CHARGE_EXPIRED = 'charge.expired'; |
| 41 | const CHARGE_FAILED = 'charge.failed'; |
| 42 | const CHARGE_PENDING = 'charge.pending'; |
| 43 | const CHARGE_REFUNDED = 'charge.refunded'; |
| 44 | const CHARGE_SUCCEEDED = 'charge.succeeded'; |
| 45 | const CHARGE_UPDATED = 'charge.updated'; |
| 46 | const CHARGE_DISPUTE_CLOSED = 'charge.dispute.closed'; |
| 47 | const CHARGE_DISPUTE_CREATED = 'charge.dispute.created'; |
| 48 | const CHARGE_DISPUTE_FUNDS_REINSTATED = 'charge.dispute.funds_reinstated'; |
| 49 | const CHARGE_DISPUTE_FUNDS_WITHDRAWN = 'charge.dispute.funds_withdrawn'; |
| 50 | const CHARGE_DISPUTE_UPDATED = 'charge.dispute.updated'; |
| 51 | const CHARGE_REFUND_UPDATED = 'charge.refund.updated'; |
| 52 | const CHECKOUT_SESSION_COMPLETED = 'checkout.session.completed'; |
| 53 | const COUPON_CREATED = 'coupon.created'; |
| 54 | const COUPON_DELETED = 'coupon.deleted'; |
| 55 | const COUPON_UPDATED = 'coupon.updated'; |
| 56 | const CREDIT_NOTE_CREATED = 'credit_note.created'; |
| 57 | const CREDIT_NOTE_UPDATED = 'credit_note.updated'; |
| 58 | const CREDIT_NOTE_VOIDED = 'credit_note.voided'; |
| 59 | const CUSTOMER_CREATED = 'customer.created'; |
| 60 | const CUSTOMER_DELETED = 'customer.deleted'; |
| 61 | const CUSTOMER_UPDATED = 'customer.updated'; |
| 62 | const CUSTOMER_DISCOUNT_CREATED = 'customer.discount.created'; |
| 63 | const CUSTOMER_DISCOUNT_DELETED = 'customer.discount.deleted'; |
| 64 | const CUSTOMER_DISCOUNT_UPDATED = 'customer.discount.updated'; |
| 65 | const CUSTOMER_SOURCE_CREATED = 'customer.source.created'; |
| 66 | const CUSTOMER_SOURCE_DELETED = 'customer.source.deleted'; |
| 67 | const CUSTOMER_SOURCE_EXPIRING = 'customer.source.expiring'; |
| 68 | const CUSTOMER_SOURCE_UPDATED = 'customer.source.updated'; |
| 69 | const CUSTOMER_SUBSCRIPTION_CREATED = 'customer.subscription.created'; |
| 70 | const CUSTOMER_SUBSCRIPTION_DELETED = 'customer.subscription.deleted'; |
| 71 | const CUSTOMER_SUBSCRIPTION_TRIAL_WILL_END = 'customer.subscription.trial_will_end'; |
| 72 | const CUSTOMER_SUBSCRIPTION_UPDATED = 'customer.subscription.updated'; |
| 73 | const FILE_CREATED = 'file.created'; |
| 74 | const INVOICE_CREATED = 'invoice.created'; |
| 75 | const INVOICE_DELETED = 'invoice.deleted'; |
| 76 | const INVOICE_FINALIZED = 'invoice.finalized'; |
| 77 | const INVOICE_MARKED_UNCOLLECTIBLE = 'invoice.marked_uncollectible'; |
| 78 | const INVOICE_PAYMENT_ACTION_REQUIRED = 'invoice.payment_action_required'; |
| 79 | const INVOICE_PAYMENT_FAILED = 'invoice.payment_failed'; |
| 80 | const INVOICE_PAYMENT_SUCCEEDED = 'invoice.payment_succeeded'; |
| 81 | const INVOICE_SENT = 'invoice.sent'; |
| 82 | const INVOICE_UPCOMING = 'invoice.upcoming'; |
| 83 | const INVOICE_UPDATED = 'invoice.updated'; |
| 84 | const INVOICE_VOIDED = 'invoice.voided'; |
| 85 | const INVOICEITEM_CREATED = 'invoiceitem.created'; |
| 86 | const INVOICEITEM_DELETED = 'invoiceitem.deleted'; |
| 87 | const INVOICEITEM_UPDATED = 'invoiceitem.updated'; |
| 88 | const ISSUER_FRAUD_RECORD_CREATED = 'issuer_fraud_record.created'; |
| 89 | const ISSUING_AUTHORIZATION_CREATED = 'issuing_authorization.created'; |
| 90 | const ISSUING_AUTHORIZATION_REQUEST = 'issuing_authorization.request'; |
| 91 | const ISSUING_AUTHORIZATION_UPDATED = 'issuing_authorization.updated'; |
| 92 | const ISSUING_CARD_CREATED = 'issuing_card.created'; |
| 93 | const ISSUING_CARD_UPDATED = 'issuing_card.updated'; |
| 94 | const ISSUING_CARDHOLDER_CREATED = 'issuing_cardholder.created'; |
| 95 | const ISSUING_CARDHOLDER_UPDATED = 'issuing_cardholder.updated'; |
| 96 | const ISSUING_DISPUTE_CREATED = 'issuing_dispute.created'; |
| 97 | const ISSUING_DISPUTE_UPDATED = 'issuing_dispute.updated'; |
| 98 | const ISSUING_TRANSACTION_CREATED = 'issuing_transaction.created'; |
| 99 | const ISSUING_TRANSACTION_UPDATED = 'issuing_transaction.updated'; |
| 100 | const ORDER_CREATED = 'order.created'; |
| 101 | const ORDER_PAYMENT_FAILED = 'order.payment_failed'; |
| 102 | const ORDER_PAYMENT_SUCCEEDED = 'order.payment_succeeded'; |
| 103 | const ORDER_UPDATED = 'order.updated'; |
| 104 | const ORDER_RETURN_CREATED = 'order_return.created'; |
| 105 | const PAYMENT_INTENT_AMOUNT_CAPTURABLE_UPDATED = 'payment_intent.amount_capturable_updated'; |
| 106 | const PAYMENT_INTENT_CREATED = 'payment_intent.created'; |
| 107 | const PAYMENT_INTENT_PAYMENT_FAILED = 'payment_intent.payment_failed'; |
| 108 | const PAYMENT_INTENT_SUCCEEDED = 'payment_intent.succeeded'; |
| 109 | const PAYMENT_METHOD_ATTACHED = 'payment_method.attached'; |
| 110 | const PAYMENT_METHOD_CARD_AUTOMATICALLY_UPDATED = 'payment_method.card_automatically_updated'; |
| 111 | const PAYMENT_METHOD_DETACHED = 'payment_method.detached'; |
| 112 | const PAYMENT_METHOD_UPDATED = 'payment_method.updated'; |
| 113 | const PAYOUT_CANCELED = 'payout.canceled'; |
| 114 | const PAYOUT_CREATED = 'payout.created'; |
| 115 | const PAYOUT_FAILED = 'payout.failed'; |
| 116 | const PAYOUT_PAID = 'payout.paid'; |
| 117 | const PAYOUT_UPDATED = 'payout.updated'; |
| 118 | const PERSON_CREATED = 'person.created'; |
| 119 | const PERSON_DELETED = 'person.deleted'; |
| 120 | const PERSON_UPDATED = 'person.updated'; |
| 121 | const PING = 'ping'; |
| 122 | const PLAN_CREATED = 'plan.created'; |
| 123 | const PLAN_DELETED = 'plan.deleted'; |
| 124 | const PLAN_UPDATED = 'plan.updated'; |
| 125 | const PRODUCT_CREATED = 'product.created'; |
| 126 | const PRODUCT_DELETED = 'product.deleted'; |
| 127 | const PRODUCT_UPDATED = 'product.updated'; |
| 128 | const RECIPIENT_CREATED = 'recipient.created'; |
| 129 | const RECIPIENT_DELETED = 'recipient.deleted'; |
| 130 | const RECIPIENT_UPDATED = 'recipient.updated'; |
| 131 | const REPORTING_REPORT_RUN_FAILED = 'reporting.report_run.failed'; |
| 132 | const REPORTING_REPORT_RUN_SUCCEEDED = 'reporting.report_run.succeeded'; |
| 133 | const REPORTING_REPORT_TYPE_UPDATED = 'reporting.report_type.updated'; |
| 134 | const REVIEW_CLOSED = 'review.closed'; |
| 135 | const REVIEW_OPENED = 'review.opened'; |
| 136 | const SIGMA_SCHEDULED_QUERY_RUN_CREATED = 'sigma.scheduled_query_run.created'; |
| 137 | const SKU_CREATED = 'sku.created'; |
| 138 | const SKU_DELETED = 'sku.deleted'; |
| 139 | const SKU_UPDATED = 'sku.updated'; |
| 140 | const SOURCE_CANCELED = 'source.canceled'; |
| 141 | const SOURCE_CHARGEABLE = 'source.chargeable'; |
| 142 | const SOURCE_FAILED = 'source.failed'; |
| 143 | const SOURCE_MANDATE_NOTIFICATION = 'source.mandate_notification'; |
| 144 | const SOURCE_REFUND_ATTRIBUTES_REQUIRED = 'source.refund_attributes_required'; |
| 145 | const SOURCE_TRANSACTION_CREATED = 'source.transaction.created'; |
| 146 | const SOURCE_TRANSACTION_UPDATED = 'source.transaction.updated'; |
| 147 | const SUBSCRIPTION_SCHEDULE_ABORTED = 'subscription_schedule.aborted'; |
| 148 | const SUBSCRIPTION_SCHEDULE_CANCELED = 'subscription_schedule.canceled'; |
| 149 | const SUBSCRIPTION_SCHEDULE_COMPLETED = 'subscription_schedule.completed'; |
| 150 | const SUBSCRIPTION_SCHEDULE_CREATED = 'subscription_schedule.created'; |
| 151 | const SUBSCRIPTION_SCHEDULE_EXPIRING = 'subscription_schedule.expiring'; |
| 152 | const SUBSCRIPTION_SCHEDULE_RELEASED = 'subscription_schedule.released'; |
| 153 | const SUBSCRIPTION_SCHEDULE_UPDATED = 'subscription_schedule.updated'; |
| 154 | const TAX_RATE_CREATED = 'tax_rate.created'; |
| 155 | const TAX_RATE_UPDATED = 'tax_rate.updated'; |
| 156 | const TOPUP_CANCELED = 'topup.canceled'; |
| 157 | const TOPUP_CREATED = 'topup.created'; |
| 158 | const TOPUP_FAILED = 'topup.failed'; |
| 159 | const TOPUP_REVERSED = 'topup.reversed'; |
| 160 | const TOPUP_SUCCEEDED = 'topup.succeeded'; |
| 161 | const TRANSFER_CREATED = 'transfer.created'; |
| 162 | const TRANSFER_REVERSED = 'transfer.reversed'; |
| 163 | const TRANSFER_UPDATED = 'transfer.updated'; |
| 164 | |
| 165 | use ApiOperations\All; |
| 166 | use ApiOperations\Retrieve; |
| 167 | } |
| 168 |