Interface B2BEmailService

All Known Implementing Classes:
DefaultB2BEmailService, MockB2BEmailService

public interface B2BEmailService
The Interface B2BEmailService. Service is responsible for sending Approval and Rejection emails to a B2BCustomer.
Spring Bean ID:
b2bEmailService
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.mail.HtmlEmail
    createOrderApprovalEmail(String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, String subject)
    Creates an Approval email to be sent to the B2BCustomer.
    org.apache.commons.mail.HtmlEmail
    createOrderRejectionEmail(String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, String subject)
    Creates a Rejection email to be sent to the B2BCustomer.
    void
    sendEmail(org.apache.commons.mail.HtmlEmail email)
    Sends the email out to the B2BCustomer
  • Method Details

    • createOrderApprovalEmail

      org.apache.commons.mail.HtmlEmail createOrderApprovalEmail(String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, String subject) throws org.apache.commons.mail.EmailException
      Creates an Approval email to be sent to the B2BCustomer.
      Parameters:
      emailTemplateCode - used to determine the RendererTemplateModel to be used
      order - the order
      user - the user the email will be sent to
      from - the email address of the sender
      subject - the title of the email message
      Returns:
      the html encoded email message
      Throws:
      org.apache.commons.mail.EmailException
    • createOrderRejectionEmail

      org.apache.commons.mail.HtmlEmail createOrderRejectionEmail(String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, String subject) throws org.apache.commons.mail.EmailException
      Creates a Rejection email to be sent to the B2BCustomer.
      Parameters:
      emailTemplateCode - used to determine the RendererTemplateModel to be used
      order -
      user - the user the email will be sent to
      from - the email address of the sender
      subject - the title of the email message
      Returns:
      the html encoded email message
      Throws:
      org.apache.commons.mail.EmailException
    • sendEmail

      void sendEmail(org.apache.commons.mail.HtmlEmail email) throws org.apache.commons.mail.EmailException
      Sends the email out to the B2BCustomer
      Parameters:
      email - the html email message to be sent
      Throws:
      org.apache.commons.mail.EmailException