Reasons & Contexts¶
Reasons¶
A Reason records why the ARR changed. Seeded by Migration_1_0_0.
| Constant | Value | Description |
|---|---|---|
TYPE_ACTIVATED | Subscription reactivated | Subscription moved back to active |
TYPE_ADDON_ADDED | Addon Added | An add-on product was added |
TYPE_ADDON_REMOVED | Addon Removed | An add-on product was removed |
TYPE_ANTI_CHURN | Anti churn | Retention action reversed a churn |
TYPE_CHURN | Churn | Subscription cancelled or expired |
TYPE_INTERVAL | Interval changed | Billing interval was modified |
TYPE_NEW_SUBSCRIPTION | New subscription | First ARR log for the subscription |
TYPE_PAUSE_LIMITED | Pause limited | Subscription paused for a fixed period |
TYPE_PAUSE_UNLIMITED | Pause unlimited | Subscription paused indefinitely |
TYPE_PRODUCTS_ADDED | Product items added | Line items added to subscription |
TYPE_PRODUCTS_REMOVED | Product items removed | Line items removed from subscription |
TYPE_PRODUCTS_UPDATED | Product items updated | Line item prices or quantities updated |
TYPE_RENEWAL_DATE_POSTPONED | Renewal date postponed | Next payment moved further out |
TYPE_RENEWAL_DATE_PREPONED | Renewal date preponed | Next payment moved earlier |
TYPE_ORDER_PAYMENT_FAILED | Order payment failed | A renewal order failed payment |
TYPE_FAILED_ORDER_PAID | Paid failed order | A previously failed order was paid |
TYPE_SUBSCRIPTION_STALLED | Stalled | Subscription became stalled |
TYPE_SUBSCRIPTION_AUTO_RENEWAL | Automatic Renewal | Scheduled automatic renewal |
Contexts¶
A Context records where the change originated. Created dynamically at runtime.
| Value | Description |
|---|---|
wp-admin | Change came from the WordPress admin area |
web | Change came from a front-end AJAX or WC REST request |
wc-api | Change came via the WooCommerce API endpoint |