@spree/docs 0.1.143 → 0.1.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -249,6 +249,8 @@ is reported through `Rails.error` so it's visible rather than mysterious.
|
|
|
249
249
|
| `payments.refund` | `before_refund` | lifecycle | Immediately before the gateway call |
|
|
250
250
|
| `payments.refund` | `after_refund` | lifecycle | After a successful refund |
|
|
251
251
|
| `payments.handle_webhook` | `after_handle` | lifecycle | After the gateway callback is processed |
|
|
252
|
+
| `customers.create` | `validate` | validate | After the customer is built, before it is saved — the registration-policy veto (bot screening, B2B approval) |
|
|
253
|
+
| `customers.create` | `after_create` | lifecycle | After the customer is created and the newsletter subscriber linked |
|
|
252
254
|
|
|
253
255
|
`before_cancel` and `before_resume` accept `reject!` like a `validate` hook.
|
|
254
256
|
|