Edit Order Notification Report Code¶
Report Messages¶
The possible report messages sent to the big query report table, based on the results of processing.
SUCCESS = "Successfully sent communications"
FAILED_TO_SEND_EMAIL = "Failed to send customer email"
FAILED_TO_SEND_EMAIL_AND_SMS = "Failed to send either SMS or email"
FAILED_TO_SEND_SMS = "Failed to send SMS"
INVALID_EMAIL = "Invalid email address for customer"
INVALID_PHONE_NUMBER = "Invalid Phone number for customer"
INVALID_PHONE_NUMBER_AND_EMAIL = "Invalid phone number and email for customer"
Customer Notification Report¶
-
class
report.customer_notifcation_report.CustomerNotificationReport(order_id, retailer_customer_id, phone_number_format_success, email_address_format_success, sms_sent, email_sent, timestamp)[source]¶ -
__init__(order_id, retailer_customer_id, phone_number_format_success, email_address_format_success, sms_sent, email_sent, timestamp)[source]¶ Class to handle the report to BQ Object
- Parameters
order_id (str) – order number
retailer_customer_id (str) – customer number
phone_number_format_success (bool) – Was the phone number able to be processed
email_address_format_success (bool) – Was the email address able to be processed
sms_sent (bool) – Was the sms sent
email_sent (bool) – Was the email sent
timestamp (str) – timestamp to add to the report data
-