|
| 1 | +package lemonsqueezy |
| 2 | + |
| 3 | +const ( |
| 4 | + // WebhookEventOrderCreated occurs when a new order is successfully placed. |
| 5 | + WebhookEventOrderCreated = "order_created" |
| 6 | + |
| 7 | + // WebhookEventOrderRefunded occurs when a full or partial refund is made on an order. |
| 8 | + WebhookEventOrderRefunded = "order_refunded" |
| 9 | + |
| 10 | + // WebhookEventSubscriptionCreated occurs when a new subscription is successfully created. |
| 11 | + WebhookEventSubscriptionCreated = "subscription_created" |
| 12 | + |
| 13 | + // WebhookEventSubscriptionUpdated occurs when a subscription's data is changed or updated. |
| 14 | + WebhookEventSubscriptionUpdated = "subscription_updated" |
| 15 | + |
| 16 | + // WebhookEventSubscriptionCancelled occurs when a subscription is cancelled manually by the customer or store owner. |
| 17 | + WebhookEventSubscriptionCancelled = "subscription_cancelled" |
| 18 | + |
| 19 | + // WebhookEventSubscriptionResumed occurs when a subscription is resumed after being previously cancelled. |
| 20 | + WebhookEventSubscriptionResumed = "subscription_resumed" |
| 21 | + |
| 22 | + // WebhookEventSubscriptionExpired occurs when a subscription has ended after being previously cancelled, or once dunning has been completed for past_due subscriptions. |
| 23 | + WebhookEventSubscriptionExpired = "subscription_expired" |
| 24 | + |
| 25 | + // WebhookEventSubscriptionPaused occurs when a subscription's payment collection is paused. |
| 26 | + WebhookEventSubscriptionPaused = "subscription_paused" |
| 27 | + |
| 28 | + // WebhookEventSubscriptionUnpaused occurs when a subscription's payment collection is resumed after being previously paused. |
| 29 | + WebhookEventSubscriptionUnpaused = "subscription_unpaused" |
| 30 | + |
| 31 | + // WebhookEventSubscriptionPaymentSuccess occurs when a subscription payment is successful. |
| 32 | + WebhookEventSubscriptionPaymentSuccess = "subscription_payment_success" |
| 33 | + |
| 34 | + // WebhookEventSubscriptionPaymentFailed occurs when a subscription renewal payment fails. |
| 35 | + WebhookEventSubscriptionPaymentFailed = "subscription_payment_failed" |
| 36 | + |
| 37 | + // WebhookEventSubscriptionPaymentRecovered occurs when a subscription has a successful payment after a failed payment. |
| 38 | + WebhookEventSubscriptionPaymentRecovered = "subscription_payment_recovered" |
| 39 | + |
| 40 | + // WebhookEventSubscriptionPaymentRefunded occurs when a subscription payment is refunded. |
| 41 | + WebhookEventSubscriptionPaymentRefunded = "subscription_payment_refunded" |
| 42 | + |
| 43 | + // WebhookEventLicenseKeyCreated occurs when a license key is created from a new order. |
| 44 | + WebhookEventLicenseKeyCreated = "license_key_created" |
| 45 | + |
| 46 | + // WebhookEventLicenseKeyUpdated occurs when a license key is updated. |
| 47 | + WebhookEventLicenseKeyUpdated = "license_key_updated" |
| 48 | +) |
0 commit comments