|
22 | 22 | set_template, |
23 | 23 | ) |
24 | 24 | from ffc.flows.steps.utils import reset_order_error, switch_order_to_failed |
25 | | -from ffc.notifications import send_email_notification |
| 25 | +from ffc.notifications import send_mpt_notification |
26 | 26 | from ffc.parameters import ( |
27 | 27 | PARAM_ADMIN_CONTACT, |
28 | 28 | PARAM_CURRENCY, |
@@ -85,7 +85,7 @@ def __call__(self, client, context, next_step): |
85 | 85 | parameters=context.order["parameters"], |
86 | 86 | ) |
87 | 87 | context.order["agreement"] = agreement |
88 | | - send_email_notification(client, context.order) |
| 88 | + send_mpt_notification(client, context) |
89 | 89 | logger.info(f"{context}: order has been completed successfully") |
90 | 90 | next_step(client, context) |
91 | 91 |
|
@@ -156,7 +156,7 @@ def __call__(self, client, context, next_step): |
156 | 156 | logger.info( |
157 | 157 | f"{context}: ordering parameters are invalid, move to querying", |
158 | 158 | ) |
159 | | - send_email_notification(client, order) |
| 159 | + send_mpt_notification(client, context) |
160 | 160 | return |
161 | 161 |
|
162 | 162 | next_step(client, context) |
@@ -203,7 +203,7 @@ def __call__(self, client, context, next_step): |
203 | 203 | logger.info(f"{context}: processing template is ok, continue") |
204 | 204 |
|
205 | 205 | if not get_due_date(context.order): |
206 | | - send_email_notification(client, context.order) |
| 206 | + send_mpt_notification(client, context) |
207 | 207 |
|
208 | 208 | next_step(client, context) |
209 | 209 |
|
|
0 commit comments