|
75 | 75 | "properties": [],
|
76 | 76 | "operations":
|
77 | 77 | [ { "name": "onOrderAutoRenewCanceled",
|
78 |
| - "labels": [], |
| 78 | + "labels": |
| 79 | + [ "changed" ], |
79 | 80 | "nameParams": [],
|
80 | 81 | "params":
|
81 | 82 | [ { "name": "event",
|
|
84 | 85 | "ret":
|
85 | 86 | { "type": "void" },
|
86 | 87 | "locations":
|
87 |
| - [ { "lineno": 799, |
| 88 | + [ { "lineno": 794, |
88 | 89 | "filename": "events.js" } ],
|
89 | 90 | "docs":
|
90 | 91 | { "summary": "An event that triggers when an order is canceled with `effectiveAt` as `NEXT_PAYMENT_DATE`.",
|
|
96 | 97 | " + If the order was canceled with `effectiveAt` as `IMMEDIATELY`.",
|
97 | 98 | " + When an order expires by reaching its `endDate` and was not canceled. ",
|
98 | 99 | " ",
|
99 |
| - " If you want to trigger an automation to go off any time an order is canceled, use both `onOrderCanceled()`, to catch ", |
100 |
| - " orders that are canceled `IMMEDIATELY`, and `onOrderAutoRenewCanceled()`, to catch orders that are canceled ", |
101 |
| - " at `NEXT_PAYMENT_DATE`. To avoid performing the same automation twice for a single cancellation, be sure to exclude any ", |
102 |
| - " `entityId` in an `onOrderCanceled()` event that matches an `entityId` already recorded in an `onOrderAutoRenewCanceled()` events. ", |
103 |
| - "", |
104 | 100 | " > **Note:** Backend events don't work when previewing your site." ],
|
105 | 101 | "links": [],
|
106 | 102 | "examples":
|
|
200 | 196 | "extra":
|
201 | 197 | { } },
|
202 | 198 | { "name": "onOrderCanceled",
|
203 |
| - "labels": [], |
| 199 | + "labels": |
| 200 | + [ "changed" ], |
204 | 201 | "nameParams": [],
|
205 | 202 | "params":
|
206 | 203 | [ { "name": "event",
|
|
219 | 216 | "",
|
220 | 217 | " The `onOrderCanceled()` event will *not* trigger immediately when the order is canceled with `effectiveAt` as `NEXT_PAYMENT_DATE`. ",
|
221 | 218 | " In that case, the [`onOrderAutoRenewCanceled()`](wix-pricing-plans-backend/events/onorderautorenewcanceled) event will trigger immediately and the `onOrderCanceled()` event will trigger following the current payment cycle.",
|
222 |
| - " ", |
223 |
| - " If you want to trigger an automation to go off any time an order is canceled, use both `onOrderCanceled()`, to catch ", |
224 |
| - " orders that are canceled `IMMEDIATELY`, and `onOrderAutoRenewCanceled()`, to catch orders that are canceled ", |
225 |
| - " at `NEXT_PAYMENT_DATE`. To avoid performing the same automation twice for a single cancellation, be sure to exclude any ", |
226 |
| - " `entityId` in an `onOrderCanceled()` event that matches an `entityId` already recorded in an `onOrderAutoRenewCanceled()` event.", |
227 | 219 | "",
|
228 | 220 | " > **Note:** Backend events don't work when previewing your site." ],
|
229 | 221 | "links": [],
|
|
329 | 321 | "ret":
|
330 | 322 | { "type": "void" },
|
331 | 323 | "locations":
|
332 |
| - [ { "lineno": 722, |
| 324 | + [ { "lineno": 717, |
333 | 325 | "filename": "events.js" } ],
|
334 | 326 | "docs":
|
335 | 327 | { "summary": "An event that triggers when an order is created.",
|
|
504 | 496 | "ret":
|
505 | 497 | { "type": "void" },
|
506 | 498 | "locations":
|
507 |
| - [ { "lineno": 780, |
| 499 | + [ { "lineno": 775, |
508 | 500 | "filename": "events.js" } ],
|
509 | 501 | "docs":
|
510 | 502 | { "summary": "An event that triggers at the start of each payment cycle for online orders.",
|
|
623 | 615 | "ret":
|
624 | 616 | { "type": "void" },
|
625 | 617 | "locations":
|
626 |
| - [ { "lineno": 635, |
| 618 | + [ { "lineno": 630, |
627 | 619 | "filename": "events.js" } ],
|
628 | 620 | "docs":
|
629 | 621 | { "summary": "An event that triggers when the `endDate` of an order is postponed or made earlier.",
|
|
728 | 720 | "ret":
|
729 | 721 | { "type": "void" },
|
730 | 722 | "locations":
|
731 |
| - [ { "lineno": 688, |
| 723 | + [ { "lineno": 683, |
732 | 724 | "filename": "events.js" } ],
|
733 | 725 | "docs":
|
734 | 726 | { "summary": "An event that triggers when an order expires or is canceled immediately.",
|
|
943 | 935 | "ret":
|
944 | 936 | { "type": "void" },
|
945 | 937 | "locations":
|
946 |
| - [ { "lineno": 671, |
| 938 | + [ { "lineno": 666, |
947 | 939 | "filename": "events.js" } ],
|
948 | 940 | "docs":
|
949 | 941 | { "summary": "An event that triggers when an order is paused.",
|
|
1179 | 1171 | "ret":
|
1180 | 1172 | { "type": "void" },
|
1181 | 1173 | "locations":
|
1182 |
| - [ { "lineno": 653, |
| 1174 | + [ { "lineno": 648, |
1183 | 1175 | "filename": "events.js" } ],
|
1184 | 1176 | "docs":
|
1185 | 1177 | { "summary": "An event that triggers when an order resumes.",
|
|
1296 | 1288 | "ret":
|
1297 | 1289 | { "type": "void" },
|
1298 | 1290 | "locations":
|
1299 |
| - [ { "lineno": 706, |
| 1291 | + [ { "lineno": 701, |
1300 | 1292 | "filename": "events.js" } ],
|
1301 | 1293 | "docs":
|
1302 | 1294 | { "summary": "An event that triggers when the start date of an order is changed.",
|
|
1509 | 1501 | "extra":
|
1510 | 1502 | { } },
|
1511 | 1503 | { "name": "onOrderUpdated",
|
1512 |
| - "labels": [], |
| 1504 | + "labels": |
| 1505 | + [ "changed" ], |
1513 | 1506 | "nameParams": [],
|
1514 | 1507 | "params":
|
1515 | 1508 | [ { "name": "event",
|
|
1531 | 1524 | " if any of the following happens: ",
|
1532 | 1525 | " + An order is paid. In this case, the [`onOrderPurchased()`](wix-pricing-plans-backend/events/onorderpurchased) event handler also runs.",
|
1533 | 1526 | " + An order reaches its start date. In this case, the [`onOrderStarted()`](wix-pricing-plans-backend/events/onorderstarted) event handler also runs.",
|
1534 |
| - " + An order is cancelled. In this case, the [`onOrderCanceled()`](wix-pricing-plans-backend/events/onordercanceled) event handler also runs.", |
| 1527 | + " + An order is canceled. In this case, the [`onOrderCanceled()`](wix-pricing-plans-backend/events/onordercanceled) event handler also runs.", |
1535 | 1528 | " + The end date of an order is postponed or brought forward. In this case, the `onOrderEndDatePostponed()` event handler also runs. ",
|
1536 | 1529 | " + An order is paused or resumed. In this case, the [`onOrderPaused()`](wix-pricing-plans-backend/events/onorderpaused) or the [`onOrderResumed()`](wix-pricing-plans-backend/events/onorderresumed) event handler also runs.",
|
1537 | 1530 | " + An order expired by reaching its end date. In this case, the [`onOrderEnded()`](wix-pricing-plans-backend/events/onorderended) event handler also runs.",
|
|
2422 | 2415 | "doc": "Role assigned after ordering the plan." } ],
|
2423 | 2416 | "extra":
|
2424 | 2417 | { },
|
2425 |
| - "labels": |
2426 |
| - [ "changed" ] }, |
| 2418 | + "labels": [] }, |
2427 | 2419 | { "name": "OrderAutoRenewCanceledEvent",
|
2428 | 2420 | "locations":
|
2429 | 2421 | [ { "lineno": 439,
|
|
0 commit comments