Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Templates = []string{
"order_confirmation",
"order_edited",
"order_edit_invoice",
"order_invoice",
"order_cancelled",
"refund_notification",
"draft_order_invoice",
"buy_online",
"abandoned_checkout_notification",
"pos_exchange_receipt",
"gift_card_notification",
"failed_payment_processing",
"fulfillment_request",
"shipping_confirmation",
"shipping_update",
"shipment_out_for_delivery",
"shipment_delivered",
"local_out_for_delivery",
"local_delivered",
"local_missed_delivery",
"ready_for_pickup",
"pickup_receipt",
"customer_account_activate",
"customer_account_welcome",
"customer_account_reset",
"customer_update_payment_method",
"contact_buyer",
"customer_marketing_confirmation",
"return_created",
"return_label_notification",
"new_order_notification",
}
)
Functions ¶
func ChromeContext ¶
head=false means headless
Types ¶
type Client ¶
type Client struct { Location string // contains filtered or unexported fields }
func (*Client) FetchEmailTemplate ¶
id must be one of Templates. *body will be set to the email template body.
func (*Client) UpdateEmailTemplate ¶
id must be one of Templates. *body will be set to the email template body.
Click to show internal directories.
Click to hide internal directories.